/* =========================================================
   KorapatDev landing page
   Light: white + orange · Dark: neutral black + orange
   ========================================================= */

:root {
  /* layers step clearly apart: bg < tint, surface (cards) on top,
     inset (mock panels inside cards) a visible step down from surface */
  --bg: #F7F5F2;
  --surface: #FFFFFF;
  --tint: #ECE8E2;
  --inset: #F0EDE8;
  --text: #16130F;
  --muted: #7A736B;
  --line: #E0DAD1;
  --orange: #FF5B14;
  --orange-ink: #C2410C;
  --orange-soft: #FFEDE3;
  --on-orange: #1A0B03;
  --accent-text: #E0480C;  /* orange that passes 3:1 on light bg for large text */
  --hero-bg: #FFF3EA;
  --ink: #16130F;
  --ink-contrast: #FFFFFF;
  --shadow: 0 30px 60px -24px rgba(20, 14, 8, .28);

  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 18px;

  --font: "Anuphan", "Noto Sans Thai", system-ui, sans-serif;
  --font-latin: "Inter Tight", "Anuphan", system-ui, sans-serif;
  /* one layout frame: nav, hero card and tinted sections share --frame;
     all content sits --pad inside it, and vertical spacing uses the same
     --pad so blocks stay balanced; extra width becomes side margin */
  --frame: 1280px;
  --label-col: 72px;
  --edge: clamp(8px, 2vw, 24px);
  --pad: clamp(24px, 5vw, 64px);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0B0B0B;
  --surface: #1C1C1C;
  --tint: #141414;
  --inset: #262626;
  --text: #F2EFEA;
  --muted: #8F8982;
  --line: #2E2E2E;
  --orange: #FF6224;
  --orange-ink: #FF8A4C;
  --orange-soft: #2A170C;
  --on-orange: #160903;
  --accent-text: #FF7A3D;
  --hero-bg: #161616;
  --ink: #F2EFEA;
  --ink-contrast: #0B0B0B;
  --shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
h1, h2, h3, p { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--orange); color: var(--on-orange); }

.container { width: min(100% - 2 * var(--edge), var(--frame)); margin-inline: auto; padding-inline: var(--pad); }
.muted { color: var(--muted); }
.o { color: var(--orange); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--ink-contrast); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 6px 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; white-space: nowrap;
  cursor: pointer;
  transition: transform .25s, background-color .25s, border-color .25s, box-shadow .25s;
}
.btn:has(.btn-ic) { padding-right: 6px; }
.btn:hover { transform: translateY(-1px); }
.btn-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.btn-ic svg { width: 18px; height: 18px; stroke-width: 2.2; }
.btn:hover .btn-ic { transform: rotate(-45deg); }

.btn--ink { background: var(--ink); color: var(--ink-contrast); }
.btn--ink .btn-ic { background: var(--orange); color: #fff; }
.btn--ink:hover { box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--orange) 70%, transparent); }
.btn--line { color: var(--text); border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.btn--line:hover { border-color: var(--orange); }
.btn--sm { min-height: 44px; padding: 4px 20px; font-size: 15px; }
.btn--block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--orange); }

/* ---------- section heads ---------- */
/* label = outlined section number + name; sits in a narrow column
   so the heading starts close to it */
.label {
  display: grid; justify-items: start; gap: 6px;
  font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text);
}
.label b {
  font-family: var(--font-latin); font-weight: 700;
  font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -.04em;
  /* fill with the section bg painted over a 2x stroke: hides the font's
     overlapping inner contours, leaves a clean 1.5px outline */
  color: var(--label-fill, var(--bg));
  -webkit-text-stroke: 3px var(--orange);
  paint-order: stroke fill;
}
@supports not (-webkit-text-stroke: 1px black) { .label b { color: var(--orange); } }

.head {
  display: grid; grid-template-columns: var(--label-col) 1fr; gap: 20px 24px; align-items: start;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.head .label { margin-top: 6px; }
.head h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.35; font-weight: 600; letter-spacing: -.01em;
}
.head--stack { grid-template-columns: 1fr; gap: 16px; }
.head--stack .label { margin-top: 0; }
.head--stack { gap: 12px; }

.n { font-family: var(--font-latin); font-size: 14px; font-weight: 600; color: var(--muted); }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  font-size: 14px; font-weight: 600;
}

/* =========================================================
   NAV
   ========================================================= */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 12px var(--edge); }
.nav {
  max-width: var(--frame); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 20px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-latin); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo b { color: var(--orange); font-weight: 700; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--orange); display: grid; place-items: center; }
.logo-mark svg { width: 32px; height: 32px; stroke: #fff; stroke-width: 2.6; }

.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 8px 16px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
.menu-toggle { display: none; }
.menu-toggle .ic-x { display: none; }
.menu-toggle[aria-expanded="true"] .ic-menu { display: none; }
.menu-toggle[aria-expanded="true"] .ic-x { display: block; }

.mobile-menu {
  max-width: var(--frame); margin: 8px auto 0; padding: 12px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 2px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 14px; border-radius: 12px; }
.mobile-menu .btn { margin-top: 8px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-inline: var(--edge); }
.hero-card {
  position: relative; overflow: hidden;
  max-width: var(--frame); margin-inline: auto;
  border-radius: var(--r-xl);
  background: var(--hero-bg);
  color: var(--text);
  padding: var(--pad);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--pad); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 {
  margin-top: 28px;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.2; font-weight: 700; letter-spacing: -.02em;
}
.hero .nw { white-space: nowrap; }
.hero .hl { color: var(--accent-text); }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); opacity: .85; }
.hero-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
/* frosted, not see-through: the background pattern runs behind it on mobile */
.hero-ctas .btn--line {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

.hero-visual { display: flex; justify-content: center; }
.auto-card {
  width: 100%; max-width: 340px;
  background: var(--surface); color: var(--text);
  border-radius: var(--r-lg); padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  animation: float 7s ease-in-out infinite;
}
.auto-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.auto-head small { font-size: 13px; color: var(--muted); font-weight: 400; }
.auto-list { display: grid; gap: 14px; margin: 20px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.auto-list li { display: flex; align-items: center; gap: 12px; }
.ck { width: 26px; height: 26px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-ink); display: grid; place-items: center; }
.ck svg { width: 14px; height: 14px; stroke-width: 2.8; }
.auto-foot { font-size: 14px; color: var(--muted); }

@keyframes float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-10px); }
}

.hero-stack {
  grid-column: 1 / -1;
  font-family: var(--font-latin); font-size: 14px; font-weight: 500; opacity: .7;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: var(--pad); }
.section:not(.section--tint) + .section:not(.section--tint) { padding-top: 0; }
.section--tint { background: var(--tint); border-radius: var(--r-xl); width: min(100% - 2 * var(--edge), var(--frame)); margin-inline: auto; }
.section--tint > .container { width: 100%; }
.section--tint { --label-fill: var(--tint); }

/* tasks marquee */
.tasks .container { display: grid; grid-template-columns: var(--label-col) 1fr; gap: 16px 24px; align-items: center; }
.tasks .marquee { min-width: 0; }
.marquee {
  display: flex; gap: 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; gap: 10px; flex: none;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 16px; font-weight: 500; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(calc(-100% - 10px)); } }

/* problem */
.list3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.list3 li { padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.list3 h3 { margin-top: 20px; font-size: clamp(22px, 2vw, 26px); font-weight: 600; line-height: 1.4; }
.list3 p { color: var(--muted); }

/* how */
.how { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.stat-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 48px);
}
.stat {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--font-latin); font-weight: 700; letter-spacing: -.04em;
  font-size: clamp(80px, 10vw, 128px); line-height: 1;
}
.stat svg { width: .4em; height: .4em; stroke-width: 2; color: var(--muted); }
.stat-label { margin-top: 24px; font-size: 20px; font-weight: 600; }
.stat-note { margin-top: 4px; font-size: 15px; color: var(--muted); }

.steps { display: grid; }
.steps li { display: flex; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { padding-top: 4px; }
.steps h3 { font-size: 22px; font-weight: 600; line-height: 1.4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.steps p { margin-top: 4px; color: var(--muted); }
.free { font-style: normal; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-ink); }

/* services (bento) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feat {
  grid-column: span 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 24px;
  transition: translate .3s, border-color .3s;
}
.feat--3 { grid-column: span 3; }
.feat--4 { grid-column: span 4; }
/* uses translate, not transform, so it doesn't fight the scroll-reveal transform */
.feat:hover { translate: 0 -4px; border-color: var(--orange); }
.feat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.feat h3 { font-size: 20px; font-weight: 600; line-height: 1.4; }
.feat p { margin-top: 2px; color: var(--muted); font-size: 16px; }
.ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); flex: none; }

.viz {
  margin-top: auto; min-height: 170px; padding: 20px;
  border-radius: var(--r-md); background: var(--inset);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1.5;
}
.viz b { font-weight: 600; }

.vz-dash { width: 100%; display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.vz-side { display: grid; gap: 4px; align-content: start; color: var(--muted); }
.vz-side span { padding: 6px 10px; border-radius: 10px; }
.vz-side .on { background: var(--surface); color: var(--text); font-weight: 600; }
.vz-main { display: grid; gap: 10px; }
.vz-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vz-kpis div { background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.vz-kpis small { display: block; font-size: 12px; color: var(--muted); }
.vz-kpis b { font-family: var(--font-latin); font-size: 20px; letter-spacing: -.02em; }
.vz-kpis b.o { color: var(--orange); }
.vz-lines { background: var(--surface); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.vz-lines i { height: 8px; border-radius: 99px; background: var(--line); }
.vz-lines i:nth-child(1) { width: 88%; }
.vz-lines i:nth-child(2) { width: 66%; }
.vz-lines i:nth-child(3) { width: 78%; }

.vz-notes { width: 100%; display: grid; gap: 8px; }
.vz-notes div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-weight: 500; }
.vz-notes i { width: 8px; height: 8px; border-radius: 50%; background: #22A35A; flex: none; }
.vz-notes i.o { background: var(--orange); }
.vz-notes div:nth-child(2) { margin-left: 12px; }
.vz-notes div:nth-child(3) { margin-left: 24px; opacity: .6; }

.vz-doc { width: 168px; background: var(--surface); border-radius: 12px; padding: 14px; display: grid; gap: 8px; transform: rotate(-3deg); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .25); }
.vz-doc-top { display: flex; justify-content: space-between; align-items: center; }
.vz-doc-top span { font-family: var(--font-latin); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--orange); color: var(--on-orange); }
.vz-doc > i { height: 7px; border-radius: 99px; background: var(--line); }
.vz-doc > i.s { width: 60%; }
.vz-doc-sum { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px dashed var(--line); }
.vz-doc-sum b { font-family: var(--font-latin); color: var(--orange); }

.vz-bars { width: 100%; height: 120px; display: flex; align-items: flex-end; gap: 8px; }
.vz-bars i { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: var(--line); }
.vz-bars i.o { background: var(--orange); }

.vz-form { width: 100%; max-width: 220px; display: grid; gap: 8px; }
.vz-form span { padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.vz-form .b { border-radius: 999px; border-color: var(--ink); background: var(--ink); color: var(--ink-contrast); font-weight: 600; text-align: center; }

.vz-roles { width: 100%; display: grid; gap: 8px; }
.vz-roles div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: var(--surface); }
.vz-roles b { width: 76px; }
.vz-roles span { padding: 1px 10px; border-radius: 999px; font-size: 12px; }
.vz-roles .on { background: var(--orange-soft); color: var(--orange-ink); font-weight: 600; }
.vz-roles .off { color: var(--muted); text-decoration: line-through; opacity: .6; }

.vz-int { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 340px; }
.vz-int span { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-latin); font-weight: 500; }
.vz-int .o { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-ink); font-family: var(--font); font-weight: 600; }

/* stack */
.stack {
  margin-top: 16px; padding: 24px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface);
  display: grid; grid-template-columns: 1fr 2.4fr; gap: 24px 48px; align-items: center;
}
.stack-head h3 { font-size: 20px; font-weight: 600; line-height: 1.4; }
.stack-head p { margin-top: 2px; color: var(--muted); font-size: 15px; }
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stack-grid li { padding: 16px; border-radius: var(--r-md); background: var(--inset); display: grid; gap: 2px; }
.stack-grid b { font-family: var(--font-latin); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.stack-grid span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* benefits */
.benefits { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px var(--pad); align-items: start; }
.benefits-head { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.benefits-head h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }

.benefit-list { display: grid; }
.benefit-list li { position: relative; display: flex; gap: 18px; padding: 24px 0 24px 24px; border-left: 2px solid var(--line); }
.benefit-list li::before { content: ""; position: absolute; left: -2px; top: 24px; width: 2px; height: 44px; background: color-mix(in srgb, var(--text) 35%, transparent); border-radius: 2px; }
.benefit-list h3 { font-size: 20px; font-weight: 600; line-height: 1.4; }
.benefit-list p { margin-top: 2px; color: var(--muted); }

/* early access */
/* number label | copy + steps | form card */
.ea {
  display: grid; grid-template-columns: var(--label-col) 1fr 1.1fr; gap: 24px var(--pad); align-items: start;
}
.ea > .label { margin-top: 6px; }
.ea-info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 4px; }
.ea-info h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.ea-info > p:not(.ea-note) { font-size: 18px; color: color-mix(in srgb, var(--text) 80%, transparent); }
.ea-steps { display: grid; gap: 14px; margin-top: 8px; }
.ea-steps li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.ea-steps b { font-family: var(--font-latin); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); flex: none; }
.ea-note { font-weight: 600; }

.ea-body {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow);
}
.ea-form { display: grid; gap: 16px; }
.ea-form[hidden] { display: none; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 14px 18px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 16px; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 18%, transparent);
}
.field textarea::placeholder { color: var(--muted); opacity: .8; }
.err { display: none; font-size: 13px; color: #DC2626; }
[data-theme="dark"] .err { color: #F87171; }
.field.is-invalid .err { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #DC2626; }
.ea-form .btn { margin-top: 8px; }
.ea-form .btn[disabled] { opacity: .7; cursor: progress; }

.ea-success { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 48px 16px; outline: none; }
.ea-success[hidden] { display: none; }
.ea-success h3 { font-size: 26px; font-weight: 700; }
.ea-success p { color: var(--muted); }
.ok-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.ok-ic svg { width: 32px; height: 32px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .head { margin-bottom: 0; }
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 26px 0; font-size: 18px; font-weight: 600; line-height: 1.5;
}
.faq-list summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); flex: none; transition: background-color .25s, border-color .25s; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s; }
.pm::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .pm { background: var(--orange); border-color: var(--orange); color: #fff; }
details[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq-list details p { padding-bottom: 26px; color: var(--muted); max-width: 52ch; }

/* footer */
/* full-width rule separates page body from footer */
.footer { overflow: hidden; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 28px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 15px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--orange); }
.copy { font-size: 14px; color: var(--muted); }
.wordmark {
  font-family: var(--font-latin); font-weight: 800;
  font-size: clamp(64px, 17.5vw, 250px); line-height: .8; letter-spacing: -.06em;
  text-align: center; white-space: nowrap; user-select: none;
  pointer-events: none; /* its glyph box overlaps the footer links */
  color: transparent;
  background: linear-gradient(180deg, var(--orange) 0%, color-mix(in srgb, var(--orange) 0%, var(--bg)) 95%);
  -webkit-background-clip: text; background-clip: text;
  margin-bottom: -.12em;
}

/* =========================================================
   VECTOR BACKGROUNDS (injected by assets/js/backgrounds.js)
   ========================================================= */
[data-bg] { position: relative; overflow: hidden; isolation: isolate; }
[data-bg] > :not(.bg-vec) { position: relative; z-index: 1; }
.bg-vec {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  fill: none; stroke: none; pointer-events: none;
  --bg-ln: color-mix(in srgb, var(--text) 13%, transparent);
  --bg-ln2: color-mix(in srgb, var(--text) 7%, transparent);
  --bg-or-soft: color-mix(in srgb, var(--orange) 18%, transparent);
  animation: bg-in 1.2s ease both;
}
/* pattern only on the right half, so it never sits behind the copy */
.hero-card > .bg-vec {
  -webkit-mask-image: linear-gradient(90deg, transparent 50%, #000 80%);
          mask-image: linear-gradient(90deg, transparent 50%, #000 80%);
}
/* page-level pattern: bottom-left of <main>, right above the footer,
   behind all content */
main { position: relative; }
.foot-bg[data-bg] {
  position: absolute; left: 0; bottom: 0; z-index: -1;
  width: min(760px, 70vw); height: 380px;
  pointer-events: none;
}
/* rotated so each pattern's dense top-right corner lands bottom-left;
   the mask is in the svg's own (pre-rotation) space */
.foot-bg > .bg-vec {
  transform: rotate(180deg);
  -webkit-mask-image: radial-gradient(90% 100% at 100% 0%, #000 35%, transparent 85%);
          mask-image: radial-gradient(90% 100% at 100% 0%, #000 35%, transparent 85%);
}
@keyframes bg-in { from { opacity: 0; } }

/* slow, long-running motion */
.bg-vec .v-drift, .bg-vec .v-pulse, .bg-vec .v-twinkle, .bg-vec .v-breathe,
.bg-vec .v-float, .bg-vec .v-sway, .bg-vec .v-wave {
  transform-box: fill-box; transform-origin: center;
}
.bg-vec .v-drift   { animation: v-drift 18s ease-in-out infinite alternate; }
.bg-vec .v-dash    { stroke-dasharray: 6 8; animation: v-dash 14s linear infinite; }
.bg-vec .v-dash--slow { animation-duration: 40s; }
.bg-vec .v-pulse   { animation: v-pulse 6s ease-in-out infinite; }
.bg-vec .v-twinkle { animation: v-twinkle 8s ease-in-out infinite; }
.bg-vec .v-breathe { animation: v-breathe 12s ease-in-out infinite alternate; }
.bg-vec .v-spin, .bg-vec .v-orbit, .bg-vec .v-breathe-orbit {
  transform-box: view-box; transform-origin: 1120px 40px;
}
.bg-vec .v-spin    { animation: v-spin 120s linear infinite; }
.bg-vec .v-orbit   { animation: v-spin 90s linear infinite reverse; }
.bg-vec .v-breathe-orbit { animation: v-breathe 14s ease-in-out infinite alternate; }
.bg-vec .v-float   { animation: v-float 32s ease-in-out infinite alternate; }
.bg-vec .v-float--b { animation-duration: 38s; animation-direction: alternate-reverse; }
.bg-vec .v-float--c { animation-duration: 26s; }
.bg-vec .v-signal  { stroke-dasharray: 70 640; animation: v-signal 9s linear infinite; }
.bg-vec .v-sway    { animation: v-sway 40s ease-in-out infinite alternate; }
.bg-vec .v-sway--b { animation-duration: 48s; animation-direction: alternate-reverse; }
.bg-vec .v-sway--c { animation-duration: 56s; }
.bg-vec .v-wave    { animation: v-wave 36s ease-in-out infinite alternate; }

@keyframes v-drift   { from { transform: translateY(-10px); } to { transform: translateY(10px); } }
@keyframes v-dash    { to { stroke-dashoffset: -280; } }
@keyframes v-pulse   { 50% { opacity: .45; } }
@keyframes v-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes v-breathe { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes v-spin    { to { transform: rotate(360deg); } }
@keyframes v-float   { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-36px, 24px) rotate(8deg); } }
@keyframes v-signal  { to { stroke-dashoffset: -710; } }
@keyframes v-sway    { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-40px, 16px) rotate(-4deg); } }
@keyframes v-wave    { to { transform: translateX(-90px); } }

/* =========================================================
   MOTION (all of it stops under prefers-reduced-motion)
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* hero: copy rises line by line, then the order card ticks off each task */
.js .hero-copy > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.js .hero-copy > :nth-child(1) { animation-delay: .05s; }
.js .hero-copy > :nth-child(2) { animation-delay: .15s; }
.js .hero-copy > :nth-child(3) { animation-delay: .3s; }
.js .hero-copy > :nth-child(4) { animation-delay: .45s; }
.js .hero-visual { animation: rise .9s .35s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes task-row { from { opacity: .3; } }
@keyframes task-tick { from { transform: scale(0); } 60% { transform: scale(1.25); } }
.js .auto-list li { animation: task-row .4s both; }
.js .auto-list li .ck { animation: task-tick .45s cubic-bezier(.2, .8, .2, 1) both; }
.js .auto-list li:nth-child(1), .js .auto-list li:nth-child(1) .ck { animation-delay: 1s; }
.js .auto-list li:nth-child(2), .js .auto-list li:nth-child(2) .ck { animation-delay: 1.35s; }
.js .auto-list li:nth-child(3), .js .auto-list li:nth-child(3) .ck { animation-delay: 1.7s; }
.js .auto-list li:nth-child(4), .js .auto-list li:nth-child(4) .ck { animation-delay: 2.05s; }
.js .auto-foot { animation: rise .6s 2.4s both; }

/* nav: highlight the section being read (set by main.js) */
.nav-links a { transition: color .2s, background-color .2s; }
.nav-links a.is-active { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }

/* theme icon spins in whenever it swaps */
@keyframes icon-in { from { opacity: 0; transform: rotate(-90deg) scale(.6); } }
.theme-toggle svg { animation: icon-in .5s cubic-bezier(.2, .8, .2, 1); }

/* problem items: top rule draws in orange on hover */
.list3 li { position: relative; }
.list3 li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0;
  background: var(--orange); border-radius: 2px;
  transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
.list3 li:hover::before { width: 100%; }

/* steps: row nudges, title turns orange */
.steps li > div, .steps h3 { transition: transform .3s cubic-bezier(.2, .8, .2, 1), color .3s; }
.steps li:hover > div { transform: translateX(6px); }
.steps li:hover h3 { color: var(--accent-text); }

/* benefits: orange marker grows down the item */
.benefit-list li::before { transition: height .5s cubic-bezier(.2, .8, .2, 1), background-color .5s; }
.benefit-list li:hover::before { height: calc(100% - 48px); background: var(--orange); }

/* feature mocks: bars grow on reveal, small moves on hover */
.js .feat .vz-bars i { height: 0; transition: height .9s cubic-bezier(.2, .8, .2, 1); }
.js .feat.in .vz-bars i { height: var(--h); }
.vz-bars i:nth-child(2) { transition-delay: .05s; }
.vz-bars i:nth-child(3) { transition-delay: .1s; }
.vz-bars i:nth-child(4) { transition-delay: .15s; }
.vz-bars i:nth-child(5) { transition-delay: .2s; }
.vz-bars i:nth-child(6) { transition-delay: .25s; }
.vz-bars i:nth-child(7) { transition-delay: .3s; }
.vz-doc, .vz-notes div, .vz-int .o, .vz-kpis div { transition: transform .4s cubic-bezier(.2, .8, .2, 1), margin .4s cubic-bezier(.2, .8, .2, 1); }
.feat:hover .vz-doc { transform: rotate(0) translateY(-4px); }
.feat:hover .vz-notes div:nth-child(2), .feat:hover .vz-notes div:nth-child(3) { margin-left: 0; }
.feat:hover .vz-int .o { transform: scale(1.08); }
.feat:hover .vz-kpis div:nth-child(2) { transform: translateY(-3px); }

/* FAQ: answers slide open where the browser supports it */
:root { interpolate-size: allow-keywords; }
.faq-list details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .35s cubic-bezier(.2, .8, .2, 1), content-visibility .35s allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }

/* =========================================================
   REVEAL
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
/* .js .reveal's transition list would otherwise drop the card hover transition */
.js .feat.reveal { transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1), translate .3s, border-color .3s; }

@media (prefers-reduced-motion: reduce) {
  .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; }
  .marquee-track[aria-hidden] { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* the universal selector above does not reach ::details-content */
  .faq-list details::details-content { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  /* bars don't wait for the reveal class to be drawn */
  .js .feat .vz-bars i { height: var(--h); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feat, .feat--3 { grid-column: span 1; }
  .feat--4 { grid-column: span 2; }
  .stack { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: grid; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-card > .bg-vec {
    -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 75%);
            mask-image: linear-gradient(180deg, transparent 30%, #000 75%);
  }
  .hero h1 { font-size: clamp(38px, 9vw, 72px); }
  .head, .how, .faq, .ea, .tasks .container { grid-template-columns: 1fr; }
  .head .label { margin-top: 0; }
  .ea > .label { margin-top: 0; }
  .foot-bg[data-bg] { width: 100%; height: 360px; }
  .list3 { grid-template-columns: 1fr; gap: 0; }
  .list3 li { padding-block: 28px; }
  .benefits { grid-template-columns: 1fr; }
  .benefits-head { position: static; }
  .list3 h3 { margin-top: 8px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-card { border-radius: 32px; }
  .hero-ctas, .hero-ctas .btn { width: 100%; }
  /* fewer nested boxes on small screens: tinted sections go full-bleed,
     service cards and the stack box lose their frame and become
     divider-separated rows, so only the mock panel stays a box */
  .section--tint { width: 100%; border-radius: 0; }
  .bento, .stack-grid { grid-template-columns: 1fr; }
  .bento { gap: 0; }
  .feat--4 { grid-column: span 1; }
  .feat, .stack {
    background: none; border: 0; border-radius: 0; box-shadow: none;
    border-top: 1px solid var(--line); padding: 32px 0;
  }
  .feat:hover { translate: none; border-color: var(--line); }
  .stack { margin-top: 0; }
  .viz { padding: 18px; }
  .vz-dash { grid-template-columns: 1fr; }
  .vz-side { display: none; }
  .vz-kpis div { padding: 8px 10px; }
  .vz-kpis small { font-size: 11px; white-space: nowrap; }
  .vz-kpis b { font-size: 17px; }
  .benefit-list li { padding: 28px 0 28px 18px; gap: 14px; }
  .benefit-list li::before { top: 28px; }
  .benefit-list li:hover::before { height: calc(100% - 56px); }

  /* more breathing room: --pad bottoms out at 24px here, too tight
     between sections and around rows */
  .section { padding-block: 64px; }
  .head { margin-bottom: 40px; }
  .list3 li { padding-block: 32px; }
  .steps li { padding-block: 32px; }
  .faq-list summary { padding-block: 28px; }

  /* calmer motion: on a phone screen the floating card, drifting
     background lines and marquee are all in view at once */
  .auto-card { animation: none; }
  .bg-vec * { animation: none !important; }
  .marquee-track { animation-duration: 90s; }
}
