/* Thuế TNCN website: house layout (nav, store badge, sections, privacy / support pages, phone rules) with the app's
   tokens (docs/DESIGN.md: Brand #543DE8, BrandText, BrandTint, Positive, Negative) and the gold % stamp of the icon.
   The home page's own components (receipt calculator, tax staircase, unemployment, regional wages) are under
   "App-specific". Light only, like the other ICHITECH sites. */
@import url(fonts.css?v=7bffa9b16d);

:root {
  --bg: #F4F2FB;
  --surface: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #17142E;
  --ink-2: #3D3858;
  --muted: #5B5678;
  --line: #E1DDF0;
  --rule: #CFC9E6;
  --brand: #543DE8;
  --brand-text: #3A2BB0;
  --brand-tint: #EDEAFE;
  --header: #543DE8;
  --header-deep: #3B28C4;
  --night: #17142E;
  --on-header: #E1DCFF;
  --on-header-2: #D4CDFF;
  --on-night: #ACA6CA;
  --gold: #3A2BB0;
  --gold-soft: #EDEAFE;
  --coin: #F7C23B;
  --stamp: #F7C23B;
  --stamp-ink: #3A2800;
  --insurance: #8F7FF4;
  --positive: #1E7A3C;
  --negative: #C62828;
  --frame: #0F0D1C;
  --pad-x: clamp(20px, 4.4vw, 64px);
  --section-y: clamp(64px, 8vw, 112px);
  --shadow-1: 0 10px 30px rgba(40, 30, 110, 0.08);
  --shadow-2: 0 24px 60px rgba(40, 30, 110, 0.14), 0 2px 6px rgba(40, 30, 110, 0.06);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --face: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #B4ACDA var(--bg); }
body {
  margin: 0;
  font-family: var(--face);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
::selection { background: var(--stamp); color: var(--stamp-ink); }
a { color: var(--brand-text); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--coin); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
/* Be Vietnam Pro has Latin and Vietnamese only: these languages use the system font on the whole page. */
:lang(ja) body, body:lang(ja) { font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; }
:lang(ko) body, body:lang(ko) { font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
:lang(ru) body, body:lang(ru) { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
:lang(th) body, body:lang(th) { font-family: system-ui, -apple-system, "Sukhumvit Set", Thonburi, "Leelawadee UI", "Noto Sans Thai", sans-serif; line-height: 1.75; }
:lang(ja) h1, :lang(ja) h2 { letter-spacing: -0.01em; word-break: auto-phrase; line-break: strict; }
:lang(ko) h1, :lang(ko) h2 { letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--pad-x); }
.skip { position: absolute; left: 12px; top: -48px; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and navigation */
.top { background: radial-gradient(120% 90% at 85% 0%, #6A55F4 0%, rgba(106, 85, 244, 0) 60%), var(--header); color: #FFFFFF; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; margin-right: auto; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: #FFFFFF; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 8px rgba(20, 8, 90, 0.3); }
.nav-links { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 15px; font-weight: 500; }
.nav-links a { color: #E8EDF5; text-decoration: none; display: inline-block; padding: 10px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #FFFFFF; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--coin); text-decoration-thickness: 2px; }
/* Language menu (tools/languages.py writes it after .nav-links, never inside: on phones it sits beside the logo) */
.langs { position: relative; align-self: center; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; color: #E8EDF5; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { border-color: #FFFFFF; color: #FFFFFF; }
.langs summary svg { width: 18px; height: 18px; }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; margin: 0; padding: 6px; list-style: none; min-width: 180px; background: var(--surface); border-radius: 14px; box-shadow: 0 18px 40px rgba(5, 15, 45, 0.3); }
.langs ul a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink) !important; text-decoration: none !important; }
.langs ul a:hover { background: var(--bg); }
.langs ul a[aria-current] { color: var(--brand) !important; font-weight: 600; }

/* App Store badge (drawn from Apple's black badge; swap for the official SVG from developer.apple.com/app-store/marketing/guidelines) */
.store { display: inline-flex; align-items: center; gap: 10px; background: #000000; color: #FFFFFF; text-decoration: none; border: 1px solid #A6A6A6; border-radius: 12px; padding: 8px 20px 8px 14px; min-height: 52px; transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out); }
.store:hover { color: #FFFFFF; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.store svg { width: 28px; height: 28px; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 11px; font-weight: 500; }
.store strong { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }

/* Hero */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: end; padding-top: clamp(40px, 6vw, 88px); }
.hero-copy { padding-bottom: clamp(48px, 7vw, 120px); }
.hero h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.hero .lede { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); color: var(--on-header); }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta-row .meta { font-size: 15px; color: var(--on-header-2); }
.hero-phone { display: flex; justify-content: center; }
.hero-phone img { width: 100%; max-width: 340px; border-radius: 46px 46px 0 0; border: 9px solid #0B1A45; border-bottom: 0; box-shadow: 0 -10px 60px rgba(5, 15, 45, 0.45); margin-bottom: -2px; animation: rise 0.9s var(--ease-out) both; }
@keyframes rise { from { transform: translateY(48px); } to { transform: none; } }

/* Sections */
.section { padding-block: var(--section-y); }
.section.white { background: var(--surface); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 64px; align-items: center; }
h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.sub { margin-top: 20px; max-width: 34em; color: var(--muted); font-size: 18px; }

.ticks { list-style: none; margin: 32px 0 0; padding: 0; max-width: 34em; border-top: 1px solid var(--line); }
.ticks li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ticks svg { flex: none; width: 24px; height: 24px; stroke: var(--brand); }

/* Screens */
.shots { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.shots figure, .shot { margin: 0; }
.device { width: 100%; max-width: 330px; margin: 0 auto; border-radius: 36px; border: 7px solid var(--frame); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16); background: var(--frame); }
.shots figcaption { margin: 20px auto 0; max-width: 330px; }
.shots figcaption strong { display: block; font-weight: 700; }
.shots figcaption span { color: var(--muted); }

/* Private-by-default band */
.night { background: var(--header-deep); color: #FFFFFF; }
.facts { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px 48px; }
.facts div { border-top: 2px solid var(--coin); padding-top: 20px; }
.facts strong { display: block; font-size: 19px; font-weight: 700; }
.facts p { margin-top: 8px; color: #C3CEE8; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; min-height: 44px; color: #FFFFFF; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--coin); text-decoration-thickness: 2px; }
.arrow-link:hover { color: #FFFFFF; }
.arrow-link svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease-out); }
.arrow-link:hover svg { transform: translateX(4px); }

/* Pro */
.pro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
.table-box { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-1); font-size: 16px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; vertical-align: top; }
.compare thead th { padding-block: 18px; font-weight: 700; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { font-weight: 500; }
.compare td { color: var(--muted); }
.compare .p { background: var(--gold-soft); color: var(--ink); font-weight: 600; }
.compare thead .p { color: var(--gold); }

/* Closing call to action */
.closing { text-align: center; max-width: 760px; }
.closing img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto; box-shadow: 0 12px 30px rgba(30, 58, 138, 0.3); }
.closing h2 { margin-top: 28px; font-size: clamp(30px, 3.4vw, 48px); }
.closing p { margin-top: 16px; color: var(--muted); }
.closing .store { margin-top: 32px; }

/* App-specific (components of this app's home page) */
/* First viewport: the copy beside the app icon's torn tax receipt, which is the live calculator. */
.calc-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(28px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.calc-copy { padding-top: clamp(8px, 3vw, 40px); display: grid; gap: 22px; }
.calc-copy h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
.calc-copy h1 em { font-style: normal; color: var(--stamp); }
.calc-copy .lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--on-header); max-width: 34em; }
.calc-copy .cta-row { margin-top: 0; }
.rule-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rule-chips span { border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.cta-note { color: var(--on-header); font-size: 14px; max-width: 22em; }
.cta-note b { color: #FFFFFF; }
.store.long strong { font-size: 17px; }
.store.long { border-color: rgba(255, 255, 255, 0.4); }

.receipt-wrap { position: relative; filter: drop-shadow(0 22px 40px rgba(20, 8, 90, 0.35)) drop-shadow(0 2px 4px rgba(20, 8, 90, 0.2)); }
.receipt { background: var(--paper); color: var(--ink); border-radius: 18px 18px 0 0; padding: 22px 22px 40px; --tooth: 14px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%; }
.stamp { position: absolute; right: -14px; top: 138px; width: 92px; height: 92px; border-radius: 50%; background: var(--stamp); color: var(--stamp-ink);
  display: grid; place-content: center; text-align: center; transform: rotate(-12deg); box-shadow: 0 8px 18px rgba(60, 40, 0, 0.3); z-index: 2; transition: transform 0.5s var(--ease-out); }
.stamp b { font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.stamp small { font-size: 10.5px; font-weight: 700; line-height: 1.15; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.stamp.bump { transform: rotate(-4deg) scale(1.08); }
.r-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-right: 64px; }
.r-head h2 { font-size: 13px; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-text); font-weight: 800; }
.r-head span { font-size: 12.5px; color: var(--muted); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--brand-tint); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { font: 700 14px/1.2 var(--face); color: var(--brand-text); background: transparent; border: 0; border-radius: 9px; padding: 10px 6px; min-height: 40px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #FFFFFF; box-shadow: 0 2px 6px rgba(40, 20, 160, 0.3); }
.field-row { display: grid; gap: 6px; margin-top: 16px; }
.field-row label, .lbl { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.money { display: flex; align-items: center; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--surface); padding: 0 14px; }
.money:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(84, 61, 232, 0.2); }
.money input { flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 800 26px/1 var(--face); padding: 12px 0; outline: none; letter-spacing: -0.01em; caret-color: var(--brand); font-variant-numeric: tabular-nums; }
.money.small input { font-size: 18px; font-weight: 700; padding: 10px 0; }
.money span { font-weight: 700; color: var(--muted); }
.money input::placeholder { color: var(--muted); font-weight: 600; font-size: 15px; }
.controls { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 16px; margin-top: 14px; align-items: end; }
.ctl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--rule); border-radius: 12px; overflow: hidden; height: 44px; background: var(--surface); }
.stepper button { width: 40px; height: 100%; border: 0; background: transparent; color: var(--brand-text); font: 700 20px/1 var(--face); cursor: pointer; }
.stepper button:disabled { color: var(--rule); cursor: default; }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; }
.chips { display: flex; gap: 6px; }
.chips button { flex: 1; min-width: 40px; height: 44px; border-radius: 12px; border: 1.5px solid var(--rule); background: var(--surface); color: var(--ink-2); font: 700 15px/1 var(--face); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-text); }
.calc select { height: 44px; border-radius: 12px; border: 1.5px solid var(--rule); background: var(--surface); color: var(--ink); font: 700 15px var(--face); padding: 0 10px; }
details.opt { margin-top: 12px; }
details.opt summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--brand-text); list-style: none; display: inline-flex; gap: 8px; align-items: center; min-height: 32px; }
details.opt summary::-webkit-details-marker { display: none; }
details.opt summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.2s; }
details.opt[open] summary::before { transform: rotate(45deg); }
details.opt .money { margin-top: 8px; }
.lines { margin-top: 18px; border-top: 2px dashed var(--rule); padding-top: 10px; }
.line { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.line .amt { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.line.minus .amt { color: var(--negative); }
.line.sub { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 9px; }
.line.sub .amt { font-weight: 800; }
.total { margin-top: 12px; border-top: 2px dashed var(--rule); padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.total span { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); }
.total b { font-size: clamp(30px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.total b small { font-size: 0.55em; color: var(--muted); font-weight: 700; margin-left: 2px; }
.ratio { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-top: 12px; background: var(--line); }
.ratio i { display: block; transition: flex-basis 0.6s var(--ease-out); }
.ratio .s-net { background: var(--brand); } .ratio .s-ins { background: var(--insurance); } .ratio .s-tax { background: var(--stamp); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
details.more { margin-top: 14px; border-top: 1px solid var(--line); }
details.more summary { cursor: pointer; padding: 11px 0 4px; font-size: 14px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; color: var(--brand-text); font-weight: 800; }
details.more[open] summary::after { content: "–"; }
.note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.empty { padding: 14px 2px; color: var(--muted); font-size: 14.5px; }

/* Sections under the receipt */
.head { display: grid; gap: 12px; max-width: 46em; margin-bottom: clamp(28px, 4vw, 44px); }
.head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.025em; }
.head p { color: var(--ink-2); font-size: 17px; }
.section + .section { padding-top: 0; }
.panel { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.stairs-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); }
.stairs { padding: clamp(20px, 3vw, 32px); }
.stairs svg { width: 100%; height: auto; display: block; overflow: visible; }
.stairs .you { transition: transform 0.7s var(--ease-out); }
.you-text { margin-top: 14px; font-size: 15px; color: var(--ink-2); min-height: 3.2em; }
.you-text b { color: var(--ink); }
.rules { padding: clamp(20px, 3vw, 28px); }
.rules h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.rules dl { margin: 0; display: grid; }
.rules dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rules dt { color: var(--ink-2); }
.rules dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.sources { margin-top: 16px; font-size: 13px; color: var(--muted); }
.sources b { color: var(--ink-2); }

.ue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.ue-form { padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; border-right: 1px solid var(--line); }
.ue-form .q { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.six { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.unit { display: flex; align-items: center; border: 1.5px solid var(--rule); border-radius: 12px; padding: 0 12px; height: 44px; background: var(--surface); }
.unit input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 700 17px var(--face); outline: none; }
.unit span { color: var(--muted); font-weight: 600; font-size: 14px; }
.unit:focus-within { border-color: var(--brand); }
.ue-out { padding: clamp(20px, 3vw, 32px); background: var(--brand-tint); display: grid; gap: 14px; align-content: start; }
.ue-big { display: grid; gap: 4px; }
.ue-big span { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-text); }
.ue-big b { font-size: clamp(32px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ue-calc { font-size: 15.5px; color: var(--ink-2); }
.ue-calc b { color: var(--ink); }
.ue-msg { font-size: 15px; background: var(--surface); border-radius: 14px; padding: 14px 16px; border: 1px solid var(--line); }
.ue-out .line { font-size: 13.5px; }

.wages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.wages div { padding: 20px clamp(14px, 2vw, 24px); display: grid; gap: 2px; }
.wages div + div { border-left: 1px solid var(--line); }
.wages .rn { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: var(--brand-text); text-transform: uppercase; }
.wages b { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.01em; }
.wages small { color: var(--muted); font-size: 13px; }
.finder { padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
.search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--rule); border-radius: 12px; padding: 0 14px; height: 48px; background: var(--surface); }
.search:focus-within { border-color: var(--brand); }
.search svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2.2; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 600 16px var(--face); outline: none; }
.finder select { width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--rule); background: var(--surface); color: var(--ink); font: 700 15px var(--face); padding: 0 10px; }
.hits { grid-column: 1 / -1; max-height: 380px; overflow: auto; border-top: 1px solid var(--line); }
.hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.hit span { color: var(--muted); font-size: 14px; }
.hit .rg { grid-row: 1 / 3; grid-column: 2; align-self: center; text-align: right; font-weight: 800; color: var(--brand-text); font-size: 14px; white-space: nowrap; }
.hit .rg small { display: block; color: var(--muted); font-weight: 600; }
.prov-region { padding: 12px 2px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.prov-region b { color: var(--brand-text); }
.prov-region p { color: var(--ink-2); font-size: 14.5px; }

.app-only { background: var(--frame); color: #FFFFFF; border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 5vw, 64px); align-items: center; }
.app-only h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.025em; }
.app-only .copy { display: grid; gap: 18px; }
.app-only p { color: #CFCAE6; }
.app-only ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.app-only li { display: flex; gap: 10px; color: #E6E2F7; font-size: 15.5px; }
.app-only li svg { flex: none; width: 20px; height: 20px; stroke: var(--stamp); fill: none; stroke-width: 2.4; margin-top: 3px; }
.app-only .store { justify-self: start; }
.app-phones { display: flex; justify-content: center; gap: clamp(10px, 2vw, 22px); }
.app-phones img { width: min(32%, 220px); border-radius: 26px; border: 6px solid #2A2740; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); background: #2A2740; }
.app-phones img:nth-child(2) { transform: translateY(-22px); }
.disclaimer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: clamp(20px, 3vw, 28px); }
.disclaimer svg { width: 28px; height: 28px; stroke: var(--brand-text); fill: none; stroke-width: 2; }
.disclaimer h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.disclaimer p { color: var(--ink-2); max-width: 62em; }

@media (max-width: 900px) {
  .calc-hero, .stairs-grid, .ue, .app-only, .finder { grid-template-columns: minmax(0, 1fr); }
  .calc-copy { padding-top: 0; }
  .ue-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .wages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wages div:nth-child(3) { border-left: 0; }
  .wages div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .receipt { padding: 18px 16px 36px; }
  .stamp { width: 72px; height: 72px; right: -4px; top: -18px; }
  .stamp b { font-size: 21px; }
  .stamp small { font-size: 9px; }
  .controls { grid-template-columns: auto minmax(0, 1fr); }
  .controls .region-ctl { grid-column: 1 / -1; grid-row: 2; }
  .r-head { padding-right: 70px; flex-direction: column; gap: 2px; }
  .seg button { font-size: 13px; padding: 10px 4px; }
  .line { font-size: 14px; }
  .app-phones img:nth-child(3) { display: none; }
  .app-phones img { width: min(46%, 220px); }
}

/* Privacy table: one block per service on phones (no narrow columns; from GPLX) */
@media (max-width: 720px) {
  .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data, .data tbody, .data tr, .data th, .data td { display: block; }
  .data tbody tr { padding: 14px 0; }
  .data th, .data td { padding: 0 !important; }
  .data tbody th { font-size: 16px; margin-bottom: 6px; }
  .data td + td { margin-top: 8px; }
  .data td::before { content: attr(data-h); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}

/* Footer */
.foot { background: var(--night); color: var(--on-night); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; padding-block: 32px; }
.foot .wrap > span { margin-right: auto; }
.foot a { color: #E8EDF5; display: inline-block; padding: 10px 0; }
.foot a:hover { color: #FFFFFF; }

/* Document pages (privacy, support) */
.doc-head { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 5vw, 72px); }
.doc-head h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.doc-head p { margin-top: 16px; max-width: 40em; color: var(--on-header); }
.doc-head .mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; min-height: 48px; padding: 0 24px; border-radius: 12px; background: var(--surface); color: var(--brand-text); font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(20, 8, 90, 0.3); }
.doc-head .mail svg { width: 20px; height: 20px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding-block: clamp(40px, 5vw, 72px) 96px; line-height: 1.65; }
.toc { position: sticky; top: 24px; font-size: 15px; }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.paper { max-width: 72ch; background: var(--surface); border-radius: 20px; padding: clamp(24px, 4vw, 56px); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); }
.paper h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; margin-top: 48px; scroll-margin-top: 24px; }
.paper h2:first-child { margin-top: 0; }
.paper p, .paper ul { margin-top: 14px; }
.paper ul { padding-left: 22px; display: grid; gap: 8px; }
.paper .small { color: var(--muted); font-size: 15px; }
.data { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin-top: 18px; }
.data th, .data td { padding: 12px; text-align: left; vertical-align: top; }
.data th:first-child, .data td:first-child { padding-left: 0; }
.data thead tr { border-bottom: 2px solid var(--line); }
.data tbody tr { border-bottom: 1px solid var(--line); }
.data tbody tr:last-child { border-bottom: 0; }
.data tbody th { font-weight: 600; }
.faq { max-width: 760px; margin-top: 24px; background: var(--surface); border-radius: 20px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); padding: 0 24px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }
.doc-section { padding-block: clamp(40px, 5vw, 72px) 96px; }
.doc-section h2 { font-size: 28px; letter-spacing: -0.02em; }

@media (max-width: 900px) {
  .hero-grid, .split, .pro { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 8px; }
  .hero-phone img { max-width: 300px; }
  .shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad-x)); padding: 0 var(--pad-x) 12px; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots figure { flex: 0 0 72%; max-width: 300px; scroll-snap-align: center; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; }
}
/* Phones: language menu beside the logo, links on their own row (scrolls sideways when long) */
@media (max-width: 720px) {
  .nav { gap: 4px 12px; }
  .brand { min-width: 0; }
  .langs { order: 2; }
  .nav-links { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 20px; margin-inline: calc(-1 * var(--pad-x)); padding-inline: var(--pad-x); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .langs ul { max-width: calc(100vw - 32px); }
}
@media (max-width: 400px) {
  .langs summary { padding: 0 11px; }
  .langs summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
