/* =====================================================================
   Exportelier — Marketing Site
   Enterprise-clean · light cool surfaces · brand blue→teal accents
   Fonts: Sora (display) · Geist (body) · Geist Mono (labels)
   ===================================================================== */

:root {
  /* surfaces */
  --bg:      #f6f8fb;
  --bg-2:    #ffffff;
  --bg-deep: #0c142e;
  --ink:     #101b3e;
  --ink-2:   #41507a;
  --ink-3:   #6b7699;
  --line:    rgba(16, 27, 62, 0.09);
  --line-2:  rgba(16, 27, 62, 0.16);

  /* accent (overridden by [data-accent]) */
  --acc:      #2563eb;
  --acc-2:    #11b5a5;
  --acc-ink:  #1d4ed8;
  --acc-soft: rgba(37, 99, 235, 0.08);
  --acc-soft-2: rgba(17, 181, 165, 0.10);
  --grad: linear-gradient(120deg, var(--acc) 0%, var(--acc-2) 100%);

  --sh-1: 0 1px 2px rgba(16,27,62,0.05), 0 1px 1px rgba(16,27,62,0.03);
  --sh-2: 0 10px 30px -12px rgba(16,27,62,0.16), 0 2px 8px -2px rgba(16,27,62,0.06);
  --sh-3: 0 30px 70px -24px rgba(16,27,62,0.28), 0 8px 20px -8px rgba(16,27,62,0.10);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
  --gutter: 28px;
  --nav-h: 70px;
}

/* responsive tiers — see the per-component overrides further down */
@media (max-width: 900px) { :root { --nav-h: 62px; } }
@media (max-width: 560px) { :root { --gutter: 20px; } }
@media (max-width: 380px) { :root { --gutter: 16px; } }

[data-accent="indigo"] {
  --acc: #4f46e5; --acc-2: #8b5cf6; --acc-ink: #4338ca;
  --acc-soft: rgba(79,70,229,0.08); --acc-soft-2: rgba(139,92,246,0.10);
}
[data-accent="graphite"] {
  --acc: #33415e; --acc-2: #5d6e92; --acc-ink: #2c3a55;
  --acc-soft: rgba(51,65,94,0.08); --acc-soft-2: rgba(93,110,146,0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* the fixed nav would otherwise cover anchor targets once section padding shrinks */
section[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

/* ------------------------------------------------ type */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
/* only the lower bound moved — the vw slope and cap keep the desktop sizes identical */
h1 { font-size: clamp(32px, 5vw, 60px); line-height: 1.06; font-weight: 700; }
h2 { font-size: clamp(25px, 3.4vw, 42px); line-height: 1.12; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
p  { margin: 0; text-wrap: pretty; }

/* German compounds ("Beschaffungsfragebogen") are wider than a 320px viewport and
   force the .section-head grid track open. `anywhere` is required rather than
   `break-word`: only it also shrinks the min-content contribution that sizes the
   track. `hyphens` breaks at a syllable where the browser can — html[lang] is kept
   current by i18n.js. Mobile only, so desktop line breaks stay untouched. */
@media (max-width: 700px) {
  h1, h2, h3, .lede,
  .trust-item b, .trust-item span { overflow-wrap: anywhere; hyphens: auto; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }

.lede { font-size: 18.5px; color: var(--ink-2); max-width: 56ch; }
@media (max-width: 560px) { .lede { font-size: 16.5px; } }

.section { padding: 104px 0; }
.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: 56px; }
@media (max-width: 900px) { .section { padding: 76px 0; } .section-head { margin-bottom: 42px; } }
@media (max-width: 560px) { .section { padding: 60px 0; } .section-head { margin-bottom: 34px; } }

/* ------------------------------------------------ reveals */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
[data-anim="off"] [data-reveal] { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--sh-2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px var(--acc); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px var(--acc); }
.btn-ghost { background: var(--bg-2); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
[data-anim="off"] .btn, [data-anim="off"] .btn:hover { transform: none; transition: none; }
/* long translations must wrap instead of overflowing a phone-width viewport */
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; } }

/* ------------------------------------------------ nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(255,255,255,0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); box-shadow: 0 4px 24px -16px rgba(16,27,62,0.25); }
.nav-inner { display: flex; align-items: center; gap: 34px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 32px; height: 36px; object-fit: contain; }
.brand b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav-links a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.nav-links a:hover { color: var(--ink); border-color: var(--acc); }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* The full bar's width is language-dependent: measured over all nine UI languages
   it needs up to 1010px (Spanish). Hence the hamburger takes over at 1020px, not
   at 900px — below that the bar used to overflow and the CTA was silently clipped
   by body{overflow-x:hidden}. These gaps buy the headroom just above that line. */
@media (max-width: 1180px) {
  .nav-inner { gap: 20px; }
  .nav-links { gap: 16px; }
}

/* hamburger — hidden on desktop, the only way into the menu below 1020px.
   Keep this threshold in sync with navMq in website.js. */
.nav-toggle {
  display: none; flex: none; width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: none; border: 1px solid transparent; border-radius: var(--r-md);
  color: var(--ink); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.nav-toggle:hover { border-color: var(--line-2); }
.nav-toggle:focus-visible { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.nav-toggle .bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle .bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .22s ease, opacity .16s ease; }
.nav.menu-open .nav-toggle .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.menu-open .nav-toggle .bars i:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* CTA repeated at the foot of the drawer (same i18n key as the bar CTA) */
.nav-drawer-cta { display: none; }

@media (max-width: 1020px) {
  .nav-inner { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  /* A non-none backdrop-filter turns .nav into the containing block for its
     position:fixed children, which would size the sheet against the 62px bar.
     Solid backgrounds instead of blur below 900px. */
  .nav.scrolled, .nav.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.scrolled { background: rgba(255,255,255,0.96); }
  .nav.menu-open { background: var(--bg-2); border-color: var(--line); }

  /* full-screen sheet below the bar */
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2);
    padding: 14px var(--gutter) 32px;
    overflow-y: auto; overscroll-behavior: contain;
    font-size: 17px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 15px 2px; border-bottom: 1px solid var(--line); border-left: none; color: var(--ink); }
  .nav-links a:hover { border-color: var(--line); color: var(--acc-ink); }
  /* .nav-links a outranks .btn-accent, so restate the button's own colours here */
  .nav-links .nav-drawer-cta,
  .nav-links .nav-drawer-cta:hover { justify-content: center; margin-top: 22px; border-bottom: none; padding: 13px 22px; font-size: 15px; color: #fff; }
  body.menu-open { overflow: hidden; }
}
[data-anim="off"] .nav-links, [data-anim="off"] .nav-toggle .bars i { transition: none; }

/* below 560px brand + language + hamburger already fill the bar — the CTA moves into the drawer */
@media (max-width: 560px) {
  .nav-inner > .btn { display: none; }
  .nav-links .nav-drawer-cta { display: inline-flex; }
  .brand b { font-size: 17px; }
  .brand img { width: 28px; height: 32px; }
}

/* language selector */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 8px 11px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.lang-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.lang-btn .globe { width: 16px; height: 16px; color: var(--acc-ink); }
.lang-btn .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.lang.open .lang-btn { border-color: var(--acc); color: var(--ink); }
.lang.open .lang-btn .chev { transform: rotate(180deg); }
.lang-cur { font-family: var(--mono); letter-spacing: .02em; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
  min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.lang-menu li:hover { background: var(--acc-soft); color: var(--ink); }
.lang-menu li[aria-selected="true"] { color: var(--acc-ink); font-weight: 600; }
.lang-menu li .lc {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .03em;
  color: var(--acc-ink); background: var(--acc-soft);
  width: 28px; text-align: center; padding: 3px 0; border-radius: 5px; flex: none;
}
.lang-menu li[aria-selected="true"] .lc { background: var(--grad); color: #fff; }
[data-anim="off"] .lang-menu { transition: none; }
@media (max-width: 900px) { .lang-menu li { padding: 11px 10px; } }
@media (max-width: 560px) { .lang-btn .lang-cur { display: none; } .lang-btn { padding: 11px; } }

/* CJK font stack when a CJK language is active */
html[lang="ja"] body { font-family: "Noto Sans JP", var(--sans); }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { font-family: "Noto Sans JP", var(--display); }

/* ------------------------------------------------ hero */
.hero { padding: 168px 0 96px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 38% at 78% 18%, var(--acc-soft), transparent 70%),
    radial-gradient(40% 34% at 12% 70%, var(--acc-soft-2), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 64px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 900px) { .hero { padding: 118px 0 64px; } }
@media (max-width: 560px) { .hero { padding: 96px 0 48px; } }

.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 19px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 560px) {
  .hero .lede { font-size: 17px; }
  .hero-copy { gap: 20px; justify-items: stretch; }
  .hero-ctas, .final-ctas { width: 100%; gap: 12px; }
  .hero-ctas .btn, .final-ctas .btn { flex: 1 1 100%; justify-content: center; }
}
.hero-note { font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc-2); }

.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2);
}
.chip svg { width: 13px; height: 13px; }

/* ------------------------------------------------ hero stage (export moment) */
.stage {
  position: relative; height: 480px;
  display: flex; align-items: center; justify-content: center;
}
.stage * { font-family: var(--sans); }

.issue {
  position: absolute; left: 0; width: 248px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-2);
  padding: 14px 16px; display: grid; gap: 9px;
  transition: transform 1s cubic-bezier(.45,0,.18,1), opacity .9s ease;
  z-index: 3;
}
.issue-top { display: flex; align-items: center; gap: 8px; }
.issue-key { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.issue-type { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.issue-title { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.issue-meta { display: flex; align-items: center; gap: 8px; }
.issue-status { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 5px; }
.st-prog { background: rgba(37,99,235,.12); color: var(--acc-ink); }
.st-done { background: rgba(17,181,165,.14); color: #0a7d72; }
.st-todo { background: rgba(16,27,62,.07); color: var(--ink-2); }
.issue-avatar { width: 20px; height: 20px; border-radius: 50%; margin-left: auto; background: var(--grad); opacity: .85; }

.issue-1 { top: 56px; }
.issue-2 { top: 188px; left: 26px; }
.issue-3 { top: 320px; left: 6px; }

/* flight path */
.stage .flight {
  position: absolute; left: 210px; top: 50%; width: 130px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--acc) 0 7px, transparent 7px 14px);
  opacity: .45; z-index: 1;
}
.stage .flight::after {
  content: ""; position: absolute; right: -2px; top: -4px;
  border-left: 8px solid var(--acc); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}

/* document */
.doc {
  position: absolute; right: 0; top: 28px; width: 300px; height: 416px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--sh-3);
  padding: 24px 24px 18px; display: flex; flex-direction: column; gap: 0;
  z-index: 2; overflow: hidden;
}
.doc-brandbar { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.doc-brandbar img { width: 18px; height: 20px; object-fit: contain; }
.doc-brandbar span { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: -0.01em; }
.doc-brandbar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 9px; color: var(--ink-3); }
.doc-title { font-family: var(--display); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.doc-sub { font-family: var(--mono); font-size: 9px; color: var(--ink-3); margin-bottom: 16px; }

.doc-line { height: 7px; border-radius: 4px; background: rgba(16,27,62,.08); margin-bottom: 9px; transform-origin: left center; }
.doc-line.w90 { width: 90%; } .doc-line.w75 { width: 75%; } .doc-line.w60 { width: 60%; } .doc-line.w82 { width: 82%; }
.doc-table { margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.doc-row { display: grid; grid-template-columns: 56px 1fr 52px; }
.doc-row > i { display: block; height: 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-style: normal; }
.doc-row > i:last-child { border-right: none; }
.doc-row:last-child > i { border-bottom: none; }
.doc-row.head > i { background: rgba(16,27,62,.05); }
.doc-row .cell { margin: 5px 7px; height: 6px; border-radius: 3px; background: rgba(16,27,62,.1); }
.doc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 9px; color: var(--ink-3); padding-top: 10px; border-top: 1px solid var(--line); }

.doc-stamp {
  position: absolute; right: 18px; bottom: 52px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--grad); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 7px 13px; border-radius: 8px;
  box-shadow: 0 10px 24px -8px var(--acc);
  transform: scale(0.4) rotate(-8deg); opacity: 0;
  transition: transform .45s cubic-bezier(.2,1.6,.4,1), opacity .3s ease;
}
.doc-sign {
  position: absolute; left: 24px; bottom: 52px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9.5px; color: #0a7d72;
  background: rgba(17,181,165,.1); border: 1px solid rgba(17,181,165,.3);
  padding: 5px 10px; border-radius: 6px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s ease .15s, transform .4s ease .15s;
}

/* doc build-in pieces */
.doc .build { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }

/* --- timeline phases (driven by JS adding .ph1/.ph2/.ph3 to .stage) --- */
.stage.ph1 .issue-1 { transform: translate(300px, 96px) scale(.18); opacity: 0; }
.stage.ph1.ph1b .issue-2 { transform: translate(284px, -32px) scale(.18); opacity: 0; }
.stage.ph1.ph1c .issue-3 { transform: translate(300px, -160px) scale(.18); opacity: 0; }
.stage.ph2 .doc .build { opacity: 1; transform: none; }
.stage.ph3 .doc-stamp { transform: scale(1) rotate(-4deg); opacity: 1; }
.stage.ph3 .doc-sign { opacity: 1; transform: none; }

/* static end-state for reduced / off / prefers-reduced-motion */
[data-anim="off"] .stage .doc .build,
[data-anim="reduced"] .stage .doc .build { opacity: 1; transform: none; transition: none; }
[data-anim="off"] .stage .doc-stamp,
[data-anim="reduced"] .stage .doc-stamp { transform: scale(1) rotate(-4deg); opacity: 1; transition: none; }
[data-anim="off"] .stage .doc-sign,
[data-anim="reduced"] .stage .doc-sign { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .stage .doc .build { opacity: 1 !important; transform: none !important; transition: none !important; }
  .stage .doc-stamp { transform: scale(1) rotate(-4deg) !important; opacity: 1 !important; transition: none !important; }
  .stage .doc-sign { opacity: 1 !important; transform: none !important; transition: none !important; }
}
/* single-column hero: cap the stage so the absolutely positioned issue cards and the
   document keep their intended composition instead of drifting apart / overlapping */
@media (max-width: 980px) {
  /* width:100% is required — margin-inline:auto alone cancels the grid item's
     stretch, and the absolutely positioned children would collapse it to 0 */
  .stage { width: 100%; max-width: 640px; margin-inline: auto; transform: none; }
}
/* below this the 248px cards and the 300px document cannot coexist — see plan */
@media (max-width: 700px) {
  .stage { display: none; }
}

/* ------------------------------------------------ trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { display: grid; gap: 5px; padding: 30px 26px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: none; }
.trust-item b { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.trust-item span { font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 900px) {
  .trust-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .trust-item:nth-child(2n) { border-right: none; }
  .trust-item { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .trust-item { padding: 22px 16px; }
  .trust-item b { font-size: 15.5px; }
  .trust-item span { font-size: 12.5px; }
}

/* ------------------------------------------------ contexts grid */
.ctx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .ctx-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 640px) { .ctx-grid { grid-template-columns: 1fr; } }
.ctx-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; display: grid; gap: 12px; align-content: start;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ctx-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
[data-anim="off"] .ctx-card:hover { transform: none; box-shadow: none; }
@media (max-width: 560px) { .ctx-card { padding: 22px 20px; } }
.ctx-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--acc-soft); color: var(--acc-ink);
  display: grid; place-items: center;
}
.ctx-icon svg { width: 20px; height: 20px; }
.ctx-card p { font-size: 14.5px; color: var(--ink-2); }
.ctx-tag { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* ------------------------------------------------ designer feature */
.feature-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.feature-split.flip { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 980px) { .feature-split, .feature-split.flip { grid-template-columns: 1fr; gap: 40px; } }
.feature-copy { display: grid; gap: 18px; align-content: start; }
.feature-list { display: grid; gap: 13px; margin-top: 6px; padding: 0; list-style: none; }
.feature-list li { position: relative; display: block; padding-left: 21px; font-size: 15px; color: var(--ink-2); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }
.feature-list li b { color: var(--ink); font-weight: 600; }

/* designer mock */
.mock {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); overflow: hidden;
}
.mock-titlebar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: rgba(16,27,62,.025); }
.mock-titlebar .dots { display: flex; gap: 6px; }
.mock-titlebar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(16,27,62,.14); display: block; }
.mock-titlebar span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-left: 8px; }
.mock-body { display: grid; grid-template-columns: 132px 1fr 120px; min-height: 330px; }
.mock-pal { border-right: 1px solid var(--line); padding: 14px 12px; display: grid; gap: 8px; align-content: start; }
.mock-pal .pi { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-2); padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: grab; transition: border-color .15s ease, transform .15s ease; }
.mock-pal .pi:hover { border-color: var(--acc); transform: translateX(2px); }
.mock-pal .pi i { width: 8px; height: 8px; border-radius: 2px; background: var(--acc-soft); border: 1px solid var(--acc); flex: none; }
.mock-canvas { padding: 18px; display: grid; gap: 10px; align-content: start; background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(16,27,62,.025) 23px 24px); }
.mock-block { border: 1px dashed var(--line-2); border-radius: 8px; padding: 9px 12px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); background: rgba(255,255,255,.7); }
.mock-block.sel { border: 1.5px solid var(--acc); color: var(--acc-ink); background: var(--acc-soft); }
.mock-props { border-left: 1px solid var(--line); padding: 14px 12px; display: grid; gap: 10px; align-content: start; }
.mock-props label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mock-props .pf { height: 24px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.mock-props .pf.on { background: var(--acc-soft); border-color: var(--acc); }
@media (max-width: 640px) { .mock-body { grid-template-columns: 1fr; } .mock-pal, .mock-props { display: none; } }
.tok { font-family: var(--mono); font-size: 11px; color: var(--acc-ink); background: var(--acc-soft); border: 1px solid var(--acc); border-radius: 6px; padding: 3px 8px; line-height: 1.2; }
.tok.loop { color: var(--ink-2); background: rgba(16,27,62,.04); border-color: var(--line-2); border-style: dashed; }

/* mock "paper" surfaces (branding + Word template previews) — these used to be inline
   styles, which no media query could override */
.mock-page { position: relative; display: grid; gap: 10px; padding: 30px 34px; min-height: 300px; background: #fff; }
.mock-page.tight { gap: 11px; padding: 26px 30px; min-height: 320px; }
.mock-page .doc-brandbar { max-width: 100%; }
.mock-watermark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.mock-watermark span { font-family: var(--display); font-weight: 700; font-size: 44px; color: rgba(16,27,62,.05); transform: rotate(-24deg); letter-spacing: .06em; }
.mock-chips { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.mock-tokrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mock-tokrow .hint { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
@media (max-width: 560px) {
  .mock-page, .mock-page.tight { padding: 20px 16px; min-height: 220px; }
  .mock-watermark span { font-size: 30px; }
}

/* ------------------------------------------------ ai markdown section */
.ai-band { background: var(--bg-deep); color: #eef2fb; border-radius: var(--r-xl); padding: 72px 64px; position: relative; overflow: hidden; }
.ai-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 85% 10%, rgba(37,99,235,.25), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(17,181,165,.18), transparent 70%); pointer-events: none; }
@media (max-width: 760px) { .ai-band { padding: 48px 28px; } }
@media (max-width: 560px) { .ai-band { padding: 34px 20px; border-radius: var(--r-lg); } }
.ai-band .eyebrow { color: #8fd8cf; }
.ai-band h2 { color: #fff; }
.ai-band .lede { color: #aab6d8; }
.ai-grid { position: relative; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .ai-grid { grid-template-columns: 1fr; gap: 32px; } }

.ai-demo { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); overflow: hidden; }
.ai-tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ai-tab { font-family: var(--mono); font-size: 12px; padding: 7px 14px; border-radius: 8px; color: #aab6d8; cursor: pointer; border: 1px solid transparent; transition: all .18s ease; background: none; }
.ai-tab.on { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }
.ai-code { font-family: var(--mono); font-size: 12px; line-height: 1.75; padding: 20px 22px; min-height: 248px; color: #c4cfec; white-space: pre; overflow-x: auto; }
.ai-code .c1 { color: #6e7da6; } .ai-code .c2 { color: #7fd6cb; } .ai-code .c3 { color: #8fb3ff; }
.ai-meter { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid rgba(255,255,255,.08); font-family: var(--mono); font-size: 12px; color: #aab6d8; }
.ai-meter .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.ai-meter .bar i { display: block; height: 100%; width: 100%; background: var(--grad); border-radius: 3px; transition: width .8s cubic-bezier(.2,.6,.2,1); }
.ai-meter b { color: #fff; font-weight: 600; min-width: 110px; text-align: right; }
.ai-save { color: #7fd6cb; }
@media (max-width: 560px) {
  .ai-tabs { flex-wrap: wrap; padding: 10px; }
  .ai-tab { font-size: 11.5px; padding: 7px 11px; }
  .ai-code { font-size: 11px; padding: 16px; min-height: 200px; }
  /* the fixed 110px token counter would otherwise blow the row apart */
  .ai-meter { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .ai-meter b { min-width: 0; }
  .ai-meter .bar { flex: 1 0 100%; order: 3; }
}

/* ------------------------------------------------ security */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .sec-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 640px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 10px; align-content: start; }
.sec-card h3 { display: flex; align-items: center; gap: 10px; font-size: 16.5px; }
.sec-card h3 svg { width: 18px; height: 18px; color: var(--acc-ink); flex: none; }
.sec-card p { font-size: 14.5px; color: var(--ink-2); }
.sec-hero {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: linear-gradient(120deg, var(--acc-soft), var(--acc-soft-2)); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 34px;
}
@media (max-width: 760px) { .sec-hero { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sec-card { padding: 22px 20px; } .sec-hero { padding: 22px 20px; gap: 18px; } }
.roa-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 999px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  padding: 12px 20px; white-space: nowrap;
}
.roa-badge .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--acc-2); position: relative; }
.roa-badge .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--acc-2); opacity: 0; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }
[data-anim="off"] .roa-badge .pulse::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .roa-badge .pulse::after { animation: none; } }
.sec-hero p { color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }
.sec-hero b { color: var(--ink); }

/* ------------------------------------------------ migration band */
.mig-band {
  background: var(--bg-deep); color: #eef2fb; border-radius: var(--r-xl);
  padding: 64px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  position: relative; overflow: hidden;
}
.mig-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 60% at 92% 80%, rgba(17,181,165,.16), transparent 70%); pointer-events: none; }
@media (max-width: 900px) { .mig-band { grid-template-columns: 1fr; padding: 44px 28px; gap: 36px; } }
@media (max-width: 560px) {
  .mig-band { padding: 34px 20px; gap: 28px; border-radius: var(--r-lg); }
  .mig-clock { padding: 24px; }
  .mig-clock .big { font-size: 36px; }
}
.mig-band .eyebrow { color: #8fd8cf; }
.mig-band h2 { color: #fff; }
.mig-band p { color: #aab6d8; font-size: 16px; }
.mig-band b { color: #fff; }
.mig-clock { position: relative; display: grid; gap: 14px; justify-items: center; text-align: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 34px; }
.mig-clock .big { font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.mig-clock span { font-family: var(--mono); font-size: 12px; color: #aab6d8; }

/* ------------------------------------------------ roadmap */
.road { display: grid; gap: 0; border-left: 2px solid var(--line-2); margin-left: 8px; }
.road-item { position: relative; padding: 0 0 36px 34px; }
.road-item:last-child { padding-bottom: 0; }
.road-item::before {
  content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--ink-3);
}
.road-item.now::before { border-color: var(--acc); background: var(--acc); box-shadow: 0 0 0 5px var(--acc-soft); }
.road-when { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.road-item.now .road-when { color: var(--acc-ink); font-weight: 600; }
.road-item h3 { margin-bottom: 6px; }
.road-item p { font-size: 15px; color: var(--ink-2); max-width: 62ch; }
.road-pill { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; margin-left: 10px; vertical-align: 2px; }
@media (max-width: 560px) { .road-item { padding: 0 0 28px 24px; } }

/* ------------------------------------------------ pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 940px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.price-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; display: flex; flex-direction: column; gap: 0; position: relative; }
.price-card.hot { border: 2px solid var(--acc); box-shadow: var(--sh-3); }
/* width:max-content keeps it on one line — shrink-to-fit would otherwise cap an
   absolutely positioned, left:50% box at half the card and wrap it */
.price-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 5px 14px; border-radius: 999px; width: max-content; max-width: calc(100% - 28px); text-align: center; }
.price-name { font-family: var(--display); font-size: 18px; font-weight: 600; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.price-amount b { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.price-amount span { font-size: 13.5px; color: var(--ink-3); }
.price-sub { font-size: 13px; color: var(--ink-3); min-height: 20px; }
.price-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; }
.price-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: baseline; }
.price-list li::before { content: "✓"; color: var(--acc-ink); font-weight: 700; flex: none; }
.price-list li.no { color: var(--ink-3); }
.price-list li.no::before { content: "—"; color: var(--ink-4, #b6bdd0); }
.price-card .btn { margin-top: auto; justify-content: center; }
.price-note { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 22px; }
@media (max-width: 560px) {
  .price-card { padding: 26px 20px; }
  /* the flag wraps to two lines in fr/pt at this width — keep it off the plan name */
  .price-card.hot { padding-top: 38px; }
  .price-flag { font-size: 10px; letter-spacing: .04em; }
  .price-amount b { font-size: 34px; }
}

/* ------------------------------------------------ faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item.open { border-color: var(--line-2); box-shadow: var(--sh-1); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: none; border: none; cursor: pointer; padding: 19px 22px; font-family: var(--sans); font-size: 15.5px; font-weight: 600; color: var(--ink); }
.faq-q .plus { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); font-weight: 600; font-size: 15px; transition: transform .25s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.2,.6,.2,1); }
.faq-a p { padding: 0 22px 20px; font-size: 14.5px; color: var(--ink-2); max-width: 66ch; }
[data-anim="off"] .faq-a { transition: none; }
@media (max-width: 560px) {
  .faq-q { padding: 16px; font-size: 15px; gap: 12px; }
  .faq-a p { padding: 0 16px 18px; }
}

/* ------------------------------------------------ final cta */
.final { text-align: center; display: grid; gap: 22px; justify-items: center; padding: 110px 0 120px; }
.final h2 { font-size: clamp(28px, 4vw, 50px); max-width: 18ch; }
.final .lede { margin: 0 auto; }
.final-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 900px) { .final { padding: 84px 0 92px; } }
@media (max-width: 560px) { .final { padding: 70px 0 78px; } }

/* ------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 1020px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 36px; } }
.footer .brand img { width: 26px; height: 30px; }
.footer .brand b { font-size: 16px; }
.footer-tag { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; max-width: 30ch; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; font-weight: 500; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 14px; color: var(--ink-2); justify-items: start; }
.footer-col a:hover { color: var(--acc-ink); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 560px) {
  .footer { padding: 44px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; row-gap: 28px; }
  .footer-base { flex-direction: column; gap: 8px; margin-top: 34px; }
}

/* ------------------------------------------------ anim off: kill everything */
[data-anim="off"] *, [data-anim="off"] *::before, [data-anim="off"] *::after { animation: none !important; transition: none !important; }
