/* ==========================================================================
   Conformiti: conformiti.app
   Design system. One stylesheet, no build step.

   Contents
     01  Tokens
     02  Reset & base
     03  Typography
     04  Layout primitives
     05  Surfaces: light / wash / night
     06  Header & navigation
     07  Buttons & links
     08  Eyebrows, tags, pills, rules
     09  Cards & feature grids
     10  Showcase (dark) & app frames
     11  Steps, rails, timelines
     12  Tables
     13  Pricing
     14  Accordions (details), tabs, marquee
     15  Forms
     16  Footer
     17  Lightbox
     18  Motion & reveal
     19  Utilities
     20  Responsive
   ========================================================================== */

/* -- 01  Tokens ----------------------------------------------------------- */
:root {
  /* Brand: from frontend/src/brand.js. Fixed meanings; do not repurpose. */
  --blue:        #1D6FE0;   /* Governance Blue: the corporate mark          */
  --blue-deep:   #12458F;
  --blue-soft:   #EAF1FD;
  --blue-lift:   #60A5FA;   /* on dark                                       */
  --green:       #0E9F6E;   /* Assurance Green: passing, audit ready        */
  --green-deep:  #08704D;
  --green-soft:  #E9F7F1;
  --green-lift:  #34D399;
  --red:         #D93A3A;   /* Risk Red: findings, escalations, alerts      */
  --red-deep:    #8F2020;
  --red-soft:    #FCECEC;
  --red-lift:    #F87171;
  --purple:      #6D3BE4;   /* Policy Purple: frameworks and attestations   */
  --purple-deep: #42208F;
  --purple-soft: #F1EBFD;
  --purple-lift: #A78BFA;
  --amber:       #B45309;
  --amber-soft:  #FEF3C7;

  /* Light surface */
  --paper:   #FFFFFF;
  --wash:    #F5F7FA;
  --wash-2:  #EDF1F7;
  --line:    #E2E8F0;
  --line-2:  #CBD5E1;
  --ink:     #0B0E14;
  --ink-2:   #414C5C;
  --ink-3:   #6B7688;

  /* Night surface */
  --night:      #080B11;
  --night-2:    #0E131C;
  --night-3:    #151C27;
  --night-line: #1F2937;
  --night-line-2: #2C3A4C;
  --night-ink:  #F1F5F9;
  --night-ink-2:#9AA8BC;
  --night-ink-3:#6B7A90;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Consolas,
          "Liberation Mono", Menlo, monospace;

  /* Metrics */
  --shell:   1240px;
  --shell-w: 1380px;
  --gutter:  clamp(20px, 5vw, 48px);
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* Elevation: light only; the night surface uses borders and glow. */
  --lift-1: 0 1px 2px rgba(11, 14, 20, .05), 0 1px 1px rgba(11, 14, 20, .04);
  --lift-2: 0 4px 12px rgba(11, 14, 20, .06), 0 1px 3px rgba(11, 14, 20, .05);
  --lift-3: 0 18px 46px -18px rgba(11, 14, 20, .28), 0 2px 8px rgba(11, 14, 20, .06);
  --lift-4: 0 40px 90px -32px rgba(11, 14, 20, .42), 0 6px 18px rgba(11, 14, 20, .08);

  --header-h: 68px;

  /* Motion. One easing for things that settle into place, one for things
     that arrive, one with a little overshoot for small confirmations. Three
     durations: feedback, movement, arrival. Nothing on the site uses another. */
  --ease:      cubic-bezier(.4, 0, .2, 1);
  --ease-out:  cubic-bezier(.2, .7, .3, 1);
  --ease-back: cubic-bezier(.34, 1.45, .64, 1);
  --t-1: .16s;
  --t-2: .26s;
  --t-3: .55s;
}

/* -- 02  Reset & base ----------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "cv11" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--r) 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* -- 03  Typography ------------------------------------------------------- */

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.h1 { font-size: clamp(2.3rem, 4.8vw, 3.65rem); font-weight: 800; letter-spacing: -0.036em; line-height: 1.06; }
.h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); font-weight: 750; letter-spacing: -0.032em; }
.h3 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); font-weight: 700; letter-spacing: -0.024em; }
.h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.017em; }
.h5 { font-size: .97rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 1.65vw, 1.36rem);
  line-height: 1.56;
  color: var(--ink-2);
  letter-spacing: -0.011em;
  text-wrap: pretty;
}
.sub { color: var(--ink-2); }
.small { font-size: .92rem; }
.tiny  { font-size: .82rem; }

strong, b { font-weight: 650; color: var(--ink); }

code, kbd, pre, .mono, .num {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1, "zero" 1;
}
code {
  font-size: .875em;
  background: var(--wash-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .12em .4em;
  color: var(--blue-deep);
  white-space: nowrap;
}
kbd {
  font-size: .8em; padding: .18em .45em; border-radius: 5px;
  background: var(--paper); border: 1px solid var(--line-2);
  border-bottom-width: 2px; color: var(--ink-2);
}

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-1) var(--ease); }
a:hover { color: var(--blue); }

ul, ol { margin: 0 0 1.05em; padding-left: 1.25em; }
li { margin-bottom: .38em; }
li::marker { color: var(--line-2); }

/* -- 04  Layout primitives ------------------------------------------------ */

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell-w { width: 100%; max-width: var(--shell-w); margin-inline: auto; padding-inline: var(--gutter); }
.shell-n { width: 100%; max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }
.band { padding-block: clamp(68px, 9vw, 132px); }
.band-sm { padding-block: clamp(44px, 5.5vw, 72px); }
.band-lg { padding-block: clamp(84px, 11.5vw, 168px); }

.stack > * + * { margin-top: var(--gap, 20px); }
.grid { display: grid; gap: var(--gap, 24px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* These two carry their own `display: grid` because they are used on their
   own, without `.grid`: 46 and 16 times respectively. Without it they are
   plain blocks and every two-column section on the site silently stacks. */
.g-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.g-side {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-tight { gap: 8px; }
.between { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }

.measure    { max-width: 62ch; }
.measure-sm { max-width: 48ch; }
.center     { text-align: center; }
.center .measure, .center .measure-sm, .center .lede { margin-inline: auto; }

/* -- 05  Surfaces --------------------------------------------------------- */

.on-wash  { background: var(--wash); }
.on-wash-2 { background: var(--wash-2); }
.bordered-y { border-block: 1px solid var(--line); }
.bordered-t { border-top: 1px solid var(--line); }
.bordered-b { border-bottom: 1px solid var(--line); }

/* The ledger grid: a faint ruled sheet, the site's one recurring texture.
   The fade is a painted gradient layer rather than a mask: a mask this large
   promotes the pseudo-element to its own composited layer, and Chromium drops
   tiles from it while scrolling a long page (the section renders white).
   Height is capped for the same reason: the texture only reads near the top. */
.ruled { position: relative; isolation: isolate; }
.ruled::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  height: min(100%, 900px); pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.72) 62%, #fff 100%),
    linear-gradient(to right,  rgba(11, 14, 20, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 14, 20, .05) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
}

/* The dark half of the site. Every showcase sits on this. */
.night {
  background: var(--night);
  color: var(--night-ink);
  position: relative;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.night h1, .night h2, .night h3, .night h4, .night h5, .night strong { color: var(--night-ink); }
.night .lede, .night .sub { color: var(--night-ink-2); }
.night a { color: var(--blue-lift); }
.night a:hover { color: #93C5FD; }
.night code {
  background: rgba(96, 165, 250, .1);
  border-color: var(--night-line-2);
  color: #BFDBFE;
}
.night hr, .night .bordered-y, .night .bordered-t, .night .bordered-b { border-color: var(--night-line); }
.night li::marker { color: var(--night-line-2); }

/* Aurora: the accent glow that separates a showcase from a plain dark band.
   Anchored to the top of the band and height-capped: the glow reads there,
   and a 3000px-tall gradient layer is the thing that makes Chromium stutter. */
.night.aurora::before,
.night.aurora--green::before,
.night.aurora--red::before,
.night.aurora--purple::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  height: min(100%, 1000px); pointer-events: none;
  /* The glow breathes. A transform on a composited layer is the cheap kind
     of animation; the gradient itself is never repainted. */
  animation: aurora 22s var(--ease) infinite alternate;
  transform-origin: 50% 0;
}
@keyframes aurora {
  from { transform: translate3d(-2.5%, 0, 0) scale(1); opacity: .92; }
  to   { transform: translate3d(2.5%, 1.5%, 0) scale(1.06); opacity: 1; }
}
.night.aurora::before {
  background:
    radial-gradient(70% 62% at 12% 0%, rgba(29, 111, 224, .30), transparent 66%),
    radial-gradient(62% 56% at 88% 6%, rgba(109, 59, 228, .22), transparent 70%);
}
.night.aurora--green::before {
  background:
    radial-gradient(68% 60% at 84% 0%, rgba(14, 159, 110, .28), transparent 68%),
    radial-gradient(60% 54% at 10% 8%, rgba(29, 111, 224, .20), transparent 70%);
}
.night.aurora--purple::before {
  background:
    radial-gradient(70% 60% at 20% 0%, rgba(109, 59, 228, .30), transparent 68%),
    radial-gradient(58% 54% at 86% 12%, rgba(29, 111, 224, .20), transparent 70%);
}
.night.aurora--red::before {
  background:
    radial-gradient(70% 60% at 84% 0%, rgba(217, 58, 58, .22), transparent 68%),
    radial-gradient(62% 56% at 10% 6%, rgba(29, 111, 224, .24), transparent 70%);
}
.night.ruled::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  height: min(100%, 900px); pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(8,11,17,0) 0%, rgba(8,11,17,.75) 66%, var(--night) 100%),
    linear-gradient(to right,  rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
}

/* -- 06  Header & navigation ---------------------------------------------- */

.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), background var(--t-2) var(--ease);
}
.hdr.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px -10px rgba(11, 14, 20, .35);
}
.hdr-in {
  height: var(--header-h);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-word {
  font-size: 1.2rem; font-weight: 750; letter-spacing: -0.032em; color: var(--ink);
}
.brand-word i { font-style: normal; color: var(--blue); }

.nav { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: .935rem; font-weight: 550; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
  transition: color var(--t-1) var(--ease), background var(--t-1) var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--wash); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav a[aria-current="page"]::after {
  content: ""; width: 5px; height: 5px; border-radius: 99px; background: var(--blue);
}
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 14px; padding-left: 16px; border-left: 1px solid var(--line); }

.burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--r-sm); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--ink); position: relative; transition: transform var(--t-2) var(--ease), background var(--t-1) var(--ease); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink);
  transition: transform var(--t-2) var(--ease-out);
}
.burger span::before { top: -5.5px; }
.burger span::after  { top:  5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

.drawer {
  border-top: 1px solid var(--line); background: var(--paper);
  padding: 12px var(--gutter) 22px;
  display: block; max-height: 0; overflow: hidden; visibility: hidden;
  opacity: 0; transform: translateY(-6px);
  padding-block: 0; border-top-width: 0;
  transition: max-height var(--t-3) var(--ease), opacity var(--t-2) var(--ease),
              transform var(--t-2) var(--ease-out), padding var(--t-3) var(--ease),
              border-width var(--t-2) var(--ease), visibility 0s linear var(--t-3);
}
.drawer.is-open {
  max-height: 640px; visibility: visible; opacity: 1; transform: none;
  padding: 12px var(--gutter) 22px; border-top-width: 1px;
  transition-delay: 0s;
}
.drawer a {
  display: block; padding: 13px 2px; font-size: 1.02rem; font-weight: 600;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.drawer .btn { margin-top: 16px; width: 100%; justify-content: center; border-bottom: 0; }

/* -- 07  Buttons ---------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font: inherit; font-size: .955rem; font-weight: 600; letter-spacing: -0.012em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease),
              background var(--t-1) var(--ease), border-color var(--t-1) var(--ease),
              color var(--t-1) var(--ease);
}
.btn:hover { text-decoration: none; color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--lift-2); }
/* The press is quicker than the lift: the hand expects it to. */
.btn:active { transform: translateY(0) scale(.985); box-shadow: none; transition-duration: .06s; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  --btn-bg: var(--blue); --btn-bd: #1A66D2;
  background-image: linear-gradient(180deg, #2F82F2 0%, #1D6FE0 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 8px 20px -10px rgba(29,111,224,.8);
}
.btn-primary:hover {
  --btn-bd: #1560C6;
  background-image: linear-gradient(180deg, #2A78E6 0%, #1862CB 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 14px 30px -12px rgba(29,111,224,.9);
}
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn-ghost:hover { --btn-bg: var(--wash); --btn-bd: var(--ink-3); }
.btn-quiet { --btn-bg: transparent; --btn-fg: var(--ink-2); --btn-bd: transparent; padding-inline: 8px; }
.btn-quiet:hover { --btn-fg: var(--ink); --btn-bg: var(--wash); box-shadow: none; }
.btn-lg { padding: 16px 28px; font-size: 1.03rem; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: .875rem; }
.btn-block { width: 100%; }

.night .btn-ghost { --btn-fg: var(--night-ink); --btn-bd: var(--night-line-2); }
.night .btn-ghost:hover { --btn-bg: rgba(255,255,255,.06); --btn-bd: var(--night-ink-3); }
.night .btn-light { --btn-bg: #fff; --btn-fg: var(--night); --btn-bd: #fff; }
.night .btn-light:hover { --btn-bg: #E7EDF6; --btn-bd: #E7EDF6; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 620; text-decoration: none; font-size: .96rem;
}
.link-arrow::after { content: "→"; transition: transform var(--t-2) var(--ease-back); font-family: var(--sans); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

/* -- 08  Eyebrows, tags, pills, rules ------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .715rem; font-weight: 500;
  letter-spacing: .19em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--line-2); flex: none; border-radius: 2px;
}
.eyebrow.no-rule::before { display: none; }
.eyebrow-blue   { color: var(--blue); }   .eyebrow-blue::before   { background: var(--blue); }
.eyebrow-green  { color: var(--green-deep); } .eyebrow-green::before  { background: var(--green); }
.eyebrow-purple { color: var(--purple-deep); } .eyebrow-purple::before { background: var(--purple); }
.eyebrow-red    { color: var(--red-deep); }  .eyebrow-red::before    { background: var(--red); }
.night .eyebrow { color: var(--night-ink-3); }
.night .eyebrow::before { background: var(--night-line-2); }
.night .eyebrow-blue { color: var(--blue-lift); } .night .eyebrow-blue::before { background: var(--blue-lift); }
.night .eyebrow-green { color: var(--green-lift); } .night .eyebrow-green::before { background: var(--green-lift); }
.night .eyebrow-purple { color: var(--purple-lift); } .night .eyebrow-purple::before { background: var(--purple-lift); }
.center .eyebrow { justify-content: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 9px; border-radius: 99px;
  background: var(--wash); border: 1px solid var(--line);
  font-size: .82rem; font-weight: 550; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
  transition: background var(--t-1) var(--ease), border-color var(--t-1) var(--ease),
              color var(--t-1) var(--ease), transform var(--t-2) var(--ease-out);
}
.pill:hover { text-decoration: none; }
a.pill:hover { transform: translateY(-1px); }
a.pill:hover { border-color: var(--line-2); background: var(--wash-2); color: var(--ink); }
.pill .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--green); flex: none; }
.pill .dot-blue { background: var(--blue); }
.pill .dot-green { background: var(--green); }
.pill .dot-purple { background: var(--purple); }
.pill .dot-red { background: var(--red); }
.night .pill { background: rgba(255,255,255,.05); border-color: var(--night-line-2); color: var(--night-ink-2); }
.night a.pill:hover { background: rgba(255,255,255,.09); color: var(--night-ink); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 5px;
  background: var(--wash-2); color: var(--ink-3); border: 1px solid var(--line);
}
.tag-blue   { background: var(--blue-soft);   color: var(--blue-deep);   border-color: #C9DDFA; }
.tag-green  { background: var(--green-soft);  color: var(--green-deep);  border-color: #C4E9DA; }
.tag-purple { background: var(--purple-soft); color: var(--purple-deep); border-color: #DCCDFA; }
.tag-red    { background: var(--red-soft);    color: var(--red-deep);    border-color: #F6CFCF; }
.tag-amber  { background: var(--amber-soft);  color: var(--amber);       border-color: #F5DEA6; }
.night .tag { background: rgba(255,255,255,.06); border-color: var(--night-line-2); color: var(--night-ink-2); }
.night .tag-blue   { background: rgba(96,165,250,.14);  color: #93C5FD; border-color: rgba(96,165,250,.3); }
.night .tag-green  { background: rgba(52,211,153,.14);  color: #6EE7B7; border-color: rgba(52,211,153,.3); }
.night .tag-purple { background: rgba(167,139,250,.14); color: #C4B5FD; border-color: rgba(167,139,250,.3); }
.night .tag-red    { background: rgba(248,113,113,.14); color: #FCA5A5; border-color: rgba(248,113,113,.3); }

.kicker {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}
.night .kicker { color: var(--night-ink-3); }

/* -- 09  Cards & feature grids -------------------------------------------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 30px);
  position: relative;
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease),
              transform var(--t-2) var(--ease-out);
}
.card-hover:hover { border-color: var(--line-2); box-shadow: var(--lift-3); transform: translateY(-3px); }
/* The icon lifts a beat after the card, so the card reads as a surface
   with something sitting on it rather than a flat tile. */
.card-hover:hover .ico { transform: translateY(-2px) scale(1.04); box-shadow: var(--lift-2); }
.card-flush { padding: 0; overflow: hidden; }
.card-tint { background: var(--wash); }
.night .card { background: var(--night-2); border-color: var(--night-line); }
.night .card-hover:hover { border-color: var(--night-line-2); box-shadow: 0 24px 60px -28px rgba(0,0,0,.9); }
.night .card-tint { background: var(--night-3); }

/* Feature cell: icon, title, body. The workhorse of the feature grids. */
.cell { display: flex; flex-direction: column; gap: 12px; }
.cell .ico {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-deep);
  border: 1px solid #D3E3FB;
  transition: transform var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease);
  transition-delay: .03s;
}
.cell .ico svg { width: 22px; height: 22px; }
.cell .ico-green  { background: var(--green-soft);  color: var(--green-deep);  border-color: #C4E9DA; }
.cell .ico-purple { background: var(--purple-soft); color: var(--purple-deep); border-color: #DCCDFA; }
.cell .ico-red    { background: var(--red-soft);    color: var(--red-deep);    border-color: #F6CFCF; }
.cell .ico-ink    { background: var(--wash-2);      color: var(--ink);         border-color: var(--line); }
.cell h3, .cell h4 { margin: 0; }
.cell p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.night .cell .ico { background: rgba(96,165,250,.13); color: #93C5FD; border-color: rgba(96,165,250,.26); }
.night .cell .ico-green  { background: rgba(52,211,153,.13);  color: #6EE7B7; border-color: rgba(52,211,153,.26); }
.night .cell .ico-purple { background: rgba(167,139,250,.13); color: #C4B5FD; border-color: rgba(167,139,250,.26); }
.night .cell .ico-red    { background: rgba(248,113,113,.13); color: #FCA5A5; border-color: rgba(248,113,113,.26); }
.night .cell .ico-ink    { background: rgba(255,255,255,.07); color: var(--night-ink); border-color: var(--night-line-2); }
.night .cell p { color: var(--night-ink-2); }

/* Ruled feature grid: hairline cells instead of boxes. Very high contrast. */
.matrix {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.matrix > * { background: var(--paper); padding: clamp(24px, 2.8vw, 36px); transition: background var(--t-2) var(--ease); }
.matrix > *:hover { background: var(--wash); }
.night .matrix { background: var(--night-line); border-color: var(--night-line); }
.night .matrix > * { background: var(--night-2); }
.night .matrix > *:hover { background: var(--night-3); }

/* Stat block */
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat .n {
  font-family: var(--mono); font-size: clamp(2.2rem, 3.9vw, 3.5rem);
  font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--ink);
}
.stat .n em { font-style: normal; color: var(--blue); }
.stat .l { font-size: .89rem; color: var(--ink-2); line-height: 1.4; }
.night .stat .n {
  color: var(--night-ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #B9C8DC 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.night .stat .n em { -webkit-text-fill-color: var(--blue-lift); color: var(--blue-lift); }
.night .stat .l { color: var(--night-ink-2); }

/* Checked / crossed lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
/* Block, not flex: inline <strong>/<a>/<em> inside a bullet must keep flowing
   with the surrounding text instead of becoming sibling flex columns. */
.ticks li { display: block; position: relative; padding-left: 30px; margin: 0; font-size: .96rem; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 19px; height: 19px; border-radius: 99px;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308704D' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid #C4E9DA;
}
.ticks li strong { color: var(--ink); }
.ticks.ticks-blue li::before {
  background-color: var(--blue-soft); border-color: #D3E3FB;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312458F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.ticks li.no::before {
  background-color: var(--wash-2); border-color: var(--line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7688' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E");
}
.night .ticks li { color: var(--night-ink-2); }
.night .ticks li strong { color: var(--night-ink); }
.night .ticks li::before {
  background-color: rgba(52,211,153,.16); border-color: rgba(52,211,153,.32);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236EE7B7' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.night .ticks li.no::before {
  background-color: rgba(255,255,255,.06); border-color: var(--night-line-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A90' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E");
}

/* Quote */
.quote {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 22px;
  font-size: 1.12rem; line-height: 1.55; letter-spacing: -0.012em;
  color: var(--ink);
}
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: .88rem; color: var(--ink-3); }
.night .quote { border-left-color: var(--blue-lift); color: var(--night-ink); }
.night .quote cite { color: var(--night-ink-3); }

/* Callout */
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--blue);
  background: var(--wash); border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 20px; font-size: .95rem; color: var(--ink-2);
}
.note strong { color: var(--ink); }
.note-green  { border-left-color: var(--green); }
.note-amber  { border-left-color: var(--amber); }
.note-purple { border-left-color: var(--purple); }
.night .note { background: var(--night-3); border-color: var(--night-line); border-left-color: var(--blue-lift); color: var(--night-ink-2); }
/* Without this the bold lead-in keeps --ink (near black) and all but
   disappears against a dark band. */
.night .note strong { color: var(--night-ink); }

/* -- 10  Showcase & app frames -------------------------------------------- */

/* The browser chrome that wraps every screenshot. */
.frame {
  border-radius: 14px; overflow: hidden;
  background: var(--night-2);
  border: 1px solid var(--night-line-2);
  box-shadow:
    0 0 0 1px rgba(11, 14, 20, .06),
    0 30px 60px -30px rgba(11, 14, 20, .45),
    0 60px 120px -40px rgba(0, 0, 0, .75),
    0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; background: #0B1017;
  border-bottom: 1px solid var(--night-line);
}
.frame-bar i { width: 9px; height: 9px; border-radius: 99px; background: #2A3647; flex: none; }
.frame-bar .url {
  margin-left: 10px; flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .02em;
  color: var(--night-ink-3);
  background: rgba(255,255,255,.045); border: 1px solid var(--night-line);
  border-radius: 99px; padding: 4px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame-bar .url::before {
  content: ""; flex: none; width: 9px; height: 10px; opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA8BC' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.frame img { display: block; width: 100%; }
.frame-plain { border-radius: 12px; overflow: hidden; border: 1px solid var(--night-line-2); box-shadow: var(--lift-4); }
.frame-plain img { display: block; width: 100%; }

/* Clickable screenshot */
.shot { display: block; cursor: zoom-in; position: relative; border: 0; padding: 0; background: none; width: 100%; overflow: hidden; }
.shot img { transition: transform var(--t-3) var(--ease-out); transform-origin: 50% 40%; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.015); }
.shot::after {
  content: "⤢"; position: absolute; right: 12px; bottom: 12px;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: rgba(8, 11, 17, .78); border: 1px solid var(--night-line-2);
  color: var(--night-ink); border-radius: 8px; font-size: .85rem;
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease-out);
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; transform: none; }

.caption {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .05em;
  color: var(--ink-3); margin-top: 12px; line-height: 1.55;
}
.night .caption { color: var(--night-ink-3); }

/* Live demo: demo.html embedded inside the browser frame.
   Sandboxed in an iframe so its own theme tokens cannot collide with the
   marketing stylesheet, and swapped for the static screenshot below 940px
   where a desktop GRC layout stops being a good first impression. */
.demo-embed { position: relative; background: var(--night); display: block; }
.demo-embed iframe {
  display: block; width: 100%; border: 0;
  aspect-ratio: 16 / 9; min-height: 460px;
  background: var(--night);
}
.demo-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(8, 11, 17, .82); backdrop-filter: blur(6px);
  border: 1px solid var(--night-line-2); border-radius: 99px;
  padding: 5px 12px 5px 9px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--night-ink-2);
}
.demo-badge i {
  width: 7px; height: 7px; border-radius: 99px; background: var(--green-lift);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.demo-open {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(8, 11, 17, .82); backdrop-filter: blur(6px);
  border: 1px solid var(--night-line-2); border-radius: 8px;
  padding: 7px 12px; font-size: .8rem; font-weight: 550;
  color: var(--night-ink); text-decoration: none;
  transition: background var(--t-1) var(--ease), border-color var(--t-1) var(--ease), transform var(--t-2) var(--ease-out);
}
.demo-open:hover { transform: translateY(-1px); }
.demo-open:hover { background: rgba(255, 255, 255, .12); border-color: var(--night-ink-3); color: #fff; text-decoration: none; }
.demo-fallback { display: none; }

@media (max-width: 940px) {
  .demo-embed { display: none; }
  .demo-fallback { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-badge i { animation: none; }
}

/* Hero visual: the demo frame floats on a soft accent glow */
.hero-shot { margin-top: clamp(44px, 5.5vw, 72px); position: relative; }
.hero-shot::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 6%; right: 6%; top: -6%; bottom: -10%;
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(29, 111, 224, .18), transparent 70%),
    radial-gradient(50% 45% at 78% 70%, rgba(109, 59, 228, .12), transparent 70%);
  filter: blur(30px);
  animation: breathe 9s var(--ease) infinite alternate;
}
@keyframes breathe {
  from { opacity: .75; transform: scale(.98); }
  to   { opacity: 1;   transform: scale(1.03); }
}
.pull-up { margin-top: clamp(-190px, -14vw, -80px); }
.pad-top-pull { padding-top: clamp(120px, 17vw, 240px); }

/* -- 11  Steps, rails, timelines ------------------------------------------ */

.rail { display: grid; gap: 0; counter-reset: step; }
.rail-item {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px;
  padding-bottom: 34px; position: relative;
}
.rail-item:last-child { padding-bottom: 0; }
.rail-item::before {
  content: ""; position: absolute; left: 27px; top: 46px; bottom: -6px;
  width: 1px; background: linear-gradient(var(--line-2), var(--line));
}
.rail-item:last-child::before { display: none; }
.rail-num {
  counter-increment: step; width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; flex: none;
  background: var(--paper); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 1rem; font-weight: 500; color: var(--ink);
  box-shadow: var(--lift-1); z-index: 1;
}
.rail-num::before { content: counter(step, decimal-leading-zero); }
.rail-body h3 { margin: 12px 0 8px; }
.rail-body p { color: var(--ink-2); margin: 0; }
.night .rail-item::before { background: linear-gradient(var(--night-line-2), var(--night-line)); }
.night .rail-num { background: var(--night-2); border-color: var(--night-line-2); color: var(--night-ink); box-shadow: none; }
.night .rail-body p { color: var(--night-ink-2); }

/* Horizontal numbered flow */
.flow { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.flow-step { background: var(--paper); padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 10px; }
.flow-step .n {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  color: var(--blue); font-weight: 500;
}
.flow-step h4 { margin: 0; }
.flow-step p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.night .flow { background: var(--night-line); border-color: var(--night-line); }
.night .flow-step { background: var(--night-2); }
.night .flow-step .n { color: var(--blue-lift); }
.night .flow-step p { color: var(--night-ink-2); }

/* -- 12  Tables ----------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.night .table-wrap { border-color: var(--night-line); background: var(--night-2); }

table.t { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 620px; }
table.t th, table.t td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); transition: background var(--t-1) var(--ease); }
table.t thead th {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3);
  background: var(--wash); white-space: nowrap; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1;
}
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: rgba(29, 111, 224, .028); }
table.t td strong, table.t th[scope="row"] { color: var(--ink); font-weight: 620; }
table.t th[scope="row"] { font-weight: 600; }
table.t .c { text-align: center; }
table.t .yes { color: var(--green-deep); font-weight: 700; }
/* Holds a word now rather than a faint dash, so it needs to be readable
   as secondary text rather than nearly invisible. */
table.t .no  { color: var(--ink-3); font-weight: 500; }
table.t .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.night table.t th, .night table.t td { border-bottom-color: var(--night-line); }
.night table.t thead th { background: var(--night-3); color: var(--night-ink-3); }
.night table.t tbody tr:hover td { background: rgba(96,165,250,.05); }
.night table.t td strong, .night table.t th[scope="row"] { color: var(--night-ink); }
.night table.t .yes { color: var(--green-lift); }
.night table.t .no { color: var(--night-ink-3); }

/* Compact key/value table */
table.kv { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.kv th, table.kv td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.kv th { width: 34%; font-weight: 600; color: var(--ink); padding-right: 20px; }
table.kv td { color: var(--ink-2); }
table.kv tr:last-child th, table.kv tr:last-child td { border-bottom: 0; }
.night table.kv th, .night table.kv td { border-bottom-color: var(--night-line); }
.night table.kv th { color: var(--night-ink); }
.night table.kv td { color: var(--night-ink-2); }

/* -- 13  Pricing ---------------------------------------------------------- */

.toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--wash); border: 1px solid var(--line); border-radius: 99px;
}
.toggle button {
  border: 0; background: none; cursor: pointer; font: inherit;
  font-size: .89rem; font-weight: 600; color: var(--ink-2);
  padding: 8px 18px; border-radius: 99px; transition: background var(--t-1) var(--ease), color var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease);
}
.toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--lift-1); }
.toggle .save { font-size: .72rem; color: var(--green-deep); font-weight: 700; margin-left: 6px; }

.plans { display: grid; gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px 24px; position: relative;
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), transform var(--t-2) var(--ease-out);
}
.plan:hover { border-color: var(--line-2); box-shadow: var(--lift-2); }
.plan-featured {
  border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--lift-3);
  transform: translateY(-6px);
  background-image: linear-gradient(180deg, var(--blue-soft) 0%, var(--paper) 34%);
}
.night .plan-featured { background-image: linear-gradient(180deg, rgba(96,165,250,.10) 0%, var(--night-2) 34%); }
.plan-featured:hover { transform: translateY(-8px); box-shadow: 0 0 0 1px var(--blue), var(--lift-4); }
.plan-flag {
  position: absolute; top: -12px; left: 24px;
  background: var(--blue); color: #fff; border-radius: 99px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px; font-weight: 500;
}
.plan h3 { font-size: 1.18rem; margin: 0 0 4px; }
.plan .plan-for { font-size: .88rem; color: var(--ink-3); margin: 0 0 20px; min-height: 2.6em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: nowrap; }
.plan .price .amt {
  font-family: var(--mono); font-size: clamp(1.95rem, 2.4vw, 2.45rem); font-weight: 600;
  letter-spacing: -0.05em; color: var(--ink); line-height: 1; white-space: nowrap;
}
.plan .price .per { font-size: .87rem; color: var(--ink-3); }
.plan .price-note { font-size: .8rem; color: var(--ink-3); margin: 8px 0 0; min-height: 2.4em; }
.plan .plan-cta { margin: 20px 0 22px; }
.plan .ticks { font-size: .9rem; }
.plan .ticks li { font-size: .9rem; }
.plan hr { margin: 20px 0; }
/* The foot carries small print under a list. Inside a .plan it also pushes
   itself to the bottom of the flex column; anywhere else it just needs the
   clearance, which it was not getting on the managed-hosting card. */
.plan-foot { padding-top: 18px; }
.plan .plan-foot { margin-top: auto; padding-top: 20px; }

.night .plan { background: var(--night-2); border-color: var(--night-line); }
.night .plan-featured { border-color: var(--blue-lift); box-shadow: 0 0 0 1px var(--blue-lift), 0 30px 70px -30px rgba(0,0,0,.9); }
.night .plan .price .amt { color: var(--night-ink); }
.night .plan .plan-for, .night .plan .price .per, .night .plan .price-note { color: var(--night-ink-3); }
.night .toggle { background: var(--night-3); border-color: var(--night-line); }
.night .toggle button { color: var(--night-ink-2); }
.night .toggle button[aria-pressed="true"] { background: var(--night); color: var(--night-ink); box-shadow: none; }

/* Service / consulting card */
.svc { display: flex; flex-direction: column; height: 100%; }
.svc .svc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.svc .svc-price { font-family: var(--mono); font-size: 1.02rem; font-weight: 600; color: var(--ink); white-space: nowrap; letter-spacing: -0.02em; }
.svc .svc-price small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; text-align: right; }
.svc .svc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.svc p { font-size: .95rem; color: var(--ink-2); }
.svc .ticks { margin-top: 16px; }
.svc .svc-foot { margin-top: auto; padding-top: 20px; }
.night .svc .svc-price { color: var(--night-ink); }
.night .svc .svc-price small { color: var(--night-ink-3); }
.night .svc p { color: var(--night-ink-2); }

/* -- 14  Accordions, tabs, marquee ---------------------------------------- */

details.acc {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
details.acc summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0;
  font-size: 1.04rem; font-weight: 620; letter-spacing: -0.016em;
  color: var(--ink); position: relative;
  transition: color var(--t-1) var(--ease);
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 13px;
  margin-top: -6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7688' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t-2) var(--ease-back);
}
details.acc[open] summary::after { transform: rotate(45deg); }
/* The body's height is animated by site.js; this is what it animates on. */
details.acc .acc-body { overflow: hidden; }
details.acc.is-animating summary { pointer-events: none; }
details.acc summary:hover { color: var(--blue-deep); }
details.acc .acc-body { padding: 0 44px 22px 0; color: var(--ink-2); font-size: .97rem; }
details.acc .acc-body > :last-child { margin-bottom: 0; }
.night details.acc { border-bottom-color: var(--night-line); }
.night details.acc summary { color: var(--night-ink); }
.night details.acc summary:hover { color: var(--blue-lift); }
.night details.acc summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA8BC' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}
.night details.acc .acc-body { color: var(--night-ink-2); }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button {
  border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  font: inherit; font-size: .89rem; font-weight: 550; color: var(--ink-2);
  padding: 9px 15px; border-radius: 99px;
  transition: background var(--t-1) var(--ease), color var(--t-1) var(--ease), border-color var(--t-1) var(--ease), transform var(--t-2) var(--ease-out);
}
.tabs button:hover { color: var(--ink); border-color: var(--line-2); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.night .tabs button { background: transparent; border-color: var(--night-line-2); color: var(--night-ink-2); }
.night .tabs button:hover { color: var(--night-ink); border-color: var(--night-ink-3); }
.night .tabs button[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--night); }
[role="tabpanel"][hidden] { display: none; }
/* A panel that has just appeared rises into place. Toggling `hidden` restarts it. */
[role="tabpanel"]:not([hidden]) { animation: rise var(--t-3) var(--ease-out) both; }

/* Framework marquee */
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.strip .std {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--line); background: var(--paper);
  border-radius: 99px; padding: 8px 16px; white-space: nowrap;
  transition: border-color var(--t-1) var(--ease), transform var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease);
}
.strip .std:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--lift-1); }
.strip .std b { color: var(--ink); font-weight: 600; }
.strip .std .ct { color: var(--blue); font-weight: 600; }
.night .strip .std { color: var(--night-ink-2); border-color: var(--night-line-2); background: rgba(255,255,255,.035); }
.night .strip .std b { color: var(--night-ink); }
.night .strip .std .ct { color: var(--blue-lift); }

/* Terminal block */
.term {
  background: var(--night); border: 1px solid var(--night-line-2);
  border-radius: var(--r); overflow: hidden;
  font-family: var(--mono); font-size: .86rem; line-height: 1.75;
  position: relative;
}
.term-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px 9px 14px; border-bottom: 1px solid var(--night-line);
  background: rgba(255,255,255,.025);
}
.term-head .t { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--night-ink-3); }
.term pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: #D7E3F4; }
.term .p { color: #6EE7B7; user-select: none; }
.term .c { color: var(--night-ink-3); }
.term .f { color: #93C5FD; }
.copy {
  border: 1px solid var(--night-line-2); background: rgba(255,255,255,.05);
  color: var(--night-ink-2); border-radius: 6px; padding: 4px 10px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-1) var(--ease), color var(--t-1) var(--ease),
              border-color var(--t-1) var(--ease), transform var(--t-2) var(--ease-back);
}
.copy:hover { background: rgba(255,255,255,.11); color: var(--night-ink); }
.copy.done { color: var(--green-lift); border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.1); transform: scale(1.06); }

/* -- 15  Forms ------------------------------------------------------------ */

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--red); }
.field .hint { font-size: .8rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 11px 13px; width: 100%;
  transition: border-color var(--t-1) var(--ease), box-shadow var(--t-2) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA5B4; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .89rem; color: var(--ink-2); }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--blue); flex: none; }

/* -- 16  Footer ----------------------------------------------------------- */

.ftr { background: var(--night); color: var(--night-ink-2); padding-block: clamp(56px, 7vw, 84px) 34px; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.ftr h5, .ftr .ftr-h {
  font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--night-ink-3); margin: 0 0 16px;
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr li { margin: 0; }
.ftr a { color: var(--night-ink-2); text-decoration: none; font-size: .92rem; transition: color var(--t-1) var(--ease); }
.ftr a:hover { color: #fff; text-decoration: none; }
.ftr .brand-word { color: var(--night-ink); }
.ftr-base {
  margin-top: clamp(40px, 5vw, 60px); padding-top: 26px; border-top: 1px solid var(--night-line);
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between;
  font-size: .84rem; color: var(--night-ink-3);
}
.ftr-base a { font-size: .84rem; }

/* -- 17  Lightbox --------------------------------------------------------- */

.lbx {
  position: fixed; inset: 0; z-index: 200; display: flex;
  background: rgba(4, 6, 10, .93); backdrop-filter: blur(6px);
  padding: clamp(16px, 4vw, 56px);
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-2) var(--ease), visibility 0s linear var(--t-2);
}
.lbx.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.lbx figure {
  margin: 0; max-width: 1500px; width: 100%;
  transform: scale(.965) translateY(10px);
  transition: transform var(--t-3) var(--ease-out);
}
.lbx.is-open figure { transform: none; }
.lbx img {
  width: 100%; height: auto; max-height: 82vh; object-fit: contain;
  border-radius: 10px; border: 1px solid var(--night-line-2);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9);
}
.lbx figcaption {
  margin-top: 16px; text-align: center; color: var(--night-ink-2);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .06em;
}
.lbx-close {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px;
  border-radius: 10px; border: 1px solid var(--night-line-2);
  background: rgba(255,255,255,.06); color: var(--night-ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background var(--t-1) var(--ease), transform var(--t-2) var(--ease-back);
}
.lbx-close:hover { background: rgba(255,255,255,.14); transform: rotate(90deg); }

/* -- 18  Motion & reveal -------------------------------------------------- */

/* Nothing is hidden until site.js sets `reveal-on` on <html>. If the script
   never runs, the page is simply static: it is never blank. */
/* `translate`, not `transform`: the reveal must not own the transform
   channel, or the card hover lift and the featured plan's raise (both
   `transform`) lose to it. The two properties compose. */
.reveal-on .reveal { opacity: 0; translate: 0 16px; }
.reveal-on .reveal.in {
  opacity: 1; translate: 0 0;
  transition: opacity var(--t-3) var(--ease-out), translate var(--t-3) var(--ease-out);
}

/* The hero arrives on its own, without waiting for the script. A keyframe
   runs from first paint, so there is no flash of hidden content the way a
   JS-driven reveal above the fold would have. Each direct child of the first
   section's shell comes in a beat after the one before it. */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
main > section:first-of-type > .shell > *,
main > section:first-of-type > .shell-n > * {
  animation: rise .7s var(--ease-out) both;
}
main > section:first-of-type > .shell > :nth-child(2),
main > section:first-of-type > .shell-n > :nth-child(2) { animation-delay: .08s; }
main > section:first-of-type > .shell > :nth-child(3),
main > section:first-of-type > .shell-n > :nth-child(3) { animation-delay: .16s; }
main > section:first-of-type > .shell > :nth-child(4),
main > section:first-of-type > .shell-n > :nth-child(4) { animation-delay: .24s; }
main > section:first-of-type > .shell > :nth-child(5),
main > section:first-of-type > .shell-n > :nth-child(5) { animation-delay: .32s; }
main > section:first-of-type > .shell > :nth-child(6),
main > section:first-of-type > .shell-n > :nth-child(6) { animation-delay: .40s; }
main > section:first-of-type > .shell > :nth-child(n+7),
main > section:first-of-type > .shell-n > :nth-child(n+7) { animation-delay: .48s; }
/* A split hero: the copy first, the visual a beat behind. */
main > section:first-of-type > .shell > .g-split > :first-child { animation: rise .7s var(--ease-out) both; }
main > section:first-of-type > .shell > .g-split > :last-child  { animation: rise .8s var(--ease-out) .18s both; }

/* Numbers that count up (site.js) hold their width while they do. */
.stat .n { font-variant-numeric: tabular-nums; }
.reveal-on .reveal[data-d="1"].in { transition-delay: .07s; }
.reveal-on .reveal[data-d="2"].in { transition-delay: .14s; }
.reveal-on .reveal[data-d="3"].in { transition-delay: .21s; }
.reveal-on .reveal[data-d="4"].in { transition-delay: .28s; }
.reveal-on .reveal[data-d="5"].in { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on .reveal, .reveal-on .reveal.in { opacity: 1; translate: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}

/* -- 19  Utilities -------------------------------------------------------- */

.hide { display: none !important; }
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 10px; }  .mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 26px; }  .mt-4 { margin-top: 36px; }
.mt-5 { margin-top: 48px; }  .mt-6 { margin-top: 64px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 18px; } .mb-3 { margin-bottom: 26px; }
.mb-4 { margin-bottom: 36px; } .mb-5 { margin-bottom: 48px; }
.full { grid-column: 1 / -1; }
.nowrap { white-space: nowrap; }
.text-blue { color: var(--blue); }
.text-green { color: var(--green-deep); }
.text-red { color: var(--red); }
.text-mute { color: var(--ink-3); }
.night .text-mute { color: var(--night-ink-3); }
.night .text-green { color: var(--green-lift); }

/* -- 20  Editions, packs and availability --------------------------------- */

/* Availability chip. Sits above the edition name so the buyer learns what is
   shipping before they read the price, never after it. */
.avail { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* An edition card is a .plan with a coloured spine across the top. Only the
   recommended one is tinted; the others stay neutral so the accent still
   means "this one", exactly as .plan-featured already does. */
/* No overflow:hidden here. The spine needs to follow the card's rounded top,
   but .plan-flag hangs 12px above the card edge and clipping the card clips
   the flag with it. Rounding the spine itself does the same job. */
.ed { position: relative; }
.ed::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--line-2);
}
.ed-free::before  { background: var(--ink-3); }
.ed-pro::before   { background: linear-gradient(90deg, var(--blue), var(--blue-lift)); }
.ed-ult::before   { background: linear-gradient(90deg, var(--blue-deep), var(--purple)); }

/* "Everything in Pro, plus": the inheritance line at the top of a tick list.
   Buyers skim tiers for the delta, so the delta gets the emphasis. */
.ed-from {
  display: flex; align-items: center; gap: 8px;
  font-size: .86rem; font-weight: 600; color: var(--ink-2);
  padding: 10px 12px; margin-bottom: 14px;
  background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.ed-from svg { flex: none; width: 14px; height: 14px; color: var(--blue); }
.night .ed-from { background: var(--night-3); border-color: var(--night-line); color: var(--night-ink-2); }
.night .ed-from svg { color: var(--blue-lift); }

/* Founding-licence strike-through. The real price stays visible: a discount
   you cannot see the original of is not a discount. */
.was { font-family: var(--mono); font-size: .9rem; color: var(--ink-3); text-decoration: line-through; margin-right: 8px; }
.night .was { color: var(--night-ink-3); }

/* Pack catalogue. A row, not a card grid: forty packs as cards is a wall, and
   the buyer is scanning for one framework name. */
.packs { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pack {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px 20px; align-items: center;
  background: var(--paper); padding: 15px 20px;
  transition: background var(--t-1) var(--ease);
}
.pack:hover { background: var(--wash); }
.pack h3 { font-size: .96rem; margin: 0 0 2px; }
.pack p { font-size: .82rem; color: var(--ink-3); margin: 0; }
.pack-n { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.night .packs { background: var(--night-line); border-color: var(--night-line); }
.night .pack { background: var(--night-2); }
.night .pack:hover { background: var(--night-3); }
.night .pack p, .night .pack-n { color: var(--night-ink-3); }

/* A tick list entry that belongs to a paid edition. The dot is the same shape
   as a tick so the list still reads as one column. */
.ticks li.pro::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); border: 0; top: 9px; left: 4px;
}
.night .ticks li.pro::before { background: var(--blue-lift); }

/* -- 21  Responsive ------------------------------------------------------- */

@media (max-width: 1080px) {
  .ftr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr-grid > :first-child { grid-column: 1 / -1; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .nav, .nav-cta { display: none; }
  .burger { display: flex; }
  .g-split, .g-side { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .g-side { gap: 24px; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pull-up { margin-top: -60px; }
  .pad-top-pull { padding-top: 110px; }
}

@media (max-width: 720px) {
  /* Three columns squeeze the pack name to one word a line. Stack instead, and
     let the crosswalk note and status sit together under it. */
  .pack { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 18px; }
  .pack-n { order: 3; }
  .pack .tag { order: 2; justify-self: start; }

  body { font-size: 16px; }
  /* Pills are nowrap so short ones stay tidy, but a long one: the hero's
     release line: is wider than a phone. Let them wrap down here. */
  .pill { white-space: normal; }
  .pill > span:not(.dot) { min-width: 0; }
  /* Inline code is nowrap so short identifiers do not break mid-token, but a
     full shell command is wider than a phone. Let it wrap here rather than
     push the page sideways. */
  code { white-space: normal; overflow-wrap: anywhere; }
  /* The engagement-card header is title-left / price-right, and the price is
     nowrap. On a phone that pair does not fit on one line, so stack it. */
  .svc .svc-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .svc .svc-price small { text-align: left; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: none; }
  .rail-item { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .rail-num { width: 44px; height: 44px; border-radius: 11px; font-size: .86rem; }
  .rail-item::before { left: 21.5px; top: 38px; }
  .btn-lg { padding: 13px 20px; font-size: .97rem; }
  .frame-bar .url { display: none; }
  .pull-up { margin-top: -34px; }
  .pad-top-pull { padding-top: 74px; }
}

@media print {
  .hdr, .ftr, .lbx, .burger, .drawer { display: none !important; }
  body { font-size: 11pt; }
  .night { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1 !important; translate: none !important; }
}
