/* ============================================================
   King Sago — website styles
   Self-contained: design tokens + layout scaffolds + form + responsive.
   Tokens copied from Design/colors_and_type.css (source of truth).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---------- Color: grounds ---------- */
  --bg-ink:        #0B0F1A;
  --bg-ink-2:      #0F172A;
  --bg-paper:      #F3F4F6;
  --bg-white:      #FFFFFF;

  /* ---------- Color: action (blue) ---------- */
  --blue-50:       #EFF6FF;
  --blue-100:      #DBEAFE;
  --blue-500:      #3B82F6;
  --blue-600:      #2563EB;   /* primary action */
  --blue-700:      #1D4ED8;   /* hover */
  --blue-800:      #1E40AF;

  /* ---------- Color: authority (gold) ----------
     Promoted from "rare accent" to the site's accent voice: eyebrows,
     icon chips, rules, numerals, checks, arrows. Blue still owns actions. */
  --gold-50:       #FBF7EA;
  --gold-100:      #F5EDD6;
  --gold-200:      #EDDFB4;
  --gold-300:      #E5CE8A;
  --gold-400:      #D8BA69;
  --gold-500:      #C9A84E;   /* logo gold — the brand anchor */
  --gold-600:      #A8862B;   /* accessible on white */
  --gold-700:      #8E762F;

  /* ---------- Color: grounds (extended) ---------- */
  --bg-ink-3:      #131C2E;   /* raised navy — cards on ink */
  --bg-ink-4:      #1B2740;   /* hover on ink */

  /* ---------- Color: text ---------- */
  --fg-primary:    #111827;
  --fg-secondary:  #6B7280;
  --fg-tertiary:   #9CA3AF;
  --fg-on-ink:     #FFFFFF;
  --fg-on-ink-2:   #9CA3AF;

  /* ---------- Color: lines ---------- */
  --line:          rgba(17, 24, 39, 0.08);
  --line-strong:   rgba(17, 24, 39, 0.14);
  --line-on-ink:   rgba(255, 255, 255, 0.08);

  /* ---------- Color: surfaces & overlays ---------- */
  --surface:        #FFFFFF;
  --nav-bg:         rgba(255, 255, 255, 0.82);
  --hover-overlay:  rgba(17, 24, 39, 0.04);

  /* ---------- Color: semantic status ---------- */
  --success:       #059669;
  --warning:       #D97706;
  --danger:        #DC2626;
  --info:          var(--blue-600);

  --status-success-bg:     #ECFDF5;
  --status-success-fg:     #065F46;
  --status-success-border: #A7F3D0;
  --status-error-bg:       #FEF2F2;
  --status-error-fg:       #991B1B;
  --status-error-border:   #FECACA;

  /* ---------- Typography families ----------
     Sora carries every heading: squared geometric forms with open counters
     that hold up at 800 weight. Inter stays on body copy and UI. */
  --font-display: 'Sora', 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---------- Typography scale ---------- */
  --fs-display:    88px;
  --fs-h1:         60px;
  --fs-h2:         46px;
  --fs-h3:         24px;
  --fs-h4:         19px;
  --fs-body:       16px;
  --fs-small:      14px;
  --fs-caption:    12px;

  --lh-display:    1.02;
  --lh-heading:    1.12;
  --lh-body:       1.65;

  --tracking-display:   -0.035em;
  --tracking-heading:   -0.025em;
  --tracking-body:       0em;
  --tracking-eyebrow:    0.18em;

  /* ---------- Headline weight ---------- */
  --fw-display:    800;
  --fw-heading:    700;

  /* ---------- Spacing (4px base) ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* ---------- Radii ---------- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* ---------- Elevation ---------- */
  --shadow-1: 0 1px 2px rgba(17,24,39,0.04), 0 1px 1px rgba(17,24,39,0.03);
  --shadow-2: 0 10px 30px -12px rgba(17,24,39,0.15), 0 2px 6px rgba(17,24,39,0.04);

  /* ---------- Motion ---------- */
  --ease:      cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-micro: 180ms;
  --dur-ui:    240ms;
  --dur-page:  400ms;

  /* ---------- Layout ---------- */
  --maxw-marketing: 1200px;
  --maxw-app:       1440px;
  --nav-height:     72px;

  color-scheme: light;
}

/* ---------- Dark mode overrides ---------- */
:root[data-theme="dark"] {
  --bg-ink-2:      #0F172A;
  --bg-paper:      #0F172A;
  --bg-white:      #0B0F1A;

  --surface:       #131C30;
  --nav-bg:        rgba(11, 15, 26, 0.82);
  --hover-overlay: rgba(255, 255, 255, 0.06);

  --blue-50:       rgba(59, 130, 246, 0.16);
  --blue-100:      rgba(59, 130, 246, 0.26);

  --fg-primary:    #F3F4F6;
  --fg-secondary:  #9CA3AF;
  --fg-tertiary:   #6B7280;

  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.16);

  --shadow-1: 0 1px 2px rgba(0,0,0,0.3), 0 1px 1px rgba(0,0,0,0.24);
  --shadow-2: 0 10px 30px -12px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.3);

  --status-success-bg:     rgba(5, 150, 105, 0.16);
  --status-success-fg:     #6EE7B7;
  --status-success-border: rgba(110, 231, 183, 0.32);
  --status-error-bg:       rgba(220, 38, 38, 0.16);
  --status-error-fg:       #FCA5A5;
  --status-error-border:   rgba(252, 165, 165, 0.32);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11', 'tnum';
  transition: background-color var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease);
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); }

h1, .h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  font-weight: var(--fw-display);
  color: var(--fg-primary);
}
h2, .h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  font-weight: var(--fw-display);
  color: var(--fg-primary);
}
h3, .h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: var(--fw-heading);
  color: var(--fg-primary);
}

p, .body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow-gold { color: var(--gold-400); }
:root[data-theme="dark"] .eyebrow { color: var(--gold-400); }

code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease);
}
a:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Button primitives
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--blue-600); color: #fff;
  box-shadow: 0 6px 18px -8px rgba(37, 99, 235, 0.7);
}
.btn-primary:hover {
  background: var(--blue-700); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(37, 99, 235, 0.75);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: transparent; color: var(--blue-600); border-color: var(--blue-600); }
.btn-secondary:hover { background: var(--blue-50); color: var(--blue-700); }

/* Gold outline — the accent voice on light grounds, no blue competition. */
.btn-gold { background: transparent; color: var(--gold-700); border-color: var(--gold-400); }
.btn-gold:hover { background: var(--gold-50); border-color: var(--gold-500); color: var(--gold-700); }
:root[data-theme="dark"] .btn-gold { color: var(--gold-300); border-color: rgba(201,168,78,0.4); }
:root[data-theme="dark"] .btn-gold:hover { background: rgba(201,168,78,0.1); color: var(--gold-300); }

.btn-ghost { background: transparent; color: var(--fg-primary); }
.btn-ghost:hover { background: var(--hover-overlay); }

/* on ink ground */
.btn-on-ink { background: transparent; color: #fff; border: 1px solid rgba(201,168,78,0.45); }
.btn-on-ink:hover { background: rgba(201,168,78,0.12); border-color: var(--gold-500); color: #fff; transform: translateY(-2px); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16.5px; }

.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

/* ============================================================
   Nav
   ============================================================ */
.ks-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 15, 26, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 78, 0.24); /* faint gold hairline */
  transition: background-color var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.ks-nav__inner {
  max-width: var(--maxw-marketing);
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.ks-brand { display:flex; align-items:center; gap:10px; text-decoration:none; color: #fff; }
.ks-brand:hover { text-decoration: none; color: #fff; }
/* Ornate transparent-background lockup. */
.ks-brand > img,
.ks-footer__brand-row > img { object-fit: contain; }
.ks-brand > img { width: 46px; height: 46px; }
.ks-footer__brand-row > img { width: 52px; height: 52px; }
.ks-brand__word { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.2em; color: var(--gold-500); }
.ks-nav__links { display:flex; align-items: center; gap: 34px; }
.ks-nav__links a {
  position: relative;
  font-family: var(--font-display);
  color: rgba(255,255,255,0.85); text-decoration:none; font-size: 14.5px; font-weight: 500;
}
/* Gold underline grows from the left on hover. */
.ks-nav__links > a::after,
.ks-nav__dropdown-toggle::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -7px;
  height: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-micro) var(--ease);
}
.ks-nav__links > a:hover::after,
.ks-nav__dropdown:hover .ks-nav__dropdown-toggle::after { transform: scaleX(1); }
.ks-nav__links a:hover { color: var(--gold-300); text-decoration: none; }
/* Current page keeps the gold underline showing. */
.ks-nav__links a[aria-current="page"] { color: var(--gold-300); }
.ks-nav__links > a[aria-current="page"]::after,
.ks-nav__dropdown-toggle[aria-current="page"]::after { transform: scaleX(1); }
.ks-nav__right { display:flex; align-items:center; gap: 16px; }

/* ---------- Nav dropdown (Services) ----------
   A wide menu: six service groups in a 3 x 2 grid, spanning the nav bar.
   The dropdown stretches to the full bar height and the menu hangs off
   .ks-nav__inner, so the pointer never crosses a gap on the way down. */
.ks-nav__inner { position: relative; }
.ks-nav__links { align-self: stretch; }
.ks-nav__dropdown { position: static; display: flex; align-items: center; align-self: stretch; }
.ks-nav__dropdown-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer;
}
.ks-nav__caret { transition: transform var(--dur-micro) var(--ease); }
.ks-nav__dropdown:hover .ks-nav__caret,
.ks-nav__dropdown:focus-within .ks-nav__caret { transform: rotate(180deg); }

.ks-nav__menu {
  position: absolute; top: 100%; left: 32px; right: 32px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-micro) var(--ease);
}
.ks-nav__dropdown:hover .ks-nav__menu,
.ks-nav__dropdown:focus-within .ks-nav__menu {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.ks-nav__menu-inner {
  padding: 20px 20px 0;
  background: rgba(15, 23, 42, 0.985);
  border: 1px solid rgba(201, 168, 78, 0.24);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  transform: translateY(-4px);
  transition: transform var(--dur-micro) var(--ease);
}
.ks-nav__dropdown:hover .ks-nav__menu-inner,
.ks-nav__dropdown:focus-within .ks-nav__menu-inner { transform: translateY(0); }

.ks-mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
.ks-mega__col { display: flex; flex-direction: column; min-width: 0; }
.ks-nav__links .ks-mega__col a {
  display: block;
  font-family: var(--font-sans); font-size: 13.5px; line-height: 1.35;
  color: rgba(255,255,255,0.68);
  padding: 5px 10px 5px 52px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
}
.ks-nav__links .ks-mega__col a.ks-mega__h {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; margin-bottom: 2px;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #fff;
}
.ks-mega__h svg {
  flex: none; width: 30px; height: 30px; padding: 6px;
  border-radius: 8px;
  background: rgba(201,168,78,0.14); color: var(--gold-400);
  border: 1px solid rgba(201,168,78,0.26);
}
.ks-nav__links .ks-mega__col a:hover { background: rgba(255,255,255,0.06); color: var(--gold-300); }
.ks-nav__links .ks-mega__col a.ks-mega__h[aria-current="page"] { color: var(--gold-300); }
.ks-mega__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 18px -20px 0; padding: 14px 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-size: 13.5px; color: rgba(255,255,255,0.58);
}
.ks-nav__links .ks-mega__foot a { font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; color: var(--gold-300); }
.ks-nav__links .ks-mega__foot a:hover { color: var(--gold-200); }

/* ---------- Mobile nav burger ---------- */
.ks-nav__burger {
  display: none;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}
.ks-nav__burger:hover { background: rgba(255,255,255,0.08); border-color: var(--gold-500); }
.ks-nav__burger:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.ks-nav__burger svg { width: 20px; height: 20px; }
.ks-nav__burger-icon--close { display: none; }
.ks-nav.is-menu-open .ks-nav__burger-icon--open { display: none; }
.ks-nav.is-menu-open .ks-nav__burger-icon--close { display: block; }

/* ---------- Theme toggle ---------- */
.ks-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
}
.ks-theme-toggle:hover { background: rgba(255,255,255,0.08); border-color: var(--gold-500); }
.ks-theme-toggle:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.ks-theme-toggle svg { width: 18px; height: 18px; }
.ks-theme-toggle__icon--moon { display: block; }
.ks-theme-toggle__icon--sun { display: none; }
:root[data-theme="dark"] .ks-theme-toggle__icon--moon { display: none; }
:root[data-theme="dark"] .ks-theme-toggle__icon--sun { display: block; }

/* ============================================================
   Hero
   ============================================================ */
.ks-hero {
  position: relative;
  background: linear-gradient(180deg, #0B0F1A 0%, #101A2E 100%);
  color: var(--fg-on-ink);
  padding: 100px 32px 104px;
  overflow: hidden;
}
/* One warm bloom behind the headline so the navy isn't dead flat. */
.ks-hero::before {
  content: "";
  position: absolute;
  top: -220px; left: -160px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(201,168,78,0.16) 0%, rgba(201,168,78,0) 68%);
  pointer-events: none;
}
.ks-hero__inner {
  position: relative;
  max-width: var(--maxw-marketing);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}
.ks-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
  text-wrap: balance;
  color:#fff; margin: 20px 0 22px;
}
.ks-hero__sub {
  max-width: 34em; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,0.74);
  margin: 0 0 34px;
}
.ks-hero__ctas { display:flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------- Hero visual: two real screens, stacked ---------- */
.ks-hero__visual { position: relative; padding: 24px 0 56px 48px; }
.ks-hero__screen {
  border-radius: 14px;
  overflow: hidden;
  background: #0E1626;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 80px -28px rgba(0,0,0,0.85), 0 0 0 1px rgba(201,168,78,0.08);
}
.ks-hero__screen-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.035);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ks-hero__screen-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.ks-hero__screen-bar span:first-child { background: var(--gold-500); }
.ks-hero__screen-url {
  margin-left: 8px; padding: 3px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 10.5px; color: rgba(255,255,255,0.5);
}
.ks-hero__screen img { display: block; width: 100%; height: auto; }

/* Second screen overlaps the first, bottom-left. */
.ks-hero__screen--float {
  position: absolute;
  left: 0; bottom: 0;
  width: 42%;
  z-index: 2;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.9);
}
.ks-hero__screen--float .ks-hero__screen-bar { padding: 8px 10px; }
.ks-hero__screen--float .ks-hero__screen-bar span { width: 7px; height: 7px; }

@media (max-width: 1080px) {
  .ks-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .ks-hero__visual { padding: 8px 0 48px 40px; max-width: 620px; }
}

/* ---------- Hero with the mockup funnel in place of the screens ---------- */
.ks-hero--funnel .ks-hero__inner { align-items: start; }
.ks-hero__funnel { color: var(--fg-primary); }
.ks-hero__funnel > .eyebrow { margin-bottom: 18px; }
.ks-hero__points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.ks-hero__points li {
  position: relative; padding-left: 30px;
  font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.74);
}
.ks-hero__points li strong { color: #fff; font-weight: 600; }
.ks-hero__points li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(201,168,78,0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ks-hero__proof { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.56); margin: 0; }
.ks-hero__proof a {
  color: rgba(255,255,255,0.86);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201,168,78,0.5);
}
.ks-hero__proof a:hover { color: #fff; }

.ks-pricing-teaser__ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* ============================================================
   Section scaffolds
   ============================================================ */
.ks-section {
  position: relative;
  padding: 112px 32px;
  background: var(--bg-white);
  transition: background-color var(--dur-ui) var(--ease);
}
.ks-section--paper { background: var(--bg-paper); }
.ks-section--ink { background: var(--bg-ink); color: #fff; }
.ks-container { max-width: var(--maxw-marketing); margin: 0 auto; }
.ks-section__title {
  font-family: var(--font-display);
  font-size: clamp(29px, 3.6vw, 46px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 800;
  text-wrap: balance;
  margin: 18px 0 18px; max-width: 16em;
}
.ks-section--ink .ks-section__title { color: #fff; }
.ks-section__sub   { font-size: 18.5px; color: var(--fg-secondary); max-width: 34em; margin: 0 0 56px; line-height: 1.65; }
.ks-section--ink .ks-section__sub { color: rgba(255,255,255,0.66); }
.ks-section--ink .eyebrow { color: var(--gold-400); }

/* Centred section header — the eyebrow is inline-flex, so it needs a flex parent. */
.ks-section__head--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ks-section__head--center .ks-section__title { max-width: 18em; }
.ks-section__head--center .ks-section__sub { margin-left: auto; margin-right: auto; }

.ks-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display);
  color: var(--blue-600); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.ks-link svg { transition: transform var(--dur-micro) var(--ease); }
.ks-link:hover { text-decoration: none; color: var(--blue-700); }
.ks-link:hover svg { transform: translateX(4px); }

/* ============================================================
   Band dividers — one shallow S-curve, masked so a single shape
   serves every colour pairing. --band-next is the colour of the
   section BELOW, sweeping up into the one it sits on.
   ============================================================ */
.ks-band { --band-next: var(--bg-white); }
.ks-band::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 68px;
  background-color: var(--band-next);
  -webkit-mask-image: var(--ks-wave);
  mask-image: var(--ks-wave);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}
:root {
  --ks-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 68' preserveAspectRatio='none'%3E%3Cpath d='M0 44 C 320 4, 700 74, 1440 12 L1440 68 L0 68 Z' fill='%23fff'/%3E%3C/svg%3E");
}
.ks-band--to-white  { --band-next: var(--bg-white); }
.ks-band--to-paper  { --band-next: var(--bg-paper); }
.ks-band--to-ink    { --band-next: var(--bg-ink); }

/* ============================================================
   Services (feature cards)
   ============================================================ */
.ks-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ks-feature-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px 30px;
  overflow: hidden;
  transition: box-shadow var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease);
}
/* Gold rule wipes across the top edge on hover. */
.ks-feature-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-ui) var(--ease);
}
.ks-feature-card:hover {
  box-shadow: 0 24px 48px -20px rgba(17,24,39,0.24), 0 4px 12px rgba(17,24,39,0.05);
  transform: translateY(-5px);
  border-color: var(--line-strong);
}
.ks-feature-card:hover::before { transform: scaleX(1); }
:root[data-theme="dark"] .ks-feature-card:hover { box-shadow: 0 24px 48px -20px rgba(0,0,0,0.7); }

.ks-feature-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gold-100); color: var(--gold-700);
  border: 1px solid var(--gold-200);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 22px;
  transition: background-color var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease);
}
.ks-feature-card__icon svg { width: 22px; height: 22px; }
.ks-feature-card:hover .ks-feature-card__icon { background: var(--gold-500); color: #fff; border-color: var(--gold-500); }
:root[data-theme="dark"] .ks-feature-card__icon { background: rgba(201,168,78,0.14); border-color: rgba(201,168,78,0.28); color: var(--gold-300); }

.ks-feature-card__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; }
.ks-feature-card__desc  { font-size: 15px; color: var(--fg-secondary); line-height: 1.65; margin: 0 0 18px; }
.ks-feature-card .ks-link { margin-top: auto; }

/* ============================================================
   Our work (portfolio)
   ============================================================ */
/* ---- Slideshow / carousel ---- */
.ks-work-carousel { position: relative; max-width: 720px; margin: 8px auto 0; }
.ks-work-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 6px;            /* headroom for the card's hover lift + shadow */
}
.ks-work-track::-webkit-scrollbar { display: none; }
.ks-work-carousel .ks-work-card { flex: 0 0 100%; scroll-snap-align: start; }

.ks-work-arrow {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--fg-primary);
  box-shadow: var(--shadow-2);
  cursor: pointer; z-index: 3;
  transition: background var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease);
}
.ks-work-arrow:hover { border-color: var(--gold-500); color: var(--gold-700); }
:root[data-theme="dark"] .ks-work-arrow:hover { color: var(--gold-300); }
.ks-work-arrow:active { transform: translateY(-50%) scale(0.94); }
.ks-work-arrow:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.ks-work-arrow--prev { left: -23px; }
.ks-work-arrow--next { right: -23px; }

.ks-work-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.ks-work-dot {
  width: 8px; height: 8px; padding: 0;
  border: none; border-radius: var(--radius-full);
  background: var(--line-strong); cursor: pointer;
  transition: background var(--dur-micro) var(--ease), width var(--dur-micro) var(--ease);
}
.ks-work-dot:hover { background: var(--fg-tertiary); }
.ks-work-dot.is-active { background: var(--gold-500); width: 24px; }
.ks-work-dot:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }

.ks-work-card {
  display:flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.ks-work-card:hover {
  box-shadow: 0 32px 64px -24px rgba(17,24,39,0.32), 0 6px 16px rgba(17,24,39,0.06);
  transform: translateY(-6px);
  border-color: var(--gold-300);
  text-decoration: none;
}
:root[data-theme="dark"] .ks-work-card:hover { box-shadow: 0 32px 64px -24px rgba(0,0,0,0.8); }
a.ks-work-card:hover { text-decoration: none; }

.ks-work-card__frame { background: var(--bg-ink); }
.ks-work-card__bar { display:flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ks-work-card__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.ks-work-card__bar span:first-child { background: var(--gold-500); opacity: 0.85; } /* gold hint */

.ks-work-card__shot {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(160deg, #0B0F1A 0%, #0F172A 100%);
}
.ks-work-card__shot::after {
  content: attr(data-label);
  position: absolute; inset: 0; z-index: 0;
  display:flex; align-items:center; justify-content:center;
  padding: 16px; text-align:center;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
  color: var(--gold-500);
}
.ks-work-card__shot img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.ks-work-card__shot--split { display: flex; }
.ks-work-card__shot--split img {
  position: relative; z-index: 1;
  width: 50%; height: 100%; flex: 1 1 50%;
}
.ks-work-card__shot--split img:first-child { border-right: 1px solid rgba(255,255,255,0.1); }
.ks-work-card__meta { padding: 20px 22px 22px; display:flex; flex-direction: column; gap: 6px; }
.ks-work-card__name { font-size: 17px; font-weight: 600; }
.ks-work-card__desc { font-size: 14px; color: var(--fg-secondary); line-height: 1.55; }
.ks-work-card__tag { margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); }
:root[data-theme="dark"] .ks-work-card__tag { color: var(--gold-500); }

/* ============================================================
   Process (steps) — numbered badges + connector
   ============================================================ */
.ks-steps { position: relative; display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
/* Dashed connector reads as a timeline, not a border. */
.ks-steps::before {
  content: ""; position: absolute; top: 36px; left: 16.6%; right: 16.6%;
  height: 2px; z-index: 0;
  background-image: linear-gradient(90deg, rgba(201,168,78,0.5) 55%, rgba(201,168,78,0) 0);
  background-size: 12px 2px;
  background-repeat: repeat-x;
}
.ks-step {
  position: relative; z-index: 1;
  display:flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 0 12px;
}
.ks-step__badge {
  width: 72px; height: 72px; border-radius: var(--radius-full);
  background: var(--gold-500); color: var(--bg-ink);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display);
  font-size: 27px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 8px var(--bg-ink), 0 0 0 9px rgba(201,168,78,0.28), 0 10px 30px -8px rgba(201,168,78,0.45);
}
.ks-step__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.02em; margin-top: 14px; }
.ks-step__meta {
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--gold-400);
  padding: 5px 12px; border-radius: var(--radius-full);
  background: rgba(201,168,78,0.1); border: 1px solid rgba(201,168,78,0.22);
}
.ks-step__desc { font-size: 15.5px; color: rgba(255,255,255,0.66); line-height: 1.65; max-width: 30ch; }

/* ============================================================
   Why (reasons grid) — reuses .ks-feature-card
   ============================================================ */
.ks-why-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }

/* ============================================================
   Pricing — homepage teaser band
   ============================================================ */
.ks-pricing-teaser {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  background: var(--bg-ink);
  border: 1px solid rgba(201,168,78,0.28);
  border-radius: 20px;
  padding: 52px 56px;
  overflow: hidden;
  box-shadow: 0 32px 64px -28px rgba(11,15,26,0.55);
  margin-top: 24px;
  transition: background-color var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.ks-pricing-teaser::before {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(201,168,78,0.22) 0%, rgba(201,168,78,0) 70%);
  pointer-events: none;
}
.ks-pricing-teaser > * { position: relative; }
.ks-pricing-teaser__price {
  font-family: var(--font-display);
  font-size: 62px; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  color: var(--gold-400);
}
.ks-pricing-teaser__price span { font-size: 20px; font-weight: 600; color: rgba(255,255,255,0.62); letter-spacing: -0.01em; margin-left: 10px; }
.ks-pricing-teaser__desc { font-size: 16.5px; color: rgba(255,255,255,0.7); line-height: 1.65; margin: 18px 0 0; max-width: 46ch; }

/* ============================================================
   Pricing page — single plan card
   ============================================================ */
.ks-plan {
  max-width: 460px; margin: 8px auto 0; text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 40px;
  transition: background-color var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.ks-plan__name { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); }
:root[data-theme="dark"] .ks-plan__name { color: var(--gold-500); }
.ks-plan__price { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-top: 10px; color: var(--fg-primary); }
.ks-plan__price span { font-size: 18px; font-weight: 500; color: var(--fg-secondary); letter-spacing: 0; }
.ks-plan__note { font-size: 14px; color: var(--fg-secondary); margin: 8px 0 0; }
.ks-plan__list { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-direction: column; gap: 14px; }
.ks-plan__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--fg-primary); line-height: 1.5; }
.ks-plan__list li svg { color: var(--gold-500); flex-shrink: 0; margin-top: 3px; }
.ks-plan .btn { width: 100%; }
.ks-plan__aside { max-width: 460px; margin: 20px auto 0; text-align: center; font-size: 14px; color: var(--fg-secondary); }

/* ============================================================
   FAQ (accordion)
   ============================================================ */
.ks-faq { max-width: 860px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 14px; }
.ks-faq__item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.ks-faq__item:hover { border-color: var(--gold-300); }
.ks-faq__item[open] {
  border-color: var(--gold-400);
  box-shadow: 0 18px 40px -22px rgba(17,24,39,0.28);
}
:root[data-theme="dark"] .ks-faq__item[open] { box-shadow: 0 18px 40px -22px rgba(0,0,0,0.7); }
.ks-faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 26px;
  font-family: var(--font-display);
  font-size: 18.5px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg-primary);
}
.ks-faq__q::-webkit-details-marker { display: none; }
.ks-faq__q svg {
  flex-shrink: 0; width: 30px; height: 30px; padding: 5px;
  border-radius: var(--radius-full);
  background: var(--gold-100); color: var(--gold-700);
  transition: transform var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease);
}
:root[data-theme="dark"] .ks-faq__q svg { background: rgba(201,168,78,0.14); color: var(--gold-300); }
.ks-faq__item[open] .ks-faq__q svg { transform: rotate(180deg); background: var(--gold-500); color: #fff; }
.ks-faq__a { padding: 0 26px 26px; margin: 0; font-size: 16px; color: var(--fg-secondary); line-height: 1.75; max-width: 68ch; }

/* ============================================================
   Contact / quote form
   ============================================================ */
.ks-contact { display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.ks-contact__intro .ks-section__title { margin-top: 12px; }
.ks-contact__meta { margin-top: 28px; display:flex; flex-direction: column; gap: 14px; }
.ks-contact__meta-item { display:flex; align-items:center; gap: 12px; color: var(--fg-secondary); font-size: 15px; }
.ks-contact__meta-item svg { color: var(--blue-600); flex-shrink: 0; }
.ks-contact__meta-item a { color: var(--fg-primary); font-weight: 500; }

.ks-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-1);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  transition: background-color var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.ks-field { display:flex; flex-direction: column; gap: 7px; }
.ks-field--full { grid-column: 1 / -1; }
.ks-field label { font-size: 13px; font-weight: 600; color: var(--fg-primary); }
.ks-field label .req { color: var(--danger); margin-left: 2px; }
.ks-input, .ks-select, .ks-textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg-primary);
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  transition: border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
  width: 100%;
}
.ks-input:hover, .ks-select:hover, .ks-textarea:hover { border-color: var(--fg-tertiary); }
.ks-input:focus, .ks-select:focus, .ks-textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-50);
}
.ks-textarea { min-height: 120px; resize: vertical; }
.ks-form__actions { grid-column: 1 / -1; display:flex; align-items:center; gap: 16px; flex-wrap: wrap; }
.ks-form__note { font-size: 13px; color: var(--fg-tertiary); }
.ks-form__note a { color: var(--fg-secondary); }

.ks-form__status { grid-column: 1 / -1; font-size: 14px; border-radius: var(--radius-sm); padding: 12px 14px; display: none; }
.ks-form__status.is-visible { display: block; }
.ks-form__status.is-success { background: var(--status-success-bg); color: var(--status-success-fg); border: 1px solid var(--status-success-border); }
.ks-form__status.is-error { background: var(--status-error-bg); color: var(--status-error-fg); border: 1px solid var(--status-error-border); }

/* ============================================================
   Quote funnel (multi-step survey) — replaces the single-step form
   ============================================================ */
.is-hidden { display: none !important; }

.ks-funnel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-2);
  transition: background-color var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}

.ks-funnel__progress { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.ks-funnel__bar { flex: 1; height: 6px; border-radius: var(--radius-full); background: var(--line-strong); overflow: hidden; }
.ks-funnel__bar-fill { height: 100%; width: 20%; background: var(--gold-500); border-radius: inherit; transition: width var(--dur-ui) var(--ease); }
.ks-funnel__count { font-family: var(--font-mono); font-size: 12px; color: var(--fg-secondary); white-space: nowrap; }

.ks-funnel__step { display: none; }
.ks-funnel__step.is-active { display: block; animation: ksFunnelIn var(--dur-ui) var(--ease); }
@keyframes ksFunnelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ks-funnel__q { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 6px; color: var(--fg-primary); }
.ks-funnel__hint { font-size: 14px; color: var(--fg-secondary); line-height: 1.55; margin: 0 0 22px; }
.ks-funnel__hint a { color: var(--blue-600); font-weight: 500; }

.ks-funnel__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ks-funnel__option {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 16px 18px; cursor: pointer;
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease), background-color var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease);
}
.ks-funnel__option:hover { border-color: var(--blue-500); background: var(--blue-50); }
.ks-funnel__option:active { transform: translateY(1px); }
.ks-funnel__option:has(input:checked) { border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-50); background: var(--blue-50); }
.ks-funnel__option:has(input:focus-visible) { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.ks-funnel__option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ks-funnel__option .opt-title { font-size: 15px; font-weight: 600; color: var(--fg-primary); }
.ks-funnel__option .opt-desc { font-size: 13px; color: var(--fg-secondary); line-height: 1.45; }

.ks-funnel__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ks-funnel__fields .ks-field--full { grid-column: 1 / -1; }

.ks-funnel__consent { font-size: 13px; color: var(--fg-tertiary); line-height: 1.6; margin: 20px 0 0; }
.ks-funnel__consent a { color: var(--blue-600); font-weight: 500; }

.ks-funnel__status { font-size: 14px; border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 18px; display: none; }
.ks-funnel__status.is-visible { display: block; }
.ks-funnel__status.is-success { background: var(--status-success-bg); color: var(--status-success-fg); border: 1px solid var(--status-success-border); }
.ks-funnel__status.is-error { background: var(--status-error-bg); color: var(--status-error-fg); border: 1px solid var(--status-error-border); }

.ks-funnel__nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.ks-funnel__back { margin-right: auto; }
.ks-funnel__nav .btn-primary { min-width: 148px; }

.ks-funnel__done { text-align: center; padding: 20px 8px 8px; animation: ksFunnelIn var(--dur-ui) var(--ease); }
.ks-funnel__done-icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--status-success-bg); color: var(--success);
}
:root[data-theme="dark"] .ks-funnel__done-icon { color: var(--status-success-fg); }
.ks-funnel__done .ks-funnel__q { text-align: center; }
.ks-funnel__done .ks-funnel__hint { text-align: center; margin-bottom: 0; }

/* Optional account on the thank-you panel. Reuses the sign-in page's password toggle. */
.ks-funnel__account { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.ks-funnel__account-title { font-size: 16px; font-weight: 600; color: var(--fg-primary); margin: 0 0 4px; }
.ks-funnel__account-sub { font-size: 14px; color: var(--fg-secondary); line-height: 1.55; margin: 0 0 14px; }
.ks-funnel__account-sub a { color: var(--blue-600); font-weight: 500; }
.ks-funnel__account-row { display: flex; gap: 10px; text-align: left; }
.ks-funnel__account-row .ks-auth__pw { flex: 1; min-width: 0; }
.ks-funnel__account .ks-auth__pw .ks-input { width: 100%; padding-right: 48px; }
.ks-funnel__account .ks-funnel__status { text-align: left; }
.ks-funnel__status a { color: inherit; font-weight: 600; text-decoration: underline; }

@media (max-width: 460px) {
  .ks-funnel { padding: 24px; }
  .ks-funnel__options, .ks-funnel__fields { grid-template-columns: 1fr; }
  .ks-funnel__account-row { flex-direction: column; }
  .ks-funnel__nav { flex-wrap: wrap; }
  .ks-funnel__nav .btn { flex: 1; }
  .ks-funnel__back { margin-right: 0; }
}

/* ============================================================
   CTA
   ============================================================ */
.ks-cta {
  position: relative;
  background: var(--bg-ink); color: #fff;
  padding: 128px 32px 120px;
  overflow: hidden;
}
.ks-cta::before {
  content: "";
  position: absolute; left: 50%; top: -180px; transform: translateX(-50%);
  width: 900px; height: 620px;
  background: radial-gradient(ellipse, rgba(201,168,78,0.15) 0%, rgba(201,168,78,0) 68%);
  pointer-events: none;
}
.ks-cta__inner {
  position: relative;
  max-width: var(--maxw-marketing); margin: 0 auto;
  display:flex; flex-direction:column; align-items:center; text-align: center; gap: 20px;
}
.ks-cta__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 56px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05;
  text-wrap: balance;
  margin: 0; max-width: 15em; color:#fff;
}
.ks-cta__sub   { font-size: 19px; color: rgba(255,255,255,0.68); margin: 0; max-width: 34em; }
.ks-cta__ctas  { display:flex; gap: 20px; align-items: center; margin-top: 18px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.ks-footer { background: var(--bg-ink); color: #fff; padding: 72px 32px 32px; border-top: 1px solid rgba(201,168,78,0.2); }
.ks-footer__inner { max-width: var(--maxw-marketing); margin: 0 auto; }
.ks-footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ks-footer__brand-row { display:flex; align-items:center; gap: 10px; }
.ks-footer__brand-word { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.2em; color: var(--gold-500); }
.ks-footer__tag { color: rgba(255,255,255,0.58); margin-top: 16px; font-size: 14.5px; max-width: 32ch; line-height: 1.65; }
.ks-footer__col { display:flex; flex-direction: column; gap: 11px; }
.ks-footer__h {
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 8px;
}
.ks-footer__col a { color: rgba(255,255,255,0.78); font-size: 14.5px; text-decoration: none; transition: color var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease); }
.ks-footer__col a:hover { color: var(--gold-300); text-decoration: none; transform: translateX(3px); }
.ks-footer__bottom { display:flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.5); flex-wrap: wrap; }

/* ============================================================
   Responsive — the design kit shipped without breakpoints.
   ============================================================ */
@media (max-width: 980px) {
  .ks-features { grid-template-columns: repeat(2, 1fr); }
  .ks-why-grid { grid-template-columns: repeat(2, 1fr); }
  .ks-pricing-teaser { grid-template-columns: 1fr; gap: 28px; padding: 36px; }
  .ks-pricing-teaser__price { font-size: 50px; }
  .ks-steps    { grid-template-columns: 1fr; gap: 40px; }
  .ks-steps::before { display: none; }
  .ks-step__badge { box-shadow: 0 0 0 8px var(--bg-ink), 0 0 0 9px rgba(201,168,78,0.28); }
  .ks-contact  { grid-template-columns: 1fr; gap: 40px; }
  .ks-section { padding: 84px 32px; }
  .ks-band::after { height: 46px; }
}

@media (max-width: 720px) {
  .ks-nav__burger { display: inline-flex; }

  /* Nav links become a dropdown drawer under the bar, opened by the burger. */
  .ks-nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    background: var(--bg-ink);
    border-bottom: 1px solid rgba(201, 168, 78, 0.24);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease), visibility var(--dur-ui);
  }
  .ks-nav.is-menu-open .ks-nav__links {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  }
  .ks-nav__links > a, .ks-nav__dropdown-toggle { width: 100%; padding: 16px 20px; }
  .ks-nav__links > a::after, .ks-nav__dropdown-toggle::after { display: none; }
  .ks-nav__dropdown { flex-direction: column; align-items: stretch; align-self: auto; width: 100%; }
  .ks-nav__dropdown-toggle { justify-content: space-between; }
  .ks-nav__dropdown.is-open .ks-nav__caret { transform: rotate(180deg); }

  /* Services mega menu: tap to expand in place instead of hovering. */
  .ks-nav__menu {
    position: static;
    opacity: 1; visibility: visible; pointer-events: auto;
    max-height: 0; overflow: hidden;
    transition: max-height var(--dur-ui) var(--ease);
  }
  .ks-nav__dropdown.is-open .ks-nav__menu { max-height: 1600px; }
  .ks-nav__menu-inner {
    padding: 4px 12px 12px;
    background: rgba(255,255,255,0.02);
    border: none; border-radius: 0; box-shadow: none; transform: none;
  }
  .ks-mega__grid { grid-template-columns: 1fr; gap: 4px; }
  .ks-nav__links .ks-mega__col a { padding-left: 44px; }
  .ks-mega__foot {
    flex-direction: column; align-items: flex-start; gap: 8px;
    margin: 12px -12px 0; padding: 14px 12px; border-radius: 0;
  }

  .ks-nav__inner, .ks-hero, .ks-section, .ks-cta, .ks-footer, .ks-stats { padding-left: 20px; padding-right: 20px; }
  .ks-hero { padding-top: 72px; padding-bottom: 88px; }
  .ks-section { padding-top: 64px; padding-bottom: 64px; }
  .ks-hero__sub, .ks-section__sub { font-size: 16.5px; }
  .ks-hero__ctas .btn, .ks-hero__ctas { width: 100%; }
  .ks-hero__ctas .btn { flex: 1; }
  .ks-hero__visual { padding-left: 0; padding-bottom: 0; }
  .ks-hero__screen--float { position: relative; width: 72%; margin: -28px 0 0 auto; }
  .ks-form { grid-template-columns: 1fr; padding: 24px; }
  .ks-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ks-pricing-teaser { padding: 28px; }
  .ks-pricing-teaser__price { font-size: 42px; }
  .ks-band::after { height: 32px; }

  /* Keep the slideshow arrows on-screen once there's no room outside the card */
  .ks-work-arrow--prev { left: 8px; }
  .ks-work-arrow--next { right: 8px; }
}

@media (max-width: 460px) {
  .ks-features { grid-template-columns: 1fr; }
  .ks-why-grid { grid-template-columns: 1fr; }
  .ks-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   Pricing page — live-animal e-commerce tiers
   ============================================================ */
/* Header, cards, and buttons are sized to fit one laptop screen (~1440×800);
   the full feature lists and the fine print live in dropdowns. */
.ks-section--tiers { padding-top: 32px; }

.ks-tiers__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ks-tiers__head .ks-section__title {
  font-size: clamp(29px, 3vw, 38px);
  max-width: none; margin: 8px 0;
}
.ks-tiers__head .ks-section__sub { font-size: 17px; max-width: 48em; margin: 0 auto 28px; }

.ks-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 8px;
}

.ks-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 20px 20px 18px;
  height: 100%;
  transition: background-color var(--dur-ui) var(--ease),
              border-color var(--dur-ui) var(--ease),
              box-shadow var(--dur-ui) var(--ease);
}
.ks-tier:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }

.ks-tier--featured {
  border-top-color: var(--gold-500);
  box-shadow: var(--shadow-2);
}

.ks-tier__badge {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--gold-500);
  color: #1A1408;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.ks-tier__name {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-secondary);
}
.ks-tier--featured .ks-tier__name { color: var(--gold-700); }
:root[data-theme="dark"] .ks-tier--featured .ks-tier__name { color: var(--gold-500); }

.ks-tier__for {
  font-size: 14px; color: var(--fg-secondary);
  line-height: 1.5; margin: 4px 0 0; min-height: 21px;
}

.ks-tier__price {
  font-size: 34px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05;
  margin-top: 10px; color: var(--fg-primary);
}
.ks-tier__price span {
  font-size: 15px; font-weight: 500;
  color: var(--fg-secondary); letter-spacing: 0; margin-left: 6px;
}
.ks-tier__mo {
  font-size: 18px; font-weight: 600;
  color: var(--fg-primary); margin-top: 4px; letter-spacing: -0.01em;
}
.ks-tier__mo span { font-size: 14px; font-weight: 500; color: var(--fg-secondary); }

.ks-tier .btn { width: 100%; height: 44px; margin-top: 14px; }

.ks-tier__inherit {
  font-size: 13px; font-weight: 600;
  color: var(--fg-secondary);
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ks-tier__list {
  list-style: none; padding: 0;
  margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 6px;
}
.ks-tier__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--fg-primary); line-height: 1.5;
}
.ks-tier__list li::before {
  content: "";
  width: 15px; height: 15px;
  flex-shrink: 0; margin-top: 3px;
  background: var(--gold-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ks-tier__more { margin-top: 10px; }
.ks-tier__more summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--gold-600);
}
:root[data-theme="dark"] .ks-tier__more summary { color: var(--gold-400); }
.ks-tier__more summary::-webkit-details-marker { display: none; }
.ks-tier__more summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.ks-tier__more summary svg { transition: transform var(--dur-ui) var(--ease); }
.ks-tier__more[open] summary svg { transform: rotate(180deg); }
.ks-tier__more .ks-tier__list { margin-top: 12px; }

.ks-tiers__faq { margin-top: 48px; }

/* Short laptop screens (1366×768 and similar): trim the header so the cards still fit. */
@media (min-width: 1181px) and (max-height: 700px) {
  .ks-section--tiers { padding-top: 20px; }
  .ks-tiers__head .eyebrow { display: none; }
  .ks-tiers__head .ks-section__title { margin-top: 0; }
  .ks-tiers__head .ks-section__sub { margin-bottom: 22px; }
  .ks-tier__price { font-size: 30px; margin-top: 8px; }
  .ks-tier .btn { margin-top: 10px; }
  .ks-tier__list { gap: 4px; }
}

@media (max-width: 1180px) {
  .ks-tiers { grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .ks-tiers { grid-template-columns: 1fr; gap: 32px; max-width: 520px; }
  .ks-tier__for { min-height: 0; }
}

/* ============================================================
   Legal pages — terms of use, privacy, DPA
   Long-form prose with a sticky section index. Numbering comes
   from a CSS counter so sections can be added or reordered in
   the markup without renumbering by hand.
   ============================================================ */
.ks-legal-head__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin: 0;
}

.ks-legal {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.ks-legal__toc { position: sticky; top: calc(var(--nav-height) + 28px); display: flex; flex-direction: column; gap: 2px; }
.ks-legal__toc-h {
  font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--fg-tertiary); margin-bottom: 12px;
}
.ks-legal__toc a {
  font-size: 13px; line-height: 1.45; color: var(--fg-secondary); text-decoration: none;
  border-left: 2px solid var(--line); padding: 6px 0 6px 14px;
  transition: color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}
.ks-legal__toc a:hover { color: var(--fg-primary); border-left-color: var(--gold-500); text-decoration: none; }

.ks-legal__body { max-width: 760px; counter-reset: ks-legal-section; }
.ks-legal__body section { scroll-margin-top: calc(var(--nav-height) + 24px); }
.ks-legal__body section + section { margin-top: 48px; }

.ks-legal__h {
  counter-increment: ks-legal-section;
  display: flex; align-items: baseline; gap: 12px;
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--fg-primary); margin: 0 0 4px;
}
.ks-legal__h::before {
  content: counter(ks-legal-section);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--gold-600); flex-shrink: 0;
}
:root[data-theme="dark"] .ks-legal__h::before { color: var(--gold-500); }

.ks-legal__body p { font-size: 16px; line-height: 1.75; color: var(--fg-secondary); margin: 14px 0; }
.ks-legal__body strong { color: var(--fg-primary); font-weight: 600; }
.ks-legal__body a { color: var(--blue-600); text-decoration: none; }
.ks-legal__body a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ks-legal__body code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--hover-overlay); color: var(--fg-primary);
  padding: 2px 6px; border-radius: var(--radius-sm);
}

.ks-legal__body h3 {
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  color: var(--fg-primary); margin: 26px 0 0;
}

.ks-legal__body ul { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ks-legal__body li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.7; color: var(--fg-secondary); }
.ks-legal__body li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500);
}

.ks-legal__summary {
  background: var(--bg-paper); border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 26px 28px; margin: 0 0 48px;
}
:root[data-theme="dark"] .ks-legal__summary { background: var(--surface); }
.ks-legal__summary-h { font-size: 15px; font-weight: 600; color: var(--fg-primary); margin: 0 0 4px; }
.ks-legal__summary p { font-size: 15px; margin: 10px 0 0; }
.ks-legal__summary ul { margin: 12px 0 0; gap: 8px; }
.ks-legal__summary li { font-size: 15px; }

.ks-legal__table-wrap { overflow-x: auto; margin: 18px 0 0; }
.ks-legal__table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.ks-legal__table th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-tertiary);
  padding: 0 16px 10px 0; border-bottom: 1px solid var(--line-strong);
}
.ks-legal__table td {
  padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line);
  color: var(--fg-secondary); line-height: 1.6; vertical-align: top;
}
.ks-legal__table td:first-child { color: var(--fg-primary); font-weight: 500; white-space: nowrap; }
.ks-legal__table tr:last-child td { border-bottom: none; }

.ks-legal__contact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 28px; margin-top: 18px;
  display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--fg-secondary);
}
.ks-legal__contact a { font-weight: 500; }

.ks-legal__note { font-size: 13px; color: var(--fg-tertiary); line-height: 1.7; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Footer legal row */
.ks-footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.ks-footer__legal a { color: rgba(255,255,255,0.5); text-decoration: none; }
.ks-footer__legal a:hover { color: var(--gold-300); text-decoration: none; }

@media (max-width: 980px) {
  .ks-legal { grid-template-columns: 1fr; gap: 40px; }
  .ks-legal__toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .ks-legal__toc-h { width: 100%; margin-bottom: 4px; }
  .ks-legal__toc a { border-left: none; padding: 0; }
  .ks-legal__toc a:hover { border-left: none; }
}

/* ============================================================
   Fact strip — sits on the ink ground under the hero.
   Four things that are true and checkable, not invented metrics.
   ============================================================ */
.ks-stats {
  position: relative;
  background: var(--bg-ink-3);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 44px 32px;
}
.ks-stats__inner {
  max-width: var(--maxw-marketing);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.ks-stat { display: flex; flex-direction: column; gap: 7px; padding-left: 20px; border-left: 2px solid rgba(201,168,78,0.35); }
.ks-stat__num {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--gold-400);
}
.ks-stat__label { font-size: 14.5px; color: rgba(255,255,255,0.62); line-height: 1.5; }

/* ============================================================
   Alternating service rows — the copy and a CSS-drawn screen of
   the thing being described, sides swapping down the page.
   ============================================================ */
.ks-rows { display: flex; flex-direction: column; gap: 104px; margin-top: 8px; }
.ks-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 72px;
  align-items: center;
}
.ks-row:nth-child(even) .ks-row__copy  { order: 2; }
.ks-row:nth-child(even) .ks-row__media { order: 1; }
.ks-row__title {
  font-family: var(--font-display);
  font-size: clamp(25px, 2.8vw, 35px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12;
  margin: 16px 0 16px;
}
.ks-row__desc { font-size: 17.5px; color: var(--fg-secondary); line-height: 1.7; margin: 0 0 26px; max-width: 40ch; }

.ks-checks { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 13px; }
.ks-checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.55; color: var(--fg-primary); }
.ks-checks li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px; margin-top: 1px;
  border-radius: var(--radius-full);
  background: var(--gold-100);
  border: 1px solid var(--gold-300);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E762F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
:root[data-theme="dark"] .ks-checks li::before {
  background-color: rgba(201,168,78,0.16);
  border-color: rgba(201,168,78,0.34);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5CE8A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- The drawn screens ---------- */
.ks-vig {
  border-radius: 16px;
  overflow: hidden;
  background: #0E1626;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 36px 72px -30px rgba(11,15,26,0.6);
  transition: transform var(--dur-page) var(--ease), box-shadow var(--dur-page) var(--ease);
}
.ks-row:hover .ks-vig { transform: translateY(-6px); box-shadow: 0 46px 88px -32px rgba(11,15,26,0.7); }
.ks-vig__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ks-vig__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.ks-vig__bar i:first-child { background: var(--gold-500); }
.ks-vig__tag {
  margin-left: 8px; padding: 3px 11px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.45);
}
.ks-vig__body { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 268px; }

/* primitives shared by every vignette */
.ks-vig-line { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.14); }
.ks-vig-line.is-gold { background: rgba(201,168,78,0.55); }
.ks-vig-line.is-dim  { background: rgba(255,255,255,0.08); }
.ks-vig-pill {
  align-self: flex-start;
  padding: 8px 18px; border-radius: 6px;
  background: var(--gold-500);
  font-family: var(--font-display); font-size: 11px; font-weight: 700; color: #10182A;
}
.ks-vig-grid { display: grid; gap: 10px; }
.ks-vig-card {
  border-radius: 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.ks-vig-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}
.ks-vig-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--gold-400); }
.ks-vig-dot.is-ok { background: #4FB894; }
.ks-vig-num {
  font-family: var(--font-display); font-size: 21px; font-weight: 800;
  letter-spacing: -0.03em; color: var(--gold-400); line-height: 1;
}
.ks-vig-cap { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: rgba(255,255,255,0.38); text-transform: uppercase; }
.ks-vig-swatch { height: 52px; border-radius: 8px; }
.ks-vig-mark {
  width: 60px; height: 60px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(201,168,78,0.14);
  border: 1px solid rgba(201,168,78,0.32);
  font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--gold-300);
}
.ks-vig-spec {
  font-family: var(--font-display); font-size: 46px; font-weight: 800;
  letter-spacing: -0.04em; color: #fff; line-height: 1;
}

/* per-service arrangement */
.ks-vig--site .ks-vig__hero {
  border-radius: 9px; padding: 18px;
  background: linear-gradient(140deg, rgba(201,168,78,0.16), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column; gap: 10px;
}
.ks-vig--site .ks-vig-grid { grid-template-columns: repeat(3, 1fr); }
.ks-vig--app  .ks-vig-grid { grid-template-columns: repeat(3, 1fr); }
.ks-vig--brand .ks-vig-grid { grid-template-columns: repeat(3, 1fr); }
.ks-vig--brand .ks-vig__top { display: flex; align-items: center; gap: 14px; }

@media (max-width: 900px) {
  .ks-row { grid-template-columns: 1fr; gap: 36px; }
  .ks-row:nth-child(even) .ks-row__copy  { order: 0; }
  .ks-row:nth-child(even) .ks-row__media { order: 0; }
  .ks-rows { gap: 72px; }
}

/* uptime ticks + brand lockup rows inside the drawn screens */
.ks-vig-ticks { display: flex; gap: 3px; align-items: flex-end; height: 38px; }
.ks-vig-ticks span { flex: 1; height: 100%; border-radius: 2px; background: rgba(79,184,148,0.85); }
.ks-vig-ticks span.is-warn { height: 74%; background: rgba(201,168,78,0.85); }
.ks-vig__top-lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }

/* Arrow link on an ink ground (CTA band). */
.ks-link--on-ink { color: var(--gold-300); }
.ks-link--on-ink:hover { color: var(--gold-200); }

/* ============================================================
   Responsive for the components defined above.
   These must live after their base rules — an earlier media
   query loses to a later declaration at equal specificity.
   ============================================================ */
@media (max-width: 980px) {
  .ks-stats__inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
  .ks-vig__body { min-height: 0; }
}
@media (max-width: 520px) {
  .ks-stats__inner { grid-template-columns: 1fr; gap: 20px; }
  .ks-stat__num { font-size: 26px; }
}

/* The eyebrow is inline-flex, so centring it means centring the box, not its text. */
.eyebrow--center { display: flex; justify-content: center; }

/* On a dark page the drawn screens need a stronger edge to read as objects. */
:root[data-theme="dark"] .ks-vig,
:root[data-theme="dark"] .ks-hero__screen { border-color: rgba(255,255,255,0.17); }

/* ============================================================
   Our Work page — the portfolio laid out as a grid rather than
   the homepage slideshow, plus the per-project detail list.
   ============================================================ */
.ks-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; margin-top: 8px; }
.ks-work-grid .ks-work-card { height: 100%; }
.ks-work-card__points { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ks-work-card__points li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.5; color: var(--fg-secondary); }
.ks-work-card__points li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); }
.ks-work-card__link { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--gold-700); }
:root[data-theme="dark"] .ks-work-card__link { color: var(--gold-500); }

@media (max-width: 980px) {
  .ks-work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .ks-work-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Our Work — device showcase. Each site is captured at four real
   viewport widths and dropped into CSS-drawn hardware, so the
   lineup scales with the container instead of being one flat image.
   ============================================================ */
.ks-showcases { display: flex; flex-direction: column; gap: 88px; margin-top: 8px; }
.ks-showcase__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 48px; align-items: start; }
.ks-showcase__copy .ks-row__title { margin-top: 6px; }
.ks-showcase__copy .ks-row__desc { margin-bottom: 18px; }
.ks-showcase__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-self: center; }
.ks-showcase__points li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--fg-secondary); }
.ks-showcase__points li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }

/* The stage: everything inside is sized in % of its width, so the
   whole lineup scales as one drawing. */
.ks-devices { position: relative; width: 100%; aspect-ratio: 100 / 35; margin-top: 34px; }
.ks-dev { position: absolute; bottom: 0; display: flex; flex-direction: column; align-items: center; }
.ks-dev__screen {
  width: 100%;
  background: #0d1017;
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(11,15,26,0.55);
}
.ks-dev__screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
:root[data-theme="dark"] .ks-dev__screen { box-shadow: 0 26px 52px -20px rgba(0,0,0,0.85); }

/* Desktop monitor — back of the lineup */
.ks-dev--desktop { left: 0; width: 46%; z-index: 1; }
.ks-dev--desktop .ks-dev__screen { aspect-ratio: 16 / 10; border-radius: 9px; padding: 1.4%; }
.ks-dev--desktop .ks-dev__neck { width: 12%; aspect-ratio: 5 / 3; background: linear-gradient(180deg, #2a2f3b, #1b1f28); }
.ks-dev--desktop .ks-dev__foot { width: 34%; aspect-ratio: 26 / 1; border-radius: 0 0 4px 4px; background: linear-gradient(180deg, #232833, #14171f); }

/* Laptop — overlapping in front of the monitor */
.ks-dev--laptop { left: 39%; width: 37%; z-index: 2; }
.ks-dev--laptop .ks-dev__screen { aspect-ratio: 16 / 10; border-radius: 7px 7px 2px 2px; padding: 1.6% 1.6% 2.4%; }
.ks-dev--laptop .ks-dev__base { width: 114%; aspect-ratio: 90 / 1; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #2b303b, #171a22); box-shadow: 0 10px 22px -10px rgba(11,15,26,0.6); }

/* Tablet */
.ks-dev--tablet { left: 71.5%; width: 15%; z-index: 3; }
.ks-dev--tablet .ks-dev__screen { aspect-ratio: 3 / 4; border-radius: 9px; padding: 3.4%; }

/* Phone */
.ks-dev--phone { left: 87.4%; width: 9.2%; z-index: 4; }
.ks-dev--phone .ks-dev__screen { aspect-ratio: 420 / 909; border-radius: 10px; padding: 4.5%; }
.ks-dev--phone .ks-dev__screen img { border-radius: 5px; }

.ks-showcase:hover .ks-devices .ks-dev { transition: transform var(--dur-micro, 160ms) var(--ease, ease); }
.ks-showcase:hover .ks-dev--phone  { transform: translateY(-4px); }
.ks-showcase:hover .ks-dev--tablet { transform: translateY(-3px); }

@media (max-width: 980px) {
  .ks-showcase__head { grid-template-columns: 1fr; gap: 22px; }
  .ks-showcase__points { align-self: start; }
  .ks-showcases { gap: 64px; }
}

/* On a phone the four-device lineup is too small to read, so the
   monitor and phone carry the point on their own. */
@media (max-width: 620px) {
  .ks-devices { aspect-ratio: 100 / 45; }
  .ks-dev--desktop { width: 62%; }
  .ks-dev--laptop  { display: none; }
  .ks-dev--tablet  { display: none; }
  .ks-dev--phone   { left: auto; right: 2%; width: 15%; }
}

/* ============================================================
   Accounts, checkout and flash deals
   Colours come from the tokens at the top of this file, so dark
   mode follows automatically — avoid hard-coded hex values here.
   ============================================================ */

/* ---- Nav: account link ----
   Hidden until the pre-paint script in each <head> sees the
   "ks-signed-in" localStorage hint. That hint is a UI convenience
   only; /account itself does the real auth check. */
/* The nav is ink in both themes, so these can't use the page text colour
   that .btn-ghost follows — in light mode that made them near invisible. */
/* Solid gold button — nav Sign in, account Sign out. */
.btn-gold-fill,
.ks-nav .ks-nav__signin {
  background: var(--gold-500); color: var(--bg-ink);
  box-shadow: 0 6px 18px -8px rgba(201, 168, 78, 0.7);
}
.btn-gold-fill:hover,
.ks-nav .ks-nav__signin:hover { background: var(--gold-400); color: var(--bg-ink); }
.ks-nav .ks-nav__account { color: rgba(255, 255, 255, 0.85); }
.ks-nav .ks-nav__account:hover { background: rgba(255, 255, 255, 0.08); color: var(--gold-300); }

.ks-nav__account { display: none; gap: 7px; }
.ks-nav__account svg { width: 16px; height: 16px; flex: none; }
:root.is-signed-in .ks-nav__account { display: inline-flex; }
:root.is-signed-in .ks-nav__signin { display: none; }

/* Small screens: Profile and Sign out shrink to icons (the label stays
   for screen readers), and below 520px the wordmark gives way too. */
@media (max-width: 720px) {
  .ks-nav__right { gap: 8px; }
  .ks-nav__account { width: 38px; padding: 0; }
  .ks-nav__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}
@media (max-width: 520px) {
  .ks-brand__word { display: none; }
  .ks-nav__right > a.btn-primary { display: none; }
}

/* ---- Tier cards: buy action ---- */
.ks-tier .ks-tier__buy { height: 34px; margin-top: 6px; }

.ks-tier__buynote {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fg-tertiary);
  text-align: center;
}
.ks-tier__buynote a { color: var(--fg-secondary); text-decoration: underline; }
.ks-tier__buynote a:hover { color: var(--blue-600); }

/* ---- Flash deal: struck price, badge, countdown ---- */
.ks-tier__price--was {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg-tertiary);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.ks-deal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--gold-50);
  border: 1px solid var(--gold-500);
  color: var(--gold-700);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
:root[data-theme="dark"] .ks-deal-badge {
  background: transparent;
  color: var(--gold-500);
}

.ks-deal-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 16px 20px;
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-lg);
  background: var(--gold-50);
  text-align: center;
}
:root[data-theme="dark"] .ks-deal-banner { background: transparent; }
.ks-deal-banner__text { font-size: 15px; color: var(--fg-primary); }
.ks-deal-banner__text strong { font-family: var(--font-display); font-weight: 700; }

.ks-countdown {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-700);
  font-variant-numeric: tabular-nums;
}
:root[data-theme="dark"] .ks-countdown { color: var(--gold-500); }

/* ---- Auth page (sign in / sign up) ----
   Split panel: navy brand side with the hero's gold bloom, form card on
   the paper ground. Collapses to a compact brand strip above the form. */
.ks-auth-page {
  background: var(--bg-paper);
  padding: 72px 32px 96px;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}
.ks-auth-shell {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 70px -30px rgba(17,24,39,0.28), 0 2px 6px rgba(17,24,39,0.04);
  overflow: hidden;
}
:root[data-theme="dark"] .ks-auth-shell {
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(201,168,78,0.06);
}

.ks-auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 48px 44px;
  background: linear-gradient(160deg, #0B0F1A 0%, #13203A 100%);
  color: var(--fg-on-ink);
}
.ks-auth-brand::before {
  content: "";
  position: absolute;
  top: -200px; left: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(201,168,78,0.2) 0%, rgba(201,168,78,0) 66%);
  pointer-events: none;
}
.ks-auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
          mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
  pointer-events: none;
}
.ks-auth-brand > * { position: relative; z-index: 1; }
.ks-auth-brand__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: #fff;
}
.ks-auth-brand__logo img {
  width: 40px; height: 40px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(201,168,78,0.12);
  border: 1px solid rgba(201,168,78,0.3);
}
.ks-auth-brand__body { margin: auto 0; padding: 48px 0; }
.ks-auth-brand__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
  margin: 16px 0 14px;
  text-wrap: balance;
}
.ks-auth-brand__sub {
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}
.ks-auth-brand .ks-checks { margin: 0; }
.ks-auth-brand .ks-checks li { color: rgba(255,255,255,0.88); font-size: 15px; }
.ks-auth-brand .ks-checks li::before {
  background-color: rgba(201,168,78,0.16);
  border-color: rgba(201,168,78,0.34);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5CE8A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.ks-auth-brand__help {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
}
.ks-auth-brand__help a { color: var(--gold-300); font-weight: 600; }
.ks-auth-brand__help a:hover { color: var(--gold-200); }

.ks-auth {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ks-auth__title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 8px;
}
.ks-auth__sub {
  margin: 0 0 30px;
  font-size: 15px;
  color: var(--fg-secondary);
  line-height: 1.6;
}

.ks-auth__google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--fg-primary);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease);
}
.ks-auth__google:hover { border-color: var(--fg-tertiary); box-shadow: var(--shadow-2); }
.ks-auth__google:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.ks-auth__google:disabled, .ks-auth__submit:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
:root[data-theme="dark"] .ks-auth__google { background: var(--bg-ink-3); }
:root[data-theme="dark"] .ks-auth__google:hover { background: var(--bg-ink-4); }

.ks-auth__or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.ks-auth__or::before,
.ks-auth__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.ks-auth__fields { display: grid; gap: 14px; }
.ks-auth__submit { width: 100%; margin-top: 4px; }
.ks-auth .ks-auth__fields { gap: 18px; }
.ks-auth .ks-auth__submit { margin-top: 6px; }
.ks-auth .ks-input { height: 48px; border-radius: var(--radius-md); padding: 0 14px; }
.ks-auth .ks-form__status { margin-top: 16px; }

.ks-auth__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ks-auth__link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  cursor: pointer;
}
.ks-auth__link:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.ks-auth__link:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; border-radius: 3px; }
:root[data-theme="dark"] .ks-auth__link { color: var(--blue-500); }

.ks-auth__pw { position: relative; }
.ks-auth .ks-auth__pw .ks-input { padding-right: 48px; }
.ks-auth__pw-toggle {
  position: absolute;
  top: 50%; right: 6px;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg-tertiary);
  cursor: pointer;
}
.ks-auth__pw-toggle:hover { color: var(--fg-primary); background: var(--hover-overlay); }
.ks-auth__pw-toggle:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 0; }
.ks-auth__pw-toggle .is-hide { display: none; }
.ks-auth__pw-toggle[aria-pressed="true"] .is-show { display: none; }
.ks-auth__pw-toggle[aria-pressed="true"] .is-hide { display: block; }

.ks-auth__alt {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  text-align: center;
  color: var(--fg-secondary);
}
.ks-auth__alt .ks-auth__link { font-size: 14px; margin-left: 4px; }

@media (max-width: 860px) {
  .ks-auth-page { padding: 40px 20px 64px; align-items: flex-start; min-height: 0; }
  .ks-auth-shell { grid-template-columns: 1fr; max-width: 480px; }
  .ks-auth-brand { padding: 26px 28px; }
  .ks-auth-brand__body, .ks-auth-brand__help { display: none; }
  .ks-auth { padding: 36px 28px 32px; }
}
@media (max-width: 420px) {
  .ks-auth-page { padding: 24px 16px 48px; }
  .ks-auth { padding: 30px 22px 28px; }
  .ks-auth__title { font-size: 26px; }
}

/* ---- Account dashboard ---- */
.ks-account {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ks-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 28px;
}
.ks-panel + .ks-panel { margin-top: 24px; }

.ks-panel__h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}

.ks-panel__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.ks-panel__empty {
  margin: 0;
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.7;
}

.ks-panel__foot { display: flex; justify-content: flex-end; margin-top: 18px; }

.ks-field__opt { font-weight: 400; color: var(--fg-tertiary); }

/* ---- Setup call ---- */
.ks-call__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ks-call__tz { margin: -6px 0 0; font-size: 12.5px; color: var(--fg-tertiary); }
.ks-call__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.ks-auth__fields .ks-call__actions { margin-top: 0; }
@media (max-width: 420px) {
  .ks-call__row { grid-template-columns: 1fr; }
}

/* ---- Design file drop box ---- */
.ks-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease);
}
.ks-drop:hover,
.ks-drop.is-over { border-color: var(--gold-500); background: var(--gold-50); }
:root[data-theme="dark"] .ks-drop:hover,
:root[data-theme="dark"] .ks-drop.is-over { background: rgba(201, 168, 78, 0.08); }
.ks-drop:focus-within { border-color: var(--blue-600); }
.ks-drop svg { width: 22px; height: 22px; color: var(--gold-600); }
.ks-drop__input {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.ks-drop__text { margin: 0; font-size: 14px; color: var(--fg-primary); }
.ks-drop__hint { margin: 0; font-size: 12.5px; color: var(--fg-tertiary); }

.ks-drop__files { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ks-drop__files:empty { display: none; }
.ks-drop__files li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.ks-drop__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-drop__name a { color: var(--fg-primary); }
.ks-drop__meta { font-size: 12.5px; color: var(--fg-tertiary); white-space: nowrap; }
.ks-drop__files li.is-error .ks-drop__meta { color: var(--danger); }
.ks-drop__remove {
  border: 0; background: transparent; padding: 2px 4px;
  font-size: 12.5px; color: var(--fg-tertiary); cursor: pointer;
}
.ks-drop__remove:hover { color: var(--danger); }

/* Key/value rows — billing summary, order details */
.ks-kv { display: grid; gap: 10px; margin: 0; }
.ks-kv__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.ks-kv__row:last-child { border-bottom: 0; padding-bottom: 0; }
.ks-kv__k { font-size: 13px; color: var(--fg-secondary); }
.ks-kv__v { font-size: 14.5px; font-weight: 600; text-align: right; }

.ks-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.ks-badge--ok {
  background: var(--status-success-bg);
  color: var(--status-success-fg);
  border-color: var(--status-success-border);
}
.ks-badge--warn {
  background: var(--status-error-bg);
  color: var(--status-error-fg);
  border-color: var(--status-error-border);
}

/* Invoice list */
.ks-invoices { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ks-invoices li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.ks-invoices li:last-child { border-bottom: 0; }
.ks-invoices__link { display: inline-flex; align-items: baseline; gap: 4px; }
.ks-invoices__ext { font-size: 12px; opacity: .7; }
.ks-invoices__date { color: var(--fg-secondary); font-size: 13px; }
.ks-invoices__amt { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- Project tracker ---- */
.ks-tracker { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.ks-tracker li {
  position: relative;
  padding: 0 0 24px 34px;
  font-size: 14.5px;
  color: var(--fg-tertiary);
  line-height: 1.5;
}
.ks-tracker li:last-child { padding-bottom: 0; }

/* The connector line between markers. */
.ks-tracker li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}

.ks-tracker li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--line-strong);
  background: var(--surface);
}

.ks-tracker li.is-done { color: var(--fg-secondary); }
.ks-tracker li.is-done::before {
  border-color: var(--gold-500);
  background: var(--gold-500);
}
.ks-tracker li.is-done:not(:last-child)::after { background: var(--gold-500); }

.ks-tracker li.is-current { color: var(--fg-primary); font-weight: 600; }
.ks-tracker li.is-current::before {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px var(--gold-50);
}

.ks-tracker__when {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--fg-tertiary);
  margin-top: 2px;
}

/* ---- Admin: every project ---- */
.ks-admin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}
.ks-admin__count { font-size: 13px; color: var(--fg-secondary); text-align: right; }
.ks-admin__search { width: 100%; margin: 0 0 14px; }

.ks-admin__rows { display: grid; gap: 6px; }
.ks-admin__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--fg-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease);
}
.ks-admin__row:hover { border-color: var(--line-strong); }
.ks-admin__row.is-selected { border-color: var(--gold-500); background: var(--gold-50); }
:root[data-theme="dark"] .ks-admin__row.is-selected { background: rgba(201, 168, 78, 0.08); }
.ks-admin__row-main { display: grid; gap: 2px; min-width: 0; }
.ks-admin__row-side { display: grid; justify-items: end; gap: 4px; flex-shrink: 0; text-align: right; }
.ks-admin__shop {
  font-size: 14.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ks-admin__sub {
  font-size: 12.5px; color: var(--fg-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ks-admin__stage { font-size: 13px; }

.ks-admin .ks-kv__v { min-width: 0; overflow-wrap: anywhere; }
.ks-admin__mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; font-weight: 400; }

.ks-admin__inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.ks-admin__inline .ks-select { flex: 1; min-width: 180px; }
.ks-admin__zoom { display: grid; gap: 12px; margin-top: 22px; }
.ks-panel .ks-form__status.is-visible { margin-top: 14px; }

.ks-admin__block + .ks-admin__block { margin-top: 16px; }
.ks-admin__label { margin: 0 0 4px; font-size: 13px; color: var(--fg-secondary); }
.ks-admin__text { margin: 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.ks-admin__saved { margin-top: 16px; }

@media (max-width: 860px) {
  .ks-admin { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ks-admin__row { flex-direction: column; align-items: stretch; }
  .ks-admin__row-side { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
}

/* ---- Checkout result pages ---- */
.ks-result {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.ks-result__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--gold-50);
  color: var(--gold-700);
}
:root[data-theme="dark"] .ks-result__icon { background: var(--bg-ink-3); color: var(--gold-500); }

.ks-result__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
}

.ks-result__sub {
  font-size: 16.5px;
  color: var(--fg-secondary);
  line-height: 1.7;
  margin: 0 0 28px;
}

.ks-result__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Plan chooser (pay in full vs 3 payments) ---- */
.ks-chooser {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 15, 26, .6);
  backdrop-filter: blur(3px);
}

.ks-chooser__card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 30px 28px;
}

.ks-chooser__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}

.ks-chooser__sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--fg-secondary);
}

.ks-chooser__opts { display: grid; gap: 12px; }

.ks-chooser__opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
}
.ks-chooser__opt:hover {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-50);
}
:root[data-theme="dark"] .ks-chooser__opt { background: var(--bg-ink-3); }

.ks-chooser__opt-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
}
.ks-chooser__opt-note { font-size: 13px; color: var(--fg-secondary); margin-top: 4px; }
.ks-chooser__save { color: var(--success); font-size: 12.5px; font-weight: 700; }

.ks-chooser__cancel {
  display: block;
  width: 100%;
  margin-top: 16px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13.5px;
  color: var(--fg-secondary);
  cursor: pointer;
}
.ks-chooser__cancel:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .ks-account { grid-template-columns: 1fr; }
}

/* ============================================================
   Service pages — framed sample screens, phone frames, jump
   links, and image cards. The screens are rendered from
   Design/service-screens and hold made-up test data, so every
   one carries a "Sample data" tag and the page a disclaimer.
   ============================================================ */
main [id] { scroll-margin-top: calc(var(--nav-height) + 24px); }

.ks-svc-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 30px auto 0; }
.ks-svc-toc a {
  padding: 7px 14px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: border-color var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease);
}
.ks-svc-toc a:hover { border-color: var(--gold-500); color: var(--gold-300); background: rgba(201,168,78,0.08); text-decoration: none; }
.ks-svc-hero__shot { max-width: 1080px; margin: 56px auto 0; text-align: left; }

.ks-shot { margin: 0; min-width: 0; }
.ks-shot__frame {
  border-radius: 14px; overflow: hidden;
  background: #0E1626;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 80px -30px rgba(11,15,26,0.55);
  transition: transform var(--dur-page) var(--ease);
}
:root[data-theme="dark"] .ks-shot__frame { border-color: rgba(255,255,255,0.17); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.85); }
.ks-shot__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #131B2B; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ks-shot__bar span:not(.ks-shot__url) { flex: none; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.ks-shot__bar span:first-child { background: var(--gold-500); }
.ks-shot__url {
  margin-left: 8px; padding: 3px 12px; min-width: 0;
  border-radius: var(--radius-full); background: rgba(255,255,255,0.06);
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ks-shot img { display: block; width: 100%; height: auto; }
.ks-shot__cap { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--fg-secondary); }
.ks-section--ink .ks-shot__cap { color: rgba(255,255,255,0.58); }
.ks-shot__tag {
  flex: none;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200);
}
:root[data-theme="dark"] .ks-shot__tag,
.ks-section--ink .ks-shot__tag { background: rgba(201,168,78,0.12); color: var(--gold-300); border-color: rgba(201,168,78,0.3); }
.ks-shot__tag--live,
:root[data-theme="dark"] .ks-shot__tag--live { background: var(--status-success-bg); color: var(--status-success-fg); border-color: var(--status-success-border); }
.ks-row:hover .ks-shot__frame { transform: translateY(-6px); }

.ks-phone { width: 100%; max-width: 290px; margin: 0 auto; }
.ks-phone__body {
  padding: 9px; border-radius: 46px;
  background: #0B0F1A;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 40px 80px -30px rgba(11,15,26,0.6), inset 0 0 0 2px #1F2633;
  transition: transform var(--dur-page) var(--ease);
}
.ks-phone__body img { display: block; width: 100%; height: auto; border-radius: 37px; }
.ks-row:hover .ks-phone__body { transform: translateY(-6px); }

.ks-sample-note {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 780px; margin: 26px auto 0; padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(201,168,78,0.5); background: rgba(201,168,78,0.07);
  font-size: 14px; line-height: 1.6; text-align: left; color: var(--fg-secondary);
}
.ks-sample-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold-500); }
.ks-sample-note strong { color: var(--fg-primary); font-weight: 600; }
.ks-section--ink .ks-sample-note { color: rgba(255,255,255,0.7); }
.ks-section--ink .ks-sample-note strong { color: #fff; }

.ks-svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ks-svc-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: transform var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.ks-svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(201,168,78,0.45); color: inherit; text-decoration: none; }
.ks-svc-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: #0E1A22; border-bottom: 1px solid var(--line); }
.ks-svc-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.ks-svc-card__img--center img { object-position: center 20%; }
.ks-svc-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ks-svc-card__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg-primary); }
.ks-svc-card__desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--fg-secondary); }
.ks-svc-card__more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--blue-600); }

.ks-features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ks-feature-card:target { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,168,78,0.25); }

@media (max-width: 980px) {
  .ks-svc-cards, .ks-features--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .ks-svc-cards, .ks-features--3 { grid-template-columns: 1fr; }
  .ks-phone { max-width: 250px; }
  .ks-svc-hero__shot { margin-top: 40px; }
}
