/* ==========================================================================
   iProMentor — editorial light-first design system
   Tokens are defined once on :root (light). Dark mode redefines only the
   values, under both the media query and the explicit [data-theme] attribute.
   ========================================================================== */

:root {
  /* Surfaces */
  --paper: #fcfcfa;
  --surface: #ffffff;
  --surface-2: #f6f6f3;
  --surface-3: #efefea;

  /* Text */
  --ink: #14141a;
  --ink-2: #3d3d48;
  --muted: #70707e;

  /* Lines */
  --rule: #e4e4de;
  --rule-strong: #d2d2ca;

  /* Accent */
  --accent: #0f766e;
  --accent-hover: #0b5d57;
  --accent-soft: #e1f2ef;
  --accent-line: #9fd3cb;
  --accent-text: #ffffff;

  /* Feedback */
  --ok: #157a52;
  --ok-soft: #e6f4ee;
  --err: #b42318;
  --err-soft: #fdeceb;

  /* Buttons */
  --btn-ink: #14141a;
  --btn-ink-hover: #2c2c38;
  --btn-ink-text: #ffffff;

  --shadow-sm: 0 1px 2px rgba(20, 20, 26, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(20, 20, 26, 0.18);

  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 4px;

  --font-display: 'Instrument Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0a0a0d;
    --surface: #101015;
    --surface-2: #16161d;
    --surface-3: #1d1d26;

    --ink: #f4f4f2;
    --ink-2: #c6c6d0;
    --muted: #8b8b99;

    --rule: #242430;
    --rule-strong: #34343f;

    --accent: #5eead4;
    --accent-hover: #8af5e3;
    --accent-soft: #0c2a28;
    --accent-line: #1f5048;
    --accent-text: #05231f;

    --ok: #4ade9f;
    --ok-soft: #10231c;
    --err: #ff8b80;
    --err-soft: #2a1513;

    --btn-ink: #f4f4f2;
    --btn-ink-hover: #ffffff;
    --btn-ink-text: #0a0a0d;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, 0.7);

    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --paper: #0a0a0d;
  --surface: #101015;
  --surface-2: #16161d;
  --surface-3: #1d1d26;

  --ink: #f4f4f2;
  --ink-2: #c6c6d0;
  --muted: #8b8b99;

  --rule: #242430;
  --rule-strong: #34343f;

  --accent: #5eead4;
  --accent-hover: #8af5e3;
  --accent-soft: #0c2a28;
  --accent-line: #1f5048;
  --accent-text: #05231f;

  --ok: #4ade9f;
  --ok-soft: #10231c;
  --err: #ff8b80;
  --err-soft: #2a1513;

  --btn-ink: #f4f4f2;
  --btn-ink-hover: #ffffff;
  --btn-ink-text: #0a0a0d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Accent variant: indigo
   Teal is the brand. Set data-accent="indigo" on <html> to fall back to the
   original indigo. These blocks must stay AFTER
   the theme blocks above — they carry the same specificity, so source order
   decides — and the dark rules are guarded exactly like the theme rules.
   -------------------------------------------------------------------------- */

:root[data-accent='indigo'] {
  --accent: #4338ca;
  --accent-hover: #3730a3;
  --accent-soft: #eeedfb;
  --accent-line: #c7c3f2;
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root[data-accent='indigo']:not([data-theme='light']) {
    --accent: #8b87f5;
    --accent-hover: #a6a2ff;
    --accent-soft: #1a1832;
    --accent-line: #3b3568;
    --accent-text: #0a0a0d;
  }
}

:root[data-theme='dark'][data-accent='indigo'] {
  --accent: #8b87f5;
  --accent-hover: #a6a2ff;
  --accent-soft: #1a1832;
  --accent-line: #3b3568;
  --accent-text: #0a0a0d;
}


/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* Sticky header height + breathing room for anchor jumps */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'cv05' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

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

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

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Editorial shell — vertical hairlines run the full page, sections are
   separated by horizontal hairlines. This is the page's main visual signature.
   -------------------------------------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  border-inline: 1px solid var(--rule);
  background: var(--paper);
}

.section {
  position: relative;
  border-bottom: 1px solid var(--rule);
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
}

/* Flush sections end on their own grid, so the section's bottom rule doubles
   as the grid's last line instead of floating below a gap. */
.section--flush {
  padding-inline: 0;
  padding-bottom: 0;
}

@media (max-width: 800px) {
  .shell { border-inline: 0; }
}

/* Corner ticks at section boundaries */
.section::before,
.section::after {
  content: '+';
  position: absolute;
  bottom: -0.68rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1;
  color: var(--rule-strong);
  pointer-events: none;
  z-index: 2;
}
.section::before { left: -0.42rem; }
.section::after { right: -0.42rem; }

@media (max-width: 800px) {
  .section::before,
  .section::after { display: none; }
}

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
}

.lede {
  margin-top: 1.125rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--muted);
  max-width: 40rem;
}

.num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--btn-ink);
  color: var(--btn-ink-text);
}
.btn--primary:hover { background: var(--btn-ink-hover); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--surface-2);
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-text);
}
.btn--accent:hover { background: var(--accent-hover); }

.btn--block { width: 100%; }

.btn .arrow {
  transition: transform 0.18s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  padding-block: 0.5rem;
}
.link-arrow .arrow { transition: transform 0.18s ease; }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper); /* fallback for engines without color-mix() */
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.header__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 4.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-inline: 1px solid var(--rule);
}

@media (max-width: 800px) {
  .header__inner { border-inline: 0; }
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-right: auto;
}

.brand {
  align-items: center;
  gap: 0.5rem;
}

/* Logo marks. The default (no data-logo attribute) is the wordmark alone;
   set data-logo="dot" | "chevron" | "slash" on <html> to show a mark. */
.brand__mark { display: none; align-items: center; justify-content: center; flex: none; }
.brand__i { color: var(--accent); }

:root[data-logo='dot'] .brand__mark--dot,
:root[data-logo='chevron'] .brand__mark--chevron,
:root[data-logo='slash'] .brand__mark--slash { display: inline-flex; }

.brand__mark--dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.brand__mark--chevron { color: var(--accent); }

.brand__mark--slash {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}

/* The slash already carries side bearings of its own, so it needs less gap
   than a geometric mark would. */
:root[data-logo='slash'] .brand { gap: 0.4375rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.icon-btn:hover {
  border-color: var(--rule-strong);
  color: var(--ink);
  background: var(--surface-2);
}

/* Theme toggle: show the icon for the mode you would switch TO. */
.icon-sun { display: none; }
.icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-sun { display: block; }
  :root:not([data-theme='light']) .icon-moon { display: none; }
}
:root[data-theme='dark'] .icon-sun { display: block; }
:root[data-theme='dark'] .icon-moon { display: none; }
:root[data-theme='light'] .icon-sun { display: none; }
:root[data-theme='light'] .icon-moon { display: block; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav,
  .header__actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  padding: 1rem var(--gutter) 1.5rem;
}
.mobile-menu[data-open='true'] { display: block; }

.mobile-menu a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.mobile-menu .btn { margin-top: 1.25rem; }

@media (min-width: 961px) {
  .mobile-menu { display: none !important; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 5.5rem);
}

/* Faint dot grid, faded out towards the edges so it never competes with text */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--rule-strong) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: -22rem;
  left: 50%;
  width: 52rem;
  height: 32rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  opacity: 0.85;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.125rem);
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lede {
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.hero__trust span::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  flex: none;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.75rem 0.3125rem 0.625rem;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1.75rem;
}

.pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { opacity: 0.8; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* Hero side panel — the offer, styled like a document */
.offer {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.offer__head {
  padding: 1.375rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-2);
}

.offer__head h2 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.offer__head p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.offer__body { padding: 1.5rem; }

.offer__list { display: grid; gap: 0.875rem; }

.offer__list li {
  display: grid;
  grid-template-columns: 1.125rem 1fr;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.offer__list svg {
  margin-top: 0.28rem;
  color: var(--accent);
}

.offer__foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.offer__note {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Signals (the "sound familiar?" section)
   -------------------------------------------------------------------------- */

/* Cell separators are drawn by a 1px grid gap over a rule-coloured container,
   so the outer edges never double up with the shell's own hairlines. */
.signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 1040px) {
  .signals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .signals { grid-template-columns: 1fr; }
}

.signal {
  padding: 1.75rem;
  background: var(--surface);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.signal__mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  flex: none;
  margin-top: 0.3rem;
}

.signal p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.signals__cta {
  grid-column: 1 / -1;
  padding: 1.5rem 1.75rem;
  background: var(--surface-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Services — bordered grid cells, not floating cards
   -------------------------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
}

@media (max-width: 1040px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .services { grid-template-columns: 1fr; }
}

.service {
  padding: 2rem 1.875rem 1.875rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease;
}

.service:hover { background: var(--surface-2); }

.service__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
}

.service h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.5rem;
}

.service__promise {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.service__list {
  display: grid;
  gap: 0.625rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

.service__list li {
  display: grid;
  grid-template-columns: 0.75rem 1fr;
  gap: 0.625rem;
  font-size: 0.9062rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.service__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: 0.55rem;
  background: var(--accent);
  flex: none;
}

.service__meta {
  margin-top: auto;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.service__meta span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.375rem;
}

/* --------------------------------------------------------------------------
   Approach
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2.25rem 2rem 2rem 0;
  border-top: 2px solid var(--ink);
  margin-right: 2rem;
}

.step:last-child { margin-right: 0; }

@media (max-width: 860px) {
  .step { margin-right: 0; }
}

.step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.step h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.step__when {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.step p {
  font-size: 0.9688rem;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
}

.step__out {
  padding-top: 1.125rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}
.step__out strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Engagements / pricing
   -------------------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1040px) {
  .plans { grid-template-columns: 1fr; max-width: 32rem; }
}

.plan {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.875rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.plan:hover { border-color: var(--rule-strong); }

.plan--featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
  position: relative;
}

.plan__tag {
  position: absolute;
  top: -0.6875rem;
  left: 1.875rem;
  padding: 0.1875rem 0.625rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.plan__for {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  min-height: 2.6rem;
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

.plan__amount {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.028em;
}

.plan__unit {
  font-size: 0.875rem;
  color: var(--muted);
}

.plan__list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.plan__list li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.6875rem;
  font-size: 0.9062rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.plan__list svg { margin-top: 0.3rem; color: var(--accent); }

.plan .btn { margin-top: auto; }

.plans__note {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 44rem;
}

/* --------------------------------------------------------------------------
   Principles
   -------------------------------------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
}

@media (max-width: 1040px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .principles { grid-template-columns: 1fr; }
}

.principle {
  padding: 1.75rem;
  background: var(--surface);
}

.principle h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.principle h3 svg { color: var(--accent); flex: none; }

.principle p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

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

.faq__list {
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }

.faq summary .chev {
  flex: none;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary .chev { transform: rotate(45deg); }

.faq__answer {
  padding: 0 0 1.5rem;
  font-size: 0.9688rem;
  color: var(--ink-2);
  max-width: 44rem;
}
.faq__answer p + p { margin-top: 0.875rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

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

.contact .section-head { margin-bottom: 0; }

.contact__direct {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact__row svg { color: var(--accent); flex: none; }

.contact__row span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.125rem;
}

.contact__row a,
.contact__row strong {
  font-size: 0.9688rem;
  font-weight: 500;
}
.contact__row a:hover { color: var(--accent); }

/* Form */

.form {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1.125rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.4375rem;
}

.field label .opt {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6875rem 0.8125rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2370707e' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8125rem center;
  padding-right: 2.25rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--err);
}

.field__error {
  display: none;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--err);
}
.field__error[data-show='true'] { display: block; }

/* Honeypot — hidden from humans and from assistive tech, visible to bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.form__fine {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.form__status {
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9062rem;
  line-height: 1.5;
}
.form__status[data-state='error'] {
  display: block;
  background: var(--err-soft);
  color: var(--err);
  border: 1px solid var(--err);
  border-color: color-mix(in srgb, var(--err) 30%, transparent);
}
.form__status[data-state='success'] {
  display: block;
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid var(--ok);
  border-color: color-mix(in srgb, var(--ok) 30%, transparent);
}

.form__success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form__success[data-show='true'] { display: block; }
.form__success svg { margin: 0 auto 1.25rem; color: var(--ok); }
.form__success h3 { font-size: 1.25rem; margin-bottom: 0.625rem; }
.form__success p { color: var(--muted); font-size: 0.9375rem; }

.form[data-submitted='true'] .form__fields { display: none; }

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn[data-loading='true'] { pointer-events: none; opacity: 0.75; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__about {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 24rem;
  margin-top: 1rem;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer__links { display: grid; gap: 0.625rem; }

.footer__links a {
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: color 0.15s ease;
}
.footer__links a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer__bottom nav {
  display: flex;
  gap: 1.25rem;
}
.footer__bottom a:hover { color: var(--ink); }

.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  box-shadow: var(--shadow-md);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.to-top[data-show='true'] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); border-color: var(--accent-line); }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal[data-visible='true'] { opacity: 1; transform: none; }

.reveal:nth-child(2) { transition-delay: 60ms; }
.reveal:nth-child(3) { transition-delay: 120ms; }
.reveal:nth-child(4) { transition-delay: 180ms; }
.reveal:nth-child(5) { transition-delay: 240ms; }
.reveal:nth-child(6) { transition-delay: 300ms; }

/* No JS: never leave content invisible. */
.no-js .reveal { opacity: 1; transform: none; }

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

@media print {
  .header, .to-top, .hero__grid, .hero__glow { display: none; }
  .shell { border: 0; }
}

/* --------------------------------------------------------------------------
   Flush-section corrections
   -------------------------------------------------------------------------- */

.section--flush > .section-head {
  padding-inline: var(--gutter);
}



/* Failsafe if main.js fails to load — see theme.js */
.reveal-fallback .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Legal pages (/privacy, /terms)
   -------------------------------------------------------------------------- */

.legal {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(4rem, 8vw, 6rem);
  max-width: 48rem;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.legal__back:hover { color: var(--accent); }

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.legal__updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.875rem;
}

.legal p,
.legal li {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.7;
}

.legal p + p { margin-top: 1rem; }

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.875rem;
  display: grid;
  gap: 0.5rem;
}

.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.legal__note {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 0.9375rem;
}
