/* Nisaba — hoja de cálculo con sello. Papel frío, tinta azul marino, un sello de verificación.
   Capa sumeria: escritura cuneiforme (numerales, nombre), cuña como marca y una greca escalonada de zigurat. */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nisaba Cuneiform"; font-style: normal; font-weight: 400; font-display: block;
  src: url("fonts/noto-sans-cuneiform-subset.woff2") format("woff2");
  unicode-range: U+1202D, U+12038, U+12079, U+1207E, U+12240, U+122BA, U+1230B, U+12400-12402;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  --paper: #EEF1F5; --sheet: #FFFFFF; --ink: #0E1A2B; --muted: #56637A; --rule: #D4DBE5; --wash: #E5EAF2;
  --stamp: #2A3BC4; --on-stamp: #FFFFFF; --gain: #0B7A5A; --loss: #C2392D;
  --zig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='14' viewBox='0 0 36 14'%3E%3Cpath d='M0 12.5H6V8.5H12V4.5H24V8.5H30V12.5H36' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  --cun: "Nisaba Cuneiform", "Noto Sans Cuneiform", "Segoe UI Historic", serif;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 0 rgba(14, 26, 43, .04), 0 18px 40px -22px rgba(14, 26, 43, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1019; --sheet: #121B28; --ink: #E8EDF5; --muted: #93A0B6; --rule: #25324A; --wash: #182335;
    --stamp: #93A3FF; --on-stamp: #0A1019; --gain: #4CC9A1; --loss: #F08A7E;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1019; --sheet: #121B28; --ink: #E8EDF5; --muted: #93A0B6; --rule: #25324A; --wash: #182335;
  --stamp: #93A3FF; --on-stamp: #0A1019; --gain: #4CC9A1; --loss: #F08A7E;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--text); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 1.2rem + 5vw, 4.4rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem); font-weight: 650; line-height: 1.1; }
h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
p { margin: 0; max-width: 62ch; }
a { color: var(--stamp); }
code { font: 0.9em ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.pos { color: var(--gain); }
.neg { color: var(--loss); }
.num { font-variant-numeric: tabular-nums; }
.cun { font-family: var(--cun); font-weight: 400; font-style: normal; line-height: 1; letter-spacing: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; border-radius: 3px; }

/* ---------- Estructura ---------- */
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.page { padding-block: 40px 72px; display: grid; gap: 40px; }
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; gap: 12px 28px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 1.2rem var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.mark { width: 26px; height: 26px; color: var(--stamp); flex: none; }
.nav-main { display: flex; gap: 22px; margin-right: auto; font-size: 0.94rem; }
.nav-main a { color: var(--muted); text-decoration: none; padding-block: 6px; }
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--ink); }
.nav-main a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--stamp); }
#nav { display: flex; gap: 8px; align-items: center; }
.foot { position: relative; padding-block: 52px 48px; display: grid; gap: 14px; font-size: 0.85rem; color: var(--muted); }
.foot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background: color-mix(in srgb, var(--stamp) 40%, transparent);
  -webkit-mask: var(--zig) repeat-x left bottom / 36px 14px; mask: var(--zig) repeat-x left bottom / 36px 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between; }
.foot a { color: var(--muted); }
.foot .brand { font-size: 1.05rem; color: var(--ink); }
.foot .cun { font-size: 1.15rem; color: var(--muted); margin-left: 2px; }

/* ---------- Botones ---------- */
.btn, button, .file-btn {
  font: 600 0.92rem/1 var(--text); padding: 11px 16px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .15s, background-color .15s, color .15s;
}
.btn:hover, button:hover, .file-btn:hover { border-color: var(--stamp); color: var(--stamp); }
.btn.primary, button.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.primary:hover, button.primary:hover { background: var(--stamp); border-color: var(--stamp); color: var(--on-stamp); }
.btn.large { padding: 15px 22px; font-size: 1rem; }
.btn.small, button.small { padding: 8px 12px; font-size: 0.85rem; }
.btn.stamped, button.stamped { background: var(--stamp); border-color: var(--stamp); color: var(--on-stamp); }
button:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
button:disabled:hover { border-color: var(--rule); color: var(--ink); }
.btn.primary[aria-disabled="true"]:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: clip;
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, color-mix(in srgb, var(--rule) 55%, transparent) 39px 40px);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 14px; pointer-events: none;
  background: color-mix(in srgb, var(--stamp) 55%, transparent);
  -webkit-mask: var(--zig) repeat-x left bottom / 36px 14px; mask: var(--zig) repeat-x left bottom / 36px 14px;
  animation: roll 1.3s 1s cubic-bezier(.3, .7, .2, 1) backwards;
}
@keyframes roll { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-block: 72px 80px; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--muted); max-width: 52ch; }
.lede strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { font-size: 0.85rem; color: var(--muted); max-width: 52ch; }

.cert {
  position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px;
  box-shadow: var(--shadow); padding: 22px 22px 20px; display: grid; gap: 16px; min-width: 0;
}
.cert-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-right: 76px; }
.cert-head h2 { font-size: 1.25rem; letter-spacing: -0.01em; }
.cert-sub { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.cert svg.plot { width: 100%; height: auto; display: block; }
.cert .figs { border-top: 1px dashed var(--rule); padding-top: 14px; }
.cert-note { font-size: 0.78rem; color: var(--muted); border-top: 1px dashed var(--rule); padding-top: 12px; }
.stamp {
  position: absolute; top: -26px; right: -18px; width: 104px; height: 104px; color: var(--stamp);
  transform: rotate(-14deg); animation: press .7s .5s cubic-bezier(.2, .9, .3, 1.2) backwards;
}
.stamp text { font: 700 9.6px var(--text); letter-spacing: .08em; fill: currentColor; }
@keyframes press {
  from { opacity: 0; transform: rotate(-24deg) scale(1.5); }
  55% { opacity: 1; }
  to { transform: rotate(-14deg) scale(1); }
}

/* ---------- Secciones de la portada ---------- */
.band { padding-block: 80px; border-bottom: 1px solid var(--rule); }
.band.tint { background: var(--wash); }
.band-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 46rem; }
.band-head p { color: var(--muted); font-size: 1.05rem; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.flow li { padding: 22px 22px 0 0; border-top: 2px solid var(--ink); position: relative; display: grid; gap: 8px; align-content: start; }
.flow li::before { font: 400 4.4rem/1 var(--cun); color: var(--stamp); height: 3.6rem; }
.flow li:nth-child(1)::before { content: "\12038"; content: "\12038" / ""; }
.flow li:nth-child(2)::before { content: "\12400"; content: "\12400" / ""; }
.flow li:nth-child(3)::before { content: "\12401"; content: "\12401" / ""; }
.flow li:nth-child(4)::before { content: "\12402"; content: "\12402" / ""; }
.flow h3 { font-size: 1.1rem; }
.flow p { color: var(--muted); font-size: 0.94rem; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.split .copy { display: grid; gap: 18px; }
.split .copy p { color: var(--muted); }
.split .copy p strong { color: var(--ink); font-weight: 600; }
.ledger { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); min-width: 0; }
.ledger table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger caption { text-align: left; padding: 16px 20px; font: 650 1rem var(--display); border-bottom: 1px solid var(--rule); }
.ledger th, .ledger td { padding: 11px 20px; text-align: left; font-weight: 400; font-size: 0.94rem; border-bottom: 1px dashed var(--rule); }
.ledger td:last-child, .ledger th:last-child { text-align: right; }
.ledger tr.total td, .ledger tr.total th { border-bottom: 0; font-weight: 700; background: var(--wash); }
.ledger tr.total td:last-child { color: var(--gain); }
.ledger .aside { padding: 14px 20px; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--rule); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; align-items: stretch; border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; background: var(--sheet); box-shadow: var(--shadow); }
.plan { padding: 32px 32px 36px; display: grid; gap: 22px; align-content: start; }
.plan.pro { background: var(--ink); color: var(--paper); }
.plan.pro .muted, .plan.pro .plan-price small { color: color-mix(in srgb, var(--paper) 68%, transparent); }
.plan-top { display: grid; gap: 4px; }
.plan-price { font: 700 2.6rem/1 var(--display); letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price small { font: 400 0.95rem var(--text); letter-spacing: 0; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.plan li { position: relative; padding-left: 28px; font-size: 0.96rem; }
.plan li::before { content: ""; position: absolute; left: 1px; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) scale(.85); color: var(--gain); }
.plan.pro li::before { color: #8EE0C3; }
.plan .btn { justify-self: start; }
.plan.pro .btn.primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.plan.pro .btn.primary:hover { background: #fff; color: var(--stamp); }
.plan.pro .btn.primary[aria-disabled="true"]:hover { background: var(--paper); color: var(--ink); }
.plan-note { font-size: 0.82rem; }

.nombre .split { align-items: center; }
.nombre .copy h2 { margin-bottom: 2px; }
.tablet {
  margin: 0; background: var(--sheet); border: 1px solid var(--rule); min-width: 0;
  border-radius: 28px 24px 30px 26px / 24px 30px 26px 28px;
  box-shadow: var(--shadow), inset 0 0 0 8px var(--sheet), inset 0 0 0 9px var(--rule);
  padding: 40px 36px 30px; display: grid; gap: 24px;
}
.tablet-sign { font: 400 clamp(4.2rem, 2.4rem + 6vw, 7rem)/1.15 var(--cun); color: var(--stamp); text-align: center; letter-spacing: .08em; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.legend { margin: 0; display: grid; gap: 0; }
.legend > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; align-items: start; padding-block: 14px; border-top: 1px dashed var(--rule); }
.legend > div:first-child { border-top: 0; padding-top: 0; }
.legend dt { font: 400 2.1rem/1 var(--cun); color: var(--stamp); }
.legend dd { margin: 0; font-size: 0.92rem; color: var(--muted); }
.legend dd b { color: var(--ink); font-weight: 600; }

.faq { display: grid; gap: 0; max-width: 46rem; }
.faq details { border-top: 1px solid var(--rule); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font: 650 1.05rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--stamp); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* ---------- Piezas de la app ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.page-head .titles { display: grid; gap: 10px; min-width: 0; }
.page-head h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.2rem); overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: 22px; display: grid; gap: 18px; min-width: 0; }
.sheet > *, .pro-panel > *, .stack > * { min-width: 0; }
.sheet.account { box-shadow: var(--shadow); }
.sheet.account.closed { border-style: dashed; box-shadow: none; }
.stack { display: grid; gap: 20px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.78rem; font-weight: 500; padding: 3px 9px; border: 1px solid var(--rule); border-radius: 3px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tag.real { color: var(--ink); border-color: var(--ink); }
.tag.live { color: var(--gain); border-color: color-mix(in srgb, var(--gain) 45%, var(--rule)); }
.tag.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gain); }
.tag.pro { background: var(--stamp); border-color: var(--stamp); color: var(--on-stamp); }
.tag.sample { border-style: dashed; }
.tag.closed { color: var(--loss); border-color: var(--loss); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.85rem; color: var(--muted); }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px 28px; }
.fig { display: grid; gap: 2px; min-width: 0; }
.fig-label { font-size: 0.82rem; color: var(--muted); }
.fig-value { font: 650 clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem)/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fig-sub { font-size: 0.78rem; color: var(--muted); }
.chart-slot:empty { display: none; }
.chart-slot svg { width: 100%; height: auto; display: block; }
.chart-slot svg text { fill: var(--muted); font: 11px var(--text); }
.chart-title { font: 650 0.95rem var(--display); margin-bottom: 6px; }

.pro-panel { border-top: 1px dashed var(--rule); padding-top: 18px; display: grid; gap: 20px; }
.pro-panel > header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 24px; }
.kpi { display: grid; gap: 2px; }
.kpi b { font: 650 1.25rem var(--display); font-variant-numeric: tabular-nums; }
.kpi span { font-size: 0.8rem; color: var(--muted); }
.months { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.8rem; table-layout: fixed; }
.months th { font-weight: 500; color: var(--muted); text-align: center; padding: 4px 2px; }
.months th:first-child, .months td:first-child { text-align: left; width: 3.2rem; color: var(--muted); }
.months td { text-align: center; padding: 8px 2px; border: 2px solid var(--sheet); }
.months td.year { font-weight: 700; }
.months-scroll { overflow-x: auto; }
.months-scroll .months { min-width: 560px; }
.locked { border: 1px dashed var(--stamp); border-radius: 4px; padding: 16px 18px; display: grid; gap: 10px; justify-items: start; background: color-mix(in srgb, var(--stamp) 5%, var(--sheet)); }
.locked p { color: var(--muted); font-size: 0.92rem; }

.dir { border-top: 2px solid var(--ink); }
.dir-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 20px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
a.dir-row:hover { background: var(--sheet); }
a.dir-row:hover .dir-name { color: var(--stamp); }
.dir-row.dir-h { font-size: 0.82rem; color: var(--muted); padding-block: 10px; }
.dir-name { font: 650 1.15rem var(--display); overflow-wrap: anywhere; }
.dir-num { font-variant-numeric: tabular-nums; }

.empty { border: 1px dashed var(--rule); border-radius: 4px; padding: 32px 24px; display: grid; gap: 12px; justify-items: start; background: var(--sheet); }
.empty h3 { font-size: 1.25rem; }
.empty p { color: var(--muted); }

.notice { padding: 12px 16px; border-left: 3px solid var(--stamp); background: var(--wash); border-radius: 0 4px 4px 0; max-width: 62ch; }
.notice.err { border-left-color: var(--loss); }
.msg { min-height: 1.2em; font-size: 0.875rem; color: var(--loss); margin: 0; }
.msg:empty { display: none; }
.form { display: grid; gap: 14px; }
.form.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.form.grid2 > button, .form.grid2 > .check { align-self: center; }
label { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 500; color: var(--muted); min-width: 0; }
label.check { display: flex; align-items: center; gap: 8px; }
input, select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 11px 12px; min-width: 0; width: 100%; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--stamp); padding: 0; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; justify-self: start; background: var(--paper); }
.seg button { border: 0; border-radius: 0; background: transparent; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.token { display: grid; gap: 10px; padding: 16px; border: 1px dashed var(--stamp); border-radius: 4px; background: color-mix(in srgb, var(--stamp) 5%, var(--sheet)); }
.token code { background: var(--paper); padding: 10px 12px; border-radius: 4px; display: block; }
.setup { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: n; }
.setup li { counter-increment: n; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; }
.setup li::before { content: counter(n); font: 700 1.1rem var(--display); color: var(--stamp); grid-row: span 2; line-height: 1.5; }
.setup li b { font-weight: 600; }
.setup li span { color: var(--muted); font-size: 0.94rem; }
.copy-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.copy-line code { background: var(--paper); border: 1px solid var(--rule); padding: 7px 10px; border-radius: 4px; }
.plan-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 18px; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet); }
.plan-strip p { max-width: none; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; padding-block: 24px; }
.auth-grid .copy { display: grid; gap: 18px; }
.auth-grid .copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.auth { box-shadow: var(--shadow); }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; padding-block: 48px 64px; gap: 56px; }
  .stamp { right: -8px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .split, .auth-grid { grid-template-columns: 1fr; gap: 32px; }
  .band { padding-block: 56px; }
  .tablet { padding: 32px 26px 26px; }
}
@media (max-width: 680px) {
  .wrap { width: min(1120px, 100% - 32px); }
  .nav-main { order: 3; width: 100%; margin-right: 0; gap: 18px; overflow-x: auto; }
  #nav { margin-left: auto; }
  .flow { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 26px 22px 30px; }
  .form.grid2 { grid-template-columns: 1fr; }
  .dir-row { grid-template-columns: 1fr 1fr; }
  .dir-row.dir-h { display: none; }
  .dir-name { grid-column: 1 / -1; }
  .sheet { padding: 18px; }
  .cert-head { padding-right: 56px; }
  .stamp { width: 84px; height: 84px; top: -22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .stamp, .hero::after { animation: none; }
}
