/* Rando facile / Easy Walks — the public site (home and partners pages).
   The palette is the app's: #BC5034 is AccentColor.colorset and #D97150 its
   dark variant, cream and ink come from the icon. Barlow is the face of the
   app preview films, self-hosted under /fonts (SIL OFL, fonts/OFL.txt).
   The route and destination cards, privacy and help still use brand.css. */

@font-face { font-family: "Barlow"; src: url(/fonts/barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --terracotta: #BC5034;
  --terracotta-deep: #9E4029;
  --terracotta-glow: #D97150;
  --cream: #F8ECDE;
  --ink: #2A1D18;
  --board: #211612;
  --cell: #3A2A23;
  --on-terracotta: #FFF8F1;      /* body text on terracotta: 4.9:1 */
  --page: var(--cream);
  --text: var(--ink);
  --muted: #6B564C;
  --rule: rgba(42, 29, 24, 0.16);
  --accent: var(--terracotta);
  --card: #FFFFFF;               /* partners.css still reads these four */
  --terracotta-dark: var(--terracotta-deep);
  --face: "Barlow", system-ui, -apple-system, "Hiragino Sans", "PingFang SC", "PingFang TC",
          "Noto Sans Devanagari", "Segoe UI", sans-serif;
  --in: min(72rem, 100% - 2.5rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #1B1310;
    --text: #F3E7DA;
    --muted: #C2AC9E;
    --rule: rgba(243, 231, 218, 0.16);
    --accent: var(--terracotta-glow);
    --card: #241A16;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 500 1.0625rem/1.6 var(--face);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--terracotta); color: #fff; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.in { width: var(--in); margin-inline: auto; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.025em; line-height: 1; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; }

/* --- the bar across the top ------------------------------------------------ */
.top { background: var(--terracotta); color: var(--on-terracotta); }
.top .in { display: flex; align-items: center; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
@media (max-width: 560px) { .brand span { display: none; } .lang summary { padding-inline: .65rem; } }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,248,241,.35); }
.topnav { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.offices-link {
  text-decoration: none; font-weight: 700; font-size: .95rem; padding: .5rem .95rem; border-radius: 999px;
  background: var(--on-terracotta); color: var(--terracotta-deep); white-space: nowrap;
  transition: background .2s, color .2s;
}
.offices-link:hover { background: var(--ink); color: var(--cream); }
.offices-link[aria-current="page"] { background: var(--ink); color: var(--cream); }

/* Language: a disclosure, every link still in the markup for crawlers. Never
   an automatic redirect: whoever scans a QR code keeps the page they were handed. */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: .9rem; padding: .5rem .8rem;
  border-radius: 999px; border: 1px solid rgba(255,248,241,.45); white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .5em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.lang[open] summary { background: rgba(255,248,241,.14); }
.lang .langswitch {
  position: absolute; right: 0; top: calc(100% + .4rem); z-index: 10; min-width: 11rem;
  display: grid; padding: .35rem; border-radius: 12px; background: var(--ink); color: var(--cream);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.5);
}
.langswitch a, .langswitch span { padding: .45rem .7rem; border-radius: 8px; text-decoration: none; white-space: nowrap; font-weight: 500; }
.langswitch a:hover { background: rgba(248,236,222,.1); }
.langswitch [aria-current="true"] { color: var(--terracotta-glow); font-weight: 700; }

/* --- the hero: terracotta, the query, the board ---------------------------- */
.hero { position: relative; overflow: hidden; background: var(--terracotta); color: var(--on-terracotta); padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem); }
.hero .in { position: relative; z-index: 1; }
.loopline { position: absolute; z-index: 0; pointer-events: none; right: -14vw; top: -10%; width: min(78vw, 980px); height: auto; color: rgba(255,248,241,.13); }
.hero h1 { font-size: clamp(2.9rem, 8.6vw, 6rem); line-height: .92; letter-spacing: -0.035em; max-width: 13ch; color: var(--cream); }
:lang(hi) h1, :lang(hi) h2 { line-height: 1.2; }
.unit { margin: 0 .2em; }
.unit:last-child { margin-right: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h1-alt { display: block; font-size: .5em; letter-spacing: -0.01em; margin-top: .35em; opacity: .85; }
.lede { font-size: clamp(1.1rem, 1.9vw, 1.35rem); line-height: 1.5; max-width: 38ch; margin: 1.25rem 0 0; }

.board {
  margin-top: clamp(2rem, 4vw, 3rem); background: var(--board); color: var(--cream); border-radius: 4px;
  padding: clamp(.9rem, 2vw, 1.5rem) clamp(.9rem, 2.4vw, 1.8rem) clamp(.4rem, 1vw, .8rem);
  border-top: 6px solid #120C0A; box-shadow: 0 2px 0 rgba(255,255,255,.04) inset;
}
.board-head { display: flex; align-items: baseline; gap: .4rem 1.2rem; flex-wrap: wrap; padding-bottom: .9rem; border-bottom: 2px solid var(--terracotta); }
.board-head .what { font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: rgba(248,236,222,.72); }
.board-head .where { font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: -0.01em; }
.clock { margin-left: auto; font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-variant-numeric: tabular-nums; color: var(--terracotta-glow); }
.clock .colon { animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.board table { width: 100%; border-collapse: collapse; }
.board thead th { font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: rgba(248,236,222,.6); text-align: left; padding: .8rem .6rem .4rem 0; }
.board thead th.num, .board td.fig { text-align: right; }
.board tbody tr { border-top: 1px solid rgba(248,236,222,.12); }
.board tbody tr:first-child { border-top: 0; }
.board td, .board tbody th { padding: .95rem .6rem .95rem 0; vertical-align: middle; }
.board td:last-child, .board th:last-child { padding-right: 0; }
.tag span {
  display: inline-block; white-space: nowrap; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .32rem .55rem; border-radius: 4px; background: var(--terracotta); color: #fff;
}
.official .tag span { background: var(--cream); color: var(--ink); }
.board tbody th { text-align: left; font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.2; }
.board tbody th small { display: block; font-weight: 500; font-size: .85rem; color: rgba(248,236,222,.66); margin-top: .2rem; letter-spacing: 0; }
.official th { color: #fff; }
.fig { font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.45rem); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Split-flap cells, drawn by site.js around the text that is already there. */
.cell { display: inline-block; min-width: .64em; text-align: center; position: relative; margin-left: 2px;
  padding: .06em .07em; border-radius: 3px; background: var(--cell); line-height: 1.15; }
.cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.55); }
.cell.blank { background: none; min-width: .3em; }
.cell.blank::after { display: none; }
.board-note { font-size: .9rem; color: rgba(255,248,241,.86); margin: .9rem 0 0; max-width: 62ch; }

/* The office's row flips in once the generated loops have settled. */
.motion .official > * { animation: flipin .7s cubic-bezier(.2,.9,.2,1) both; animation-delay: 1.15s; transform-origin: 50% 0; }
@keyframes flipin { from { opacity: 0; transform: perspective(600px) rotateX(-75deg); } }

.badges { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge img { height: 54px; width: auto; }
.platforms { font-size: .95rem; margin: .8rem 0 0; color: rgba(255,248,241,.9); }

@media (max-width: 720px) {
  .board thead { display: none; }
  .board tbody tr { display: grid; grid-template-columns: repeat(3, auto); gap: .55rem 1rem; padding: 1rem 0; justify-content: start; }
  .board td, .board tbody th { padding: 0; }
  .board td.tag { grid-column: 1 / -1; }
  .board tbody th { grid-column: 1 / -1; }
  .board td.fig { text-align: left; font-size: 1.05rem; }
  .board td.fig::before { content: attr(data-label); display: block; font-weight: 600; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(248,236,222,.6); margin-bottom: .2rem; }
  .clock { display: none; }
}

/* --- walkers: how it works, why the station -------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.steps4 { list-style: none; counter-reset: s; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps4 li { counter-increment: s; border-top: 3px solid var(--text); padding-top: 1rem; font-size: 1.05rem; }
.steps4 li::before { content: counter(s); display: block; font-weight: 900; font-size: 3rem; line-height: 1; color: var(--accent); margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .steps4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps4 { grid-template-columns: 1fr; } }

.why { margin-top: clamp(3.5rem, 8vw, 6rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.why p { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; margin: 1.2rem 0 0; max-width: 46ch; }
.why figure { margin: 0; }
.why img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.why figcaption, .tv figcaption small { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; } }

/* --- offices: the ink chapter ---------------------------------------------- */
.offices { background: var(--ink); color: var(--cream); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.offices h2 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); max-width: 16ch; color: #fff; }
.offices .lede { color: rgba(248,236,222,.88); max-width: 52ch; }
.offices-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .offices-grid { grid-template-columns: 1fr; } }
.gets { list-style: none; margin: 0; padding: 0; }
.gets li { padding: 1.05rem 0; border-top: 1px solid rgba(248,236,222,.16); color: rgba(248,236,222,.86); }
.gets li:first-child { border-top: 0; padding-top: 0; }
.gets strong { display: block; text-wrap: balance; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: .15rem; }

.tv { margin: 0; }
.screen { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; background: #000;
  box-shadow: 0 0 0 10px #120C0A, 0 40px 70px -30px rgba(0,0,0,.8); }
.screen img { display: block; width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-2%, 1%); } }
.bug { position: absolute; top: 4%; right: 3.5%; font-weight: 800; font-size: clamp(.75rem, 1.4vw, .95rem); color: #fff; letter-spacing: .02em;
  text-shadow: 0 1px 6px rgba(0,0,0,.6); opacity: .92; }
.live { position: absolute; top: 4%; left: 3.5%; display: inline-flex; align-items: center; gap: .4rem; background: var(--terracotta); color: #fff;
  font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: .3rem .55rem; border-radius: 4px; }
.live i { width: .5rem; height: .5rem; border-radius: 50%; background: #fff; animation: blink 1.6s steps(1) infinite; }
.tv figcaption { margin-top: 1.6rem; }
.tv h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; letter-spacing: -0.02em; }
.tv p { color: rgba(248,236,222,.86); margin: .7rem 0 0; }
.tv p strong { color: #fff; }
.tv figcaption small { display: block; color: rgba(248,236,222,.55); }

.deal { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  border-top: 2px solid var(--terracotta); padding-top: clamp(2rem, 4vw, 3rem); }
.qrcard { margin: 0; display: grid; grid-template-columns: 132px 1fr; gap: 1rem; align-items: center; max-width: 28rem; }
.qrcard img { width: 132px; height: 132px; border-radius: 2px; display: block; }
.qrcard figcaption { font-size: .92rem; color: rgba(248,236,222,.82); }
.qrcard code { display: block; margin-top: .35rem; font: 600 .85rem/1.3 ui-monospace, Menlo, monospace; color: var(--terracotta-glow); word-break: break-all; }
.price .offer-h { font-weight: 700; margin: 0; color: #fff; }
.price .amount { font-weight: 900; font-size: clamp(2.8rem, 6vw, 4.2rem); letter-spacing: -0.03em; color: #fff; line-height: 1; }
.price .per { font-weight: 600; margin-left: .4rem; }
.price s { margin-left: .7rem; color: rgba(248,236,222,.55); font-weight: 600; }
.price .terms { font-size: .92rem; color: rgba(248,236,222,.75); margin: .6rem 0 0; max-width: 52ch; }
.price .row { margin: .5rem 0 0; }
@media (max-width: 760px) { .deal { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem; text-decoration: none; font-weight: 800; font-size: 1.05rem;
  padding: .9rem 1.4rem; border-radius: 999px; background: var(--terracotta); color: #fff; transition: background .2s, transform .2s; }
.btn:hover { background: var(--terracotta-deep); transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn.ghost { background: none; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:hover { background: rgba(248,236,222,.1); }

/* --- what it does not do, footer ------------------------------------------- */
.not { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.not li { padding: 1rem 0; border-top: 1px solid var(--rule); font-size: 1.05rem; }
@media (max-width: 680px) { .not { grid-template-columns: 1fr; } }

.foot { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; font-size: .88rem; color: var(--muted); }
.foot p { margin: .4rem 0; max-width: 90ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: 1rem; font-weight: 600; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The offices' own strip of board: their row arrives above a generated loop. */
.board.strip { margin-top: clamp(2.5rem, 5vw, 3.5rem); background: #120C0A; }
.board.strip tbody th small { color: rgba(248,236,222,.6); }
.board.strip .dash { color: rgba(248,236,222,.4); font-weight: 700; }
.board.strip tr.dim { opacity: .55; }
.motion .strip:not(.arrive) .official > * { opacity: 0; animation: none; }
.motion .strip.arrive .official > * { animation-delay: .15s; }
