/* TAKEFARE website.
   Layout: a dark instrument-panel page; content on a 1120px column, sections divided by a
   dashed road centre line; numbers set in a monospace like a meter. Dark is the brand's
   home; the light theme follows the viewer's setting. */
/* Fonts served from this site (SIL Open Font License, see fonts/LICENSE.txt). */
@font-face { font-family: "Syne"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/syne-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Syne"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/syne-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }
:root {
  --bg: #0b0a08;
  --surface: #14120e;
  --raise: #1c1914;
  --line: #2d2921;
  --fg: #f3ede2;
  --muted: #a69c8b;
  --gold: #dcb662;
  --gold-hi: #f0d595;
  --gold-deep: #a17b2c;
  --on-gold: #1a1204;
  --good: #63d59d;
  --warn: #f1b84f;
  --bad: #ef8270;
  --glow: rgba(220, 182, 98, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --display: "Syne", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f6f2; --surface: #ffffff; --raise: #f0ede6; --line: #e2dccf; --fg: #17140f;
    --muted: #675f51; --gold: #8f6b1f; --gold-hi: #b38a33; --gold-deep: #6e5115; --on-gold: #fffaf0;
    --good: #17794c; --warn: #956000; --bad: #b2412f; --glow: rgba(143, 107, 31, 0.10);
    --shadow: 0 24px 60px rgba(40, 30, 10, 0.14); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f6f2; --surface: #ffffff; --raise: #f0ede6; --line: #e2dccf; --fg: #17140f;
  --muted: #675f51; --gold: #8f6b1f; --gold-hi: #b38a33; --gold-deep: #6e5115; --on-gold: #fffaf0;
  --good: #17794c; --warn: #956000; --bad: #b2412f; --glow: rgba(143, 107, 31, 0.10);
  --shadow: 0 24px 60px rgba(40, 30, 10, 0.14); color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 var(--body); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.prose-w { max-width: 68ch; }
.muted { color: var(--muted); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 600 0.78rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.brand span { font: 700 1.08rem/1 var(--display); letter-spacing: 0.14em; }
.brand b { color: var(--gold); font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 500; font-size: 0.96rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--raise); color: var(--fg); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 10px 10px 4px 4px; }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line); color: var(--fg); border-radius: 12px; width: 46px; height: 42px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; }
@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin-top: 6px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep)); color: var(--on-gold); box-shadow: 0 8px 26px var(--glow), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-gold:hover { color: var(--on-gold); transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-line:hover { color: var(--fg); background: var(--raise); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; border-radius: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--raise); color: var(--fg); text-decoration: none; }
.store svg { width: 22px; height: 22px; }
.store small { display: block; font-size: 0.72rem; color: var(--muted); line-height: 1.1; }
.store strong { display: block; font-size: 1.02rem; line-height: 1.15; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- road divider: the dashed centre line ---------- */
.road { height: 4px; margin: 0 auto; max-width: var(--wrap); background: repeating-linear-gradient(90deg, var(--gold) 0 34px, transparent 34px 62px); opacity: .55; border-radius: 4px; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero::after { content: ""; position: absolute; inset: -20% -10% auto 35%; height: 120%; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.road3d { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.road3d.on { opacity: 1; }
.road3d canvas { width: 100%; height: 100%; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, color-mix(in srgb, var(--bg) 70%, transparent) 50%, color-mix(in srgb, var(--bg) 15%, transparent) 72%, transparent 100%); }
@media (max-width: 880px) { .hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 55%, color-mix(in srgb, var(--bg) 40%, transparent) 100%); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--gold); }
.hero-note { font-size: 0.86rem; color: var(--muted); max-width: 52ch; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- phone + offer card ---------- */
.phone { position: relative; width: min(100%, 340px); margin: 0 auto; aspect-ratio: 9 / 17; border-radius: 46px; padding: 12px; background: linear-gradient(160deg, #3a332a, #0d0c0a 40%, #26211a); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06) inset; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #0d0c0a; color: #f3ede2; display: flex; flex-direction: column; font-size: 13px; }
.screen .island { width: 96px; height: 26px; border-radius: 20px; background: #000; margin: 10px auto 6px; flex: none; }
.screen .bar { display: flex; justify-content: space-between; padding: 0 22px; font: 600 11px var(--mono); color: #a69c8b; }
.scr-pad { padding: 12px 16px; display: grid; gap: 10px; align-content: start; }
.drv-card { background: #f4f1ea; color: #121212; border-radius: 18px; padding: 14px; display: grid; gap: 6px; font-family: var(--body); }
.drv-card .kind { font-weight: 700; font-size: 13px; }
.drv-card .fare { font: 700 30px/1 var(--body); letter-spacing: -0.02em; }
.drv-card .leg { font-size: 12px; color: #444; display: flex; gap: 8px; align-items: center; }
.drv-card .leg i { width: 8px; height: 8px; border-radius: 50%; background: #121212; flex: none; }
.drv-card .leg i.sq { border-radius: 2px; }
.drv-card .accept { margin-top: 6px; background: #121212; color: #fff; border-radius: 12px; text-align: center; padding: 10px; font-weight: 700; font-size: 13px; }
.drv-map { width: 100%; height: auto; border-radius: 16px; background: #171511; display: block; }
.drv-tag { font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #a69c8b; }

.verdict-pop { border-radius: 18px; padding: 12px 14px; display: grid; gap: 6px; background: rgba(25,22,17,.92); border: 1px solid #3a342a; backdrop-filter: blur(12px); }
.verdict-pop .top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.verdict-pop .top img { width: 20px; height: 20px; border-radius: 5px; }
.verdict-pop .figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.verdict-pop .figs div { background: #221e18; border-radius: 10px; padding: 6px 8px; }
.verdict-pop .figs b { display: block; font: 600 14px var(--mono); }
.verdict-pop .figs span { font-size: 10px; color: #a69c8b; }

/* verdict chips: always word + glyph + colour */
.chip { --c: var(--muted); justify-self: start; align-self: start; display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 4px 10px 4px 5px; font: 700 12px/1.2 var(--body); color: var(--c); border: 1px solid var(--c); white-space: nowrap; width: max-content; }
.chip::before { font: 700 10px/1 var(--mono); width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c); color: var(--bg); }
.chip.good { --c: var(--good); } .chip.good::before { content: "✓"; }
.chip.low { --c: var(--warn); } .chip.low::before { content: "!"; }
.chip.unk { --c: var(--muted); } .chip.unk::before { content: "?"; }
.screen .chip.good { --c: #63d59d; } .screen .chip.low { --c: #f1b84f; } .screen .chip.unk { --c: #a69c8b; }
.screen .chip::before { color: #0d0c0a; }

.demo-ctl { margin-top: 22px; display: grid; gap: 8px; max-width: 340px; margin-inline: auto; }
.demo-ctl label { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--muted); }
.demo-ctl output { font-family: var(--mono); color: var(--fg); }
input[type="range"] { width: 100%; accent-color: var(--gold); height: 28px; }

/* ---------- strips and grids ---------- */
.platforms { border-block: 1px solid var(--line); background: var(--surface); }
.platforms .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-block: 22px; }
.platforms p { color: var(--muted); font-size: 0.95rem; }
.plat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.plat { font: 600 0.86rem/1 var(--body); padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); }
.plat { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; }
.tile { --t: var(--raise); --l: var(--fg); width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; background: var(--t); color: var(--l); font: 700 10px/1 var(--body); font-style: normal; letter-spacing: -0.02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.tile.uber { --t: var(--fg); --l: var(--bg); }
.plat.ded { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card p { color: var(--muted); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--raise); border: 1px solid var(--line); color: var(--gold); }
.card .ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card a.more { font-weight: 600; text-decoration: none; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; }

/* the three verdicts */
.verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.verdicts > div { padding: 28px; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--line); min-width: 0; }
.verdicts > div:last-child { border-right: 0; }
.verdicts .ex { font: 500 0.88rem/1.5 var(--mono); color: var(--muted); background: var(--raise); border-radius: 12px; padding: 12px; }
@media (max-width: 820px) { .verdicts { grid-template-columns: minmax(0, 1fr); } .verdicts > div { border-right: 0; border-bottom: 1px solid var(--line); } .verdicts > div:last-child { border-bottom: 0; } }

/* ways to hand over an offer: a real sequence of increasing automation */
.ways { counter-reset: way; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ways .card { position: relative; }
.ways .lvl { display: flex; gap: 3px; }
.ways .lvl i { width: 18px; height: 4px; border-radius: 2px; background: var(--line); }
.ways .lvl i.on { background: var(--gold); }
@media (max-width: 960px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ways { grid-template-columns: minmax(0, 1fr); } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.facts div { padding: 28px 20px; display: grid; gap: 6px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts b { font: 600 clamp(2rem, 4vw, 2.8rem)/1 var(--mono); color: var(--gold); }
.facts span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(2) { border-right: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split.rev > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--muted); }
.checks li::before { content: ""; width: 14px; height: 4px; margin-top: 11px; border-radius: 2px; background: var(--gold); }
.checks li b { color: var(--fg); font-weight: 600; }
.checks.x li::before { background: var(--bad); }

/* ---------- pricing ---------- */
.toggle { display: inline-flex; padding: 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); gap: 4px; }
.toggle button { border: 0; background: transparent; color: var(--fg); font: 600 0.95rem var(--body); padding: 10px 16px; border-radius: 10px; cursor: pointer; min-height: 40px; }
.toggle button[aria-pressed="true"] { background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.toggle .save { font: 600 0.72rem var(--mono); color: var(--good); margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 880px; }
@media (max-width: 720px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 18px; align-content: start; }
.plan.pro { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 25%, transparent), 0 20px 60px var(--glow); }
.plan .price { font: 600 2.6rem/1 var(--mono); }
.plan .price small { font: 500 1rem var(--body); color: var(--muted); }
.plan .per { color: var(--muted); font-size: 0.9rem; min-height: 1.4em; }
.badge { display: inline-block; font: 600 0.72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 8px; background: var(--raise); border: 1px solid var(--line); color: var(--gold); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.96rem; }
th { font-weight: 600; color: var(--muted); font-size: 0.85rem; }
tr:last-child td { border-bottom: 0; }
td.y { color: var(--good); font-weight: 600; } td.n { color: var(--muted); }
td.y::before { content: "✓ "; } td.n::before { content: "— "; }

/* ---------- FAQ / help ---------- */
.faq { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
details[open] { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 500 1.4rem var(--mono); color: var(--gold); }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 18px; color: var(--muted); display: grid; gap: 10px; }
details ol, details ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.search { width: 100%; max-width: 560px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: inherit; }
.help-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px 28px; }
.help-cats a { text-decoration: none; color: var(--fg); border: 1px solid var(--line); padding: 8px 12px; border-radius: 10px; font-size: 0.92rem; }
.help-cats a:hover { background: var(--raise); }
.help-group { display: grid; gap: 10px; margin-bottom: 36px; scroll-margin-top: 90px; }
.empty-msg { color: var(--muted); padding: 20px 0; }

/* ---------- tools: Offer Lab and calculator ---------- */
.lab { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .lab { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 18px; min-width: 0; }
.panel h3 { font-size: 1.05rem; }
.fieldset { display: grid; gap: 12px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.82rem; color: var(--muted); }
.field .in { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.field .in:focus-within { border-color: var(--gold); }
.field .in span { padding: 0 10px; color: var(--muted); font: 500 0.85rem var(--mono); white-space: nowrap; }
.field input, .field select { width: 100%; min-width: 0; background: transparent; border: 0; color: var(--fg); padding: 12px; font: 500 1rem var(--mono); outline: none; }
.field select { font-family: var(--body); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg button { background: transparent; border: 0; color: var(--fg); padding: 10px 14px; font: 600 0.9rem var(--body); cursor: pointer; min-height: 42px; }
.seg button[aria-pressed="true"] { background: var(--raise); color: var(--gold); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.result { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); }
.result .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.result .big { font: 700 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--display); }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.metric span { font-size: 0.8rem; color: var(--muted); }
.metric b { font: 600 1.25rem var(--mono); font-variant-numeric: tabular-nums; }
.metric.bad b { color: var(--bad); }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reasons li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 0.95rem; }
.reasons li::before { content: "✕"; color: var(--bad); font: 700 0.9rem var(--mono); }
.reasons li.ok::before { content: "✓"; color: var(--good); }
.fine { font-size: 0.82rem; color: var(--muted); }
.needed { border: 1px dashed color-mix(in srgb, var(--gold) 60%, var(--line)); border-radius: 14px; padding: 12px 14px; }

/* ---------- app preview ---------- */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1040px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.shot { display: grid; gap: 14px; justify-items: center; text-align: center; }
.shot .phone { width: min(100%, 260px); border-radius: 38px; padding: 9px; }
.shot .screen { border-radius: 30px; font-size: 11px; }
.shot p { color: var(--muted); font-size: 0.92rem; max-width: 30ch; }
.ui-title { font: 700 18px/1.1 var(--body); }
.ui-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #1a1712; border-radius: 12px; padding: 9px 10px; }
.ui-row b { font: 600 12px var(--mono); }
.ui-row span { color: #a69c8b; }
.ui-tile { background: #1a1712; border-radius: 14px; padding: 10px; display: grid; gap: 3px; }
.ui-tile b { font: 600 18px var(--mono); color: #f0d595; }
.ui-tile span { color: #a69c8b; font-size: 10px; }
.ui-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-bar { height: 6px; background: #2b261e; border-radius: 6px; overflow: hidden; }
.ui-bar i { display: block; height: 100%; background: linear-gradient(90deg, #a17b2c, #f0d595); }
.ui-btn { background: linear-gradient(180deg, #f0d595, #dcb662 55%, #a17b2c); color: #1a1204; border-radius: 12px; text-align: center; padding: 10px; font-weight: 700; }
.ui-bubble { border-radius: 14px; padding: 9px 11px; max-width: 86%; }
.ui-bubble.them { background: #1a1712; }
.ui-bubble.me { background: #3a2f17; justify-self: end; color: #f0d595; }
.wave { display: flex; gap: 3px; align-items: center; height: 34px; justify-content: center; }
.wave i { width: 4px; border-radius: 3px; background: #dcb662; animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 8px; } 50% { height: 30px; } }

/* ---------- article / legal ---------- */
.page-head { padding-block: clamp(48px, 7vw, 88px) 28px; display: grid; gap: 16px; }
.crumbs { font-size: 0.86rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.prose > * { max-width: 70ch; }
.prose { display: grid; gap: 18px; padding-bottom: 80px; }
.prose h2 { font-size: 1.6rem; margin-top: 18px; }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose p, .prose li { color: color-mix(in srgb, var(--fg) 86%, var(--muted)); }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.prose code { font: 500 0.9em var(--mono); background: var(--raise); padding: 2px 6px; border-radius: 6px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { font-size: 0.88rem; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; color: var(--fg); }
.post-list { display: grid; gap: 18px; }
.post { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 22px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--fg); }
.post:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); color: var(--fg); }
.post .meta { font: 500 0.8rem var(--mono); color: var(--muted); display: grid; gap: 6px; }
.post p { color: var(--muted); }
@media (max-width: 640px) { .post { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.log { display: grid; gap: 0; border-left: 2px dashed color-mix(in srgb, var(--gold) 50%, var(--line)); margin-left: 8px; }
.log article { position: relative; padding: 0 0 36px 28px; display: grid; gap: 10px; }
.log article::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); }
.log ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }

/* ---------- forms (contact) ---------- */
.form { display: grid; gap: 14px; }
.form label { font-size: 0.86rem; color: var(--muted); display: grid; gap: 6px; }
.form input, .form select, .form textarea { background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.copy-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.copy-line code { font: 500 1rem var(--mono); user-select: all; word-break: break-all; }
.status { min-height: 1.5em; font-size: 0.92rem; }

/* ---------- closing band + footer ---------- */
.closing { text-align: left; }
.closing .box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(28px, 5vw, 52px); border-radius: 28px; border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); background: radial-gradient(120% 140% at 100% 0%, var(--glow), transparent 60%), var(--surface); }
.closing .box img { width: 120px; height: 120px; border-radius: 28px; box-shadow: var(--shadow); }
@media (max-width: 680px) { .closing .box { grid-template-columns: minmax(0, 1fr); } .closing .box img { width: 84px; height: 84px; border-radius: 20px; order: -1; } }
.site-foot { border-top: 1px solid var(--line); padding-block: 56px calc(36px + env(safe-area-inset-bottom, 0px)); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-grid h4 { margin: 0 0 12px; font: 600 0.78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--fg); text-decoration: none; font-size: 0.95rem; }
.foot-grid a:hover { color: var(--gold); }
.foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.84rem; color: var(--muted); }
.theme-btn { background: transparent; border: 1px solid var(--line); color: var(--fg); border-radius: 10px; padding: 6px 10px; font: 500 0.84rem var(--body); cursor: pointer; }

/* entrance: visible at rest, a short rise when the script marks the page ready */
.rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(12px); opacity: .55; } to { transform: none; opacity: 1; } }

/* WordPress post bodies: whatever the editor produced, in the site's type. */
.wp-content img, .wp-content figure { max-width: 100%; height: auto; border-radius: 14px; margin: 0; }
.wp-content figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.wp-content blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); color: var(--muted); }
.wp-content pre { overflow-x: auto; background: var(--raise); border-radius: 12px; padding: 14px; }
.wp-content table { min-width: 0; }
.wp-content h2, .wp-content h3, .wp-content h4 { font-family: var(--display); }
.wp-content [dir="rtl"], .wp-content :lang(fa), .wp-content :lang(ar) { direction: rtl; text-align: right; }

/* Jump links land below the sticky header. */
[id] { scroll-margin-top: calc(84px + env(safe-area-inset-top, 0px)); }

/* Cookie notice: plain information with one button, never blocking the page. */
.notice { position: fixed; z-index: 70; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 720px; margin: 0 auto; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.notice p { font-size: 0.9rem; color: var(--muted); flex: 1; min-width: 0; }
.notice a { white-space: nowrap; }
@media (max-width: 520px) { .notice { flex-direction: column; align-items: stretch; } }
