/* Steady Coding AB — shared styles */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #5f5b52;
  --line: #e5e1d6;
  --gold: #c9a227;
  --gold-ink: #85650d;
  --gold-soft: #f5edd2;
  --band-bg: #141414;
  --band-fg: #fbfaf7;
  --band-btn-bg: #c9a227;
  --band-btn-fg: #141414;
  --tomato: #d93a34;
  --tomato-soft: #fde8ec;

  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0d0c;
    --surface: #181816;
    --ink: #f3f0e7;
    --muted: #a8a294;
    --line: #2c2a25;
    --gold: #d4af37;
    --gold-ink: #e2c25c;
    --gold-soft: #2a2412;
    --band-bg: #d4af37;
    --band-fg: #0d0d0c;
  --band-btn-bg: #0d0d0c;
  --band-btn-fg: #e2c25c;
    --tomato: #f0625b;
    --tomato-soft: #2a1a1b;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
}

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

a { color: var(--gold-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { left: 8px; }

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

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.wordmark-mark { width: 26px; height: 26px; color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.site-nav a:hover { background: var(--gold-soft); }
.site-nav a[aria-current="page"] { color: var(--gold-ink); font-weight: 700; }
.site-nav .nav-ext { color: var(--muted); }
.site-nav .nav-ext svg { display: inline; width: 11px; height: 11px; margin-left: 3px; vertical-align: 1px; }
.site-nav .nav-cta {
  background: var(--ink);
  color: var(--paper);
  margin-left: 8px;
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--gold); color: #141414; }
.site-nav .nav-cta[aria-current="page"] { color: var(--paper); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 8px; font-size: 18px; }
  .site-nav .nav-cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- Type ---------- */

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0; font-weight: 800; }

.display {
  font-size: clamp(42px, 7.4vw, 92px);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 17ch;
}
.page-title {
  font-size: clamp(38px, 5.6vw, 64px);
  letter-spacing: -0.035em;
  max-width: 18ch;
}
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; }

.lead {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 40em;
  margin: 24px 0 0;
}
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.prose { max-width: 38em; }
.prose h2 { margin: 56px 0 16px; font-size: 28px; }
.prose h3 { margin: 32px 0 8px; font-size: 20px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

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

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--surface); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: #141414; }
.btn-tomato { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.btn-tomato:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 44em; }
.section-head p { color: var(--muted); margin: 0; font-size: 19px; }

.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); }

/* ---------- Hero + cadence ---------- */

.hero { padding: clamp(64px, 10vw, 128px) 0 0; overflow: hidden; }

.cadence {
  margin-top: clamp(56px, 8vw, 96px);
  position: relative;
  height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
}
.cadence span {
  width: 2px;
  height: 18px;
  background: var(--line);
  flex: none;
}
.cadence span:nth-child(4n + 1) { height: 34px; background: var(--muted); }
.cadence span.is-release { height: 64px; background: var(--gold); width: 4px; }
.cadence-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
  padding: 12px 0 0;
}
.cadence-caption strong { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .cadence span {
    transform-origin: bottom;
    animation: tick-in 0.5s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(var(--i) * 28ms);
  }
  @keyframes tick-in {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
  }
}

/* ---------- Capabilities ---------- */

.capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
}
.capability {
  border-top: 2px solid var(--ink);
  padding: 24px 0 40px;
}
.capability p { color: var(--muted); margin: 12px 0 0; }
.capability ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.capability li, .chip {
  font-size: 14px;
  font-weight: 500;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
}
@media (max-width: 720px) {
  .capabilities { grid-template-columns: 1fr; }
}

/* ---------- Product feature ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.product-panel {
  background: var(--tomato-soft);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
}
.product-icon { width: 72px; height: 72px; border-radius: 16px; }
.product-panel .timer {
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--tomato);
  font-variant-numeric: tabular-nums;
  margin: 28px 0 8px;
}
.product-panel .timer-label { color: var(--ink); font-weight: 600; margin: 0; }
.product-panel .rounds { display: flex; gap: 8px; margin-top: 20px; }
.product-panel .rounds span {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--tomato);
}
.product-panel .rounds span.done { background: var(--tomato); }
.product h3 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.03em; }
.product .lead { margin-top: 16px; }

.platforms { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.platforms li { display: flex; gap: 12px; align-items: baseline; }
.platforms .status {
  font-size: 13px;
  font-weight: 650;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  white-space: nowrap;
}
.platforms .status.soon { background: var(--tomato-soft); color: var(--tomato); }

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

/* ---------- Feature list ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 56px);
}
.features h3 { font-size: 19px; margin-bottom: 8px; }
.features p { color: var(--muted); margin: 0; font-size: 17px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Steps (real sequence) ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 0 24px 0 0;
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--ink);
  font-weight: 750;
  background: var(--paper);
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 40px;
  right: 0;
  height: 2px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; font-size: 17px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 64px; }
  .steps li::before { position: absolute; left: 0; top: -6px; margin: 0; }
  .steps li::after { top: 40px; left: 19px; right: auto; width: 2px; height: calc(100% - 8px); }
}

/* ---------- Stack ---------- */

.stack {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px 40px;
  margin: 0;
}
.stack dt { font-weight: 700; padding-top: 3px; }
.stack dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.stack dd:last-of-type { border-bottom: 0; }
@media (max-width: 640px) {
  .stack { grid-template-columns: 1fr; gap: 8px; }
  .stack dt { padding-top: 12px; }
}

/* ---------- Engagement models ---------- */

.models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.models > div { padding: 32px 28px; }
.models > div + div { border-left: 1px solid var(--line); }
.models h3 { margin-bottom: 10px; }
.models p { color: var(--muted); margin: 0; font-size: 17px; }
@media (max-width: 860px) {
  .models { grid-template-columns: 1fr; }
  .models > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Facts table ---------- */

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); padding-right: 32px; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .facts dd { padding-top: 2px; }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Contact band ---------- */

.band {
  background: var(--band-bg);
  color: var(--band-fg);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px;
  align-items: end;
}
.band h2 { font-size: clamp(30px, 4vw, 48px); max-width: 16ch; }
.band p { margin: 16px 0 0; opacity: 0.85; max-width: 34em; }
.band h2 { color: inherit; }
.band .btn { background: var(--band-btn-bg); border-color: var(--band-btn-bg); color: var(--band-btn-fg); }
.band .btn:hover { background: var(--band-fg); border-color: var(--band-fg); color: var(--band-bg); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
}
.contact-card .email {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 750;
  letter-spacing: -0.02em;
  word-break: break-word;
}

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

.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 16px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h2 { font-size: 15px; letter-spacing: 0; color: var(--ink); font-weight: 700; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid address { font-style: normal; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- AI engineering ---------- */

.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.ai .lead { margin-top: 16px; }
.ai-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.ai-points li { padding-left: 22px; position: relative; color: var(--muted); }
.ai-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 2px;
}
.ai-points strong { color: var(--ink); font-weight: 700; }

.agent-week {
  margin: 0;
  background: #141414;
  color: #f3f0e7;
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid #2c2a25;
}
.agent-week figcaption { font-size: 15px; color: #a8a294; margin-bottom: 18px; }
.agent-week ol { list-style: none; margin: 0; padding: 0; }
.agent-week li {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid #2c2a25;
  font-size: 16px;
}
.agent-week time { white-space: nowrap; color: #d4af37; font-weight: 650; font-variant-numeric: tabular-nums; }
.agent-week em { font-style: normal; font-size: 13px; color: #a8a294; white-space: nowrap; }
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .agent-week li { grid-template-columns: 88px 1fr; }
  .agent-week em { grid-column: 2; }
}
