/* ==========================================================================
   JIA RUI AUTO SERVICES SDN. BHD. — Design System
   Direction: institutional calm. Ivory paper, navy ink, one crimson accent.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0b1b2b;
  --ink-soft: #16304a;
  --ink-70: #3c4d5c;
  --muted: #5e6d79;
  --paper: #f7f5f0;
  --paper-2: #fbfaf7;
  --white: #ffffff;
  --sand: #ece6da;
  --line: rgba(11, 27, 43, 0.13);
  --line-strong: rgba(11, 27, 43, 0.28);
  --red: #c8102e;
  --red-deep: #a20c25;
  --blue: #1d5c9e;
  --ok: #1c6b4a;
  --warn: #8a5a12;

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8.5vw, 128px);
  --radius: 2px;
  --radius-lg: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.42s;

  --shadow-sm: 0 1px 2px rgba(11, 27, 43, 0.06), 0 8px 24px -18px rgba(11, 27, 43, 0.35);
  --shadow-md: 0 24px 60px -40px rgba(11, 27, 43, 0.5);

  --header-h: 76px;
}

/* ---------- Reset ---------- */
[hidden] { display: none !important; }

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.1; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Typography ---------- */
.display-1 {
  font-size: clamp(2.45rem, 5.4vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.display-2 {
  font-size: clamp(1.95rem, 3.5vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.display-3 {
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.022em;
}
.lede {
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.72;
  color: var(--ink-70);
  font-weight: 400;
}
.muted { color: var(--muted); }
.small { font-size: 0.875rem; line-height: 1.65; }
.tiny { font-size: 0.78rem; line-height: 1.6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--red);
  flex: none;
}
.eyebrow--plain::before { display: none; }
.on-dark .eyebrow { color: rgba(247, 245, 240, 0.72); }
.on-dark { color: var(--paper); }
.on-dark .lede { color: rgba(247, 245, 240, 0.72); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}
.wrap--narrow { width: min(880px, 100% - (var(--gutter) * 2)); }
.wrap--wide { width: min(1440px, 100% - (var(--gutter) * 2)); }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(34px, 4.4vw, 62px); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--sand { background: var(--sand); }

.rule-top { border-top: 1px solid var(--line); }
.section--dark .rule-top, .section--dark hr { border-color: rgba(247, 245, 240, 0.16); }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.g-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stretch { align-items: stretch; }

/* ---------- Section header ---------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  padding-bottom: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section--dark .sec-head { border-color: rgba(247, 245, 240, 0.16); }
.sec-head__title { margin-top: 14px; }
.sec-head__aside { padding-bottom: 6px; }
.sec-head__aside p { color: var(--ink-70); font-size: 0.98rem; }
.section--dark .sec-head__aside p { color: rgba(247, 245, 240, 0.68); }

.section-label {
  position: absolute;
  top: var(--section);
  left: max(16px, calc((100vw - var(--container)) / 2 - 48px));
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  min-height: 48px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  overflow: hidden;
}
.btn svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--red); --btn-bd: var(--red); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--red-deep); --btn-bd: var(--red-deep); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: transparent; --btn-bd: var(--ink); }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: rgba(247, 245, 240, 0.34); }
.btn--ghost-light:hover { --btn-bg: rgba(247, 245, 240, 0.08); --btn-bd: var(--paper); }

.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.link-arrow svg { width: 14px; height: 14px; }
.link-arrow:hover { border-color: var(--red); gap: 12px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: rgba(247, 245, 240, 0.78);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 34px;
}
.topbar__note { display: inline-flex; align-items: center; gap: 8px; }
.topbar__note::before {
  content: '';
  width: 5px; height: 5px; background: var(--red);
  border-radius: 50%;
}
.topbar__meta { display: flex; align-items: center; gap: 22px; }
.topbar a:hover { color: var(--paper); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(247, 245, 240, 0.97);
  box-shadow: 0 12px 30px -28px rgba(11, 27, 43, 0.6);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; padding-block: 10px; }
.brand__mark { width: 42px; height: 42px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand__name {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--ink); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header__divider { width: 1px; height: 24px; background: var(--line); }

/* Language switcher */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px;
  background: rgba(255, 255, 255, 0.5);
}
.lang__btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 8px;
  color: var(--muted);
  border-radius: 1px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  line-height: 1;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed='true'] { background: var(--ink); color: var(--paper); }

/* Mobile toggle */
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s;
}
.burger span::before, .burger span::after {
  content: '';
  position: absolute; left: 0;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
body.menu-open .drawer { opacity: 1; transform: none; visibility: visible; }
.drawer__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.drawer__link span.idx { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); font-weight: 400; }
.drawer__link[aria-current='page'] span.idx { color: var(--red); }
.drawer__foot { display: flex; flex-direction: column; gap: 16px; }
.drawer__actions { display: flex; flex-direction: column; gap: 10px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(28px, 3.6vw, 56px) clamp(32px, 4vw, 60px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero h1 { max-width: 15ch; }
.hero__sub { max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  max-width: 46ch;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}
.hero__note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--red); }

.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.hero__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__badge {
  position: absolute;
  left: -22px;
  bottom: 46px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 168px;
}
.hero__badge .k {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.6);
  display: block;
  margin-bottom: 4px;
}
.hero__badge .v { font-size: 0.95rem; font-weight: 600; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 24px 26px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__k {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.stat__v {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__d { margin-top: 8px; font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ---------- Demo data badge ---------- */
.demo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
  padding: 2px 6px;
  border: 1px dashed rgba(138, 90, 18, 0.55);
  color: var(--warn);
  background: rgba(214, 176, 96, 0.1);
  border-radius: 1px;
  vertical-align: middle;
  white-space: nowrap;
  cursor: help;
}
.demo::before { content: '◇'; font-size: 0.55rem; }
.section--dark .demo { color: #e8c98e; border-color: rgba(232, 201, 142, 0.4); background: rgba(232, 201, 142, 0.08); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.card__idx {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 2px;
}
.card h3 { font-size: 1.14rem; letter-spacing: -0.02em; }
.card p { color: var(--ink-70); font-size: 0.9rem; line-height: 1.66; }
.card__list { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 14px; }
.card__list li {
  display: flex;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-70);
  line-height: 1.55;
}
.card__list li::before { content: '—'; color: var(--line-strong); flex: none; }

/* Product rows */
.p-rows { border-top: 1px solid var(--line); }
.p-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.02fr) minmax(0, 1.14fr) 214px;
  gap: clamp(14px, 3vw, 36px);
  align-items: start;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.p-row:hover { background: rgba(255, 255, 255, 0.66); }
.p-row__idx { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); padding-top: 6px; }
.p-row h3 { font-size: clamp(1.15rem, 1.7vw, 1.42rem); }
.p-row__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
  display: block;
}
.p-row p { font-size: 0.9rem; color: var(--ink-70); }
.p-row__meta { text-align: right; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.p-row__rate { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.p-row__rate .demo { margin-left: 6px; }
.p-row__rate small { font-size: 0.68rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.step {
  display: flex;
  flex-direction: column;
  padding: 26px clamp(12px, 1.6vw, 22px) 26px 0;
  border-top: 1px solid var(--line-strong);
  position: relative;
}
.step::before {
  content: '';
  position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
}
.step__n {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.84rem; color: var(--ink-70); line-height: 1.6; }
.step__time {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Split media ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border: 1px solid var(--line); }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__caption {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- Feature list ---------- */
.f-list { display: flex; flex-direction: column; }
.f-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.f-item:first-child { border-top: 1px solid var(--line); }
.f-item__n {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--red);
  padding-top: 4px;
  letter-spacing: 0.06em;
}
.f-item h3 { font-size: 0.98rem; margin-bottom: 5px; }
.f-item p { font-size: 0.86rem; color: var(--ink-70); line-height: 1.62; }

/* ---------- Check / cross lists ---------- */
.tick-list { display: flex; flex-direction: column; gap: 12px; }
.tick-list li { display: flex; gap: 10px; font-size: 0.9rem; line-height: 1.6; color: var(--ink-70); }
.tick-list li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; }
.tick-list--yes li svg { color: var(--ok); }
.tick-list--no li svg { color: var(--red); }
.on-dark .tick-list li { color: rgba(247, 245, 240, 0.76); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th, table.data td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  vertical-align: top;
  line-height: 1.55;
}
table.data th {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--paper-2);
  white-space: nowrap;
}
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 600; }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.45;
}
.acc__icon { position: relative; width: 16px; height: 16px; flex: none; margin-top: 5px; }
.acc__icon::before, .acc__icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
}
.acc__icon::before { top: 7.5px; left: 0; width: 16px; height: 1px; }
.acc__icon::after { left: 7.5px; top: 0; width: 1px; height: 16px; }
.acc__item.is-open .acc__icon::after { transform: scaleY(0); opacity: 0; }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s var(--ease);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p, .acc__panel li {
  font-size: 0.92rem;
  color: var(--ink-70);
  line-height: 1.72;
  padding-bottom: 22px;
  padding-right: 36px;
}
.acc__panel p + p { padding-top: 0; }
.acc__panel ul { padding-bottom: 18px; }
.acc__panel ul li { padding-bottom: 6px; padding-left: 16px; position: relative; }
.acc__panel ul li::before { content: '—'; position: absolute; left: 0; color: var(--line-strong); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 38px);
  border-radius: var(--radius);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.field label .req { color: var(--red); font-size: 0.85rem; }
.field .hint { font-size: 0.73rem; color: var(--muted); line-height: 1.5; }
.input, .select, .textarea {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
  min-height: 46px;
}
.input::placeholder, .textarea::placeholder { color: #98a2aa; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 27, 43, 0.07);
}
.textarea { min-height: 110px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3e%3cpath fill='none' stroke='%235e6d79' stroke-width='1.4' d='M1 1.5 6 6.5 11 1.5'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px;
  padding-right: 38px;
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); background: rgba(200, 16, 46, 0.03); }
.err { font-size: 0.73rem; color: var(--red); display: none; }
.field.has-error .err { display: block; }

.check { display: flex; gap: 11px; align-items: flex-start; font-size: 0.85rem; line-height: 1.65; color: var(--ink-70); }
.check input {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 1px;
  background: var(--paper-2);
  flex: none;
  margin-top: 2px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1.5px;
  width: 5px; height: 10px;
  border: solid var(--paper);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.check input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12); }
.check a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.check a:hover { border-color: var(--red); }
.form-note { font-size: 0.73rem; color: var(--muted); line-height: 1.6; }
.form-msg {
  display: none;
  padding: 13px 15px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.6;
  border: 1px solid;
}
.form-msg.is-ok { display: block; background: rgba(28, 107, 74, 0.06); border-color: rgba(28, 107, 74, 0.28); color: #14543a; }
.form-msg.is-err { display: block; background: rgba(200, 16, 46, 0.05); border-color: rgba(200, 16, 46, 0.3); color: var(--red-deep); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  padding-block: clamp(52px, 7vw, 96px);
}
.cta-band h2 { max-width: 20ch; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 245, 240, 0.72);
  padding-block: clamp(48px, 6vw, 78px) 0;
  font-size: 0.86rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.75fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 56px);
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 34ch; }
.footer__brand .brand__name { color: var(--paper); }
.footer__brand .brand__sub { color: rgba(247, 245, 240, 0.55); }
.footer__brand img.brand__mark { width: 46px; height: 46px; }
.footer__desc { font-size: 0.83rem; line-height: 1.7; color: rgba(247, 245, 240, 0.62); }
.footer__col h4 {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.5);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.footer__col a { color: rgba(247, 245, 240, 0.76); transition: color 0.22s; }
.footer__col a:hover { color: var(--paper); }
.footer__contact li { display: flex; gap: 8px; line-height: 1.6; }
.footer__contact a { color: rgba(247, 245, 240, 0.76); }
.footer__bottom {
  border-top: 1px solid rgba(247, 245, 240, 0.13);
  padding-block: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: rgba(247, 245, 240, 0.5);
}
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--paper); }
.footer__disclaimer {
  border-top: 1px solid rgba(247, 245, 240, 0.08);
  padding-block: 18px 30px;
  font-size: 0.7rem;
  line-height: 1.7;
  color: rgba(247, 245, 240, 0.4);
}
.footer__disclaimer b { color: rgba(247, 245, 240, 0.6); font-weight: 500; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(30px, 4vw, 54px) clamp(34px, 4.5vw, 62px); border-bottom: 1px solid var(--line); }
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(22px, 3vw, 34px);
}
.crumbs a:hover { color: var(--ink); }
.crumbs span.sep { opacity: 0.5; }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; }
.page-hero__aside { padding-bottom: 4px; border-left: 1px solid var(--line); padding-left: clamp(16px, 2vw, 28px); }
.page-hero__aside p { font-size: 0.88rem; color: var(--ink-70); line-height: 1.7; }

/* Dark page hero */
.page-hero--dark { background: var(--ink); color: var(--paper); border-bottom: 0; }
.page-hero--dark .crumbs { color: rgba(247, 245, 240, 0.5); }
.page-hero--dark .crumbs a:hover { color: var(--paper); }
.page-hero--dark .page-hero__aside { border-color: rgba(247, 245, 240, 0.18); }
.page-hero--dark .page-hero__aside p { color: rgba(247, 245, 240, 0.66); }

/* ---------- Media band ---------- */
.media-band { position: relative; }
.media-band img { width: 100%; height: clamp(300px, 42vw, 520px); object-fit: cover; }
.media-band__cap {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--paper);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  max-width: 80%;
}

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.auth__panel {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.auth__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 43, 0.55) 0%, rgba(11, 27, 43, 0.9) 100%);
}
.auth__panel > * { position: relative; z-index: 1; }
.auth__bg { position: absolute; inset: 0; }
.auth__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.auth__quote { max-width: 34ch; }
.auth__quote p { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.35; letter-spacing: -0.025em; font-weight: 500; }
.auth__form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 72px) clamp(20px, 5vw, 72px);
  background: var(--paper);
}
.auth__form { width: min(440px, 100%); margin-inline: auto; display: flex; flex-direction: column; gap: 18px; }
.auth__form h1 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.auth__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; }
.auth__meta a { color: var(--ink-70); border-bottom: 1px solid var(--line); }
.auth__meta a:hover { color: var(--red); border-color: var(--red); }
.auth__switch { border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.85rem; color: var(--muted); }
.auth__switch a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--ink); }
.auth__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- Privacy doc ---------- */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.doc__toc { position: sticky; top: calc(var(--header-h) + 24px); border-top: 1px solid var(--line); padding-top: 16px; }
.doc__toc h4 {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 500;
}
.doc__toc ol { display: flex; flex-direction: column; gap: 9px; counter-reset: toc; }
.doc__toc li { counter-increment: toc; }
.doc__toc a {
  display: grid; grid-template-columns: 22px 1fr; gap: 8px;
  font-size: 0.8rem; color: var(--ink-70); line-height: 1.45;
}
.doc__toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted); padding-top: 2px; }
.doc__toc a:hover { color: var(--red); }
.doc__body { max-width: 74ch; }
.doc--privacy .doc__body h2 {
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  margin-top: clamp(34px, 4vw, 48px);
  margin-bottom: 14px;
  padding-top: 10px;
  letter-spacing: -0.02em;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
}
.doc--privacy .doc__body h2 .n { font-family: var(--font-mono); font-size: 0.7rem; color: var(--red); padding-top: 6px; letter-spacing: 0.05em; }
.doc--privacy .doc__body h3 { font-size: 1rem; margin: 22px 0 8px; }
.doc__body p, .doc__body li { font-size: 0.92rem; line-height: 1.8; color: var(--ink-70); }
.doc__body p + p { margin-top: 12px; }
.doc__body ul { display: flex; flex-direction: column; gap: 7px; margin: 10px 0; }
.doc__body ul li { padding-left: 18px; position: relative; }
.doc__body ul li::before { content: '—'; position: absolute; left: 0; color: var(--line-strong); }
.doc--privacy .doc__body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.86rem; }
.doc--privacy .doc__body th, .doc--privacy .doc__body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.doc--privacy .doc__body th { background: var(--paper-2); font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
.placeholder {
  display: inline-block;
  background: rgba(200, 16, 46, 0.06);
  border: 1px dashed rgba(200, 16, 46, 0.4);
  color: var(--red-deep);
  padding: 1px 7px;
  border-radius: 1px;
  font-size: 0.85em;
  font-family: var(--font-mono);
}
.callout {
  border-left: 2px solid var(--red);
  background: rgba(255, 255, 255, 0.7);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink-70);
}

/* ---------- Misc ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--ink-70);
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.22s var(--ease);
}
.pill:hover, .pill[aria-pressed='true'] { border-color: var(--ink); color: var(--ink); background: var(--white); }
.pill[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-70);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 1px;
}
.tag--live { color: var(--ok); border-color: rgba(28, 107, 74, 0.3); background: rgba(28, 107, 74, 0.06); }

.job {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.job:first-child { border-top: 1px solid var(--line); }
.job h3 { font-size: 1.1rem; margin-bottom: 6px; }
.job__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.job__reqs { font-size: 0.84rem; color: var(--ink-70); }

.office { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.office h4 { font-size: 0.95rem; }
.office p, .office a { font-size: 0.84rem; color: var(--ink-70); line-height: 1.65; }
.office a:hover { color: var(--red); }

.map-ph {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(11, 27, 43, 0.045) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(11, 27, 43, 0.045) 1px, transparent 1px) 0 0 / 44px 100%,
    var(--paper-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.map-ph::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(76deg, transparent 44%, rgba(11, 27, 43, 0.07) 44%, rgba(11, 27, 43, 0.07) 48%, transparent 48%),
    linear-gradient(-62deg, transparent 28%, rgba(29, 92, 158, 0.12) 28%, rgba(29, 92, 158, 0.12) 31%, transparent 31%),
    linear-gradient(12deg, transparent 70%, rgba(11, 27, 43, 0.05) 70%, rgba(11, 27, 43, 0.05) 74%, transparent 74%);
}
.map-ph::after {
  content: '';
  position: absolute;
  width: 142px; height: 142px;
  border: 1px dashed rgba(200, 16, 46, 0.4);
  border-radius: 50%;
}
.map-ph__pin {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}
.map-ph__pin b { font-size: 0.85rem; }
.map-ph__pin span { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.06em; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.18s; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 2px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }


/* ---------- Header login / footer entity ---------- */
.header__login {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
  white-space: nowrap;
}
.header__login:hover { border-bottom-color: var(--red); }

.footer__reg {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.9;
  color: rgba(247, 245, 240, 0.45);
  letter-spacing: 0.01em;
}
.footer__reg .demo { color: #e8c98e; border-color: rgba(232, 201, 142, 0.4); background: rgba(232, 201, 142, 0.08); }

/* ---------- Form spacing ---------- */
.form-card { display: flex; flex-direction: column; gap: 18px; }
.form-card .form-grid { margin-bottom: 2px; }
.check.has-error .err { display: block; }
.check .err { flex-basis: 100%; }
.check a { white-space: nowrap; }


/* ---------- Milestone list ---------- */
.mlist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.m { border-top: 1px solid var(--line-strong); padding-top: 18px; position: relative; }
.m::before {
  content: ''; position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
}
.m__y { font-family: var(--font-mono); font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); }
.m h3 { font-size: 1rem; margin: 10px 0 6px; }
.m p { font-size: 0.84rem; color: var(--ink-70); line-height: 1.62; }

/* ---------- Vertical steps ---------- */
.vsteps { border-left: 1px solid var(--line); margin-left: 10px; display: flex; flex-direction: column; }
.vstep { position: relative; padding: 0 0 clamp(28px, 3.6vw, 44px) clamp(24px, 3vw, 40px); }
.vstep:last-child { padding-bottom: 0; }
.vstep::before {
  content: ''; position: absolute; left: -5px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--red);
}
.vstep__n {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--red); margin-bottom: 8px;
}
.vstep h3 { font-size: clamp(1.1rem, 1.5vw, 1.32rem); margin-bottom: 8px; }
.vstep p { font-size: 0.92rem; color: var(--ink-70); line-height: 1.7; max-width: 62ch; }
.vstep__need {
  margin-top: 10px; padding: 10px 14px;
  border-left: 2px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem !important; color: var(--muted) !important;
}
.section--white .vstep__need { background: var(--paper-2); }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.dl { display: flex; flex-direction: column; gap: 2px; }
.dl__row {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.dl__row:first-child { border-top: 1px solid var(--line); }
.dl__k { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dl__v { font-size: 0.94rem; white-space: pre-line; }
.dl__v a:hover { color: var(--red); }
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); }

/* ---------- Auth extras ---------- */
.auth__panel .brand__name { color: var(--paper); }
.auth__panel .brand__sub { color: rgba(247, 245, 240, 0.6); }
.auth__panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.auth__panel-foot { display: flex; flex-direction: column; gap: 18px; }
.auth__back { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247, 245, 240, 0.6); display: inline-flex; gap: 8px; align-items: center; }
.auth__back:hover { color: var(--paper); }
.auth__quote-by { margin-top: 14px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247, 245, 240, 0.5); }
.auth__demo {
  border: 1px dashed rgba(200, 16, 46, 0.35);
  background: rgba(200, 16, 46, 0.04);
  padding: 10px 12px; font-size: 0.76rem; color: var(--red-deep);
  font-family: var(--font-mono); line-height: 1.6;
}
.auth-page .site-header, .auth-page .site-footer { display: none; }


/* ---------- Spec strip ---------- */
.spec {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 20px 0 18px;
}
.spec > div { padding: 14px 14px 14px 0; border-left: 1px solid var(--line); padding-left: 14px; }
.spec > div:first-child { border-left: 0; padding-left: 0; }
.spec dt {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.spec dd { margin: 7px 0 0; font-size: 0.88rem; line-height: 1.45; font-weight: 500; }
.spec dd .demo { font-weight: 400; display: block; width: max-content; margin-top: 5px; }
.product-block + .product-block { border-top: 1px solid var(--line); }
.product-block { padding-block: clamp(44px, 5.5vw, 80px); }
.product-block:first-of-type { padding-top: 0; }
.product-block:last-of-type { padding-bottom: 0; }


/* ---------- Inline CTA panel ---------- */
.cta-inline {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(24px, 4vw, 48px);
}
.cta-inline > div:last-child { text-align: right; }
.cta-inline .btn { white-space: nowrap; }

/* ---------- Responsive ---------- */
/* The header content column is capped at 1240px, so Malay labels overflow any
   viewport if the header keeps its default rhythm. Tighten it globally and
   collapse to the drawer before the labels run out of room. */
.site-header .brand__sub { display: none; }
.header__inner { gap: 12px; }
.nav__link { padding: 10px 8px; font-size: 0.85rem; }
.header__actions { gap: 8px; }

@media (max-width: 1279px) {
  :root { --header-h: 68px; }
  .nav, .header__divider, .header__login, .header__actions .btn { display: none; }
  .burger { display: inline-flex; }
  .header__actions { margin-left: auto; }
}

@media (max-width: 1120px) {
  .section-label { display: none; }
  .p-row { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.2fr); }
  .p-row__meta { grid-column: 2 / -1; align-items: flex-start; text-align: left; flex-direction: row; gap: 14px; }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { order: 2; max-width: 620px; }
  .hero__badge { left: auto; right: 16px; bottom: 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 0; }
  .step { padding-right: 20px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .sec-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__inner { grid-template-columns: 1fr; align-items: start; }
  .cta-band__actions { justify-content: flex-start; }
  .doc { grid-template-columns: 1fr; }
  .doc__toc { position: static; }
  .doc__toc ol { display: grid; grid-template-columns: repeat(2, 1fr); }
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .page-hero--dark .page-hero__aside { border-color: rgba(247, 245, 240, 0.18); }
  .auth { grid-template-columns: 1fr; }
  .auth__panel { min-height: 260px; padding-block: 28px; }
  .auth__quote { display: none; }
  .job { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .cta-inline { grid-template-columns: 1fr; }
  .cta-inline > div:last-child { text-align: left; }
  .cta-inline .btn { width: 100%; }
  .mlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --section: 64px; }
  body { font-size: 15.5px; }
  .g-2, .g-3, .g-4, .g-12 { grid-template-columns: 1fr; }
  .span-5, .span-6, .span-7 { grid-column: 1 / -1; }
  .hero { padding-block: 20px 44px; }
  .hero__frame { padding: 7px; }
  .hero__frame img { aspect-ratio: 4 / 3.4; }
  .hero__note { font-size: 0.8rem; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; padding: 18px 0 !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 20px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .p-row { grid-template-columns: 28px minmax(0, 1fr); gap: 10px 14px; }
  .p-row > p, .p-row__meta { grid-column: 2; }
  .p-row__meta { flex-direction: row; flex-wrap: wrap; align-items: baseline; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cta-band__actions { flex-direction: column; width: 100%; }
  .cta-band__actions .btn { width: 100%; }
  .doc__toc ol { grid-template-columns: 1fr; }
  .doc--privacy .doc__body h2 { grid-template-columns: 26px 1fr; }
  .section-label { display: none; }
  .hero__badge { position: static; margin-top: 12px; min-width: 0; width: 100%; left: auto; right: auto; bottom: auto; }
  .topbar__meta { display: none; }
  .topbar__inner { justify-content: center; }
  .media-band img { height: 260px; }
  .media-band__cap { font-size: 0.58rem; padding: 10px 14px; }
  .table-wrap { margin-inline: calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .card { padding: 20px; }
  .auth__form-side { padding: 28px 20px 48px; }
  .auth__panel { min-height: 200px; }
  .mlist { grid-template-columns: 1fr; }
  .dl__row { grid-template-columns: 1fr; gap: 4px; }
  .auth__quote { display: none; }
  .vstep { padding-left: 20px; }
  .spec { grid-template-columns: 1fr; }
  .spec > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .spec > div:first-child { border-top: 0; }
}

@media (max-width: 380px) {
  .brand__name { font-size: 0.95rem; }
  .brand__mark { width: 36px; height: 36px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .topbar, .site-footer, .cta-band, .drawer, .burger { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 24px; }
}
