/* ============================================================================
   BORDERLESS CALCULATORS — brand stylesheet
   Built on tokens.css (the Borderless Design System). Cream paper, ink type,
   coral accent; Woodland display serif, Manrope UI, Fragment Mono eyebrows.
   ============================================================================ */
@import url("/assets/tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
/* The `hidden` attribute must always win over component display rules
   (e.g. .breakdown{display:flex}, .calc{display:flex}). */
[hidden] { display: none !important; }

/* Shared voice bits ------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--foreground-muted));
  margin: 0;
}
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons ----------------------------------------------------------------- */
.btn-ink {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius-lg);
  background: hsl(var(--background-inverse));
  color: hsl(var(--foreground-inverse));
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.btn-ink:hover { background: hsl(var(--primary)); color: hsl(var(--foreground)); }
.btn-ink:focus-visible { outline: 2px solid hsl(var(--primary-active)); outline-offset: 2px; }
.btn-ink.auto { width: auto; }

.btn-link {
  align-self: center;
  background: none; border: none; padding: 0;
  font-family: var(--font-sans); font-size: 13px;
  color: hsl(var(--foreground-muted));
  text-decoration: underline; cursor: pointer;
}
.btn-link:hover { color: hsl(var(--foreground)); }

/* ============================================================================
   CALCULATOR SHELL — split-editorial (desktop) → stacked (mobile)
   ============================================================================ */
.calc-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.calc-shell {
  width: 100%;
  max-width: 960px;
  display: flex;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 560px;
}

/* Left — ink persuasion panel */
.persuade {
  flex: 0 0 38%;
  background: hsl(var(--background-inverse));
  color: hsl(var(--foreground-inverse));
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.persuade .wordmark { height: 20px; width: auto; align-self: flex-start; }
.persuade-top { display: flex; flex-direction: column; gap: 24px; }
.persuade-h {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.persuade-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.persuade-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.persuade-points li .dash { color: hsl(var(--primary)); flex: none; line-height: 1.4; }
.persuade-points li span:last-child { opacity: 0.9; }
.persuade-foot { margin: 0; font-size: 12.5px; line-height: 1.5; opacity: 0.6; }

/* Right — content column (gate + calc) */
.calc-main {
  flex: 1;
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---- Gate (lead form) ---- */
.gate { display: flex; flex-direction: column; gap: 15px; }
.gate-head { display: flex; flex-direction: column; gap: 6px; }
.gate-h { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 27px; line-height: 1.1; letter-spacing: -0.005em; }
.gate-sub { margin: 0; font-size: 13.5px; line-height: 1.5; color: hsl(var(--foreground-muted)); }

.lead-form { display: flex; flex-direction: column; gap: 15px; }
.field-row { display: flex; gap: 12px; }
.field-row > * { flex: 1; }

label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
label.f input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--input-border));
  background: hsl(var(--input));
  font-family: var(--font-sans);
  font-size: 15px;
  color: hsl(var(--foreground));
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
label.f input:focus {
  border-color: hsl(var(--primary-active));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.35);
}

.consent {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  font-size: 12.5px; line-height: 1.45; color: hsl(var(--foreground-muted));
}
.consent input {
  margin-top: 1px; width: 16px; height: 16px;
  accent-color: hsl(var(--primary-active)); flex: none;
}
.form-error { font-size: 12.5px; color: hsl(var(--destructive)); }
.fineprint { margin: 0; text-align: center; font-size: 11.5px; color: hsl(var(--foreground-muted)); }
.busy .btn-ink { opacity: 0.7; pointer-events: none; }

/* ============================================================================
   CALCULATOR BODY (the unlocked view)
   ============================================================================ */
.calc { display: flex; flex-direction: column; gap: 18px; }
.calc[hidden], .gate[hidden] { display: none; }

.group { display: flex; flex-direction: column; gap: 9px; }
.group-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: hsl(var(--foreground-muted));
}
.group-note { color: hsl(var(--foreground-muted)); text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-size: 11.5px; }

/* Option rows (radio-like selectable cards) */
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; -webkit-appearance: none; appearance: none;
  padding: 13px 15px;
  border-radius: var(--radius-lg);
  border: 2px solid hsl(var(--border));
  background: hsl(var(--card));
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast);
  font-family: var(--font-sans); color: hsl(var(--foreground));
}
.opt:hover { border-color: hsl(var(--primary)); }
.opt .opt-main { display: flex; flex-direction: column; gap: 2px; }
.opt .opt-title { font-size: 14.5px; font-weight: 600; }
.opt .opt-desc { font-size: 12px; color: hsl(var(--foreground-muted)); }
.opt .opt-price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.opt[aria-pressed="true"] { border-color: hsl(var(--primary-active)); background: hsl(var(--primary-subtle)); }
.opt.disabled { opacity: 0.4; pointer-events: none; }

/* Compact two-up option boxes */
.opt-grid { display: flex; gap: 8px; }
.opt-box {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  text-align: left; -webkit-appearance: none; appearance: none;
  padding: 11px 13px; border-radius: var(--radius-lg);
  border: 2px solid hsl(var(--border)); background: hsl(var(--card));
  color: hsl(var(--foreground)); font-family: var(--font-sans);
  cursor: pointer; transition: border-color var(--duration-fast), background var(--duration-fast);
}
.opt-box:hover { border-color: hsl(var(--primary)); }
.opt-box .opt-title { font-size: 14px; font-weight: 600; }
.opt-box .opt-desc { font-size: 12px; color: hsl(var(--foreground-muted)); }
.opt-box[aria-pressed="true"] { border-color: hsl(var(--primary-active)); background: hsl(var(--primary-subtle)); }
.opt-box.disabled { opacity: 0.4; pointer-events: none; }

/* Pills (licence type toggle) */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 9px 16px; border-radius: var(--radius-full); cursor: pointer;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; color: hsl(var(--foreground));
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.pill[aria-pressed="true"] { border-color: hsl(var(--primary-active)); background: hsl(var(--primary-subtle)); }

/* ---- Result cards ---- */
.result-coral {
  background: hsl(var(--primary-subtle));
  border: 1px solid hsl(var(--primary));
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.result-coral .rc-left { display: flex; flex-direction: column; gap: 2px; }
.result-coral .rc-cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--foreground-muted)); }
.result-coral .rc-sub { font-size: 12.5px; color: hsl(var(--foreground-muted)); }
.result-coral .rc-value { font-family: var(--font-serif); font-size: 46px; line-height: 1; white-space: nowrap; }

.result-ink {
  background: hsl(var(--background-inverse));
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  text-align: center;
  color: hsl(var(--foreground-inverse));
}
.result-ink .ri-cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.result-ink .ri-value { font-family: var(--font-serif); font-size: 58px; line-height: 1; margin: 8px 0 4px; }
.result-ink .ri-sub { font-size: 12.5px; opacity: 0.7; }

/* Breakdown lines */
.breakdown { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; padding: 0 4px; }
.breakdown .bd-row { display: flex; justify-content: space-between; }
.breakdown .bd-row span:first-child { color: hsl(var(--foreground-muted)); }
.breakdown .bd-row span:last-child { font-weight: 500; }
.breakdown .bd-total { display: flex; justify-content: space-between; font-weight: 700; padding-top: 8px; border-top: 1px solid hsl(var(--border)); }
/* Breakdown inside an ink result card */
.result-ink .breakdown { margin-top: 16px; padding-top: 14px; border-top: 1px solid hsl(var(--foreground-inverse) / 0.18); text-align: left; }
.result-ink .breakdown .bd-row span:first-child { color: inherit; opacity: 0.8; }
.result-ink .breakdown .bd-row span:last-child { color: inherit; }
.result-ink .breakdown .bd-total { border-top-color: hsl(var(--foreground-inverse) / 0.18); }

.disclaimer { margin: 0; font-size: 11.5px; line-height: 1.5; color: hsl(var(--foreground-muted)); }
.actions { display: flex; gap: 10px; align-items: center; }
.actions .btn-ink { flex: 1; }
.actions .btn-link { white-space: nowrap; padding: 0 6px; }

/* ---- Reveal gate ----------------------------------------------------------
   Opt-in via [data-reveal-gate] (all calculators): the inputs stay live and the
   figure sits in place but blurred, with the lead form tucked directly beneath.
   Submitting adds .is-unlocked (see lead.js) which un-blurs the figure and
   removes the form.

   .has-figure marks that a real figure is waiting to be revealed. Sponsor
   licence computes live so it carries .has-figure in markup; the visa-fee and
   minimum-salary calculators compute on demand, so lead.js toggles .has-figure
   from their `bl:figure` event — before the first calculation there's nothing
   to gate, so placeholders stay sharp and the form stays hidden.
   Scoped to [data-reveal-gate] so any non-gated page is unaffected. */
[data-reveal-gate] [data-locked] { transition: filter 220ms ease; }
[data-reveal-gate].has-figure:not(.is-unlocked) [data-locked] {
  filter: blur(11px);
  pointer-events: none;
  user-select: none;
}

/* The lead form shows while a figure is waiting and the visitor is locked, or
   whenever they explicitly re-open it via "Edit details" (.is-editing) — even on
   a calculator they haven't run yet. */
[data-reveal-gate] .gate { display: none; }
[data-reveal-gate].has-figure:not(.is-unlocked) .gate,
[data-reveal-gate].is-editing .gate { display: flex; }

/* Actions + disclaimers belong to the unlocked (revealed) view. */
[data-reveal-gate]:not(.is-unlocked) .disclaimer,
[data-reveal-gate]:not(.is-unlocked) .actions { display: none; }

/* The inline form reads as a card sitting under the figure it unlocks. */
.reveal-gate {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  background: hsl(var(--card));
  padding: 22px 22px 20px;
}
.reveal-gate .gate-h { font-size: 22px; }

/* ============================================================================
   FORM CONTROLS for the data calculators (visa fee / minimum salary)
   ============================================================================ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label:first-child, .field .flabel { font-size: 13px; font-weight: 600; color: hsl(var(--foreground)); }
.field .help { font-size: 12px; line-height: 1.45; color: hsl(var(--foreground-muted)); }
.field .help a { color: hsl(var(--info-text)); }

input[type="text"], input[type="number"], input[type="date"], input[type="email"], input[type="tel"], select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--input-border));
  background: hsl(var(--input));
  font-family: var(--font-sans);
  font-size: 15px;
  color: hsl(var(--foreground));
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
input:focus, select:focus {
  border-color: hsl(var(--primary-active));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.35);
}
select {
  -webkit-appearance: none; appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23202129' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
input[type="range"] { padding: 0; accent-color: hsl(var(--primary-active)); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-val {
  min-width: 84px; text-align: center; font-weight: 700;
  background: hsl(var(--primary-subtle)); color: hsl(var(--foreground));
  border-radius: var(--radius-md); padding: 7px 6px; font-size: 14px;
}

/* Segmented yes/no toggles → pill group */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  padding: 9px 16px; border-radius: var(--radius-full); cursor: pointer;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; color: hsl(var(--foreground));
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.seg button:hover { border-color: hsl(var(--primary)); }
.seg button[aria-pressed="true"] { border-color: hsl(var(--primary-active)); background: hsl(var(--primary-subtle)); }

/* Custom autocomplete combobox (role picker) */
.combo { position: relative; }
.combo-panel {
  position: absolute; z-index: var(--z-dropdown, 1000);
  left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-height: 288px; overflow-y: auto;
}
.combo-option {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 11px; border-radius: var(--radius-md);
  cursor: pointer; font-size: 14px; line-height: 1.35; color: hsl(var(--foreground));
}
.combo-option:hover, .combo-option[aria-selected="true"] { background: hsl(var(--primary-subtle)); }
.combo-code { font-family: var(--font-mono); font-size: 12px; color: hsl(var(--foreground-muted)); min-width: 42px; flex: none; }
.combo-name { flex: 1; }
.combo-empty { padding: 10px 11px; font-size: 13px; color: hsl(var(--foreground-muted)); }

.hint { font-size: 12.5px; color: hsl(var(--foreground-muted)); }
.hint summary { cursor: pointer; color: hsl(var(--info-text)); }
.hint .body { margin-top: 8px; white-space: pre-line; line-height: 1.5; }
.sub-when { border-left: 2px solid hsl(var(--primary-subtle)); padding-left: 14px; }
.hide { display: none; }

/* ============================================================================
   OUTPUT rendering (visa fee / minimum salary result panes)
   ============================================================================ */
.placeholder { color: hsl(var(--foreground-muted)); font-size: 14px; padding: 8px 0; }

.feegroup { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid hsl(var(--border)); }
.feegroup:first-child { padding-top: 0; }
.fgh { margin-bottom: 8px; }
.fgh .t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.fgh .d { font-size: 12px; color: hsl(var(--foreground-muted)); margin-top: 2px; }
.pip { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pip.a { background: hsl(var(--chart-1)); }
.pip.b { background: hsl(var(--chart-2)); }
.pip.c { background: hsl(var(--neutral)); }

.li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 13.5px; }
.li .lk { color: hsl(var(--foreground)); }
.li .lv { font-weight: 600; white-space: nowrap; }
.li.muted .lk, .li.muted .lv { color: hsl(var(--foreground-muted)); }
.li.total { font-weight: 700; border-top: 1px dashed hsl(var(--border)); margin-top: 4px; padding-top: 8px; }
.li.total .lv { font-weight: 700; }

.grand {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: hsl(var(--background-inverse)); color: hsl(var(--foreground-inverse));
  border-radius: var(--radius-xl); padding: 20px 22px; margin-top: 14px;
}
.grand .gl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; display: flex; flex-direction: column; gap: 3px; }
.grand .gl b { font-family: var(--font-sans); font-size: 12px; text-transform: none; letter-spacing: 0; opacity: 0.9; font-weight: 500; }
.grand .gv { font-family: var(--font-serif); font-size: 40px; line-height: 1; white-space: nowrap; }

/* Who-pays-what split bar */
.split { margin-top: 14px; }
.split-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--foreground-muted)); margin-bottom: 8px; }
.split-bar { display: flex; height: 12px; border-radius: var(--radius-full); overflow: hidden; background: hsl(var(--background-muted)); }
.split-bar .part { height: 100%; }
.split-bar .part.a { background: hsl(var(--chart-1)); }
.split-bar .part.b { background: hsl(var(--chart-2)); }
.split-bar .part.c { background: hsl(var(--neutral)); }
.split-key { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12.5px; }
.split-key .it { display: inline-flex; align-items: center; }
.split-key .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.split-key .dot.a { background: hsl(var(--chart-1)); }
.split-key .dot.b { background: hsl(var(--chart-2)); }
.split-key .dot.c { background: hsl(var(--neutral)); }

/* Minimum-salary result numbers (annual + hourly, equal prominence) */
.resnum { text-align: center; padding: 4px 0 2px; }
.resnum .figs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.resnum .fig { flex: 1 1 200px; min-width: 0; padding: 0 8px; }
.resnum .fig + .fig { border-left: 1px solid hsl(var(--border)); }
.resnum .rl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--foreground-muted)); }
.resnum .rv { font-family: var(--font-serif); font-size: clamp(30px, 7.5vw, 44px); line-height: 1; margin: 8px 0 6px; white-space: nowrap; }
.resnum .figs.solo .rv { font-size: 52px; }
@media (max-width: 480px) {
  .resnum .fig { flex-basis: 100%; }
  .resnum .fig + .fig { border-left: 0; border-top: 1px solid hsl(var(--border)); padding-top: 8px; }
}
.rulechip {
  display: inline-block; margin: 12px 0; padding: 6px 12px; border-radius: var(--radius-full);
  background: hsl(var(--primary-subtle)); color: hsl(var(--foreground));
  font-size: 12.5px; font-weight: 600;
}

/* Salary gauge */
.gauge { margin: 14px 0; }
.gauge-track { position: relative; height: 12px; border-radius: var(--radius-full); background: hsl(var(--background-muted)); overflow: hidden; }
.gauge-fill { height: 100%; border-radius: var(--radius-full); }
.gauge-fill.ok { background: hsl(var(--success)); }
.gauge-fill.short { background: hsl(var(--destructive-muted)); }
.gauge-min { position: absolute; top: -3px; width: 2px; height: 18px; background: hsl(var(--foreground)); }
.gauge-legend { display: flex; justify-content: space-between; font-size: 12px; margin-top: 8px; color: hsl(var(--foreground-muted)); }

/* Message boxes */
.msg { border-radius: var(--radius-lg); padding: 13px 15px; font-size: 13px; line-height: 1.5; margin-top: 12px; }
.msg .mh { display: block; font-weight: 700; margin-bottom: 4px; }
.msg.good { background: hsl(var(--success-emphasis-subtle)); color: hsl(var(--success-foreground)); }
.msg.warn { background: hsl(var(--warning-subtle)); color: hsl(var(--warning-foreground)); }
.msg.bad  { background: hsl(var(--destructive-subtle)); color: hsl(var(--destructive-strong)); }
.pill.ok { background: hsl(var(--success)); color: #fff; padding: 2px 8px; border-radius: var(--radius-full); font-size: 12px; }
.pill.bad { background: hsl(var(--destructive)); color: #fff; padding: 2px 8px; border-radius: var(--radius-full); font-size: 12px; }

/* Footer strip (calculators + landing) */
.ft {
  text-align: center;
  padding: 22px 20px 30px;
  font-size: 12px;
  line-height: 1.6;
  color: hsl(var(--foreground-muted));
}
.ft .ft-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.ft .ft-links a { color: hsl(var(--foreground)); text-decoration: none; font-weight: 500; }
.ft .ft-links a:hover { color: hsl(var(--primary-active)); }
.ft .mode { display: block; margin-top: 8px; opacity: 0.75; }

/* ============================================================================
   LANDING PAGE
   ============================================================================ */
.home-wrap { max-width: 1040px; margin: 0 auto; padding: 56px 24px 24px; }
.home-hero { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-bottom: 40px; }
.home-hero .wordmark { height: 24px; margin-bottom: 8px; }
.home-hero h1 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 52px; line-height: 1.04; letter-spacing: -0.015em; max-width: 16ch; }
.home-hero p { margin: 0; font-size: 16px; line-height: 1.55; color: hsl(var(--foreground-muted)); max-width: 60ch; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  display: flex; flex-direction: column; gap: 10px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl); padding: 26px 24px;
  text-decoration: none; color: hsl(var(--foreground));
  transition: transform var(--duration-normal), box-shadow var(--duration-normal), border-color var(--duration-normal);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: hsl(var(--primary)); }
.tile .ic {
  width: 44px; height: 44px; border-radius: var(--radius-lg);
  background: hsl(var(--primary-subtle)); color: hsl(var(--primary-active));
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  margin-bottom: 6px;
}
.tile h3 { margin: 0; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tile p { margin: 0; font-size: 13.5px; line-height: 1.5; color: hsl(var(--foreground-muted)); flex: 1; }
.tile .go { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--primary-active)); margin-top: 6px; }
.badge {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase;
  background: hsl(var(--neutral-subtle)); color: hsl(var(--neutral-foreground));
  padding: 3px 7px; border-radius: var(--radius-full); font-weight: 400;
}
.home-cta {
  margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: hsl(var(--background-inverse)); color: hsl(var(--foreground-inverse));
  border-radius: var(--radius-2xl); padding: 28px 30px;
}
.home-cta .t { font-family: var(--font-serif); font-size: 22px; line-height: 1.2; max-width: 34ch; }
.home-cta .btn-ink { background: hsl(var(--primary)); color: hsl(var(--foreground)); width: auto; }
.home-cta .btn-ink:hover { background: hsl(var(--primary-hover)); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 880px) {
  .calc-shell { flex-direction: column; min-height: 0; }
  .persuade { flex: none; padding: 28px 26px; gap: 18px; }
  .persuade-points, .persuade-foot { display: none; }
  .persuade-h { font-size: 27px; }
  .calc-main { padding: 26px 24px 30px; }
  .tiles { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: 38px; }
}
@media (max-width: 460px) {
  .calc-wrap { padding: 0; }
  .calc-shell { border-radius: 0; box-shadow: none; min-height: 100vh; }
  .field-row { flex-direction: column; gap: 15px; }
  .result-coral { flex-direction: column; align-items: flex-start; gap: 8px; }
  .result-coral .rc-value { font-size: 40px; }
  .opt-grid { flex-direction: column; }
}
