/* ============================================================================
   MaxlimWebs — style.css
   Design language inspired by opencode.ai:
   · IBM Plex Mono everywhere
   · hairline "blueprint" grid rules
   · [*] markers, Fig 1. captions, terminal panels
   · lime interactive accent  hsl(62 84% 88%)
   · light + dark themes (system aware, user overridable)
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* surfaces */
  --bg: hsl(0 20% 99%);
  --bg-weak: hsl(0 8% 97%);
  --bg-weak-hover: hsl(0 8% 94%);
  --bg-strong: hsl(0 5% 12%);
  --bg-strong-hover: hsl(0 5% 18%);
  --bg-interactive: hsl(62 84% 88%);
  --bg-interactive-weak: hsl(64 74% 95%);
  --bg-interactive-weaker: hsl(64 60% 97.5%);

  /* text */
  --text: hsl(0 1% 39%);            /* 5.9:1 on paper  */
  --text-weak: hsl(0 1% 44%);       /* 4.9:1 — AA      */
  --text-weaker: hsl(0 1% 50%);     /* decorative marks only (3.9:1) */
  --text-strong: hsl(0 5% 12%);
  --text-inverted: hsl(0 20% 99%);

  /* lines & icons */
  --border: hsl(30 2% 81%);
  --border-weak: hsla(0 100% 3% / 0.1);
  --icon: hsl(0 1% 50%);           /* ≥3:1 for icons  */

  /* accents */
  --hl: hsl(62 84% 88%);
  --hl-2: hsl(66 74% 84%);
  --hl-text: hsl(0 5% 12%);
  --on-interactive: hsl(0 5% 12%);   /* text ON --bg-interactive / --hl */

  /* type */
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo,
    Consolas, 'Liberation Mono', monospace;

  /* state colours — 6.6:1 on --bg, so validation text is readable */
  --danger: hsl(4 70% 42%);
  --danger-soft: hsl(4 70% 42% / 0.12);
  --success: hsl(150 55% 28%);

  /* layout */
  --shell: 1120px;
  --pad: clamp(16px, 4vw, 28px);
  --radius: 3px;
  --ring: 0 0 0 1px rgba(0 0 0 / 0.9);

  color-scheme: light;
}

html[data-theme='dark'] {
  --bg: hsl(0 9% 7%);
  --bg-weak: hsl(0 6% 11%);
  --bg-weak-hover: hsl(0 6% 15%);
  --bg-strong: hsl(0 20% 96%);
  --bg-strong-hover: hsl(0 20% 88%);
  --bg-interactive: hsl(62 70% 76%);
  --bg-interactive-weak: hsla(62 70% 70% / 0.13);
  --bg-interactive-weaker: hsla(62 70% 70% / 0.06);

  --text: hsl(0 1% 70%);
  --text-weak: hsl(0 1% 56%);       /* 5.8:1 on ink    */
  --text-weaker: hsl(0 5% 50%);     /* decorative marks only */
  --text-strong: hsl(0 20% 96%);
  --text-inverted: hsl(0 9% 7%);

  --border: hsl(0 6% 25%);
  --border-weak: hsla(0 0% 100% / 0.1);
  --icon: hsl(0 1% 58%);

  --hl: hsl(62 70% 82%);
  --hl-2: hsl(70 62% 78%);
  --hl-text: hsl(0 8% 9%);
  --on-interactive: hsl(0 8% 9%);

  /* state colours, tuned for the dark surface */
  --danger: hsl(4 85% 74%);
  --danger-soft: hsl(4 85% 74% / 0.16);
  --success: hsl(150 55% 66%);

  color-scheme: dark;
}

/* ── 2. Base ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; color: var(--text-strong); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--bg-interactive); color: var(--on-interactive); }

:focus-visible {
  outline: 2px solid var(--text-strong);
  outline-offset: 2px;
  border-radius: 2px;
}

br { content: ''; }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border); border: 3px solid var(--bg); border-radius: 10px; }

/* ── 3. Layout primitives ──────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
  border-inline: 1px solid var(--border-weak);
}

.section {
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--border-weak);
}

.section-head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-title { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
.section-sub { margin-top: 14px; color: var(--text-weak); font-size: 14px; max-width: 62ch; }

.eyebrow {
  margin-bottom: 16px;
  color: var(--text-weak);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow--invert { color: color-mix(in srgb, var(--text-inverted) 58%, transparent); }

.brk { color: var(--text-weaker); }
html[data-theme='dark'] .brk { color: var(--text-weaker); }
.eyebrow--invert .brk { color: color-mix(in srgb, var(--text-inverted) 38%, transparent); }

.fig {
  display: block;
  color: var(--text-weak);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hl {
  background: var(--hl);
  color: var(--hl-text);
  padding: 0 0.14em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hl-2 { background: var(--hl-2); }

.dot::after {
  content: '';
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.14em;
  background: var(--bg-interactive);
  vertical-align: baseline;
  animation: blink 1.4s steps(1, end) infinite;
}
@keyframes blink { 0%, 55% { opacity: 1 } 56%, 100% { opacity: 0.25 } }

/* ── 4. Grids & cells (hairline blueprint) ─────────────────────────────── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.cell {
  position: relative;
  margin: -1px;
  padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid var(--border-weak);
  background: var(--bg);
  transition: background 0.2s ease;
}
.cell > * + * { margin-top: 12px; }

/* ── 5. Buttons & controls ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--bg-weak-hover); border-color: var(--text-weaker); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--bg-strong); border-color: var(--bg-strong); color: var(--text-inverted); }
.btn-primary:hover { background: var(--bg-strong-hover); border-color: var(--bg-strong-hover); color: var(--text-inverted); }

.btn-invert { background: var(--bg-interactive); border-color: var(--bg-interactive); color: var(--on-interactive); }
.btn-invert:hover { background: hsl(62 84% 82%); border-color: hsl(62 84% 82%); color: var(--on-interactive); }

.btn-invert-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--text-inverted) 32%, transparent);
  color: var(--text-inverted);
}
.btn-invert-ghost:hover {
  background: color-mix(in srgb, var(--text-inverted) 10%, transparent);
  border-color: color-mix(in srgb, var(--text-inverted) 55%, transparent);
}

.btn-sm { padding: 8px 13px; font-size: 12.5px; }
.btn-lg { padding: 13px 20px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

.chip {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--border-weak);
  border-radius: 2px;
  background: var(--bg-weak);
  color: var(--text-weak);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip-hl { background: var(--bg-interactive); border-color: transparent; color: var(--on-interactive); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-weak);
  border-radius: var(--radius);
  background: transparent;
  color: var(--icon);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.icon-btn:hover { background: var(--bg-weak-hover); color: var(--text-strong); }

.link-cta,
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-strong);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--text-weaker);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: background 0.18s ease, text-decoration-color 0.18s ease;
}
.link-cta:hover,
.link-btn:hover { background: var(--hl); text-decoration-color: transparent; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--bg-strong);
  color: var(--text-inverted);
  font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* theme-driven logo swap */
html[data-theme='light'] .dark-only,
html[data-theme='dark'] .light-only { display: none !important; }

/* ── 6. Announcement strip ─────────────────────────────────────────────── */
.strip { background: var(--bg-weak); border-bottom: 1px solid var(--border-weak); }
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 9px var(--pad);
  font-size: 12.5px;
  color: var(--text-weak);
  text-align: center;
}
.strip-text { color: var(--text); }
.strip-link {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--text-weaker);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.strip-link:hover { background: var(--hl); text-decoration-color: transparent; }

/* ── 7. Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-weak);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 12px var(--pad);
}
.brand { display: inline-flex; align-items: center; }
.brand-mark { width: auto; height: 22px; }

.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--text-weak);
  font-size: 13px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-link:hover { color: var(--text-strong); background: var(--bg-weak-hover); }
.nav-link.is-active { color: var(--text-strong); background: var(--bg-interactive-weak); }
.nav-desktop .btn { margin-left: 8px; }

.header-tools { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

/* sun / moon */
html[data-theme='light'] .i-moon { display: none; }
html[data-theme='dark'] .i-sun { display: none; }

/* mobile drawer */
.mobile-nav {
  border-top: 1px solid var(--border-weak);
  background: var(--bg);
  padding: 6px var(--pad) 18px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { display: grid; max-width: var(--shell); margin-inline: auto; }
.mobile-nav a {
  padding: 13px 2px;
  border-bottom: 1px solid var(--border-weak);
  color: var(--text-strong);
  font-size: 15px;
}
.mobile-nav a:hover { background: var(--hl); }
.mobile-nav-foot {
  max-width: var(--shell);
  margin: 14px auto 0;
  color: var(--text-weak);
  font-size: 12.5px;
}
.mobile-nav-foot a { color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; }

/* ── 8. Hero ───────────────────────────────────────────────────────────── */
.hero { border-top: 0; padding-top: clamp(40px, 6vw, 78px); }
.hero-head { max-width: 860px; }
.hero-title {
  font-size: clamp(2rem, 5.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.hero-brand {
  margin-top: 20px;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text-strong);
  font-weight: 500;
}
.hero-sub { margin-top: 16px; max-width: 68ch; color: var(--text-weak); font-size: 14.5px; }

/* terminal */
.term {
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border-weak);
  border-radius: var(--radius);
  background: var(--bg-weak);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 6px 6px;
  border-bottom: 1px solid var(--border-weak);
  background: var(--bg);
}
.term-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.term-tab {
  padding: 6px 11px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--text-weak);
  font-family: var(--font-mono);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.term-tab:hover { color: var(--text-strong); background: var(--bg-weak-hover); }
.term-tab.is-active { color: var(--text-strong); background: var(--bg-interactive-weak); }

.term-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--border-weak);
  border-radius: 2px;
  background: transparent;
  color: var(--text-weak);
  font-size: 12px;
  cursor: pointer;
}
.term-copy:hover { color: var(--text-strong); background: var(--bg-weak-hover); }
.term-copy.is-done { color: var(--on-interactive); background: var(--bg-interactive); }

.term-panels { padding: 18px clamp(14px, 2.4vw, 22px); }
.term-panel[hidden] { display: none; }
.term-line {
  color: var(--text-strong);
  font-size: clamp(12.5px, 1.7vw, 14.5px);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.term-line::-webkit-scrollbar { display: none; }
.term-prompt { color: var(--text-weaker); margin-right: 10px; user-select: none; }
.term-note { margin-top: 10px; color: var(--text-weak); font-size: 12.5px; }

.term-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px clamp(14px, 2.4vw, 22px);
  border-top: 1px solid var(--border-weak);
  background: var(--bg);
}
.term-status {
  padding: 0 clamp(14px, 2.4vw, 22px) 12px;
  background: var(--bg);
  color: var(--text-weak);
  font-size: 11.5px;
  min-height: 0;
}
.term-status:not(:empty) { padding-top: 2px; }

/* stats */
.stats { margin-top: clamp(28px, 4vw, 44px); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-strong);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--text-weak); }

/* ── 9. Statement + features ───────────────────────────────────────────── */
.hl-wrap { background: var(--hl); color: var(--hl-text); padding: 0 0.12em; }
.features .cell { display: flex; flex-direction: column; gap: 4px; }
.features .cell:hover { background: var(--bg-interactive-weaker); }
.feature strong { display: block; font-size: 14.5px; color: var(--text-strong); font-weight: 600; }
.feature span:last-child { font-size: 12.5px; color: var(--text-weak); }

/* ── 10. Services ──────────────────────────────────────────────────────── */
.service-index { color: var(--text-weak); font-size: 12px; letter-spacing: 0.08em; }
.service-title { font-size: 17px; line-height: 1.3; }
.service-copy { color: var(--text-weak); font-size: 13.5px; }
.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-weak);
}
.price {
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--bg-interactive-weak);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 500;
}
.service:hover { background: var(--bg-interactive-weaker); }

/* ── 11. Pricing ───────────────────────────────────────────────────────── */
.currency {
  display: inline-flex;
  margin-top: 20px;
  padding: 2px;
  border: 1px solid var(--border-weak);
  border-radius: var(--radius);
  background: var(--bg-weak);
}
.currency-btn {
  padding: 6px 14px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--text-weak);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.currency-btn:hover { color: var(--text-strong); }
.currency-btn.is-active { background: var(--bg-strong); color: var(--text-inverted); }

.plan { display: flex; flex-direction: column; }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* the "Most Popular" badge sits in the corner so every price stays on one line */
.plan--featured .chip-hl {
  position: absolute;
  top: -1px;
  right: -1px;
  border-radius: 0 2px 0 2px;
}
.plan-price { flex: 1 0 100%; margin-top: 14px; }
.price-amount {
  display: inline-block;
  color: var(--text-strong);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.plan-features { flex: 1; margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--border-weak); }
.plan-features li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 12.8px;
  line-height: 1.5;
}
.plan-features li + li { margin-top: 9px; }
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--text-weaker);
}
.plan .btn { margin-top: 22px; }

.plan--featured {
  z-index: 1;
  background: var(--bg-interactive-weaker);
  border-color: var(--border);
}
.plan--featured .plan-features { border-top-color: var(--border); }

.pricing-note {
  margin-top: 22px;
  color: var(--text-weak);
  font-size: 12.5px;
  max-width: 90ch;
}

/* ── 12. Founder ───────────────────────────────────────────────────────── */
.founder { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(22px, 4vw, 46px); align-items: start; }
.founder-photo { margin: 0; }
.founder-photo img {
  width: 100%;
  border: 1px solid var(--border-weak);
  border-radius: var(--radius);
  background: var(--bg-weak);
}
.founder-photo .fig { margin-top: 10px; }
.founder-bio { color: var(--text); font-size: 14.5px; max-width: 66ch; }
.founder-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.founder-links a {
  color: var(--text-strong);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: var(--text-weaker);
  text-underline-offset: 3px;
}
.founder-links a:hover { background: var(--hl); text-decoration-color: transparent; }

/* ── 13. CTA band ──────────────────────────────────────────────────────── */
.cta {
  padding: clamp(30px, 5.4vw, 62px) clamp(20px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--bg-strong);   /* flips to near-white in dark theme */
  color: var(--text-inverted);
  text-align: center;
}
.cta-title {
  color: var(--text-inverted);
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
}
.cta-sub { margin-top: 14px; color: color-mix(in srgb, var(--text-inverted) 72%, transparent); font-size: 14px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.cta-foot { margin-top: 24px; color: color-mix(in srgb, var(--text-inverted) 60%, transparent); font-size: 12px; }

/* ── 14. FAQ ───────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--border-weak); }
.faq-item { border-bottom: 1px solid var(--border-weak); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  color: var(--text-strong);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 22px;
  text-align: center;
  color: var(--text-weak);
  font-size: 16px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq-item summary:hover { color: var(--text-strong); background: var(--bg-interactive-weak); }
.faq-item summary:hover::after { color: var(--text-strong); }
.faq-item summary { padding-inline: 6px; margin-inline: -6px; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 0 20px; max-width: 74ch; animation: fade-in 0.28s ease both; }
.faq-answer p { color: var(--text-weak); font-size: 13.5px; }
.faq-answer a { color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--text-weaker); text-underline-offset: 3px; }
.faq-answer a:hover { background: var(--hl); text-decoration-color: transparent; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-3px) } to { opacity: 1; transform: none } }

/* ── 15. Footer ────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border-weak); background: var(--bg-weak); }
.site-footer .shell { border-color: transparent; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 40px);
  padding-block: clamp(36px, 5vw, 56px);
}
.footer-blurb { margin-top: 16px; color: var(--text-weak); font-size: 12.5px; }
.footer-tag { margin-top: 14px; color: var(--text-weak); font-size: 11.5px; }
.footer-head {
  margin-bottom: 14px;
  color: var(--text-weak);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-col li + li { margin-top: 9px; }
.footer-col a,
.footer-col li { color: var(--text); font-size: 12.5px; }
.footer-col a:hover { color: var(--text-strong); background: var(--hl); }
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 18px;
  border-top: 1px solid var(--border-weak);
}
.footer-copy { color: var(--text-weak); font-size: 12px; display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.heart { fill: #d64545; flex: 0 0 auto; }
.footer-bar-tools { display: flex; gap: 18px; }
.footer-bar .link-btn { color: var(--text-weak); font-size: 12px; }
.footer-bar .link-btn:hover { color: var(--text-strong); }

/* ── 16. Mobile sticky CTA ─────────────────────────────────────────────── */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  gap: 8px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-weak);
}

/* ── 17. Modal ─────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: hsl(0 0% 0% / 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade-in 0.2s ease both;
}
.modal-panel {
  position: relative;
  width: min(460px, 100%);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: clamp(22px, 3.4vw, 30px);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  box-shadow: 0 24px 60px hsl(0 0% 0% / 0.28);
  animation: modal-in 0.24s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.99) } to { opacity: 1; transform: none } }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-weak);
  border-radius: 2px;
  background: transparent;
  color: var(--icon);
  cursor: pointer;
}
.modal-close:hover { background: var(--bg-weak-hover); color: var(--text-strong); }
.modal-title { font-size: 19px; padding-right: 34px; }
.modal-sub { margin-top: 8px; color: var(--text-weak); font-size: 13px; }

#contactForm { margin-top: 22px; }
.field + .field { margin-top: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-weak);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field .opt { text-transform: none; letter-spacing: 0; color: var(--text-weak); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-weak);
  border-radius: var(--radius);
  background: var(--bg-weak);
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 13.5px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field textarea { resize: vertical; min-height: 74px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-weaker); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text-weak);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--bg-interactive-weak);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--icon) 50%), linear-gradient(135deg, var(--icon) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field-error { margin-top: 12px; color: #d64545; font-size: 12px; }
.field-error:empty { display: none; }
#contactForm .btn-lg { margin-top: 20px; }
.form-foot { margin-top: 12px; color: var(--text-weak); font-size: 11.5px; text-align: center; }

/* ── 18. Reveal on scroll ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ── 19. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 320px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 74px; }
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 68px; }
}

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-5 { grid-template-columns: minmax(0, 1fr); }
  .section-head { margin-bottom: 26px; }
  .strip-inner { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .term-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 860px) {
  /* let the command wrap instead of scrolling sideways — nothing gets hidden */
  .term-line { white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 420px) {
  .term-copy-label { display: none; }
  .term-copy { padding: 6px 8px; }
}

/* ── 20. Motion / contrast preferences ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .strip, .mobile-cta, .term-actions, .modal { display: none !important; }
  body { color: #000; background: #fff; }
}
