/* ============================================================
   Oxbow Labs design system — spec: docs/superpowers/specs/2026-06-09
   Sections are appended per page; tokens and shared components here.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-400italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --text: #1c1b18;
  --muted: #6b6760;
  --accent: #3f7d6a;
  --accent-deep: #356a5a;
  --accent-soft: rgba(63, 125, 106, 0.09);
  --accent-border: rgba(63, 125, 106, 0.22);
  --border: #e7e1d4;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent-deep); color: var(--surface);
  padding: 10px 18px; border-radius: 0 0 8px 0; font-size: 14px; text-decoration: none;
}
.skip-link:focus { left: 0; }

.container { max-width: 1080px; margin-inline: auto; padding-inline: 32px; }
.rule { border: none; height: 1px; background: var(--border); }

/* ---------- Shared components ---------- */
.section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent-deep); font-weight: 600;
}

.pill {
  display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-border); padding: 4px 12px; border-radius: 100px;
  white-space: nowrap;
}
.pill--dim { color: var(--muted); background: rgba(107, 103, 96, 0.07); border-color: rgba(107, 103, 96, 0.18); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color 0.25s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--accent-border); }

.btn {
  display: inline-block; background: var(--accent-deep); color: #fdfcf8;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 12px 26px; border: none; border-radius: 9px; cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: #2c594b; }
.btn:disabled { opacity: 0.55; cursor: default; }

/* ---------- Nav ---------- */
.site-nav { padding: 28px 0; }
.site-nav .container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand-name { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.01em; }
.nav-mail { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav-mail:hover { color: var(--accent-deep); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 36px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-deep); }

/* ---------- Reveal animation (JS adds html.js; no-JS stays visible) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive base ---------- */
@media (max-width: 768px) {
  .container { padding-inline: 20px; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
}

/* ============================================================
   Homepage
   ============================================================ */
.hero { padding: 72px 0 64px; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 22px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 30px; }
.eyebrow-item { display: flex; align-items: center; gap: 8px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6.5vw, 68px); line-height: 1.05; letter-spacing: -0.02em; max-width: 640px; margin-bottom: 24px; }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 500px; margin-bottom: 36px; }
.defn { border-left: 2px solid var(--accent-border); padding: 10px 0 10px 22px; max-width: 460px; }
.defn-word { font-family: var(--font-display); font-size: 18px; }
.defn-pos { font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: 14px; margin-left: 8px; }
.defn-body { font-size: 14px; color: var(--muted); line-height: 1.55; margin-top: 4px; }

.products { padding: 64px 0 72px; }
.products .section-label { display: block; margin-bottom: 28px; }
.product-feat { display: flex; gap: 28px; align-items: flex-start; padding: 32px 34px; margin-bottom: 14px; }
.product-feat-icon { width: 76px; height: 76px; flex-shrink: 0; filter: drop-shadow(0 3px 8px rgba(28, 27, 24, 0.14)); }
.product-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.product-name { font-family: var(--font-display); font-size: 27px; letter-spacing: -0.01em; font-weight: 400; }
.product-desc { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.learn-more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--accent-deep); }
.learn-more .i-arrow { width: 13px; height: 13px; margin-left: 5px; vertical-align: -1.5px; }   /* SVG arrow: U+2192 is absent from the latin font subset */
.product-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product-mini { padding: 28px 30px; }
.product-mini .tile { width: 40px; height: 40px; border-radius: 9px; background: var(--accent-soft); border: 1px solid var(--accent-border); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; color: var(--accent); margin-bottom: 16px; }
.product-mini .product-name { font-size: 21px; }
.product-mini .product-desc { margin: 6px 0 16px; font-size: 14px; }
.products-next { font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: 15px; margin-top: 24px; }

.studio { padding: 64px 0 72px; }
.studio-grid { display: grid; grid-template-columns: 190px 1fr; gap: 40px; align-items: start; }
.studio-grid .section-label { padding-top: 5px; }
.studio-body p { font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 560px; }
.studio-body p + p { margin-top: 18px; }
.studio-body strong { color: var(--text); font-weight: 500; }

@media (max-width: 768px) {
  .hero { padding: 48px 0 48px; }
  .products, .studio { padding: 48px 0 52px; }
  .product-feat { flex-direction: column; gap: 18px; }
  .product-duo { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   MDown page — hero & carousel
   ============================================================ */
.product-hero { padding: 64px 0 56px; }
.product-hero-grid { display: flex; gap: 36px; align-items: flex-start; }
.app-icon { width: 116px; height: 116px; flex-shrink: 0; filter: drop-shadow(0 6px 18px rgba(28, 27, 24, 0.18)); }
.product-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6vw, 60px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 10px; }
.tagline { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--accent); margin-bottom: 16px; }
.product-hero .hero-sub { margin-bottom: 26px; }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta-pill { display: inline-block; background: var(--accent-deep); color: #fdfcf8; font-size: 14px; font-weight: 500; padding: 12px 24px; border-radius: 9px; }
.support-link { font-size: 14px; font-weight: 500; color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid var(--accent-border); }
.support-link:hover { border-color: var(--accent-deep); }

.shots { padding: 56px 0 64px; }
.shots .section-label { display: block; margin-bottom: 26px; }
.carousel { position: relative; }
.car-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-frame { flex: 0 0 88%; scroll-snap-align: center; margin: 0; }
.car-frame img { aspect-ratio: 16 / 10; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 34px rgba(28, 27, 24, 0.09); }
.car-cap { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; font-style: italic; }
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 3px 12px rgba(28, 27, 24, 0.12); font-size: 19px; line-height: 1; color: var(--text); cursor: pointer; }
.car-arrow--prev { left: -16px; }
.car-arrow--next { right: -16px; }
.car-arrow:hover { border-color: var(--accent-border); }
.car-dots { display: flex; gap: 0; justify-content: center; margin-top: 20px; }
/* 24×24 touch target with 8×8 visible dot via padding + background-clip */
.car-dot { width: 24px; height: 24px; padding: 8px; border-radius: 50%; border: none;
  background: var(--border); background-clip: content-box; cursor: pointer; }
.car-dot[aria-current="true"] { background: var(--accent); background-clip: content-box; }

@media (max-width: 768px) {
  .product-hero { padding: 44px 0 44px; }
  .product-hero-grid { flex-direction: column; gap: 22px; }
  .car-arrow { display: none; }   /* touch scroll + dots suffice on small screens */
  .car-frame { flex-basis: 92%; }
}

/* ============================================================
   MDown page — features, isnt, support form
   ============================================================ */
.features { padding: 56px 0 64px; }
.features .section-label { display: block; margin-bottom: 26px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature { padding: 24px 26px; }
.feature-name { font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.feature-desc { font-size: 14px; line-height: 1.6; color: var(--muted); }

.isnt { padding: 56px 0 64px; }
.isnt-grid { display: grid; grid-template-columns: 190px 1fr; gap: 40px; align-items: start; }
.isnt-grid .section-label { padding-top: 5px; }
.nots { list-style: none; margin-bottom: 20px; }
.nots li { font-size: 16px; color: var(--muted); padding: 7px 0; display: flex; gap: 13px; align-items: flex-start; }
.nots .x { color: var(--accent); display: inline-flex; margin-top: 7px; }   /* SVG cross: U+2715 is absent from the latin font subset */
.nots .x .i-x { width: 11px; height: 11px; }
.kicker { font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 1.5; max-width: 460px; }

.support { padding: 56px 0 72px; }
.support-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.support .section-label { display: block; margin-bottom: 18px; }
.support-head { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin-bottom: 12px; }
.support-blurb { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 340px; margin-bottom: 18px; }
.support-alt { font-size: 14px; color: var(--muted); }

.form-card { padding: 28px 30px; position: relative; }   /* relative: containing block for .hp-field */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 13px; font-size: 15px; font-family: var(--font-body); color: var(--text);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #b3543e; }
.field-err { font-size: 12.5px; color: #b3543e; margin-top: 5px; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 14px; color: #b3543e; margin-bottom: 14px; }
.form-success { margin-top: 0; }

@media (max-width: 768px) {
  .features, .isnt, .support { padding: 44px 0 48px; }
  .feature-grid { grid-template-columns: 1fr; }
  .isnt-grid, .support-grid { grid-template-columns: 1fr; gap: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   404
   ============================================================ */
.nf { min-height: 100vh; display: flex; align-items: center; }
.nf-inner { text-align: center; padding-block: 60px; }
.nf-mark { width: 48px; height: 48px; margin: 0 auto 24px; }
.nf-title { font-family: var(--font-display); font-weight: 400; font-size: 44px; margin-bottom: 12px; }
.nf-sub { color: var(--muted); margin-bottom: 28px; }
.nf .btn { text-decoration: none; }

/* ============================================================
   Legal pages
   ============================================================ */
.legal { padding-block: 72px 110px; }
.legal-inner { max-width: 620px; }
.legal-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5vw, 46px); letter-spacing: -0.02em; margin-bottom: 10px; }
.legal-updated { color: var(--muted); font-size: 14px; margin-bottom: 44px; }
.legal h2 { font-size: 16px; font-weight: 600; margin: 34px 0 10px; }
.legal p { line-height: 1.7; color: var(--text); margin-bottom: 12px; }
.legal .lede { font-size: 18px; color: var(--muted); }
