:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --surface: #fffdf8;
  --ink: #171816;
  --muted: #64665f;
  --line: #d8d3c9;
  --blue: #0067ed;
  --blue-dark: #004db3;
  --green: #047857;
  --orange: #be5b16;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
.site-header, main, footer { width: min(100% - 40px, 1240px); margin-inline: auto; }

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 0.94rem; font-weight: 850; letter-spacing: 0.16em; text-decoration: none; }
nav { display: flex; gap: clamp(18px, 4vw, 44px); }
nav a { color: var(--muted); font-size: 0.92rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--ink); }

.hero {
  min-height: 700px;
  padding: clamp(64px, 10vw, 132px) 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(52px, 9vw, 128px);
}
.kicker { margin: 0 0 18px; color: var(--blue); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 26px; font-size: clamp(3.4rem, 7.3vw, 7.1rem); line-height: 0.92; letter-spacing: -0.065em; }
h2 { margin-bottom: 0; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 0.98; letter-spacing: -0.055em; }
h3 { margin-bottom: 10px; font-size: 1.12rem; }
.hero-lede { max-width: 650px; margin-bottom: 32px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 14px 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 6px; font-weight: 750; text-decoration: none; }
.button.primary { background: var(--ink); color: white; }
.button.primary:hover { background: #33342f; }
.button.secondary:hover { background: var(--surface); }
.principles { margin: 38px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 0.88rem; list-style: none; }
.principles li::before { content: "•"; margin-right: 9px; color: var(--blue); }

.practice-card { padding: clamp(24px, 3vw, 38px); border: 1px solid var(--ink); border-radius: 18px; background: var(--surface); box-shadow: 18px 18px 0 #d9e6f8; }
.practice-topline { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.turn { margin-left: auto; }
.persona { margin-top: 34px; display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-weight: 800; }
.persona strong, .persona small { display: block; }
.persona small { margin-top: 3px; color: var(--muted); }
blockquote { margin: 30px 0; font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.2; font-weight: 720; letter-spacing: -0.035em; }
.response-preview { padding: 18px; border-left: 4px solid var(--blue); background: #edf4fe; }
.response-preview span { color: var(--blue-dark); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.response-preview p { margin: 8px 0 0; line-height: 1.45; }
.signal-row { margin-top: 22px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 0.9rem; }
.signal-row strong { color: var(--green); }

.method, .product, .foundation { padding: 112px 0; border-top: 1px solid var(--line); }
.method { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(48px, 10vw, 148px); }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { padding: 30px 0; display: grid; grid-template-columns: 48px minmax(120px, 0.6fr) 1fr; gap: 20px; align-items: start; border-top: 1px solid var(--line); }
.steps li:first-child { border-top-color: var(--ink); }
.steps span { color: var(--blue); font-size: 0.78rem; font-weight: 800; }
.steps p, .product-copy > p { margin: 0; color: var(--muted); line-height: 1.6; }

.product-copy { max-width: 820px; }
.product-copy > p { max-width: 720px; margin-top: 26px; font-size: 1.08rem; }
.product-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.product-grid article { min-height: 230px; padding: 30px; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 48%, transparent); }
.product-grid article:first-child { border-left: 0; background: var(--surface); }
.product-grid span { color: var(--blue); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.product-grid h3 { margin-top: 50px; font-size: 1.45rem; }
.product-grid p { color: var(--muted); line-height: 1.5; }

.foundation { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(40px, 9vw, 120px); align-items: center; }
.foundation-status { padding: 26px; display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); background: var(--surface); }
.foundation-status p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }
.api-indicator { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: var(--orange); }
.api-indicator.ready { background: var(--green); }

footer { min-height: 160px; padding: 38px 0; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; gap: 24px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 0.82rem; }
footer p { margin: 0; text-align: center; }
footer span { text-align: right; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 4px; }

@media (max-width: 880px) {
  .hero, .method, .foundation { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; }
  .practice-card { max-width: 600px; }
  .steps li { grid-template-columns: 40px 1fr; }
  .steps li p { grid-column: 2; }
  .product-grid { grid-template-columns: 1fr; }
  .product-grid article { min-height: auto; border-left: 0; border-top: 1px solid var(--line); }
  .product-grid article:first-child { border-top: 0; }
  .product-grid h3 { margin-top: 22px; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 28px, 1240px); }
  nav a:not(:last-child) { display: none; }
  h1 { font-size: clamp(3.15rem, 17vw, 5.1rem); }
  .hero { min-height: 0; padding-bottom: 72px; gap: 52px; }
  .practice-card { box-shadow: 9px 9px 0 #d9e6f8; }
  .method, .product, .foundation { padding: 78px 0; }
  footer { grid-template-columns: 1fr; align-items: start; }
  footer p, footer span { text-align: left; }
}

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