/* W-privacy: self-hosted fonts (no request to Google). Files and licences: website/fonts/README.md. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/fraunces-latin-ext-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ------------------------------------------------------------------
   W-site design system. One type scale, one spacing scale, one button
   system (primary, secondary, quiet). app.css builds on these tokens.
   ------------------------------------------------------------------ */
:root {
  color-scheme: dark;
  --bg: #0d0e0b;
  --bg-2: #13140f;
  --surface: #181a14;
  --surface-2: #1f211a;
  --ink: #f3eee2;
  --ink-2: #d9d4c7;
  --mute: #a29f92;
  --faint: #8a877b;
  --line: rgba(243, 238, 226, 0.09);
  --line-2: rgba(243, 238, 226, 0.16);
  --accent: #e0b878;
  --live: #6fd39b;
  --danger: #f0a493;
  /* Kept for app.css (console) until W-console moves it to the tokens above. */
  --olive: #6d7d4f;
  --olive-ink: #a7b781;
  --olive-btn: #5b6941;
  --olive-d: #3d4a2e;
  --walnut: #2a1c14;
  --amber: var(--accent);

  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Fraunces, ui-serif, Georgia, serif;

  /* Type scale (fluid between 375 and 1440 px). */
  --t-display: clamp(2.75rem, 1.9rem + 3.7vw, 5.25rem);
  --t-h2: clamp(2.125rem, 1.6rem + 2.3vw, 3.5rem);
  --t-h3: 1.1875rem;
  --t-lede: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-micro: 0.75rem;

  /* Spacing scale. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --section: clamp(88px, 5rem + 6vw, 168px);
  --gutter: clamp(20px, 4vw, 40px);
  --wrap: 1200px;
  --head-h: 64px;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Anchors land below the sticky header, with room to breathe. */
  scroll-padding-top: calc(var(--head-h) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

pre {
  max-width: 100%;
  overflow-x: auto;
}

::selection {
  background: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--ink);
}

h1,
h2 {
  font-family: var(--font-display);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 40;
  font-weight: 400;
  letter-spacing: -0.028em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: var(--t-display);
  line-height: 1.02;
}

h2 {
  font-size: var(--t-h2);
  line-height: 1.06;
}

h3 {
  font-family: var(--font-sans);
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.kicker {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-4);
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.55;
  color: var(--mute);
  max-width: 38rem;
  text-wrap: pretty;
}

/* --- Buttons: primary, secondary, quiet ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease),
    transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:hover {
  border-color: rgba(243, 238, 226, 0.32);
  background: rgba(243, 238, 226, 0.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 8px 24px -12px rgba(243, 238, 226, 0.45);
}

.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 10px 28px -12px rgba(243, 238, 226, 0.6);
}

/* Secondary is the base .btn. */
.btn-secondary {
  background: transparent;
}

.btn-quiet {
  min-height: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--ink-2);
}

.btn-quiet:hover {
  background: none;
  color: var(--ink);
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Quiet stays flush with the text column at every size. */
.btn-quiet.btn-sm,
.btn-quiet.btn-lg {
  min-height: 36px;
  padding: 6px 0;
}

.btn-danger {
  border-color: color-mix(in srgb, var(--danger) 55%, transparent);
  color: var(--danger);
}

.btn-danger:hover {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}

/* --- Header ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav.is-scrolled,
.nav-static {
  border-bottom-color: var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  /* Costaraq wordmark: light, high optical size, the elegance of the logo sheet. */
  font-variation-settings: "opsz" 60;
  font-size: 1.375rem;
  font-weight: 330;
  letter-spacing: 0;
  text-decoration: none;
  border-radius: 6px;
}

.mark img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: auto;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--mute);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(243, 238, 226, 0.05);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
}

.nav-links + .nav-end {
  margin-left: var(--s-3);
}

.nav-signin {
  color: var(--ink-2);
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-links + .nav-end {
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: var(--s-3);
  }

  .nav-signin {
    display: none;
  }
}

/* --- Sections -------------------------------------------------------- */
.section {
  padding-block: var(--section);
}

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

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head .lede {
  margin-top: var(--s-5);
}

/* --- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 112px) clamp(72px, 8vw, 128px);
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(40px, 5vw, 88px);
}

.hero-copy h1 {
  font-size: clamp(2.75rem, 1.9rem + 3.4vw, 4.75rem);
}

.hero-copy .lede {
  margin-top: var(--s-5);
  max-width: 31rem;
}

.hero-copy .actions {
  margin-top: var(--s-6);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--s-5);
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(243, 238, 226, 0.03);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
}

.status-chip .dot,
.pill-live::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent);
}

.status-chip .sep {
  color: var(--faint);
}

.status-chip span {
  white-space: nowrap;
}

/* --- The desk -------------------------------------------------------- */
/* Real renders of the desk UI (website/build-desk-shots.sh) inside a front-on desk. JS sets
   --rx/--ry (pointer tilt, fine pointers only) and data-provider (the screen's colour). */
.desk {
  --size: 520px;
  --glow: #ff9900;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: var(--s-5);
  perspective: 1400px;
}

.desk[data-provider="azure"] {
  --glow: #0078d4;
}

.desk[data-provider="gcp"] {
  --glow: #4285f4;
}

.desk[data-provider="claude"] {
  --glow: #d97757;
}

/* The screen's own light, falling on the wall behind the desk. */
.desk::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 46%;
  width: calc(var(--size) * 1.5);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 22%, transparent), transparent 72%);
  transition: background 1.2s var(--ease);
  pointer-events: none;
}

.desk-body {
  position: relative;
  z-index: 1;
  width: min(100%, var(--size));
  aspect-ratio: 1;
  /* Proportions from photos of the real desk: a thin light-grey rim (~3.4% of the width),
     ~9% outer corners, ~6% corners on the glass. */
  padding: 3.4%;
  border-radius: 9%;
  background:
    radial-gradient(120% 90% at 22% 8%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, #f1f1ef 0%, #e0e0dd 52%, #c9c9c5 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(40, 40, 40, 0.18),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 24px 48px -16px rgba(0, 0, 0, 0.7),
    0 70px 110px -40px rgba(0, 0, 0, 0.75);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

/* Contact shadow on the desk surface. */
.desk-body::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 12%;
  right: 12%;
  bottom: -7%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
  filter: blur(6px);
}

.desk-glass {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px #0a0a0a, 0 0 0 2px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Studio light on the glass; it slides a little with the tilt. */
.desk-glass::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0) 46%);
  transform: translate(calc(var(--ry) * -2), calc(var(--rx) * 2));
  transition: transform 0.5s var(--ease);
}

.desk-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.desk-screen.is-on {
  opacity: 1;
}

.desk-caption {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--faint);
}

.desk-caption-label {
  color: var(--ink-2);
  font-weight: 500;
  min-height: 1.4em;
}

.desk-md {
  --size: 440px;
}

/* --- Why a desk ------------------------------------------------------ */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare > div {
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px);
}

.compare h3 {
  margin-bottom: var(--s-4);
}

.compare-desk {
  background: linear-gradient(180deg, var(--surface), var(--bg)) !important;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
  color: var(--mute);
}

.ticks li {
  position: relative;
  padding-left: 22px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--faint);
}

.compare-desk .ticks li {
  color: var(--ink-2);
}

.compare-desk .ticks li::before {
  background: var(--accent);
}

/* --- Story: what the desk shows (sticky desk on wide screens) --------- */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.story-media {
  position: sticky;
  top: calc(var(--head-h) + max(24px, (100vh - var(--head-h) - 520px) / 2));
}

.story-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-step {
  min-height: min(68vh, 560px);
  display: grid;
  align-content: center;
  gap: var(--s-3);
  max-width: 30rem;
  color: var(--faint);
  transition: color 0.4s var(--ease);
}

.story-step h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-weight: 400;
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: var(--mute);
  transition: color 0.4s var(--ease);
}

.story-step.is-on,
.story-step.is-on h3 {
  color: var(--ink);
}

.story-step.is-on p {
  color: var(--ink-2);
}

.story-index {
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.story-step.is-on .story-index {
  color: var(--accent);
}

.story-step:last-child {
  min-height: min(52vh, 440px);
}

.story-shot {
  display: none;
}

.story-note {
  margin-top: var(--s-6);
  font-size: var(--t-small);
  color: var(--faint);
}

/* --- Platforms ------------------------------------------------------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform {
  margin: 0;
  display: grid;
  gap: var(--s-4);
}

.platform-shot {
  padding: 3.4%;
  border-radius: 9%;
  background: linear-gradient(160deg, #f1f1ef 0%, #cfcfcb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s var(--ease);
}

.platform-shot img {
  width: 100%;
  border-radius: 6%;
  background: #000;
}

.platform:hover .platform-shot {
  transform: translateY(-4px);
}

.platform figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  font-size: var(--t-small);
  color: var(--ink-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--mute);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pill-live {
  border-color: color-mix(in srgb, var(--live) 40%, transparent);
  color: var(--live);
}

.pill-live::before {
  content: "";
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.platform-later {
  margin-top: var(--s-6);
  color: var(--faint);
  font-size: var(--t-small);
}

/* --- How it works ---------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  counter-reset: step;
}

.steps li {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-2);
  color: var(--mute);
}

.steps .step-n {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-3);
}

.steps h3 {
  color: var(--ink);
}

/* --- Security -------------------------------------------------------- */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sec-grid article {
  background: var(--bg);
  padding: clamp(24px, 2.6vw, 36px);
  display: grid;
  align-content: start;
  gap: var(--s-3);
}

.sec-grid p {
  color: var(--mute);
  font-size: var(--t-small);
  line-height: 1.65;
}

.sec-next {
  margin-top: var(--s-6);
  max-width: 46rem;
  padding-left: var(--s-4);
  border-left: 2px solid var(--accent);
  color: var(--mute);
  font-size: var(--t-small);
}

.sec-next strong {
  color: var(--ink);
  font-weight: 500;
}

/* --- Pricing --------------------------------------------------------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.bill-period {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.bill-period:hover {
  color: var(--ink);
}

.bill-period.is-active {
  background: var(--ink);
  color: var(--bg);
}

.pricing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  color: var(--faint);
  font-size: var(--t-small);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  align-items: stretch;
}

.plan {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.plan.featured {
  border-color: rgba(224, 184, 120, 0.45);
  background: linear-gradient(180deg, rgba(224, 184, 120, 0.07), rgba(224, 184, 120, 0) 60%), var(--bg-2);
}

.plan-kicker {
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.plan.featured .plan-kicker {
  color: var(--accent);
}

.price {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-size: clamp(2.25rem, 1.8rem + 1.2vw, 2.875rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  margin-top: var(--s-2);
}

.price-note {
  font-size: 0.875rem;
  color: var(--faint);
}

.plan-body {
  margin-top: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: var(--t-small);
}

.pricing-foot {
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.pricing-foot p {
  max-width: 40rem;
  color: var(--faint);
  font-size: var(--t-small);
}

/* --- FAQ ------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq-grid h2 {
  font-size: clamp(2.125rem, 1.7rem + 1.4vw, 2.875rem);
}

.faq {
  border-top: 1px solid var(--line-2);
}

.faq details {
  border-bottom: 1px solid var(--line-2);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-radius: 4px;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(var(--mute), var(--mute)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--mute), var(--mute)) center / 1.5px 11px no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--ink);
}

.faq details p {
  padding: 0 0 24px;
  max-width: 40rem;
  color: var(--mute);
}

/* --- Closing call to action ----------------------------------------- */
.cta {
  text-align: center;
}

.cta h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.cta .lede {
  margin: var(--s-5) auto 0;
}

.cta .actions {
  justify-content: center;
  margin-top: var(--s-6);
}

/* --- Footer ---------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.875rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr));
  gap: var(--s-6);
  padding-block: var(--s-8) var(--s-7);
}

.foot-brand .mark {
  color: var(--ink);
}

.foot-brand p {
  margin-top: var(--s-3);
  max-width: 24rem;
}

.foot-col h2 {
  font-family: var(--font-sans);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: var(--s-4);
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.foot-links a,
.foot-col a {
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 4px;
}

.foot-links a:hover,
.foot-col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-5) var(--s-6);
  border-top: 1px solid var(--line);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
}

/* --- Auth pages: one layout for log in, sign up, reset, confirm ------- */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-side {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--s-5) var(--gutter);
  min-width: 0;
}

.auth-shell {
  display: grid;
  align-content: start;
  justify-items: center;
  padding-block: clamp(48px, 14vh, 160px) var(--s-7);
}

.auth-card {
  width: min(400px, 100%);
}

.auth-card h1 {
  font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem);
  line-height: 1.1;
}

.auth-card .lede,
.auth-sub {
  margin: var(--s-3) 0 var(--s-6);
  font-size: 1rem;
  color: var(--mute);
}

.field {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}

.field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}

.field label,
.auth-card label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

.field-row a {
  font-size: 0.875rem;
  color: var(--mute);
  text-decoration: none;
  border-radius: 4px;
}

.field-row a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.input,
.auth-card input[type="email"],
.auth-card input[type="text"],
.auth-card input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}

.auth-card input::placeholder {
  color: var(--faint);
}

.auth-card input:hover {
  border-color: rgba(243, 238, 226, 0.26);
}

.auth-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
  background: var(--bg);
}

.auth-card input[readonly] {
  color: var(--mute);
  background: transparent;
}

.auth-card input[aria-invalid="true"] {
  border-color: var(--danger);
}

.auth-card input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 28%, transparent);
}

.pw {
  position: relative;
}

.pw input {
  padding-right: 72px;
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  translate: 0 -50%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.pw-toggle:hover {
  color: var(--ink);
  background: rgba(243, 238, 226, 0.06);
}

.field-hint,
.field-err {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--faint);
}

.field-err {
  color: var(--danger);
}

.field-err:empty {
  display: none;
}

.auth-err {
  margin: 0 0 var(--s-5);
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  color: var(--danger);
  font-size: 0.875rem;
}

.auth-err:empty {
  display: none;
}

.auth-note {
  margin-top: var(--s-4);
  font-size: 0.875rem;
  color: var(--live);
}

.auth-note:empty {
  display: none;
}

.auth-card .btn-primary {
  margin-top: var(--s-2);
}

.auth-card .alt {
  margin-top: var(--s-5);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--mute);
}

.auth-card .alt a,
.auth-card .link-btn,
.consent a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.auth-card .alt a:hover,
.auth-card .link-btn:hover,
.consent a:hover {
  text-decoration-color: var(--ink);
}

.auth-card label.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 var(--s-5);
  font-weight: 400;
  color: var(--mute);
  line-height: 1.5;
  cursor: pointer;
}

.auth-card label.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 44px;
}

.auth-side .site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-5);
  font-size: 0.8125rem;
}

.consent-err {
  margin: calc(var(--s-4) * -1) 0 var(--s-5);
}

.auth-art {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: var(--s-7) var(--gutter);
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(243, 238, 226, 0.05), transparent 70%),
    var(--bg-2);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.auth-art .desk {
  --size: 400px;
  width: min(100%, var(--size));
}

.auth-art .desk::before {
  opacity: 0.7;
}

.auth-art-line {
  position: relative;
  z-index: 1;
  margin-top: var(--s-6);
  max-width: 22rem;
  text-align: center;
  color: var(--mute);
  font-size: var(--t-small);
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-art {
    display: none;
  }
}

/* --- 404 ------------------------------------------------------------- */
.notfound {
  min-height: calc(100vh - var(--head-h) - 200px);
  display: grid;
  align-content: center;
  padding-block: var(--section);
}

.notfound-code {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-size: clamp(5rem, 3rem + 9vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--surface-2);
  margin-bottom: var(--s-4);
  font-variant-numeric: lining-nums;
}

.notfound .lede {
  margin-top: var(--s-4);
}

.notfound .actions {
  margin-top: var(--s-6);
}

/* --- Legal pages ----------------------------------------------------- */
.legal {
  padding-block: clamp(48px, 7vw, 104px) var(--section);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--head-h) + 32px);
  font-size: 0.875rem;
}

.legal-toc-title {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--s-4);
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line-2);
}

.legal-toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--mute);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--ink);
  border-left-color: var(--ink-2);
}

.legal article {
  max-width: 42rem;
}

.legal h1 {
  font-size: clamp(2.5rem, 1.9rem + 2vw, 3.5rem);
}

.legal-meta {
  margin-top: var(--s-4);
  color: var(--faint);
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
}

.legal-draft {
  margin: var(--s-6) 0 var(--s-2);
  padding: 14px 16px;
  border: 1px solid rgba(224, 184, 120, 0.35);
  border-radius: 10px;
  background: rgba(224, 184, 120, 0.06);
  color: var(--ink-2);
  font-size: var(--t-small);
}

.legal section {
  padding-top: var(--s-7);
}

.legal h2 {
  font-family: var(--font-sans);
  font-variation-settings: normal;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: var(--s-4);
}

.legal section p {
  color: var(--ink-2);
  line-height: 1.7;
}

.legal section p + p {
  margin-top: var(--s-3);
}

.legal a {
  color: var(--ink);
  text-underline-offset: 3px;
}

/* --- Scroll reveals (site.js marks only what is still below the fold) - */
[data-reveal] {
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(18px);
}

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 1100px) {
  .platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--s-7);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .story-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .desk {
    --size: 400px;
  }

  .story-media {
    display: none;
  }

  .story-step {
    min-height: 0;
    max-width: none;
    padding-block: var(--s-6);
    color: var(--mute);
  }

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

  .story-step h3 {
    color: var(--ink);
  }

  .story-step .story-index {
    color: var(--accent);
  }

  .story-shot {
    display: block;
    width: min(100%, 360px);
    margin-bottom: var(--s-4);
    border-radius: 6%;
    box-shadow: 0 0 0 12px #dddddb, 0 24px 48px -24px rgba(0, 0, 0, 0.9);
  }

  .steps,
  .sec-grid,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-toc {
    display: none;
  }
}

@media (max-width: 640px) {
  .platform figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .status-chip {
    font-size: 0.75rem;
    gap: 8px;
  }

  .compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .desk {
    --size: 320px;
  }

  .pricing-foot .actions,
  .cta .actions,
  .hero-copy .actions {
    width: 100%;
  }

  .hero-copy .actions .btn,
  .cta .actions .btn {
    flex: 1 1 auto;
  }
}

/* --- Accessibility --------------------------------------------------- */
/* Visible keyboard focus on every interactive element (WCAG 2.4.7). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.auth-card input:focus-visible {
  outline: none;
}

/* Skip link: hidden until focused. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  transition: top 0.15s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* The skip target takes focus so the next Tab starts in the content; no ring on it. */
main[tabindex="-1"]:focus {
  outline: none;
}

@media print {
  [data-reveal].is-pending {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

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

.hidden {
  display: none !important;
}

.link-btn {
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* --- W-custom: console wizard (matches mockup console-*.png) ----------- */
.cu-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--faint, #8a877b);
}

.cu-step {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(243, 238, 226, 0.09));
}

.cu-step.done {
  color: var(--live, #6fd39b);
  border-color: rgba(111, 211, 155, 0.3);
}

.cu-step.on {
  color: #0d0e0b;
  background: var(--accent, #e0b878);
  border-color: var(--accent, #e0b878);
  font-weight: 600;
}

.cu-cols {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 22px;
  margin: 16px 0;
}

.cu-card {
  background: var(--surface, #181a14);
  border: 1px solid var(--line, rgba(243, 238, 226, 0.09));
  border-radius: 14px;
  padding: 14px 16px;
}

.cu-card-title {
  font: 500 16px var(--sans, "IBM Plex Sans", sans-serif);
  margin: 0 0 8px;
}

.cu-src {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--mute, #a29f92);
}

.cu-pill {
  color: var(--live, #6fd39b);
  border: 1px solid rgba(111, 211, 155, 0.35);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
}

.cu-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-family: var(--mono, "IBM Plex Mono", monospace);
}

.cu-tree li {
  margin: 2px 0;
}

.cu-leaf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.cu-leaf .k {
  color: var(--ink, #f3eee2);
}

.cu-leaf .v {
  margin-left: auto;
  color: var(--faint, #8a877b);
  font-size: 12px;
}

.cu-leaf .lab {
  background: var(--accent, #e0b878);
  color: #16120b;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--sans, "IBM Plex Sans", sans-serif);
}

.cu-obj {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cu-obj .sp {
  color: var(--mute, #a29f92);
  width: 1em;
}

.cu-count-row {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
  color: var(--mute, #a29f92);
}

.cu-meter-track {
  height: 4px;
  background: var(--surface-2, #1f211a);
  border-radius: 999px;
  margin-top: 6px;
  overflow: hidden;
}

.cu-meter-track > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent, #e0b878);
}

.cu-pick-card {
  border: 1px solid var(--line, rgba(243, 238, 226, 0.09));
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--surface-2, #1f211a);
}

.cu-pick-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--mute, #a29f92);
}

.cu-star {
  border: 0;
  background: transparent;
  color: var(--faint, #8a877b);
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
}

.cu-star.is-on {
  color: var(--accent, #e0b878);
}

.cu-pick-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.cu-keep {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  margin: 8px 0;
  color: var(--mute, #a29f92);
}

.cu-intervals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.cu-iv {
  border: 1px solid var(--line, rgba(243, 238, 226, 0.09));
  background: var(--surface, #181a14);
  color: inherit;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: 600 14px var(--sans, "IBM Plex Sans", sans-serif);
}

.cu-iv.is-on {
  background: var(--accent, #e0b878);
  color: #16120b;
  border-color: var(--accent, #e0b878);
}

.cu-desks {
  margin: 12px 0 20px;
  padding-left: 1.2em;
  color: var(--mute, #a29f92);
}

@media (max-width: 900px) {
  .cu-cols {
    grid-template-columns: 1fr;
  }
}

/* --- W-preview: custom feed desk preview (real WASM paint) ----------- */
.cf-preview {
  margin-top: var(--s-6);
}

.cf-toolbar {
  margin-bottom: 16px;
}

.cf-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-sample-btn {
  font: 600 14px var(--sans, "IBM Plex Sans", sans-serif);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line, rgba(243, 238, 226, 0.09));
  background: var(--surface2, #1f2119);
  color: var(--ink, #f3eee2);
  cursor: pointer;
}

.cf-sample-btn.is-on {
  background: var(--accent, #e0b878);
  color: #16120b;
  border-color: var(--accent, #e0b878);
}

.cf-tpls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.cf-tpl {
  background: var(--surface, #181a14);
  border: 1.5px solid var(--line, rgba(243, 238, 226, 0.09));
  border-radius: 14px;
  padding: 10px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.cf-tpl-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  display: block;
  margin-bottom: 8px;
  background: #000;
  image-rendering: pixelated;
}

.cf-tpl b {
  font-size: 14px;
  font-weight: 600;
}

.cf-tpl span {
  display: block;
  font-size: 12px;
  color: var(--mute, #a29f92);
  margin-top: 2px;
}

.cf-tpl.is-on {
  border-color: var(--accent, #e0b878);
  box-shadow: 0 0 0 3px rgba(224, 184, 120, 0.15);
}

.cf-rec {
  font-size: 11px;
  color: #111;
  background: var(--accent, #e0b878);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 6px;
  font-weight: 600;
  vertical-align: 1px;
}

.cf-stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: radial-gradient(ellipse at 30% 40%, #1d1f17, #0d0e0b 70%);
  border: 1px solid var(--line, rgba(243, 238, 226, 0.09));
  border-radius: 18px;
  padding: 26px;
}

.cf-device {
  width: min(396px, 100%);
  padding: 18px;
  border-radius: 36px;
  background: linear-gradient(160deg, #3a2a1e, #22170f);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cf-big {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 20px;
  display: block;
  background: #000;
  box-shadow: inset 0 0 0 2px #111;
  image-rendering: pixelated;
}

.cf-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--mute, #a29f92);
  font-size: 13px;
}

.cf-pager button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}

.cf-side-title {
  font: 500 24px var(--display, Fraunces, Georgia, serif);
  margin: 0 0 8px;
}

.cf-side-desc {
  color: var(--mute, #a29f92);
  margin: 0 0 14px;
  font-size: 15px;
}

.cf-accent-label {
  font-size: 13px;
  color: var(--mute, #a29f92);
}

.cf-swatches {
  display: flex;
  gap: 10px;
  margin: 6px 0 18px;
}

.cf-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
}

.cf-swatch.is-on {
  border-color: var(--ink, #f3eee2);
  outline: 2px solid var(--bg, #0d0e0b);
  outline-offset: -4px;
}

.cf-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cf-note {
  font-size: 13px;
  color: var(--faint, #8a877b);
  margin-top: 14px;
}

@media (max-width: 960px) {
  .cf-tpls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cf-stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  .cf-device {
    margin: 0 auto;
  }
}

@media (max-width: 420px) {
  .cf-tpls {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- W-site-any: custom feeds marketing (mockup site.html?view=landing) --- */
.cf-landing .cf-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0 30px;
}

.cf-landing .cf-hero-copy h2 {
  font-family: var(--display, Fraunces, Georgia, serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.cf-landing .cf-hero-copy h2 em {
  font-style: italic;
  color: var(--accent);
}

.cf-landing .cf-hero-copy .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 40rem;
}

.cf-landing .cf-hero-copy .lede b {
  color: var(--ink);
  font-weight: 600;
}

.cf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}

.cf-chips span {
  font-size: 13px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mute);
}

.cf-chips .cf-chip-new {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.cf-trio {
  position: relative;
  height: min(470px, 56vw);
  min-height: 280px;
}

.cf-trio-desk {
  position: absolute;
  width: min(300px, 42%);
  margin: 0;
  padding: 14px;
  border-radius: 30px;
  background: linear-gradient(160deg, #3a2a1e, #22170f);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cf-trio-desk img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  display: block;
  background: #000;
  image-rendering: pixelated;
}

.cf-trio-d1 {
  left: 0;
  top: 22%;
  transform: rotate(-6deg);
}

.cf-trio-d2 {
  left: 28%;
  top: 0;
  z-index: 2;
}

.cf-trio-d3 {
  left: 54%;
  top: 30%;
  transform: rotate(5deg);
}

.cf-how {
  list-style: none;
  margin: 26px 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cf-how li {
  background: var(--surface, #181a14);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.cf-how b {
  display: block;
  font-family: var(--display, Fraunces, Georgia, serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.cf-how h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.cf-how p {
  margin: 0;
  color: var(--mute);
  font-size: 14px;
}

.cf-layouts-head {
  margin-top: 46px;
}

.cf-layouts-head h3 {
  font-family: var(--display, Fraunces, Georgia, serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 500;
  margin: 0 0 8px;
}

.cf-gallery {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.cf-gallery a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cf-gallery img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  border: 6px solid #241a12;
  display: block;
  background: #000;
  image-rendering: pixelated;
}

.cf-gallery span {
  display: block;
  font-size: 14px;
  margin-top: 8px;
}

.cf-gallery em {
  display: block;
  font-style: normal;
  color: var(--mute);
  font-size: 13px;
}

.cf-sec {
  color: var(--mute);
  font-size: 14px;
  margin: 22px 0 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 56rem;
}

.cf-sec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live, #6fd39b);
  display: block;
  flex: none;
  margin-top: 0.45em;
}

@media (max-width: 960px) {
  .cf-landing .cf-hero {
    grid-template-columns: 1fr;
  }

  .cf-trio {
    /* width must be definite: margin-inline:auto cancels grid stretch, and the
       desks are position:absolute so a shrink-to-fit trio collapses to nothing. */
    width: min(420px, 100%);
    height: 340px;
    margin-inline: auto;
  }

  .cf-how,
  .cf-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cf-how,
  .cf-gallery {
    grid-template-columns: 1fr;
  }

  .cf-trio {
    height: min(300px, 86vw);
  }

  .cf-trio-desk {
    width: 46%;
    padding: 8px;
  }

  .cf-trio-d3 {
    left: 50%;
  }
}

/* The 3D desk (#desk3d, desk-3d.js). The Graphite render shows until WebGL takes over. */
.desk3d {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(48px, 8vw, 96px);
}
.desk3d-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(110% 90% at 50% 30%, var(--surface-2) 0%, var(--bg-2) 60%, var(--bg) 100%);
  overflow: hidden;
}
.desk3d-poster,
.desk3d-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.desk3d-poster {
  object-fit: contain;
  padding: 8%;
}
.desk3d-stage canvas {
  display: none;
  touch-action: none;
  cursor: grab;
}
.desk3d-stage canvas:active {
  cursor: grabbing;
}
.desk3d.is-live .desk3d-stage canvas {
  display: block;
}
.desk3d.is-live .desk3d-poster {
  display: none;
}
.desk3d-views,
.desk3d-finishes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.desk3d-views {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
}
.desk3d:not(.is-live) .desk3d-views,
.desk3d:not(.is-live) .desk3d-finishes {
  display: none;
}
.desk3d button {
  font: 500 0.8125rem/1 var(--font-sans);
  color: var(--ink);
  background: rgba(24, 26, 20, 0.85);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.desk3d button:hover {
  border-color: var(--mute);
}
.desk3d button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.desk3d button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.desk3d .sw {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}
.sw-graphite { background: linear-gradient(135deg, #2b2d27 50%, #e0b878 50%); }
.sw-olive { background: linear-gradient(135deg, #5b6941 50%, #5a3b26 50%); }
.sw-ivory { background: linear-gradient(135deg, #ece5d6 50%, #3d4a2e 50%); }
.desk3d-copy {
  min-width: 0;
  max-width: 44ch;
  display: grid;
  gap: 16px;
}
.desk3d-copy h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  margin: 0;
}
.desk3d-copy p {
  margin: 0;
}
.desk3d-copy > p:not(.kicker) {
  color: var(--mute);
}
.desk3d-spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.desk3d-spec dt {
  color: var(--faint);
}
.desk3d-spec dd {
  margin: 0;
}
@media (max-width: 760px) {
  .desk3d {
    grid-template-columns: minmax(0, 1fr);
  }
}
