/* 4S — landing page styles. Tokens from design/system (light only on the landing page). */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/AtkinsonHyperlegible-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/AtkinsonHyperlegible-Bold.woff2') format('woff2'); }

:root {
  --paper-50: #FFFDF9; --paper-100: #FAF7F2; --paper-200: #F2EDE4; --paper-300: #E3DCD0; --paper-400: #C9C0B1;
  --ink-900: #1B2330; --ink-700: #424B5A; --ink-500: #5E6675;
  --azulejo-50: #EEF2FA; --azulejo-600: #1E4A9A; --azulejo-700: #183D80; --azulejo-800: #12316A;
  --amber-700: #7A4F00; --amber-100: #FCEFD3; --red-700: #A8211A;

  --bg: var(--paper-100); --surface: var(--paper-50); --border: var(--paper-300); --border-strong: var(--paper-400);
  --fg-1: var(--ink-900); --fg-2: var(--ink-700);
  --brand: var(--azulejo-600); --brand-hover: var(--azulejo-700); --brand-pressed: var(--azulejo-800);
  --brand-tint: var(--azulejo-50); --on-brand: #FFFFFF;
  --soon-fg: var(--amber-700); --soon-bg: var(--amber-100); --error: var(--red-700);
  --shadow-1: 0 1px 2px rgba(27,35,48,.06), 0 2px 8px rgba(27,35,48,.05);
  --shadow-2: 0 2px 4px rgba(27,35,48,.06), 0 8px 24px rgba(27,35,48,.08);
  --font: 'Atkinson Hyperlegible', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2,0,0,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--fg-1); }
body { font-family: var(--font); font-size: 18px; line-height: 28px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
svg.i { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 20px; height: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--fg-2); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 64px 20px; }
.band { background: var(--surface); border-block: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-s { display: flex; flex-direction: column; gap: 8px; }
h2 { font-size: clamp(28px, 4.5vw, 38px); line-height: 1.2; }
h3 { font-size: 24px; line-height: 30px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--border); }
.top .wrap { padding-block: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark { font-weight: 700; letter-spacing: -.02em; color: var(--fg-1); text-decoration: none; line-height: 1; }
.mark span { color: var(--brand); }
.top .mark { font-size: 30px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); font-size: 16px; font-weight: 700; }
.top-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; font-size: 16px; font-weight: 700; text-decoration: none; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 40px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--fg-2); }
h1 { font-size: clamp(36px, 8vw, 58px); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.lead { font-size: clamp(20px, 2.4vw, 23px); line-height: 1.5; color: var(--fg-2); max-width: 34em; text-wrap: pretty; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.form label { font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.field { width: 100%; min-height: 56px; padding: 0 16px; border: 2px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--fg-1); font: inherit; font-size: 18px; transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.row .field { flex: 1 1 240px; width: auto; min-width: 0; }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.field[aria-invalid="true"] { border-color: var(--error); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.select-wrap svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%) rotate(90deg); pointer-events: none; color: var(--fg-2); }
.err { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--error); }
.err:empty { display: none; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 16px; line-height: 24px; color: var(--fg-2); }
.note svg { margin-top: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 24px; border-radius: 12px; font: inherit; font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color 150ms var(--ease), transform 120ms var(--ease); }
.btn-primary { border: 0; background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-1); }
.row .btn-primary { flex: 1 1 200px; }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-primary:active { background: var(--brand-pressed); transform: scale(.98); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-secondary { border: 2px solid var(--brand); background: var(--surface); color: var(--brand); }
.btn-secondary:hover { background: var(--brand-tint); }
.btn-block { width: 100%; }

.done { display: flex; gap: 12px; align-items: flex-start; padding: 20px; border-radius: 16px; background: var(--brand-tint); max-width: 520px; color: var(--fg-1); }
.done svg { color: var(--brand); margin-top: 2px; }
.done strong { display: block; font-size: 20px; line-height: 28px; }
[hidden] { display: none !important; }

/* Phone mockup */
.phone-col { flex: 1 1 320px; display: flex; justify-content: center; }
.phone { width: 100%; max-width: 340px; padding: 12px; border-radius: 44px; background: var(--ink-900); box-shadow: 0 24px 60px rgba(27,35,48,.22); }
.screen { border-radius: 34px; overflow: hidden; background: var(--paper-100); }
.notch { width: 88px; height: 22px; border-radius: 11px; background: var(--ink-900); margin: 10px auto 4px; }
.screen-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px; }
.screen-bar .tab { display: flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: 16px; }
.screen-bar .mark { font-size: 20px; }
.screen-body { padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.screen-body .fake-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 17px; line-height: 22px; font-weight: 700; text-align: center; }
.disclaimer { font-size: 16px; line-height: 22px; color: var(--fg-2); }
.screen-body .disclaimer { text-align: center; }

/* Result card */
.result { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 12px; }
.facts { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.result.big .facts { gap: 16px; }
.result dt { font-size: 16px; line-height: 22px; color: var(--fg-2); font-weight: 700; }
.result dd { margin: 0; font-size: 18px; line-height: 26px; }
.result dd.strong { font-weight: 700; }
.result.big { padding: 24px; gap: 16px; box-shadow: var(--shadow-2); }
.result.big dd { font-size: 20px; line-height: 30px; }
.due { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.chip-soon { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 12px 2px 10px; border-radius: 999px; background: var(--soon-bg); color: var(--soon-fg); font-size: 16px; line-height: 24px; font-weight: 700; }
.result .disclaimer { padding-top: 12px; border-top: 1px solid var(--border); }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.step-head { display: flex; align-items: center; gap: 12px; }
.tile { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); }
.step-n { font-size: 16px; font-weight: 700; color: var(--fg-2); }
.steps p { color: var(--fg-2); }
.align-start { align-self: flex-start; }

/* Before / after */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: start; }
.pair figure { display: flex; flex-direction: column; gap: 12px; }
.pair figcaption { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--fg-2); }
.pair figcaption.brand { color: var(--brand); }
.letter { padding: 28px 24px; border-radius: 6px; background: #FFFFFF; color: #2A303B; border: 1px solid var(--border); box-shadow: var(--shadow-2); font-size: 16px; line-height: 24px; }
.letter p { margin-bottom: 12px; }
.letter p:last-child { margin-bottom: 0; }
.stamp-row { display: flex; justify-content: flex-end; margin: -8px -4px 12px 0; }
.stamp { padding: 4px 10px; border-radius: 6px; border: 2px solid #8A8F99; color: var(--ink-500); font-size: 14px; line-height: 18px; font-weight: 700; transform: rotate(3deg); }
.letter .from { font-weight: 700; }
.letter .dept { color: var(--ink-500); margin-bottom: 16px; }
.letter .subject { font-weight: 700; }

/* Chips */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { display: flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border-strong); font-weight: 700; }

/* Privacy */
.privacy { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--brand-tint); }
.privacy .tile { width: 64px; height: 64px; border-radius: 18px; background: var(--surface); }
.privacy .stack { flex: 1 1 300px; gap: 16px; }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; }
.ticks svg { color: var(--brand); margin-top: 2px; }
.ticks.lg { gap: 12px; font-size: 20px; line-height: 30px; }
.ticks.lg svg { margin-top: 3px; }

/* Pricing */
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 14px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: 16px; line-height: 24px; font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 20px; padding: 28px 24px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.plan.plus { border: 2px solid var(--brand); box-shadow: var(--shadow-2); }
.plan .ticks { flex: 1; }
.price { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price b { font-size: 40px; line-height: 48px; }
.price small { font-size: 18px; color: var(--fg-2); font-weight: 400; }

/* FAQ */
.faq { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 20px; font-size: 20px; line-height: 28px; font-weight: 700; cursor: pointer; list-style: none; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--brand); transform: rotate(90deg); transition: transform 200ms var(--ease); }
.faq details[open] summary svg { transform: rotate(-90deg); }
.faq details p { padding: 0 20px 20px; color: var(--fg-2); text-wrap: pretty; }

/* Final form */
.final { max-width: 640px; padding-bottom: 72px; }
.card-form { display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); max-width: none; }

/* Footer */
.foot .wrap { padding-block: 32px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 16px; line-height: 24px; }
.foot .mark { font-size: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot nav a, .foot nav span { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; }
.foot nav span { color: var(--fg-2); }

/* Plain pages (legal, confirmation) */
.page { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.page h1 { font-size: clamp(32px, 6vw, 44px); margin-bottom: 24px; }
.page h2 { font-size: 24px; line-height: 32px; margin: 36px 0 12px; }
.page p, .page ul { margin-bottom: 14px; }
.page ul { padding-left: 24px; }
.page li { margin-bottom: 6px; }
.page table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 16px; line-height: 24px; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.page th { font-weight: 700; background: var(--surface); }
.table-scroll { overflow-x: auto; }
.page .summary { padding: 20px 24px; border-radius: 16px; background: var(--brand-tint); }
.page .summary ul { margin: 0; }
.page address { font-style: normal; }
.center-page { max-width: 560px; margin: 0 auto; padding: 72px 20px; display: flex; flex-direction: column; gap: 20px; }
.center-page h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.15; }
.icon-tile { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: var(--brand-tint); color: var(--brand); }
.icon-tile svg { width: 32px; height: 32px; }

@media (max-width: 480px) {
  .wrap { padding-block: 48px; }
  .hero { padding-top: 28px; gap: 40px; }
  .top-link { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
