/* Restaurant Calculator site. Light paper base, deep ink, tomato and basil accents.
   The calculator keys keep the app's saffron operator color. */

:root {
  --paper: #FAF6EE;
  --paper-2: #F3ECDF;
  --cream: #EFE5D3;
  --surface: #FFFDF8;
  --ink: #1C1915;
  --ink-2: #57514A;
  --ink-3: #8A8278;
  --line: #E6DDCC;
  --line-2: #D9CDB8;
  --tomato: #D8432A;
  --tomato-ink: #B3321C;
  --tomato-soft: #FBE4DC;
  --basil: #2E6A4C;
  --basil-soft: #E2EEE3;
  --saffron: #F5A524;
  --saffron-soft: #FDEFD3;
  --sky: #3E6FB0;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-1: 0 1px 2px rgba(40, 30, 15, .06), 0 4px 14px rgba(40, 30, 15, .06);
  --shadow-2: 0 2px 4px rgba(40, 30, 15, .05), 0 18px 50px -12px rgba(40, 30, 15, .22);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --gutter: 16px;
}

@media (min-width: 768px) { :root { --gutter: 28px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 760; letter-spacing: -0.03em; line-height: 1.02; margin: 0; text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
p { margin: 0; }
::selection { background: var(--saffron-soft); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 132px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .themes-copy h2, .kit h2, .faq h2, .final-cta h2 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.9rem); }
.section-head p { margin-top: 16px; font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); color: var(--ink-2); }
.eyebrow { font-size: .82rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--tomato-ink); margin-bottom: 18px; }
.lede { font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); color: var(--ink-2); max-width: 34em; }
.fine { font-size: .9rem; color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 650; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 18px -8px rgba(28,25,21,.6); }
.btn-ink:hover { background: #2E2A24; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 12px 26px -10px rgba(28,25,21,.55); }
.btn-tomato { background: var(--tomato); color: #fff; box-shadow: 0 10px 24px -12px rgba(216,67,42,.8); }
.btn-tomato:hover { background: #C93A22; box-shadow: 0 16px 30px -12px rgba(216,67,42,.85); }
.btn-block { width: 100%; }

.badge-appstore {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px;
  background: var(--ink); color: #fff; border-radius: 14px; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(28,25,21,.7);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.badge-appstore:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(28,25,21,.7); }
.badge-appstore:active { transform: scale(.97); }
.badge-appstore svg { width: 26px; height: 26px; }
.badge-appstore span { display: flex; flex-direction: column; line-height: 1.1; }
.badge-appstore small { font-size: .72rem; opacity: .85; }
.badge-appstore strong { font-size: 1.22rem; font-weight: 650; letter-spacing: -.01em; }
.badge-lg { height: 64px; }
.pill-quiet {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px dashed var(--line-2); color: var(--ink-2); font-size: .92rem; font-weight: 550; cursor: default;
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.nav.is-scrolled { background: rgba(250, 246, 238, .78); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 rgba(28,25,21,.08); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 750; font-size: 1.08rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 8px; }
/* Nav logo: the app icon drawn as SVG so its keys can move. On load (and on hover) it taps out a sum:
   %, ÷, the fork and knife (which clink), then = with a little bounce. Once, never on a loop. */
.brand-mark { flex: none; width: 32px; height: 32px; border-radius: 8px; }
.brand-mark .k, .brand-mark .fork, .brand-mark .knife { transform-box: fill-box; transform-origin: center; }
.brand-mark.tap .k { animation: keyTap .4s cubic-bezier(.3, .7, .4, 1.3) both; }
.brand-mark.tap .k2 { animation-delay: .12s; }
.brand-mark.tap .k3 { animation-delay: .24s; }
.brand-mark.tap .k4 { animation: keyEq .62s cubic-bezier(.3, .7, .4, 1.3) .38s both; }
.brand-mark.tap .fork { transform-origin: 50% 100%; animation: clinkL .42s ease-in-out .26s both; }
.brand-mark.tap .knife { transform-origin: 50% 100%; animation: clinkR .42s ease-in-out .26s both; }
@keyframes keyTap { 35% { transform: scale(.76); } 100% { transform: scale(1); } }
@keyframes keyEq { 30% { transform: scale(.74); } 65% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes clinkL { 40% { transform: rotate(14deg); } 100% { transform: none; } }
@keyframes clinkR { 40% { transform: rotate(-14deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .brand-mark.tap * { animation: none !important; } }
.nav-links { display: none; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 550; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(28,25,21,.06); }
.nav .btn { margin-left: auto; }
@media (min-width: 860px) { .nav-links { display: flex; } .nav .btn { margin-left: 8px; } }
@media (max-width: 380px) { .brand span { font-size: .98rem; } }
/* Smallest phones: tighter gaps, a slightly smaller wordmark and button, so "Try free" stays on screen. */
@media (max-width: 359px) {
  .nav-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand span { font-size: .9rem; }
  .nav .btn-sm { padding: 0 14px; }
}
/* Under 300px (folded phones) only the icon fits; the link keeps its "Restaurant Calculator home" label. */
@media (max-width: 299px) { .brand span { display: none; } }

/* Hero */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 78% 38%, rgba(245,165,36,.22), transparent 70%),
    radial-gradient(520px 380px at 92% 80%, rgba(216,67,42,.12), transparent 70%),
    radial-gradient(700px 500px at 0% 0%, rgba(46,106,76,.07), transparent 70%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(28,25,21,.09) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent);
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 1.5rem + 5.4vw, 5.1rem); font-weight: 800; letter-spacing: -.045em; line-height: .96; }
.hero .lede { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.hero .fine { margin-top: 16px; text-wrap: balance; }
.hero-demo { position: relative; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 32px; }
}

/* Receipt beside the phone (wide screens): thermal paper lying on the table, tucked under the phone's right edge.
   js/calc.js prints it for the visitor's country and highlights the line the calculator just worked out. */
.receipt { display: none; }
@media (min-width: 1320px) {
  /* The phone and the receipt are one group, centred in the column: the phone moves left by half the receipt's
     showing width, so the receipt never runs past the page's edge. The receipt sits in the device stage, the
     phone's width: it starts 44px in from the phone's right edge (half the phone, 152px, less 44). */
  .hero-demo { padding-right: 192px; }
  .receipt {
    --rc-ink: #2E2A25; --rc-faint: #8C857A; --rc-rule: #CFC7B8;
    display: flex; flex-direction: column; gap: 9px; position: absolute; z-index: 0;
    left: calc(50% + 108px); top: 84px; width: 236px; padding: 22px 18px 26px 44px;
    font: 500 10.5px/1.45 ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace; letter-spacing: .01em; color: var(--rc-ink);
    background: linear-gradient(180deg, #FFFEFA, #FBF8F1 70%, #F7F3EA);
    transform: rotate(-2.5deg); transform-origin: 0 0;
    filter: drop-shadow(0 1px 1px rgba(40, 30, 15, .12)) drop-shadow(0 14px 22px rgba(40, 30, 15, .16));
    /* Torn top and bottom: small teeth, like paper pulled off a printer */
    -webkit-mask:
      conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 10px 5px repeat-x,
      linear-gradient(#000 0 0) 0 5px / 100% calc(100% - 10px) no-repeat,
      conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10px 5px repeat-x;
            mask:
      conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 10px 5px repeat-x,
      linear-gradient(#000 0 0) 0 5px / 100% calc(100% - 10px) no-repeat,
      conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10px 5px repeat-x;
  }
  /* Nothing shows until the receipt is printed: an empty one would flash its torn edges on load. */
  .receipt:empty { visibility: hidden; }
  .receipt.is-printing { animation: rc-print .7s var(--ease-out) both; }
  .rc-head { display: flex; flex-direction: column; align-items: center; gap: 5px; }
  .rc-bar { display: block; height: 7px; border-radius: 2px; background: #D9D2C4; }
  .rc-name { width: 62%; height: 10px; background: #B9B1A2; margin-bottom: 2px; }
  .rc-addr { width: 78%; } .rc-addr2 { width: 52%; }
  .rc-staff { width: 64px; align-self: center; }
  .rc-tin { margin-top: 3px; color: var(--rc-faint); font-size: 9.5px; letter-spacing: .02em; }
  .rc-title { margin-top: 4px; font-weight: 800; font-size: 11.5px; letter-spacing: .22em; }
  .rc-meta, .rc-sec { display: flex; flex-direction: column; gap: 1px; padding-top: 8px; border-top: 1px dashed var(--rc-rule); }
  .rc-row { position: relative; display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .rc-meta .rc-row { color: var(--rc-faint); }
  .rc-item b { width: 1.4em; flex-shrink: 0; font-weight: 600; }
  .rc-item span:first-of-type { flex: 1; overflow: hidden; text-overflow: ellipsis; }
  .rc-total { margin: 1px 0; font-weight: 800; font-size: 12.5px; letter-spacing: .04em; }
  .rc-buyer .rc-row { justify-content: flex-start; gap: 6px; color: var(--rc-faint); }
  .rc-blank { flex: 1; align-self: end; height: 1px; margin-bottom: 4px; background: var(--rc-rule); }
  .rc-qr { align-self: center; width: 54px; height: 54px; margin-top: 4px;
    background: conic-gradient(var(--rc-ink) 25%, #0000 0 50%, var(--rc-ink) 0 75%, #0000 0) 0 0 / 9px 9px; opacity: .8; }
  .rc-foot { padding-top: 8px; border-top: 1px dashed var(--rc-rule); text-align: center; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; text-wrap: balance; color: var(--rc-faint); }
  /* The line the calculator just worked out: a highlighter swipe, left to right */
  .rc-row::before { content: ""; position: absolute; inset: -1px -5px; z-index: -1; border-radius: 3px;
    background: linear-gradient(100deg, rgba(245, 165, 36, .5), rgba(245, 165, 36, .38)); transform: scaleX(0); transform-origin: left; transition: transform .1s; }
  .rc-row.is-answer::before { transform: scaleX(1); transition: transform .45s var(--ease-out); }
  .rc-row.is-answer { z-index: 0; }
}
@keyframes rc-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .receipt.is-printing { animation: none; } .rc-row.is-answer::before { transition: none; } }

/* Phone */
.phone {
  --phone-font: 16px;
  position: relative; z-index: 1;
  font-size: var(--phone-font);
  width: 19em; height: 39.5em; padding: .55em;
  border-radius: 3.1em;
  background: linear-gradient(145deg, #3A3631, #1C1915 40%, #2A2622);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(28,25,21,.55), 0 18px 36px -18px rgba(28,25,21,.4);
  flex-shrink: 0;
}
@media (max-width: 400px) { .phone { --phone-font: 15px; } }
/* Under 340px the hero phone scales with the screen so it never runs off the side. */
@media (max-width: 339px) { .hero .phone { --phone-font: min(15px, calc((100vw - 34px) / 19)); } }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 2.6em; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: background-color .4s; }
.island { position: absolute; top: .6em; left: 50%; width: 5.6em; height: 1.65em; margin-left: -2.8em; background: #000; border-radius: 1em; z-index: 3; }
.status { display: flex; justify-content: space-between; align-items: center; height: 2.9em; padding: .5em 1.7em 0 1.9em; font: 600 .9em/1 var(--font-ui); flex-shrink: 0; transition: color .4s; }
.status-icons { display: flex; gap: .3em; align-items: center; }
.status-icons i { width: .9em; height: .6em; border-radius: 2px; background: currentColor; opacity: .9; }
.status-icons b { width: 1.5em; height: .7em; border-radius: 3px; border: 1.5px solid currentColor; }

/* Calculator component: themes set colors through variables */
.calc {
  --c-bg: #FFFFFF; --c-text: #111; --c-sub: #8E8E93;
  --k-num: #E5E5EA; --k-num-t: #111; --k-fn: #C7C7CC; --k-fn-t: #111; --k-op: #FF9F0A; --k-op-t: #fff; --k-ac: #C7C7CC; --k-ac-t: #111;
  --q-bg: #E5E5EA; --q-t: #111;
  --d-bg: transparent; --d-text: #111; --d-sub: #8E8E93; --d-glow: none;
  --k-radius: 50%; --k-shadow: none; --k-weight: 400;
  flex: 1; display: flex; flex-direction: column; padding: 0 .85em .6em; background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-ui); outline: none; transition: background-color .4s;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.calc:focus-visible { box-shadow: inset 0 0 0 3px var(--sky); border-radius: 0 0 2em 2em; }
.calc-brand { height: 1.5em; display: flex; justify-content: space-between; align-items: center; padding: 0 .2em; font: 800 .72em/1 var(--font-ui); letter-spacing: .1em; visibility: hidden; }
.calc-brand-model { font-weight: 600; font-style: italic; letter-spacing: .04em; opacity: .7; }
.calc-display {
  height: 8.6em; display: flex; flex-direction: column; justify-content: flex-end; text-align: right;
  background: var(--d-bg); color: var(--d-text); border-radius: .6em; padding: .3em .35em .25em;
  font-variant-numeric: tabular-nums; transition: background-color .4s, color .4s;
}
.d-hist { height: 1.4em; font-size: .82em; color: var(--d-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; }
.d-hist-text { direction: ltr; unicode-bidi: embed; }
.d-expr { height: 3.1rem; display: flex; justify-content: flex-end; align-items: flex-end; overflow: hidden; white-space: nowrap; font-size: 1em; }
.d-expr span { font-size: calc(2.85em * var(--fit, 1)); line-height: 1.05; font-weight: 300; letter-spacing: -.02em; text-shadow: var(--d-glow); }
.d-res { height: 1.75em; font-size: 1.45em; line-height: 1.4; color: var(--d-sub); font-weight: 300; white-space: nowrap; overflow: hidden; text-shadow: var(--d-glow); }
.phone .d-expr { height: 3.15em; }
/* Each quick key as wide as its label, the spare room shared out, as in the app ("VAT amt" needs more than "+VAT") */
.calc-quick { display: flex; gap: .25em; margin: .55em 0 .6em; }
.calc-quick::before { content: "( )"; flex: 0 0 2.4em; display: grid; place-items: center; height: 2.1em; border-radius: 1em; background: var(--k-fn); color: var(--k-fn-t); font-size: .74em; font-weight: 600; opacity: .85; }
/* Both sized in the keys' own .74em type, so "( )" and the quick keys are the same height. */
.calc-quick button { flex: 1 0 auto; height: 2.1em; border: 0; border-radius: 1em; background: var(--q-bg); color: var(--q-t); font-size: .74em; font-weight: 550; padding: 0 .4em; transition: transform .12s, filter .12s, background-color .4s, color .4s; white-space: nowrap; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: .62em; }
.calc-keys button {
  aspect-ratio: 1; border: 0; border-radius: var(--k-radius); padding: 0;
  display: grid; place-items: center; font-size: 1.62em; font-weight: var(--k-weight);
  box-shadow: var(--k-shadow);
  transition: transform .14s var(--ease-out), filter .14s, background-color .4s, color .4s, border-radius .4s, box-shadow .4s;
}
.calc-keys button svg { width: 1.05em; height: 1.05em; }
/* The delete key matches the regular weight of AC and %; the retro looks keep their heavier stroke. */
.calc[data-theme="standard"] .calc-keys button svg path { stroke-width: 1.55; }
.k-num { background: var(--k-num); color: var(--k-num-t); }
.k-fn { background: var(--k-fn); color: var(--k-fn-t); }
.k-ac { background: var(--k-ac); color: var(--k-ac-t); }
.k-op { background: var(--k-op); color: var(--k-op-t); font-size: 1.85em !important; }
.calc-keys button:hover, .calc-quick button:hover { filter: brightness(1.04); }
.calc-keys button:active, .calc-keys button.is-down, .calc-quick button:active, .calc-quick button.is-down { transform: scale(.9); filter: brightness(.86); }
.calc-quick button.is-ring { box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 4px var(--tomato); animation: ring 1s var(--ease-out) infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 6px rgba(216,67,42,.35); } }

.tabbar { flex-shrink: 0; margin: 0 .8em .75em; height: 3.3em; border-radius: 1.8em; background: rgba(240,240,244,.92); border: 1px solid rgba(0,0,0,.05); display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 0 .25em; font: 600 .56em/1.1 var(--font-ui); color: #222; transition: background-color .4s, color .4s; }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: .25em; padding: .5em 0; border-radius: 2em; }
.tabbar b { font-size: 1.5em; line-height: 1; font-weight: 600; filter: grayscale(1); }
.tabbar .on { background: rgba(0,0,0,.06); color: #F08A00; }

/* Solar theme */
.calc[data-theme="solar"] {
  --c-bg: linear-gradient(180deg, #4A5166, #3A3F50); --c-text: #E8EAF0;
  --k-num: linear-gradient(180deg, #3A3C44, #2A2B31); --k-num-t: #F2F2F4;
  --k-fn: linear-gradient(180deg, #3A3C44, #2A2B31); --k-fn-t: #F2F2F4;
  --k-op: linear-gradient(180deg, #3A3C44, #2A2B31); --k-op-t: #F2F2F4;
  --k-ac: linear-gradient(180deg, #D46572, #B84756); --k-ac-t: #fff;
  --q-bg: linear-gradient(180deg, #34363D, #26272C); --q-t: #EDEDF0;
  --d-bg: #BFC9A6; --d-text: #1E2418; --d-sub: #4E5840;
  --k-radius: .38em; --k-shadow: 0 .14em 0 #15161A, 0 .25em .5em rgba(0,0,0,.35); --k-weight: 700;
  background: #424859;
}
.calc[data-theme="solar"] .calc-display { box-shadow: inset 0 .15em .4em rgba(0,0,0,.35), 0 0 0 .3em #23252C; margin: 0 .2em; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.calc[data-theme="solar"] .d-expr span { font-weight: 500; letter-spacing: .02em; }
.calc[data-theme="solar"] .calc-brand { visibility: visible; color: #E3E6EE; }
.calc[data-theme="solar"] .calc-keys button, .calc[data-theme="solar"] .calc-quick button { background: var(--bg-k, var(--k-num)); }
.calc[data-theme="solar"] .calc-keys .k-ac { background: var(--k-ac); }
.calc[data-theme="solar"] .calc-quick button, .calc[data-theme="solar"] .calc-quick::before { background: var(--q-bg); color: var(--q-t); border-radius: .4em; font-weight: 700; box-shadow: 0 .1em 0 #15161A; }
.calc[data-theme="solar"] .k-op { font-size: 1.62em !important; }

/* Register theme */
.calc[data-theme="register"] {
  --c-text: #3A342C;
  --k-num: linear-gradient(180deg, #F7F1E3, #E7DDC6); --k-num-t: #3A342C;
  --k-fn: linear-gradient(180deg, #B9CCE3, #92AACB); --k-fn-t: #2B3442;
  --k-op: linear-gradient(180deg, #F5C35C, #E3A43A); --k-op-t: #3A2A10;
  --k-ac: linear-gradient(180deg, #E5897A, #CF6655); --k-ac-t: #3B1710;
  --q-bg: linear-gradient(180deg, #CFE6CF, #B3D3B4); --q-t: #29402B;
  --d-bg: #0F1B18; --d-text: #74F2D2; --d-sub: #3FA58C; --d-glow: 0 0 .35em rgba(116,242,210,.55);
  --k-radius: .3em; --k-shadow: 0 .18em 0 #9C8F74, 0 .3em .5em rgba(70,55,30,.25), inset 0 -.12em 0 rgba(0,0,0,.08); --k-weight: 600;
  background: linear-gradient(180deg, #ECE4CF, #E2D8BF);
}
.calc[data-theme="register"] .calc-display { box-shadow: inset 0 .2em .6em rgba(0,0,0,.6), 0 0 0 .3em #2B2721; margin: 0 .2em; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.calc[data-theme="register"] .d-expr span { font-weight: 500; }
.calc[data-theme="register"] .calc-brand { visibility: visible; color: #5A5145; }
.calc[data-theme="register"] .calc-keys button { font-size: 1.45em; border: 1px solid rgba(60,45,20,.35); }
.calc[data-theme="register"] .k-op { font-size: 1.6em !important; }
.calc[data-theme="register"] .calc-quick button, .calc[data-theme="register"] .calc-quick::before { border-radius: .35em; font-weight: 700; text-transform: uppercase; box-shadow: 0 .1em 0 #8FA98F; border: 1px solid rgba(40,60,40,.3); }
.calc[data-theme="register"] .calc-quick::before { background: var(--k-fn); color: var(--k-fn-t); }
.phone-screen:has(.calc[data-theme="solar"]) { background: #424859; color: #E8EAF0; }
.phone-screen:has(.calc[data-theme="solar"]) .tabbar { background: rgba(70,76,94,.95); color: #E3E6EE; border-color: rgba(255,255,255,.08); }
.phone-screen:has(.calc[data-theme="solar"]) .tabbar .on { background: rgba(255,255,255,.12); color: #fff; }
.phone-screen:has(.calc[data-theme="register"]) { background: #E8DFC9; color: #2B2721; }
.phone-screen:has(.calc[data-theme="register"]) .tabbar { background: rgba(245,239,224,.95); color: #3A342C; }
.phone-screen:has(.calc[data-theme="register"]) .tabbar .on { background: rgba(60,45,20,.08); color: #3A342C; }

/* Hero caption: as wide as the phone, so it centres under it and the pause button lines up with its right edge.
   One segment per part of the tour (Calculator, Restaurant, Units, Currency); the current one fills while it plays. */
.demo-caption { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; column-gap: 8px; width: 304px; max-width: 100%; margin-top: 28px; }
.demo-now { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 11px; min-width: 0; }
.demo-steps { display: flex; gap: 6px; }
.demo-steps i { position: relative; width: 30px; height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.demo-steps i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--tomato); transform: scaleX(0); transform-origin: left; }
.demo-steps i.done::after { transform: none; }
.demo-steps i.run::after { animation: stepFill var(--dur, 6s) linear forwards; }
.demo-caption.is-paused .demo-steps i.run::after { animation-play-state: paused; }
@keyframes stepFill { to { transform: none; } }
.demo-text { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--ink-2); animation: capIn .35s var(--ease-out); }
.demo-pause { grid-column: 3; position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-1); cursor: pointer; transition: color .2s, border-color .2s; }
.demo-pause[hidden] { display: none; }
.demo-pause::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.demo-pause:hover { color: var(--ink); border-color: var(--line-2); }
.demo-pause:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.demo-pause svg { width: 13px; height: 13px; fill: currentColor; }
.demo-pause .i-play, .demo-caption.is-held .demo-pause .i-pause { display: none; }
.demo-caption.is-held .demo-pause .i-play { display: block; margin-left: 2px; }
@media (max-width: 400px) { .demo-caption { width: 285px; } }
@media (prefers-reduced-motion: reduce) { .demo-steps i.on::after { transform: none; } }
@keyframes capIn { from { opacity: 0; transform: translateY(6px); } }

/* Proof strip */
.proof { border-block: 1px solid var(--line); background: var(--surface); }
/* Every fact has the same shape: the number, then its label underneath. Hairlines come from the 1px gaps. */
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.proof-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 20px 16px; background: var(--surface); font-weight: 550; color: var(--ink-2); }
.proof-list b { font-family: var(--font-display); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 780; line-height: 1.05; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.proof-list li > span { font-size: .95rem; }
@media (min-width: 768px) {
  .proof-list { grid-template-columns: repeat(4, 1fr); }
  .proof-list li { align-items: center; text-align: center; padding: 26px 16px; }
}

/* Showcase */
.show-grid { display: grid; gap: 20px; }
.show-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.show-tabs::-webkit-scrollbar { display: none; }
.show-tab { flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: background-color .25s, border-color .25s, box-shadow .25s, transform .2s; }
.show-tab:active { transform: scale(.98); }
.show-tab-text span { display: none; }
.show-tab-text b { font-weight: 650; font-size: .95rem; white-space: nowrap; }
.show-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.show-tab-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.show-tab-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-blue { background: #3E6FB0; } .ic-green { background: var(--basil); } .ic-tomato { background: var(--tomato); } .ic-brown { background: #8A5A3B; }
@media (min-width: 980px) {
  .show-grid { grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
  .show-tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 10px; position: sticky; top: 96px; }
  .show-tab { border-radius: 20px; padding: 18px 20px; gap: 16px; align-items: flex-start; background: transparent; border-color: transparent; position: relative; }
  .show-tab-text { display: flex; flex-direction: column; gap: 4px; }
  .show-tab-text b { font-family: var(--font-display); font-size: 1.32rem; letter-spacing: -.02em; white-space: normal; }
  .show-tab-text span { display: block; color: var(--ink-2); font-size: .98rem; line-height: 1.45; }
  .show-tab-icon { width: 40px; height: 40px; border-radius: 11px; }
  .show-tab-icon svg { width: 22px; height: 22px; }
  .show-tab:hover { background: rgba(28,25,21,.04); }
  .show-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-1); }
  .show-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--tomato); }
}

.show-stage { display: grid; position: relative; }
.show-stage > .tool { grid-area: 1 / 1; }
.show-stage > .tool[hidden] { display: flex; visibility: hidden; opacity: 0; pointer-events: none; }
.tool {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-2); overflow: hidden; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.tool[hidden] { transform: translateY(10px) scale(.985); }
.tool-bar { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--paper-2); font-family: var(--font-ui); }
.tool-title { font-weight: 650; font-size: .98rem; }
.tool-flag { font-size: .74rem; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.tool-answer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; padding: 22px 20px 18px; align-items: end; }
.ans { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ans-label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.ans-big { font-family: var(--font-display); font-weight: 760; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.3rem); letter-spacing: -.035em; line-height: 1.1; height: 1.1em; }
.ans-mid { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 1.15rem + 1vw, 1.75rem); letter-spacing: -.02em; line-height: 1.1; height: 1.1em; }
.ans-good { color: var(--basil); }
.ans-bad { color: var(--tomato-ink); }
.ans-big, .ans-mid { transition: color .3s; }
.tool-rows { margin: 0 20px; padding: 0; border-top: 1px solid var(--line); }
.tool-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 46px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.tool-rows dt { color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-rows dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.tool-inputs { display: flex; flex-direction: column; gap: 4px; padding: 14px 20px 20px; margin-top: auto; }
.field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; min-height: 58px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field > label { font-weight: 600; font-size: .95rem; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); font-size: 1.25rem; line-height: 1; display: grid; place-items: center; transition: background-color .15s, transform .12s; }
.stepper button:hover { background: var(--paper-2); }
.stepper button:active { transform: scale(.9); }
.num-wrap { display: inline-flex; align-items: center; height: 40px; padding: 0 10px; border-radius: 10px; background: var(--paper-2); border: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.num-wrap:focus-within { border-color: var(--sky); background: #fff; }
.num-wrap input { width: 5.6ch; border: 0; background: transparent; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; outline: none; padding: 0; }
.num-pre, .num-suf { color: var(--ink-2); font-weight: 600; }
.num-short input { width: 3ch; }
.field-slider { grid-template-columns: 1fr; }
.slider-row { display: flex; align-items: center; gap: 14px; }
.slider-row input[type=range] { flex: 1; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .85rem; font-weight: 600; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--basil-soft); border-color: var(--basil); color: var(--basil); }
.chip-note { font-size: .8rem; color: var(--ink-2); }
.field-toggle { grid-template-columns: 1fr auto; }

/* Range input */
input[type=range] { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--p), var(--line) var(--p)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(28,25,21,.12), 0 3px 8px rgba(28,25,21,.25); transition: transform .15s var(--ease-out); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(28,25,21,.12), 0 3px 8px rgba(28,25,21,.25); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--sky), 0 3px 8px rgba(28,25,21,.25); }

/* Switch */
.switch { position: relative; width: 52px; height: 32px; border-radius: 16px; border: 0; padding: 0; background: var(--line-2); transition: background-color .25s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(28,25,21,.3); transition: transform .3s var(--ease-spring), width .2s; }
.switch[aria-checked="true"] { background: var(--basil); }
.switch[aria-checked="true"] span { transform: translateX(20px); }
.switch:active span { width: 30px; }
.switch[aria-checked="true"]:active span { transform: translateX(16px); }

/* Meter */
.meter { padding: 4px 20px 6px; }
.meter-track { position: relative; height: 10px; border-radius: 5px; background: var(--paper-2); margin-top: 22px; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 26.6%; border-radius: 5px; background: var(--basil); transition: width .6s var(--ease-out), background-color .3s; }
.meter.is-bad .meter-fill { background: var(--tomato); }
.meter-mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); border-radius: 1px; }
.meter-mark span { position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; color: var(--ink-2); }
.meter-note { height: 46px; display: flex; align-items: center; font-size: .9rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.meter.is-bad .meter-note { color: var(--tomato-ink); font-weight: 600; }

/* Odometer */
.odo { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.odo-vis { display: inline-flex; }
.odo-col { display: inline-block; height: 1.1em; overflow: hidden; line-height: 1.1; vertical-align: top; }
.odo-strip { display: flex; flex-direction: column; transform: translateY(calc(var(--d, 0) * -1.1em)); transition: transform .7s var(--ease-out); }
.odo-strip > span { height: 1.1em; }
.odo-ch { display: inline-block; line-height: 1.1; }

/* Catalog */
.cat-app { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-2); overflow: hidden; }
.cat-bar { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.search { flex: 1; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(62,111,176,.18); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 1rem; }
.cat-count { flex-shrink: 0; font-weight: 650; font-size: .95rem; color: var(--ink-2); width: 9.6em; text-align: right; }
.cat-count .odo { color: var(--ink); min-width: 2ch; text-align: right; }
@media (max-width: 520px) { .cat-count [data-cat-noun] { display: none; } .cat-count { width: 2.6em; } }
.cat-body { display: grid; height: min(640px, 72vh); }
.cat-sections { display: none; }
.cat-list { overflow-y: auto; overscroll-behavior: contain; padding: 4px 0 24px; scroll-behavior: smooth; }
.cat-group h3 { position: sticky; top: 0; z-index: 1; font: 700 .78rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 18px 20px 10px; background: linear-gradient(var(--surface) 75%, rgba(255,253,248,0)); }
.cat-group ul { list-style: none; margin: 0 20px; padding: 0; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.cat-item { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; position: relative; }
.cat-item + .cat-item::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px; background: var(--line); }
.cat-item .ci-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cat-item b { font-weight: 620; font-size: .98rem; }
.cat-item span.ci-sub { font-size: .87rem; color: var(--ink-2); line-height: 1.35; }
.cat-item .ci-cc { display: flex; gap: 4px; flex-shrink: 0; }
.cat-item .ci-cc i { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.cat-item mark { background: var(--saffron-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.cat-empty { padding: 48px 20px; text-align: center; color: var(--ink-2); font-weight: 550; }
.cat-group[hidden], .cat-item[hidden] { display: none; }
@media (min-width: 900px) {
  .cat-body { grid-template-columns: 260px 1fr; }
  .cat-sections { display: block; overflow-y: auto; border-right: 1px solid var(--line); padding: 10px; background: var(--paper-2); }
  .cat-sections button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: .92rem; font-weight: 550; color: var(--ink); transition: background-color .15s, opacity .2s; }
  .cat-sections button:hover { background: rgba(28,25,21,.06); }
  .cat-sections button.is-active { background: var(--surface); box-shadow: var(--shadow-1); }
  .cat-sections button i { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .85rem; min-width: 2ch; text-align: right; }
  .cat-sections button.is-empty { opacity: .4; }
  .cat-group ul { display: grid; grid-template-columns: 1fr 1fr; }
  .cat-group ul .cat-item:nth-child(2)::before { display: none; }
  .cat-group ul .cat-item:nth-child(2n)::after { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
}

/* Themes */
.themes { background: var(--paper-2); }
.themes-grid { display: grid; gap: 40px; align-items: center; }
.themes .lede { margin-top: 16px; }
.theme-picker { display: grid; gap: 10px; margin-top: 32px; max-width: 460px; }
.theme-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color .2s, box-shadow .25s, transform .2s; }
.theme-opt:hover { border-color: var(--ink-3); }
.theme-opt:active { transform: scale(.985); }
.theme-opt[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-1); }
.theme-opt b { display: block; font-weight: 700; }
.theme-opt span span { font-size: .92rem; color: var(--ink-2); }
.swatch { display: grid; grid-template-columns: repeat(3, 14px); gap: 3px; padding: 6px; border-radius: 10px; flex-shrink: 0; }
.swatch i { height: 14px; border-radius: 50%; }
.sw-standard { background: #fff; border: 1px solid var(--line); } .sw-standard i:nth-child(1) { background: #E5E5EA; } .sw-standard i:nth-child(2) { background: #C7C7CC; } .sw-standard i:nth-child(3) { background: #FF9F0A; }
.sw-solar { background: #424859; } .sw-solar i { border-radius: 3px; } .sw-solar i:nth-child(1) { background: #BFC9A6; } .sw-solar i:nth-child(2) { background: #2A2B31; } .sw-solar i:nth-child(3) { background: #CF5867; }
.sw-register { background: #E6DCC4; } .sw-register i { border-radius: 3px; } .sw-register i:nth-child(1) { background: #74F2D2; box-shadow: 0 0 0 2px #0F1B18; } .sw-register i:nth-child(2) { background: #F0E7D2; border: 1px solid #B3A27E; } .sw-register i:nth-child(3) { background: #E9AE45; }
.themes-stage { display: flex; justify-content: center; min-height: calc(39.5 * 16px); }
@media (max-width: 400px) { .themes-stage { min-height: calc(39.5 * 15px); } }
@media (min-width: 980px) { .themes-grid { grid-template-columns: 1fr 1fr; } }

/* Features */
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 339px) { .feat-grid > li { min-width: 0; } }
@media (min-width: 1100px) { .feat-grid { grid-template-columns: repeat(4, 1fr); } }
.feat { position: relative; padding: 18px 18px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.feat h3 { font-size: 1.3rem; margin-top: 18px; letter-spacing: -.02em; }
.feat p { margin-top: 8px; color: var(--ink-2); font-size: .98rem; }
.feat-ui { height: 132px; border-radius: 16px; background: var(--paper-2); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; overflow: hidden; position: relative; font-family: var(--font-ui); }
.ui-answer { align-items: flex-start; padding: 0 20px; }
.ui-label { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.ui-big { font-family: var(--font-display); font-weight: 780; font-size: 2.3rem; letter-spacing: -.03em; line-height: 1.1; }
.ui-row { display: flex; gap: 6px; width: 100%; }
.ui-row i { height: 8px; border-radius: 4px; background: var(--line-2); flex: 1; }
.ui-row i:last-child { flex: .6; }
.ui-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 650; font-size: .9rem; width: 112px; justify-content: center; }
.ui-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.ui-btn-b { position: absolute; left: 44px; opacity: 0; }
.ui-btn.is-done { background: var(--basil); }
.ui-btn.is-done .ui-btn-a { opacity: 0; } .ui-btn.is-done .ui-btn-b { opacity: 1; }
.ui-btn-a, .ui-btn-b { transition: opacity .25s; }
.ui-file { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--ink-2); padding: 6px 10px 6px 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.ui-file b { font-size: .64rem; color: #fff; background: #1F7A47; padding: 3px 5px; border-radius: 4px; }
.ui-send { flex-direction: row; gap: 12px; }
.ui-chip { font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.ui-arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--tomato); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ui-mini-calc { display: grid; grid-template-columns: repeat(4, 12px); gap: 4px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.ui-mini-calc span { grid-column: 1 / -1; text-align: right; font-weight: 600; font-size: .85rem; height: 20px; }
.ui-mini-calc i { width: 12px; height: 12px; border-radius: 50%; background: #E5E5EA; }
.ui-mini-calc i:nth-of-type(4n) { background: #FF9F0A; }
.ui-conv { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 750; font-size: 1.45rem; letter-spacing: -.02em; }
.ui-conv-a, .ui-conv-b { display: inline-block; min-width: 4.6em; transition: opacity .3s, transform .3s var(--ease-out); }
.ui-conv-a { text-align: right; }
.ui-conv.is-swap .ui-conv-a, .ui-conv.is-swap .ui-conv-b { opacity: 0; transform: translateY(6px); }
.ui-eq { color: var(--ink-3); }
.ui-fx { display: flex; gap: 6px; align-items: center; font-size: .78rem; color: var(--ink-3); }
.ui-fx b { font-weight: 700; color: var(--ink-2); padding: 3px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }

/* Tilt + glow */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out), box-shadow .3s; will-change: transform; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(245,165,36,.16), transparent 60%); }
.tilt:hover { box-shadow: var(--shadow-2); }
.tilt:hover::after { opacity: 1; }

/* Countries */
.countries { overflow: hidden; }
.marquee { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 680; font-size: 1.25rem; letter-spacing: -.01em; white-space: nowrap; transition: transform .3s var(--ease-spring), box-shadow .3s, border-color .3s; }
.marquee-track li:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.flag { font-size: 1.7rem; line-height: 1; }
.marquee-track .row-world { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* Kit */
.kit-card { display: grid; gap: 36px; align-items: center; }
.kit-copy { padding: 4px 0; }
.kit-copy p { margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); max-width: 30em; }
.kit-copy .btn { margin-top: 28px; }
.sheet { border-radius: 18px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-2); overflow: hidden; font: 500 .9rem/1 var(--font-ui); }
.sheet-bar { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-bottom: 1px solid #E3E3E3; background: #F7F7F5; }
.sheet-fx { font-style: italic; font-weight: 700; color: #1F7A47; }
.sheet-formula { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85rem; color: #333; min-width: 12ch; }
.sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sheet th { background: #F3F3F1; color: #7A7A7A; font-weight: 600; font-size: .78rem; height: 30px; border: 1px solid #E6E6E3; }
.sheet thead th:first-child, .sheet tbody th { width: 38px; }
.sheet thead th:last-child { width: 34%; }
.sheet td { height: 42px; padding: 0 12px; border: 1px solid #E6E6E3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.sheet td:last-child { text-align: right; }
.sheet tbody tr:first-child td { font-weight: 700; }
.sheet td.in { background: #FFF7E0; color: #8A5A00; }
.sheet td.out { color: #1F5E3A; }
.sheet td.strong { font-weight: 800; }
.sheet td.is-active { box-shadow: inset 0 0 0 2px #1F7A47; }
.sheet td.is-fill { animation: cellFill .6s var(--ease-out); }
@keyframes cellFill { from { background: #DFF3E6; } }
@media (min-width: 900px) { .kit-card { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Pricing */
.pricing { background: var(--paper-2); }
.price-card { position: relative; max-width: 480px; margin: 0 auto; padding: 32px 28px 28px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); text-align: left; }
.price-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 2.6rem + 3vw, 4.6rem); letter-spacing: -.045em; line-height: 1; }
.price-line { margin-top: 10px; font-weight: 600; font-size: 1.05rem; }
.price-list { list-style: none; margin: 24px 0; padding: 0; border-top: 1px solid var(--line); }
.price-list li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; border-bottom: 1px solid var(--line); font-size: 1rem; }
.price-list li::before { content: ""; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--basil-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6A4C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.price-card .fine { margin-top: 12px; }
.price-card .fine + .fine { margin-top: 6px; }
/* Phones: a wrapped item reads as one block (tight leading) with row padding clearly larger than its line gap. */
@media (max-width: 767px) { .price-line { line-height: 1.35; text-wrap: balance; } .price-list li { line-height: 1.3; padding-block: 11px; } }
@media (max-width: 479px) {
  .price-card { padding: 28px 22px 24px; }
  .price-list li { gap: 10px; min-height: 46px; font-size: .94rem; }
  .price-list li::before { width: 20px; height: 20px; background-size: 13px; }
}

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq h2 { margin-bottom: 28px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); interpolate-size: allow-keywords; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 16px 4px; cursor: pointer; font-family: var(--font-display); font-weight: 680; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
@media (max-width: 767px) { .faq summary { line-height: 1.25; } }
.faq summary::after { content: ""; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1915' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; border: 1px solid var(--line); transition: transform .35s var(--ease-out), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--paper-2); }
.faq summary:hover::after { background-color: var(--paper-2); }
.faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease-out), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq-a p { padding: 0 52px 24px 4px; color: var(--ink-2); font-size: 1.05rem; }

/* Final CTA */
.final-cta { padding: clamp(80px, 12vw, 150px) 0; text-align: center; background:
  radial-gradient(500px 300px at 50% 100%, rgba(245,165,36,.18), transparent 70%), var(--paper); }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.final-icon { border-radius: 22px; box-shadow: var(--shadow-2); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-2deg); } }

/* Footer */
/* Footer: on a deeper paper tone, brand on the left, three short link columns, then ©, the country picker. */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); }
.footer-top { display: grid; gap: 32px; padding: clamp(44px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.footer-brand .brand { font-size: 1.2rem; gap: 12px; }
.footer-brand .brand img { border-radius: 9px; box-shadow: 0 1px 2px rgba(40, 30, 15, .12), 0 6px 14px -6px rgba(40, 30, 15, .25); }
.footer-brand p { margin-top: 14px; color: var(--ink-2); font-size: .98rem; line-height: 1.55; }
/* Phones: two balanced columns (App, then Help over Legal); wider screens: three side by side. */
.footer-cols { columns: 2; column-gap: 24px; }
.footer-cols > div { break-inside: avoid; padding-bottom: 20px; }
.footer-cols h2 { margin-bottom: 6px; font: 650 .74rem/1 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); font-weight: 550; font-size: .97rem; text-decoration: none; transition: color .2s; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 72px; padding: 16px 0 28px; border-top: 1px solid var(--line-2); font-size: .88rem; color: var(--ink-3); }
.footer-bottom p { margin: 0; }
.footer-meta:empty { display: none; }
/* Phones: "Made in the Philippines, for the World." gets its own line instead of breaking mid-phrase. */
@media (max-width: 639px) { html[data-country="ph"] .footer-bottom .ph-only { display: block; margin-top: 4px; } .footer-bottom .sep { display: none; } }
@media (min-width: 640px) { .footer-cols { columns: 3; } }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
  .footer-cols { columns: 3; }
}

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .tilt[data-reveal].in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* Sub pages */
.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; }
.page-hero .lede { margin-top: 18px; }
.page-hero .cta-row { margin-top: 28px; }
.page-hero .fine { margin-top: 14px; }
.doc { padding-bottom: 96px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); font-weight: 800; letter-spacing: -.04em; margin: clamp(32px, 6vw, 72px) 0 12px; }
.doc h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); margin: 44px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 1.05rem; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.2em; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
@media (max-width: 299px) { .doc h2 { font-size: 1.1rem; } }
.doc a { color: var(--tomato-ink); text-underline-offset: 3px; }
.doc .updated, .doc .meta { color: var(--ink-3); font-size: .95rem; }
.card-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .card-grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.card p, .card li { color: var(--ink-2); font-size: .98rem; margin-top: 8px; }
.card ul { padding-left: 1.1em; margin: 8px 0 0; }
.band { background: var(--paper-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); animation: none; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .tilt { transform: none !important; }
}

/* Sub-page components (kit page, policy pages) */
.kicker { display: block; font-size: .82rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--tomato-ink); margin-bottom: 14px; }
main > section:not(.hero):not(.final-cta):not(.proof):not(.section) { padding-block: clamp(64px, 9vw, 112px); }
main > section.alt { background: var(--paper-2); }
.page-intro { margin-top: 16px; max-width: 40em; color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); background: rgba(28,25,21,.03); }
.kit-sections { display: grid; gap: 14px; }
/* The Philippines folder: one wide card under the general sections, its list in columns */
.kit-country { margin-top: 14px; }
.kit-country-note { margin: 8px 0 12px; max-width: 46em; color: var(--ink-2); font-size: .95rem; }
@media (min-width: 720px) { .kit-country ul { columns: 2; column-gap: 32px; } .kit-country li { break-inside: avoid; } }
@media (min-width: 1040px) { .kit-country ul { columns: 3; } }
@media (min-width: 720px) { .kit-sections { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .kit-sections { grid-template-columns: repeat(3, 1fr); } }
.tool-card { padding: 20px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.tool-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; letter-spacing: -.015em; }
.tool-card h3 svg { width: 22px; height: 22px; color: var(--tomato); flex-shrink: 0; }
.tool-card ul { list-style: none; margin: 12px 0 0; padding: 0; }
.tool-card li { position: relative; padding: 9px 0; color: var(--ink-2); font-size: .97rem; }
.tool-card li + li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
@media (max-width: 767px) { .tool-card li { line-height: 1.35; padding-block: 11px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.checks b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.015em; margin-bottom: 4px; }
.faq .answer p { padding: 0 52px 24px 4px; color: var(--ink-2); font-size: 1.05rem; }
div.faq { max-width: 820px; margin-inline: auto; }
.faq .answer a, .faq-a a { color: var(--tomato-ink); }
.buy-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.callout { margin: 20px 0; padding: 18px 20px; border-radius: 18px; background: var(--saffron-soft); border: 1px solid #F1D9A6; color: var(--ink); }
.callout p { color: var(--ink); }
.doc .lede.intro { font-size: 1.15rem; color: var(--ink-2); }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Breakpoint review fixes ---------- */
/* Headline: "restaurant math." stays on one line from 320px up, and in the two-column hero. */
.hero h1 { font-size: clamp(2.2rem, .9rem + 6.6vw, 5.1rem); }
@media (min-width: 980px) { .hero h1 { font-size: clamp(3.4rem, 1rem + 4.6vw, 5.1rem); } }
/* Showcase: spare height sits under the inputs, not between the answer and the inputs. */
.tool-inputs { margin-top: 0; }
@media (max-width: 400px) { .tool-answer { grid-template-columns: 1fr; gap: 10px; } }
/* Touch targets: the whole field box, search box, quick keys and footer links. */
.num-wrap input, .search input { height: 100%; }
.calc-quick button { position: relative; }
.calc-quick button::after { content: ""; position: absolute; inset: -7px -2px; }
.cat-item .ci-cc i { font-size: .72rem; }
/* Looks: the options span the column when they sit above the phone. */
@media (max-width: 979px) { .theme-picker { max-width: none; } }
@media (min-width: 560px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
/* Kit: room for the heading on one line beside the sheet. */
@media (min-width: 900px) {
  .kit-card { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; }
  .kit h2 { font-size: clamp(2.4rem, 1rem + 2.6vw, 3.4rem); }
}
/* The demo column may shrink to the screen; the caption steps down a size on the narrowest phones. */
.hero-grid > * { min-width: 0; }
.sheet tbody tr:first-child td { text-align: left; }
/* Narrow phones: each label sits above a full-width stepper, and row labels wrap instead of cutting off. */
@media (max-width: 400px) {
  .field { grid-template-columns: 1fr; gap: 6px; padding: 10px 0; }
  .field .stepper { width: 100%; }
  .field .num-wrap { flex: 1; justify-content: flex-end; }
  .field .num-wrap input { width: 100%; }
  .tool-rows > div { height: auto; min-height: 46px; padding: 8px 0; }
  .tool-rows dt { white-space: normal; overflow: visible; }
}

/* Country picker (pricing card and footer) and the visitor's country in the strip. */
.country-picker { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; margin-top: 16px; font-size: .88rem; color: var(--ink-2); }
.country-picker select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357514A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; font: 600 .92rem/1 var(--font-body); color: var(--ink); cursor: pointer; }
.country-picker select:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.footer-meta .country-picker { margin: 0; justify-content: flex-start; color: var(--ink-3); }
.footer-meta .country-picker select { background-color: var(--paper); }
.marquee-track li.is-here { border-color: var(--tomato); box-shadow: 0 0 0 1px var(--tomato) inset; }
