/* Sht Trip — landing page. Tokens ported verbatim from the app's
   design-mocks/shared.css (authoritative manifest v1.0.0). */

:root {
  /* color */
  --bg:        #1A2E22;   /* deep forest green */
  --bg-deep:   #142219;
  --surface:   #F5F0E8;   /* warm cream */
  --surface-2: #ECE5D7;
  --primary:   #2D5A3D;
  --primary-2: #3a7150;
  --accent:    #C4813A;   /* AMBER — log universe only */
  --accent-2:  #d59453;
  --text-dark: #F0EDE6;   /* on bg */
  --text-card: #1C1C1E;   /* on cream */
  --muted:     #8A9E8F;
  --muted-2:   #6B8275;

  /* type */
  --display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --tracked: 0.06em;

  /* radius / shadow */
  --r-card: 16px;
  --r-btn:  14px;
  --r-pill: 999px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.22);
  --shadow-phone: 0 30px 70px -20px rgba(0,0,0,0.55), 0 8px 24px rgba(0,0,0,0.3);

  /* layout */
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ── reusable primitives ─────────────────────────────────── */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: var(--tracked); text-transform: uppercase;
  color: var(--accent-2); margin: 0 0 18px;
}
.eyebrow.on-cream { color: var(--accent); }

.display {
  font-family: var(--display); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1; margin: 0;
}

.lede { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 var(--body); letter-spacing: -0.005em;
  padding: 16px 24px; border-radius: var(--r-btn);
  border: none; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-cream { background: var(--surface); color: var(--text-card); box-shadow: var(--shadow-card); }
.btn-cream:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.3); }
.btn-amber { background: var(--accent); color: #fff; }
.btn-amber:hover { background: var(--accent-2); }
.btn-ghost  { background: rgba(245,240,232,0.06); color: var(--text-dark); border: 1px solid rgba(245,240,232,0.16); }
.btn-ghost:hover { background: rgba(245,240,232,0.12); }

/* app-store style badge buttons */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface); color: var(--text-card);
  border-radius: var(--r-btn); padding: 11px 20px 11px 18px;
  text-decoration: none; box-shadow: var(--shadow-card);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,0.3); }
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store .lbl { display: flex; flex-direction: column; line-height: 1.15; }
.store .lbl small { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; opacity: .6; }
.store .lbl b { font-family: var(--display); font-weight: 700; font-size: 18px; }
.store.dark { background: rgba(245,240,232,0.06); color: var(--text-dark); border: 1px solid rgba(245,240,232,0.16); box-shadow: none; }
.store.dark:hover { background: rgba(245,240,232,0.12); }

/* phone screenshots already ship with a device bezel baked in —
   we just float them with depth, no second frame. */
.phone { width: 100%; height: auto; border-radius: 26px; box-shadow: var(--shadow-phone); }

/* sections */
section { position: relative; }
.sec-dark  { background: var(--bg); padding: clamp(72px, 10vw, 130px) 0; }
.sec-deep  { background: var(--bg-deep); padding: clamp(72px, 10vw, 130px) 0; }
.sec-cream { background: var(--surface); color: var(--text-card); padding: clamp(72px, 10vw, 130px) 0; }
.sec-cream .lede { color: rgba(28,28,30,0.6); }
.sec-cream .eyebrow { color: var(--accent); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ════════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  transition: background .25s ease, backdrop-filter .25s ease, padding .25s ease, box-shadow .25s ease;
}
.nav.scrolled {
  background: rgba(20,34,25,0.82);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  padding-block: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; color: var(--text-dark); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.wordmark .dot { color: var(--accent); }
.wordmark .mark { width: 30px; height: 30px; flex-shrink: 0; }
.nav.scrolled .wordmark .mark { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text-dark); }
.nav .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 70px; overflow: hidden; position: relative;
  background: radial-gradient(120% 90% at 78% 8%, #21402e 0%, var(--bg) 46%, var(--bg-deep) 100%);
}
.hero .route-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }
.hero .route-bg path.line { fill: none; stroke: rgba(196,129,58,0.45); stroke-width: 2; stroke-dasharray: 9 7; }
.hero .route-bg path.draw {
  fill: none; stroke: rgba(240,237,230,0.35); stroke-width: 2.5;
  stroke-dasharray: 2600; stroke-dashoffset: 2600;
  animation: draw 4.5s ease forwards .3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .route-bg circle { fill: var(--accent); }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(1.95rem, 8.5vw, 4.5rem); line-height: 1.04; margin: 0;
  overflow-wrap: break-word; }
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero .sub { font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--muted);
  font-style: italic; margin: 22px 0 36px; max-width: 30ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .free-note { margin-top: 18px; font-size: 13px; color: var(--muted-2); }

.hero-phone { justify-self: center; position: relative; max-width: 340px; }
.hero-phone img { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-phone::after {
  content: ""; position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  width: 70%; height: 36px; background: rgba(0,0,0,0.5); filter: blur(26px); border-radius: 50%;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .sub { margin-inline: auto; }
  .hero .actions, .hero .store-badges { justify-content: center; }
  .hero-phone { max-width: 270px; margin-top: 14px; }
}

/* ════════════════════════════════════════════════════════════
   WHAT IS IT  (two-column)
═══════════════════════════════════════════════════════════ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.two-col.flip .col-text { order: 2; }
.two-col h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 22px; }
.two-col p { font-size: 1.08rem; line-height: 1.65; margin: 0 0 18px; }
.two-col .phone-hold { justify-self: center; max-width: 320px; }
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; text-align: center; }
  .two-col.flip .col-text { order: 0; }
  .two-col .phone-hold { max-width: 260px; }
}

/* ════════════════════════════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════════════════════════ */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto clamp(44px, 6vw, 70px); }
.sec-head h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.04; margin: 0 0 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); color: var(--text-card);
  border-radius: var(--r-card); padding: 26px 24px 28px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.28); }
.feature .ico { font-size: 30px; line-height: 1; margin-bottom: 16px; }
.feature h3 { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.feature p { font-size: 0.97rem; line-height: 1.55; color: rgba(28,28,30,0.66); margin: 0; }
.feature p em { font-style: italic; color: var(--accent); }

/* ════════════════════════════════════════════════════════════
   LOG BOOK SPOTLIGHT  (amber-accented, the hero feature)
═══════════════════════════════════════════════════════════ */
.logbook .two-col h2 em { color: var(--accent-2); font-style: italic; }
.logbook .badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(196,129,58,0.10); border: 1px solid rgba(196,129,58,0.3);
  border-radius: var(--r-pill); padding: 8px 16px 8px 10px;
}
.badge .medal {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent));
  display: grid; place-items: center; font-size: 16px;
  box-shadow: 0 0 0 3px rgba(196,129,58,0.18);
}
.badge b { font-family: var(--display); font-weight: 700; font-size: 0.98rem; }
.badge small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }

/* grade chips */
.grades { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.grade {
  background: rgba(245,240,232,0.05); border: 1px solid rgba(245,240,232,0.1);
  border-radius: var(--r-card); padding: 16px 20px; min-width: 120px; flex: 1;
}
.grade .g { font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: .9; color: var(--accent-2); }
.grade .g.b { color: var(--text-dark); }
.grade .g.d { color: var(--muted); }
.grade p { margin: 8px 0 0; font-size: 0.86rem; color: var(--muted); line-height: 1.4; }

/* ════════════════════════════════════════════════════════════
   SCREENSHOTS CAROUSEL
═══════════════════════════════════════════════════════════ */
.carousel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.carousel-track { display: flex; gap: 26px; width: max-content; animation: scroll 46s linear infinite; }
.carousel:hover .carousel-track { animation-play-state: paused; }
.carousel-track img { width: 230px; height: auto; border-radius: 22px; box-shadow: var(--shadow-phone); flex-shrink: 0; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .carousel-track { animation: none; } .hero .route-bg path.draw { animation: none; stroke-dashoffset: 0; } .hero-phone img { animation: none; } }

/* ════════════════════════════════════════════════════════════
   DOWNLOAD CTA
═══════════════════════════════════════════════════════════ */
.cta { text-align: center;
  background: radial-gradient(110% 120% at 50% 0%, #22402e 0%, var(--bg) 55%, var(--bg-deep) 100%); }
.cta h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.02; margin: 0 0 18px; }
.cta .lede { max-width: 36ch; margin: 0 auto 36px; }
.cta .store-badges { justify-content: center; }

/* ════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer { background: var(--bg-deep); padding: 54px 0 40px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer .row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer .links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer .links a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .15s; }
.footer .links a:hover { color: var(--text-dark); }
.footer .made { margin: 26px 0 6px; font-style: italic; color: var(--muted-2); font-size: 14px; }
.footer .copy { font-size: 13px; color: var(--muted-2); }

/* ════════════════════════════════════════════════════════════
   TRUST STRIP
═══════════════════════════════════════════════════════════ */
.trust { background: var(--bg-deep); border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05); padding: 30px 0; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust-item { position: relative; padding-left: 18px; }
.trust-item::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px;
  border-radius: 3px; background: var(--accent); opacity: .8; }
.trust-item b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.trust-item span { display: block; margin-top: 3px; font-size: 0.86rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 760px) { .trust-row { grid-template-columns: repeat(2, 1fr); gap: 20px 18px; } }

/* ════════════════════════════════════════════════════════════
   HOW IT WORKS — steps
═══════════════════════════════════════════════════════════ */
.steps { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 32px;
  background: rgba(245,240,232,0.035); border: 1px solid rgba(245,240,232,0.08);
  border-radius: var(--r-card); }
.step-no { font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--accent-2); letter-spacing: 0.04em; }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; margin: 14px 0 10px; }
.step p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--muted); }
/* connector arrows between steps on wide screens */
.step:not(:last-child)::after { content: "→"; position: absolute; right: -16px; top: 50%;
  transform: translateY(-50%); color: var(--muted-2); font-size: 18px; z-index: 2; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -15px; transform: translateX(50%); }
}

/* ════════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════ */
.faq-wrap { max-width: 820px; }
.faq-list { margin-top: 8px; border-top: 1px solid rgba(28,28,30,0.12); }
.faq-list details { border-bottom: 1px solid rgba(28,28,30,0.12); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: -0.01em; color: var(--text-card);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .chev { width: 14px; height: 14px; flex-shrink: 0; position: relative; }
.faq-list .chev::before, .faq-list .chev::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.faq-list .chev::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-list .chev::after  { top: 0; left: 6px; width: 2px; height: 14px; }
.faq-list details[open] .chev::after { transform: scaleY(0); opacity: 0; }
.faq-list details p { margin: 0 0 22px; font-size: 1.02rem; line-height: 1.65;
  color: rgba(28,28,30,0.68); max-width: 64ch; }
.faq-list details p a { color: var(--accent); text-underline-offset: 3px; }

/* ════════════════════════════════════════════════════════════
   FOOTER (multi-column)
═══════════════════════════════════════════════════════════ */
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.foot-brand .wordmark { margin-bottom: 16px; }
.foot-brand .wordmark .mark { width: 30px; height: 30px; }
.foot-brand .made { margin: 0 0 22px; max-width: 30ch; font-style: italic; color: var(--muted-2); font-size: 14px; line-height: 1.5; }
.foot-brand .store { padding: 9px 16px 9px 14px; }
.foot-brand .store .lbl b { font-size: 16px; }
.foot-col h4 { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: var(--tracked);
  text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px; }
.foot-col a { display: block; text-decoration: none; font-size: 14px; color: var(--muted);
  padding: 6px 0; transition: color .15s; }
.foot-col a:hover { color: var(--text-dark); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.06); }
.foot-bottom .copy { font-size: 13px; color: var(--muted-2); margin: 0; }
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
