/* ============================================================
   Autoprinter — Marketing site (autoprinter.app)
   Combined: design tokens + button primitives + marketing sections.
   Geist Sans + Geist Mono self-hosted (variable fonts; system stack as fallback).
   ============================================================ */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist.woff2") format("woff2-variations"),
       url("/assets/fonts/Geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono.woff2") format("woff2-variations"),
       url("/assets/fonts/GeistMono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- Foundation: warm paper-cream + warm-black ink ---------- */
  --paper:        #F8F4E8;
  --paper-2:      #F2EDDD;
  --paper-3:      #EBE5D2;
  --paper-4:      #DED7C2;
  --rule:         #E5DFCB;
  --rule-soft:    #EFE9D6;

  --ink:          #1A1712;
  --ink-2:        #2A251D;
  --ink-3:        #524A3D;
  --ink-4:        #7A7160;
  --ink-5:        #A39A87;

  /* ---------- Honey accent ---------- */
  --honey:        oklch(0.72 0.16 65);
  --honey-hover:  oklch(0.66 0.17 62);
  --honey-soft:   oklch(0.92 0.06 80);
  --honey-line:   oklch(0.78 0.10 70);
  --honey-ink:    oklch(0.32 0.10 55);

  /* ---------- Semantic ---------- */
  --ok:           oklch(0.50 0.10 155);
  --ok-soft:      oklch(0.93 0.04 150);
  --warn:         oklch(0.66 0.14 75);
  --err:          oklch(0.48 0.14 25);
  --err-soft:     oklch(0.93 0.05 30);

  /* ---------- Type — Geist primary, system fallback ---------- */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Helvetica", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* ---------- Shadows ---------- */
  --sh-1: 0 1px 0 rgba(26,23,18,0.04), 0 1px 2px rgba(26,23,18,0.04);
  --sh-2: 0 1px 0 rgba(26,23,18,0.05), 0 4px 12px rgba(26,23,18,0.06);
  --sh-3: 0 2px 0 rgba(26,23,18,0.06), 0 12px 32px rgba(26,23,18,0.08);
  --ring-honey: 0 0 0 3px oklch(0.72 0.16 65 / 0.25);

  /* ---------- Motion ---------- */
  --t-fast: 120ms;
  --t-base: 180ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Dark mode ---------- */
[data-theme="dark"] {
  --paper:        #14110D;
  --paper-2:      #1B1813;
  --paper-3:      #221E18;
  --paper-4:      #2C2820;
  --rule:         #2A261F;
  --rule-soft:    #211E18;

  --ink:          #F1ECDC;
  --ink-2:        #E5DFC9;
  --ink-3:        #B4AC97;
  --ink-4:        #8A8270;
  --ink-5:        #5C5648;

  --honey:        oklch(0.78 0.14 70);
  --honey-soft:   oklch(0.30 0.06 65);
  --honey-line:   oklch(0.42 0.08 65);
  --honey-ink:    oklch(0.84 0.13 72);

  --ok:           oklch(0.74 0.12 155);
  --ok-soft:      rgba(118,180,90,0.12);
  --err:          oklch(0.70 0.14 25);
  --err-soft:     rgba(212,90,90,0.14);

  --sh-2: 0 1px 0 rgba(0,0,0,0.40), 0 4px 12px rgba(0,0,0,0.35);
  --sh-3: 0 2px 0 rgba(0,0,0,0.40), 0 12px 32px rgba(0,0,0,0.45);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum";
  line-height: 1.5;
  min-height: 100vh;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: 8px;
  font: 500 14px/1 var(--font-sans);
  letter-spacing: -0.012em;
  border: 1px solid transparent;
  background: var(--paper-2);
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--paper-3); }
.btn:active { transform: translateY(0.5px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring-honey); }

.btn--primary {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover { background: var(--ink-2); }

.btn--accent {
  background: var(--honey); color: #1A1712;
  border-color: transparent;
  box-shadow: 0 1px 0 oklch(0.55 0.14 55 / 0.4) inset, 0 1px 2px rgba(26,23,18,0.08);
}
.btn--accent:hover { background: var(--honey-hover); }

.btn--secondary {
  background: var(--paper-2); color: var(--ink);
  border-color: var(--rule);
}
.btn--secondary:hover { background: var(--paper-3); border-color: var(--paper-4); }

.btn--lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn--sm { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 6px; }

/* ============================================================
   Top nav
   ============================================================ */
.mk-nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.mk-nav__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 32px;
}
.mk-nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 18px; letter-spacing: -0.02em;
  color: var(--ink);
}
/* Wordmark middot accent — separates "auto·printer" with a honey-colored dot.
   Used in the nav brand mark and the footer brand mark. */
.mk-nav__brand .middot { color: var(--honey); font-weight: 700; }
.mk-nav__links { display: flex; align-items: center; gap: 24px; }
.mk-nav__links a { font-size: 14px; color: var(--ink-3); transition: color var(--t-fast); }
.mk-nav__links a:hover { color: var(--ink); }
.mk-nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mk-iconbtn {
  width: 32px; height: 32px;
  display: inline-grid; place-items: center;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.mk-iconbtn:hover { background: var(--paper-3); color: var(--ink); }

/* ============================================================
   Hero
   ============================================================ */
.mk-hero { position: relative; padding: 96px 32px 64px; overflow: hidden; }
.mk-hero__inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.mk-hero__warm-glow {
  position: absolute; top: -200px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, oklch(0.92 0.10 75 / 0.35) 0%, transparent 60%);
  pointer-events: none;
}
[data-theme="dark"] .mk-hero__warm-glow {
  background: radial-gradient(circle, oklch(0.55 0.08 65 / 0.18) 0%, transparent 60%);
}

.mk-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--honey-ink);
  margin-bottom: 28px;
}
.mk-eyebrow .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--honey); }

.mk-headline {
  font-size: clamp(48px, 7.5vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 28px;
  max-width: 16ch;
  text-wrap: balance;
}
.mk-headline em {
  font-style: normal;
  color: var(--ink-4);
}

.mk-subhead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 56ch;
  margin: 0 0 40px;
  text-wrap: pretty;
}

.mk-cta-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-sans);
}
.mk-trial-note {
  font-size: 13px; color: var(--ink-4);
  font-family: var(--font-mono);
  margin-left: 8px;
}

/* ---------- Hero schematic (the live trace diagram) ---------- */
.mk-schematic {
  margin-top: 80px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.mk-schematic__bar {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-4);
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--rule);
  margin-bottom: 32px;
}
.mk-schematic__bar .ok-dot { color: var(--ok); }
.mk-schematic__bar .end { margin-left: auto; }

.mk-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 120px;
}
.mk-flow + .mk-flow { margin-top: 16px; }
.mk-flow__node {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.mk-flow__node--accent {
  border-color: var(--honey-line);
  background: var(--honey-soft);
}
.mk-flow__nodeLabel {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.mk-flow__nodeTitle { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.mk-flow__nodeMeta  { font-size: 12px; color: var(--ink-4); font-family: var(--font-mono); }
.mk-flow__arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px;
  color: var(--ink-4);
}

/* ============================================================
   Section scaffold
   ============================================================ */
.mk-section { padding: 96px 32px; }
.mk-section__inner { max-width: 1200px; margin: 0 auto; }
.mk-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
  margin-bottom: 56px;
  align-items: end;
}
.mk-section__title {
  font-size: 44px; line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 12px 0 0;
  max-width: 18ch;
  text-wrap: balance;
}
.mk-section__lede {
  font-size: 18px; line-height: 1.5;
  color: var(--ink-3);
  max-width: 60ch;
}

/* ---------- Problem comparison (without/with Autoprinter) ---------- */
.mk-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--rule);
  border-radius: 16px; overflow: hidden;
  background: var(--paper-2);
}
.mk-compare__col { padding: 32px; }
.mk-compare__col--bad  { background: var(--paper);   border-right: 1px dashed var(--rule); }
.mk-compare__col--good { background: var(--paper-2); border-left: 1px solid var(--honey-line); }
.mk-compare__h {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.mk-compare__h .dot { width: 8px; height: 8px; border-radius: 999px; }
.mk-compare__col--bad  .dot { background: var(--err); }
.mk-compare__col--good .dot { background: var(--ok); }
.mk-compare__col--bad  .mk-compare__h { color: var(--ink-3); }
.mk-compare__col--good .mk-compare__h { color: var(--honey-ink); }

.mk-step {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 14px; color: var(--ink-2);
}
.mk-step:last-child { border-bottom: 0; }
.mk-step__n {
  font-family: var(--font-mono);
  color: var(--ink-4);
  width: 20px; flex-shrink: 0;
}
.mk-step__time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-4);
}
.mk-step--total {
  border-top: 1px solid var(--paper-4);
  border-bottom: 0 !important;
  padding-top: 14px; margin-top: 6px;
}
.mk-compare__col--bad  .mk-step--total { color: var(--err); }
.mk-compare__col--bad  .mk-step--total .mk-step__n,
.mk-compare__col--bad  .mk-step--total .mk-step__time { color: var(--err); }
.mk-compare__col--good .mk-step--total { color: var(--honey-ink); font-weight: 500; border-top-color: var(--honey-line); }
.mk-compare__col--good .mk-step--total .mk-step__n,
.mk-compare__col--good .mk-step--total .mk-step__time { color: var(--honey-ink); }

.mk-compare__callout {
  margin-top: 24px; padding: 16px;
  background: var(--paper);
  border: 1px solid var(--honey-line);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--honey-ink);
  line-height: 1.5;
}
.mk-compare__callout b { font-weight: 700; color: var(--honey-ink); }

/* ---------- How it works steps ---------- */
.mk-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mk-stepcard {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  min-height: 220px;
  text-decoration: none;
  color: var(--ink);
}
.mk-stepcard__top {
  display: flex; align-items: center; justify-content: space-between;
}
.mk-stepcard__num {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.mk-stepcard__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: inline-grid; place-items: center;
  color: var(--ink-2);
}
.mk-stepcard__title { font-size: 22px; line-height: 1.2; letter-spacing: -0.018em; font-weight: 600; }
.mk-stepcard__body { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.mk-stepcard__tag {
  margin-top: auto;
  display: inline-flex; gap: 6px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--honey-ink);
}

/* ---------- How-it-works detail (rules + code block) ---------- */
.mk-how-detail {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; align-items: center;
}
.mk-how-detail h3 {
  font-size: 32px; line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px; font-weight: 600;
}
.mk-how-detail p {
  font-size: 16px; color: var(--ink-3);
  line-height: 1.6; margin-bottom: 20px;
}
.mk-bullets { list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.mk-bullets li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); }
.mk-bullets li svg { color: var(--honey-ink); margin-top: 2px; flex-shrink: 0; }

.mk-code {
  background: var(--ink); color: var(--paper);
  border-radius: 14px; padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.7;
  border: 1px solid var(--ink-2);
  box-shadow: var(--sh-3);
}
[data-theme="dark"] .mk-code { background: #0F0D09; border-color: #25211B; }
.mk-code__h { display: flex; gap: 6px; margin-bottom: 16px; }
.mk-code__h span { width: 10px; height: 10px; border-radius: 999px; background: #3A3530; }
.mk-code .c-key { color: oklch(0.78 0.14 70); }
.mk-code .c-str { color: oklch(0.84 0.10 145); }
.mk-code .c-num { color: oklch(0.82 0.08 250); }
.mk-code .c-com { color: oklch(0.55 0.02 70); }
.mk-code .c-fn  { color: oklch(0.86 0.10 200); }
.mk-code .indent-1 { padding-left: 20px; }
.mk-code .indent-2 { padding-left: 48px; }
.mk-code .matched { color: oklch(0.78 0.14 70); }

/* ---------- Three components tour ---------- */
.mk-components {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.mk-mini {
  margin-top: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-3);
  display: flex; flex-direction: column; gap: 4px;
}
.mk-mini__row { display: flex; justify-content: space-between; }
.mk-mini__row .ok { color: var(--ok); }
.mk-mini--dark {
  background: #0F0D09; color: #B4AC97;
  border-color: #25211B;
}
.mk-mini--dark .ok { color: oklch(0.78 0.14 70); }

/* ---------- Pricing ---------- */
.mk-pricing {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mk-plan {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.mk-plan--feature {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
}
.mk-plan__name {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.mk-plan--feature .mk-plan__name { color: var(--honey); }
.mk-plan__price {
  display: flex; align-items: baseline; gap: 6px;
}
.mk-plan__price b {
  font-size: 56px; font-weight: 600;
  letter-spacing: -0.025em; line-height: 1;
}
.mk-plan__price span { font-size: 14px; color: var(--ink-4); }
.mk-plan--feature .mk-plan__price span { color: oklch(0.65 0.02 70); }
.mk-plan__lede {
  font-size: 14px; line-height: 1.5;
  color: var(--ink-3);
  min-height: 42px;
}
.mk-plan--feature .mk-plan__lede { color: oklch(0.75 0.02 70); }
.mk-plan__feat {
  font-size: 14px; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  list-style: none;
}
.mk-plan--feature .mk-plan__feat {
  border-color: #2A251D;
  color: var(--paper);
}
.mk-plan__feat li {
  display: flex; gap: 10px; align-items: flex-start;
  list-style: none;
}
.mk-plan__feat li svg { color: var(--honey); margin-top: 3px; flex-shrink: 0; }
.mk-plan__cta { margin-top: auto; }
.mk-plan__badge {
  position: absolute; top: -10px; right: 24px;
  background: var(--honey); color: #1A1712;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- CTA section ---------- */
.mk-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 64px 56px;
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 32px; align-items: center;
}
.mk-cta__title {
  font-size: 56px; line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  font-weight: 600;
  text-wrap: balance;
}
.mk-cta__lede {
  font-size: 17px; color: oklch(0.75 0.02 70);
  max-width: 52ch; line-height: 1.5;
}
.mk-cta__actions { display: flex; flex-direction: column; gap: 12px; }
.mk-cta__actions .btn { width: 100%; }
.mk-cta .btn--ghost-on-dark {
  background: transparent;
  color: var(--paper);
  border-color: #3A3530;
}
.mk-cta .btn--ghost-on-dark:hover { background: rgba(255,255,255,0.04); border-color: #4A453E; }
.mk-cta .mk-eyebrow { color: var(--honey); }
.mk-cta .mk-eyebrow .dot { background: var(--honey); }

/* ============================================================
   Footer
   ============================================================ */
.mk-footer {
  border-top: 1px solid var(--rule);
  padding: 64px 32px 40px;
  background: var(--paper-2);
}
.mk-footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
}
.mk-footer__col h6 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 16px;
  font-weight: 500;
}
.mk-footer__col a {
  display: block;
  font-size: 14px; color: var(--ink-3);
  padding: 4px 0;
  transition: color var(--t-fast);
}
.mk-footer__col a:hover { color: var(--ink); }
.mk-footer__brand {
  font-size: 13px; color: var(--ink-4);
  line-height: 1.6; max-width: 32ch;
  margin-top: 16px;
}
.mk-footer__bottom {
  max-width: 1200px;
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: var(--ink-4);
  font-family: var(--font-mono);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .mk-nav__links { display: none; }
  .mk-hero { padding: 64px 20px 48px; }
  .mk-section { padding: 64px 20px; }
  .mk-section__head { grid-template-columns: 1fr; gap: 16px; }
  .mk-flow { grid-template-columns: 1fr; }
  .mk-flow__arrow { transform: rotate(90deg); padding: 12px 0; }
  .mk-compare { grid-template-columns: 1fr; }
  .mk-compare__col--bad { border-right: 0; border-bottom: 1px dashed var(--rule); }
  .mk-compare__col--good { border-left: 0; border-top: 1px solid var(--honey-line); }
  .mk-steps, .mk-pricing, .mk-components { grid-template-columns: 1fr; }
  .mk-how-detail { grid-template-columns: 1fr; }
  .mk-cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .mk-cta__title { font-size: 40px; }
  .mk-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
