/* aiassistent.work — shared styles for every page. Mobile-first. */

:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f1f3fa;
  --text: #0f172a;
  --text-muted: #525c72;
  --border: #e3e7f0;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef0ff;
  --accent: #0d9488;
  --accent-soft: #e6f7f5;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --success: #067647;
  --focus: #4f46e5;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--text); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:focus-visible { outline-offset: 3px; border-radius: 999px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .55); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: #c9cfdd; color: var(--text); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; transform: none; }

.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; text-decoration: none;
}
.link-button:hover { color: var(--text); text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 252, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; }
.brand-tld { color: var(--text-muted); font-weight: 600; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 12px 20px 20px;
}
.site-nav.is-open { display: block; }
.nav-links a {
  display: block; padding: 12px 4px; color: var(--text); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: grid; gap: 10px; margin-top: 16px; }

/* Language switcher: sits next to the menu button on mobile, after the nav on desktop. */
.lang-switcher {
  order: 2; margin-left: auto; flex: none;
  height: 40px; padding: 0 30px 0 12px;
  color: var(--text); font: inherit; font-size: 14px; font-weight: 600;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border); border-radius: 12px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.lang-switcher:hover { border-color: var(--text-muted); }
.header-inner .nav-toggle { order: 3; margin-left: -6px; }

/* Hidden only while a non-English dictionary is applied during page load (assets/js/i18n.js). */
.i18n-pending body { visibility: hidden; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; align-items: center; gap: 28px;
    position: static; background: none; border: 0; box-shadow: none; padding: 0;
  }
  .nav-links { display: flex; gap: 4px; }
  .nav-links a { border: 0; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--text-muted); }
  .nav-links a:hover { color: var(--text); background: var(--surface-2); }
  .nav-actions { display: flex; gap: 10px; margin: 0; }
  .nav-actions .btn { min-height: 40px; padding: 8px 18px; }
  .site-nav { order: 1; margin-left: auto; }
  .lang-switcher { margin-left: 0; }
  .nav-links a, .nav-actions .btn { white-space: nowrap; }
}
/* Longer translated labels (fr/es/hu) need a tighter header just above the mobile breakpoint. */
@media (min-width: 900px) and (max-width: 1099px) {
  .header-inner { gap: 10px; }
  .site-nav { gap: 12px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px; font-size: 14px; }
  .nav-actions .btn { padding: 8px 14px; font-size: 14px; }
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: clamp(28px, 4.4vw, 40px); margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -.01em; }
.lead { font-size: 17px; color: var(--text-muted); }
@media (min-width: 900px) { .section { padding: 96px 0; } .lead { font-size: 18px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; } .split-reverse > :first-child { order: 2; } }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 40px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; z-index: -1;
  background: radial-gradient(closest-side, rgba(79, 70, 229, .16), transparent 70%),
              radial-gradient(closest-side at 30% 70%, rgba(13, 148, 136, .14), transparent 70%);
}
.hero h1 { font-size: clamp(34px, 6.2vw, 58px); margin-bottom: 18px; }
.hero .lead { max-width: 560px; }
.hero-cta { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-note { font-size: 14px; color: var(--text-muted); }
@media (max-width: 519px) { .hero-cta .btn { width: 100%; } }
@media (min-width: 900px) { .hero { padding: 72px 0 104px; } }

/* ---------- Product mockups ---------- */

.mockup-wrap { position: relative; }
.mockup-caption { margin-top: 12px; font-size: 13px; color: var(--text-muted); text-align: center; }

.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-visual { display: grid; gap: 16px; max-width: 520px; margin: 0 auto; }
@media (min-width: 520px) {
  .hero-visual { grid-template-columns: 1fr 1fr; align-items: start; }
  .hero-visual .thread-card { margin-top: 56px; }
}

.character-card { padding: 20px; }
.cc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cc-head img { width: 56px; height: 56px; border-radius: 50%; }
.cc-name { font-weight: 700; font-size: 17px; line-height: 1.2; }
.cc-meta { font-size: 13px; color: var(--text-muted); }
.cc-rows { display: grid; gap: 12px; }
.cc-rows dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; font-size: 13px; font-weight: 500; line-height: 1;
  padding: 7px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
}
.chip.is-on { background: var(--primary-soft); color: var(--primary); border-color: #d4d7fb; }
.chip.is-accent { background: var(--accent-soft); color: var(--accent); border-color: #c4ebe6; }

.range { position: relative; height: 6px; border-radius: 3px; background: var(--surface-2); }
.range span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.range span::after {
  content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: #fff; border: 2px solid var(--primary); box-shadow: var(--shadow-sm);
}
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.thread-card { padding: 16px; }
.thread-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.thread-top img { width: 32px; height: 32px; border-radius: 50%; }
.thread-top strong { font-size: 14px; display: block; line-height: 1.2; }
.thread-top small { font-size: 12px; color: var(--text-muted); }
.messages { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.msg-user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-ai { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }
.msg-label { display: block; font-size: 11px; font-weight: 600; opacity: .75; margin-bottom: 2px; }
.composer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px;
  font-size: 13px; color: var(--text-muted);
}
.composer i { width: 28px; height: 28px; border-radius: 8px; background: var(--primary); flex-shrink: 0; position: relative; }
.composer i::after { content: ""; position: absolute; left: 9px; top: 8px; border: 6px solid transparent; border-left: 10px solid #fff; border-right: 0; }

/* Builder mockup (character setup) */
.builder { padding: 20px; }
.builder-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; margin-bottom: 20px; font-size: 13px; font-weight: 600; overflow: hidden; }
.builder-tabs span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: center; padding: 8px 4px; border-radius: 9px; color: var(--text-muted); white-space: nowrap; }
.builder-tabs span.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.builder-row + .builder-row { margin-top: 18px; }
.builder-row > p { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.swatches { display: flex; gap: 10px; align-items: center; }
.swatches img { width: 44px; height: 44px; border-radius: 50%; }
.swatches .is-on { outline: 3px solid var(--primary); outline-offset: 2px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; }

/* ---------- Cards ---------- */

.card-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, box-shadow .2s;
}
.section-alt .card { background: var(--bg); }
.card p { color: var(--text-muted); font-size: 15px; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: var(--primary-soft); color: var(--primary);
}
.card:nth-child(even) .card-icon { background: var(--accent-soft); color: var(--accent); }

.feature-cards { margin-top: 40px; }

/* ---------- Topics ---------- */

.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .topics { grid-template-columns: repeat(4, 1fr); } }
.topic {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; font-weight: 600; font-size: 15px; line-height: 1.3;
}
.section-alt .topic { background: var(--bg); }
.topic .icon { color: var(--primary); }
.topic:nth-child(4n+2) .icon, .topic:nth-child(4n+4) .icon { color: var(--accent); }

/* ---------- Steps ---------- */

.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { position: relative; padding: 28px 24px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 16px;
  background: var(--text); color: #fff; font-weight: 700; font-size: 15px;
}
.step p { color: var(--text-muted); font-size: 15px; }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.section-alt .faq details { background: var(--bg); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex-shrink: 0; margin-right: 4px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--primary); }
.faq details p { padding: 0 20px 20px; color: var(--text-muted); }

/* ---------- Final CTA ---------- */

.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, #312e81, #4f46e5 55%, #0f766e);
  color: #fff; border-radius: var(--radius-lg); padding: 56px 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 540px; margin: 0 auto 28px; font-size: 17px; }
.cta-band .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta-band .btn-primary:hover { background: #eef0ff; color: var(--primary-hover); }
.cta-band .btn:focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */

.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--border); background: var(--surface); font-size: 15px; }
.footer-top { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.2fr 2fr; } }
.footer-about p { color: var(--text-muted); margin-top: 12px; max-width: 340px; font-size: 14px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 640px) { .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-nav h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px; }
.footer-nav ul { display: grid; gap: 8px; list-style: none; padding: 0; }
.footer-nav a, .footer-nav .link-button { color: var(--text); text-decoration: none; font-size: 15px; }
.footer-nav a:hover, .footer-nav .link-button:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 14px; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80;
  max-width: 560px; margin-left: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, .35);
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 17px; margin-bottom: 6px; }
.cookie-banner p { font-size: 14px; color: var(--text-muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie-actions .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; flex: 1 1 auto; }
.cookie-prefs { margin-top: 16px; display: grid; gap: 10px; }
.cookie-prefs[hidden] { display: none; }
.pref { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.pref strong { display: block; font-size: 14px; }
.pref span { font-size: 13px; color: var(--text-muted); }
.pref input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
@media (min-width: 640px) { .cookie-banner { left: auto; right: 20px; bottom: 20px; } }

/* ---------- Forms / auth pages ---------- */

.auth-main { padding: 40px 0 72px; }
@media (min-width: 900px) { .auth-main { padding: 72px 0 96px; } }
.auth-card {
  max-width: 460px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 28px 22px;
}
@media (min-width: 520px) { .auth-card { padding: 40px; } }
.auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.auth-card > .lead, .auth-card section > .lead { font-size: 16px; margin-bottom: 24px; }
.auth-foot { margin-top: 20px; text-align: center; font-size: 15px; color: var(--text-muted); }

.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.input-wrap { position: relative; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #cdd3e0; border-radius: 12px; background: var(--surface);
  font-size: 16px; /* >=16px prevents iOS zoom on focus */
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #8a93a6; }
.input:hover { border-color: #aab2c4; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .15); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); }
.input-wrap .input { padding-right: 76px; }
.toggle-visibility {
  position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--primary);
}
.toggle-visibility:hover { background: var(--primary-soft); }
.hint { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.error { display: flex; gap: 6px; font-size: 13px; color: var(--danger); margin-top: 6px; font-weight: 500; }
.error:empty { display: none; }
.error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex-shrink: 0; cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.check label { cursor: pointer; }

.form-alert {
  padding: 12px 14px; border-radius: 12px; font-size: 14px;
  background: var(--danger-soft); color: var(--danger); border: 1px solid #fecdca;
}
.form-alert[hidden] { display: none; }
.form-alert.is-info { background: var(--primary-soft); color: #3730a3; border-color: #d4d7fb; }

.confirm-view { text-align: center; }
.confirm-icon {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
}
.confirm-icon .icon { width: 30px; height: 30px; }
.confirm-view h1:focus { outline: none; }
.confirm-email {
  display: inline-block; margin: 8px 0 20px; padding: 8px 14px; max-width: 100%;
  background: var(--surface-2); border-radius: 10px; font-weight: 600; word-break: break-all;
}
.confirm-view p { color: var(--text-muted); }
.confirm-actions { margin-top: 24px; display: grid; gap: 12px; }
.status-note { font-size: 14px; color: var(--success); font-weight: 500; min-height: 1.6em; }

/* ---------- Legal pages ---------- */

.legal { padding: 48px 0 80px; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 10px; }
.legal .meta { color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal h3 { font-size: 17px; margin: 20px 0 8px; }
.legal p, .legal li { color: #334155; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.legal .toc h2 { font-size: 15px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 1; }
@media (min-width: 640px) { .legal .toc ol { columns: 2; column-gap: 32px; } }

/* ---------- 404 ---------- */

.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { font-size: clamp(32px, 6vw, 48px); margin-bottom: 12px; }
.notfound p { color: var(--text-muted); margin-bottom: 28px; }

/* Compact cookie banner on phones: it shows on every load, so keep the hero visible. */
@media (max-width: 639px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .cookie-banner h2 { font-size: 15px; margin-bottom: 4px; }
  .cookie-banner p { font-size: 13px; line-height: 1.45; }
  .cookie-actions { flex-wrap: nowrap; gap: 6px; margin-top: 12px; }
  .cookie-actions .btn { flex: 1 1 0; min-height: 38px; padding: 6px 8px; font-size: 13px; }
}
