/* planyourmile.in v2 · one stylesheet for the home, about, sample trip and legal pages.
   Palette and fonts are fixed by the owner (BRIEF-PYM-SITE-V2): bg #0a0a1a, surface #111127, amber #FBBF24,
   teal #14CCAD, indigo #6366F1; DM Serif Display (headings), Inter (body), Space Grotesk (labels and numbers).
   Colour comes from the scene, not from a re-theme. Fonts are self-hosted latin subsets (SIL OFL). */

@font-face { font-family: "Inter"; src: url(fonts/inter-var.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk-var.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url(fonts/dm-serif-display.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url(fonts/dm-serif-display-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0a1a; --surface: #111127; --surface-2: #17173a; --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --text: #fff; --body: rgba(255, 255, 255, .8); --muted: #A1A1AA;
  --accent: #FBBF24; --accent-hover: #F59E0B; --copper: #D97706; --teal: #14CCAD; --indigo: #6366F1;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --label: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { background: var(--bg); color: var(--body); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: #1a1203; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

h1, h2, h3 { color: var(--text); font-weight: 400; }
h2 { font: 400 clamp(30px, 4.4vw, 46px)/1.12 var(--serif); letter-spacing: -.005em; margin: 10px 0 18px; text-wrap: balance; }
h3 { font: 600 18px/1.35 var(--sans); margin: 14px 0 6px; }
.eyebrow { font: 600 12px/1.4 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.eyebrow span { color: var(--muted); margin-right: 10px; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--body); max-width: 34em; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.top.solid, .page .top { background: rgba(10, 10, 26, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 18px/1 var(--label); letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.brand:hover { color: var(--text); }
.top nav { display: none; margin-left: auto; gap: 26px; }
.top nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font: 500 14px/1 var(--sans); }
.top nav a:hover { color: var(--text); }
.pill { margin-left: auto; background: var(--accent); color: #1a1203; text-decoration: none; font: 600 14px/1 var(--label); padding: 11px 16px; border-radius: 999px; white-space: nowrap; }
.pill:hover { background: var(--accent-hover); color: #1a1203; }
@media (min-width: 900px) { .top nav { display: flex; } .pill { margin-left: 8px; } }

/* ---------- buttons ---------- */
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.ctas.center { justify-content: center; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px/1 var(--label); border-radius: 999px; padding: 16px 24px; }
.btn.play { background: var(--accent); color: #1a1203; box-shadow: 0 4px 24px rgba(251, 191, 36, .18); transition: transform .3s var(--ease), background .2s; }
.btn.play:hover { background: var(--accent-hover); color: #1a1203; transform: translateY(-1px); }
/* The current site's CTA "pulse-glow", rebuilt on opacity so it stays on the compositor */
.btn.play::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 40px rgba(251, 191, 36, .5), 0 0 64px rgba(251, 191, 36, .22); animation: cta-glow 3s ease infinite; }
@keyframes cta-glow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.quiet-link { color: rgba(255, 255, 255, .86); text-decoration: none; font: 500 15px/1.4 var(--sans); border-bottom: 1px solid rgba(255, 255, 255, .28); padding-bottom: 2px; }
.quiet-link:hover { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; overflow: hidden; isolation: isolate; background: #0A0E26; }
.scene { position: absolute; inset: 0; container-type: size; z-index: -1; }
/* Keep the painting as a single image across every crop. */
.stage { position: absolute; left: 50%; top: 50%; width: max(100cqw, 160cqh); height: max(100cqh, 62.5cqw); transform: translate(-50%, -50%); }
.hero-layer, .route-trace { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-layer { z-index: 0; }
.route-trace { z-index: 4; }
@media (max-aspect-ratio: 1/1) { .stage { transform: translate(-69%, -50%); } }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 14, 38, .6) 0%, rgba(10, 14, 38, .15) 38%, transparent 55%, rgba(10, 10, 26, .0) 85%, var(--bg) 100%); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .scene::after { background: linear-gradient(90deg, rgba(10, 14, 38, .72) 0%, rgba(10, 14, 38, .35) 34%, transparent 52%), linear-gradient(180deg, transparent 90%, var(--bg) 100%); }
}

/* Diffuse painted light over the ridge, with no composited silhouette. */
.pulse { position:absolute; top:39%; left:49%; width:39%; height:15%; pointer-events:none; z-index:1; }
.wing { position:absolute; top:18%; height:54%; width:52%; filter:blur(21px); mix-blend-mode:screen; border-radius:50%; opacity:0; will-change:transform,opacity; }
.wing.l { right:50%; transform-origin:right center; background:radial-gradient(ellipse at right,rgba(217,119,6,.44),rgba(99,102,241,.24) 45%,transparent 72%); animation:burst-l 6s infinite cubic-bezier(.2,.8,.3,1); }
.wing.r { left:50%; transform-origin:left center; background:radial-gradient(ellipse at left,rgba(251,191,36,.50),rgba(20,204,173,.24) 45%,transparent 72%); animation:burst-r 6s infinite cubic-bezier(.2,.8,.3,1); }
.wing.w2 { animation-delay: 2s; } .wing.w3 { animation-delay: 4s; }
@keyframes burst-l { 0% { transform: scaleX(.05) scaleY(.2) skewY(10deg); opacity: 0; } 15% { opacity: .8; } 100% { transform: scaleX(1.8) scaleY(1.6) skewY(-5deg); opacity: 0; } }
@keyframes burst-r { 0% { transform: scaleX(.05) scaleY(.2) skewY(-10deg); opacity: 0; } 15% { opacity: .8; } 100% { transform: scaleX(1.8) scaleY(1.6) skewY(5deg); opacity: 0; } }
.core { position:absolute; left:51%; top:55%; width:70%; height:118%; transform:translate(-50%,-50%);
  background:radial-gradient(ellipse,rgba(251,191,36,.72),rgba(217,119,6,.35) 28%,rgba(20,204,173,.12) 50%,transparent 71%);
  filter:blur(20px); mix-blend-mode:screen; animation:core-pulse 4s ease-in-out infinite alternate; will-change:transform,opacity; }
@keyframes core-pulse { 0% { transform: translate(-50%, -50%) scale(.8); opacity: .6; } 100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } }

/* Route line: draws Bengaluru → Hampi up the road, rests, fades, draws again. The only other loop. */
.route { stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(251, 191, 36, .6)); animation: route 9s var(--ease) infinite; }
@keyframes route { 0% { stroke-dashoffset: 1; opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.pin { position: absolute; z-index: 5; transform: translate(-50%, -140%); font: 600 12px/1 var(--label); letter-spacing: .06em; color: #fff; background: rgba(10, 10, 26, .62); border: 1px solid var(--line-2); padding: 6px 10px; border-radius: 999px; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pin b { color: var(--accent); font-weight: 600; margin-left: 4px; }
.pin.from { left: 56%; top: 83%; transform: translate(-118%, -50%); }
.pin.to { left: 71%; top: 65%; transform: translate(-118%, -10%); }
.hero.off .wing, .hero.off .core, .hero.off .route, .hero.off .btn.play::after { animation-play-state: paused; }

.hero-copy { align-self: flex-start; padding-top: 108px; padding-bottom: 40px; width: 100%; }
.hero h1 { font: 400 clamp(42px, 6.4vw, 76px)/1.03 var(--serif); letter-spacing: -.015em; margin: 14px 0 18px; max-width: 11em; text-wrap: balance; text-shadow: 0 2px 30px rgba(10, 10, 26, .5); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { color: rgba(255, 255, 255, .88); max-width: 30em; text-shadow: 0 1px 16px rgba(10, 10, 26, .7); }
.trust { margin-top: 22px; font: 500 13px/1.4 var(--label); letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero-copy { align-self: center; padding-top: 64px; }
  .hero-copy > * { max-width: 560px; }
}
@media (max-width: 899px) {
  .hero .lede { font-size: 17px; }
  .pin { font-size: 11px; }
  .pin.from { transform: translate(14%, -50%); }
  .pin.to { left: 75%; top: 70%; transform: translate(-50%, 0); }
}

/* ---------- the "miss" strip ---------- */
.miss { padding: 88px 0 96px; text-align: center; border-bottom: 1px solid var(--line); }
.lines { list-style: none; margin: 26px 0 30px; display: grid; gap: 10px; }
.lines li { font: 400 clamp(28px, 4.2vw, 46px)/1.15 var(--serif); color: var(--text); }
.lines li:nth-child(2) { color: rgba(255, 255, 255, .72); font-style: italic; }
.lines li:nth-child(3) { color: var(--accent); }
.answer { max-width: 30em; margin: 0 auto; font-size: 18px; color: var(--body); }

/* ---------- chapters ---------- */
.chapter { padding: 96px 0; position: relative; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.tint-teal { background: radial-gradient(60% 50% at 20% 50%, rgba(20, 204, 173, .07), transparent 70%); }
.tint-indigo { background: radial-gradient(60% 55% at 25% 50%, rgba(99, 102, 241, .12), transparent 70%), #0b0b20; }
.tint-amber { background: radial-gradient(60% 50% at 75% 50%, rgba(217, 119, 6, .08), transparent 70%); }
.duo { display: grid; gap: 48px; align-items: center; }
.copy h2 { max-width: 15em; }
@media (min-width: 900px) {
  .duo { grid-template-columns: 1fr 1.15fr; gap: 80px; }
  .duo.flip > .art { order: 2; }
  .tint-teal { background: radial-gradient(50% 60% at 78% 50%, rgba(20, 204, 173, .07), transparent 70%); }
  .tint-amber { background: radial-gradient(50% 60% at 78% 50%, rgba(217, 119, 6, .08), transparent 70%); }
}
.ticks { list-style: none; display: grid; gap: 14px; margin-top: 22px; max-width: 34em; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 3px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 0 transparent; }
.ticks li::after { content: ""; position: absolute; left: 20px; top: .72em; width: 4px; height: 3px; border-radius: 2px; background: var(--accent); opacity: .5; }

/* Chapter artwork and phone captures share the same stage. */
.art { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.78fr); align-items:center; gap:clamp(14px,2vw,32px); padding-block:20px; }
.art > .sky { width:100%; height:auto; aspect-ratio:4/5; object-fit:cover; border-radius:27px; }
.art .phone { width:min(280px,100%); }
@media (max-width:620px) {
  .duo > .copy { order: -1; }
  .art { grid-template-columns:minmax(0,1fr); gap:20px; }
  .art .phone { width:min(250px,74vw); }
  .art > .sky { aspect-ratio:3/2; }
}

/* phone placeholders (to be replaced by real code 11 screenshots) */
.phone { justify-self: center; width: min(280px, 74vw); aspect-ratio: 9 / 19.5; border-radius: 42px; padding: 10px; background: linear-gradient(160deg, #2a2a40, #08080f 40%); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 70px; height: 20px; margin-left: -35px; border-radius: 20px; background: #05050a; z-index: 2; }
.screen { height: 100%; border-radius: 33px; background: #1a1a2e; overflow: hidden; padding: 52px 16px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: #e5e7eb; position: relative; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-bar b { display: block; font: 600 17px/1.2 var(--label); color: #fff; }
.app-bar span { font: 500 12px/1.4 var(--label); color: var(--muted); }
.day-tabs { display: flex; gap: 6px; }
.day-tabs span { font: 600 11px/1 var(--label); padding: 7px 10px; border-radius: 999px; background: #16213e; color: var(--muted); }
.day-tabs .on { background: var(--accent); color: #1a1203; }
.screen .stops { list-style: none; display: grid; gap: 0; border-left: 2px solid #2c3a66; margin-left: 6px; }
.screen .stops li { position: relative; padding: 0 0 12px 14px; line-height: 1.3; }
.screen .stops li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: #1a1a2e; border: 2px solid var(--accent); }
.screen .stops time { display: block; font: 600 11px/1.2 var(--label); color: var(--accent); }
.app-btn { margin-top: auto; text-align: center; background: var(--accent); color: #1a1203; font: 600 13px/1 var(--label); padding: 12px; border-radius: 14px; }
.screen.map { padding: 0; background: #101a33; }
.screen.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-card { position: absolute; left: 12px; right: 12px; bottom: 14px; background: rgba(26, 26, 46, .94); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.map-card b { display: block; font: 600 14px/1.2 var(--label); color: #fff; }
.map-card span { font-size: 12px; color: var(--muted); }
.screen.radio { background: radial-gradient(120% 60% at 50% 0%, #2a2160, #12122a 70%); justify-content: center; text-align: center; padding: 40px 22px; gap: 14px; }
.on-air { font: 600 11px/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.on-air i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .2); }
.place { font: 400 26px/1.1 var(--serif); color: #fff; }
.said { font: italic 400 16px/1.4 var(--serif); color: rgba(255, 255, 255, .85); }
.eq { display: flex; gap: 5px; justify-content: center; align-items: flex-end; height: 28px; }
.eq i { width: 5px; border-radius: 3px; background: var(--accent); opacity: .85; }
.eq i:nth-child(1) { height: 30%; } .eq i:nth-child(2) { height: 70%; } .eq i:nth-child(3) { height: 100%; } .eq i:nth-child(4) { height: 55%; }
.eq i:nth-child(5) { height: 85%; } .eq i:nth-child(6) { height: 40%; } .eq i:nth-child(7) { height: 20%; }
.lang { font: 500 12px/1 var(--label); color: var(--muted); }
.screen.settle .small { font: 500 12px/1.4 var(--label); color: var(--muted); }
.screen.settle .big { font: 400 24px/1.2 var(--serif); color: #fff; }
.screen.settle .big b { display: block; font: 600 36px/1.1 var(--label); color: var(--teal); margin-top: 4px; }
.owes { list-style: none; display: grid; gap: 8px; }
.owes li { display: flex; justify-content: space-between; background: #16213e; border-radius: 12px; padding: 12px 14px; }
.owes b { font: 600 14px/1 var(--label); color: #fff; }

/* ---------- sample trip ---------- */
.sample { padding: 24px 0 96px; }
.trip-card { display: grid; gap: 22px; align-items: center; text-decoration: none; color: var(--body); background: linear-gradient(135deg, #15153a, var(--surface)); border: 1px solid var(--line-2); border-radius: 28px; padding: 26px; transition: border-color .3s, transform .3s var(--ease); }
.trip-card:hover { color: var(--body); border-color: rgba(251, 191, 36, .5); transform: translateY(-2px); }
.trip-card h2 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 10px; }
.trip-card h2 span { color: var(--muted); font-size: .55em; font-family: var(--label); letter-spacing: .01em; white-space: nowrap; }
.trip-card .more { display: inline-block; margin-top: 14px; color: var(--accent); font: 600 15px/1 var(--label); }
.mini { width: 180px; justify-self: center; }
.mini text { fill: rgba(255, 255, 255, .8); font: 600 11px var(--label); }
@media (min-width: 760px) { .trip-card { grid-template-columns: 220px 1fr; padding: 34px 44px; gap: 44px; } .mini { width: 220px; } }

/* ---------- safety ---------- */
.safety { padding: 96px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.three { display: grid; gap: 22px; margin-top: 14px; }
.three > div { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.three svg { width: 28px; height: 28px; color: var(--accent); }
.three p { font-size: 15px; }
@media (min-width: 900px) { .three { grid-template-columns: repeat(3, 1fr); } }

/* ---------- founder note ---------- */
.founder { padding: 110px 0; text-align: center; }
.founder blockquote { margin: 22px 0 26px; display: grid; gap: 8px; }
.founder blockquote p { font: italic 400 clamp(22px, 2.8vw, 30px)/1.35 var(--serif); color: var(--text); }
.sign { font: 500 13px/1.5 var(--label); letter-spacing: .04em; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; border-top: 1px solid var(--line); }
.qas { margin-top: 10px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 20px 2px; font: 600 17px/1.4 var(--sans); color: var(--text); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(225deg); margin-top: 10px; }
.qa .a { padding: 0 2px 22px; max-width: 40em; }
.after { margin-top: 24px; font-size: 15px; color: var(--muted); }

/* ---------- final ---------- */
.final { position: relative; text-align: center; padding: 120px 0 110px; overflow: hidden; }
.final .horizon { position: absolute; inset: auto 0 0; height: 70%; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 100%, rgba(242, 163, 60, .28), rgba(138, 43, 226, .12) 45%, transparent 75%); }
.final h2 { font-size: clamp(36px, 5.4vw, 60px); }
.final p { max-width: 30em; margin: 0 auto; font-size: 18px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
.foot .cols { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.foot .about { grid-column: 1 / -1; }
.foot .about p { margin-top: 12px; max-width: 26em; }
.foot h2 { font: 600 12px/1.4 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin: 0 0 12px; }
.foot nav a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.foot nav a:hover { color: var(--text); }
.legal-line { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-line a { color: var(--muted); }
.fonts { margin-top: 6px; font-size: 12px; opacity: .8; }
@media (min-width: 900px) { .foot .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot .about { grid-column: auto; } }

/* ---------- inner pages (about, sample trip, legal) ---------- */
.page main { padding-top: 64px; }
.page-head { padding: 72px 0 36px; border-bottom: 1px solid var(--line); background: radial-gradient(70% 120% at 80% 0%, rgba(242, 163, 60, .12), rgba(138, 43, 226, .06) 45%, transparent 75%); }
.page-head h1 { font: 400 clamp(38px, 5.4vw, 60px)/1.08 var(--serif); margin: 12px 0 14px; text-wrap: balance; }
.page-head p { max-width: 36em; }
.prose { max-width: 68ch; padding-top: 40px; padding-bottom: 88px; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); margin: 44px 0 14px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }

/* legal pages keep their own markup; only the shell and the measure change */
.legal { --text-muted: var(--muted); max-width: 68ch; margin: 0 auto; padding: 56px var(--gutter) 88px; }
.legal header { margin-bottom: 40px; }
.legal h1 { font: 400 clamp(36px, 5vw, 52px)/1.1 var(--serif); color: var(--text); margin: 10px 0 12px; }
.legal .meta { font: 600 12px/1.4 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.legal section { margin-bottom: 36px; }
.legal h2 { font: 400 26px/1.2 var(--serif); margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.legal h3 { font: 600 17px/1.4 var(--sans); color: var(--text); margin: 22px 0 10px; }
.legal p, .legal li { font-size: 16px; }
.legal p { margin-bottom: 16px; }
.legal ul, .legal ol { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; padding-left: 4px; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); }
.legal .tldr-box, .legal .callout, .legal .step-box { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 14px; padding: 22px 24px; margin: 0 0 36px; }
.legal .callout, .legal .step-box { margin: 20px 0; }
.legal .tldr-box h3 { margin-top: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; display: block; overflow-x: auto; }
.legal th { text-align: left; padding: 12px 14px; background: rgba(251, 191, 36, .08); color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--line); }
.legal td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
.legal .footer-note { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wing, .core { animation: none; opacity: 0; }
  .route { animation: none; stroke-dashoffset: 0; }
  .btn.play::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .trip-card, .btn.play { transition: none; }
}

/* inner-page alignment + small-screen legal lists */
.wrap.prose { margin-left: max(0px, calc((100% - 1200px) / 2)); }
@media (max-width: 600px) {
  .legal ul, .legal ol, .legal .tldr-box ul { margin-left: 16px; }
  .legal .tldr-box, .legal .callout, .legal .step-box { padding: 18px; }
}
.pf { background: var(--bg); border-top: 0; }
.pf .three > div { background: var(--surface); }
@media (min-width: 900px) { .three.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; } }

/* ---------- code 16 postcards ---------- */
.postcards { padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); }
.pc-row { list-style: none; margin: 28px 0 0; padding: 4px 0 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pc { background: #16213e; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); }
.pc:hover { transform: translateY(-3px); }
.pc-art { position: relative; aspect-ratio: 358 / 150; }
.pc-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pc-chip { position: absolute; left: 12px; bottom: 10px; font: 600 12px/1 var(--label); color: #fff; background: rgba(10, 10, 26, .62); border: 1px solid var(--line-2); padding: 6px 10px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pc-body { padding: 14px 16px 16px; }
.pc-t { margin: 0; color: var(--text); font: 600 17px/1.3 var(--sans); }
.pc-m { margin: 8px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; }
.pc-av { display: inline-flex; }
.pc-av i { width: 26px; height: 26px; margin-left: -7px; border-radius: 50%; border: 2px solid #16213e; background: #2a3563; color: #fff; font: 600 11px/22px var(--label); text-align: center; font-style: normal; }
.pc-av i:nth-child(2) { background: #0f766e; } .pc-av i:nth-child(3) { background: #9a3412; }
.pc-av i.more { background: rgba(251, 191, 36, .18); color: var(--accent); }
@media (max-width: 900px) {
  .pc-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .pc-row::-webkit-scrollbar { display: none; }
  .pc { flex: 0 0 78%; scroll-snap-align: start; }
}
.chapter, .postcards, .faq, .final { scroll-margin-top: 72px; }

/* ---------- all in one place ---------- */
.aio { padding: clamp(56px, 8vw, 96px) 0 clamp(16px, 3vw, 32px); }
.aio-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.aio-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px; }
.aio-tile h3 { margin: 12px 0 6px; font-size: 16px; }
.aio-tile p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.aio-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(251, 191, 36, .12); color: var(--accent); }
.aio-tile:nth-child(4n+2) .aio-ic { background: rgba(20, 204, 173, .12); color: var(--teal); }
.aio-tile:nth-child(4n+3) .aio-ic { background: rgba(99, 102, 241, .16); color: #A5B4FC; }
.aio-tile:nth-child(4n+4) .aio-ic { background: rgba(217, 119, 6, .14); color: #FDBA74; }
@media (max-width: 1000px) { .aio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .aio-grid { grid-template-columns: 1fr; gap: 12px; } .aio-tile { padding: 16px; } }
#all-in-one { scroll-margin-top: 72px; }

/* ---------- real app screens ---------- */
.screen.shot { padding: 0; gap: 0; display: block; background: #1a1a2e; }
.screen.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
/* ---------- e-vite ---------- */
.evite { padding: clamp(40px, 6vw, 80px) 0; }
.ev-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ev-cards { position: relative; height: clamp(300px, 34vw, 440px); }
.ev-cards img { position: absolute; top: 50%; left: 50%; width: clamp(150px, 16vw, 220px); height: auto; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); transition: transform .5s var(--ease); }
.ev-cards img:nth-child(1) { transform: translate(-110%, -50%) rotate(-9deg); }
.ev-cards img:nth-child(2) { transform: translate(-50%, -54%); z-index: 2; }
.ev-cards img:nth-child(3) { transform: translate(10%, -50%) rotate(9deg); }
.ev-cards:hover img:nth-child(1) { transform: translate(-122%, -50%) rotate(-12deg); }
.ev-cards:hover img:nth-child(3) { transform: translate(22%, -50%) rotate(12deg); }
@media (max-width: 860px) { .ev-duo { grid-template-columns: 1fr; } .ev-cards { height: 320px; } .ev-cards img { width: 150px; } }
@media (prefers-reduced-motion: reduce) { .ev-cards img { transition: none; } }
#invite-card { scroll-margin-top: 72px; }
