/* ==========================================================================
   SORAS CORP TECH — site stylesheet (all pages, all locales)
   Same family as sorascorp.com: one grotesque, soft geometry, light & dark
   themes, live product UI — in the indigo-violet of Enthyma.
   ========================================================================== */

/* ── tokens ───────────────────────────────────────────────────────────── */
:root {
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 28px);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;

  --grad: linear-gradient(135deg, #5b4ff0, #9b48e0);
  --grad-hover: linear-gradient(135deg, #6a5ff5, #a755ea);

  /* Enthyma product UI — identical in both themes, like a real screenshot */
  --ex: #0b0c12;
  --ex-2: #0f1119;
  --ex-3: #161926;
  --ex-line: rgba(255, 255, 255, .075);
  --ex-text: #e4e6f0;
  --ex-dim: #8f92a8;
  --ex-indigo: #8f8cff;
  --ex-orchid: #c79bf7;
  --ex-teal: #3cddc7;
  --ex-green: #4ade80;
  --ex-amber: #f5a623;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6fa;
  --bg-2: #eeeef5;
  --surface: #ffffff;
  --surface-2: #f1f1f7;
  --text: #0e0f17;
  --text-2: #2b2d3b;
  --muted: #5a5d71;
  --border: rgba(14, 15, 23, .09);
  --border-2: rgba(14, 15, 23, .15);
  --word-off: rgba(14, 15, 23, .16);
  --accent: #5145e5;
  --accent-text: #4a3fe0;
  --accent-soft: rgba(81, 69, 229, .09);
  --glow: rgba(110, 98, 245, .24);
  --glow-2: rgba(180, 92, 242, .18);
  --grid-line: rgba(14, 15, 23, .05);
  --nav-bg: rgba(255, 255, 255, .72);
  --device-bg: linear-gradient(180deg, #ffffff, #e7e7f1);
  --seg-thumb: #ffffff;
  --shadow-card: 0 1px 2px rgba(14, 15, 23, .04), 0 10px 30px -14px rgba(14, 15, 23, .14);
  --shadow-lg: 0 50px 100px -45px rgba(30, 20, 80, .45), 0 18px 36px -18px rgba(30, 20, 80, .18);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090e;
  --bg-2: #0c0d14;
  --surface: #0f1119;
  --surface-2: #161926;
  --text: #f5f6fa;
  --text-2: #cdd0de;
  --muted: #9799ac;
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --word-off: rgba(255, 255, 255, .16);
  --accent: #8b83ff;
  --accent-text: #aaa4ff;
  --accent-soft: rgba(139, 131, 255, .14);
  --glow: rgba(110, 98, 245, .30);
  --glow-2: rgba(180, 92, 242, .22);
  --grid-line: rgba(255, 255, 255, .045);
  --nav-bg: rgba(15, 17, 25, .66);
  --device-bg: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
  --seg-thumb: #2a2d3f;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .03) inset;
  --shadow-lg: 0 60px 120px -50px rgba(0, 0, 0, .9);
}

html:lang(ja) { --sans: 'Geist', 'Noto Sans JP', sans-serif; }
html:lang(ja) :is(.hero-title, .h-xl, .h-l, .statement-text, .look-tag, .plan-price) { letter-spacing: -.01em; line-height: 1.2; }

/* ── base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scrollbar-color: var(--border-2) var(--bg);
}
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, border-color .45s ease, color .45s ease, fill .45s ease, box-shadow .45s ease !important;
}
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: #fff; }
input, textarea { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app :focus-visible, .look :focus-visible, .contact :focus-visible, .film :focus-visible { outline-color: var(--ex-indigo); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }

/* ── type ─────────────────────────────────────────────────────────────── */
.h-xl {
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h-l {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.grad-text { background: linear-gradient(120deg, var(--accent-text), #a855f7 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .grad-text { background-image: linear-gradient(120deg, #c0c1ff, #ddb8ff 75%); }
.section-head { text-align: center; max-width: 820px; margin-inline: auto; }
.section-head p { margin: 20px auto 0; color: var(--muted); font-size: 18px; max-width: 54ch; text-wrap: pretty; }
.section { padding-block: clamp(100px, 12vw, 180px) 0; }

/* ── buttons & links ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 550; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px -12px var(--glow); }
.btn-primary:hover { background: var(--grad-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.i-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); flex: none; }
.btn:hover .i-arrow, .tag-link:hover .i-arrow { transform: translateX(3px); }
.i-play { width: 16px; height: 16px; fill: currentColor; flex: none; }

.tag-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 16px;
  border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface);
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text-2);
  transition: border-color .2s, color .2s;
}
.tag-link .i-arrow { width: 15px; height: 15px; }
.tag-link:hover { border-color: var(--accent); color: var(--text); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; min-width: 38px; padding: 0 9px; border-radius: 999px;
  color: var(--text-2); font-size: 13px; font-weight: 600; text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }

.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 13px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ── nav ──────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 12px; z-index: 50; padding-inline: 12px; }
.nav-shell {
  display: flex; align-items: center; gap: 18px;
  max-width: 1200px; height: 60px; margin: 12px auto 0; padding: 0 10px 0 16px;
  border-radius: 18px;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.nav.is-scrolled .nav-shell { box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .35); border-color: var(--border-2); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 20px; height: 26px; object-fit: contain; }
.brand-name { font-weight: 650; font-size: 15px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.brand-name span { color: var(--accent-text); }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumb::before { content: '/'; color: var(--border-2); }
.crumb a { display: inline-flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none; font-weight: 600; }
.crumb svg { width: 16px; height: 16px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-links a { padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: background-color .2s, color .2s; white-space: nowrap; }
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.nav-links .nav-links-extra, .nav-links .nav-links-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.nav-cta { margin-inline-start: 6px; }
.parent-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border); font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.parent-chip:hover { color: var(--text); border-color: var(--border-2); }
.parent-chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }

.lang { position: relative; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60;
  min-width: 220px; padding: 6px; display: grid;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-md);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .4);
}
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; text-decoration: none; color: var(--text-2); }
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu a[aria-current="true"] { color: var(--accent-text); font-weight: 600; background: var(--accent-soft); }
.lang-menu small { color: var(--muted); font-size: 12px; font-family: var(--mono); text-transform: uppercase; }

.nav-toggle { display: none; width: 40px; height: 40px; position: relative; border-radius: 999px; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.6px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-top: clamp(56px, 9vh, 110px); isolation: isolate; }
.hero-glow {
  position: absolute; z-index: -1; inset: -90px 0 auto; height: 1000px; pointer-events: none;
  background:
    radial-gradient(34% 40% at 38% 32%, var(--glow), transparent 70%),
    radial-gradient(30% 36% at 64% 38%, var(--glow-2), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 35%, #000 30%, transparent 75%);
          mask-image: radial-gradient(60% 60% at 50% 35%, #000 30%, transparent 75%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-mark { width: 54px; height: 54px; margin-bottom: 26px; color: var(--text); animation: fade-up .9s var(--ease) both; }
.hero-title {
  font-size: clamp(2.8rem, 7.6vw, 7.4rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.055em;
}
.ht { display: block; white-space: nowrap; padding-bottom: .04em; }
.ht > span { display: inline-block; padding-inline: .04em; animation: ht-rise 1.1s var(--ease) both; }
.ht-2 > span { animation-delay: .1s; }
@keyframes ht-rise { from { opacity: 0; transform: translateY(.22em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
.hero-lede { margin-top: 26px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--muted); max-width: 44ch; text-wrap: balance; animation: fade-up .9s var(--ease) .25s both; }
.hero-inner .btn-row { justify-content: center; margin-top: 34px; animation: fade-up .9s var(--ease) .35s both; }
.meta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; animation: fade-up .9s var(--ease) .45s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.device {
  position: relative; margin-top: clamp(56px, 7vw, 88px);
  padding: 8px; border-radius: 26px;
  background: var(--device-bg);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  animation: device-in 1.3s var(--ease) .3s both;
}
.device::before {
  content: ''; position: absolute; z-index: -1; inset: -6% 6% auto; height: 70%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  filter: blur(50px);
}
@keyframes device-in { from { opacity: 0; transform: translateY(60px) scale(.97); } to { opacity: 1; transform: none; } }

/* ── statement ────────────────────────────────────────────────────────── */
.statement { padding-block: clamp(110px, 14vw, 210px) 0; }
.statement-text {
  max-width: 24em; margin-inline: auto; text-align: center;
  font-size: clamp(1.7rem, 3.3vw, 3.1rem);
  font-weight: 550;
  line-height: 1.17;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.statement-text .w { transition: color .35s ease; color: var(--word-off); }
.statement-text .w.on { color: var(--text); }

/* ── product look (Enthyma) ───────────────────────────────────────────── */
.looks { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: var(--gap); margin-top: clamp(48px, 6vw, 80px); }
.look {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(28px, 3.6vw, 52px);
  border-radius: var(--r-2xl);
  color: #f3f1ff;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(180, 92, 242, .35), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(110, 98, 245, .35), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px,
    #0d0c1c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 3vw, 48px); align-items: end;
}
.lockup { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.lockup svg { width: 30px; height: 30px; }
.look-tag { margin-top: clamp(40px, 6vw, 96px); font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.look-text { margin-top: 16px; font-size: 16px; line-height: 1.6; color: #c9c6e6; max-width: 46ch; text-wrap: pretty; }
.look-points { list-style: none; margin-top: 22px; display: grid; gap: 10px; font-size: 15px; }
.look-points li { display: flex; gap: 12px; align-items: flex-start; }
.look-points li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: rgba(255, 255, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.look .btn-row { margin-top: 30px; }
.look-film { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); text-decoration: none; color: #fff; aspect-ratio: 16 / 9; background: #000; }
.look-film img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.look-film:hover img { transform: scale(1.03); }
.look-film span { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); font-size: 13.5px; font-weight: 550; }
.next {
  border-radius: var(--r-2xl); border: 1px dashed var(--border-2); background: transparent;
  padding: clamp(28px, 3.6vw, 52px); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 280px;
}
.next b { font-size: 1.4rem; font-weight: 600; letter-spacing: -.03em; }
.next p { color: var(--muted); font-size: 15.5px; }
.next .dot { width: 44px; height: 44px; border-radius: 14px; border: 1px dashed var(--border-2); display: grid; place-items: center; color: var(--muted); margin-bottom: auto; }
.next .dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ── cards ────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.cards { display: grid; gap: var(--gap); margin-top: clamp(48px, 6vw, 80px); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { padding: clamp(22px, 2.6vw, 32px); transition: border-color .25s, transform .4s var(--ease), opacity .9s var(--ease), filter .9s var(--ease); }
.tile:hover { border-color: var(--border-2); transform: translateY(-3px); }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 22px; }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.tile p { margin-top: 8px; color: var(--muted); font-size: 15.5px; text-wrap: pretty; }

/* ── parent / careers ─────────────────────────────────────────────────── */
.duo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gap); }
.panel { padding: clamp(28px, 4vw, 56px); border-radius: var(--r-2xl); }
.parent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.parent-mark { width: clamp(64px, 7vw, 92px); padding: 16px; border-radius: 24px; background: var(--surface-2); border: 1px solid var(--border); }
.parent-mark img { width: 100%; height: auto; }
.panel p { margin-top: 14px; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.panel .btn, .panel .tag-link { margin-top: 26px; }
.careers { background: var(--accent-soft); border: 1px solid var(--border); display: flex; flex-direction: column; }
.careers .tag-link { margin-top: auto; align-self: flex-start; }
.careers p { margin-bottom: 26px; }

/* ── contact / CTA panel ──────────────────────────────────────────────── */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 88px);
  padding: clamp(28px, 5vw, 72px);
  border-radius: var(--r-2xl);
  color: #f3f1ff;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(110, 98, 245, .34), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(180, 92, 242, .22), transparent 60%),
    #0d0c1c;
  border: 1px solid rgba(255, 255, 255, .08);
}
.contact-lead p { margin-top: 22px; color: #c9c6e6; max-width: 40ch; font-size: 18px; text-wrap: pretty; }
.contact-lead .contact-mail { font-size: 15px; }
.contact-mail a { color: #fff; }
.contact-lead .btn { margin-top: 28px; }
.contact-or { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 14px; color: #a7a3cc; }
.cform { display: grid; gap: 16px; align-content: start; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: grid; gap: 8px; font-size: 14px; color: #c0bce0; border: 0; }
.field {
  width: 100%; height: 50px; padding: 0 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05); color: #f5f4ff;
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field::placeholder { color: #a6a2cb; opacity: 1; }
.field:hover { border-color: rgba(255, 255, 255, .26); }
.field:focus { outline: 0; border-color: var(--ex-indigo); box-shadow: 0 0 0 4px rgba(143, 140, 255, .2); background: rgba(255, 255, 255, .07); }
.field[aria-invalid] { border-color: #ff7b9a; }
textarea.field { height: auto; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.f-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.f-choice legend { width: 100%; margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: #f3f1ff; font-size: 14.5px; transition: background-color .2s, color .2s, border-color .2s; }
.chip input:hover + span { border-color: rgba(255, 255, 255, .32); }
.chip input:checked + span { background: #f3f1ff; color: #14122b; border-color: #f3f1ff; }
.chip input:focus-visible + span { outline: 2px solid var(--ex-indigo); outline-offset: 2px; }
.cform .btn { justify-self: start; margin-top: 6px; }
.f-note { font-size: 13px; color: #a7a3cc; }
.f-error { font-size: 14px; color: #ffa3b8; }
.done { align-self: center; padding: 28px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); outline: none; }
.done p { margin-top: 12px; color: #c9c6e6; }

/* ── film ─────────────────────────────────────────────────────────────── */
.film { position: relative; margin-top: clamp(56px, 7vw, 88px); }
.film .device { margin-top: 0; }
.film-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.film-stage video, .film-stage img { width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 7%; color: #fff;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55));
  transition: background-color .3s;
}
.film-play span {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 26px 0 22px;
  border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 16px; font-weight: 600; transition: transform .35s var(--ease), background-color .3s;
}
.film-play .i-play { width: 18px; height: 18px; }
.film-play:hover span { transform: scale(1.04); background: rgba(255, 255, 255, .22); }
.film.is-playing .film-play { display: none; }
.film-cap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.film-cap b { color: var(--text); font-weight: 600; }

/* ── steps ────────────────────────────────────────────────────────────── */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(48px, 6vw, 80px); position: relative; }
.steps::before { content: ''; position: absolute; top: 47px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-2) 15%, var(--border-2) 85%, transparent); }
.step { position: relative; padding: 28px 22px; text-align: center; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border-2);
  font-size: 15px; font-weight: 600; color: var(--accent-text);
  position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15.5px; text-wrap: pretty; }

/* ── Enthyma app mock ─────────────────────────────────────────────────── */
.app { position: relative; border-radius: 18px; overflow: hidden; background: var(--ex); color: var(--ex-text); border: 1px solid var(--ex-line); font-size: 13px; line-height: 1.45; text-align: start; }
.app-bar { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 16px; border-bottom: 1px solid var(--ex-line); font-size: 12.5px; color: var(--ex-dim); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2d3c; }
.app-url { flex: 1; text-align: center; font-family: var(--mono); font-size: 11.5px; }
.app-url b { color: var(--ex-text); font-weight: 500; }
.app-live { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(143, 140, 255, .12); color: #c6c4ff; white-space: nowrap; }
.app-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ex-indigo); box-shadow: 0 0 0 3px rgba(143, 140, 255, .22); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.app-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 290px; min-height: 520px; }
.app-side { border-inline-end: 1px solid var(--ex-line); padding: 16px 12px; display: grid; align-content: start; gap: 2px; }
.app-ws { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; font-weight: 600; color: #fff; font-size: 13px; }
.app-ws i { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; font-style: normal; font-size: 11px; }
.app-side small { padding: 12px 8px 6px; font-size: 10.5px; font-weight: 600; color: var(--ex-dim); letter-spacing: .04em; text-transform: uppercase; }
.app-side span { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: #b8bbcf; font-size: 12.5px; }
.app-side span svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.app-side span.on { background: rgba(143, 140, 255, .14); color: #fff; }
.app-main { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-h .app-title { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: -.01em; flex: 1; min-width: 160px; }
.app-tag { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(143, 140, 255, .14); color: #c6c4ff; }
.brief { border: 1px solid var(--ex-line); background: var(--ex-2); border-radius: var(--r-md); padding: 14px 16px; }
.brief-k { font-size: 11.5px; color: var(--ex-dim); margin-bottom: 6px; }
.brief p { color: var(--ex-text); }
.brief-pins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.brief-pins span { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); color: #c8cadb; }
.concept { border: 1px solid rgba(143, 140, 255, .28); background: linear-gradient(180deg, rgba(143, 140, 255, .08), rgba(143, 140, 255, .02)); border-radius: var(--r-md); padding: 16px 18px; }
.concept-k { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ex-dim); margin-bottom: 10px; }
.concept-k b { color: var(--ex-indigo); font-weight: 600; }
.concept-lines { display: grid; gap: 8px; min-height: 132px; }
.cl { display: block; width: fit-content; max-width: 100%; padding: 2px 6px; margin-inline: -6px; border-radius: 6px; color: var(--ex-text); text-align: start; cursor: pointer; transition: background-color .2s, color .2s; }
.cl.h { font-size: 18px; font-weight: 650; color: #fff; letter-spacing: -.02em; }
.cl:hover, .cl.on { background: rgba(143, 140, 255, .16); }
.cl sup { font-size: 10px; color: var(--ex-indigo); margin-inline-start: 4px; font-weight: 600; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--ex-indigo); vertical-align: text-bottom; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.scores span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: #c8cadb; }
.scores span i { width: 6px; height: 6px; border-radius: 50%; background: var(--ex-green); }
.app-rail { border-inline-start: 1px solid var(--ex-line); padding: 18px 16px; display: grid; align-content: start; gap: 10px; }
.rail-k { font-size: 11.5px; font-weight: 600; color: var(--ex-dim); display: flex; justify-content: space-between; }
.quote { border: 1px solid var(--ex-line); background: var(--ex-2); border-radius: 12px; padding: 12px 13px; transition: border-color .25s, background-color .25s, box-shadow .25s; }
.quote q { display: block; color: var(--ex-text); quotes: '“' '”'; font-size: 12.5px; line-height: 1.5; }
.quote small { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: var(--ex-dim); }
.quote small b { font-weight: 600; color: #c8cadb; }
.quote small i { font-style: normal; padding: 1px 7px; border-radius: 999px; background: rgba(60, 221, 199, .12); color: var(--ex-teal); }
.quote.on { border-color: rgba(143, 140, 255, .6); background: rgba(143, 140, 255, .1); box-shadow: 0 0 0 3px rgba(143, 140, 255, .12); }
.app-note { padding: 10px 16px; border-top: 1px solid var(--ex-line); font-size: 11.5px; color: var(--ex-dim); }

/* ── demo pair ────────────────────────────────────────────────────────── */
.pair { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.pair-copy p { margin-top: 18px; color: var(--muted); max-width: 40ch; text-wrap: pretty; }
.pair .app { box-shadow: var(--shadow-lg), 0 0 0 1px var(--border); }
.pair .app-side { display: none; }
.pair .app-body { grid-template-columns: minmax(0, 1fr) 280px; }

/* ── sources ──────────────────────────────────────────────────────────── */
.src-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(48px, 6vw, 80px); }
.src { padding: 24px; }
.src h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.src ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.src li { font-size: 13.5px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* ── pricing ──────────────────────────────────────────────────────────── */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--seg-thumb); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 4px 12px -4px rgba(0, 0, 0, .2); transition: transform .45s var(--ease), width .45s var(--ease); }
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--muted); transition: color .25s; }
.seg button[aria-checked="true"] { color: var(--text); }
.seg button em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.pricing-switch { display: flex; justify-content: center; margin-top: 32px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 40px; align-items: stretch; }
.plan { position: relative; padding: 28px 24px; display: flex; flex-direction: column; }
.plan-name { font-size: 15px; font-weight: 600; }
.plan-price { margin-top: 14px; font-size: clamp(2.2rem, 3vw, 2.8rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-inline-start: 4px; }
.plan-sub { min-height: 20px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.plan-for { margin-top: 14px; font-size: 15px; color: var(--text-2); }
.plan ul { list-style: none; display: grid; gap: 10px; margin: 20px 0 26px; font-size: 14.5px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--accent-text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan .btn { margin-top: auto; width: 100%; }
.plan-hot { border-color: transparent; box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-lg); }
.plan-badge { position: absolute; top: -12px; left: 24px; padding: 4px 11px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; }
.pricing-note { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }

/* ── legal ────────────────────────────────────────────────────────────── */
.legal-hero { padding-block: clamp(56px, 8vh, 96px) clamp(28px, 4vw, 48px); }
.legal-hero h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; }
.legal-hero p { margin-top: 16px; color: var(--muted); max-width: 60ch; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid rgba(245, 166, 35, .35); background: rgba(245, 166, 35, .08); margin-top: 24px; max-width: 860px; }
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: #c27c0e; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .notice svg { stroke: var(--ex-amber); }
.notice b { display: block; font-weight: 600; }
.notice p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.notice a { color: var(--accent-text); }
.legal-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding-bottom: clamp(80px, 9vw, 130px); }
.legal-list a { display: flex; flex-direction: column; gap: 10px; padding: 26px; text-decoration: none; transition: border-color .25s, transform .4s var(--ease); }
.legal-list a:hover { border-color: var(--accent); transform: translateY(-3px); }
.legal-list b { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.legal-list span { color: var(--muted); font-size: 15px; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: clamp(80px, 9vw, 130px); }
.toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); font-size: 14px; }
.toc b { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--text-2); text-decoration: none; line-height: 1.35; }
.toc a:hover, .toc a.on { background: var(--surface-2); color: var(--text); }
.toc .toc-all { display: inline-flex; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); width: 100%; color: var(--accent-text); text-decoration: none; font-weight: 550; }
.doc { max-width: 76ch; font-size: 16.5px; line-height: 1.7; color: var(--text-2); }
.doc > * + * { margin-top: 14px; }
.doc h2 { margin-top: 44px; font-size: 1.45rem; font-weight: 600; letter-spacing: -.025em; color: var(--text); line-height: 1.25; scroll-margin-top: 100px; }
.doc h3 { margin-top: 28px; font-size: 1.12rem; font-weight: 600; color: var(--text); }
.doc ul, .doc ol { padding-inline-start: 22px; display: grid; gap: 8px; }
.doc li::marker { color: var(--muted); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent-text); }
.doc code { font-family: var(--mono); font-size: .86em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.doc blockquote { padding: 14px 18px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.doc .unset { padding: 1px 7px; border-radius: 6px; background: rgba(245, 166, 35, .14); color: var(--text); font-weight: 550; font-size: .92em; white-space: nowrap; }
.doc .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.doc th, .doc td { padding: 10px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
.doc th { font-weight: 600; color: var(--text); background: var(--surface-2); }
.doc tr:last-child td { border-bottom: 0; }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.nf b { display: block; font-size: clamp(5rem, 14vw, 10rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.nf h1 { margin-top: 10px; font-size: 1.6rem; letter-spacing: -.03em; }
.nf p { margin: 12px auto 28px; color: var(--muted); max-width: 40ch; }

/* ── footer ───────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--border); padding-block: 56px 36px; color: var(--muted); margin-top: clamp(80px, 9vw, 130px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.foot-brand p { margin-top: 14px; font-size: 14.5px; max-width: 36ch; }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: 14.5px; }
.foot-col h4 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.foot-col a { text-decoration: none; color: var(--text-2); width: fit-content; }
.foot-col a:hover { color: var(--text); text-decoration: underline; }
.foot-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; }
.foot-bottom a { color: var(--text-2); }


/* ── second live panel: themes & signals ──────────────────────────────── */
.pair-rev { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.pair-rev .pair-copy { order: 2; }
.sig-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.sig-themes { padding: 18px 20px; display: grid; gap: 4px; align-content: start; }
.sig-themes .rail-k { margin-bottom: 8px; }
.theme-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name tag" "bar bar" "count count"; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--ex-line); }
.theme-row b { grid-area: name; font-weight: 600; color: #fff; font-size: 13.5px; }
.theme-row small { grid-area: count; font-size: 11.5px; color: var(--ex-dim); }
.tm { grid-area: tag; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #c8cadb; align-self: center; }
.tm.up { background: rgba(74, 222, 128, .12); color: var(--ex-green); }
.tm.new { background: rgba(143, 140, 255, .14); color: #c6c4ff; }
.theme-bar { grid-area: bar; display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.theme-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6e62f5, #b45cf2); transform-origin: left center; transform: scaleX(var(--v)); transition: transform 1.4s var(--ease) .2s; }
html.js .sig.reveal:not(.in) .theme-bar i { transform: scaleX(0); }
.sig-card { margin: 18px 18px 18px 0; padding: 18px; border-radius: var(--r-md); border: 1px solid rgba(143, 140, 255, .3); background: linear-gradient(180deg, rgba(143, 140, 255, .1), rgba(143, 140, 255, .03)); align-self: start; }
.sig-k { font-size: 11.5px; font-weight: 600; color: var(--ex-amber); }
.sig-t { margin-top: 8px; font-size: 16px; font-weight: 600; color: #fff; letter-spacing: -.01em; line-height: 1.35; }
.sig-d { margin-top: 8px; color: var(--ex-text); font-size: 13px; }
.sig-btn { display: inline-flex; margin-top: 14px; height: 32px; align-items: center; padding: 0 14px; border-radius: 999px; background: #eef0fa; color: #14122b; font-size: 12.5px; font-weight: 600; }

/* ── data protection as a typographic ledger ──────────────────────────── */
.ledger-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--border-2); }
.ledger-2 > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--border); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.ledger-2 h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.ledger-2 p { color: var(--muted); font-size: 15.5px; text-wrap: pretty; }

/* next product: sized to its content */
.looks > .next { align-self: start; min-height: 0; }
.look-film img { transform: scale(1.3); object-position: 50% 62%; }
.look-film:hover img { transform: scale(1.34); }
.film-cap { flex-wrap: nowrap; }
.film-cap > span:first-child { flex: 1; }
.film-len { flex: none; font-variant-numeric: tabular-nums; }

@media (max-width: 1180px) {
  .pair-rev { grid-template-columns: 1fr; }
  .pair-rev .pair-copy { order: 0; }
}
@media (max-width: 960px) {
  .sig-body { grid-template-columns: 1fr; }
  .sig-card { margin: 0 16px 16px; }
  .ledger-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ledger-2 > div { grid-template-columns: 1fr; gap: 6px; }
  .film .film-play { place-items: end start; padding: 0 0 12px 12px; }
  .film .film-play span { width: 48px; height: 48px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .film .film-play span .i-play { width: 18px; height: 18px; margin-inline-start: 3px; }
}

/* ── reveal on scroll ─────────────────────────────────────────────────── */
html.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; filter: none; }
.cards .reveal:nth-child(3n+2), .plans .reveal:nth-child(even) { transition-delay: .07s; }
.cards .reveal:nth-child(3n) { transition-delay: .14s; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .app-body { grid-template-columns: 180px minmax(0, 1fr); }
  .app-rail { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--ex-line); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-rail .rail-k { grid-column: 1 / -1; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .src-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .pair { grid-template-columns: 1fr; }
  .parent-chip { display: none; }
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 84px; left: 12px; right: 12px; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; margin: 0;
    border-radius: var(--r-lg); border: 1px solid var(--border-2);
    background: var(--surface); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
    visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top center;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links a { padding: 14px 16px; border-radius: 12px; font-size: 1.1rem; font-weight: 550; color: var(--text); }
  .nav-links .nav-links-extra { display: block; }
  .nav-links .nav-links-cta { display: block; margin-top: 6px; text-align: center; background: var(--grad); color: #fff; }
  .nav-toggle { display: block; }
  .crumb { display: none; }

  .app-body, .pair .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-side { display: none; }
  .app-rail { grid-template-columns: 1fr; }
  .looks, .duo { grid-template-columns: 1fr; }
  .look { grid-template-columns: 1fr; }
  .next { min-height: 0; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .legal-list { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-shell { padding-inline: 12px 6px; gap: 8px; }
  .nav-cta { display: none; }
  .lang-btn [data-lang-current] { display: none; }
  .brand-name { font-size: 14px; }
  .hero-title { font-size: clamp(2.4rem, 12.5vw, 4.2rem); }
  .ht { white-space: normal; }
  .hero-inner .btn-row .btn { flex: 1 1 100%; }
  .device { padding: 5px; border-radius: 20px; }
  .app { border-radius: 15px; }
  .app-url { display: none; }
  .app-main { padding: 16px; }
  .cards-4, .cards-3, .src-grid, .plans, .legal-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { text-align: start; padding: 18px 0; display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; }
  .step::before { grid-row: 1 / 3; margin: 0; }
  .parent { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .cform .btn { width: 100%; }
  .film-play span { height: 52px; font-size: 15px; }
}

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