/* Kokel company profile. One accent (terracotta, after the anthropic.com accent), Hanken Grotesk for UI and headings, Source Serif 4 for the hero intro, light and dark via prefers-color-scheme. See DESIGN.md. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f6f4;
  --surface: #fcfcfb;
  --ink: #1a1918;
  --muted: #57534e;
  --line: #e2e0dc;
  /* One step deeper than anthropic.com's #c6613f so white button text passes WCAG AA */
  --accent: #b0553a;
  --on-accent: #ffffff;
  --accent-soft: #f6e9e3;
  --slot: #7c3aed;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 20px;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  /* The offer band stays a deep terracotta in both modes */
  --band: #b0553a;
  --on-band: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --surface: #1e1d1b;
    --ink: #ecebe8;
    --muted: #a8a49c;
    --line: #2e2c29;
    /* anthropic.com's clay */
    --accent: #d97757;
    --on-accent: #161514;
    --accent-soft: #2a1e19;
    --slot: #c4b5fd;
    --band: #7e3a24;
    --on-band: #f6f6f4;
  }
}

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

/* scroll-padding keeps anchor targets and keyboard focus clear of the 64px sticky nav */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Heavy, tight sans headings */
h1, h2 { line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.4vw + 0.5rem, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.625rem, 1.8vw + 0.9rem, 2.375rem); font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

section { padding: 64px 0; }
@media (min-width: 1024px) { section { padding: 96px 0; } }

.muted { color: var(--muted); }

/* Skip link: hidden until it receives keyboard focus */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus-visible { top: 12px; outline: 3px solid var(--ink); outline-offset: 2px; }

/* Slots: content that must be filled before launch. See README. */
[data-slot] { outline: 2px dashed var(--slot); outline-offset: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .nav-links a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-inverse { background: var(--on-band); color: var(--band); }
.btn-inverse:hover { background: color-mix(in srgb, var(--on-band) 88%, var(--band)); }
.btn-inverse:focus-visible { outline-color: var(--on-band); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; flex-shrink: 0; text-decoration: none; }
.brand img { display: block; height: 32px; width: auto; }
.brand:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.nav-links { display: none; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 550; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { margin-left: auto; }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 0; }
}

/* Hero: heavy sans headline left, serif intro and buttons right; stacked on mobile */
.hero { padding-top: 48px; }
@media (min-width: 1024px) { .hero { padding-top: 120px; padding-bottom: 120px; } }
.hero-grid { display: grid; gap: 20px; }
.hero-grid h1 { margin: 0; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; } }
.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 36ch;
  text-wrap: pretty;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) { .cta-row .btn { width: 100%; } }

/* Problems: heading left, list right */
.problems { background: var(--surface); border-block: 1px solid var(--line); }
.problems-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .problems-grid { grid-template-columns: 1fr 1.6fr; gap: 56px; } }
.problem-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
/* Marker is the right-pointing chevron from the logo mark */
.problem-list li { position: relative; padding-left: 28px; text-wrap: pretty; }
.problem-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-top: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  transform: rotate(45deg);
}
.closing { font-weight: 650; font-size: 1.1875rem; margin: 0; max-width: 46ch; text-wrap: pretty; }
.closing-cta { margin-top: 20px; }
@media (max-width: 479px) { .closing-cta { width: 100%; } }

/* Services: two-column definition grid */
.service-grid { display: grid; gap: 0 48px; margin: 32px 0 0; }
@media (min-width: 768px) { .service-grid { grid-template-columns: 1fr 1fr; } }
.service { padding: 20px 0; border-top: 1px solid var(--line); }
.service dt { font-weight: 700; font-size: 1.125rem; margin-bottom: 4px; }
.service dd { margin: 0; color: var(--muted); }
.note { margin-top: 24px; color: var(--muted); }

/* Steps: horizontal on desktop */
.step-list { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 1024px) { .step-list { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step-list li { position: relative; counter-increment: step; color: var(--muted); font-size: 1rem; text-wrap: pretty; }
.step-list li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* Desktop: a line joins the step markers, because the steps are a real sequence */
@media (min-width: 1024px) {
  .step-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 36px;
    right: -20px;
    height: 2px;
    background: var(--line);
  }
}
.step-list strong { display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 4px; }

/* Promises: tinted panel */
.promise-panel { background: var(--accent-soft); border-radius: var(--radius-lg); padding: 32px 24px; }
@media (min-width: 768px) { .promise-panel { padding: 48px; } }
.promise-grid { display: grid; gap: 36px; margin-top: 24px; }
@media (min-width: 768px) { .promise-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.promise-group { display: grid; gap: 18px; align-content: start; }
.promise-group h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; color: var(--accent); }
.promise-grid p { margin: 0; color: var(--muted); }
.promise-grid strong { display: block; color: var(--ink); font-size: 1.125rem; }

/* About: heading left, text right, like Problems and FAQ; shorter padding because the content is short */
.about { background: var(--surface); border-block: 1px solid var(--line); }
@media (min-width: 1024px) { .about { padding: 72px 0; } }
.about-grid { display: grid; gap: 8px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.6fr; gap: 56px; } }
.about p { color: var(--muted); max-width: 60ch; }
.about p:last-child { margin-bottom: 0; }

/* Offer: full-width accent band */
.offer { background: var(--band); color: var(--on-band); }
.offer-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .offer-inner { grid-template-columns: 1fr auto; gap: 56px; } }
.offer p { max-width: 60ch; margin: 0; }
.offer [data-slot] { outline-color: var(--on-band); font-weight: 700; }

/* FAQ */
.faq-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 56px; } }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 650;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
/* Empty alt text after "/" keeps the +/− marker out of screen readers; the first declaration is the fallback */
.faq-list summary::after { content: "+"; content: "+" / ""; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--accent); }
.faq-list details[open] summary::after { content: "−"; content: "−" / ""; }
.faq-list details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr auto; align-items: start; } }
.footer-brand { display: block; margin: 0 0 12px; }
.footer-brand img { display: block; height: 28px; width: auto; }
.footer-heading { font-size: 1rem; line-height: 1.3; letter-spacing: 0; margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
/* Icon left of each contact; only the text is underlined */
.footer-links a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-links a span { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover span { text-decoration-thickness: 2px; }
.contact-icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent); }
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }
.footer-meta { display: grid; gap: 8px; }
.footer-meta p { margin: 0; }

/* Privacy page */
.prose { max-width: 68ch; padding-top: 48px; padding-bottom: 64px; }
.prose h1 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem); }
.prose h2 { font-size: 1.375rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--muted); }

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