/* CoMission Beacon — matches the CoMission Beta app UI */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f7f1e5;
  --surface: #fffdf8;
  --surface-subtle: #eee7d9;
  --text: #202a27;
  --dim: #65706a;
  --border: #d8d0c2;
  --navy: #223d53;
  --navy-strong: #183043;
  --accent: #c9902e;
  --teal: #327c75;
  --good: #34735b;
  --radius: 12px;
  font-family: 'Avenir Next', Avenir, 'Century Gothic', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
img { max-width: 100%; }

.entry-screen {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .8s ease, visibility .8s;
}
.entry-screen.dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
.entry-logo { text-align: center; animation: entry-zoom 2.2s ease-out both; }
.entry-logo img { width: 110px; height: 99px; object-fit: contain; }
.entry-logo p {
  font-family: "Josefin Sans", sans-serif; font-size: 28px; font-weight: 700;
  letter-spacing: -.02em; margin: 16px 0 0; color: var(--navy);
}
@keyframes entry-zoom {
  0% { transform: scale(.6); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .entry-logo { animation: none; }
  .entry-screen { transition: none; }
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Josefin Sans", sans-serif; font-size: 20px; font-weight: 700;
  color: var(--navy); text-decoration: none; letter-spacing: -.02em;
}
.wordmark img { width: 38px; height: 34px; object-fit: contain; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 8px 14px; border-radius: 20px; text-decoration: none;
  font-size: 14px; font-weight: 600; color: var(--dim);
}
.site-nav a:hover, .site-nav a.active { color: var(--navy); background: var(--surface-subtle); }

.simple-hero, .home-statement, .home-opportunity {
  padding: 64px 22px; display: grid; justify-items: center; text-align: center;
}
.simple-hero {
  min-height: 92vh; place-content: center;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
}
.simple-hero h1, .home-statement h2, .home-opportunity h2 {
  font-family: "Josefin Sans", sans-serif; letter-spacing: -.035em; line-height: 1.02;
  margin: 4px 0 16px; color: var(--navy);
}
.simple-hero h1 { font-size: clamp(44px, 10vw, 78px); max-width: 840px; }
.home-statement h2, .home-opportunity h2 { font-size: clamp(30px, 5vw, 46px); max-width: 720px; }
.simple-hero > p:last-child, .home-statement > p:not(.eyebrow), .home-opportunity > p:not(.eyebrow) {
  max-width: 660px; margin: 0; color: var(--dim); font-size: clamp(15px, 2vw, 19px); line-height: 1.7;
}
.home-opportunity { border-top: 1px solid var(--border); }
.home-statement { background: var(--surface); }

.eyebrow {
  font-size: 12px; font-weight: 750; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 16px;
}
.home-welcome-brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
  font-family: "Josefin Sans", sans-serif; font-size: 24px; font-weight: 700; color: var(--navy);
}
.home-welcome-brand img { width: 52px; height: 47px; object-fit: contain; }

[data-home-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-home-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-home-reveal] { opacity: 1; transform: none; transition: none; } }

.home-tile-advance {
  margin-top: 28px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  display: grid; place-items: center; color: var(--teal);
  transition: transform .2s, background .2s;
}
.home-tile-advance:hover { transform: translateY(3px); background: var(--surface-subtle); }

.primary-button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; border: 0; border-radius: 28px;
  padding: 14px 28px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background .2s;
}
.primary-button:hover { background: var(--navy-strong); }
.text-link-button {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  color: var(--teal); font-size: 15px; font-weight: 700; text-decoration: none;
}
.text-link-button:hover { text-decoration: underline; }

.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  max-width: 1000px; width: 100%; margin-top: 32px;
}
.cards article {
  padding: 30px; border: 1px solid var(--border); border-radius: 20px;
  background: var(--surface); text-align: left;
    box-shadow: 0 12px 32px rgba(59, 52, 38, .08);
  display: flex; flex-direction: column; min-width: 0;
}
.card-number { color: var(--teal); font-size: 12px; letter-spacing: .12em; font-weight: 700; }
.cards h3 {
  font-family: "Josefin Sans", sans-serif; font-size: 23px; letter-spacing: -.025em;
  margin: 14px 0 10px; color: var(--navy);
}
.cards p { color: var(--dim); font-size: 15px; margin: 0; }

.belief-page, .story-page { background: var(--bg); }
.belief-hero, .story-hero {
  padding: 80px 22px 60px; display: grid; justify-items: center; text-align: center;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
}
.belief-hero h1, .story-hero h1 {
  font-family: "Josefin Sans", sans-serif; font-size: clamp(36px, 7vw, 58px);
  letter-spacing: -.03em; line-height: 1.05; color: var(--navy); max-width: 800px; margin: 4px 0 16px;
}
.belief-hero > div > p:last-child, .story-hero > div > p:last-child {
  max-width: 640px; color: var(--dim); font-size: 18px; line-height: 1.7; margin: 0;
}
.belief-body, .story-chapters { max-width: 860px; margin: 0 auto; padding: 56px 22px; }
.belief-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0; }
.belief-principles article {
  padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  box-shadow: 0 12px 32px rgba(59, 52, 38, .08);
}
.belief-principles h3 {
  font-family: "Josefin Sans", sans-serif; color: var(--navy); font-size: 19px; margin: 12px 0 8px;
}
.belief-principles p { color: var(--dim); font-size: 14px; margin: 0; }
.belief-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.story-chapter { display: grid; grid-template-columns: 72px 1fr; gap: 20px; margin-bottom: 48px; }
.story-number {
  font-family: "Josefin Sans", sans-serif; font-size: 40px; font-weight: 700; color: var(--accent);
}
.story-chapter h2 {
  font-family: "Josefin Sans", sans-serif; color: var(--navy); font-size: 28px;
  letter-spacing: -.02em; margin: 0 0 12px;
}
.story-chapter p { color: var(--dim); line-height: 1.75; margin: 0 0 14px; }
.story-promise {
  text-align: center; padding: 64px 22px;
  background: var(--navy); color: #fff;
}
.story-promise blockquote {
  font-family: "Josefin Sans", sans-serif; font-size: clamp(24px, 4vw, 36px);
  margin: 0 0 16px; color: #fff; letter-spacing: -.02em;
}
.story-promise p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto; }

.site-footer {
  padding: 36px 22px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  max-width: 1160px; margin: 0 auto;
}

.site-footer .wordmark { font-size: 18px; }
.site-footer p { font-size: 13px; color: var(--dim); margin: 0; }
.footer-nav { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.footer-nav a { padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--dim); text-decoration: none; border-radius: 16px; }
.footer-nav a:hover { color: var(--navy); background: var(--surface-subtle); }

.wrap { width: min(1160px, calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 200; top: 8px; left: 16px; padding: 10px 16px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 760px) {
  .cards, .belief-principles { grid-template-columns: 1fr; }
  .story-chapter { grid-template-columns: 1fr; gap: 8px; }
  .site-nav { display: none; }
  .simple-hero, .home-statement, .home-opportunity { padding: 48px 18px; }
}
