/* Domicile public site, round 2 (18 Oct 2026): dark throughout, the real app in phone frames, the traveller's year as three chapters.
   Brand kept: night, ink, paper, terracotta, amber; Rubik. */
@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url("fonts/Rubik_400Regular.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 500; font-display: swap; src: url("fonts/Rubik_500Medium.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url("fonts/Rubik_700Bold.ttf") format("truetype"); }

:root {
  --night: #0e0f12; --ink: #16191c; --ink-2: #1f2227; --ink-3: #2a2d33; --paper: #f3f0ea; --sand: #e8e2d8;
  --terra: #b4502d; --terra-strong: #c95c36; --terra-ink: #e08a6a; --amber: #e0a92e; --green: #6fcf8e;
  --ground: var(--night); --ground-2: var(--ink); --ground-3: var(--ink-2); --fg: var(--paper); --fg-soft: #b9b3a8; --amber-fg: var(--amber);
  --t1: clamp(52px, 7vw, 112px); --t2: clamp(38px, 4.6vw, 72px); --t3: clamp(22px, 2.1vw, 30px); --t4: 18px; --t5: 15px;
  --m: clamp(16px, 3vw, 48px); --gap: 24px; --field-y: clamp(80px, 12vh, 160px);
  --spring: cubic-bezier(.2, .8, .2, 1); --soft: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark; accent-color: var(--terra);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink-3) var(--night); }
body { margin: 0; background: var(--ground); color: var(--fg); font: 400 var(--t4)/1.55 "Rubik", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
::selection { background: var(--terra); color: var(--paper); }
:focus-visible { outline: 3px solid var(--terra-ink); outline-offset: 3px; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, .t1 { font-size: var(--t1); font-weight: 700; line-height: .94; letter-spacing: -.035em; text-wrap: balance; }
h2, .t2 { font-size: var(--t2); font-weight: 700; line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
h3, .t3 { font-size: var(--t3); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; }
.lead { font-size: var(--t3); font-weight: 400; line-height: 1.35; letter-spacing: -.01em; max-width: 32ch; color: var(--fg); }
.small { font-size: var(--t5); line-height: 1.5; }
.soft { color: var(--fg-soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--m); background: var(--night); }
.bar .brand img { height: 28px; width: auto; }
.bar nav { display: flex; gap: 28px; }
.bar nav a { text-decoration: none; color: var(--fg-soft); transition: color 160ms ease; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--fg); }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--terra); color: var(--paper); font-weight: 500; font-size: var(--t4); line-height: 1; padding: 18px 26px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; transition: transform 160ms var(--spring), background-color 160ms ease; }
.btn:active { transform: scale(.96); }
.btn.ink { background: var(--paper); color: var(--ink); }
.btn.sm { padding: 12px 18px; }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (hover: hover) { .btn:hover { background: var(--terra-strong); } .btn.ink:hover { background: #fff; } }
.link { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: .07em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ios { color: var(--fg-soft); font-weight: 500; }

/* Shared section shell */
.field { padding: var(--field-y) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.night { background: var(--ink); }
.sandfield { background: var(--ink); }
.inkfield { background: var(--ink); }
.terrafield { background: var(--terra); color: var(--paper); }
.caption { font-size: var(--t5); color: var(--fg-soft); }

/* Phone: a plain Pixel-style frame around the real recording */
.phone { position: relative; width: var(--w, 340px); aspect-ratio: 644 / 1396; border-radius: 13% / 6%; padding: 3.4%; background: #24272d; box-shadow: inset 0 0 0 2px #34373e, 0 50px 90px -30px rgba(0, 0, 0, .85); /* taste-skill-ignore: owner brief (Flighty), the phone floats */ flex: none; }
.phone::after { content: ""; position: absolute; top: 2.6%; left: 50%; width: 3.2%; aspect-ratio: 1; border-radius: 50%; background: #050506; transform: translateX(-50%); }
.phone > img, .phone > video { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 10% / 4.6%; background: #08090b; }

/* Alert cards: the app's own messages, floating */
.alert { width: var(--cw, 300px); background: #1d2025; color: var(--paper); border-radius: 22px; padding: 14px 16px 16px; box-shadow: inset 0 0 0 1px #2f333a, 0 24px 48px -18px rgba(0, 0, 0, .8); /* taste-skill-ignore: app notifications float over the phone */ display: grid; gap: 4px; font-size: var(--t5); line-height: 1.4; }
.alert .from { display: flex; align-items: center; gap: 8px; color: var(--fg-soft); font-size: 13px; }
.alert .from img { width: 18px; height: 18px; border-radius: 5px; }
.alert b { font-size: 16px; font-weight: 700; }
.alert .warn { color: var(--terra-ink); }
.alert .ok { color: var(--green); }
.alert .acts { display: flex; gap: 8px; margin-top: 8px; }
.alert .acts span { background: var(--terra); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 14px; }
.alert .acts span + span { background: var(--ink-3); }

/* Hero */
.hero { min-height: calc(100svh - 60px); align-items: center; padding-top: clamp(40px, 6vh, 80px); padding-bottom: clamp(40px, 6vh, 80px); overflow: hidden; }
.hero .copy { grid-column: 1 / 7; display: grid; gap: 28px; justify-items: start; align-content: center; }
.hero h1 { max-width: 10ch; }
.hero .meta { color: var(--fg-soft); font-size: var(--t5); }
.qr-row { display: flex; align-items: center; gap: 16px; }
.qr { width: 104px; height: 104px; background: var(--paper); padding: 8px; border-radius: 14px; flex: none; }
.qr img { width: 100%; height: 100%; }
.stage { grid-column: 7 / 13; position: relative; height: min(88svh, 820px); min-height: 620px; }
.stage .phone { --w: min(330px, 30vw); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); }
.stage .float { position: absolute; z-index: 2; }
.stage .f1 { left: -4%; top: 12%; }
.stage .f2 { right: -2%; top: 34%; }
.stage .f3 { left: 0; bottom: 18%; }
.stage .f4 { right: 2%; bottom: 4%; }

/* Journey tabs (Flighty's Preflight / At the airport / After landing) */
.journey { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.journey a { display: grid; gap: 6px; padding: 22px 24px; background: var(--ink); border-radius: 22px; text-decoration: none; transition: background-color 200ms ease, transform 200ms var(--spring); }
.journey a b { font-size: var(--t3); letter-spacing: -.015em; }
.journey a span { color: var(--fg-soft); }
.journey a:hover { background: var(--ink-2); }
.journey a:active { transform: scale(.98); }
.journey a.on { background: var(--terra); }
.journey a.on span { color: var(--paper); }

/* Chapter openers */
.chapter { padding: var(--field-y) var(--m) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.chapter h2 { grid-column: 1 / 8; font-size: var(--t1); line-height: .92; }
.chapter p { grid-column: 9 / 13; color: var(--fg-soft); max-width: 36ch; }

/* Feature rows: copy on one side, the app on the other */
.feature { padding: clamp(64px, 9vh, 120px) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.feature .text { grid-column: 1 / 6; display: grid; gap: 22px; justify-items: start; }
.feature .art { grid-column: 7 / 13; position: relative; display: flex; justify-content: center; align-items: center; min-height: 640px; }
.feature.flip .text { grid-column: 8 / 13; grid-row: 1; }
.feature.flip .art { grid-column: 1 / 7; grid-row: 1; }
.feature .art .phone { --w: min(300px, 26vw); }
.feature .art .float { position: absolute; z-index: 2; }
.feature h3 { font-size: var(--t2); line-height: 1; letter-spacing: -.03em; }
.feature .text p { max-width: 40ch; }
.feature .text p.lead { font-size: var(--t3); }

/* Planner */
.planner { width: 100%; max-width: 460px; background: var(--ink); border-radius: 26px; padding: 26px; display: grid; gap: 16px; transition: background-color 400ms ease; }
.planner.over { background: var(--terra); }
.planner label { font-weight: 500; }
.planner input[type="range"], .days input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: var(--ink-3); border-radius: 999px; margin: 0; cursor: pointer; padding: 0 4px; }
.planner.over input[type="range"] { background: rgba(0, 0, 0, .25); }
.planner input::-webkit-slider-thumb, .days input::-webkit-slider-thumb { -webkit-appearance: none; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); transition: transform 160ms var(--spring); }
.planner input::-moz-range-thumb, .days input::-moz-range-thumb { width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 0; }
.planner input:active::-webkit-slider-thumb, .days input:active::-webkit-slider-thumb { transform: scale(1.1); }
.planner output { display: grid; gap: 6px; }
.planner output b { font-size: var(--t2); line-height: 1; letter-spacing: -.03em; }
.planner .when { font-size: var(--t3); font-weight: 700; }

/* Live counter */
.counter-wrap { display: grid; gap: 22px; justify-items: start; }
.where { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.where legend { font-size: var(--t5); color: var(--fg-soft); padding: 0; margin-bottom: 8px; width: 100%; }
.where label { background: var(--ink-2); padding: 12px 20px; border-radius: 999px; cursor: pointer; font-weight: 500; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--spring); }
.where label:active { transform: scale(.96); }
.where input { position: absolute; opacity: 0; pointer-events: none; }
.where input:checked + label { background: var(--paper); color: var(--ink); }
.where input:focus-visible + label { outline: 3px solid var(--terra-ink); outline-offset: 3px; }
.days { display: grid; gap: 8px; }
.days span { font-size: var(--t5); color: var(--fg-soft); }
.figure { font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; letter-spacing: -.025em; line-height: 1; }
.figure .left { color: var(--amber-fg); }
.rule { max-width: 44ch; color: var(--fg-soft); }
.roll { display: inline-block; }
.roll .d { display: inline-block; min-width: .58em; text-align: center; }
.gridcard { width: min(560px, 100%); background: var(--ink); border-radius: 28px; padding: 28px; }
.daygrid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; }
.daygrid i { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--ink-3); transition: background-color 500ms ease; transition-delay: calc(var(--i) * 3ms); }
.daygrid i.on { background: var(--terra); }
.daygrid i.last { background: var(--amber); }
.gridcard p { margin-top: 18px; color: var(--fg-soft); font-size: var(--t5); }

/* Capture */
.pass-img { width: min(420px, 38vw); border-radius: 18px; transform: rotate(4deg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); /* taste-skill-ignore: owner brief, floating object */ }
.review .acts button { padding: 10px 16px; border: 0; border-radius: 999px; background: var(--terra); color: var(--paper); font-weight: 500; cursor: pointer; transition: transform 160ms var(--spring); }
.review .acts button.no { background: var(--ink-3); }
.review .acts button:active { transform: scale(.96); }
.review .done { display: none; color: var(--green); font-weight: 500; margin-top: 6px; }
.review.added .acts { display: none; }
.review.added .done { display: block; }

/* Alerts stack */
.stack { display: grid; gap: 12px; width: min(420px, 100%); }
.stack .alert { --cw: 100%; }

/* Privacy */
.promises { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 48px; }
.promises li { list-style: none; background: var(--ink); border-radius: 22px; padding: 26px; font-size: var(--t4); line-height: 1.5; min-height: 200px; display: grid; align-content: space-between; gap: 24px; }
.promises li b { font-size: var(--t3); line-height: 1.2; letter-spacing: -.015em; }
.promises li span { color: var(--fg-soft); }
.promises { padding: 0; }

/* Year end */
.year { display: flex; gap: 6px; height: 120px; width: 100%; }
.year > div { flex: var(--d) 1 0; min-width: 12%; padding: 14px 16px; border-radius: 16px; font-size: var(--t4); font-weight: 500; line-height: 1.2; transform-origin: left center; }
.year .in { background: var(--terra); }
.year .ae { background: var(--sand); color: var(--ink); }
.year .sg { background: var(--ink-3); }
.year .th { background: var(--terra-ink); color: var(--ink); }
.year .gb { background: var(--ink-2); }
.report-img { width: min(560px, 46vw); border-radius: 14px; overflow: hidden; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9); /* taste-skill-ignore: owner brief, floating object */ transform: rotate(-2deg); }
.report-img img { width: 100%; }
.shutter { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--soft); }
  .js .shutter img { transform: scale(1.12); transition: transform 1500ms var(--soft); }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }
}
.figures { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.figures div { background: var(--ink); border-radius: 22px; padding: 28px; display: grid; gap: 40px; align-content: space-between; min-height: 260px; }
.figures div:first-child { background: var(--terra); }
.figures b { font-size: var(--t1); line-height: .9; letter-spacing: -.035em; }

/* Founder */
.founder .text { grid-column: 1 / 7; }
.founder blockquote, .founder .bio { margin: 0; font-size: var(--t3); line-height: 1.35; max-width: 34ch; }
.founder .sig { color: var(--fg-soft); }

/* Price */
.price { align-items: end; }
.offer { grid-column: 1 / 10; font-size: clamp(44px, 7.4vw, 120px); font-weight: 700; line-height: .96; letter-spacing: -.035em; max-width: 16ch; }
.offer .tag { display: inline-block; background: var(--terra); color: var(--paper); padding: 0 .16em; border-radius: .14em; }
.price .inc { grid-column: 1 / 7; margin-top: 40px; max-width: 44ch; color: var(--fg-soft); }
.price .cta { grid-column: 9 / 13; margin-top: 40px; justify-self: end; }

/* Install */
.install { align-items: center; overflow: hidden; }
.install .text { grid-column: 1 / 7; display: grid; gap: 24px; justify-items: start; }
.install h2 { font-size: var(--t1); line-height: .92; }
.install .art { grid-column: 8 / 13; display: flex; justify-content: center; }
.install .art .phone { --w: min(300px, 26vw); transform: rotate(3deg); }

/* FAQ: filled tiles */
.faq { align-content: start; }
.faq h2 { grid-column: 1 / 5; position: sticky; top: 96px; align-self: start; }
.faq .list { grid-column: 5 / 13; display: grid; gap: 8px; }
.faq details { background: var(--ground-2); transition: background-color 200ms ease, color 200ms ease; }
.faq details { border-radius: 20px; }
.faq details[open] { background: var(--terra); color: var(--paper); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; padding: 20px 24px; font-size: var(--t4); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: 0 0 16px; height: 16px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; background: currentColor; left: 0; top: 6.5px; width: 16px; height: 3px; transition: transform 240ms var(--spring); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; max-width: 52ch; line-height: 1.5; }

/* Footer: a board of tiles */
footer.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 8px; background: var(--ground); }
footer .tile { border-radius: 22px; }
footer .tile { position: relative; display: grid; clip-path: none; padding: 24px; background: var(--ground-2); color: var(--fg); min-height: 220px; align-content: space-between; }
footer .tile p, footer .tile a { font-size: inherit; }
footer .st { grid-column: 1 / 5; font-size: var(--t3); line-height: 1.2; }
footer .st .small { color: var(--fg-soft); }
footer .nav { grid-column: 5 / 8; }
footer .nav ul { list-style: none; padding: 0; display: grid; gap: 6px; }
footer .nav a { text-decoration: none; }
footer .nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
footer .where-we-are { grid-column: 8 / 10; }
footer .mail { grid-column: 10 / 13; }
footer .mail a { text-decoration: none; overflow-wrap: anywhere; }
footer .mark { grid-column: 1 / 9; min-height: 320px; background: var(--ink-2); place-items: center; display: grid; }
footer .mark img { width: 56%; max-width: 640px; }
footer .go { grid-column: 9 / 13; min-height: 320px; background: var(--terra); color: var(--paper); text-decoration: none; font-size: var(--t3); font-weight: 700; letter-spacing: -.02em; }
footer .go svg { justify-self: end; width: 56px; height: 56px; transition: transform 240ms var(--spring); }
footer .go:hover svg { transform: translateX(8px); }

/* Documents: legal pages, methodology, india, accountants share the old body markup (doc-head, toc, body) in the new system */
.doc-head { padding: var(--field-y) var(--m) 48px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.doc-head > * { grid-column: 1 / 9; }
.doc-head h1 { font-size: var(--t1); }
.doc-head p { margin-top: 20px; font-size: var(--t3); font-weight: 400; line-height: 1.35; max-width: 34ch; }
.doc-head .status { font-size: var(--t5); color: var(--fg-soft); margin-top: 16px; }
.doc { padding: 0 var(--m) var(--field-y); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.toc { grid-column: 10 / 13; grid-row: 1; align-self: start; position: sticky; top: 24px; background: var(--ground-2); padding: 20px; }
.toc h2 { font-size: var(--t4); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 6px; }
.toc a { text-decoration: none; font-size: var(--t5); }
.toc a:hover { text-decoration: underline; text-underline-offset: .2em; }
.body { grid-column: 1 / 9; grid-row: 1; min-width: 0; }
.body > :is(p, ul, ol, h2, h3) { max-width: 68ch; }
.body h2 { font-size: var(--t3); margin: 56px 0 14px; }
.body h2:first-child { margin-top: 0; }
.body h3 { font-size: var(--t4); margin: 28px 0 8px; }
.body p, .body li { margin: 0 0 14px; }
.body ul, .body ol { padding-left: 1.2em; }
.body a { text-decoration: underline; text-underline-offset: .2em; }
.summary { background: var(--ground-2); padding: 24px; margin: 0 0 24px; }
.summary :last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
.body table { width: 100%; border-collapse: collapse; font-size: var(--t5); line-height: 1.45; }
.body th, .body td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; }
.body tr + tr td, .body tr + tr th { border-top: 1px solid var(--ground-2); }
.body th { font-weight: 500; }
td.num { white-space: nowrap; }
.todo { background: var(--ground-2); padding: 0 .3em; }
 (max-width: 1023px) { .doc-head > * { grid-column: 1 / 13; } .body { grid-column: 1 / 9; } .toc { grid-column: 9 / 13; } }
 (max-width: 800px) { .doc-head, .doc { display: block; } .toc { position: static; margin-bottom: 32px; } }


/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-in] > * { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--soft), transform 700ms var(--spring); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-in].is-in > * { opacity: 1; transform: none; }
  .js .year > div { transform: scaleX(0); transition: transform 900ms var(--spring); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .year.is-in > div { transform: none; }
  /* Hero: the phone rises, then the app's messages arrive one by one and drift */
  .js .stage .phone { animation: rise 1100ms var(--spring) both; }
  .js .stage .float { animation: pop 700ms var(--spring) both; animation-delay: calc(500ms + var(--i) * 350ms); }
  .float .alert { animation: drift 6s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -1.5s); }
  .js .stack .alert { opacity: 0; transform: translateY(-18px) scale(.96); transition: opacity 500ms var(--soft), transform 600ms var(--spring); transition-delay: calc(var(--i) * 260ms); }
  .js .stack.is-in .alert { opacity: 1; transform: none; }
  @supports (animation-timeline: view()) {
    .tilt { animation: tilt linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .drift-y { animation: dy linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, -40%) rotate(4deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.9); } }
@keyframes drift { to { transform: translateY(-8px); } }
@keyframes tilt { from { transform: rotate(5deg) translateY(30px); } to { transform: rotate(-4deg) translateY(-30px); } }
@keyframes dy { from { transform: translateY(40px); } to { transform: translateY(-40px); } }

/* Tablet and phone */
@media (max-width: 1023px) {
  .hero .copy { grid-column: 1 / 13; }
  .stage { grid-column: 1 / 13; margin-top: 32px; }
  .stage .phone { --w: 300px; }
  .chapter h2 { grid-column: 1 / 13; }
  .chapter p { grid-column: 1 / 13; margin-top: 20px; }
  .feature .text, .feature.flip .text { grid-column: 1 / 13; grid-row: 1; }
  .feature .art, .feature.flip .art { grid-column: 1 / 13; grid-row: 2; margin-top: 48px; }
  .feature .art .phone { --w: 280px; }
  .promises, .figures { grid-template-columns: 1fr 1fr; }
  .founder .text { grid-column: 1 / 13; }
  .install .text, .install .art { grid-column: 1 / 13; }
  .install .art { margin-top: 48px; }
  .install .art .phone { --w: 260px; }
  .pass-img { width: min(420px, 70vw); }
  .report-img { width: min(560px, 86vw); }
}
@media (max-width: 800px) {
  :root { --gap: 12px; --field-y: 64px; }
  .field, .chapter, .feature { display: block; }
  .bar nav { display: none; }
  .bar .btn { padding: 10px 16px; font-size: var(--t5); }
  h1 { font-size: 10.5vw; }
  .hero h1 { font-size: 13vw; }
  .qr-row .qr { display: none; }
  .stage { height: 600px; min-height: 0; margin: 40px calc(-1 * var(--m)) 0; }
  .stage .phone { --w: 240px; }
  .stage .alert { --cw: 230px; padding: 12px 14px; }
  .stage .f1 { left: 4%; top: 2%; } .stage .f2 { right: 3%; top: 30%; } .stage .f3 { left: 3%; bottom: 20%; } .stage .f4 { right: 3%; bottom: 2%; }
  .journey { grid-template-columns: 1fr; margin-top: 24px; }
  .chapter h2 { font-size: 15vw; }
  .feature .art { min-height: 0; margin-top: 40px; }
  .feature h3 { font-size: 10vw; }
  .feature .art .float { position: relative; inset: auto; margin-top: -60px; }
  .feature .art { flex-direction: column; }
  .promises, .figures { grid-template-columns: 1fr; }
  .promises li, .figures div { min-height: 0; }
  .year { flex-direction: column; height: auto; }
  .year > div { min-height: 56px; min-width: 0; flex-basis: auto; }
  .year > div.in { min-height: 120px; } .year > div.ae { min-height: 90px; }
  .offer { font-size: 10vw; }
  .price .cta { justify-self: start; }
  .install h2 { font-size: 14vw; }
  .gridcard { padding: 18px; } .daygrid { gap: 3px; }
  .doc-head, .doc { display: block; }
  .faq h2 { position: static; margin-bottom: 24px; font-size: 10vw; }
  .faq summary { min-height: 64px; padding: 16px 20px; }
  .faq details p { font-size: var(--t5); padding: 0 20px 20px; }
  footer.tiles { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  footer .mark { grid-column: 1 / 3; min-height: 160px; order: -2; } footer .mark img { width: 60%; }
  footer .go { grid-column: 1 / 3; min-height: 160px; order: -1; }
  footer .nav, footer .mail, footer .where-we-are, footer .st { grid-column: auto; min-height: 180px; }
  footer .mail { font-size: var(--t5); }
  .toc { position: static; margin-bottom: 32px; }
}
/* Accountants and India pages */
.privacy-list { list-style: none; padding: 0; display: grid; gap: 28px; }
.privacy-list li { font-size: var(--t4); line-height: 1.5; max-width: 52ch; padding-left: 1.2em; position: relative; }
.privacy-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: .5em; height: .5em; background: var(--terra); }
.privacy-list b { display: block; font-size: var(--t3); line-height: 1.15; margin-bottom: 6px; }
.calc { display: grid; gap: 20px; justify-items: start; }
.stays { display: grid; gap: 10px; width: 100%; }
.stay { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.stay label { display: grid; gap: 6px; font-size: var(--t5); }
.stay input { background: var(--ground); color: var(--fg); border: 0; padding: 12px 14px; font-size: var(--t4); width: 100%; min-width: 0; }
.stay .rm { background: none; border: 0; padding: 12px 0; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.qs { border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 20px; width: 100%; }
.qs legend { font-weight: 500; margin-bottom: 8px; }
.q { display: grid; gap: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { background: var(--ground); padding: 10px 16px; cursor: pointer; font-weight: 500; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts label:has(input:checked) { background: var(--ink); color: var(--paper); }
.opts label:has(input:focus-visible) { outline: 3px solid var(--terra); outline-offset: 3px; }
.result { display: grid; gap: 20px; align-content: start; }
.result .figure { font-size: var(--t2); white-space: normal; }
.tests { list-style: none; padding: 0; display: grid; gap: 12px; }
.tests li { background: var(--ground); padding: 16px 20px; display: grid; gap: 4px; }
.tests li span:empty::before { content: "Enter your stays."; color: var(--fg-soft); }
.tests li.met { background: var(--terra); color: var(--paper); }
.tests li.na { color: var(--fg-soft); }
.verdict { font-size: var(--t3); font-weight: 700; line-height: 1.2; }
@media (max-width: 800px) { .result { margin-top: 40px; } .stay { grid-template-columns: 1fr 1fr; } .stay .rm { grid-column: 1 / 3; justify-self: start; padding: 4px 0; } }
/* Review round: break the run of splits and card rows */
.feature.stair .text { grid-column: 1 / 7; }
.feature.stair .art { grid-column: 1 / 13; grid-row: 2; min-height: 0; margin-top: 56px; justify-content: stretch; }
.feature.stair .stack { width: 100%; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.feature.stair .stack .alert:nth-child(2) { margin-top: 56px; }
.feature.stair .stack .alert:nth-child(3) { margin-top: 112px; }
.feature.stair .stack .alert:nth-child(4) { margin-top: 168px; }
.priv { align-items: start; }
.priv h3 { grid-column: 1 / 6; position: sticky; top: 96px; }
.priv .promises { grid-column: 7 / 13; grid-template-columns: 1fr; gap: 40px; margin-top: 0; }
.priv .promises li { background: none; padding: 0; min-height: 0; gap: 10px; }
.figures { grid-template-columns: 7fr 3fr 3fr; align-items: start; }
.figures div:first-child { min-height: 56vh; }
.figures div:nth-child(2) { margin-top: 12vh; min-height: 36vh; }
.figures div:nth-child(3) { margin-top: 24vh; min-height: 30vh; background: var(--ink-2); }
.founder { align-items: center; }
.founder .mark-big { grid-column: 1 / 5; grid-row: 1 / 3; align-self: center; width: 100%; max-width: 380px; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 22%; }
.founder .text { grid-column: 6 / 13; }
@media (max-width: 1023px) {
  .feature.stair .stack { grid-template-columns: 1fr 1fr; }
  .feature.stair .stack .alert:nth-child(n) { margin-top: 0; }
  .feature.stair .stack .alert:nth-child(even) { margin-top: 40px; }
  .priv h3 { position: static; grid-column: 1 / 13; margin-bottom: 40px; }
  .priv .promises { grid-column: 1 / 13; }
  .founder .mark-big { grid-column: 1 / 13; grid-row: auto; max-width: 220px; margin-bottom: 40px; }

}
@media (max-width: 800px) {
  .feature.stair .stack { grid-template-columns: 1fr; }
  .feature.stair .stack .alert:nth-child(even) { margin-top: 0; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div:first-child { grid-column: 1 / 3; min-height: 0; }
  .figures div:nth-child(n) { margin-top: 0; min-height: 0; }
  .figures div:nth-child(3) { margin-top: 32px; }
}

/* Round 3 (owner: "the app is cut off and looks amateur"): whole screens, upright phones on flat panels */
.phone { --w: 300px; width: var(--w); aspect-ratio: 412 / 915; border-radius: calc(var(--w) * .135); padding: calc(var(--w) * .03); background: #17191d; transform: none; box-shadow: inset 0 0 0 1.5px #3b3f46, inset 0 0 0 calc(var(--w) * .012) #0a0b0d, 0 40px 80px -36px rgba(0, 0, 0, .75); } /* taste-skill-ignore: owner brief (Flighty), the phone floats */
.phone::after { top: calc(var(--w) * .052); width: calc(var(--w) * .03); background: #000; box-shadow: inset 0 0 0 1px #202227; } /* taste-skill-ignore: camera lens ring */
.phone::before { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 12%; border-radius: 0 3px 3px 0; background: #2a2d33; }
.phone > img, .phone > video { border-radius: calc(var(--w) * .105); object-fit: cover; object-position: top center; }

.panel-art { grid-column: 7 / 13; position: relative; display: flex; justify-content: center; align-items: center; border-radius: 36px; padding: 56px 24px; min-height: 0; }
.feature.flip .panel-art { grid-column: 1 / 7; grid-row: 1; }
.panel-art.terra { background: var(--terra); }
.panel-art.sand { background: var(--sand); }
.panel-art.ink { background: var(--ink); }
.panel-art .phone { --w: min(300px, 24vw); }
.panel-art .float { position: absolute; z-index: 2; }
.panel-art .f1 { left: -28px; top: 48px; }
.panel-art .f2 { right: -28px; bottom: 56px; }
.feature.flip .panel-art .f1 { left: auto; right: -28px; }
.feature.flip .panel-art .f2 { right: auto; left: -28px; }
.panel-art .pass-img { position: absolute; left: 6%; bottom: 8%; width: 44%; transform: rotate(-6deg); z-index: 1; }
.panel-art.grid-art { padding: 40px; }
.panel-art.grid-art .gridcard { background: var(--ink-2); }
.panel-art.report-art { padding: 56px 40px; }
.panel-art .report-img { width: 100%; max-width: 520px; transform: none; }

/* Hero */
.hero { min-height: auto; padding-top: clamp(32px, 5vh, 64px); align-items: stretch; }
.hero .copy { align-content: center; padding-right: 24px; }
.hero h1 { font-size: clamp(52px, 6.6vw, 104px); }
.stage { grid-column: 7 / 13; height: auto; min-height: 0; padding: 48px 24px; }
.stage .phone { position: relative; left: auto; top: auto; transform: none; --w: min(300px, 24vw, calc((100svh - 260px) / 2.22)); }
.stage .f1 { left: -40px; top: 64px; right: auto; }
.stage .f2 { right: -24px; bottom: 72px; left: auto; }
.alert .amber { color: var(--amber); }
.journey { margin-top: 32px; }

/* Store buttons: both stores, side by side */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 196px; padding: 12px 22px 12px 18px; border-radius: 16px; background: var(--paper); color: var(--ink); text-decoration: none; transition: transform 160ms var(--spring), background-color 160ms ease; }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: grid; font-size: 20px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.store small { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.store:active { transform: scale(.97); }
@media (hover: hover) { .store:hover { background: #fff; } }
.terrafield .store { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .terrafield .store:hover { background: #000; } }

/* Location ticks */
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--terra); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.32em + 4px); width: 4px; height: 8px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.install .art .phone { --w: min(280px, 22vw); transform: none; }

@media (max-width: 1023px) {
  .panel-art, .feature.flip .panel-art, .stage { grid-column: 1 / 13; grid-row: 2; margin-top: 40px; }
  .panel-art .phone, .stage .phone { --w: 280px; }
  .panel-art .f1, .stage .f1, .feature.flip .panel-art .f1 { left: 12px; right: auto; top: 24px; }
  .panel-art .f2, .stage .f2, .feature.flip .panel-art .f2 { right: 12px; left: auto; bottom: 24px; }
  .install .art .phone { --w: 260px; }
}
@media (max-width: 800px) {
  .stage, .panel-art { margin: 32px 0 0; padding: 72px 12px 96px; border-radius: 28px; }
  .stage .phone, .panel-art .phone { --w: min(260px, 66vw); }
  .panel-art .alert, .stage .alert { --cw: 240px; }
  .panel-art .float, .stage .float { position: absolute; margin: 0; }
  .panel-art .f1, .stage .f1, .feature.flip .panel-art .f1 { left: 10px; top: 14px; }
  .panel-art .f2, .stage .f2, .feature.flip .panel-art .f2 { right: 10px; bottom: 14px; }
  .panel-art.grid-art { padding: 16px; }
  .panel-art.report-art { padding: 24px 16px; }
  .panel-art .pass-img { width: 48%; left: 2%; bottom: 22%; }
  .stores { width: 100%; }
  .store { flex: 1 1 160px; min-width: 0; }
  .hero h1 { font-size: 13vw; }
}
/* Round 3 fixes after the look */
.stage .f1 { left: -56px; top: 30%; }
.panel-art .pass-img { width: 34%; left: 4%; bottom: 6%; }
.store span { white-space: nowrap; }
@media (max-width: 800px) {
  .stage, .panel-art.terra, .panel-art.sand { padding-top: 140px; padding-bottom: 150px; }
  .stage .f1, .panel-art .f1, .feature.flip .panel-art .f1 { top: 14px; left: 12px; right: auto; }
  .stage .f2, .panel-art .f2, .feature.flip .panel-art .f2 { bottom: 14px; right: 12px; left: auto; }
  .panel-art .pass-img { display: none; }
  .store { padding: 12px 14px; gap: 10px; }
  .store svg { width: 24px; height: 24px; }
  .store span { font-size: 18px; }
}

/* Round 4 (impeccable critique, owner-approved): one big phone per panel, chapter colours, one hero-size headline */
:root { --terra-strong: #9c4425; }
.btn, .terrafield, .alert .acts span, .review .acts button:not(.no), .panel-art.terra, .tests li.met, .offer .tag, .faq details[open], .figures div:first-child { color: #fff; }
.terrafield .lead, .terrafield p { color: #fff; }

/* Chapter openers: one tight band, line underneath in full ink */
.chapter { padding: clamp(96px, 12vh, 150px) var(--m) 8px; display: block; }
.chapter h2 { font-size: clamp(44px, 5vw, 80px); line-height: .95; }
.chapter p { margin-top: 16px; max-width: 46ch; font-size: var(--t3); line-height: 1.35; color: var(--fg); }

/* Features: smaller headline than the chapter, one idea per stop */
.feature { padding: clamp(48px, 7vh, 88px) var(--m); }
.feature h3 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.02; }

/* Panels are a stage: a big phone bleeds off the bottom edge */
.panel-art { overflow: hidden; align-items: flex-start; height: clamp(560px, 74vh, 760px); padding: 72px 24px 0; }
.panel-art .phone { --w: min(380px, 29vw); flex: none; }
.panel-art .float { position: absolute; z-index: 2; }
.panel-art .n-top { left: 28px; top: 24px; }
.panel-art .n-side { right: 28px; bottom: 36px; }
.feature.flip .panel-art .n-top { left: auto; right: 28px; }
.feature.flip .panel-art .n-side { right: auto; left: 28px; }
.hero-art { grid-column: 7 / 13; height: clamp(600px, calc(100svh - 120px), 820px); padding-top: 140px; }
.hero-art .phone { --w: min(400px, 30vw); }
.hero .copy { grid-column: 1 / 7; }
.hero { min-height: 0; padding-bottom: 0; }

/* Journey: its own row, fully below the hero */
.journey.field { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 24px; padding-bottom: 0; }

/* Day grid with the three warnings */
.panel-art.grid-art { height: auto; padding: 40px; align-items: center; }
.grid-art .gridcard { background: var(--night); width: 100%; max-width: 600px; }
.daygrid i { display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--night); }
.daygrid i.mark { background: var(--paper); }
.daygrid i.mark.on { background: var(--amber); }
.gridnote { margin-top: 20px; color: var(--paper); font-size: var(--t4); }
.when-alerts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.when-alerts li { background: var(--ink-2); border-radius: 14px; padding: 14px; display: grid; gap: 4px; font-size: var(--t5); color: var(--fg-soft); }
.when-alerts li b { color: var(--paper); font-size: var(--t4); }
.when-alerts li.sent b { color: var(--amber); }

/* Deadlines moment: the app's own list, at reading size */
.moment-art { height: auto; padding: 56px 40px; align-items: center; }
.moment { width: 100%; max-width: 560px; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .55); } /* taste-skill-ignore: owner brief, floating app fragment */

/* Report with a readable zoom of its summary */
.panel-art.report-art { height: auto; padding: 56px 40px 140px; align-items: center; }
.rulecard { background: var(--ink); border-radius: 18px; padding: 18px 20px; display: grid; gap: 4px; max-width: 440px; }
.rulecard b { font-size: var(--t4); }
.rulecard span { color: var(--fg-soft); font-size: var(--t5); }

/* Countries: a running flag banner */
.countries { padding: clamp(96px, 12vh, 150px) 0 24px; overflow: hidden; }
.countries h3, .countries p { padding: 0 var(--m); }
.countries p { margin-top: 14px; max-width: 60ch; }
.flagband { display: flex; margin-top: 40px; width: max-content; }
.flagtrack { list-style: none; display: flex; gap: 10px; padding: 0 10px 0 0; margin: 0; }
.flagtrack li { display: flex; align-items: center; gap: 12px; background: var(--ink); border-radius: 999px; padding: 10px 22px 10px 10px; font-size: var(--t4); font-weight: 500; white-space: nowrap; }
.flagtrack img { width: 40px; height: 30px; border-radius: 6px; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .js .flagband { animation: flagrun 60s linear infinite; }
  .flagband:hover { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .flagband { width: auto; flex-wrap: wrap; padding: 0 var(--m); } .flagtrack[aria-hidden] { display: none; } .flagtrack { flex-wrap: wrap; } }
@keyframes flagrun { to { transform: translateX(-50%); } }

/* Everything it does */
.everything .t2 { grid-column: 1 / 13; margin-bottom: 40px; }
.all { grid-column: 1 / 13; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 24px; }
.all li { display: grid; gap: 6px; color: var(--fg-soft); max-width: 30ch; align-content: start; }
.all li b { color: var(--fg); font-size: var(--t3); letter-spacing: -.015em; }

/* Coverage tiles are gone; founder photo slot */
.founder .mark-big { display: none; }
.founder-photo { grid-column: 1 / 5; grid-row: 1 / 3; align-self: center; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-2); max-width: 400px; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder.no-photo .founder-photo { display: none; }
.founder.no-photo .text { grid-column: 1 / 10; }
/* Text sits beside the photo, not a column away (wide screens left a hole between them). */
.founder-photo { justify-self: start; width: 100%; }
.founder .text { grid-column: 5 / 13; padding-left: clamp(24px, 3vw, 56px); }
@media (min-width: 1024px) { /* text sits a fixed gap from the photo at every width, not at the next grid column */
  .founder:not(.no-photo) { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); column-gap: clamp(40px, 4vw, 72px); }
  .founder:not(.no-photo) .founder-photo { grid-column: 1; }
  .founder:not(.no-photo) .text { grid-column: 2; padding-left: 0; }
}

/* Install: icon and a big QR, no phone */
.install-art { grid-column: 8 / 13; display: grid; gap: 28px; justify-items: center; }
.qr.big { width: 180px; height: 180px; padding: 12px; border-radius: 20px; }
.install .qr-row { flex-direction: column; text-align: center; }

@media (max-width: 1023px) {
  .hero-art, .panel-art, .feature.flip .panel-art { grid-column: 1 / 13; grid-row: 2; margin-top: 40px; }
  .panel-art .phone, .hero-art .phone { --w: min(360px, 60vw); }
  .all { grid-template-columns: repeat(2, 1fr); }
  .founder-photo { grid-column: 1 / 13; grid-row: auto; max-width: 320px; margin-bottom: 40px; justify-self: start; }
  .founder .text { grid-column: 1 / 13; padding-left: 0; }
  .founder.no-photo .text { grid-column: 1 / 13; }
  .install-art { grid-column: 1 / 13; margin-top: 48px; }
}
@media (max-width: 800px) {
  .journey.field { grid-template-columns: 1fr; }
  .hero-art, .panel-art { height: 560px; padding: 132px 12px 0; margin-top: 32px; border-radius: 28px; }
  .hero-art .phone, .panel-art .phone { --w: 78vw; }
  .panel-art .n-top, .feature.flip .panel-art .n-top { left: 12px; right: auto; top: 12px; }
  .panel-art .n-side, .feature.flip .panel-art .n-side { display: none; }
  .panel-art.grid-art, .moment-art { height: auto; padding: 16px; }
  .panel-art.report-art { height: auto; padding: 20px 16px 110px; }
  .when-alerts { grid-template-columns: 1fr; }
  .chapter h2 { font-size: 13vw; }
  .feature h3 { font-size: 9vw; }
  .all { grid-template-columns: 1fr; gap: 20px; }
  .flagtrack li { font-size: var(--t5); padding: 8px 18px 8px 8px; }
  .flagtrack img { width: 32px; height: 24px; }
  .qr-row .qr.big { display: none; }
  .install-art { display: none; }
}

/* Round 4b (owner): quieter terracotta for fields; the hero feed of things you only approve */
:root { --terra-deep: color-mix(in srgb, #b4502d 62%, #0e0f12); }
.panel-art.terra, .terrafield { background: var(--terra-deep); }
.feed { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.feed .slot { position: absolute; --cw: 260px; transition: opacity 420ms var(--soft), transform 520ms var(--spring); }
.feed .s1 { left: 24px; top: 24px; }
.feed .s2 { right: 20px; top: 30%; }
.feed .s3 { left: 20px; bottom: 30%; }
.feed .s4 { right: 24px; bottom: 28px; }
.feed .slot.out { opacity: 0; transform: translateY(10px) scale(.96); }
.hero-art { padding-top: 120px; }
.approve { font-size: var(--t3); font-weight: 700; letter-spacing: -.015em; }
@media (max-width: 800px) {
  .feed .slot { --cw: 230px; }
  .feed .s2, .feed .s3 { display: none; }
  .feed .s1 { left: 12px; top: 12px; }
  .feed .s4 { right: 12px; bottom: 16px; }
  .hero-art { padding-top: 120px; }
}

/* Round 5 (owner): true-proportion pass, scrolling report, quiet footer, light theme */
.pass-img { height: auto; }
.phone { align-self: center; }

/* The real report at A4 proportions, scrolling by itself while in view */
.panel-art.report-art { flex-direction: column; gap: 16px; padding: 56px 40px; }
.report-scroll { width: 100%; max-width: 520px; aspect-ratio: 210 / 297; overflow-y: auto; border-radius: 14px; background: #fff; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c9c2b6 transparent; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .5); } /* taste-skill-ignore: paper floats on the panel */
.report-scroll img { display: block; width: 100%; height: auto; }
.report-scroll:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }
.report-scroll.tall { max-width: 760px; aspect-ratio: auto; height: min(80vh, 900px); }

/* Footer: one quiet band */
footer.foot { display: grid; gap: 56px; padding: 72px var(--m) 32px; background: var(--ground-2); }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.foot-mark { width: 180px; height: auto; }
.foot-go { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--terra-deep); color: #fff; font-weight: 700; text-decoration: none; transition: transform 160ms var(--spring); }
.foot-go svg { width: 18px; height: 18px; transition: transform 240ms var(--spring); }
@media (hover: hover) { .foot-go:hover svg { transform: translateX(4px); } }
.foot-go:active { transform: scale(.97); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 32px; }
.foot-cols h3 { font-size: var(--t5); font-weight: 500; color: var(--fg-soft); margin: 0 0 14px; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-cols a { color: var(--fg); text-decoration: none; font-size: var(--t5); }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: .2em; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 8px; color: var(--fg-soft); font-size: 14px; }
.foot-base p { margin: 0; }
@media (max-width: 700px) {
  footer.foot { gap: 40px; padding-top: 56px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-mark { width: 140px; }
}

/* Theme toggle */
.bar-end { display: flex; align-items: center; gap: 12px; }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink-2); color: var(--fg); cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--spring); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle:active { transform: scale(.94); }
@media (hover: hover) { .theme-toggle:hover { background: var(--ink-3); } }
.theme-toggle .moon, :root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }

/* Light theme: the same page on paper */
:root[data-theme="light"] {
  --night: #f3f0ea; --ink: #e9e4da; --ink-2: #dfd8cc; --ink-3: #cdc5b7; --paper: #16191c; --sand: #e6dfd3;
  --fg-soft: #57534c; --terra-ink: #9c4425; --amber: #8a5f00; --green: #2f7d4a;
  --terra-deep: #a8492a;
  color-scheme: light; scrollbar-color: var(--ink-3) var(--night);
}
:root[data-theme="light"] ::selection { color: #fff; }
:root[data-theme="light"] .alert { background: #fff; color: #16191c; box-shadow: inset 0 0 0 1px #e2dccf, 0 24px 48px -22px rgba(40, 30, 20, .35); } /* taste-skill-ignore: app notifications float */
:root[data-theme="light"] .store { color: #f3f0ea; }
@media (hover: hover) { :root[data-theme="light"] .store:hover { background: #000; } :root[data-theme="light"] .terrafield .store:hover { background: #fff; } }
:root[data-theme="light"] .terrafield .store { background: #f3f0ea; color: #16191c; }
:root[data-theme="light"] .qr { background: #fff; }
:root[data-theme="light"] .phone { box-shadow: inset 0 0 0 1.5px #3b3f46, inset 0 0 0 calc(var(--w) * .012) #0a0b0d, 0 40px 80px -40px rgba(40, 30, 20, .45); } /* taste-skill-ignore: the phone floats */
img { height: auto; }
footer.foot { grid-template-columns: minmax(0, 1fr); }

/* Round 6 (owner): liquid glass surfaces, and terracotta on everything you can press */
:root {
  --glass: rgba(34, 37, 43, .5); --glass-hi: rgba(255, 255, 255, .16); --glass-edge: rgba(255, 255, 255, .07);
  --glass-drop: 0 24px 56px -28px rgba(0, 0, 0, .75); --glass-blur: blur(24px) saturate(170%);
}
:root[data-theme="light"] {
  --glass: rgba(255, 255, 255, .58); --glass-hi: rgba(255, 255, 255, .95); --glass-edge: rgba(22, 25, 28, .07);
  --glass-drop: 0 24px 56px -30px rgba(60, 40, 20, .35);
}
.bar, .alert, :root[data-theme="light"] .alert, .rulecard, .journey a, .planner:not(.over), .gridcard, .grid-art .gridcard, .where label, .theme-toggle, .faq details:not([open]) {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 46%), var(--glass); /* taste-skill-ignore: specular sheen of the glass */
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); /* taste-skill-ignore: owner asked for liquid glass across the site */
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-edge), var(--glass-drop); /* taste-skill-ignore: glass edge light and drop */
}
.bar { margin: 12px var(--m) 0; top: 12px; border-radius: 22px; padding: 10px 12px 10px 22px; }
.where input:checked + label { background: var(--paper); color: var(--ink); }

/* Liquid terracotta: the primary pills carry the same edge light */
.btn, .foot-go, .alert .acts span, .review .acts button:not(.no) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .18), 0 10px 24px -12px rgba(156, 68, 37, .7); } /* taste-skill-ignore: liquid glass pill */

/* Hover and focus: terracotta, everywhere */
@media (hover: hover) {
  a:not(.btn):not(.store):not(.foot-go):not(.brand):hover, .bar nav a:hover, .faq summary:hover { color: var(--terra-ink); }
  .store:hover, :root[data-theme="light"] .store:hover { background: var(--terra); color: #fff; }
  .terrafield .store:hover, :root[data-theme="light"] .terrafield .store:hover { background: #fff; color: var(--terra-strong); }
  .theme-toggle:hover, .where label:hover, .review .acts button.no:hover { background: var(--terra); color: #fff; }
  .journey a:hover:not(.on) { background: color-mix(in srgb, var(--terra) 30%, var(--glass)); }
  .btn:hover, .foot-go:hover { background: var(--terra-strong); }
}
.store, .theme-toggle, .where label, .faq summary, .foot-cols a, .review .acts button { transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--spring); }
:focus-visible { outline-color: var(--terra-ink); }
/* Notifications sit over busy screens: denser glass, like iOS */
.alert { --glass: rgba(28, 31, 36, .8); }
:root[data-theme="light"] .alert { --glass: rgba(255, 255, 255, .86); }
.founder .bio-more { max-width: 52ch; color: var(--fg-soft); }
/* Install: the QR on its own paper card, aligned to the right edge */
.install-art { justify-items: end; }
.install .qr-row { width: 260px; padding: 24px 24px 22px; gap: 16px; border-radius: 28px; background: #f3f0ea; color: #16191c; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); } /* taste-skill-ignore: the card floats on the field */
.install .qr-row p { color: #16191c; font-size: 15px; line-height: 1.4; }
.install .qr.big { width: 212px; height: 212px; padding: 0; background: transparent; }
@media (max-width: 800px) { .install .install-art { display: none; } }

/* Brand accent in type: one terracotta word per headline, like the i in the wordmark */
:root { --hl: #d4693f; }
:root[data-theme="light"] { --hl: #a8492a; }
.hl { font-style: normal; color: var(--hl); }
.terrafield .hl, .panel-art.terra .hl { color: inherit; }
.founder .sig { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--fg); background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-edge); transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--spring); } /* taste-skill-ignore: glass edge */
.social svg { width: 20px; height: 20px; }
.social a:active { transform: scale(.94); }
@media (hover: hover) { .social a:hover { background: var(--terra); color: #fff; } }
.days { width: 100%; max-width: 460px; }
.days input[type="range"] { width: 100%; }

/* Panel round (19 Oct): the founder line in the hero */
.hero .by { color: var(--fg); font-size: var(--t5); max-width: 46ch; }
.hero .by a { white-space: nowrap; }
.prove-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-self: start; }
