:root {
  --bg: #F3F2F2;
  --surface: #EAE9E9;
  --text: #201E1D;
  --text-secondary: #605D5D;
  --text-tertiary: #7D7979;
  --accent: #036AAA;
  --divider: rgba(32, 30, 29, 0.14);
  --card-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1F1E1D;
    --text: #F3F2F2;
    --text-secondary: #D7D3D3;
    --text-tertiary: #BAB6B6;
    --accent: #4FB3E8;
    --divider: rgba(243, 242, 242, 0.14);
    --card-bg: #1F1E1D;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

nav.site-nav {
  padding: 22px 0;
}

nav.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}

.brand .wordmark {
  height: 26px;
  width: auto;
  display: block;
  position: relative;
  top: 2px;
  left: 2px;
}

@media (prefers-color-scheme: dark) {
  .brand .wordmark { filter: invert(1) brightness(1.6); }
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Headings */

h1, h2, h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(32px, 6vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 30px); }
h3 { font-size: 19px; }

p { margin: 0 0 16px; }

a { color: var(--accent); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  border-color: var(--divider);
  color: var(--text);
}

/* Footer */

footer.site-footer {
  border-top: 2px solid var(--divider);
  padding: 32px 0 48px;
  margin-top: 80px;
}

footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

footer.site-footer .links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.site-footer .links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

footer.site-footer .copyright {
  color: var(--text-tertiary);
  font-size: 14px;
}

/* Responsive helpers */

.wide-scroll {
  overflow-x: auto;
}


/* Accessibility */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Prevent accidental overflow on narrow screens */
body { overflow-x: hidden; }


/* Homepage */

  .hero {
    text-align: center;
    /* Flat white, matching the arc image's own top row exactly (sampled:
       #FEFEFE) — the image sits below the text as its own
       naturally-proportioned band (see .hero-arc), so there's no
       cropping/zoom math that could push the arc up into the text on some
       viewport shape, and no seam where this background meets the image. */
    background: #ffffff;
  }

  .hero-inner {
    padding: 90px 24px 40px;
    max-width: 640px;
    margin: 0 auto;
  }

  .hero-arc {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 0;
  }

  @media (prefers-color-scheme: dark) {
    .hero-arc { filter: brightness(0.85) saturate(0.9); }
  }

  .hero .mark {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    margin-bottom: 24px;
  }

  /* Fixed, not var(--text)/var(--text-secondary) — this hero band stays a
     light, photographic sky+arc regardless of site theme (the image itself
     can't adapt to dark mode), so the text over it must stay dark in both
     themes too, rather than flipping to light-on-dark and disappearing. */
  .hero h1 {
    color: #201E1D;
    margin-bottom: 16px;
  }

  .hero p.tagline {
    font-size: 19px;
    letter-spacing: -0.025em;
    color: #605D5D;
    max-width: 480px;
    margin: 0 auto 32px;
  }

  .hero .actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #14324a;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
  }

  .app-store-btn svg { width: 22px; height: 22px; }
  .app-store-btn .lines { text-align: left; line-height: 1.2; }
  .app-store-btn .lines small { display: block; font-size: 11px; font-weight: 400; opacity: 0.85; }
  .app-store-btn .lines span { font-size: 16px; }

  section.features {
    padding: 90px 0 30px;
  }

  .section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
  }

  .section-head p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-top: 12px;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .feature-card {
    background: var(--card-bg);
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  }

  @media (prefers-color-scheme: dark) {
    .feature-card { box-shadow: 0 2px 14px rgba(0,0,0,0.3); }
  }

  .feature-card .glyph {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    background: var(--surface);
  }

  .feature-card h3 { margin-bottom: 8px; }
  .feature-card p { color: var(--text-secondary); font-size: 14.5px; margin: 0; }

  @media (max-width: 760px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 520px) {
    .feature-grid { grid-template-columns: 1fr; }
  }

  section.showcase {
    padding: 100px 0;
  }

  .showcase-row {
    display: flex;
    align-items: center;
    gap: 64px;
    margin-bottom: 90px;
  }

  .showcase-row:last-child { margin-bottom: 0; }

  .showcase-row:nth-child(even) { flex-direction: row-reverse; }

  .showcase-row img {
    width: 240px;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    flex-shrink: 0;
  }

  .showcase-copy h2 { margin-bottom: 14px; }
  .showcase-copy p { color: var(--text-secondary); font-size: 16.5px; }

  .chat-mock {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
  }

  .bubble {
    background: var(--accent);
    color: white;
    border-radius: 20px 20px 4px 20px;
    padding: 16px 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    font-size: 14px;
    line-height: 1.5;
  }

  .bubble strong {
    display: block;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 8px;
  }

  .bubble-line { opacity: 0.95; }

  .bubble-link {
    margin-top: 8px;
    text-decoration: underline;
    opacity: 0.85;
    font-size: 13px;
    word-break: break-all;
  }

  @media (max-width: 680px) {
    .showcase-row, .showcase-row:nth-child(even) {
      flex-direction: column;
      text-align: center;
      gap: 32px;
    }
  }

  section.cta {
    text-align: center;
    padding: 70px 0 100px;
  }

  section.cta h2 { margin-bottom: 16px; }
  section.cta p { color: var(--text-secondary); font-size: 17px; margin-bottom: 32px; }


/* Help page */

  .page-head {
    padding: 56px 0 24px;
  }

  .page-head p {
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 520px;
    margin-top: 12px;
  }

  main {
    padding-bottom: 60px;
  }

  .help-section {
    border-top: 2px solid var(--divider);
    padding: 40px 0;
  }

  .help-section h2 {
    margin-bottom: 24px;
  }

  .point {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 14px 0;
    border-top: 1px solid var(--divider);
  }

  .point:first-of-type { border-top: none; }

  .point dt {
    font-weight: 600;
    font-size: 15px;
  }

  .point dd {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
  }

  @media (max-width: 620px) {
    .point { grid-template-columns: 1fr; gap: 4px; }
  }

  .tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .tag {
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 500;
  }

  .tag.red { background: #FFE0D9; color: #AE1800; }
  .tag.orange { background: #FFE3C9; color: #B34305; }
  .tag.yellow { background: #FFEDBF; color: #8A5A00; }
  .tag.green { background: #D3F5E6; color: #146A45; }

  @media (prefers-color-scheme: dark) {
    .tag.red { background: #7C1405; color: #FFC4B8; }
    .tag.orange { background: #7F3006; color: #FFC78E; }
    .tag.yellow { background: #4D3800; color: #FFE085; }
    .tag.green { background: #0B3A26; color: #9CE8C4; }
  }


/* Privacy page */

  .page {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 24px 64px;
  }

  .page h1 {
    margin: 12px 0 8px;
  }

  .effective-date {
    color: var(--text-secondary);
    font-size: 14px;
  }

  .summary {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0 40px;
    font-size: 15px;
    color: var(--text-secondary);
  }

  .summary strong { color: var(--text); }

  .page h2 {
    font-size: 19px;
    margin: 40px 0 12px;
  }

  .page h2 .num {
    color: var(--accent);
    margin-right: 8px;
  }

  .page ul {
    margin: 0 0 16px;
    padding-left: 22px;
  }

  .page li { margin-bottom: 8px; }
  .page li:last-child { margin-bottom: 0; }

  .page a {
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
  }

  .page hr {
    border: none;
    border-top: 2px solid var(--divider);
    margin: 48px 0 32px;
  }

  .contact-block {
    color: var(--text-secondary);
    font-size: 14px;
  }

  .contact-block .contact-name {
    color: var(--text);
    font-weight: 600;
  }

  .contact-block p { margin: 0 0 4px; }
