/* ---------- Fonts ---------- */
@font-face { font-family: 'Fraunces'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('/fonts/fraunces-latin-ext-opsz-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('/fonts/fraunces-latin-opsz-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-weight: 100 900; font-style: italic; font-display: swap; src: url('/fonts/fraunces-latin-ext-opsz-italic.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-weight: 100 900; font-style: italic; font-display: swap; src: url('/fonts/fraunces-latin-opsz-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-weight: 400 700; font-style: normal; font-display: swap; src: url('/fonts/instrument-sans-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-weight: 400 700; font-style: normal; font-display: swap; src: url('/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens and base ---------- */
:root {
  --ink: #0f1b2d;
  --ink-2: #36435a;
  --muted: #6b7386;
  --paper: #f6f1e6;
  --paper-2: #eee6d5;
  --card: #fffdf8;
  --line: #dcd2bc;
  --seal: #c2452d;
  --seal-dark: #a53722;
  --gold: #a9883f;
  --ok: #1b7550;
  --ok-bg: #e2f2e8;
  --warn: #8a5d00;
  --warn-bg: #fbefcf;
  --bad: #b3261e;
  --bad-bg: #fbe5e2;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 14px;
  --shadow: 0 24px 50px -24px rgba(15, 27, 45, 0.35), 0 6px 14px -8px rgba(15, 27, 45, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 560; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--seal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--seal);
}
.eyebrow::before { content: ''; width: 30px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border: 1.5px solid transparent; border-radius: 999px;
  font: 600 0.98rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #1c2e4b; }
.btn--seal { background: var(--seal); color: #fff; }
.btn--seal:hover { background: var(--seal-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--outline-light { border-color: rgba(246, 241, 230, 0.45); color: var(--paper); background: transparent; }
.btn--outline-light:hover { border-color: var(--paper); }
.btn--small { padding: 9px 17px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.link { color: var(--seal); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 1.22rem/1 var(--display); letter-spacing: -0.015em; color: var(--ink);
}
.brand img { width: 32px; height: 32px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 0.96rem; font-weight: 500; color: var(--ink-2); padding: 6px 0; border-bottom: 1.5px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--seal); }
.site-actions { display: flex; align-items: center; gap: 10px; }
.site-actions form { margin: 0; }
.lang-switch { display: flex; align-items: center; gap: 6px; font: 600 0.8rem/1 var(--mono); letter-spacing: 0.05em; }
.lang-switch span, .lang-switch a { color: var(--ink-2); text-decoration: none; padding: 7px 1px; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current='true'] { color: var(--ink); border-bottom: 2px solid var(--seal); }
.lang-switch i { font-style: normal; color: var(--line); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; margin: 4px auto; background: var(--ink); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-header__inner { flex-wrap: wrap; gap: 0 16px; }
  .site-nav, .site-actions { display: none; width: 100%; margin: 0; }
  .site-header.is-open .site-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
  .site-header.is-open .site-actions { display: flex; padding: 4px 0 18px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 108px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 60px; align-items: center; }
.hero h1 { margin: 20px 0 22px; font-size: clamp(2.5rem, 4.9vw, 4.2rem); line-height: 1.02; letter-spacing: -0.03em; }
.hero h1 em, .section h2 em, .page-head h1 em { font-style: italic; font-weight: 440; color: var(--seal); }
.lede { max-width: 34em; font-size: 1.16rem; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 0.93rem; font-weight: 500; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ''; width: 16px; height: 16px; background: var(--ok); -webkit-mask: url('/img/check.svg') center / contain no-repeat; mask: url('/img/check.svg') center / contain no-repeat; }

.rosette { display: block; aspect-ratio: 1; background: currentColor; -webkit-mask: url('/img/rosette.svg') center / contain no-repeat; mask: url('/img/rosette.svg') center / contain no-repeat; }
.hero__visual { position: relative; }
.hero__rosette { position: absolute; z-index: 0; left: 50%; top: 50%; width: 138%; max-width: none; transform: translate(-50%, -50%); color: var(--gold); opacity: 0.5; pointer-events: none; }
.hero__cert { position: relative; z-index: 1; display: block; transform: rotate(-2deg); border-radius: 3px; box-shadow: var(--shadow); text-decoration: none; transition: transform 0.25s ease; }
.hero__cert:hover { transform: rotate(-1deg) translateY(-3px); }
.scan-chip {
  position: absolute; z-index: 2; right: -10px; bottom: -30px;
  display: flex; align-items: center; gap: 13px; padding: 14px 20px 14px 14px;
  background: var(--ink); color: var(--paper); border-radius: 18px; box-shadow: var(--shadow); transform: rotate(1.5deg);
}
.scan-chip__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ok); }
.scan-chip__icon svg { width: 22px; height: 22px; }
.scan-chip small { display: block; font: 500 0.66rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.65; }
.scan-chip strong { display: block; font-size: 0.98rem; line-height: 1.3; }

@media (max-width: 980px) {
  .hero { padding: 48px 0 84px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .scan-chip { right: 6px; }
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section__head { max-width: 700px; margin-bottom: 52px; }
.section h2 { margin: 16px 0 16px; font-size: clamp(1.9rem, 3.3vw, 2.75rem); }
.section__head p { font-size: 1.08rem; color: var(--ink-2); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-top: 26px; border-top: 1.5px solid var(--ink); counter-increment: step; }
.steps li::before { content: '0' counter(step); display: block; margin-bottom: 18px; font: italic 440 3.1rem/1 var(--display); color: var(--seal); }
.steps h3 { font-size: 1.36rem; margin-bottom: 10px; }
.steps p { color: var(--ink-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 28px 26px 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.feature__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px; background: var(--ink); color: var(--paper); }
.feature__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { font-size: 0.98rem; color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 64px; align-items: center; }
.checklist { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checklist li strong { color: var(--ink); }
.checklist li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok) url('/img/check-white.svg') center / 12px no-repeat; }

.phone { width: min(320px, 100%); margin-inline: auto; padding: 12px; background: var(--ink); border-radius: 44px; box-shadow: var(--shadow); }
.phone__screen { overflow: hidden; background: var(--paper); border-radius: 33px; }
.phone__bar { display: flex; align-items: center; gap: 8px; margin: 14px 14px 0; padding: 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font: 500 0.72rem/1.2 var(--mono); color: var(--ink-2); }
.phone__bar svg { width: 11px; height: 11px; flex: none; fill: var(--ok); }
.phone__body { padding: 18px 16px 24px; }
.phone__status { padding: 18px 16px; border-radius: 16px; background: var(--ok-bg); color: var(--ok); text-align: center; }
.phone__status svg { width: 34px; height: 34px; }
.phone__status strong { display: block; margin-top: 6px; font: 600 1.18rem/1.2 var(--display); }
.phone__rows { margin: 14px 0 0; display: grid; gap: 0; }
.phone__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 0.8rem; }
.phone__rows dt { color: var(--muted); }
.phone__rows dd { margin: 0; font-weight: 600; text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 500; font-size: 0.98rem; }

.cta-band { position: relative; overflow: hidden; padding: 84px 0; background: var(--ink); color: var(--paper); }
.cta-band .rosette { position: absolute; right: -180px; top: 50%; width: 640px; max-width: none; transform: translateY(-50%); color: var(--gold); opacity: 0.4; pointer-events: none; }
.cta-band__inner { position: relative; max-width: 720px; }
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 16px; }
.cta-band h2 em { font-style: italic; font-weight: 440; color: #f0a98f; }
.cta-band p { font-size: 1.08rem; color: rgba(246, 241, 230, 0.78); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; }
}
@media (min-width: 601px) and (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { padding: 44px 0 36px; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--ink-2); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--seal); }
.site-footer__note { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }

/* ---------- Page heads ---------- */
.page-head { padding: 68px 0 44px; }
.page-head h1 { margin: 18px 0 18px; font-size: clamp(2.2rem, 4.4vw, 3.5rem); max-width: 16em; }
.page-head .lede { max-width: 40em; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px 28px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.plan--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: var(--shadow); }
.plan__tag { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--seal); }
.plan--featured .plan__tag { color: #f0a98f; }
.plan h2 { margin: 14px 0 8px; font-size: 1.85rem; }
.plan__for { min-height: 3.2em; color: var(--ink-2); font-size: 0.98rem; }
.plan--featured .plan__for { color: rgba(246, 241, 230, 0.75); }
.plan__price { margin: 22px 0; padding: 18px 0; border-block: 1px solid var(--line); font: italic 440 1.5rem/1.2 var(--display); }
.plan--featured .plan__price { border-color: rgba(246, 241, 230, 0.2); }
.plan__price small { display: block; margin-top: 6px; font: 400 0.86rem/1.4 var(--body); color: var(--muted); }
.plan--featured .plan__price small { color: rgba(246, 241, 230, 0.6); }
.plan ul { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 11px; font-size: 0.96rem; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: ''; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; background: var(--ok); -webkit-mask: url('/img/check.svg') center / contain no-repeat; mask: url('/img/check.svg') center / contain no-repeat; }
.plan--featured li::before { background: #7fd3a6; }
.plan .btn { margin-top: auto; }

.brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.mail-card { position: relative; overflow: hidden; padding: 36px 32px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.mail-card small { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.mail-card__address { display: block; margin: 14px 0 22px; font: 560 clamp(1.25rem, 2.4vw, 1.7rem)/1.2 var(--display); letter-spacing: -0.015em; text-decoration: none; overflow-wrap: anywhere; }
.mail-card__address:hover { color: var(--seal); }
.mail-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.faq { max-width: 780px; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font: 560 1.14rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 1.5rem/1 var(--body); color: var(--seal); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-2); }

@media (max-width: 900px) {
  .plans, .brief { grid-template-columns: 1fr; }
  .plan__for { min-height: 0; }
}

/* ---------- Forms and accounts ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 69px); }
.auth__form { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth__box { width: min(420px, 100%); }
.auth__box h1 { margin: 16px 0 10px; font-size: 2.3rem; }
.auth__box > p { color: var(--ink-2); margin-bottom: 28px; }
.auth__side { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 56px; background: var(--ink); color: var(--paper); }
.auth__side .rosette { position: absolute; left: 50%; top: 42%; width: 130%; max-width: none; transform: translate(-50%, -50%); color: var(--gold); opacity: 0.45; }
.auth__side::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, var(--ink) 62%); }
.auth__side blockquote { z-index: 1; position: relative; margin: 0; max-width: 24em; font: italic 440 1.75rem/1.25 var(--display); letter-spacing: -0.01em; }
.auth__side cite { display: block; margin-top: 18px; font: 500 0.74rem/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246, 241, 230, 0.6); }

.field { margin-bottom: 18px; }
.field label { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 0.9rem; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%; padding: 13px 15px; background: var(--card); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 11px; font: 400 1rem/1.3 var(--body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(194, 69, 45, 0.16); }
.field__hint { margin-top: 6px; font-size: 0.84rem; color: var(--muted); }
.alert { margin-bottom: 20px; padding: 13px 16px; border-radius: 11px; font-size: 0.95rem; font-weight: 500; }
.alert--error { background: var(--bad-bg); color: var(--bad); }
.auth__alt { margin-top: 22px; font-size: 0.95rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__side { display: none; }
}

.panel { padding: 30px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.panel h2 { font-size: 1.4rem; margin-bottom: 16px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 18px; align-items: start; padding-bottom: 92px; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 0.93rem; }
.facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.empty { padding: 34px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--ink-2); }
.empty p { max-width: 30em; margin: 0 auto 20px; }
.cert-list { margin: 0; padding: 0; list-style: none; }
.cert-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cert-list small { display: block; color: var(--muted); }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }

/* ---------- Verification ---------- */
.verify { padding: 52px 0 92px; }
.status { display: flex; align-items: center; gap: 22px; padding: 28px 30px; border-radius: 20px; }
.status__icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; }
.status__icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.status small { font: 500 0.74rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.status h1 { margin: 8px 0 6px; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.status p { color: var(--ink-2); max-width: 46em; }
.status--valid { background: var(--ok-bg); } .status--valid .status__icon { background: var(--ok); } .status--valid small { color: var(--ok); }
.status--demo { background: var(--warn-bg); } .status--demo .status__icon { background: #b98200; } .status--demo small { color: var(--warn); }
.status--bad { background: var(--bad-bg); } .status--bad .status__icon { background: var(--bad); } .status--bad small { color: var(--bad); }

.verify__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 18px; margin-top: 18px; align-items: start; }
.verify__preview { display: block; border-radius: 3px; box-shadow: var(--shadow); text-decoration: none; }
.verify__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.verify__tip { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.pill--valid { background: var(--ok-bg); color: var(--ok); }
.pill--demo { background: var(--warn-bg); color: var(--warn); }
.pill--bad { background: var(--bad-bg); color: var(--bad); }
@media (max-width: 900px) {
  .verify__grid { grid-template-columns: 1fr; }
  .status { flex-direction: column; align-items: flex-start; }
}

.lookup { display: flex; gap: 10px; max-width: 560px; margin-top: 30px; }
.lookup input { flex: 1; min-width: 0; padding: 15px 18px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; font: 500 1.02rem/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.lookup input::placeholder { color: var(--muted); }
.lookup input:focus { outline: none; box-shadow: 0 0 0 4px rgba(194, 69, 45, 0.16); }
@media (max-width: 560px) { .lookup { flex-direction: column; } }

/* ---------- Full-size certificate page ---------- */
.certpage { background: #111a2b; min-height: 100vh; }
.certbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; color: var(--paper); }
.certbar .brand { color: var(--paper); }
.certbar .brand img { background: var(--paper); border-radius: 9px; padding: 3px; }
.certbar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.certstage { display: grid; place-items: center; padding: 12px 24px 48px; }
.certstage__sheet { width: min(100%, 1240px, calc((100vh - 130px) * 297 / 210)); min-width: min(100%, 320px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); }

@page { size: A4 landscape; margin: 0; }
@media print {
  .certpage { background: #fff; min-height: 0; }
  .certbar { display: none; }
  .certstage { display: block; padding: 0; }
  .certstage__sheet { width: 297mm; min-width: 0; box-shadow: none; }
  .certstage__sheet .cert { width: 297mm; height: 210mm; aspect-ratio: auto; }
}

/* ---------- Not found ---------- */
.notfound { padding: 110px 0 130px; text-align: center; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 18px 0 16px; }
.notfound p { color: var(--ink-2); margin-bottom: 30px; }
