/* ==========================================================================
   KeyClear — premium marketing site
   Design tokens mirror the iOS app design system:
   #063B37 primary · #008B82 accent · #6BE0CC mint · #F6F4EE background
   Radii 10 / 16 / 22 (app tokens small/medium/large)
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Variable-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Variable-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  /* palette */
  --bg: #f6f4ee;
  --bg-tint: #e9f1eb;
  --surface: #ffffff;
  --ink: #10201d;
  --ink-strong: #04211f;
  --muted: #51625e;
  --teal: #008b82;
  --teal-ink: #007068; /* darker teal for small text on light backgrounds (>= 4.5:1) */
  --teal-deep: #063b37;
  --mint: #6be0cc;
  --dark: #04211f;
  --dark-2: #073430;
  --line: rgba(6, 59, 55, 0.12);
  --line-strong: rgba(6, 59, 55, 0.2);
  /* radii — match app tokens */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --radius-xl: 30px;
  /* elevation */
  --shadow-s: 0 1px 2px rgba(4, 33, 31, 0.05), 0 4px 14px rgba(4, 33, 31, 0.06);
  --shadow-m: 0 2px 6px rgba(4, 33, 31, 0.06), 0 16px 40px rgba(4, 33, 31, 0.1);
  --shadow-l: 0 24px 70px rgba(4, 33, 31, 0.18);
  --max: 1200px;
  --header-h: 72px;
  font-family: "Manrope", "Noto Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0125rem;
  font-weight: 450;
  line-height: 1.62;
  min-width: 320px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 28px); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink-strong);
  font-weight: 800;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.95rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.kc-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  flex: 0 0 auto;
  /* stroke styling lives here so icons can reference the shared sprite */
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* inline icon sprite (emitted once per page by build.js) */
.kc-icon-defs { display: none; }

/* brand terms like "iOS" keep their casing inside uppercased labels */
.no-caps { text-transform: none; }

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

.skip-link {
  position: fixed;
  inset-inline-start: 1rem;
  top: 1rem;
  z-index: 200;
  transform: translateY(-260%);
  background: var(--ink-strong);
  color: #fff;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-s);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, filter 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  box-shadow: 0 10px 26px rgba(0, 139, 130, 0.32);
}

.btn-primary:hover { box-shadow: 0 16px 34px rgba(0, 139, 130, 0.4); }

.btn-mint {
  color: var(--ink-strong);
  background: linear-gradient(135deg, #8ceedd, var(--mint));
  box-shadow: 0 10px 30px rgba(107, 224, 204, 0.35);
}

.btn-mint:hover { box-shadow: 0 16px 40px rgba(107, 224, 204, 0.45); }

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0 10px;
  transition: padding 0.25s ease;
}

.header-inner {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  min-height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 2px 6px rgba(4, 33, 31, 0.05), 0 12px 34px rgba(4, 33, 31, 0.09);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(4, 33, 31, 0.07), 0 18px 44px rgba(4, 33, 31, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-symbol { width: 32px; height: 32px; }
.brand-wordmark { width: 118px; height: auto; }

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav a:hover {
  color: var(--ink-strong);
  background: rgba(6, 59, 55, 0.06);
}

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

.header-cta { min-height: 44px; padding: 0 20px; font-size: 0.92rem; }

/* language picker */
.lang-picker { position: relative; }

.lang-picker summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-strong);
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lang-picker summary::-webkit-details-marker { display: none; }

.lang-picker summary:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.lang-picker summary .kc-icon { width: 1.05rem; height: 1.05rem; color: var(--teal); }

.lang-chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.18s ease;
}

.lang-picker[open] .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 60;
  width: 300px;
  max-height: min(58vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-m);
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 9px;
  border-radius: var(--radius-s);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.lang-menu a:hover {
  color: var(--ink-strong);
  background: rgba(6, 59, 55, 0.06);
}

.lang-menu a[aria-current="page"] {
  color: var(--teal-deep);
  background: var(--bg-tint);
}

.lang-option-code {
  min-width: 32px;
  display: inline-grid;
  place-items: center;
  padding: 3px 5px;
  border: 1px solid rgba(0, 139, 130, 0.22);
  border-radius: 7px;
  background: rgba(233, 241, 235, 0.6);
  color: var(--teal-deep);
  font-size: 0.74rem;
  font-weight: 800;
}

.lang-option-name { overflow-wrap: anywhere; }

/* burger */
.menu-toggle {
  width: 44px;
  height: 44px;
  position: relative;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 1.8px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.menu-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 5.5px)); }
.menu-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.menu-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 5.5px)); }

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-nav {
  width: min(calc(100% - 32px), var(--max));
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-m);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--ink-strong);
  background: var(--bg);
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
}

.mobile-nav .mobile-nav-cta {
  grid-column: 1 / -1;
  border: 0;
}

/* ==========================================================================
   Hero (dark)
   ========================================================================== */

.hero {
  position: relative;
  margin-top: calc(-1 * (var(--header-h) + 24px));
  padding-top: calc(var(--header-h) + 24px);
  color: #fff;
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52rem 34rem at 82% 0%, rgba(0, 139, 130, 0.55), transparent 62%),
    radial-gradient(40rem 30rem at 8% 96%, rgba(107, 224, 204, 0.16), transparent 60%),
    linear-gradient(168deg, #041d1b 0%, var(--dark-2) 58%, #06423c 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.8px, transparent 0.9px);
  background-size: 26px 26px;
  opacity: 0.05;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.hero-inner {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(48px, 7vh, 84px) 0 clamp(30px, 5vh, 56px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal-ink);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow-dark { color: var(--mint); }

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 8px 15px;
  border: 1px solid rgba(107, 224, 204, 0.35);
  border-radius: 999px;
  background: rgba(107, 224, 204, 0.1);
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.review-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint);
  animation: reviewPulse 2.4s ease-out infinite;
}

@keyframes reviewPulse {
  0% { box-shadow: 0 0 0 0 rgba(107, 224, 204, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(107, 224, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 224, 204, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .review-badge-dot { animation: none; }
}

.hero h1 { color: #fff; max-width: 15ch; }

.hero-lead {
  max-width: 56ch;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  font-weight: 450;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 650;
}

.trust-row .kc-icon { width: 1rem; height: 1rem; color: var(--mint); }

/* device mockup */
.hero-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.device-stack {
  position: relative;
  width: min(100%, 500px);
  display: grid;
  place-items: center;
  padding: 24px 0 40px;
}

.device-glow {
  position: absolute;
  inset: 8% 6%;
  background: radial-gradient(closest-side, rgba(107, 224, 204, 0.28), transparent 74%);
  filter: blur(12px);
}

.phone {
  position: relative;
  width: min(72vw, 310px);
  margin: 0;
  padding: 11px;
  border-radius: 52px;
  background: linear-gradient(155deg, #33413d 0%, #0d1a17 30%, #0a1513 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 40px 90px rgba(0, 0, 0, 0.5);
  transform: rotate(-2.5deg);
}

.phone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 24px;
  border-radius: 999px;
  background: #050a09;
  z-index: 2;
}

.phone img {
  width: 100%;
  border-radius: 42px;
  background: #fff;
}

.phone::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 42px;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.14) 0%, transparent 26%);
  pointer-events: none;
}

.floating-card {
  position: absolute;
  z-index: 3;
  width: min(240px, 56vw);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-m);
  background: rgba(9, 42, 38, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.floating-card strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.floating-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(107, 224, 204, 0.14);
  color: var(--mint);
}

.card-label {
  display: block;
  margin-bottom: 6px;
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* The phone shifts start-ward so the check card overlaps mostly bezel and
   status bar instead of covering the screenshot's header content. */
.phone-main { margin-inline-end: clamp(0px, 9vw, 96px); }

.card-check { top: 0; inset-inline-end: 0; }
.card-export { bottom: 10%; inset-inline-start: 0; }

/* hero stats strip */
.hero-stats {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat {
  display: grid;
  gap: 4px;
  padding-inline-end: 12px;
}

.hero-stat strong {
  color: #fff;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */

.section {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  padding: clamp(72px, 9vw, 116px) 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(32px, 4.5vw, 52px);
}

.section-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.16rem);
  line-height: 1.65;
}

.section-heading h2 + .section-lead { margin-top: 18px; }

.tile-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg-tint);
  color: var(--teal-deep);
}

/* ==========================================================================
   Result story
   ========================================================================== */

.result-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: result;
}

.result-step {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.result-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}

.result-media {
  min-height: 300px;
  display: grid;
  place-items: end center;
  padding: 28px 24px 0;
  background:
    radial-gradient(24rem 16rem at 50% 0%, rgba(107, 224, 204, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(6, 59, 55, 0.06), rgba(233, 241, 235, 0.5));
}

.result-phone {
  width: min(100%, 200px);
  margin: 0;
  padding: 7px 7px 0;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(155deg, #2c3a36, #0b1614);
  box-shadow: 0 18px 44px rgba(4, 33, 31, 0.28);
}

.result-phone img { border-radius: 24px 24px 0 0; }

.result-doc {
  position: relative;
  width: min(100%, 230px);
  padding-bottom: 24px;
  display: grid;
  place-items: center;
}

.result-doc-page {
  width: 172px;
  min-height: 216px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background:
    linear-gradient(rgba(6, 59, 55, 0.1), rgba(6, 59, 55, 0.1)) 20px 86px / 112px 7px no-repeat,
    linear-gradient(rgba(6, 59, 55, 0.08), rgba(6, 59, 55, 0.08)) 20px 106px / 84px 7px no-repeat,
    linear-gradient(rgba(0, 139, 130, 0.16), rgba(0, 139, 130, 0.16)) 20px 132px / 124px 40px no-repeat,
    #fff;
  box-shadow: 0 18px 44px rgba(4, 33, 31, 0.16);
}

.result-doc-page span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.result-doc-page strong {
  color: var(--ink-strong);
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.result-doc-page em {
  margin-top: 104px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.result-doc-chip {
  position: absolute;
  inset-inline-end: 4px;
  bottom: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  box-shadow: 0 14px 32px rgba(0, 139, 130, 0.35);
  font-weight: 800;
  font-size: 0.9rem;
}

.result-copy {
  padding: 24px;
  counter-increment: result;
}

.result-num {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  position: relative;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--bg-tint);
  color: var(--teal-deep);
}

.result-num::after {
  content: "0" counter(result);
  position: absolute;
  top: -7px;
  inset-inline-end: -12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ink-strong);
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 800;
}

.result-copy h3 { margin-bottom: 8px; }
.result-copy p { color: var(--muted); font-size: 0.96rem; }

/* ==========================================================================
   Sample export
   ========================================================================== */

.sample-frame {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(30rem 20rem at 100% 0%, rgba(107, 224, 204, 0.14), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow-m);
}

.sample-copy h2 { max-width: 16ch; }

.pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.pdf-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--teal-deep);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pdf-nav svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdf-nav:not(:disabled):hover {
  background: var(--bg-tint);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.pdf-nav:disabled { opacity: 0.4; cursor: not-allowed; }

.pdf-page-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(6, 59, 55, 0.05);
  color: var(--muted);
  font-size: 0.9rem;
}

.pdf-page-status strong { color: var(--ink-strong); }

.pdf-download { margin-top: 16px; }

.pdf-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), var(--shadow-s);
}

.pdf-page {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

/* ==========================================================================
   Why / problems + outcome strip
   ========================================================================== */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.problem-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}

.problem-num {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  color: rgba(6, 59, 55, 0.22);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.problem-card .tile-icon { margin-bottom: 20px; }
.problem-card h3 { margin-bottom: 8px; }
.problem-card p { color: var(--muted); font-size: 0.96rem; }

.outcome-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(0, 139, 130, 0.16);
  border-radius: var(--radius-l);
  background:
    radial-gradient(26rem 16rem at 0% 100%, rgba(107, 224, 204, 0.2), transparent 64%),
    linear-gradient(160deg, #eef6f1, #f8fbf8);
}

.outcome-strip-head h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
}

.outcome-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}

.outcome-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.outcome-list .kc-icon {
  margin-top: 3px;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 999px;
  background: var(--teal-deep);
  color: var(--mint);
}

.outcome-list strong {
  display: block;
  color: var(--ink-strong);
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.outcome-list span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==========================================================================
   Features — bento
   ========================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "a b b"
    "a c d"
    "g g h"
    "e e f";
  gap: 16px;
}

.bento-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}

.bento-tile .tile-icon { margin-bottom: 20px; }
.bento-tile h3 { margin-bottom: 8px; }
.bento-tile p { color: var(--muted); font-size: 0.95rem; max-width: 52ch; }

.bento-a { grid-area: a; }
.bento-b { grid-area: b; }
.bento-c { grid-area: c; }
.bento-d { grid-area: d; }
.bento-e { grid-area: e; }
.bento-f { grid-area: f; }
.bento-g { grid-area: g; }
.bento-h { grid-area: h; }

.bento-a {
  background:
    radial-gradient(22rem 18rem at 50% 110%, rgba(107, 224, 204, 0.25), transparent 66%),
    var(--surface);
}

.bento-shot {
  margin: 26px auto -30px;
  width: min(100%, 230px);
  padding: 8px 8px 0;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(155deg, #2c3a36, #0b1614);
  box-shadow: 0 20px 48px rgba(4, 33, 31, 0.26);
}

.bento-shot img { border-radius: 27px 27px 0 0; }

.bento-b {
  background:
    radial-gradient(24rem 14rem at 100% 0%, rgba(0, 139, 130, 0.1), transparent 60%),
    var(--surface);
}

.bento-readiness {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.ready-pill {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}

.ready-pill .kc-icon { width: 1rem; height: 1rem; }

.ready-ok {
  background: var(--bg-tint);
  color: var(--teal-deep);
}

.ready-warn {
  background: #fdf1df;
  color: #a05e12;
}

.ready-track {
  flex: 1 1 auto;
  height: 8px;
  max-width: 220px;
  border-radius: 999px;
  background: rgba(6, 59, 55, 0.1);
  overflow: hidden;
}

.ready-fill {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
}

.bento-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.bento-langs span {
  padding: 5px 10px;
  border: 1px solid rgba(0, 139, 130, 0.2);
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--teal-deep);
  font-size: 0.76rem;
  font-weight: 800;
}

/* ==========================================================================
   Workflow
   ========================================================================== */

.workflow-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.workflow-step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-s);
}

.workflow-marker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.workflow-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg-tint);
  color: var(--teal-deep);
}

.workflow-num {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.workflow-step h3 { margin-bottom: 8px; font-size: 1.14rem; }
.workflow-step p { color: var(--muted); font-size: 0.94rem; }

/* connector line between steps */
.workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 48px;
  inset-inline-end: -14px;
  width: 12px;
  height: 2px;
  background: var(--line-strong);
}

/* ==========================================================================
   Compare
   ========================================================================== */

.compare-scroll {
  overflow-x: auto;
  border-radius: var(--radius-l);
}

.compare-table {
  min-width: 860px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-s);
}

.compare-row {
  display: grid;
  grid-template-columns: 0.8fr repeat(4, 1fr);
}

.compare-row + .compare-row { border-top: 1px solid var(--line); }

.compare-cell {
  min-width: 0;
  padding: 18px;
  border-inline-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.compare-cell:first-child {
  border-inline-start: 0;
  color: var(--ink-strong);
  font-weight: 750;
}

.compare-head .compare-cell {
  color: var(--ink-strong);
  background: var(--bg);
  font-weight: 800;
  font-size: 0.9rem;
}

.compare-cell.compare-keyclear {
  position: relative;
  color: var(--teal-deep);
  font-weight: 600;
  background: linear-gradient(180deg, rgba(233, 241, 235, 0.85), rgba(233, 241, 235, 0.4));
}

.compare-head .compare-keyclear {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
}

/* ==========================================================================
   Use cases
   ========================================================================== */

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.usecase-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}

.usecase-card .tile-icon { margin-bottom: 20px; }
.usecase-card h3 { margin-bottom: 8px; }
.usecase-card p { color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   Privacy band (dark)
   ========================================================================== */

.privacy-band {
  margin-top: clamp(72px, 9vw, 116px);
  color: #fff;
  background:
    radial-gradient(50rem 30rem at 90% 0%, rgba(0, 139, 130, 0.4), transparent 62%),
    radial-gradient(36rem 24rem at 4% 100%, rgba(107, 224, 204, 0.12), transparent 58%),
    linear-gradient(160deg, #041d1b, var(--dark-2) 70%, #05332e 100%);
}

.privacy-band-inner {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 8vw, 104px) 0;
}

.privacy-copy h2 { color: #fff; max-width: 15ch; }

.privacy-copy p {
  margin: 20px 0 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
  line-height: 1.65;
}

.privacy-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.privacy-point {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.privacy-point .tile-icon {
  margin-bottom: 16px;
  background: rgba(107, 224, 204, 0.12);
  color: var(--mint);
}

.privacy-point h3 {
  color: #fff;
  font-size: 1.06rem;
  margin-bottom: 6px;
}

.privacy-point p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}

.price-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.price-head h3 { font-size: 1.12rem; }

.price {
  margin: 22px 0 10px;
  color: var(--ink-strong);
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.price-card > p { color: var(--muted); font-size: 0.95rem; }

.price-card ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.price-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.price-card li .kc-icon {
  margin-top: 2px;
  width: 19px;
  height: 19px;
  padding: 2.5px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--teal-deep);
}

.price-card.featured {
  position: relative;
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(24rem 18rem at 100% 0%, rgba(107, 224, 204, 0.22), transparent 62%),
    linear-gradient(150deg, var(--dark-2), var(--teal-deep) 55%, #0a5a52 100%);
  box-shadow: var(--shadow-l);
}

.price-card.featured .price-head h3,
.price-card.featured .price { color: #fff; }

.price-card.featured .tile-icon {
  background: rgba(107, 224, 204, 0.14);
  color: var(--mint);
}

.price-card.featured > p,
.price-card.featured li { color: rgba(255, 255, 255, 0.78); }

.price-card.featured ul { border-top-color: rgba(255, 255, 255, 0.14); }

.price-card.featured li .kc-icon {
  background: rgba(107, 224, 204, 0.16);
  color: var(--mint);
}

.pricing-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section .section-heading { max-width: 860px; }

.faq-list {
  max-width: 860px;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-s);
  transition: box-shadow 0.2s ease;
}

.faq-item[open] { box-shadow: var(--shadow-m); }

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  border-radius: var(--radius-m);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .faq-q {
  color: var(--ink-strong);
  font-size: 1.04rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.faq-marker {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--bg-tint);
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-deep);
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease;
}

.faq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item[open] .faq-marker { transform: rotate(45deg); }

.faq-item > p {
  padding: 0 24px 22px;
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.62;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  width: min(calc(100% - 32px), var(--max));
  margin: clamp(72px, 9vw, 116px) auto clamp(64px, 8vw, 96px);
  padding: clamp(56px, 7vw, 88px) clamp(24px, 6vw, 72px);
  border-radius: var(--radius-xl);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(40rem 22rem at 50% -20%, rgba(107, 224, 204, 0.3), transparent 64%),
    linear-gradient(155deg, #041d1b, var(--teal-deep) 62%, #0a5a52 100%);
  box-shadow: var(--shadow-l);
}

.final-cta-inner { max-width: 680px; margin-inline: auto; }

.final-cta img {
  width: 60px;
  margin: 0 auto 26px;
  filter: brightness(0) invert(1);
}

.final-cta h2 { color: #fff; }

.final-cta p {
  margin: 18px auto 30px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.06rem;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(233, 241, 235, 0.4), transparent);
}

.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: 52px 0 34px;
}

.footer-brand img { width: 122px; margin-bottom: 14px; }

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 30ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 28px;
  align-content: start;
}

.footer-nav a,
.footer-langs a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.footer-nav a:hover,
.footer-langs a:hover { color: var(--teal-deep); }

.footer-langs { justify-self: end; }

.footer-langs-title {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-strong);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-langs nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px 24px;
}

.footer-langs a[aria-current="page"] { color: var(--teal-deep); font-weight: 750; }

.footer-bottom {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--teal-deep); }

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-main {
  width: min(calc(100% - 32px), 860px);
  margin: 64px auto;
}

.legal-card {
  padding: clamp(28px, 6vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}

.legal-card h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin-bottom: 0.4em;
}

.legal-card h2 {
  margin-top: 1.6em;
  font-size: 1.4rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-deep);
  background: var(--bg-tint);
  font-weight: 750;
  font-size: 0.92rem;
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal-init [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-init [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* subtle stagger inside revealed grids */
.reveal-init .result-steps > *, .reveal-init .problem-grid > *, .reveal-init .bento > *,
.reveal-init .workflow-track > *, .reveal-init .usecase-grid > *, .reveal-init .pricing-grid > *,
.reveal-init .privacy-points > *, .reveal-init .outcome-list > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-init [data-reveal].is-visible > *,
.reveal-init [data-reveal].is-visible .outcome-list > *,
.reveal-init [data-reveal].is-visible .privacy-points > * {
  opacity: 1;
  transform: none;
}

.reveal-init [data-reveal].is-visible > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-init [data-reveal].is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-init [data-reveal].is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-init [data-reveal].is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-init [data-reveal].is-visible > *:nth-child(6) { transition-delay: 0.35s; }

/* instant reveal right after page load (anchor entry / restored scroll) */
.reveal-instant [data-reveal],
.reveal-instant [data-reveal] > *,
.reveal-instant .outcome-list > *,
.reveal-instant .privacy-points > * {
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

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

/* ==========================================================================
   RTL
   ========================================================================== */

[dir="rtl"] .phone { transform: rotate(2.5deg); }
[dir="rtl"] .workflow-step:not(:last-child)::after { inset-inline-end: -14px; }
[dir="rtl"] .pdf-nav svg { transform: scaleX(-1); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-actions { justify-content: end; }

  .hero-inner { grid-template-columns: 1fr; padding-bottom: 12px; }
  .hero h1 { max-width: 100%; }
  .hero-visual { margin-top: 12px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }

  .result-steps { grid-template-columns: 1fr; }
  .result-step {
    display: grid;
    grid-template-columns: minmax(200px, 0.8fr) 1.2fr;
    align-items: center;
  }
  .result-media { min-height: 260px; height: 100%; }
  .result-phone { width: min(100%, 180px); }

  .sample-frame { grid-template-columns: 1fr; }

  .problem-grid { grid-template-columns: 1fr 1fr; }
  .problem-card:last-child { grid-column: 1 / -1; }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a b"
      "a c"
      "d g"
      "h f"
      "e e";
  }

  .workflow-track { grid-template-columns: 1fr 1fr; }
  .workflow-step:not(:last-child)::after { display: none; }

  .usecase-grid { grid-template-columns: 1fr 1fr; }
  .usecase-card:last-child { grid-column: 1 / -1; }

  .privacy-band-inner { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { grid-column: 1 / -1; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-langs { justify-self: start; }
}

@media (max-width: 760px) {
  body { font-size: 0.98rem; }

  .header-inner {
    width: calc(100% - 20px);
    padding: 6px 8px 6px 14px;
    min-height: 56px;
  }

  .brand-wordmark { width: 104px; }
  .header-cta { display: none; }
  .lang-picker summary { min-width: 0; padding: 0 12px; }
  .lang-menu { width: min(76vw, 280px); grid-template-columns: 1fr; }
  .mobile-nav { width: calc(100% - 20px); }

  .hero-inner { padding-top: 36px; }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 2.9rem); }
  .hero-actions { display: grid; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .trust-row span { flex: 1 1 100%; justify-content: center; }

  .device-stack { padding-bottom: 24px; }
  .phone { width: min(64vw, 250px); }
  .floating-card { width: min(200px, 52vw); padding: 13px 14px; }
  .floating-card strong { font-size: 0.82rem; }
  .card-check { top: 2%; }
  .card-export { bottom: 4%; }

  .hero-stats { grid-template-columns: 1fr 1fr; }

  .section { width: calc(100% - 28px); }

  .result-step { grid-template-columns: 1fr; }
  .result-media { min-height: 230px; }

  .sample-frame { padding: 22px 18px; }
  .pdf-toolbar { gap: 6px; }
  .pdf-nav { flex: 1 1 auto; justify-content: center; }
  .pdf-page-status { order: -1; flex: 1 1 100%; justify-content: center; }
  .pdf-download { width: 100%; }

  .problem-grid { grid-template-columns: 1fr; }
  .problem-card:last-child { grid-column: auto; }

  .outcome-strip { grid-template-columns: 1fr; }
  .outcome-list { grid-template-columns: 1fr; }

  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b" "c" "d" "g" "h" "e" "f";
  }

  .workflow-track { grid-template-columns: 1fr; }

  .usecase-grid { grid-template-columns: 1fr; }
  .usecase-card:last-child { grid-column: auto; }

  .privacy-points { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { grid-column: auto; }

  /* compare: keep alternatives side by side and scroll horizontally; the
     criterion column stays pinned so rows remain readable while swiping */
  .compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-m);
  }
  /* overflow:hidden on the table would break the sticky column; the
     scroll container clips the rounded corners instead */
  .compare-table { min-width: 760px; overflow: visible; }
  .compare-cell { padding: 14px; font-size: 0.88rem; }
  .compare-cell:first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 2;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--line);
    font-size: 0.92rem;
  }
  .compare-head .compare-cell:first-child { background: var(--bg); }

  .faq-item summary { padding: 16px 18px; }
  .faq-item > p { padding: 0 18px 18px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
