/* Nubit ERP landing. It speaks the same language as the product (nubit-erp:
   assets/shared/appearance/common-language.scss and assets/shared/opdoc/opdoc.scss):
   white paper on a cool desk, near-black ink, a night-blue frame that carries the
   isotype, and the blue of the isotype as the one action colour. Corners are square,
   depth comes from rules instead of shadows, labels are condensed capitals and
   figures are monospaced. Other colours mean a movement or a state, never decoration.
   When the ERP tokens change, change them here. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-cond: "IBM Plex Sans Condensed", "IBM Plex Sans", ui-sans-serif, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --color-ink: #10151d;            /* text */
  --color-muted: #4a5260;          /* secondary text */
  --color-faint: #8b929e;          /* field borders */
  --color-brand: #0b5fe8;          /* the action colour */
  --color-brand-hover: #094fc4;
  --color-brand-text: #0a4fc2;     /* action colour as text on paper */
  --color-brand-subtle: #e2ebfd;   /* selection */
  --color-surface: #ffffff;        /* paper */
  --color-page: #e8ebf0;           /* desk */
  --color-subtle: #f2f4f7;         /* table heads */
  --color-line: #d5d9e0;           /* rule */
  --color-line-strong: #bbc2cc;
  --color-danger: #b42318;

  /* The frame. */
  --color-canvas: #0a1630;
  --color-canvas-raised: #0f1f42;
  --color-canvas-line: #1c2c52;
  --color-canvas-text: #eef2fb;
  --color-canvas-muted: #a3b2d1;
  --color-mark: #00c8f5;           /* cyan of the isotype: where you are, on the frame only */

  /* Movement and state, as in the ERP's operation sheets. */
  --color-sale: #1f6f43;
  --color-success: #1f6f43;
  --color-success-subtle: #dff1e6;

  --radius: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background: var(--color-page);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 80; background: var(--color-surface); }

.gutter { padding-inline: 20px; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; }
@media (min-width: 768px) { .gutter { padding-inline: 40px; } }
@media (min-width: 1280px) { .gutter { padding-inline: 80px; } }

/* Condensed capitals: section names, field labels, column heads. */
.eyebrow, .t-cap {
  font-family: var(--font-cond);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
/* Figures, codes and document numbers. */
.t-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--color-muted); }
.t-display-md { font-size: 38px; line-height: 46px; font-weight: 600; letter-spacing: -0.01em; }
.t-headline { font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: -0.01em; }
.t-title-lg { font-size: 19px; line-height: 26px; font-weight: 600; }
.t-title { font-size: 16px; line-height: 24px; font-weight: 600; }
.t-body-lg { font-size: 18px; line-height: 28px; }
.t-body { font-size: 16px; line-height: 24px; }
.t-body-sm { font-size: 14px; line-height: 20px; }
.t-label { font-size: 14px; line-height: 20px; font-weight: 500; }

/* Buttons: square and flat. Primary is the action colour; secondary is paper with an ink border. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-md { height: 40px; padding-inline: 16px; font-size: 14px; line-height: 20px; font-weight: 500; }
.btn-lg { height: 48px; padding-inline: 22px; font-size: 16px; line-height: 24px; font-weight: 600; }
.btn-primary { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.btn-primary:hover { background: var(--color-brand-hover); border-color: var(--color-brand-hover); }
.btn-secondary { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-ink); }
.btn-secondary:hover { background: var(--color-subtle); }
.btn-on-frame { background: transparent; color: var(--color-canvas-text); border-color: var(--color-canvas-muted); }
.btn-on-frame:hover { background: var(--color-canvas-raised); border-color: var(--color-canvas-text); }
.btn-block { width: 100%; }
.icon-16 { width: 16px; height: 16px; flex: none; }
.icon-18 { width: 18px; height: 18px; flex: none; }
.icon-20 { width: 20px; height: 20px; flex: none; }
.icon-24 { width: 24px; height: 24px; flex: none; }

/* State chip, as in the ERP's lists, and the stamp of a sheet (COBRADA, MÁS ELEGIDO). */
.badge { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: var(--radius); font-size: 12px; line-height: 18px; font-weight: 600; }
.badge-success { background: var(--color-success-subtle); color: var(--color-success); }
.stamp {
  display: inline-flex; align-items: center; padding: 2px 8px; border: 1px dashed currentColor;
  font-family: var(--font-cond); font-size: 11px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.stamp-success { color: var(--color-success); }
.stamp-action { color: var(--color-brand-text); }

/* The isotype with the product name set in type, as in the ERP's own side panel. */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; line-height: 1; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.logo img { width: 32px; height: auto; }

/* ── The frame: header ─────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--color-canvas); color: var(--color-canvas-text); border-bottom: 1px solid var(--color-canvas-line); }
.site-header :focus-visible { outline-color: var(--color-mark); }
.nav { display: flex; align-items: center; gap: 40px; height: 64px; }
.nav-links { display: none; flex: 1; align-items: center; gap: 24px; }
.nav-links a { padding-block: 6px; color: var(--color-canvas-muted); text-decoration: none; box-shadow: inset 0 -2px 0 transparent; transition: color .15s ease, box-shadow .15s ease; }
.nav-links a:hover { color: var(--color-canvas-text); box-shadow: inset 0 -2px 0 var(--color-mark); }
.nav-cta { display: none; align-items: center; gap: 12px; }
.menu-btn { margin-left: auto; padding-inline: 12px; }
.mobile-menu { border-top: 1px solid var(--color-canvas-line); background: var(--color-canvas); }
.mobile-links { display: flex; flex-direction: column; padding-block: 16px; }
.mobile-links a:not(.btn) { padding-block: 12px; color: var(--color-canvas-muted); text-decoration: none; border-bottom: 1px solid var(--color-canvas-line); }
.mobile-links a:not(.btn):hover { color: var(--color-canvas-text); }
.mobile-links .btn { margin-top: 16px; }
@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}
@media (min-width: 1280px) { .nav-links { gap: 32px; } }

/* ── The sheet: the ERP's operation document, used for the hero and the plans ── */
.sheet { --sheet-accent: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-line); border-top: 5px solid var(--sheet-accent); }
.sheet--sale { --sheet-accent: var(--color-sale); }
.sheet--action { --sheet-accent: var(--color-brand); }
.sheet-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; border-bottom: 1px solid var(--color-ink); }
.sheet-type {
  align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--sheet-accent); color: #fff;
  font-family: var(--font-cond); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.sheet-number { padding-block: 10px; font-size: 20px; line-height: 28px; font-weight: 500; }
.sheet-state { display: none; margin-left: auto; padding-right: 16px; color: var(--color-muted); font-size: 14px; }
.sheet-body { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.sheet-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sheet-fields > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sheet-lines { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.sheet-lines th {
  padding: 8px 10px; background: var(--color-subtle); border-block: 1px solid var(--color-ink); color: var(--color-muted);
  text-align: left; font-family: var(--font-cond); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.sheet-lines td { padding: 9px 10px; border-bottom: 1px solid var(--color-line); }
.sheet-lines .r { text-align: right; }
.sheet-lines .opt { display: none; }
.sheet-totals { align-self: flex-end; display: flex; flex-direction: column; gap: 6px; width: min(280px, 100%); padding-top: 10px; border-top: 1px solid var(--color-ink); }
.sheet-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sheet-total { font-size: 24px; line-height: 30px; font-weight: 500; }
.sheet-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; border-top: 1px solid var(--color-line); color: var(--color-muted); font-size: 13px; line-height: 18px; }
@media (min-width: 640px) {
  .sheet-state { display: inline; }
  .sheet-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet-lines .opt { display: table-cell; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 600px; }
.hero-copy h1 { font-size: 38px; line-height: 44px; font-weight: 600; letter-spacing: -0.015em; }
.hero-lead { color: var(--color-muted); font-size: 18px; line-height: 28px; max-width: 54ch; }
.hero-actions { display: grid; gap: 12px; width: 100%; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 6px 0; width: 100%; padding-top: 14px; border-top: 1px solid var(--color-line-strong); }
.hero-proof li { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--color-line-strong); }
.hero-proof li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
@media (min-width: 640px) { .hero-actions { display: flex; flex-wrap: wrap; width: auto; } }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; padding-block: 72px 80px; }
  .hero-copy h1 { font-size: 52px; line-height: 58px; }
}

/* ── Highlights: a summary strip, like the one above the ERP's lists ───── */
.highlights { margin-bottom: 56px; }
.highlights-grid { display: grid; padding: 0; background: var(--color-surface); border-block: 1px solid var(--color-line-strong); }
.highlight { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-top: 1px solid var(--color-line); }
.highlight:first-child { border-top: 0; }
@media (min-width: 768px) {
  .highlights { padding-inline: 40px; margin-bottom: 80px; }
  .highlights-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .highlight { padding: 22px 24px; border-top: 0; border-left: 1px solid var(--color-line); }
  .highlight:first-child { border-left: 0; }
}
@media (min-width: 1280px) { .highlights { padding-inline: 80px; } }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding-block: 64px; }
.section--paper { background: var(--color-surface); border-block: 1px solid var(--color-line); }
.section-intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-intro .t-body-lg { color: var(--color-muted); }
@media (min-width: 768px) { .section { padding-block: 80px; } }

.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; }

/* ── Modules: one ruled table of what the system covers ────────────────── */
.module-grid { display: grid; gap: 1px; margin-top: 40px; background: var(--color-line); border: 1px solid var(--color-line); border-top: 1px solid var(--color-ink); }
.module { display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: var(--color-surface); transition: background-color .15s ease; }
.module:hover { background: var(--color-subtle); }
.module > img { margin-top: 1px; }
.module-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.module-copy p { color: var(--color-muted); }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--color-brand-text); font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .module { padding: 24px; } }
@media (min-width: 1024px) { .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── Product tour: the frame, with the system's screens on it ──────────── */
.tour { background: var(--color-canvas); color: var(--color-canvas-text); }
.tour :focus-visible { outline-color: var(--color-mark); }
.tour-grid { display: grid; gap: 32px; padding-block: 64px; }
.tour-copy { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.tour-intro { display: flex; flex-direction: column; gap: 12px; }
.tour-eyebrow, .tour-muted { color: var(--color-canvas-muted); }
.tour-tabs { display: flex; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; border-bottom: 1px solid var(--color-canvas-line); }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tab {
  flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  padding: 10px 16px; border: 0; border-radius: 0; background: transparent; font: inherit;
  color: var(--color-canvas-muted); box-shadow: inset 0 -3px 0 transparent;
  transition: background-color .15s ease, color .15s ease;
}
.tour-tab:hover { color: var(--color-canvas-text); }
.tour-tab[aria-selected="true"] { color: var(--color-canvas-text); box-shadow: inset 0 -3px 0 var(--color-mark); }
.tour-tab-text { display: none; }
.tour-frame { overflow: hidden; border: 1px solid var(--color-canvas-line); background: var(--color-surface); }
.tour-frame-bar { display: flex; align-items: center; height: 32px; padding-inline: 12px; background: var(--color-canvas-raised); border-bottom: 1px solid var(--color-canvas-line); color: var(--color-canvas-muted); font-family: var(--font-mono); font-size: 12px; }
.tour-frame img { display: block; width: 100%; height: auto; max-width: none; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.tour-caption { margin-top: 16px; }
@media (min-width: 768px) { .tour-grid { padding-block: 80px; } }
@media (min-width: 1024px) {
  .tour-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: center; }
  .tour-tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; border-bottom: 0; border-top: 1px solid var(--color-canvas-line); }
  .tour-tab { padding: 16px 18px; border-bottom: 1px solid var(--color-canvas-line); box-shadow: inset 3px 0 0 transparent; }
  .tour-tab:hover { background: var(--color-canvas-raised); }
  .tour-tab[aria-selected="true"] { background: var(--color-canvas-raised); box-shadow: inset 3px 0 0 var(--color-mark); }
  .tour-tab-text { display: block; color: var(--color-canvas-muted); }
  .tour-caption { display: none; }
}

/* ── Plans: each one a sheet ───────────────────────────────────────────── */
.pricing-inner { display: flex; flex-direction: column; gap: 32px; padding-block: 64px; }
.pricing-top { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.pricing-intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.billing { display: inline-flex; padding: 2px; border: 1px solid var(--color-line-strong); background: var(--color-surface); }
.billing-option { border: 0; border-radius: 0; background: transparent; color: var(--color-muted); padding: 7px 14px; cursor: pointer; }
.billing-option[aria-pressed="true"] { background: var(--color-brand-subtle); color: var(--color-ink); }
.plan-grid { width: 100%; display: grid; gap: 24px; }
.plan-card { display: flex; flex-direction: column; }
.plan-card .sheet-head { min-height: 44px; padding-inline: 16px; gap: 8px 12px; justify-content: space-between; }
.plan-card .sheet-body { flex: 1; padding: 20px 16px; }
.plan-price { display: flex; flex-direction: column; gap: 2px; }
.plan-price [data-price] { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -0.02em; }
.save { color: var(--color-success); font-weight: 500; }
.plan-features { display: flex; flex-direction: column; border-top: 1px solid var(--color-ink); }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; padding-block: 9px; border-bottom: 1px solid var(--color-line); }
.plan-card .btn { margin-top: auto; }
.pricing-note { color: var(--color-muted); }
@media (min-width: 768px) {
  .pricing-inner { padding-block: 80px; }
  .pricing-top { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── Steps: a real sequence, so they are numbered. The connector runs through
   the centre of the squares (vertical while stacked, horizontal from 768px). ── */
.steps { display: grid; gap: 32px; margin-top: 40px; list-style: none; }
.step::marker { content: ""; }
.step { position: relative; padding-left: 56px; }
.step-number {
  position: absolute; left: 0; top: -4px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--color-ink); color: #fff;
  font-family: var(--font-mono); font-size: 15px; font-weight: 500;
}
.step:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 32px; bottom: -32px; width: 1px; background: var(--color-line-strong); }
.step p { margin-top: 8px; color: var(--color-muted); }
.steps-cta { margin-top: 40px; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step { padding-left: 0; padding-top: 56px; padding-right: 16px; }
  .step-number { top: 0; }
  .step:not(:last-child)::before { left: 36px; right: -24px; top: 18px; bottom: auto; width: auto; height: 1px; }
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; gap: 40px; padding-block: 64px; }
.faq-intro { display: flex; flex-direction: column; gap: 12px; }
.faq-intro a { color: var(--color-brand-text); text-underline-offset: 3px; }
.faq-list { background: var(--color-surface); border: 1px solid var(--color-line); border-top: 1px solid var(--color-ink); }
.faq-item { padding: 18px 20px; border-bottom: 1px solid var(--color-line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { flex: 1; }
.faq-chevron { transition: transform .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { margin-top: 8px; max-width: 68ch; color: var(--color-muted); }
@media (min-width: 768px) { .faq-grid { padding-block: 80px; } }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 360px minmax(0, 1fr); gap: 64px; }
  .faq-intro { position: sticky; top: 104px; align-self: start; }
}

/* ── Closing call to action: the frame again, joined to the footer ─────── */
.cta { background: var(--color-canvas); color: var(--color-canvas-text); border-bottom: 1px solid var(--color-canvas-line); }
.cta :focus-visible, .site-footer :focus-visible { outline-color: var(--color-mark); }
.cta-panel { display: flex; flex-direction: column; gap: 28px; padding-block: 56px; }
.cta-copy { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.cta-lead { color: var(--color-canvas-muted); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .cta-panel { padding-block: 64px; } .cta-copy h2 { font-size: 38px; line-height: 46px; } }
@media (min-width: 1024px) { .cta-panel { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; } .cta-actions { align-items: flex-end; } }

/* ── Footer: part of the frame ─────────────────────────────────────────── */
.site-footer { background: var(--color-canvas); color: var(--color-canvas-text); margin-top: auto; }
.footer-inner { display: flex; flex-direction: column; gap: 40px; padding-top: 56px; padding-bottom: 32px; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand p { max-width: 320px; color: var(--color-canvas-muted); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 20px; }
.footer-col a { color: var(--color-canvas-muted); text-decoration: none; }
.footer-col a:hover { color: var(--color-canvas-text); text-decoration: underline; text-underline-offset: 3px; }
.footer-title { font-family: var(--font-cond); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-canvas-text); margin-bottom: 4px; }
.footer-legal { padding-top: 24px; border-top: 1px solid var(--color-canvas-line); color: var(--color-canvas-muted); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }

/* ── Legal pages ───────────────────────────────────────────────────────── */
.prose-page { max-width: 720px; padding-block: 48px; }
.prose-page h1 { font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: -0.01em; }
.prose-page .updated { margin-top: 8px; color: var(--color-muted); font-size: 14px; }
.prose-page h2 { font-size: 19px; line-height: 26px; font-weight: 600; margin: 32px 0 8px; }
.prose-page p, .prose-page li { font-size: 16px; line-height: 26px; color: var(--color-muted); }
.prose-page p { margin: 0 0 16px; }
.prose-page ul { list-style: disc; padding-left: 20px; margin: 0 0 16px; }
.prose-page strong { color: var(--color-ink); font-weight: 600; }
.prose-page a { color: var(--color-brand-text); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .prose-page { padding-block: 80px; } }

.lost { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 48px 20px; }
.lost h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 600; letter-spacing: -0.01em; }
.lost p { color: var(--color-muted); }

/* Cookie consent (analytics.js). Bottom-left, away from the chat bubble. */
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 440px;
  padding: 20px; background: var(--color-surface); border: 1px solid var(--color-ink); border-top-width: 3px;
}
.consent p { font-size: 14px; line-height: 22px; color: var(--color-muted); }
.consent p a { color: var(--color-brand-text); text-decoration: underline; }
.consent-row { display: flex; gap: 10px; margin-top: 16px; }
.consent-row .btn { flex: 1; }
@media (min-width: 720px) { .consent { left: 24px; right: auto; bottom: 24px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
