@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500&display=swap');

:root {
  color-scheme: light dark;

  /* Wordmark font — Jost (geometric, light, OFL/free; falls back to Gill Sans, then system) */
  --wordmark: "Jost", "Gill Sans MT", "Gill Sans", "Gill Sans Nova", Calibri, "Trebuchet MS", sans-serif;

  /* Brand — derived from the navy app icon */
  --navy:        #0a0e1a;
  --navy-card-1: #1b2440;
  --navy-card-2: #0c1222;
  --accent:      #3b82f6;
  --accent-hi:   #60a5fa;

  /* Light theme surfaces */
  --ink:     #1d1d1f;
  --ink-dim: #6e6e73;
  --bg:      #ffffff;
  --surface: #ffffff;
  --line:    #e0e0e5;
  --tint:    #f3f6fc;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; margin-top: 2.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
.meta { color: var(--ink-dim); font-size: .95rem; }
hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
ul { padding-left: 1.25rem; }

/* ---------- Top nav ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: .25rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.nav .brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--wordmark);
  font-weight: 500; font-size: 1.05rem; color: var(--ink);
  text-transform: uppercase; letter-spacing: .04em;
}
.nav .brand:hover { text-decoration: none; }
.nav .brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav .spacer { flex: 1; }
.nav a { font-size: .95rem; color: var(--ink-dim); font-weight: 500; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 3rem 1.5rem 3.25rem;
  border-radius: 24px;
  background:
    radial-gradient(120% 120% at 50% 0%, var(--navy-card-1) 0%, var(--navy-card-2) 60%, var(--navy) 100%);
  box-shadow: 0 18px 40px -22px rgba(10, 14, 26, .75);
  overflow: hidden;
}
.hero::after { /* subtle top sheen */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.hero-icon {
  width: 104px; height: 104px; border-radius: 23px;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08) inset;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: 2.6rem; margin: 0; color: #fff; }
.hero h1.wordmark {
  /* Wordmark set in Jost (geometric, light); see --wordmark for fallbacks */
  font-family: var(--wordmark);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-indent: .06em;          /* offset trailing letter-spacing so it stays optically centred */
}
@media (max-width: 420px) {
  .hero h1.wordmark { font-size: 2rem; letter-spacing: .05em; text-indent: .05em; }
}
.hero .tagline {
  font-size: 1.18rem; line-height: 1.5; color: #c3cbe0;
  max-width: 30rem; margin: .85rem auto 0;
}
.badge-row { margin: 1.9rem 0 .5rem; }
.hero-sub { margin: .35rem 0 0; font-size: .9rem; color: #8a93ac; }

/* App Store badge / button */
.appstore-badge {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  padding: .6rem 1.3rem; border-radius: 12px;
  background: #fff; color: var(--navy);
  line-height: 1.15; text-align: left;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,.5);
}
.appstore-badge:hover { text-decoration: none; transform: translateY(-1px); }
.appstore-badge { transition: transform .15s ease, opacity .15s ease; }
.appstore-badge .kicker { font-size: .72rem; font-weight: 500; color: var(--ink-dim); }
.appstore-badge .store  { font-size: 1.15rem; font-weight: 700; }
.appstore-badge.soon { cursor: default; opacity: .92; }
.appstore-badge.soon:hover { transform: none; }

/* ---------- Screenshots / phone frames ---------- */
/* Carousel: keeps ~4 phones visible, the rest scroll/swipe into view.
   Pure CSS scroll-snap; the arrow buttons are progressive enhancement. */
.carousel { position: relative; margin: 2.5rem 0 1rem; }

.shots {
  --visible: 4;
  --gap: 1.5rem;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .5rem;            /* keep phone shadows from clipping */
  scrollbar-width: none;            /* Firefox */
}
.shots::-webkit-scrollbar { display: none; }  /* WebKit */

.shots .phone {
  flex: 0 0 calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
  scroll-snap-align: start;
}

@media (max-width: 760px) { .shots { --visible: 3; } }
@media (max-width: 560px) { .shots { --visible: 2; } }
@media (max-width: 380px) { .shots { --visible: 1.15; } } /* peek of the next */
@media (prefers-reduced-motion: reduce) { .shots { scroll-behavior: auto; } }

/* Arrow controls */
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 1.45rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -8px rgba(10,14,26,.5);
  transition: opacity .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.car-btn:hover { color: var(--accent); border-color: #cdd8ee; }
.car-btn:active { transform: translateY(-50%) scale(.94); }
.car-btn.prev { left: -10px; }
.car-btn.next { right: -10px; }
.car-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .car-btn { display: none; } } /* touch users swipe */
.phone {
  position: relative;
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(160deg, #2a2f3e, #11141d);
  box-shadow: 0 16px 34px -20px rgba(10,14,26,.7), 0 0 0 1px rgba(0,0,0,.15);
}
.phone::before { /* faux notch — shown only on empty placeholder frames */
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 18px; border-radius: 0 0 12px 12px; background: #11141d; z-index: 2;
}
.phone.filled::before { display: none; } /* real screenshots already include the status bar */
.phone .screen {
  /* Match the iPhone 17 Pro Max screenshot ratio (1320 x 2868) exactly so
     object-fit: cover fills the screen with no side/top cropping. */
  width: 100%; aspect-ratio: 1320 / 2868; border-radius: 22px; overflow: hidden;
  background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .screen .ph { /* placeholder label until a screenshot is dropped in */
  color: #9a9aa2; font-size: .82rem; padding: 1rem; line-height: 1.4;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}
.feature {
  padding: 1.4rem; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.feature:hover {
  border-color: #cdd8ee;
  box-shadow: 0 10px 26px -18px rgba(10,14,26,.55);
  transform: translateY(-2px);
}
.feature .ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--tint); color: var(--accent);
  margin-bottom: .85rem;
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--ink-dim); font-size: .95rem; }

/* ---------- Callout band ---------- */
.callout {
  margin: 2.5rem 0; padding: 1.5rem 1.6rem;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 14px; background: var(--tint);
}
.callout h2 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { margin: 1.5rem 0; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: .25rem 1.1rem; margin-bottom: .75rem; background: var(--surface);
}
.faq details[open] { border-color: #cdd8ee; }
.faq summary { cursor: pointer; font-weight: 600; padding: .8rem 0; }
.faq summary::marker { color: var(--accent); }
.faq p { margin: 0 0 1rem; color: #444; }

/* ---------- Footer ---------- */
footer {
  margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-dim); font-size: .9rem; text-align: center;
}
footer a { color: var(--ink-dim); }
footer a:hover { color: var(--accent); }

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7e7ea; --ink-dim: #9a9aa2;
    --bg: #0c0d11; --surface: #131419;
    --line: #262830; --tint: #161a26;
  }
  .feature:hover { border-color: #38415c; }
  .faq details[open] { border-color: #38415c; }
  .faq p { color: #c7c7cf; }
  .appstore-badge .kicker { color: #6b7280; }
  .phone .screen { background: #0d0f15; }
}
