@layer reset, fonts, tokens, base, layout, components, motion;

@layer fonts {
  @font-face { font-family: "Arvo"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/arvo-700.woff2") format("woff2"); }
  @font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin.woff2") format("woff2"); }
  @font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-style: italic; font-display: swap; src: url("fonts/ibm-plex-sans-italic-latin.woff2") format("woff2"); }
  @font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); }
  @font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }
  /* Size-adjusted fallbacks (approximate metrics) to limit layout shift while fonts load */
  @font-face { font-family: "Arvo Fallback"; src: local("Georgia"); size-adjust: 104%; ascent-override: 92%; descent-override: 32%; line-gap-override: 0%; }
  @font-face { font-family: "Plex Sans Fallback"; src: local("Arial"); size-adjust: 102%; ascent-override: 100%; descent-override: 27%; line-gap-override: 0%; }
  @font-face { font-family: "Plex Mono Fallback"; src: local("Courier New"); size-adjust: 100%; ascent-override: 102%; descent-override: 27%; line-gap-override: 0%; }
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
}

@layer tokens {
  :root {
    color-scheme: light;  /* temporary: locked to the white theme; restore "light dark" to follow the device */

    --paper: light-dark(#ffffff, #0b1220);
    --panel: light-dark(#f1f4f8, #121c30);
    --ink: light-dark(#0f172a, #e8eef8);
    --ink-soft: light-dark(#475569, #a3b1c6);
    --rule: light-dark(#cbd5e1, #2a3850);
    --rule-strong: light-dark(#0f172a, #e8eef8);
    --accent: light-dark(#1353d0, #8ab4ff);        /* text, rules, buttons */
    --accent-ink: light-dark(#ffffff, #08142b);    /* text on accent buttons */
    --mark: #3b82f6;                               /* decorative marks only */

    --font-display: "Arvo", "Arvo Fallback", Georgia, serif;
    --font-body: "IBM Plex Sans", "Plex Sans Fallback", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", "Plex Mono Fallback", ui-monospace, monospace;

    --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --step-1: clamp(1.125rem, 1.07rem + 0.3vw, 1.3125rem);
    --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
    --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
    --step-4: clamp(2rem, 1.35rem + 2.9vw, 3.5rem);

    --gutter: clamp(1.25rem, 4vw, 3rem);
    --wrap: 74rem;
    --space-section: clamp(4rem, 8vw, 7.5rem);
    --header-h: 4.5rem;
  }
}

@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { text-wrap: balance; line-height: 1.15; }
  h1, h2 { font-family: var(--font-display); font-weight: 700; }
  p, li, dd { text-wrap: pretty; }
  a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
  ::selection { background: var(--accent); color: var(--accent-ink); }
  em { font-style: italic; }
  .visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; text-decoration: none;
    &:focus { top: 1rem; }
  }
}

@layer layout {
  .wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

  .site-header {
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    z-index: 50;
    @media (min-width: 74rem) { position: sticky; top: 0; }
    & .wrap { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1.5rem; align-items: center; padding-block: 0.9rem; }
    @media (min-width: 74rem) {
      & .wrap { grid-template-columns: auto 1fr auto; min-height: var(--header-h); padding-block: 0; }
    }
  }
  .site-nav {
    grid-column: 1 / -1; grid-row: 2;
    overflow-x: auto; scrollbar-width: thin;
    @media (min-width: 74rem) { grid-column: auto; grid-row: auto; overflow: visible; justify-self: center; }
    & li { flex: none; }
    & ul { display: flex; gap: 1.5rem; list-style: none; padding: 0.25rem 0.25rem 0.4rem; white-space: nowrap; }
    @media (min-width: 74rem) { & ul { gap: clamp(1rem, 1.8vw, 1.9rem); } }
  }

  main > section { padding-block: var(--space-section); border-top: 1px solid var(--rule); }
  main > section:first-child { border-top: 0; }

  .section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
  .section-head h2 { font-size: var(--step-3); }
  .section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: var(--step-1); max-width: 40rem; }

  .site-footer { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; font-size: var(--step--1); color: var(--ink-soft);
    & .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: baseline; }
    & ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; }
  }
}

@layer components {
  .wordmark {
    font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.16em; font-size: 1rem; color: var(--ink); text-decoration: none; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 0.7rem;
    & svg { width: 1.6rem; height: 1.6rem; flex: none; }
    & .mark-curve { stroke: var(--mark); }
    & .mark-dot { fill: var(--mark); }
  }
  .site-cta { grid-column: 2; grid-row: 1; justify-self: end; }
  @media (min-width: 74rem) { .site-header .site-cta { grid-column: 3; } .site-header .site-nav { grid-column: 2; grid-row: 1; } }
  .site-nav a {
    font-size: var(--step--1); text-decoration: none; color: var(--ink-soft); padding-block: 0.35rem; display: inline-block;
    border-bottom: 1px solid transparent;
    &:hover { color: var(--ink); border-bottom-color: var(--accent); }
  }

  .btn {
    display: inline-block; background: var(--accent); color: var(--accent-ink);
    font-weight: 600; font-size: var(--step--1); letter-spacing: 0.01em;
    padding: 0.75rem 1.25rem; border: 0; border-radius: 2px; text-decoration: none; cursor: pointer;
    transition: background-color 0.15s, transform 0.15s;
    &:hover { background: color-mix(in oklab, var(--accent), var(--ink) 18%); text-decoration: none; }
    &:active { transform: translateY(1px); }
  }
  .site-cta { white-space: nowrap; }
  @media (max-width: 30rem) { .site-header .site-cta { display: none; } }
  .btn-lg { font-size: var(--step-0); padding: 0.95rem 1.6rem; }
  .link-quiet { color: var(--ink); font-weight: 500; }

  .mono { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.01em; }

  /* Hero */
  .hero { padding-block: clamp(3rem, 7vw, 6rem) !important; }
  .hero .wrap { display: grid; gap: 2.5rem; align-items: center;
    @media (min-width: 56rem) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; }
  }
  .hero h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
  .hero .sub { margin-top: 1.5rem; font-size: var(--step-1); color: var(--ink-soft); max-width: 34rem; }
  .hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
  .plot { width: 100%; height: auto; max-height: 24rem; color: var(--ink);
    & .axis { stroke: var(--ink-soft); stroke-width: 1; fill: none; }
    & .tick { stroke: var(--ink-soft); stroke-width: 1; }
    & .guide { stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.55; fill: none; }
    & .curve { stroke: var(--mark); stroke-width: 3.5; fill: none; stroke-linecap: round; }
    & .pt { fill: var(--ink); }
    & .pt-accent { fill: var(--mark); }
    & text { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-soft); }
  }

  /* Problem strip */
  .problems { padding-block: 0 !important; }
  .problems ul { display: grid; list-style: none; padding: 0;
    @media (min-width: 52rem) { grid-template-columns: repeat(3, 1fr); }
    & li { padding: 1.75rem 0; font-size: var(--step-1); font-weight: 500; line-height: 1.35; border-top: 1px solid var(--rule); max-width: 22rem;
      @media (min-width: 52rem) { border-top: 0; border-left: 1px solid var(--rule); padding-inline: 1.75rem; &:first-child { border-left: 0; padding-left: 0; } }
    }
    & li:first-child { border-top: 0; }
  }

  /* Service cards */
  .cards { container-type: inline-size; display: grid; gap: clamp(2rem, 4vw, 3rem) 2.5rem; }
  .cards-rest { display: grid; gap: 2.5rem 2.5rem; margin-top: clamp(2rem, 4vw, 3rem);
    @media (min-width: 44rem) { grid-template-columns: repeat(2, 1fr); }
    @media (min-width: 72rem) { grid-template-columns: repeat(3, 1fr); }
    align-items: start;
  }
  .card { border-top: 1px solid var(--rule-strong); padding-top: 1.25rem;
    & .label { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); }
    & h3 { font-size: var(--step-1); margin-top: 0.5rem; font-weight: 600; }
    & .promise { font-style: italic; margin-top: 0.75rem; color: var(--ink); }
    & ul { padding-left: 1.1rem; margin-top: 1rem; display: grid; gap: 0.5rem; }
    & li::marker { color: var(--accent); }
    & .lab-note { margin-top: 1.1rem; font-size: var(--step--1); color: var(--ink-soft); border-left: 2px solid var(--mark); padding-left: 0.8rem;
      & strong { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
    }
    & details { margin-top: 1rem; }
    & summary { cursor: pointer; font-size: var(--step--1); font-weight: 600; color: var(--accent); width: fit-content; padding-block: 0.2rem;
      &::marker { color: var(--accent); }
      &:hover { text-decoration: underline; }
    }
    & details[open] summary { margin-bottom: 0.25rem; }
    & details ul { margin-top: 0.5rem; }
  }
  .card-flagship {
    background: var(--panel); border-top: 3px solid var(--mark);
    padding: clamp(1.5rem, 4vw, 3rem);
    display: grid; gap: 1.5rem 3rem;
    @container (min-width: 52rem) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    & h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); }
    & .promise { font-size: var(--step-1); max-width: 30rem; }
    & .intro { align-self: start; }
    & .body { align-self: start; }
    & .body > ul { margin-top: 0; }
  }

  /* More services */
  .more-grid { display: grid; gap: 0; list-style: none; padding: 0;
    @media (min-width: 40rem) { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
    @media (min-width: 64rem) { grid-template-columns: repeat(3, 1fr); }
    & > li { border-top: 1px solid var(--rule); padding-block: 1.25rem 1.5rem; }
    & h3 { font-size: var(--step-0); font-weight: 600; }
    & p { margin-top: 0.4rem; font-size: calc(var(--step-0) * 0.96); color: var(--ink-soft); }
    & .tag { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); margin-left: 0.4rem; font-weight: 400; white-space: nowrap; }
    & .proof { color: var(--ink); }
    & .proof span { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft); }
  }

  /* Proof */
  .cases { display: grid; gap: 0; list-style: none; padding: 0;
    @media (min-width: 52rem) { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
    & > li { border-top: 1px solid var(--rule-strong); padding-block: 1.5rem 2.25rem; }
    & h3 { font-size: var(--step-1); font-weight: 600; }
    & dl { margin-top: 1rem; display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.6rem 1rem; }
    & dt { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft); padding-top: 0.15rem; }
    & dd:last-of-type { font-weight: 500; }
    & .read { margin-top: 1rem; display: block; font-size: var(--step--1); }
    & .read a { color: var(--accent); font-weight: 600; }
    & .read a + a { margin-left: 1rem; }
  }
  .proof-note { margin-top: 1rem; font-size: var(--step--1); color: var(--ink-soft); max-width: 46rem; }

  /* How we work: points on a rising curve */
  .steps { list-style: none; padding: 0; display: grid; gap: 0; position: relative; margin-bottom: clamp(3rem, 6vw, 5rem);
    & li { border-top: 1px solid var(--rule); padding-block: 1.25rem 1.5rem; }
    & li:first-child { border-top: 1px solid var(--rule-strong); }
    & .step-n { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); display: block; }
    & h3 { font-size: var(--step-1); font-weight: 600; margin-top: 0.25rem; }
    & p { color: var(--ink-soft); margin-top: 0.5rem; }
    @media (min-width: 60rem) {
      grid-template-columns: repeat(4, 1fr);
      padding-top: 0.5rem;
      & li { border-top: 0 !important; padding: 1.4rem 1.5rem 0 0; position: relative; }
      & li::before {
        content: ""; position: absolute; left: 0; top: 0; width: 0.9rem; height: 0.9rem; border-radius: 50%;
        background: var(--paper); border: 3px solid var(--mark); translate: -45% -50%;
      }
      & li:nth-child(1) { margin-top: 15.7rem; }
      & li:nth-child(2) { margin-top: 14.1rem; }
      & li:nth-child(3) { margin-top: 10.9rem; }
      & li:nth-child(4) { margin-top: 6.2rem; }
    }
  }

  .steps-wrap { position: relative; }
  .curve-bg { display: none; }
  @media (min-width: 60rem) {
    .curve-bg { display: block; position: absolute; left: 0; top: 0.5rem; width: 100%; height: 16rem; overflow: visible; pointer-events: none;
      & path { fill: none; stroke: var(--mark); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
    }
  }

  .contact-h2 { font-size: var(--step-3); }
  .packages-title { font-size: var(--step-2); font-family: var(--font-display); font-weight: 700; margin-bottom: 0.75rem; }
  .pricing-rule { max-width: 46rem; color: var(--ink-soft); margin-bottom: 1.75rem; }
  .packages { margin: 0; border-top: 1px solid var(--rule-strong);
    & > div { display: grid; gap: 0.25rem 2rem; padding-block: 1.1rem; border-bottom: 1px solid var(--rule);
      @media (min-width: 52rem) { grid-template-columns: minmax(0, 15rem) minmax(0, 11rem) minmax(0, 1fr) minmax(0, 12rem); align-items: baseline; }
    }
    & dt { font-weight: 600; }
    & .len { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft); }
    & dd { margin: 0; }
    & .price { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; color: var(--ink);
      @media (min-width: 52rem) { text-align: right; } }
    & .price.is-set { color: var(--accent); }
  }

  /* Why private */
  .why { display: grid; gap: 2rem 4rem;
    @media (min-width: 56rem) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    & .col p + p { margin-top: 1rem; }
    & .principle { border-left: 3px solid var(--mark); padding: 0.25rem 0 0.25rem 1.25rem; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3; text-wrap: balance; align-self: start; }
    & .col { max-width: 36rem; }
    & .col .principle { margin-top: 2rem; }
  }

  /* Reference architecture panel: fixed dark colours in both themes */
  .arch {
    --a-bg: #0b1220; --a-layer: #121c30; --a-rule: #2a3850; --a-ink: #e8eef8; --a-soft: #a3b1c6; --a-accent: #8ab4ff;
    margin: 0; align-self: start; container-type: inline-size;
    background: var(--a-bg); color: var(--a-ink); border-radius: 6px; padding: clamp(1rem, 3cqi, 1.5rem);
    font-family: var(--font-mono); font-size: var(--step--1); line-height: 1.45;
    & p { margin: 0; max-width: none; }
    & .arch-head, & .arch-perimeter-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; }
    & .arch-head { padding-bottom: 1rem; }
    & .arch-title, & .arch-perimeter-label { text-transform: uppercase; letter-spacing: 0.08em; }
    & .arch-title { color: var(--a-soft); }
    & .arch-deploy { color: var(--a-ink); }
    & .arch-perimeter { border: 1px dashed var(--a-accent); border-radius: 4px; padding: clamp(0.75rem, 2.5cqi, 1.1rem); }
    & .arch-perimeter-label { color: var(--a-accent); }
    & .arch-badge { color: var(--a-bg); background: var(--a-accent); font-weight: 500; padding: 0.15rem 0.55rem; border-radius: 3px; }
    & .arch-layers { display: grid; gap: 0.6rem; margin: 0.9rem 0 0; padding: 0; list-style: none; }
    & .arch-layers > li { background: var(--a-layer); border: 1px solid var(--a-rule); border-radius: 4px; padding: 0.75rem 0.85rem 0.85rem; }
    & .arch-layer-label { color: var(--a-soft); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }
    & .arch-num { color: var(--a-accent); margin-right: 0.35rem; }
    & .arch-layers ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
    & .arch-layers ul li { border: 1px solid var(--a-rule); background: var(--a-bg); border-radius: 3px; padding: 0.25rem 0.55rem; }
    & figcaption { margin-top: 1rem; font-family: var(--font-body); font-size: var(--step--1); color: var(--a-soft); }
    & figcaption strong { color: var(--a-ink); font-weight: 600; }
  }
  .compliance { margin-top: 1.25rem; font-size: var(--step--1); color: var(--ink-soft); }

  /* Industries */
  .industries-lead { display: grid; list-style: none; padding: 0; gap: 0;
    @media (min-width: 52rem) { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; }
    & > li { border-top: 3px solid var(--mark); padding-block: 1.25rem 2rem; }
    & h3 { font-size: var(--step-2); font-family: var(--font-display); font-weight: 700; }
    & p { margin-top: 0.6rem; }
  }
  .industries-more { display: grid; list-style: none; padding: 0;
    @media (min-width: 52rem) { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; }
    & > li { border-top: 1px solid var(--rule); padding-block: 1.1rem 1.4rem; }
    & h3 { font-size: var(--step-1); font-weight: 600; }
    & p { margin-top: 0.4rem; color: var(--ink-soft); }
  }

  /* AI x Blockchain */
  .featured { margin-top: 2.5rem; background: var(--panel); border-top: 3px solid var(--mark); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.5rem 4rem;
    @media (min-width: 56rem) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: start; }
    & .eyebrow { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); }
    & h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.15; margin-top: 0.4rem; }
    & h3 + p { margin-top: 0.75rem; max-width: 38rem; }
    & dl { margin: 0; display: grid; }
    & dl > div { display: grid; gap: 0.15rem; padding-block: 0.8rem; border-top: 1px solid var(--rule); }
    & dl > div:first-child { border-top: 0; padding-top: 0; }
    & dt { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft); }
    & dd { margin: 0; font-weight: 600; }
  }
  .chain { display: grid; list-style: none; padding: 0;
    @media (min-width: 52rem) { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; }
    & > li { border-top: 1px solid var(--rule-strong); padding-block: 1.25rem 1.5rem; }
    & h3 { font-size: var(--step-1); font-weight: 600; }
    & p { margin-top: 0.5rem; color: var(--ink-soft); }
  }

  /* About */
  .about { display: grid; gap: 2rem 4rem;
    @media (min-width: 56rem) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
    & p { max-width: 38rem; } & p + p { margin-top: 1rem; }
    & ul { list-style: none; padding: 0; border-top: 1px solid var(--rule-strong); align-self: start; }
    & li { padding-block: 0.8rem; border-bottom: 1px solid var(--rule); font-family: var(--font-mono); font-size: var(--step--1); }
  }

  /* Writing */
  .posts { list-style: none; padding: 0; border-top: 1px solid var(--rule-strong);
    & li { border-bottom: 1px solid var(--rule); }
    & a { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; padding-block: 1rem; text-decoration: none; font-weight: 500;
      &:hover span:first-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
      &:hover .host { color: var(--accent); }
    }
    & .host { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft); font-weight: 400; }
  }

  /* Contact + form */
  .contact { display: grid; gap: 2.5rem 4rem;
    @media (min-width: 56rem) { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
    & .direct p { margin-top: 1rem; color: var(--ink-soft); }
    & .direct .mail { font-size: var(--step-1); font-weight: 500; color: var(--ink); }
  }
  .form { display: grid; gap: 1.25rem;
    & .field { display: grid; gap: 0.35rem; }
    & label { font-weight: 600; font-size: var(--step--1); }
    & .opt { font-weight: 400; color: var(--ink-soft); }
    & input, & select, & textarea {
      width: 100%; background: var(--panel); border: 1px solid var(--rule); border-bottom: 2px solid var(--rule-strong);
      border-radius: 2px; padding: 0.7rem 0.8rem; min-height: 2.9rem;
      &:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
      &:user-invalid { border-color: var(--accent); border-bottom-color: var(--accent); }
    }
    & textarea { min-height: 9rem; resize: vertical; field-sizing: content; max-height: 24rem; }
    & .err { display: none; color: var(--accent); font-size: var(--step--1); font-weight: 500; }
    & .field:has(:user-invalid) .err { display: block; }
    & .privacy { font-size: var(--step--1); color: var(--ink-soft); max-width: 36rem; }
    & .hp { display: none; }
    & .row { display: grid; gap: 1.25rem; @media (min-width: 40rem) { grid-template-columns: 1fr 1fr; } }
  }

  /* Landing page (law firms) */
  .eyebrow { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); margin-bottom: 1rem; }
  .hero-solo .wrap { @media (min-width: 56rem) { grid-template-columns: minmax(0, 52rem); } }
  .more-grid-2 { @media (min-width: 64rem) { grid-template-columns: repeat(2, 1fr); } }
  .actions-after { margin-top: 2rem; }
  .pricing-after { margin: 1.5rem 0 0; }
  .faq { max-width: 46rem; border-top: 1px solid var(--rule-strong);
    & details { border-bottom: 1px solid var(--rule); padding-block: 0.9rem; }
    & summary { cursor: pointer; font-weight: 600; font-size: var(--step-1); padding-block: 0.2rem;
      &::marker { color: var(--accent); }
      &:hover { color: var(--accent); }
    }
    & details p { margin-top: 0.6rem; color: var(--ink-soft); max-width: 40rem; }
  }
  .cta-band { background: var(--panel);
    & h2 { font-size: var(--step-3); max-width: 28ch; }
    & p { margin-top: 1rem; font-size: var(--step-1); color: var(--ink-soft); max-width: 36rem; }
    & .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
  }

  /* Thanks / 404 */
  .simple { min-height: 60vh; display: grid; align-content: center; padding-block: 5rem; }
  .simple h1 { font-size: var(--step-4); max-width: 22ch; }
  .simple p { margin-top: 1.25rem; font-size: var(--step-1); color: var(--ink-soft); max-width: 36rem; }
  .simple .btn { margin-top: 2rem; justify-self: start; }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    .plot .curve { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s cubic-bezier(.3,.6,.2,1) 0.2s forwards; }
    .plot .pt-accent, .plot .focus-label { opacity: 0; animation: appear 0.6s ease 1.5s forwards; }
    @keyframes draw { to { stroke-dashoffset: 0; } }
    @keyframes appear { to { opacity: 1; } }

    @supports (animation-timeline: view()) {
      .steps-wrap .curve-bg { animation: reveal linear both; animation-timeline: view(); animation-range: entry 15% cover 50%; }
      @keyframes reveal { from { clip-path: inset(-20% 100% -20% -10%); } to { clip-path: inset(-20% -10% -20% -10%); } }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
  }
}
