/* Kore. website — the app's own look: light surfaces, slate borders, the
   emerald accent and Geist. Quiet motion only (fade-in), off with reduced motion. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --accent: #10b981;
  --accent-strong: #059669;
  --accent-soft: #ecfdf5;
  --accent-border: #a7f3d0;
  --page: #f8fafc;
  --surface: #ffffff;
  --subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --fg: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --radius: 12px;
  --radius-lg: 16px;
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--fg); margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }
.dot { color: var(--accent); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font: 500 15px/1 inherit; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn--lg { height: 46px; padding: 0 22px; font-size: 16px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-strong); }
.btn--outline { background: var(--surface); border-color: var(--border-strong); color: var(--fg); }
.btn--outline:hover { background: var(--subtle); }
.btn .icon { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.nav__inner { width: min(var(--wrap), 100% - 32px); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { font-weight: 700; font-size: 24px; letter-spacing: -0.04em; color: var(--fg); text-decoration: none; }
.brand--lg { font-size: 30px; }
.nav__links { display: flex; gap: 2px; margin-right: auto; }
.nav__links a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.15s, background-color 0.15s; }
.nav__links a:hover { color: var(--fg); background: var(--subtle); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; }

/* --------------------------------------------------------------- Hero */
.hero { padding: 88px 0 0; background: linear-gradient(180deg, var(--surface) 0%, var(--page) 100%); border-bottom: 1px solid var(--border); overflow: hidden; }
.hero__copy { max-width: 780px; margin: 0 auto; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 500; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.hero__shot { margin: 56px auto 0; max-width: 1080px; }
.hero__shot .frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }

/* -------------------------------------------------------------- Frame */
.frame { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.frame__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--subtle); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }

/* ------------------------------------------------------------ Section */
section[id] { scroll-margin-top: 64px; }
.section { padding: 104px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.eyebrow { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); }
.eyebrow a { text-decoration: none; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; font-weight: 700; }
.section__head p { margin-top: 14px; font-size: 18px; color: var(--muted); }
h3 { font-size: 18px; font-weight: 600; }

/* --------------------------------------------------------------- Tabs */
.tabs { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.tabs button {
  position: relative; padding: 10px 14px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--muted); font: 500 15px inherit; cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { color: var(--fg); font-weight: 600; border-bottom-color: var(--accent); }
.tabpanel { display: none; margin: 0; }
.tabpanel.is-active { display: block; animation: fade 0.35s ease; }
.tabpanel figcaption { margin-top: 18px; text-align: center; color: var(--muted); font-size: 16px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------ Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color 0.15s, box-shadow 0.15s; }
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--accent-border); }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* -------------------------------------------------------------- Split */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split--reverse .split__copy { order: 2; }
.split__copy > p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.list li { display: flex; gap: 12px; align-items: flex-start; }
.list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-strong); }
.list b { color: var(--fg); font-weight: 600; }
.split__visual { position: relative; }

/* ------------------------------------------------------- KOR-E window */
.assistant { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.assistant__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.assistant__head b { color: var(--fg); display: block; line-height: 1.2; }
.assistant__head small { color: var(--muted); font-size: 13px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #064e3b; }
.assistant__body { display: grid; gap: 12px; padding: 20px 18px; background: var(--page); }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.msg--me { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg--kore { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.assistant__actions { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); font-size: 13px; font-weight: 500; color: var(--fg); background: var(--surface); }
.chip--primary { background: var(--accent); border-color: var(--accent); color: #fff; }

/* -------------------------------------------------------------- Trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trust__item .icon { width: 22px; height: 22px; color: var(--accent-strong); margin-bottom: 14px; }
.trust__item p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 64px; align-items: start; }
.faq__list { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 17px; color: var(--fg); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform 0.2s; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item p { padding: 0 0 20px; color: var(--muted); max-width: 640px; }

/* ---------------------------------------------------------------- CTA */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.signup__copy > p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.form { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__hp { position: absolute; left: -9999px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--fg); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 8px; font: 15px inherit; color: var(--fg);
  border: 1px solid var(--border-strong); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:hover, .field select:hover { border-color: #94a3b8; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.check a { color: var(--accent-strong); }
.form .btn { justify-self: start; }
.notice { padding: 12px 14px; border-radius: 8px; font-size: 15px; }
.notice--ok { background: var(--accent-soft); border: 1px solid var(--accent-border); color: #065f46; }
.notice--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ------------------------------------------------------------- Footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.footer__links { display: flex; gap: 72px; }
.footer__links h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.footer__links a { display: block; padding: 4px 0; text-decoration: none; color: var(--text); font-size: 15px; }
.footer__links a:hover { color: var(--accent-strong); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* -------------------------------------------------------------- Pages */
.page { padding: 72px 0 104px; }
.page h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 28px; }
.page--center { text-align: center; min-height: 60vh; display: grid; place-items: center; }
.page--center .avatar { width: 72px; height: 72px; margin-bottom: 24px; }
.page--center p { color: var(--muted); margin-bottom: 28px; }
.prose { font-size: 17px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose mark { background: #fef3c7; color: #92400e; padding: 1px 6px; border-radius: 4px; }
.prose .draft { padding: 14px 16px; border-radius: 8px; border: 1px solid #fde68a; background: #fffbeb; color: #92400e; }

/* ------------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------- Responsive */
@media (max-width: 1000px) {
  .split, .faq, .signup { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__copy { order: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 64px 0 auto; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 8px; font-size: 16px; }
  .nav__burger { display: inline-flex; }
  .hero { padding-top: 56px; }
  .hero__shot { margin-top: 40px; }
  .section { padding: 72px 0; }
  .features, .trust, .form__row { grid-template-columns: 1fr; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .tabs button { white-space: nowrap; }

  .footer__links { gap: 48px; }
  .page { padding: 48px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tabpanel.is-active { animation: none; }
}

/* ======================================================== Motion (v3) */

/* Staggered reveals: children wait their turn (--i set by kore.js). */
.reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* Hero: the picture rises into place, then follows the scroll a little. */
.hero__shot { perspective: 1600px; }
.hero__shot .frame {
  transform: translateY(var(--lift, 0px)) rotateX(var(--tilt, 0deg));
  transform-origin: 50% 100%;
  transition: transform 0.2s linear;
  will-change: transform;
}
.hero__shot.reveal { transform: translateY(40px) scale(0.97); transition: opacity 0.9s ease 0.15s, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s; }
.hero__shot.reveal.is-in { transform: none; }
.hero h1 .line { display: block; }
.hero__glow {
  position: absolute; left: 50%; top: 52%; width: 70%; height: 60%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.16), transparent);
  filter: blur(20px); z-index: -1; pointer-events: none;
}
.hero { position: relative; isolation: isolate; }

/* Numbers strip */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.numbers div { padding: 28px 24px; text-align: center; }
.numbers div + div { border-left: 1px solid var(--border); }
.numbers b { display: block; font-size: 38px; font-weight: 700; letter-spacing: -0.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.numbers span { color: var(--muted); font-size: 14px; }
.numbers-wrap { margin-top: -1px; padding: 56px 0 0; }

/* Video frames */
.video { position: relative; }
.video video { display: block; width: 100%; height: auto; background: var(--subtle); }
.video__badge {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--fg);
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.video__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.25; } }

/* Feature cards: the icon lifts on hover */
.feature__icon { transition: transform 0.25s ease, background-color 0.25s; }
.feature:hover .feature__icon { transform: translateY(-3px); background: #d1fae5; }
.feature { transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s ease; }
.feature:hover { transform: translateY(-3px); }

/* KOR-E: messages arrive one by one, with a typing indicator before each answer */
.assistant .msg { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.assistant .msg.is-on { opacity: 1; transform: none; }
.typing { display: none; gap: 4px; align-items: center; width: fit-content; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.typing.is-on { display: inline-flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.assistant__actions { opacity: 0; transition: opacity 0.4s ease; }
.assistant__actions.is-on { opacity: 1; }

/* Tabs: a sliding underline */
.tabs { position: relative; }
.tabs__ink { position: absolute; bottom: -1px; left: 0; height: 2px; background: var(--accent); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.tabs.has-ink button[aria-selected="true"] { border-bottom-color: transparent; }
.tabpanel.is-active .laptop { animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }

/* Buttons: the arrow nudges */
.btn .icon { transition: transform 0.2s ease; }
.btn:hover .icon { transform: translateX(3px); }

@media (max-width: 760px) {
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers div:nth-child(3) { border-left: 0; }
  .numbers div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .numbers b { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__shot .frame, .hero__shot.reveal { transform: none !important; transition: none; }
  .assistant .msg, .assistant__actions { opacity: 1; transform: none; }
  .typing { display: none !important; }
  .video__badge::before, .typing i { animation: none; }
}

/* The video label is also its pause button */
button.video__badge { cursor: pointer; font-family: inherit; }
button.video__badge:hover { border-color: var(--border-strong); }
.video__badge.is-paused::before { animation: none; background: var(--muted); }

/* ===================================================== 3D phone (v4) */
.phone3d {
  --w: 300px;
  --h: calc(var(--w) * 2.06);
  --r: calc(var(--w) * 0.165);
  --ry: -18deg; --rx: 6deg; --rz: -2deg;
  position: relative; width: var(--w); height: var(--h); perspective: 1800px;
}
.phone3d__body {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));
  will-change: transform;
}
/* Thickness of the frame: thin titanium slices stacked behind the front */
.phone3d__layer {
  position: absolute; inset: 0; border-radius: var(--r);
  background: linear-gradient(90deg, #8a919a, #e3e7eb 18%, #b5bbc2 50%, #e9ecef 82%, #7d848c);
  transform: translateZ(calc(var(--z) * -1.15px));
}
.phone3d__btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #6b7179, #cfd4d9); transform: translateZ(-5px); }
.phone3d__btn--action { left: -3px; top: 16%; height: 4.5%; }
.phone3d__btn--up { left: -3px; top: 24%; height: 9%; }
.phone3d__btn--down { left: -3px; top: 35%; height: 9%; }
.phone3d__btn--power { right: -3px; top: 27%; height: 14%; }
.phone3d__front, .phone3d__back { position: absolute; inset: 0; border-radius: var(--r); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.phone3d__front {
  transform: translateZ(1px);
  padding: calc(var(--w) * 0.035);
  background: #0b0b0d;
  box-shadow: inset 0 0 0 2px #c9ced3, inset 0 0 0 3.5px #5f656c;
}
.phone3d__screen { position: relative; height: 100%; border-radius: calc(var(--r) * 0.82); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.phone3d__status {
  position: relative; flex: none; height: calc(var(--w) * 0.135); display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--w) * 0.02) calc(var(--w) * 0.085) 0; background: #fff; color: #0f172a;
  font-size: calc(var(--w) * 0.05); font-weight: 600; letter-spacing: -0.01em;
}
.phone3d__island { position: absolute; left: 50%; top: calc(var(--w) * 0.03); width: 32%; height: calc(var(--w) * 0.088); transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone3d__icons { display: flex; align-items: center; gap: calc(var(--w) * 0.015); }
.phone3d__icons svg { height: calc(var(--w) * 0.038); width: auto; fill: currentColor; }
.phone3d__app { position: relative; flex: 1; overflow: hidden; }
.phone3d__shot { position: absolute; inset: 0; width: 100%; height: auto; opacity: 0; transition: opacity 0.25s ease; }
.phone3d__shot.is-on { opacity: 1; }
.phone3d__home { position: absolute; left: 50%; bottom: calc(var(--w) * 0.02); width: 36%; height: 4px; margin-left: -18%; border-radius: 3px; background: #0f172a; opacity: 0.85; }
.phone3d__glare {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 45%, transparent 60%);
  background-size: 250% 100%; background-position: var(--glare, 60%) 0; mix-blend-mode: screen;
}
.phone3d__back {
  transform: rotateY(180deg) translateZ(11px);
  background: radial-gradient(120% 80% at 30% 20%, #f4f6f8, #cfd5db 55%, #b4bbc3);
  box-shadow: inset 0 0 0 2px #c9ced3, inset 0 0 0 3px #8a919a;
}
.phone3d__cams {
  position: absolute; left: 7%; top: 3.5%; width: 44%; aspect-ratio: 1; border-radius: 28%;
  background: linear-gradient(145deg, #d9dee3, #aab1b9); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.phone3d__cams i {
  position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #4a5a7a 0 12%, #0d1117 22%, #1c2330 55%, #3a3f47 70%, #9aa1a9 72%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.phone3d__cams i:nth-child(1) { left: 7%; top: 7%; }
.phone3d__cams i:nth-child(2) { left: 7%; bottom: 7%; }
.phone3d__cams i:nth-child(3) { right: 7%; top: 30%; }
.phone3d__cams b { position: absolute; right: 14%; top: 9%; width: 12%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff7d6, #c9b98a); }
.phone3d__mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-weight: 700; font-size: calc(var(--w) * 0.2); letter-spacing: -0.04em; color: #7c848d; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.phone3d__mark em { font-style: normal; color: var(--accent); }
.phone3d__shadow {
  position: absolute; left: 10%; right: 10%; bottom: calc(var(--w) * -0.12); height: calc(var(--w) * 0.1);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 23, 42, 0.28), transparent);
  filter: blur(6px); transform: scaleX(var(--shadow, 1));
}

/* The mini phone beside the till video: still, tilted, floating */
.phone3d--mini { --w: 150px; position: absolute; right: -24px; bottom: -48px; z-index: 2; animation: bob 6s ease-in-out infinite; }
.phone3d--mini .phone3d__body { --ry: -22deg; --rx: 8deg; --rz: 3deg; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* -------------------------------------------- The phone scroll scene */
.phones { position: relative; height: 420vh; }
.phones__sticky { position: sticky; top: 64px; height: calc(100vh - 64px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.phones__stage { display: grid; place-items: center; }
.phones__steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; }
.phones__steps button {
  position: relative; display: block; width: 100%; text-align: left; padding: 14px 18px 14px 22px; border: 0; border-radius: 10px;
  background: none; cursor: pointer; font: inherit; color: var(--muted); opacity: 0.55;
  transition: opacity 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}
.phones__steps button::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--border-strong); transition: background-color 0.35s ease; }
.phones__steps button b { display: block; color: var(--fg); font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.phones__steps button:hover { opacity: 0.85; }
.phones__steps button.is-active { opacity: 1; background: var(--surface); box-shadow: var(--shadow-sm); }
.phones__steps button.is-active::before { background: var(--accent); }
.phones__bar { height: 3px; margin-top: 18px; border-radius: 3px; background: var(--border); overflow: hidden; }
.phones__bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); }

/* ------------------------------------------------ More scroll details */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); }
.nav { transition: box-shadow 0.25s ease; }
.nav.is-scrolled { box-shadow: 0 6px 20px -12px rgba(15, 23, 42, 0.25); }
.reveal { transform: translateY(28px); transition-duration: 0.8s; transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
.hero__copy { transform: translateY(var(--out-y, 0)); opacity: var(--out-o, 1); }
[data-grow] { transform: scale(calc(0.92 + var(--p, 1) * 0.08)); transform-origin: 50% 0; }
.trust__item .icon * { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s ease calc(var(--i, 0) * 120ms + 200ms); }
.trust__item.is-in .icon * { stroke-dashoffset: 0; }
.section__head .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.section__head .eyebrow::before { content: ""; width: 0; height: 2px; border-radius: 2px; background: var(--accent); transition: width 0.7s ease 0.3s; }
.section__head.is-in .eyebrow::before { width: 22px; }

@media (max-width: 1000px) {
  .phones { height: 380vh; }
  .phones__sticky { grid-template-columns: 1fr; gap: 8px; align-content: center; }
  .phones__copy { order: 2; text-align: center; }
  .phones__copy h2 { font-size: 26px; }
  .phones__copy > p, .phones__copy .eyebrow { display: none; }
  .phones__steps { margin-top: 8px; }
  .phones__steps li { display: none; }
  .phones__steps li:has(.is-active) { display: block; }
  .phones__steps button { text-align: center; padding: 6px 12px; background: none !important; box-shadow: none !important; }
  .phones__steps button::before { display: none; }
  .phones__stage .phone3d { --w: min(220px, 50vw); }
}
@media (max-width: 760px) {
  .phone3d--mini { --w: 104px; right: -6px; bottom: -36px; }
}
@media (prefers-reduced-motion: reduce) {
  .phones { height: auto; }
  .phones__sticky { position: static; height: auto; padding: 72px 0; }
  .phone3d--mini { animation: none; }
  .trust__item .icon * { stroke-dashoffset: 0; transition: none; }
  .hero__copy { transform: none; opacity: 1; }
  [data-grow] { transform: none; }
}
.phones__lead { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* ==================================================== 3D laptop (v5) */
/* Sizes in cqw: 1cqw = 1 % of the laptop's width, whatever the column. */
.laptop {
  --lid: 0deg; --tilt: 0deg; --scale: 1; --off: 0;
  position: relative; width: 100%; container-type: inline-size;
  perspective: 2600px; perspective-origin: 50% 30%;
  padding-bottom: 4cqw;
}
.laptop__rig {
  position: relative; width: 100%; height: 65cqw; transform-style: preserve-3d;
  transform: rotateX(var(--tilt)) rotateY(var(--yaw, 0deg)) scale(var(--scale)); transform-origin: 50% 100%;
  will-change: transform;
}
/* The lid: hinged at its bottom edge */
.laptop__lid { position: absolute; inset: 0; transform-origin: 50% 100%; transform: rotateX(var(--lid)); transform-style: preserve-3d; will-change: transform; }
.laptop__face, .laptop__back { position: absolute; inset: 0; border-radius: 2.4cqw 2.4cqw 0.6cqw 0.6cqw; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.laptop__face {
  padding: 2.2cqw 2.2cqw 3cqw; background: #0a0a0c;
  box-shadow: 0 0 0 0.25cqw #c4c8cd, 0 0 0 0.35cqw #8d939a, inset 0 0 0 0.12cqw #26262a;
}
.laptop__cam { position: absolute; left: 50%; top: 0.85cqw; width: 0.55cqw; height: 0.55cqw; margin-left: -0.275cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b4a66, #050608 70%); box-shadow: 0 0 0 0.12cqw #16171a; }
.laptop__screen { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0.5cqw; background: #000; }
.laptop__screen img, .laptop__screen video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop__off { position: absolute; inset: 0; background: #000; opacity: var(--off); pointer-events: none; }
.laptop__glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, 0.10), transparent 38%); }
.laptop__back {
  transform: rotateX(180deg);
  background: linear-gradient(180deg, #e9ecef, #c9ced4 60%, #b9bfc6);
  box-shadow: inset 0 0 0 0.2cqw #aeb4bb;
  display: grid; place-items: center;
}
.laptop__back span { font-weight: 700; font-size: 9cqw; letter-spacing: -0.04em; color: #8b939c; text-shadow: 0 0.15cqw 0 rgba(255, 255, 255, 0.7); }
.laptop__back em { font-style: normal; color: var(--accent); }
/* The deck: lies flat from the hinge towards you */
.laptop__deck {
  position: absolute; left: -1%; width: 102%; top: 65cqw; height: 60cqw;
  transform-origin: 50% 0; transform: rotateX(90deg);
  border-radius: 0 0 2cqw 2cqw;
  background: linear-gradient(180deg, #cfd4da, #e4e7eb 30%, #d8dce1);
  box-shadow: inset 0 0 0 0.2cqw #b3b9c0;
}
.laptop__keys {
  position: absolute; left: 11%; right: 11%; top: 9%; height: 46%; border-radius: 1cqw; background-color: #1d1f23;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 4.6cqw, #cfd4da 4.6cqw 5.2cqw),
    repeating-linear-gradient(180deg, transparent 0 4.4cqw, #cfd4da 4.4cqw 5cqw);
}
.laptop__pad { position: absolute; left: 32%; right: 32%; top: 61%; height: 32%; border-radius: 1.2cqw; background: linear-gradient(180deg, #d4d8dd, #c9ced4); box-shadow: inset 0 0 0 0.15cqw #b0b6bd; }
/* The front edge of the base, with the groove to open it */
.laptop__edge {
  position: absolute; left: -1.2%; width: 102.4%; top: 65cqw; height: 1.6cqw;
  transform: translateZ(60cqw);
  border-radius: 0 0 2cqw 2cqw;
  background: linear-gradient(180deg, #eef0f2, #c3c8ce 45%, #9aa1a8);
}
.laptop__edge span { position: absolute; left: 50%; top: 0; width: 15%; height: 55%; margin-left: -7.5%; border-radius: 0 0 1.4cqw 1.4cqw; background: linear-gradient(180deg, #a3aab1, #c5cad0); }
/* When seen from the front the deck is edge-on: the edge alone draws the base */
.laptop__shadow {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4cqw;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 23, 42, 0.3), transparent);
  filter: blur(0.6cqw); transform: scaleX(var(--shadow, 1.05)); opacity: var(--shadow-o, 1);
}

/* Laptops inside the page: open, facing you (the hero opens with the scroll) */
.laptop-wrap { max-width: 1000px; margin: 0 auto; }
.split__visual .laptop { --tilt: 0deg; }

/* ------------------------------------------------- Hero scroll scene */
/* An open laptop comes in from the left and a phone from the right, both
   showing Kore, while the words make room. */
.intro { position: relative; height: 240vh; }
.intro__sticky { position: sticky; top: 64px; height: calc(100vh - 64px); overflow: hidden; display: flex; flex-direction: column; align-items: center; padding-top: clamp(28px, 6vh, 72px); }
.intro__copy { position: relative; z-index: 1; text-align: center; max-width: 820px; padding: 0 16px; transform: translateY(var(--copy-y, 0)); opacity: var(--copy-o, 1); }
.intro__copy h1 { margin: 18px 0 14px; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.intro__copy h1 .grad-word { color: var(--accent-strong); }
.intro__copy .hero__lead { margin-bottom: 26px; }
.intro__stage { position: relative; z-index: 2; width: min(1120px, 92vw); margin-top: clamp(20px, 4vh, 48px); container-type: inline-size; transform: translateY(var(--stage-y, 0)); }
.intro__laptop { width: 78%; transform: translateX(var(--lx, 0)); opacity: var(--lo, 1); }
.intro__laptop .laptop { perspective: 3200px; perspective-origin: 50% 20%; }
.intro__phone { position: absolute; right: 2%; bottom: 0; transform: translateX(var(--px, 0)); opacity: var(--po, 1); }
.intro__phone .phone3d { --w: 21cqw; }
.intro__phone .phone3d__shot { transition-duration: 0.6s; }
.intro__badge { position: absolute; left: 0; top: -40px; }

@media (max-width: 760px) {
  .intro { height: 210vh; }
  .intro__stage { width: 96vw; }
  .intro__laptop { width: 82%; }
  .intro__phone .phone3d { --w: 26cqw; }
  .intro__copy .hero__lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { height: auto; }
  .intro__sticky { position: static; height: auto; padding-bottom: 72px; }
  .intro__laptop, .intro__phone { transform: none; opacity: 1; }
  .laptop { --lid: 0deg !important; --tilt: 0deg !important; --off: 0 !important; }
}
.laptop .video__badge { left: 1.6cqw; bottom: 1.6cqw; padding: 0.6cqw 1.4cqw; gap: 0.8cqw; font-size: clamp(10px, 1.35cqw, 13px); }
.laptop .video__badge::before { width: clamp(6px, 0.8cqw, 8px); height: clamp(6px, 0.8cqw, 8px); }
@media (max-width: 760px) {
  .intro { height: 170vh; }
}

/* ------------------------------------- Opening scene, wide screens (v7) */
/* The words in the middle; the laptop on the left edge, the phone on the
   right, both turned a little towards the centre; particles behind. */
.intro__particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
@media (min-width: 1000px) {
  .intro { height: 230vh; }
  .intro__sticky { justify-content: center; padding-top: 0; }
  .intro__copy { max-width: min(560px, 40vw); z-index: 3; }
  .intro__copy h1 { font-size: clamp(36px, 3.6vw, 54px); }
  .intro__copy .hero__lead { font-size: 17px; }
  .intro__stage { position: absolute; inset: 0; width: auto; margin: 0; transform: none; z-index: 1; container-type: normal; }
  .intro__laptop { position: absolute; left: -6vw; top: 50%; width: 29vw; max-width: 560px; transform: translate(var(--lx, 0), -50%); }
  .intro__phone { right: 3vw; bottom: auto; top: 50%; transform: translate(var(--px, 0), -50%); }
  .intro__phone .phone3d { --w: min(14vw, 240px); }
}
@media (min-width: 1600px) {
  .intro__laptop { left: -2vw; }
  .intro__phone { right: 6vw; }
}
@media (prefers-reduced-motion: reduce) {
  .intro__particles { display: none; }
}

/* ------------------------------------------ Phones and tablets (v8) */
/* Below 1000px the words sit on top and the devices share what is left of
   the screen: the stage takes the remaining height and sizes them in cq
   units of both axes, so they always fit whole, whatever the phone. svh so
   the browser's own bars don't push them off the bottom. */
.numbers { overflow: hidden; }
/* Nothing may widen the page sideways (clip, unlike hidden, keeps sticky working). */
main { overflow-x: clip; }
@media (max-width: 999px) {
  .phone3d--mini { right: -6px; }
  .intro { height: 190svh; }
  .intro__sticky { height: calc(100svh - 64px); padding-top: clamp(18px, 4svh, 40px); }
  .intro__copy { padding: 0 20px; }
  .intro__copy h1 { margin: 14px 0 12px; font-size: clamp(28px, 7.2vw, 46px); }
  .intro__copy .hero__lead { font-size: 15px; margin-bottom: 18px; max-width: 560px; }
  .intro__copy .hero__cta { gap: 8px; }
  .intro__copy .btn--lg { height: 42px; padding: 0 14px; font-size: 14.5px; }
  .intro__stage { flex: 1 1 auto; min-height: 0; width: 100%; max-width: 760px; margin-top: 8px; container-type: size; }
  .intro__laptop { position: absolute; left: 2cqw; top: 50%; width: min(74cqw, 112cqh); transform: translate(var(--lx, 0), -44%); }
  .intro__phone { right: 3cqw; bottom: auto; top: 50%; transform: translate(var(--px, 0), -50%); }
  .intro__phone .phone3d { --w: min(23cqw, 42cqh); }

  .phones__sticky { height: calc(100svh - 64px); gap: 20px; }
  .phones__stage .phone3d { --w: min(270px, 48vw, 25svh); }
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
@media (max-width: 999px) and (max-height: 640px) {
  .intro__copy .hero__lead { display: none; }
}
@media (max-width: 999px) and (prefers-reduced-motion: reduce) {
  .intro__stage { flex: none; height: min(78vw, 560px); }
}
