/* ==========================================================================
   MainMTO — site styles
   Design language: warm-paper light field, deep ink sections, one confident
   accent (main-blue), one warm signal (amber), one status green (ship).
   Tokens mirror BRAND.md §5–6. Hand-authored; no framework.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --ink:            #0A0D14;
  --graphite:       #151A24;
  --slate:          #2A3342;
  --bone:           #F7F5F1;
  --paper:          #FFFFFF;
  --main-blue:      #3B5BFF;
  --main-blue-deep: #1E35B8;
  --signal:         #FFB020;
  --ship:           #2ECC8F;
  --steel:          #5A6675;
  --fog:            #94A3B8;

  --line:           #E4E0D8;
  --line-dark:      #232C3B;

  --ff-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --ff-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-mono:    "JetBrains Mono", "Consolas", ui-monospace, monospace;

  --wrap: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --gap: clamp(1.25rem, 2.5vw, 2rem);

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(10,13,20,.05), 0 2px 8px rgba(10,13,20,.04);
  --shadow:    0 2px 4px rgba(10,13,20,.05), 0 12px 32px rgba(10,13,20,.07);
  --shadow-lg: 0 4px 8px rgba(10,13,20,.06), 0 24px 60px rgba(10,13,20,.10);

  --ease: cubic-bezier(.2,.7,.3,1);
}

/* ------------------------------------------------------------ base/reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  margin: 0 0 .6em;
  letter-spacing: -.022em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); }
h3 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -.012em; }
h4 { font-size: 1.0625rem; letter-spacing: -.005em; }
p  { margin: 0 0 1.1rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

/* Buttons are excluded from every generic link rule. `a:hover` is specificity
   (0,1,1) and would otherwise outrank `.btn`'s own (0,1,0) `color`, repainting
   button text with the link colour on hover. Every contextual `a` rule in this
   file carries the same guard — see .nav-links and the dark-surface block. */
a:not(.btn) { color: var(--main-blue); text-decoration: none; }
a:not(.btn):hover { color: var(--main-blue-deep); text-decoration: underline; text-underline-offset: 3px; }
a.btn { text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--main-blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bone);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--r) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------- utility -- */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.6; color: var(--steel); max-width: 58ch; }
.mono { font-family: var(--ff-mono); }
.nowrap { white-space: nowrap; }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--main-blue);
  margin-bottom: 1rem;
}
.eyebrow::before { content: "// "; opacity: .5; }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--flush-top { padding-top: 0; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { max-width: 720px; margin-inline: auto; }

/* ------------------------------------------------------- dark sections --- */
/* `.hero` is a dark surface too. It MUST appear in every dark-surface rule
   below — when it didn't, ghost buttons in the hero inherited the light-surface
   foreground (near-black ink) and rendered invisible against the ink field.
   The `:not(.btn)` guards matter just as much: a bare `.section--ink a` rule
   is specificity (0,2,0) and silently overrode `.btn`'s own (0,1,0) colour,
   which is how amber buttons ended up with periwinkle link text. */
.section--ink { background: var(--ink); color: var(--bone); }
:is(.section--ink, .hero) :is(h1, h2, h3, h4) { color: var(--bone); }
:is(.section--ink, .hero) :is(p, li) { color: var(--fog); }
:is(.section--ink, .hero) .lead { color: var(--fog); }
:is(.section--ink, .hero) .eyebrow { color: var(--signal); }
:is(.section--ink, .hero) a:not(.btn) { color: #A9BAFF; }
:is(.section--ink, .hero) a:not(.btn):hover { color: #C9D4FF; }
:is(.section--ink, .hero) strong { color: var(--bone); }
:is(.section--ink, .hero) hr { border-color: var(--line-dark); }

/* ------------------------------------------------------ light sections --- */
/* Alternating bone / paper gives adjacent light sections rhythm without
   reaching for another dark band. */
.section--paper { background: var(--paper); }
.section--paper .card { background: var(--bone); }
.section--paper .table-wrap { background: var(--bone); }
.section--paper thead th { background: var(--paper); }

/* Grain + grid texture so large ink fields don't read flat */
.section--ink { position: relative; isolation: isolate; }
.section--ink::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 108px 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  --btn-bg: var(--main-blue);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--ff-body);
  font-size: .9375rem; font-weight: 600; line-height: 1;
  padding: .95rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer; text-decoration: none;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
  box-shadow: 0 1px 2px rgba(10,13,20,.12), 0 6px 18px rgba(59,91,255,.20);
}
/* Hover must go through --btn-fg, never a literal `color`. A literal here
   outranks the variable every variant sets, which turned ghost buttons white
   on white the moment the pointer touched them. */
.btn:hover {
  --btn-bg: var(--main-blue-deep);
  --btn-fg: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(10,13,20,.14), 0 12px 28px rgba(59,91,255,.28);
}
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.125rem 1.85rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover {
  --btn-bg: var(--paper); --btn-fg: var(--ink);
  border-color: var(--ink); box-shadow: var(--shadow-sm);
}
:is(.section--ink, .hero) .btn--ghost { --btn-fg: var(--bone); border-color: var(--slate); }
:is(.section--ink, .hero) .btn--ghost:hover {
  --btn-bg: rgba(255,255,255,.10); --btn-fg: #fff; border-color: var(--fog);
}

.btn--signal { --btn-bg: var(--signal); --btn-fg: var(--ink); box-shadow: 0 6px 18px rgba(255,176,32,.24); }
.btn--signal:hover { --btn-bg: #FFC24D; --btn-fg: var(--ink); box-shadow: 0 12px 28px rgba(255,176,32,.32); }

.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; align-items: center; }
.btn-row.center { justify-content: center; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .9375rem;
}
.arrow-link svg { width: 1em; height: 1em; transition: transform .16s var(--ease); }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- header -- */
.topbar {
  background: var(--ink); color: var(--fog);
  font-size: .8125rem; font-family: var(--ff-mono);
  border-bottom: 1px solid var(--line-dark);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar a { color: var(--fog); }
.topbar a:hover { color: var(--bone); }
.topbar-meta { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.topbar-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.topbar .ico { width: 14px; height: 14px; opacity: .7; }
.topbar-status { display: inline-flex; align-items: center; gap: .5rem; color: var(--ship); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ship); box-shadow: 0 0 0 3px rgba(46,204,143,.18); }
@media (max-width: 900px) { .topbar-hide-sm { display: none; } }
@media (max-width: 620px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,241,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo svg { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.logo-text { display: inline-flex; align-items: baseline; letter-spacing: -.01em; }
.logo-main { font-family: var(--ff-mono); font-weight: 500; font-size: 1.125rem; color: var(--steel); }
.logo-mto  { font-family: var(--ff-display); font-weight: 700; font-size: 1.22rem; color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
/* `:not(.btn)` so the "Start a project" button inside the mobile menu keeps
   its own white foreground instead of inheriting the dark nav-link colour. */
.nav-links a:not(.btn) {
  display: block; padding: .55rem .8rem; border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 500; color: var(--ink);
  transition: background .14s var(--ease), color .14s var(--ease);
}
.nav-links a:not(.btn):hover { background: rgba(10,13,20,.05); color: var(--ink); text-decoration: none; }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--main-blue); background: rgba(59,91,255,.08); }

.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; transform: translateX(-50%);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; left: 0; transform: none; }
.nav-toggle span::after  { top:  6px; left: 0; transform: none; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--paper); border-left: 1px solid var(--line);
    padding: 5.5rem 1.25rem 2rem; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .28s var(--ease);
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { padding: .85rem 1rem; font-size: 1.0625rem; }
  .nav-links .btn { margin-top: .75rem; }
  .nav-links .btn { display: inline-flex; }
}

/* ------------------------------------------------------------------ hero -- */
.hero {
  position: relative; isolation: isolate;
  background: var(--ink); color: var(--bone);
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 108px 100%;
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 780px; height: 780px; right: -220px; top: -320px;
  background: radial-gradient(circle, rgba(59,91,255,.30), transparent 62%);
  filter: blur(8px); pointer-events: none;
}
.hero h1 { color: var(--bone); max-width: 16ch; }
.hero .lead { color: var(--fog); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 56ch; }
.hero .eyebrow { color: var(--signal); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-accent { color: var(--signal); }
.hero-underline {
  background-image: linear-gradient(transparent 62%, rgba(255,176,32,.32) 62%);
  padding-inline: .08em;
}

.hero-proof { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line-dark); }
.hero-proof div { display: flex; flex-direction: column; gap: .15rem; }
.hero-proof dt, .hero-proof .k { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 700; color: var(--bone); letter-spacing: -.02em; }
.hero-proof .v { font-family: var(--ff-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fog); }

/* code-card visual in hero */
.code-card {
  background: var(--graphite); border: 1px solid var(--line-dark);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  font-family: var(--ff-mono); font-size: .8125rem; line-height: 1.85;
}
.code-card__bar { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line-dark); background: rgba(255,255,255,.02); }
.code-card__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--slate); display: block; }
.code-card__bar i:first-child { background: #FF5F57; }
.code-card__bar i:nth-child(2) { background: var(--signal); }
.code-card__bar i:nth-child(3) { background: var(--ship); }
.code-card__bar span { margin-left: auto; font-family: var(--ff-mono); font-size: .6875rem; color: var(--fog); letter-spacing: .08em; }
.code-card__body { padding: 1.1rem 1.25rem 1.35rem; color: var(--fog); overflow-x: auto; }
.code-card__body .ln { display: block; white-space: pre; }
.c-key  { color: #A9BAFF; }
.c-str  { color: var(--ship); }
.c-com  { color: #5A6675; }
.c-num  { color: var(--signal); }

/* ----------------------------------------------------------- inner hero -- */
.hero--inner { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero--inner h1 { max-width: 20ch; }
.breadcrumb { font-family: var(--ff-mono); font-size: .75rem; letter-spacing: .06em; color: var(--fog); margin-top: 1.5rem; }
.breadcrumb a { color: var(--fog); }
.breadcrumb a:hover { color: var(--bone); }

/* ----------------------------------------------------------------- cards -- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--steel); font-size: .9375rem; margin-bottom: 0; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D6D0C4; }
.section--ink .card { background: var(--graphite); border-color: var(--line-dark); }
.section--ink .card p { color: var(--fog); }
.section--ink .card--link:hover { border-color: var(--slate); box-shadow: 0 24px 60px rgba(0,0,0,.4); }

.card__foot { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.section--ink .card__foot { border-color: var(--line-dark); }

.ico-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r);
  background: rgba(59,91,255,.09); color: var(--main-blue);
  margin-bottom: 1.1rem; flex: none;
}
.section--ink .ico-badge { background: rgba(59,91,255,.16); color: #A9BAFF; }
.ico-badge--signal { background: rgba(255,176,32,.14); color: #8A5B00; }
.section--ink .ico-badge--signal { background: rgba(255,176,32,.16); color: var(--signal); }
.ico { width: 22px; height: 22px; }

/* numbered items */
.numbered { counter-reset: step; }
.step { position: relative; padding-left: 4.25rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -.1rem;
  font-family: var(--ff-mono); font-size: .875rem; font-weight: 500;
  color: var(--main-blue);
  width: 3rem; height: 3rem; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.section--ink .step::before { color: var(--signal); border-color: var(--line-dark); background: var(--graphite); }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--steel); font-size: .9375rem; }
.section--ink .step p { color: var(--fog); }

/* ------------------------------------------------------------- pain list -- */
.pain { display: flex; gap: .875rem; align-items: flex-start; }
.pain svg { flex: none; width: 20px; height: 20px; margin-top: .28rem; color: var(--main-blue); }
.pain p { font-size: .9375rem; color: var(--steel); margin: 0; }
.pain strong { color: var(--ink); font-weight: 600; }
/* amber is a dark-surface accent only — never as a mark on bone/paper */
:is(.section--ink, .hero) .pain svg { color: var(--signal); }
:is(.section--ink, .hero) .pain p { color: var(--fog); }
:is(.section--ink, .hero) .pain strong { color: var(--bone); }

/* ------------------------------------------------------------ stat strip -- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .k { font-family: var(--ff-display); font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: .4rem; }
.stat .v { font-family: var(--ff-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.section--ink .stat .v { color: var(--fog); }
.section--ink .stat .k { color: var(--bone); }

/* --------------------------------------------------------------- pricing -- */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.is-featured {
  border-color: var(--main-blue); box-shadow: 0 0 0 1px var(--main-blue), var(--shadow);
}
.price-card__tag {
  position: absolute; top: -.75rem; left: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--main-blue); color: #fff;
  font-family: var(--ff-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px;
}
.price-card__price { font-family: var(--ff-display); font-size: 2.25rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: .35rem 0 .3rem; }
.price-card__range { font-family: var(--ff-mono); font-size: .75rem; color: var(--steel); letter-spacing: .04em; }
.section--ink .price-card__range { color: var(--fog); }
.price-card__meta { font-family: var(--ff-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--main-blue); }
.section--ink .price-card__meta { color: var(--signal); }
.price-card ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .6rem; }
.price-card li { position: relative; padding-left: 1.6rem; font-size: .9375rem; color: var(--steel); }
.section--ink .price-card li { color: var(--fog); }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 10px; height: 6px; border-left: 2px solid var(--ship); border-bottom: 2px solid var(--ship);
  transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; }
.price-card__cta { margin-top: 1.5rem; }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .9375rem; }
th, td { padding: .95rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: var(--ff-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--steel);
  background: var(--bone); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td strong { font-weight: 600; }
.td-num { font-family: var(--ff-mono); white-space: nowrap; }

/* ---------------------------------------------------------------- stack --- */
.stack-strip { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--ff-mono); font-size: .8125rem;
  padding: .4rem .75rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--steel);
}
.section--ink .chip { border-color: var(--line-dark); background: var(--graphite); color: var(--fog); }
.chip--ship { color: #17794F; border-color: rgba(46,204,143,.35); background: rgba(46,204,143,.10); }

/* ------------------------------------------------------------------ faq --- */
.faq { border-top: 1px solid var(--line); }
.section--ink .faq { border-color: var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line); }
.section--ink .faq details { border-color: var(--line-dark); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--ff-display); font-weight: 600; font-size: 1.0625rem;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-top: .35rem;
  border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.section--ink .faq summary::after { border-color: var(--fog); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 0 1.35rem; }
.faq p { color: var(--steel); font-size: .9375rem; }
.section--ink .faq p { color: var(--fog); }

/* ----------------------------------------------------------------- note --- */
.note {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--r); padding: 1.25rem 1.5rem;
  font-size: .9375rem; color: var(--steel);
}
.section--ink .note { background: var(--graphite); border-color: var(--line-dark); border-left-color: var(--signal); color: var(--fog); }

.owner-note { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 680px) { .owner-note { grid-template-columns: 1fr; } }
.owner-avatar {
  width: 96px; height: 96px; border-radius: 50%; flex: none;
  background: var(--graphite); border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 1.75rem; font-weight: 700; color: var(--signal);
  letter-spacing: -.02em;
}
.signature { font-family: var(--ff-display); font-size: 1.125rem; font-weight: 600; color: var(--bone); margin-top: 1.25rem; }
.signature small { display: block; font-family: var(--ff-mono); font-size: .75rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--fog); margin-top: .3rem; }

/* ------------------------------------------------------------- cta band -- */
.cta-band { background: var(--main-blue); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 108px 100%;
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 54ch; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: var(--main-blue-deep); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cta-band .btn:hover { --btn-bg: var(--bone); --btn-fg: var(--main-blue-deep); }
.cta-band .btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.45); box-shadow: none; }
.cta-band .btn--ghost:hover { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; border-color: #fff; }
.cta-band-inner { display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ----------------------------------------------------------------- form --- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.req { color: #C0392B; }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper);
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--main-blue);
  box-shadow: 0 0 0 3px rgba(59,91,255,.16);
}
.field-hint { font-size: .8125rem; color: var(--steel); }
.form-note { font-size: .8125rem; color: var(--steel); margin-top: .85rem; }
.form-status { display: none; }

/* --------------------------------------------------------------- footer --- */
.site-footer { background: var(--ink); color: var(--fog); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.75rem, 4vw, 3rem); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 {
  font-family: var(--ff-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bone);
  margin-bottom: 1.1rem; line-height: 1.4;
}
.site-footer .logo-main { color: var(--fog); }
.site-footer .logo-mto  { color: var(--bone); }
.footer-tag { font-family: var(--ff-mono); font-size: .8125rem; color: var(--signal); margin: .9rem 0 .75rem; letter-spacing: .04em; }
.footer-about { font-size: .875rem; color: var(--fog); max-width: 38ch; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-links a, .footer-contact a { color: var(--fog); font-size: .875rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--bone); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; }
.footer-contact .ico { width: 16px; height: 16px; margin-top: .2rem; flex: none; opacity: .6; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line-dark);
  padding: 1.5rem 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8125rem; font-family: var(--ff-mono); }
.footer-bottom a { color: var(--fog); }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ----------------------------------------------------------- prose pages -- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.125rem; margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .5rem; color: var(--steel); max-width: 68ch; }
.prose p { color: var(--steel); }
.prose strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- reveal --- */
/* Progressive enhancement: content is visible by default. Only once the
   inline head script confirms JS is running (html.js) do we hide it for the
   entrance animation — so a failed observer can never leave the page blank. */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .arrow-link svg { transition: none; }
}

/* ----------------------------------------------------------------- print -- */
@media print {
  .topbar, .site-header, .cta-band, .site-footer, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .section--ink, .hero { background: #fff !important; color: #000 !important; }
  .section--ink h1, .section--ink h2, .section--ink h3, .hero h1 { color: #000 !important; }
  .section--ink p, .section--ink li, .hero .lead { color: #333 !important; }
}
