/* Seriate marketing — "the bench"
   Sibling to Beree, deliberately inverted: paper instead of a dark canvas,
   EF violet as the structural colour, ochre reserved for money. An AI product
   that looks like a well-made instrument rather than a neural dream. */

:root {
  --paper:    #F5EFE0;   /* EF cream */
  --paper-hi: #FBF8F1;
  --ink:      #14121C;
  --graphite: #6B6478;
  --rule:     #DDD3C0;
  --violet:   #4F3DA0;   /* EF purple, the family anchor */
  --lilac:    #8B7BD8;
  --ochre:    #B4622A;   /* money, and only money */

  --display: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body:    "Newsreader", Georgia, "Times New Roman", serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --r: 12px;
  --r-lg: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16.5px, 1.05vw, 18px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--violet); color: var(--paper); padding: .75rem 1.25rem;
  font-family: var(--display); font-weight: 700;
}
.skip:focus { left: 0; }

a { color: inherit; }
:where(a, button, input):focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 3px; }

/* ── type ─────────────────────────────────────────────────────────── */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.6vw, 5rem); }
h1 em { font-style: normal; color: var(--violet); }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
h3 { font-size: 1.08rem; letter-spacing: -.01em; line-height: 1.25; }

p { margin: 0; }

.eyebrow {
  font-family: var(--mono); font-size: .73rem; text-transform: uppercase;
  letter-spacing: .17em; color: var(--violet); margin-bottom: 1rem;
}

.lede { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--graphite); max-width: 48ch; margin-top: 1.4rem; }

/* ── buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.45rem; border-radius: 999px; border: 1px solid transparent;
  font: 700 .95rem/1 var(--display); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background-color .35s var(--ease),
              border-color .35s var(--ease), color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid { background: var(--violet); color: var(--paper-hi); }
.btn-solid:hover { background: #5d49bb; }
.btn-line { border-color: color-mix(in oklab, var(--ink) 24%, transparent); }
.btn-line:hover { border-color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.btn-ghost { color: var(--graphite); }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }

/* ── nav ──────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 2rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--rule); }

.wordmark { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none; }
.wordmark svg { width: 30px; height: 30px; }
.wordmark rect { fill: var(--violet); }
.wordmark path { stroke: var(--paper); stroke-width: 2.6; fill: none; stroke-linecap: round; }

.nav nav { display: flex; gap: 1.6rem; margin-inline-start: auto; }
.nav nav a { font-family: var(--display); font-weight: 500; font-size: .92rem; color: var(--graphite); text-decoration: none; transition: color .3s var(--ease); }
.nav nav a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: .5rem; align-items: center; }

@media (max-width: 980px) { .nav nav { display: none; } .nav-cta { margin-inline-start: auto; } .btn-ghost { display: none; } }

/* ── hero ─────────────────────────────────────────────────────────── */

.hero { padding: clamp(3.2rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.3rem; }
.fineprint { margin-top: 1rem; font-size: .9rem; color: var(--graphite); }

/* ── the bench (signature) ────────────────────────────────────────── */

.bench {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--paper-hi);
  box-shadow: 0 30px 70px -55px rgba(20, 18, 28, .55);
  overflow: hidden;
}

.bench-prompt { padding: 1.4rem clamp(1.2rem, 3vw, 1.9rem); border-bottom: 1px solid var(--rule); }
.bench-label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--graphite); margin-bottom: .55rem; }
.prompt-line { font-family: var(--mono); font-size: clamp(.86rem, 1.6vw, 1rem); display: flex; align-items: center; min-height: 1.6em; color: var(--ink); }
.caret { width: 2px; height: 1.05em; background: var(--violet); margin-inline-start: 3px; animation: blink 1.05s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bench.is-done .caret { animation: none; opacity: 0; }

.bench-outs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .bench-outs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bench-outs { grid-template-columns: 1fr; } }

.out { border-inline-end: 1px solid var(--rule); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.out:last-child { border-inline-end: 0; }
@media (max-width: 900px) {
  .out { border-bottom: 1px solid var(--rule); }
  .out:nth-child(2n) { border-inline-end: 0; }
}
@media (max-width: 520px) { .out { border-inline-end: 0; } }

.out header { display: flex; align-items: baseline; gap: .5rem; padding: .8rem 1rem .55rem; }
.out-kind { font-family: var(--display); font-weight: 700; font-size: .84rem; letter-spacing: -.01em; }
.out-model { font-family: var(--mono); font-size: .66rem; color: var(--graphite); margin-inline-start: auto; }
.out-body { padding: 0 1rem 1.1rem; min-height: 132px; }

.stream { font-size: .88rem; line-height: 1.5; color: var(--ink); font-family: var(--body); }
.code { font-family: var(--mono); font-size: .72rem; line-height: 1.55; color: var(--violet); margin: 0; white-space: pre-wrap; word-break: break-word; }

.mosaic { width: 100%; height: auto; border-radius: 8px; display: block; background: color-mix(in oklab, var(--lilac) 16%, transparent); }
.mosaic rect { opacity: 0; transition: opacity .3s var(--ease); }
.mosaic.is-on rect { opacity: 1; }

.wave { width: 100%; height: 46px; display: block; margin-top: .5rem; }
.wave line { stroke: var(--violet); stroke-width: 2.4; stroke-linecap: round; opacity: 0; transition: opacity .2s var(--ease); }
.wave.is-on line { opacity: 1; }

.bench-foot { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.2rem; border-top: 1px solid var(--rule); background: color-mix(in oklab, var(--lilac) 8%, transparent); }
.bench-note { font-family: var(--mono); font-size: .72rem; color: var(--graphite); letter-spacing: .03em; }
.replay {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: 1px solid color-mix(in oklab, var(--ink) 20%, transparent);
  color: var(--graphite); border-radius: 999px; padding: .3rem .78rem;
  font: 500 .74rem/1 var(--display); cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.replay:hover { color: var(--ink); border-color: var(--ink); }
.replay svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── sections ─────────────────────────────────────────────────────── */

.section { padding: clamp(3.8rem, 8vw, 7rem) 0; }
.sec-head { max-width: 54ch; margin-bottom: clamp(2rem, 4.5vw, 3.2rem); }
.sec-lede { color: var(--graphite); margin-top: 1rem; }

/* the bill */
.bill { border-top: 1px solid var(--rule); }
.stack-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.stack-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 1rem; align-items: baseline; padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}
.s-name { font-family: var(--display); font-weight: 700; }
.s-role { color: var(--graphite); font-size: .95rem; }
.s-amt { font-family: var(--mono); font-size: 1.05rem; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .stack-row { grid-template-columns: 1fr auto; }
  .s-role { grid-column: 1; grid-row: 2; }
  .s-amt { grid-row: 1; }
}

.stack-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem; padding: 1.4rem 0 2.4rem; }
.t-label { color: var(--graphite); font-size: .98rem; }
.t-amt { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -.04em; color: var(--ochre); margin-inline-start: auto; font-variant-numeric: tabular-nums; }

.stack-us {
  border: 1px solid var(--violet); border-radius: var(--r-lg);
  background: color-mix(in oklab, var(--violet) 8%, transparent);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem;
}
.us-line { font-family: var(--display); font-weight: 700; font-size: 1.15rem; max-width: 30ch; }
.us-amt { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.4rem); letter-spacing: -.04em; color: var(--violet); line-height: 1; margin-inline-start: auto; }
.us-amt .per { display: block; font: 400 .8rem/1.4 var(--body); color: var(--graphite); letter-spacing: 0; margin-top: .4rem; }
.bill-note { margin-top: 1.4rem; color: var(--graphite); font-size: .95rem; max-width: 60ch; }

/* workspace grid */
.work { border-top: 1px solid var(--rule); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.card { background: var(--paper); padding: 1.8rem 1.6rem; transition: background-color .4s var(--ease); }
.card:hover { background: var(--paper-hi); }
.card p { color: var(--graphite); margin-top: .55rem; font-size: .96rem; }

/* what we won't build */
.wont { background: var(--ink); color: var(--paper); }
.wont .eyebrow { color: var(--lilac); }
.wont .sec-lede { color: color-mix(in oklab, var(--paper) 68%, transparent); }
.nots { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in oklab, var(--paper) 18%, transparent); }
.nots li {
  position: relative; padding: 1.15rem 0 1.15rem 3.2rem;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 18%, transparent);
  font-size: clamp(1.02rem, 1.9vw, 1.28rem);
}
.nots li em { font-style: italic; color: var(--lilac); }
.nots li::before {
  content: ""; position: absolute; left: .55rem; top: 1.6em;
  width: 1.5rem; height: 2px; background: var(--lilac);
}

/* plans */
.plans { border-top: 1px solid var(--rule); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.3rem; align-items: start; }
.plan { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 2rem 1.8rem; background: var(--paper-hi); display: grid; gap: 1.15rem; align-content: start; }
.plan-feature { border-color: var(--violet); background: color-mix(in oklab, var(--violet) 7%, var(--paper-hi)); position: relative; }
.plan-flag { position: absolute; top: -.72rem; left: 1.8rem; background: var(--violet); color: var(--paper-hi); border-radius: 999px; padding: .3rem .8rem; font: 500 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.plan-price { font-family: var(--display); font-weight: 700; font-size: 2.8rem; letter-spacing: -.04em; line-height: 1; }
.plan-price .per { display: block; font: 400 .85rem/1.4 var(--body); color: var(--graphite); letter-spacing: 0; margin-top: .45rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.plan li { padding-inline-start: 1.5rem; position: relative; color: var(--graphite); font-size: .96rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--lilac); }
.plan-feature li::before { background: var(--violet); }
.plan-fine { font-size: .82rem; color: var(--graphite); }

/* closer */
.closer { padding: clamp(4rem, 9vw, 7rem) 0; text-align: center; border-top: 1px solid var(--rule); }
.closer h2 { font-size: clamp(2.1rem, 6vw, 4.2rem); margin-bottom: 1.9rem; }

/* footer */
.foot { border-top: 1px solid var(--rule); padding: 2rem 0; }
.foot-wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: .9rem; color: var(--graphite); }
.foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot a { color: var(--graphite); text-decoration: none; transition: color .3s var(--ease); }
.foot a:hover { color: var(--ink); }

/* ── reveal ───────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease) calc(var(--d, 0) * 75ms),
              transform .7s var(--ease) calc(var(--d, 0) * 75ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
  .mosaic rect, .wave line { opacity: 1; }
  .btn:hover { transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
