/* Outlasty site, in the Gently Reset / Nudgiboo family: warm cream, rounded type,
   thick outlines with hard shadows, Scout front and center. Colors from src/theme/tokens.ts. */
:root {
  --cream: #FEF9EF;
  --paper: #F7EEDC;
  --sand: #F3E6C8;
  --ink: #173C2B;
  --ink-soft: #4F5F55;
  --ink-faint: #7D887F;
  --forest: #174D32;
  --forest-soft: #22603F;
  --amber: #F58225;
  --amber-soft: #FFB27A;
  --gold: #FFC94A;
  --on-dark: #FEF9EF;
  --on-dark-soft: rgba(254, 249, 239, 0.8);
  --line: #173C2B;
  --line-dark: rgba(254, 249, 239, 0.25);
  --serif: 'Fredoka', 'Arial Rounded MT Bold', ui-rounded, sans-serif;
  --sans: 'Nunito', ui-rounded, system-ui, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --edge: 3px solid var(--ink);
  --drop: 0 5px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; font-weight: 600; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h1 em, h2 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(245, 130, 37, 0.45) 62%, rgba(245, 130, 37, 0.45) 90%, transparent 90%); padding: 0 4px; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.topo, .glow, .grain::after { display: none; }

.kicker { display: inline-block; font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #9A5A12; }

/* Buttons: outlined, hard shadow, press sinks in. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 20px; border: var(--edge); box-shadow: var(--drop);
  font-family: var(--serif); font-weight: 600; font-size: 19px; text-decoration: none; cursor: pointer; white-space: nowrap; color: var(--ink);
  transition: transform 120ms, box-shadow 120ms;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.btn-amber { background: var(--amber); }
.btn-ghost { background: #fff; }
.btn-ink { background: var(--forest); color: var(--on-dark); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 16px; border-radius: 16px; box-shadow: 0 4px 0 var(--ink); }
.btn .ico { width: 18px; height: 18px; }

.store { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 16px; background: #000; color: #fff; text-decoration: none; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5); transition: transform 150ms; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 24px; height: 24px; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--serif); font-weight: 600; font-size: 21px; }
.store small { font-size: 11px; font-weight: 500; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(254, 249, 239, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-pill { max-width: var(--max); margin: 0 auto; height: 76px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 24px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 17px; }
.nav-links a:hover { color: var(--amber); }

/* Hero */
.hero { position: relative; padding: 48px 0 110px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); margin: 18px 0 22px; }
.hero .lede { font-size: 20px; color: var(--ink-soft); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta div { padding: 8px 16px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; font-size: 15px; }
.hero-meta b { font-family: var(--serif); font-weight: 700; margin-right: 4px; }

/* Phone: chunky outline like the sibling sites. */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage::before { content: ''; position: absolute; width: 110%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%; background: var(--sand); }
.phone { position: relative; width: 320px; aspect-ratio: 9 / 19.3; border-radius: 52px; padding: 10px; background: var(--ink); box-shadow: 0 8px 0 rgba(23, 60, 43, 0.25); }
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: var(--ink); z-index: 3; }
.scout-peek { position: absolute; width: 150px; right: -100px; bottom: -10px; z-index: 5; pointer-events: none; animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
.test-hint { position: absolute; top: -16px; right: -26px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--gold); font-family: var(--serif); font-weight: 600; font-size: 15px; box-shadow: 0 4px 0 var(--ink); transform: rotate(5deg); }
.test-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* The app's own look, inside the phone: Nunito, tactile, chunky. */
.screen {
  position: relative; height: 100%; border-radius: 44px; background: #FCFAF2; overflow: hidden; color: var(--ink);
  font-family: 'Nunito', var(--sans); font-weight: 700; text-align: left;
  display: flex; flex-direction: column; padding: 62px 16px 18px; gap: 10px;
}
.screen .q-top { display: flex; justify-content: space-between; align-items: center; }
.screen .q-label { font-size: 11px; font-weight: 900; letter-spacing: 0.14em; color: var(--ink-soft); }
.screen .q-count { font-size: 12px; font-weight: 900; color: var(--ink-soft); }
.screen .bar { height: 10px; flex: none; border-radius: 99px; background: #F3EFE4; overflow: hidden; }
.screen .bar i { display: block; height: 100%; width: 0; background: #65A63D; border-radius: 99px; transition: width 400ms ease; }
.screen .scene { border-radius: 18px; padding: 14px; }
.screen .scene b { display: block; font-size: 11px; letter-spacing: 0.12em; }
.screen .scene p { font-weight: 900; font-size: 17px; line-height: 1.25; margin-top: 4px; color: var(--ink); }
.screen .q-prompt { font-weight: 900; font-size: 16px; }
.screen .opts { display: grid; gap: 8px; }
.screen .opt {
  font: inherit; font-size: 14px; text-align: left; color: var(--ink); cursor: pointer;
  background: #fff; border: 2px solid #E9E4D8; border-radius: 14px; padding: 10px 12px; box-shadow: 0 3px 0 #E9E4D8;
  transition: transform 100ms;
}
.screen .opt:not(:disabled):hover { border-color: #DCD5C4; }
.screen .opt:not(:disabled):active { transform: translateY(3px); box-shadow: none; }
.screen .opt.pick { border-color: #174D32; background: #E8F0DE; box-shadow: 0 3px 0 #174D32; }
.screen .opt.right { border-color: #65A63D; background: #E4F2D7; box-shadow: 0 3px 0 #4E8A2C; }
.screen .opt.wrong { border-color: #E8603F; background: #FFE6DE; box-shadow: 0 3px 0 #B9472C; }
.screen .opt:disabled { cursor: default; }
.screen .go {
  display: block; width: 100%; margin-top: auto; border: 0; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer;
  background: #D96A12; color: #fff; text-align: center; text-decoration: none; border-radius: 14px; padding: 12px; box-shadow: 0 4px 0 #A84F0A;
}
.screen .go:active { transform: translateY(4px); box-shadow: none; }
.screen .go:disabled { background: #F3EFE4; color: #7D887F; box-shadow: 0 4px 0 #E9E4D8; cursor: not-allowed; transform: none; }
.screen .feedback { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 20px; border-radius: 22px 22px 0 0; animation: rise 260ms ease-out; }
.screen .feedback.ok { background: #E4F2D7; color: #2F5F1A; }
.screen .feedback.nope { background: #FFE6DE; color: #9A3420; }
.screen .feedback.nope .go { background: #E8603F; box-shadow: 0 4px 0 #B9472C; }
.screen .feedback.ok .go { background: #65A63D; box-shadow: 0 4px 0 #4E8A2C; }
.screen .feedback strong { font-size: 18px; font-weight: 900; }
.screen .feedback p { font-size: 13px; line-height: 1.4; margin: 4px 0 12px; color: var(--ink); }
@keyframes rise { from { transform: translateY(100%); } }
.screen .result {
  margin: -62px -16px -18px; height: calc(100% + 80px); padding: 70px 18px 22px; background: #174D32; color: #fff;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.screen .ring { position: relative; width: 160px; height: 160px; margin-top: 6px; }
.screen .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.screen .ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.screen .ring .arc { transition: stroke-dashoffset 1400ms var(--ease); }
.screen .ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.screen .ring .num { font-size: 50px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.screen .ring small { font-size: 12px; opacity: 0.65; }
.screen .tier { background: #22603F; padding: 6px 14px; border-radius: 99px; font-weight: 900; font-size: 14px; }
.screen .result p { font-size: 14px; opacity: 0.8; line-height: 1.4; }
.screen .result .again { background: none; border: 0; color: #fff; opacity: 0.75; font: inherit; font-size: 14px; cursor: pointer; padding: 4px; }

/* Scenario band */
.marquee { background: var(--forest); color: var(--on-dark); border-top: var(--edge); border-bottom: var(--edge); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: slide 40s linear infinite; }
.marquee span { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 24px; font-weight: 600; white-space: nowrap; }
.marquee span .ico { color: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }

section { padding: 110px 0; position: relative; }
.head { max-width: 680px; margin-bottom: 56px; }
.head.center { margin: 0 auto 56px; text-align: center; }
.head h2 { font-size: clamp(34px, 4.4vw, 52px); margin-top: 12px; }
.head p { margin-top: 16px; font-size: 19px; color: var(--ink-soft); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border: var(--edge); border-radius: 26px; box-shadow: var(--drop); padding: 28px; }
.step .n { display: inline-block; font-family: var(--serif); font-weight: 700; font-size: 15px; padding: 4px 12px; border-radius: 999px; background: var(--sand); }
.step h3 { font-size: 26px; margin: 18px 0 8px; }
.step p { color: var(--ink-soft); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { position: relative; grid-column: span 2; min-height: 280px; border: var(--edge); border-radius: 26px; box-shadow: var(--drop); padding: 26px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: transform 200ms; }
.tile:hover { transform: translateY(-3px) rotate(-0.4deg); }
.tile.wide { grid-column: span 3; }
.tile .badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; border: 2.5px solid var(--ink); }
.tile h3 { font-size: 30px; color: var(--ink); }
.tile p { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.tile .q { margin-top: 14px; padding: 12px 14px; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; font-weight: 800; font-size: 15px; color: var(--ink); }
.tile .art { position: absolute; right: -16px; top: -16px; width: 150px; height: 150px; opacity: 0.16; }

.dark { background: var(--forest); color: var(--on-dark); border-top: var(--edge); border-bottom: var(--edge); }
.dark .kicker { color: var(--gold); }
.dark .head p { color: var(--on-dark-soft); }
.panel.cta { background: var(--sand); color: var(--ink); border: var(--edge); border-radius: 36px; box-shadow: var(--drop); max-width: var(--max); margin: 0 auto 100px; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill { background: var(--cream); color: var(--ink); border: var(--edge); border-radius: 22px; box-shadow: 0 5px 0 #0D3320; padding: 26px; }
.skill .ico { width: 32px; height: 32px; color: var(--amber); }
.skill h3 { font-size: 23px; margin: 16px 0 6px; }
.skill p { font-size: 16px; color: var(--ink-soft); }

.scout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.scout-stage { aspect-ratio: 1; border: var(--edge); border-radius: 36px; box-shadow: var(--drop); background: var(--sand); display: grid; place-items: center; }
.scout-stage img { width: 68%; transition: opacity 200ms, transform 300ms var(--ease); }
.scout-stage img.swap { opacity: 0; transform: scale(0.92); }
.scout h2 { font-size: clamp(34px, 4.4vw, 52px); margin: 12px 0 18px; }
.scout p { font-size: 19px; color: var(--ink-soft); }
.moods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mood { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 9px 18px; border-radius: 999px; border: 2.5px solid var(--ink); background: #fff; box-shadow: 0 3px 0 var(--ink); }
.mood:active { transform: translateY(3px); box-shadow: none; }
.mood[aria-pressed='true'] { background: var(--gold); }

.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.faq-grid .head { margin-bottom: 0; }
.faq { display: grid; gap: 14px; }
.faq details { background: #fff; border: var(--edge); border-radius: 20px; box-shadow: 0 4px 0 var(--ink); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-family: var(--serif); font-weight: 600; font-size: 21px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--sand); transition: transform 250ms; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); }
.faq details a { color: #9A5A12; }

.cta { text-align: center; padding: 72px 28px; }
.cta img { width: 160px; margin: 0 auto 10px; }
.cta h2 { font-size: clamp(36px, 5vw, 60px); }
.cta p { margin: 16px auto 32px; font-size: 19px; color: var(--ink-soft); }
.cta .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

footer { padding: 40px 0 56px; border-top: 2.5px solid rgba(23, 60, 43, 0.15); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; }
.foot-top p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }
.foot-cols { display: flex; gap: 64px; }
.foot-cols h4 { margin: 0 0 12px; font-family: var(--serif); font-size: 16px; }
.foot-cols a { display: block; text-decoration: none; color: var(--ink-soft); font-size: 16px; margin-bottom: 8px; }
.foot-cols a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; font-size: 14px; color: var(--ink-faint); }

.doc-hero { background: var(--sand); border-bottom: var(--edge); padding: 72px 0 56px; }
.doc-hero h1 { font-size: clamp(42px, 6vw, 64px); margin-top: 12px; }
.doc-hero p { margin-top: 14px; color: var(--ink-soft); }
.doc-hero a { color: #9A5A12; }
.doc { max-width: 760px; padding: 64px 28px 110px; }
.doc h2 { font-size: 28px; margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-soft); margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc a { color: #9A5A12; }
.doc strong { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 80ms; } .reveal.d2 { transition-delay: 160ms; } .reveal.d3 { transition-delay: 240ms; }

@media (max-width: 1240px) {
  .scout-peek { width: 110px; right: -6px; bottom: -30px; }
}
@media (max-width: 1020px) {
  .hero-grid, .scout, .faq-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lede { margin: 0 auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .phone-stage { margin-top: 36px; }
  .faq-grid { gap: 32px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { grid-column: span 1; }
  .tile:last-child { grid-column: span 2; }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .scout-stage { max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .wrap, .nav-pill { padding: 0 18px; }
  .nav-pill { height: 66px; }
  .nav-links { display: none; }
  section { padding: 80px 0; }
  .hero { padding: 28px 0 80px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta > * { justify-content: center; }
  .phone { width: 280px; }
  .scout-peek { width: 96px; right: -10px; bottom: -48px; }
  .test-hint { right: 0; }
  .steps, .bento, .skills { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile:last-child { grid-column: span 1; min-height: 240px; }
  .panel.cta { margin: 0 14px 72px; border-radius: 28px; }
  .doc { padding: 48px 18px 90px; }
  .doc-hero { padding: 48px 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
