/* Chrostra Studio — site styles
   Colours are sampled from the hero artwork (resources/top.png). */

:root {
  --ink: #0b1433;
  --ink-2: #39435f;
  --muted: #687290;
  --line: #e4e8f1;
  --line-strong: #d3d9e6;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef2fb;

  --blue: #1648f0;
  --blue-600: #0f3ad0;
  --blue-50: #eaf0ff;
  --navy: #0a1a52;
  --navy-900: #060f33;
  --yellow: #f8c419;
  --red: #ff4b33;
  --pink: #ff5f9e;
  --cream: #fbf3df;

  --font-sans: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 68px;

  --shadow-sm: 0 1px 2px rgb(11 20 51 / 6%), 0 1px 1px rgb(11 20 51 / 4%);
  --shadow: 0 2px 4px rgb(11 20 51 / 4%), 0 12px 32px -8px rgb(11 20 51 / 14%);
  --shadow-lg: 0 4px 8px rgb(11 20 51 / 4%), 0 40px 80px -24px rgb(11 20 51 / 28%);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

h1, h2, h3 {
  line-height: 1.25;
  word-break: auto-phrase;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* Keeps a Japanese phrase together; it still wraps inside if it is wider than the line. */
.nb { display: inline-block; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

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

.btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  height: var(--btn-h);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { --btn-h: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { --btn-h: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 25%) inset, 0 8px 20px -6px rgb(22 72 240 / 55%);
}
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 1px 0 rgb(255 255 255 / 25%) inset, 0 12px 28px -8px rgb(22 72 240 / 65%); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy); }

.btn-ghost { color: var(--ink); background: rgb(255 255 255 / 70%); border-color: var(--line-strong); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-ghost .icon { transition: transform .2s var(--ease); }
.btn-ghost:hover .icon { transform: translateX(3px); }

.btn-outline { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cream); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgb(255 255 255 / 55%);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), backdrop-filter .25s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(255 255 255 / 82%);
  border-bottom-color: rgb(11 20 51 / 8%);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { border-radius: 8px; }

.site-nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav a:hover { color: var(--ink); background: rgb(11 20 51 / 5%); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-toggle {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle-bar {
  position: absolute;
  left: 50%;
  width: 16px; height: 1.5px;
  margin-left: -8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle-bar:nth-of-type(2) { top: 15px; }
.nav-toggle-bar:nth-of-type(3) { top: 23px; }
.is-open .nav-toggle-bar:nth-of-type(2) { top: 19px; transform: rotate(45deg); }
.is-open .nav-toggle-bar:nth-of-type(3) { top: 19px; transform: rotate(-45deg); }

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

.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  min-height: clamp(640px, 56.25vw, 980px);
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
/* Keeps the copy legible where the artwork is cropped wider than the white left margin. */
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgb(255 255 255 / 92%) 32%, rgb(255 255 255 / 0%) 58%);
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  animation: hero-art-in 1.6s var(--ease) both;
}

@keyframes hero-art-in {
  from { opacity: 0; transform: scale(1.04) translateX(1.5%); }
  to { opacity: 1; transform: none; }
}

.hero-inner {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 96px;
}

.hero-copy {
  max-width: min(600px, 48%);
  animation: rise-in .9s .1s var(--ease) both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 85%);
  box-shadow: var(--shadow-sm);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.announce:hover { border-color: var(--line-strong); color: var(--ink); }
.announce .icon { width: 14px; height: 14px; color: var(--muted); }
.announce-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.hero-title {
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--ink);
}
.hero-title .line { display: inline-block; }
.hero-title .line:not(:last-child) { margin-right: .02em; }
.hero-title-accent {
  background: linear-gradient(100deg, var(--blue) 10%, #5a3df0 55%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 28px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 14px; height: 14px;
  background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231648f0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

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

.section { padding-block: clamp(80px, 11vw, 144px); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

.eyebrow {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
}
.eyebrow-blue { color: var(--blue); }
.eyebrow-red { color: var(--red); }
.eyebrow-yellow { color: var(--yellow); }

.section-title {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -.005em;
}

.section-lead {
  max-width: 40em;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.15vw, 17px);
}
.section-lead a { color: var(--blue); text-underline-offset: 3px; }

/* ---------- Overview ---------- */

.app-window {
  overflow: hidden;
  border: 1px solid rgb(11 20 51 / 10%);
  border-radius: var(--radius);
  background: #1d2130;
  box-shadow: var(--shadow-lg);
}
/* ---------- Split features ---------- */

.split-section { padding-top: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.split + .split { margin-top: clamp(80px, 10vw, 140px); }
.split-reverse .split-copy { order: 2; }

.split-media {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 3vw, 36px);
  border-radius: var(--radius-lg);
}
.split-media img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.media-tint-yellow { background: linear-gradient(135deg, #fff4cc, #ffe08a 60%, #ffd0b8); }

/* Before / after comparison: the after photo underneath, the before photo
   clipped to the left of the handle. Dragging the handle (or anywhere on the
   photo) moves the split; the range input gives it to the keyboard. */
.compare {
  --split: 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.compare img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}
.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 20 51 / 18%), 0 0 12px rgb(11 20 51 / 25%);
  pointer-events: none;
}
.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 999px;
  background: #fff no-repeat center / 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1433' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E");
  box-shadow: var(--shadow);
  transition: transform .15s var(--ease);
}
.compare.is-dragging .compare-knob,
.compare:hover .compare-knob { transform: scale(1.06); }
.compare-range:focus-visible ~ .compare-handle .compare-knob,
.compare-handle:has(~ .compare-range:focus-visible) .compare-knob {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.compare-range {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.compare-label {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(11 20 51 / 62%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  pointer-events: none;
}
.compare-label-before { left: 12px; }
.compare-label-after { right: 12px; }
@media (prefers-reduced-motion: reduce) {
  .compare-knob { transition: none; }
}
.media-tint-pink { background: linear-gradient(135deg, #ffe3ec, #ffc2d6 55%, #c9d6ff); }

.checks { margin-top: 32px; display: grid; gap: 14px; }
.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .2em;
  width: 20px; height: 20px;
  border-radius: 999px;
  background: var(--blue-50) no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231648f0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ---------- Bento ---------- */

.bento-section { background: var(--bg-soft); border-block: 1px solid var(--line); }

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.bento-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.bento-card.span-2 { grid-column: span 2; flex-direction: row; }
.bento-card.span-2 .bento-text { flex: 1 1 42%; align-self: center; }
.bento-card.span-2 > img,
.bento-card.span-2 > picture { flex: 1 1 58%; align-self: stretch; min-width: 0; width: 58%; height: auto; margin-top: 0; }
.bento-card.span-2 img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.bento-card.span-2 img.media-right { object-position: right center; }
.bento-card.span-2 img.media-top { object-position: center top; }

.bento-text { padding: 28px 28px 20px; }
.bento-text h3 { font-size: 20px; font-weight: 700; }
.bento-text p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
.bento-card > img,
.bento-card > picture { margin-top: auto; }
.bento-card:not(.span-2) img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

/* A feature that is announced but not released yet. */
.upcoming-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.5;
  vertical-align: .2em;
}
.feature-list .upcoming-tag { margin-left: 6px; padding: 2px 8px; font-size: 11px; vertical-align: .15em; }

/* ---------- Workflow ---------- */

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.workflow-grid .section-head { margin-bottom: 0; }
.workflow-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}
.feature-list li { padding-top: 24px; border-top: 1px solid var(--line); }
.feature-list h3 { margin-top: 18px; font-size: 17px; font-weight: 700; }
.feature-list p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
}
.feature-icon .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.fi-blue { background: var(--blue-50); color: var(--blue); }
.fi-yellow { background: #fff5d1; color: #b07f00; }
.fi-red { background: #ffe7e3; color: #e23419; }
.fi-pink { background: #ffe6f0; color: #e0357a; }
.fi-navy { background: #e6e9f5; color: var(--navy); }

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}
.lang-chips li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Formats ---------- */

.formats { background: var(--bg-soft); border-block: 1px solid var(--line); }

.format-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.format-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.format-card h3 { font-size: 20px; font-weight: 700; }
.format-card > p { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.format-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.format-tags li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--bg-tint);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.format-tags b { color: var(--ink); font-size: 13.5px; font-weight: 700; letter-spacing: .02em; }

/* ---------- Download ---------- */

.download {
  background:
    radial-gradient(50% 60% at 15% 0%, rgb(248 196 25 / 12%), transparent 70%),
    radial-gradient(50% 60% at 85% 10%, rgb(22 72 240 / 10%), transparent 70%),
    var(--bg);
}
.download-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin-inline: auto;
}
.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.download-card-primary {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--blue), var(--pink) 60%, var(--yellow)) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow);
}
.download-card h3 { font-size: 22px; font-weight: 800; }
.download-format { margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.download-card p:not(.download-format) { margin-top: 16px; margin-bottom: 28px; color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }
.download-card .btn { margin-top: auto; }
.download-consent { max-width: 920px; margin: 20px auto 0; color: var(--muted); font-size: 13px; line-height: 1.8; text-align: center; }
.download-consent a { color: var(--blue); text-underline-offset: 3px; }
.badge {
  position: absolute;
  top: 20px; right: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.requirements {
  max-width: 920px;
  margin: 48px auto 0;
  padding: 32px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.requirements h3 { font-size: 17px; font-weight: 700; }
.req-table { margin-top: 16px; }
.req-table > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.req-table dt { color: var(--muted); font-weight: 500; }
.req-table dd { color: var(--ink); }
.note { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.note a { color: var(--blue); text-underline-offset: 3px; }

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

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 28px; height: 28px;
  margin-top: -14px;
  border-radius: 999px;
  background: var(--bg-soft) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1433' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .3s var(--ease), background-color .2s var(--ease);
}
.faq-list summary:hover::after { background-color: var(--bg-tint); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 15px; line-height: 1.9; }

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

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 128px);
  background: var(--navy);
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
}
.cta-band::before {
  width: 520px; height: 520px;
  left: -160px; bottom: -280px;
  background: radial-gradient(circle at 40% 40%, var(--yellow), rgb(248 196 25 / 0%) 68%);
  opacity: .55;
}
.cta-band::after {
  width: 640px; height: 640px;
  right: -220px; top: -320px;
  background: radial-gradient(circle at 50% 50%, var(--pink), rgb(255 95 158 / 0%) 65%);
  opacity: .5;
}
.cta-inner h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 900; }
.cta-inner p { margin-top: 16px; color: rgb(255 255 255 / 75%); font-size: 16px; }
.cta-inner .btn { margin-top: 36px; }

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

.site-footer {
  padding-top: 72px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-nav h2 { margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--ink); }
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom {
  display: grid;
  gap: 8px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
.trademark { font-size: 11.5px; line-height: 1.7; opacity: .85; }

/* ---------- Legal page ---------- */

.legal { padding-block: calc(var(--header-h) + 48px) 96px; }
.legal .container { max-width: calc(760px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.legal .legal-meta { margin-top: 12px; color: var(--muted); font-size: 14px; }
.legal h2 { margin-top: 48px; font-size: 20px; font-weight: 700; }
.legal p { margin-top: 12px; color: var(--ink-2); line-height: 1.95; }
.legal a { color: var(--blue); text-underline-offset: 3px; }
.legal ul { margin-top: 12px; padding-left: 1.5em; list-style: disc; color: var(--ink-2); line-height: 1.95; }
.legal li + li { margin-top: 4px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; color: var(--muted); font-size: 14px; text-decoration: none; }
.legal-back:hover { color: var(--ink); }

.not-found {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px var(--gutter);
}
.not-found .code {
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(110deg, var(--blue), var(--pink) 55%, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found h1 { margin-top: 16px; font-size: 24px; font-weight: 800; }
.not-found p { margin-top: 12px; color: var(--ink-2); }
.not-found .btn { margin-top: 32px; }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .site-nav a { padding-inline: 9px; }
  .hero-copy { max-width: min(560px, 54%); }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }

  .nav-toggle { display: inline-block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(11 20 51 / 25%);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .is-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .site-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav a:last-child { border-bottom: 0; }

  /* Narrow screens have no white margin beside the copy: the artwork rises
     behind the lower half of the hero from the bottom right and fades into
     the white under the heading, so the text may overlap it. */
  .hero {
    align-items: flex-start;
    min-height: 0;
  }
  .hero-art {
    inset: auto 0 0 0;
    height: min(128vw, 680px);
  }
  .hero-art::after {
    background:
      linear-gradient(180deg, #fff 0%, rgb(255 255 255 / 86%) 24%, rgb(255 255 255 / 40%) 52%, rgb(255 255 255 / 0%) 78%),
      linear-gradient(90deg, rgb(255 255 255 / 55%) 0%, rgb(255 255 255 / 0%) 60%);
  }
  .hero-art img { object-position: 86% 62%; }
  .hero-inner { padding-bottom: clamp(56px, 22vw, 150px); }
  .hero-copy { max-width: 640px; }
  .hero-lead { text-shadow: 0 0 12px #fff, 0 0 2px #fff; }
  /* Chips keep the small print readable over the colours. */
  .hero-meta { gap: 8px; }
  .hero-meta li {
    padding: 5px 12px 5px 9px;
    border-radius: 999px;
    background: rgb(255 255 255 / 88%);
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--ink-2);
    line-height: 1.5;
  }

  .split,
  .workflow-grid,
  .faq-grid,
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .split-copy { order: 0; }
  .faq-grid .section-head { position: static; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-card.span-2 { flex-direction: column; }
  .bento-card.span-2 > img,
  .bento-card.span-2 > picture { width: 100%; margin-top: auto; }
  .bento-card.span-2 img { aspect-ratio: 5 / 4; }

  .format-cards { grid-template-columns: minmax(0, 1fr); }
  .download-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .header-actions .btn { display: none; }
  .hero-inner { padding-top: calc(var(--header-h) + 28px); }
  .announce { margin-bottom: 22px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-art { height: min(150vw, 640px); }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-card.span-2 { grid-column: auto; }
  .feature-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .download-card,
  .format-card { padding: 28px 24px; }
  .requirements { padding: 24px; }
  .req-table > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .faq-list summary { font-size: 15.5px; }
  .faq-list details p { padding-right: 0; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
