/* === Design tokens — white page, cream boxes, flat purple === */
:root {
  --bg: #fff;
  --cover-cream: #fff;
  --bg-warm: #f4efe6;
  --surface: #faf7f0;
  --surface-2: #fff;
  --border: #e8e4dc;
  --border-strong: #d4d0c8;
  --text: #2a1f2e;
  --text-muted: #5e5c62;
  --purple: #952d90;
  /* Darker companion for gradients / hover */
  --purple-deep: #782876;
  --purple-light: rgba(149, 45, 144, 0.16);
  /* Solid tint = purple-light over cream; use for hovers (translucent --purple-light vanishes on dark purple hero) */
  --menu-hover-bg: color-mix(in srgb, var(--purple) 16%, var(--surface));
  --teal: #4f8594;
  --peach: #c49a7a;
  --link: #8a2a85;
  --link-hover: #752573;
  --focus: rgba(149, 45, 144, 0.3);
  --cream-ink: #faf9f7;
  /* Syne: titles + hero tagline. DM Sans: body + UI */
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-tagline: "Syne", system-ui, sans-serif;
  /* Nav + buttons (same size) */
  --font-size-ui: 0.9375rem;
  --layout-pad-x: 24px;
  --layout-max: 960px;
  /* Shared top inset: fixed ☰ + first line of titles line up */
  --layout-pad-top: 48px;
  /* Hit target + icon (aligned with first line of page titles) */
  --nav-burger-hit: 48px;
  --nav-burger-icon: 28px;
  /* Reserve width so hero headline doesn’t run under fixed ☰ */
  --hero-burger-slot: calc(var(--nav-burger-hit) + 8px);
}

@media (max-width: 768px) {
  :root {
    --layout-pad-top: 48px;
    --layout-pad-x: 20px;
    --hero-burger-slot: calc(var(--nav-burger-hit) + 12px);
  }
}

@media (max-width: 480px) {
  :root {
    --layout-pad-top: 44px;
    --layout-pad-x: 16px;
    --hero-burger-slot: calc(var(--nav-burger-hit) + 12px);
  }
}

/* === Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Reserve space for scrollbar so layout doesn't shift when navigating between
   short pages (no scrollbar) and long pages (scrollbar). Stops layout shift when the scrollbar appears.
   Responsive: scrollbar-gutter everywhere (safe on mobile); overflow fallback only on
   viewports where scrollbars typically take layout space (desktop). */
html {
  scrollbar-gutter: stable;
  font-size: 106.25%; /* ~17px from 16px default; scales rem-based type */
}
@supports not (scrollbar-gutter: stable) {
  @media (min-width: 768px) {
    html {
      overflow-y: scroll; /* fallback on desktop only; mobile often has overlay scrollbar */
    }
  }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  /* Block layout so fixed ☰ is not a flex item (avoids fixed behaving like scroll in some browsers) */
  display: block;
  margin: 0;
}

/* Main + footer column; footer pinned to bottom on short pages */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}
img { max-width: 100%; height: auto; }

h1, h2, .section-title {
  font-family: var(--font-display);
}

/* === Layout === */
.container {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 var(--layout-pad-x);
}

.page {
  padding-top: var(--layout-pad-top);
  padding-bottom: 48px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }
.grid-2 > * { display: flex; }
.grid-2 > * > .card { flex: 1; }
.card-stack { display: flex; flex-direction: column; gap: 20px; }
.card-list { display: flex; flex-direction: column; gap: 16px; }

/* === Nav: header is in-flow height 0; ☰ is fixed to the viewport (not a transformed ancestor) === */
.nav-float {
  position: static;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.nav-float-inner {
  position: relative;
  height: 0;
  overflow: visible;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0;
  pointer-events: none;
}

/* Button + dropdown: pinned with top/right so it cannot scroll with the page */
.nav-float-menu {
  position: fixed;
  top: var(--layout-pad-top);
  right: calc(max(0px, (100vw - var(--layout-max)) / 2) + var(--layout-pad-x));
  left: auto;
  z-index: 999;
  pointer-events: auto;
  width: max-content;
}

/* ☰ On hero (purple): light strokes; inner pages: ink */
.nav-float .hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--nav-burger-hit);
  height: var(--nav-burger-hit);
  min-width: var(--nav-burger-hit);
  min-height: var(--nav-burger-hit);
  padding: 0;
  border: none;
  border-radius: 0;
  cursor: pointer;
  color: #fff;
  background: transparent;
}

.nav-float .hamburger:hover {
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
}

.nav-float .hamburger:focus-visible {
  outline: 2px solid var(--cream-ink);
  outline-offset: 3px;
}

body:not(:has(.hero--cover)) .nav-float .hamburger {
  color: var(--text);
  box-shadow: none;
}

body:not(:has(.hero--cover)) .nav-float .hamburger:hover {
  color: var(--purple-deep);
  background: transparent;
}

body:not(:has(.hero--cover)) .nav-float .hamburger:focus-visible {
  outline: 2px solid var(--purple-deep);
  outline-offset: 3px;
}

.nav-float .hamburger svg {
  width: var(--nav-burger-icon);
  height: var(--nav-burger-icon);
}

/* Same font metrics as menu; outline buttons match menu colors — purple primaries override below */
.site-nav a,
.btn {
  font-family: var(--font-body);
  font-size: var(--font-size-ui);
  font-weight: 500;
  line-height: 1.6;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s, border-color 0.15s;
}

.site-nav {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  left: auto;
  z-index: 1000;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  max-width: min(280px, calc(100vw - 48px));
  width: max-content;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(250, 247, 240, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(42, 31, 46, 0.12);
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 0;
  text-decoration: none;
  color: var(--text-muted);
}

.site-nav a:hover,
.site-nav a.active,
.btn-outline:hover {
  background: var(--menu-hover-bg);
  color: var(--text);
  text-decoration: none;
}

.site-nav a.active {
  font-weight: 600;
  color: var(--purple-deep);
}

.site-nav.open {
  display: flex;
}

/* === Hero — Future Shock (1970) cover: flat purple / cream, sharp diagonal === */
.hero--cover {
  position: relative;
  overflow: hidden;
  background: var(--cover-cream);
  min-height: min(52vh, 520px);
}

/* Purple field: steep slash + saw teeth (desktop keeps full deckle) */
.hero--cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--purple);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 0%,
    82% 64%,
    66% 34%,
    48% 97%,
    28% 76%,
    0 100%,
    0 0
  );
}

/* iPad / tablet / narrow windows: one downward “tooth” (cleaner than multi-point deckle) */
@media (max-width: 1024px) {
  .hero--cover::before {
    clip-path: polygon(
      0 0,
      100% 0,
      100% 0%,
      100% 72%,
      52% 96%,
      0 72%,
      0 0
    );
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: var(--layout-pad-top) var(--layout-pad-x) 44px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.hero-text {
  flex: 1;
  max-width: 36rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  /* Same line box height as ☰ so first line aligns with the nav row */
  line-height: var(--nav-burger-hit);
  margin-bottom: 14px;
  color: var(--cream-ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ☰ icon is vertically centered in 48px button; nudge title to match strokes */
.hero--cover .hero-text h1 {
  margin-top: 10px;
}

.hero-brand {
  color: inherit;
  letter-spacing: 0.03em;
}

.hero-tagline {
  font-family: var(--font-tagline);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 28px;
  margin-top: 0;
  letter-spacing: -0.02em;
}

/* Subtitle under the title: white on the purple field */
.hero--cover .hero-tagline {
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 44px;
}

/* Hero: outline = menu-style; primary = light text on purple, deeper purple hover (not menu-style) */
.hero--cover .btn-primary {
  background: var(--purple);
  box-shadow: none;
  color: var(--cream-ink);
  border: 2px solid var(--cream-ink);
}

.hero--cover .btn-primary:hover {
  background: var(--purple-deep);
  color: var(--cream-ink);
  border-color: var(--purple-deep);
}

.hero--cover .btn-outline {
  background: var(--surface);
  color: var(--text-muted);
  border: none;
}

.hero--cover .btn-outline:hover {
  background: var(--menu-hover-bg);
  color: var(--text);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 0;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

/* Beat global a:hover { text-decoration: underline } */
.btn:hover {
  text-decoration: none;
}

/* Native buttons: reset font so our .btn rules win (don’t set font-size here — it would beat .btn-sm) */
button.btn,
input[type="submit"].btn,
input[type="button"].btn {
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(180deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: var(--cream-ink);
  box-shadow: 0 2px 10px rgba(149, 45, 144, 0.28);
}
.btn-primary:hover {
  background: var(--purple-deep);
  color: var(--cream-ink);
  box-shadow: 0 2px 10px rgba(149, 45, 144, 0.22);
}
.btn-outline {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--menu-hover-bg);
}
.btn.btn-sm {
  padding: 6px 14px;
  font-size: 0.875rem;
}
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* === Cards === */
.card {
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: 0;
  padding: 20px;
  transition: transform .15s;
}

.card-hover:hover { transform: translateY(-2px); }

/* === Shared flex patterns === */
.flex-center { display: flex; align-items: center; }
.flex-center-gap { display: flex; align-items: center; gap: 12px; }
.flex-center-gap-sm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Icon boxes === */
.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple);
  font-size: 18px;
}

.icon-box--social .social-svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.icon-box-lg {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

/* === Typography === */
/* Line box height matches ☰ (48px) so titles share the same vertical band as the button */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: var(--nav-burger-hit);
  margin-top: 0;
  margin-bottom: 8px;
}
.section-desc { color: var(--text-muted); margin-bottom: 32px; font-size: 1rem; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.9375rem; }
.text-xs { font-size: 0.8125rem; }
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.heading-card { font-size: 1.1rem; }
.heading-md { font-size: 1.25rem; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Spacing === */
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-2 { margin-top: 4px; }
.mt-4 { margin-top: 8px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.pt-2 { padding-top: 8px; }

/* === Avatars & badges === */
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.avatar-p { background: var(--purple-light); color: var(--purple); }
.avatar-j { background: rgba(196, 154, 122, 0.22); color: var(--purple-deep); }

.badge-sm {
  display: inline-block;
  background: var(--bg-warm);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 0;
}

.badge-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 0.7rem;
}

.badge-outline {
  display: inline-block;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 0;
}

.badge-row { display: flex; gap: 4px; flex-wrap: wrap; }

/* === Feature rows === */
.feature-row { display: flex; align-items: start; gap: 12px; }
.feature-content { flex: 1; min-width: 0; }

/* === Brand / about card (replaces giants card) === */
.brand-card-inner {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.brand-card-deco {
  width: 8px;
  min-height: 100px;
  border-radius: 0;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    var(--purple) 0%,
    var(--teal) 45%,
    var(--peach) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(42, 31, 46, 0.08);
}

.brand-card-text { flex: 1; min-width: 0; }

/* === Forms === */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.9375rem; font-weight: 500; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-family: inherit;
  background: var(--menu-hover-bg);
  color: var(--text);
  transition: box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
textarea:focus {
  outline: none;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

textarea { resize: vertical; min-height: 100px; }
textarea.short { min-height: 80px; }

/* === Lists & checklists === */
.check-item { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--text-muted); }
.check-box { width: 16px; height: 16px; border: 1px solid var(--border); border-radius: 0; flex-shrink: 0; }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 8px;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Steps === */
.step { display: flex; align-items: center; gap: 12px; }

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-shrink: 0;
  font-family: ui-monospace, monospace;
}

.step-label { font-size: 0.9375rem; font-weight: 500; }
.step-time { font-size: 0.8125rem; color: var(--text-muted); }

/* === Social cards === */
.social-card {
  display: flex;
  align-items: start;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.social-card:hover { text-decoration: none; }
.social-link { text-decoration: none; color: inherit; }
.social-link:hover { text-decoration: none; }
.external-icon { font-size: 12px; }

/* === Footer === */
.footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 20px 0 24px;
  background: var(--bg);
}

/* Wide: legal left, tagline right */
.footer-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.footer-legal-block {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
  flex: 1;
  min-width: min(100%, 12rem);
}

.footer-legal-line {
  display: inline;
}

.footer-tagline {
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
  .footer-legal-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    flex: none;
  }
  .footer-legal-line {
    display: block;
  }
  .footer-tagline {
    text-align: center;
  }
}

/* === Misc === */
.empty-state { text-align: center; padding: 40px 24px; }
.empty-state .icon-box { margin: 0 auto 16px; }
.empty-state p { max-width: 400px; margin-left: auto; margin-right: auto; }
.success-box { text-align: center; padding: 48px 24px; }

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  color: var(--purple);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-indent { padding-left: 52px; }
.link-list { display: flex; gap: 6px; flex-wrap: wrap; }
.home-section-flush { padding-bottom: 64px; }
section.hero + section { padding-top: 24px; }
.clickable { cursor: pointer; }

/* === Responsive: tablet and below === */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero--cover {
    min-height: min(60vh, 580px);
  }
  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 20px;
    padding: var(--layout-pad-top) var(--layout-pad-x) 36px;
  }
  .hero-text {
    max-width: 100%;
    width: 100%;
    padding-right: var(--hero-burger-slot);
    box-sizing: border-box;
  }
  .hero-text p {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-text h1 {
    font-size: clamp(1.95rem, 6vw, 2.55rem);
    line-height: var(--nav-burger-hit);
    text-align: left;
  }
  /* h1 > tagline > .btn (~0.9375rem) */
  .hero--cover .hero-tagline {
    margin-bottom: 28px;
    font-size: clamp(1.1875rem, 4.5vw, 1.5rem);
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  .btn-group {
    justify-content: flex-start;
    gap: 12px;
  }
  .brand-card-inner { flex-direction: column; }
  .brand-card-deco {
    width: 100%;
    height: 6px;
    min-height: 0;
  }
  .section-indent { padding-left: 0; }
  .hero--cover .hero-text h1 {
    margin-top: 4px;
  }
}

/* Narrow phones: a bit more hero height + slightly deeper purple at center */
@media (max-width: 480px) {
  .hero--cover {
    min-height: min(64vh, 620px);
  }
  /* Narrow phones: slightly shallower notch so the tooth doesn’t read too deep */
  .hero--cover::before {
    clip-path: polygon(
      0 0,
      100% 0,
      100% 0%,
      100% 70%,
      50% 94%,
      0 70%,
      0 0
    );
  }
  .hero-inner {
    padding: var(--layout-pad-top) var(--layout-pad-x) 32px;
  }
  .hero-text h1 {
    font-size: clamp(2.05rem, 6.5vw, 2.75rem);
    line-height: var(--nav-burger-hit);
  }
  .hero--cover .hero-tagline {
    font-size: clamp(1.25rem, 4.75vw, 1.6rem);
  }
}

/* === Responsive: phone === */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: start; }
}

/* === Markdown posts (Eleventy) === */
.post-body { color: var(--text); line-height: 1.65; }
.post-body p { margin-bottom: 1rem; }
.post-body h2 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.5rem; font-family: var(--font-display); }
.post-body h3 { font-size: 1.05rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
.post-body ul, .post-body ol { margin: 0 0 1rem 1.25rem; }
.post-body li { margin-bottom: 0.35rem; }
.post-body a { text-decoration: underline; }
.post-body code { font-size: 0.9em; background: var(--bg-warm); padding: 0.1em 0.35em; border-radius: 0; }
