/* ==========================================================================
   Easy Form — marketing site
   Palette: warm paper canvas, navy ink, electric indigo accent, success green.
   Type:    Bricolage Grotesque (display) / Hanken Grotesk (body) / JetBrains Mono.
   ========================================================================== */

:root {
  --paper: #f5f4f2;
  --paper-2: #efede8;
  --card: #ffffff;
  --ink: #16172a;
  --ink-2: #3c3d52;
  --muted: #5f6076;
  --line: #e2ded4;
  --line-2: #d6d2c6;
  --accent: #5b3df5;
  --accent-ink: #3b1fd6;
  --accent-soft: #ece8ff;
  --success: #16a571;
  --success-soft: #e2f6ee;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(22, 23, 42, 0.05), 0 2px 8px rgba(22, 23, 42, 0.04);
  --shadow-md: 0 14px 40px -18px rgba(22, 23, 42, 0.28);
  --shadow-lg: 0 40px 80px -32px rgba(38, 27, 110, 0.4);

  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(22, 23, 42, 0.055) 1px, transparent 0);
  background-size: 26px 26px;
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 0.6rem; top: -3rem; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0.6rem; }

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

/* ---------- shared type ---------- */
.field-label {
  display: inline-flex; align-items: center; gap: 0.5ch;
  font-family: var(--font-mono);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1.2rem;
}
.field-label::before { content: "▸"; color: var(--accent); font-size: 0.7em; }
.field-label--invert { color: #cfc6ff; border-color: #7a63ff; }
.field-label--invert::before { color: #9d8bff; }

/* ---------- coming-soon badge (pre-launch) ---------- */
.badge-soon {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 1.05rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft);
  border: 1px solid #d6ccff;
}
.badge-soon--block { display: flex; justify-content: center; width: 100%; padding-block: 0.85rem; }
.badge-soon__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: soonPulse 2.2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .badge-soon__dot { animation: none; } }
@keyframes soonPulse {
  0%   { box-shadow: 0 0 0 0 rgba(91, 61, 245, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(91, 61, 245, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 61, 245, 0); }
}
.terminal__cmt { color: #8b88b5; }
.site-footer__soon { display: block; color: var(--muted); font-size: 0.9rem; padding-block: 0.32rem; }

.section { padding-block: clamp(4rem, 9vw, 7rem); }

.section__head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section__title em { font-style: normal; color: var(--accent); }
.section__sub {
  margin-top: 1rem; color: var(--muted);
  font-size: 1.075rem; max-width: 40rem;
}
.section__sub--invert { color: #b9bad6; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5ch;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 0.92rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

.btn--solid { --btn-bg: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(91, 61, 245, 0.6); }
.btn--solid:hover { --btn-bg: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(91, 61, 245, 0.7); }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: var(--card); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { color: var(--accent-ink); background: var(--accent-soft); }
.btn.is-copied { --btn-bg: var(--success); box-shadow: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { position: relative; display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; }
.brand__mark { display: inline-flex; filter: drop-shadow(0 4px 8px rgba(91, 61, 245, 0.25)); }
.brand__name { font-size: 1.15rem; letter-spacing: -0.01em; }

/* On desktop the collapse wrapper dissolves so nav + actions lay out directly. */
.site-header__collapse { display: contents; }

.site-nav { display: flex; gap: 1.6rem; margin-inline: auto; }
.site-nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
  position: relative; padding-block: 0.4rem;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width 0.2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }
.site-nav__docs { color: var(--accent-ink); font-weight: 600; }
.site-nav__docs::after { width: 100%; height: 1.5px; opacity: 0.35; }
.site-nav__docs:hover::after { opacity: 1; }

.site-header__actions { display: flex; gap: 0.6rem; align-items: center; }

/* ---------- hamburger toggle (mobile only) ---------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--line-2); border-radius: 11px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.nav-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }
.nav-toggle__box { position: relative; width: 20px; height: 14px; }
.nav-toggle__bar {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}
.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 6px; }
.nav-toggle__bar:nth-child(3) { top: 12px; }
.site-header.is-open .nav-toggle__bar:nth-child(1) { top: 6px; transform: rotate(45deg); }
.site-header.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle__bar:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(91, 61, 245, 0.16), transparent 62%);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  position: relative;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.02; letter-spacing: -0.035em;
}
.hero__lead { margin-top: 1.5rem; font-size: 1.18rem; color: var(--ink-2); max-width: 34rem; }

.code-chip {
  margin-top: 1.8rem;
  background: var(--ink); color: #f4f3ff;
  border-radius: var(--radius);
  padding: 1rem 1.15rem 0.85rem;
  box-shadow: var(--shadow-md);
  max-width: 30rem;
}
.code-chip pre { font-family: var(--font-mono); font-size: 1rem; overflow-x: auto; }
.code-chip figcaption { margin-top: 0.7rem; font-size: 0.8rem; color: #a7a4cf; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__meta { margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }

/* hero demo card */
.hero__demo { justify-self: center; width: 100%; max-width: 26rem; }
.demo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-card__bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.85rem 1.1rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.demo-card__url {
  margin-left: 0.5rem; font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--muted);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.demo-card__bar .dot:nth-child(1) { background: #f0a4a0; }
.demo-card__bar .dot:nth-child(2) { background: #f3d09a; }
.demo-card__bar .dot:nth-child(3) { background: #a8dcb2; }

.ef-form { padding: 1.5rem 1.5rem 1.75rem; }
.ef-form__intro { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.15rem; }
.ef-field { margin-bottom: 1rem; }
.ef-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.ef-field .req { color: var(--accent); }
.ef-field input, .ef-field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 0.62rem 0.75rem;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: 9px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ef-field textarea { resize: vertical; min-height: 3.2rem; }
.ef-field input:focus, .ef-field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ef-field.is-invalid input, .ef-field.is-invalid textarea { border-color: #d6483f; }
.ef-error { display: block; min-height: 0; color: #c43f37; font-size: 0.78rem; margin-top: 0.3rem; }

.ef-submit {
  width: 100%; margin-top: 0.4rem;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 0.98rem;
  padding: 0.78rem; border: none; border-radius: 10px;
  box-shadow: 0 8px 18px -8px rgba(91, 61, 245, 0.6);
  transition: background 0.18s ease, transform 0.15s ease;
}
.ef-submit:hover { background: var(--accent-ink); transform: translateY(-1px); }
.ef-submit.is-loading { opacity: 0.75; pointer-events: none; }

/* success state */
.ef-success { padding: 2.4rem 1.75rem 2rem; text-align: center; }
.ef-success__check {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  display: grid; place-items: center;
  color: var(--success); background: var(--success-soft);
  border-radius: 50%;
}
.ef-success__title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.ef-success__note { margin: 0.5rem auto 1.25rem; max-width: 22rem; color: var(--muted); font-size: 0.9rem; }
.ef-success__note code { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-ink); background: var(--accent-soft); padding: 0.1em 0.4em; border-radius: 5px; }

.hero__demo-caption { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- features ---------- */
.feature-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.feature__tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 0.28rem 0.6rem; border-radius: 6px; margin-bottom: 0.95rem;
}
.feature__title { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: -0.01em; }
.feature__body { margin-top: 0.55rem; color: var(--muted); font-size: 0.96rem; }
.feature code, .feature__body code {
  font-family: var(--font-mono); font-size: 0.84em;
  background: var(--paper-2); padding: 0.08em 0.36em; border-radius: 5px; color: var(--ink-2);
}

/* ---------- built for volume ---------- */
.section--volume {
  background:
    radial-gradient(circle at 80% 0%, rgba(120, 95, 255, 0.22), transparent 45%),
    linear-gradient(160deg, #1c1840, #16172a 70%);
  color: #eceaf6;
  background-color: #16172a;
}
.section--volume .section__title { color: #fff; }
.volume__grid { display: grid; grid-template-columns: 1fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.volume__copy { position: sticky; top: 90px; }
.volume__points { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.vpoint {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  transition: background 0.2s ease, transform 0.18s ease;
}
.vpoint:hover { background: rgba(255, 255, 255, 0.06); transform: translateX(4px); }
.vpoint h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: #fff; }
.vpoint p { margin-top: 0.4rem; color: #b9bad6; font-size: 0.95rem; }

/* ---------- usage ---------- */
.usage {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.usage__tabs { display: flex; gap: 0.25rem; padding: 0.5rem; background: var(--paper-2); border-bottom: 1px solid var(--line); overflow-x: auto; }
.usage__tab {
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  padding: 0.6rem 1rem; border-radius: 9px; border: none; background: transparent;
  white-space: nowrap; transition: background 0.16s ease, color 0.16s ease;
}
.usage__tab:hover { color: var(--ink); }
.usage__tab.is-active { background: var(--card); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.usage__panel { display: none; }
.usage__panel.is-active { display: block; }

.code-block {
  font-family: var(--font-mono); font-size: 0.92rem; line-height: 1.7;
  padding: 1.6rem 1.75rem; overflow-x: auto;
  background: var(--ink); color: #e7e5ff;
}
.code-block .cm { color: #8480b8; font-style: italic; }
.tw-d { color: #ff8fc8; }      /* twig delimiters */
.tw-f { color: #7ee0c0; }      /* function names */
.tw-s { color: #ffd479; }      /* strings */
.tw-k { color: #9db4ff; }      /* keywords */
.js-o { color: #7ee0c0; }
.js-f { color: #9db4ff; }
.js-k { color: #ff8fc8; }

/* ---------- install ---------- */
.section--install { background: var(--paper-2); border-block: 1px solid var(--line); }
.install__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.reqs { margin-top: 1.8rem; display: flex; gap: 2.5rem; }
.reqs dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.reqs dd { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-top: 0.25rem; }

.terminal { background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.terminal__bar { display: flex; gap: 0.45rem; padding: 0.8rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.terminal__bar .dot:nth-child(1) { background: #f0a4a0; }
.terminal__bar .dot:nth-child(2) { background: #f3d09a; }
.terminal__bar .dot:nth-child(3) { background: #a8dcb2; }
.terminal__body { font-family: var(--font-mono); font-size: 0.92rem; line-height: 1.9; color: #e7e5ff; padding: 1.25rem 1.4rem; overflow-x: auto; }
.terminal__body .prompt { color: #7ee0c0; user-select: none; margin-right: 0.6ch; }
.install__terminal .btn { margin-top: 1rem; }

/* ---------- final cta ---------- */
.cta { padding-block: clamp(4rem, 9vw, 6.5rem); }
.cta__inner {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(120, 95, 255, 0.3), transparent 55%),
    linear-gradient(160deg, #2a2070, #1a1640);
  background-color: #1a1640;
  border-radius: var(--radius-lg);
  padding: clamp(2.75rem, 6vw, 4.5rem) var(--gutter);
  box-shadow: var(--shadow-lg);
}
.cta__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; color: #fff; max-width: 22ch; margin-inline: auto; }
.cta__sub { margin-top: 1rem; color: #c4c2e4; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2rem; }
.cta .btn--outline { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.cta .btn--outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer__tag { margin-top: 0.9rem; color: var(--muted); font-size: 0.92rem; max-width: 24rem; }
.site-footer__col h3 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.site-footer__col a { display: block; color: var(--ink-2); font-size: 0.95rem; padding-block: 0.32rem; transition: color 0.15s ease; }
.site-footer__col a:hover { color: var(--accent-ink); }
.site-footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.85rem; color: var(--muted);
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.75rem; transform: translateX(-50%) translateY(1rem);
  background: var(--ink); color: #fff; font-size: 0.9rem; font-weight: 500;
  padding: 0.7rem 1.15rem; border-radius: 10px; box-shadow: var(--shadow-md);
  opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 300;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__demo { order: -1; max-width: 24rem; }
  .volume__grid, .install__grid { grid-template-columns: 1fr; }
  .volume__copy { position: static; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  /* show hamburger, turn the collapse wrapper into a dropdown panel */
  .nav-toggle { display: inline-flex; }
  .site-header__collapse {
    display: flex; flex-direction: column; align-items: stretch; gap: 1rem;
    position: absolute; top: calc(100% + 0.6rem); left: var(--gutter); right: var(--gutter);
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 1.1rem 1.1rem 1.25rem; box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .site-header.is-open .site-header__collapse {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  }
  .site-nav { flex-direction: column; gap: 0; margin: 0; }
  .site-nav a { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav__docs { color: var(--accent-ink); }
  .site-header__actions { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .site-header__actions .btn { width: 100%; }
  .site-header__actions .btn--ghost { border-color: var(--line-2); }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .reqs { gap: 1.75rem; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero__cta .btn, .cta__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.05ms !important; }
}

/* ============================================================
   Repositioning additions: multilingual, compare, pricing, demo
   ============================================================ */

/* --- Multilingual spotlight --- */
.ml__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ml__points {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.ml__points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.ml__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.ml__points strong { color: var(--ink); }

.ml-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.4rem;
}
.ml-card__ctx {
  display: block;
  font: 600 0.7rem/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.ml-field__label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.ml-field__input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
}
.ml-field__primary {
  font: 600 0.68rem/1 var(--font-mono);
  padding: 0.28rem 0.5rem;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  flex: none;
}
.ml-trans { margin-top: 0.9rem; }
.ml-trans__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.ml-caret {
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: rotate(90deg);
  color: var(--muted);
  flex: none;
}
.ml-globe {
  width: 15px;
  height: 15px;
  flex: none;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8ba6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3c2.6 2.8 2.6 15.2 0 18'/%3E%3Cpath d='M12 3c-2.6 2.8-2.6 15.2 0 18'/%3E%3C/svg%3E");
}
.ml-count {
  font: 600 0.7rem/1 var(--font-mono);
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
}
.ml-trans__rail {
  margin: 0.75rem 0 0 6px;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 0.7rem;
}
.ml-row { display: flex; align-items: flex-start; gap: 0.6rem; position: relative; }
.ml-row::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 13px;
  width: 0.7rem;
  height: 2px;
  background: var(--line);
}
.ml-badge {
  font: 600 0.7rem/1 var(--font-mono);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  flex: none;
}
.ml-row__body { display: flex; flex-direction: column; gap: 0.15rem; }
.ml-row__site { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.ml-row__val { color: var(--ink); font-size: 0.9rem; }

/* --- Custom fields / payload --- */
.payload__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.payload__policies { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.policy {
  font-size: 0.82rem;
  color: var(--ink-2);
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.policy strong { color: var(--ink); font-family: var(--font-mono); font-size: 0.78rem; margin-right: 0.35rem; }
.policy em { color: var(--muted); font-style: normal; }
.policy--on { border-color: var(--accent); background: var(--accent-soft); }
.policy--on strong { color: var(--accent-ink); }

/* --- Compare table --- */
.compare { margin-top: 2.5rem; overflow-x: auto; }
.compare__table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare__table th,
.compare__table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare__table thead th {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--line-2);
}
.compare__table thead th:last-child { color: var(--muted); font-weight: 600; }
.compare__table tbody th { font-weight: 600; color: var(--ink-2); width: 34%; }
.compare__table td.compare__self,
.compare__table th.compare__self { background: var(--accent-soft); }
.compare__table thead th.compare__self { color: var(--accent-ink); }
.compare__self { font-weight: 500; color: var(--ink); }
.ck { display: inline-flex; align-items: center; gap: 0.45rem; }
.ck::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ck.yes::before { background: var(--success); }
.ck.mid::before { background: #d9a441; }
.compare__note { margin: 1.5rem 0 0; color: var(--ink-2); max-width: 62ch; line-height: 1.6; }

/* --- Pricing (dark) --- */
.section--pricing {
  background: linear-gradient(160deg, #1d1b3a, #16172a 72%);
  color: #eceaf6;
}
.section--pricing .section__title { color: #fff; }
.price-card {
  max-width: 460px;
  margin: 2.5rem auto 0;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.price-card__head { display: flex; align-items: baseline; justify-content: center; gap: 0.45rem; }
.price-card__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 4rem);
  line-height: 1;
  color: #fff;
}
.price-card__currency { font-size: 0.5em; vertical-align: super; color: #c4c2e4; }
.price-card__period { color: #b9bad6; font-weight: 600; }
.price-card__renewal { margin: 0.6rem 0 0; color: #eceaf6; font-size: 0.95rem; font-weight: 600; }
.price-card__renewal strong { color: #fff; }
.price-card__note { margin: 0.6rem 0 1.5rem; color: #b9bad6; font-size: 0.9rem; line-height: 1.55; }
.price-card__list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.7rem; text-align: left; }
.price-card__list li { position: relative; padding-left: 1.7rem; color: #eceaf6; line-height: 1.4; }
.price-card__list li::before { content: "\2713"; position: absolute; left: 0; color: #8f7bff; font-weight: 700; }
.price-card__fine { margin: 1.1rem 0 0; font-size: 0.8rem; color: #8a8ba6; }

/* --- Demo video placeholder --- */
.video-frame {
  margin-top: 2.5rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--line-2);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--muted);
}
.video-frame__play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}
.video-frame__soon { font-weight: 600; letter-spacing: 0.02em; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .ml__grid { grid-template-columns: 1fr; }
  .ml__visual { order: -1; }
  .payload__grid { grid-template-columns: 1fr; }
}
