/*
 * Components of the public product sites (@lanc/waitlist): header, buttons, sections, feature tabs, plans, tables, the waiting-list form,
 * FAQ and footer. Every colour and font comes from the site's tokens, which each site defines in its own styles.css (loaded after this):
 * --bg --surface --tint --ink --muted --line --accent --accent-ink --accent-soft --gold --gold-soft --danger --band-bg --band-fg --shadow,
 * --font-display --font-body --font-mono, --step--1 … --step-4 and --radius.
 */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 700; max-width: 22ch; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
.mono { font-family: var(--font-mono); font-size: .85em; font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.main-nav { display: none; gap: 22px; margin-left: 12px; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: var(--step--1); }
.main-nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.lang-switch button {
  all: unset; cursor: pointer; font-size: .75rem; font-weight: 600; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; color: var(--muted);
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang-switch button:focus-visible { outline: 2px solid var(--accent); }
@media (min-width: 920px) { .main-nav { display: flex; } }
@media (max-width: 480px) { .header-actions .btn-small { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 600 var(--step-0) / 1 var(--font-body); text-decoration: none; border-radius: 10px;
  padding: 14px 20px; border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 9px 14px; font-size: var(--step--1); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Hero */
.hero { padding-block: 56px 32px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } .hero { padding-block: 88px 40px; } }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  background: var(--gold-soft); color: var(--ink); border-radius: 999px; padding: 6px 12px;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 var(--gold); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
.hero-lead { font-size: var(--step-1); color: var(--muted); max-width: 54ch; line-height: 1.55; }
.quick-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.quick-form input { flex: 1 1 220px; min-width: 0; }
.hero-note { font-size: var(--step--1); color: var(--muted); }

input[type="email"], input[type="text"], select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 14px; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
input[aria-invalid="true"] { border-color: var(--danger); }

.from-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 56px; }
.from-label { font-size: var(--step--1); color: var(--muted); }
.from-tools { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.from-tools li {
  font-weight: 600; font-size: var(--step--1); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--gold); text-decoration-thickness: 2px;
}

/* Sections */
.section { padding-block: 80px; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
.section .wrap > h2 + .section-lead, .section .wrap > h2 { margin-top: 10px; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.section-lead { color: var(--muted); font-size: var(--step-1); max-width: 60ch; margin-top: 14px; }

/* Flow */
.flow-steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .flow-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .flow-steps { grid-template-columns: repeat(3, 1fr); } }
.flow-steps li { background: var(--surface); padding: 26px 24px; display: grid; gap: 8px; align-content: start; }
.step-no { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.flow-steps p { color: var(--muted); }

/* Features */
.area-tabs { display: flex; gap: 8px; margin-top: 40px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.area-tabs button {
  all: unset; cursor: pointer; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: var(--step--1); color: var(--muted);
}
.area-tabs button:hover { color: var(--ink); border-color: var(--ink); }
.area-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.area-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.area-count { font-family: var(--font-mono); font-size: .72rem; opacity: .7; }
.area-panel { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.area-panel:focus-visible { outline: 2px solid var(--accent); }
.area-summary { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; max-width: 50ch; }
.feature-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0 32px; }
@media (min-width: 680px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; align-content: start; min-width: 0; }
.feature h3 { font-family: var(--font-body); font-size: var(--step-0); font-weight: 600; letter-spacing: 0; }
.feature p { color: var(--muted); font-size: var(--step--1); }
.soon-tag { display: inline-block; vertical-align: middle; font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); }
.integrations { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 28px; }
.integrations-label { font-size: var(--step--1); color: var(--muted); }
.integrations-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.integrations-list li { font-size: var(--step--1); font-weight: 600; padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }

/* Sectors */
.sector-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } }
.sector { border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; display: grid; gap: 16px; align-content: start; background: var(--surface); min-width: 0; }
.sector-open { background: transparent; border-style: dashed; }
.sector-open p { color: var(--muted); }
.sector-open .btn { justify-self: start; }

/* Why */
.why-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .why-grid { grid-template-columns: .9fr 1.1fr; } }
.why-head { display: grid; gap: 14px; align-content: start; }
.ledger { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; font-size: var(--step--1); }
.ledger-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); align-items: center; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row-live { color: var(--ink); background: var(--accent-soft); }
.ledger-tag { font-family: var(--font-mono); font-size: .72rem; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.why-list { margin: 0; display: grid; gap: 0; }
.why-list > div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.why-list > div:last-child { border-bottom: 1px solid var(--line); }
.why-list dt { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.why-list dd { margin: 0; color: var(--muted); max-width: 60ch; }

/* Plans */
.plan-grid { display: grid; gap: 16px; margin-top: 44px; align-items: start; }
@media (min-width: 900px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; display: grid; gap: 16px; min-width: 0; }
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 600; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.plan-name { font-size: var(--step-2); }
.plan-for { color: var(--muted); min-height: 3.2em; }
.plan-price { display: grid; gap: 2px; padding: 14px 16px; border-radius: 10px; background: var(--tint); }
.plan-price strong { font-family: var(--font-display); font-size: var(--step-1); }
.plan-price span { font-size: var(--step--1); color: var(--muted); }
.plan-includes { font-size: var(--step--1); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft);
}
.checks li::after {
  content: ""; position: absolute; left: 1px; top: calc(.3em + 1px); width: 14px; height: 14px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Replace table */
.table-scroll { overflow-x: auto; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.replace-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.replace-table th, .replace-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.replace-table th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--tint); }
.replace-table tbody tr:last-child td { border-bottom: 0; }
.replace-table td:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.replace-table td:last-child { font-weight: 600; color: var(--accent); }
.replace-summary { margin-top: 18px; font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; }

/* Waitlist */
.waitlist-band { background: var(--band-bg); color: var(--band-fg); }
.waitlist-band .eyebrow { color: var(--gold); }
.waitlist-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .waitlist-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.waitlist-copy { display: grid; gap: 16px; align-content: start; }
.waitlist-copy > p { opacity: .8; max-width: 52ch; font-size: var(--step-1); }
.perks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.perks li { padding-left: 28px; position: relative; font-weight: 600; }
.perks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 4px; background: var(--gold); }
.waitlist-card { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); min-width: 0; }
#waitlist-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { font-size: var(--step--1); font-weight: 600; padding: 0; margin-bottom: 6px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.plan-picker, .tool-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-picker legend, .tool-picker legend { width: 100%; }
.plan-picker label, .tool-picker label { position: relative; cursor: pointer; }
.plan-picker input, .tool-picker input { position: absolute; opacity: 0; pointer-events: none; }
.plan-picker span, .tool-picker span {
  display: inline-block; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  font-size: var(--step--1); font-weight: 500; background: var(--surface);
}
.plan-picker input:checked + span, .tool-picker input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.plan-picker input:focus-visible + span, .tool-picker input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: var(--step--1); color: var(--muted); align-items: start; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.form-error { color: var(--danger); font-size: var(--step--1); font-weight: 600; }
.success { display: grid; gap: 14px; justify-items: start; padding-block: 12px; }
.success:focus { outline: none; }
.success-stamp { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 1.5rem; font-weight: 700; }
.success p { color: var(--muted); }

/* FAQ */
.faq-wrap { display: grid; gap: 36px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; } }
.faq-list { display: grid; }
.faq-list details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: var(--step-1); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); flex-shrink: 0; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin-top: 10px; color: var(--muted); max-width: 64ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer-row { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .footer-row { grid-template-columns: 1fr auto; } .footer-rights { grid-column: 1 / -1; } }
.footer-tagline { color: var(--muted); margin-top: 8px; font-size: var(--step--1); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: var(--step--1); }
.footer-links a:hover { color: var(--ink); }
.footer-rights { color: var(--muted); font-size: .8rem; }

/* Privacy information under the waiting-list form (first layer, LOPDGDD art. 11) */
.privacy-layer { font-size: .76rem; line-height: 1.5; color: var(--muted); }
.consent a { color: var(--accent); font-weight: 600; }

/* Legal pages (legal.html#notice | #privacy | #cookies | #terms) */
.legal-page { padding-block: 48px 80px; }
.legal-wrap { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .legal-wrap { grid-template-columns: 220px minmax(0, 1fr); } .legal-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); } }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 900px) { .legal-nav { flex-direction: column; } }
.legal-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: var(--step--1); font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: var(--surface); }
.legal-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.legal-doc { min-width: 0; max-width: 78ch; display: grid; gap: 14px; align-content: start; }
.legal-back { font-size: var(--step--1); color: var(--accent); text-decoration: none; font-weight: 600; }
.legal-title { font-size: var(--step-3); }
.legal-updated { color: var(--muted); font-size: var(--step--1); }
.legal-translation { font-size: var(--step--1); padding: 10px 14px; border-radius: 8px; background: var(--gold-soft); }
.legal-translation:empty { display: none; }
.legal-body { display: grid; gap: 28px; margin-top: 12px; }
.legal-section { display: grid; gap: 10px; }
.legal-section h2 { font-size: var(--step-1); max-width: none; }
.legal-section p, .legal-section li { color: var(--ink); line-height: 1.65; }
.legal-section ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 640px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--tint); font-weight: 600; }
.legal-doc .table-scroll { margin-top: 4px; }

/* Plan comparison (data-plan-compare): a wide table that scrolls on its own on a phone, the feature column pinned */
.compare { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.compare h3 { font-size: var(--step-2); }
.compare-lead { color: var(--muted); max-width: 64ch; }
.compare-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--step--1); }
.compare-table th, .compare-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare-table thead th { position: sticky; top: 0; background: var(--surface); font-family: var(--font-display); font-size: var(--step-0); z-index: 1; }
.compare-table .compare-feature { text-align: left; font-weight: 500; position: sticky; left: 0; background: var(--surface); min-width: 210px; }
.compare-table thead .compare-feature { font-family: var(--font-body); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); z-index: 2; }
.compare-group th { text-align: left; background: var(--tint); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); position: sticky; left: 0; }
.compare-yes span[aria-hidden] { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.compare-no { color: var(--muted); }
.compare-text { font-weight: 600; }
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: 1px solid var(--line); }
.compare-note { font-size: var(--step--1); color: var(--muted); }
