/* =========================================================
   Hery Zo — heryzo.org
   Design system: Ink / Panel / Signal gradient / Paper / Muted
   ========================================================= */

:root {
  --ink: #0B0D0C;
  --panel: #141716;
  --panel-border: rgba(243, 245, 243, 0.08);
  --signal-1: #6EE7B7;
  --signal-2: #22D3EE;
  --paper: #F3F5F3;
  --muted: #8B9490;
  --muted-strong: #A3ACA8;

  --gradient: linear-gradient(90deg, var(--signal-1), var(--signal-2));

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  will-change: transform;
}

.btn-primary {
  background: var(--gradient);
  color: #06110C;
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.35), 0 12px 30px -8px rgba(34, 211, 238, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: rgba(243, 245, 243, 0.28);
  transform: translateY(-2px);
}

/* =========================================================
   Header / Nav
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 13, 12, 0.72);
  border-bottom: 1px solid var(--panel-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
}

.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--paper);
}

/* =========================================================
   Pending / coming-soon states — used wherever real video or
   image assets don't exist yet, instead of stock filler
   ========================================================= */

.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.45em 0.9em;
  background: rgba(243, 245, 243, 0.03);
  text-align: center;
}

/* =========================================================
   Scroll Scrubber — signature element
   ========================================================= */

.scrubber {
  position: relative;
  height: 2px;
  background: var(--panel-border);
  border-radius: 2px;
}

.scrubber .ticks {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scrubber .ticks span {
  width: 1px;
  height: 8px;
  background: rgba(243, 245, 243, 0.14);
}

.scrubber .playhead {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--signal-2);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16), 0 0 16px rgba(34, 211, 238, 0.6);
  transform: translateX(0);
}

.hero-scrubber {
  width: 180px;
}

.section-divider {
  padding: 2.5rem 0;
}

.section-divider .scrubber {
  max-width: var(--container);
  margin: 0 auto;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(110, 231, 183, 0.22), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(34, 211, 238, 0.20), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  transform-origin: center;
  will-change: transform;
  animation: mesh-drift 22s ease-in-out infinite;
}

@keyframes mesh-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(1.5%, 1%, 0) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.75rem);
  letter-spacing: -0.01em;
}

.hero-copy h1 .line {
  display: block;
  overflow: hidden;
}

.hero-copy h1 .line span {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-copy .subhead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.hero-frame-wrap {
  position: relative;
  justify-self: center;
}

.hero-frame-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 36px 4px rgba(110, 231, 183, 0.4);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  animation: frame-breathe 4.5s ease-in-out infinite;
}

@keyframes frame-breathe {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-frame-wrap::after {
    animation: none;
    opacity: 0;
  }
}

.mock-frame {
  width: min(480px, 90vw);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--panel), #0d0f0e 60%);
  border: 1px solid var(--panel-border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.mock-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(110, 231, 183, 0.16), transparent 55%);
}

.mock-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.mock-frame-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* =========================================================
   Click-to-load video thumbnail — currently unused pending
   real case-study footage, kept in place so wiring a real
   video back in later is a markup-only change (no new CSS).
   No contact with YouTube until the visitor clicks play.
   ========================================================= */

.video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: inherit;
  background: none;
  cursor: pointer;
  display: block;
}

/* Fills the same absolutely-positioned slot as .video-embed above —
   applied to the real <iframe> that replaces the button on click
   (see wireClickToLoadVideos in js/main.js). Without this the iframe
   falls back to its default inline size and breaks the card/frame. */
.video-embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
}

.video-embed-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.video-embed-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(11, 13, 12, 0.55);
  border: 1px solid rgba(243, 245, 243, 0.3);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.video-embed-play svg {
  width: 17px;
  height: 17px;
  fill: var(--paper);
  margin-left: 2px;
}

.video-embed:hover .video-embed-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(11, 13, 12, 0.72);
}

/* =========================================================
   Video lightbox — grid-card videos pop out here on click
   instead of playing inline in the small card. Full screen on
   mobile, a large centered player on wider screens.
   ========================================================= */

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.video-lightbox[hidden] {
  display: none;
}

.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 6, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.video-lightbox-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 1040px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
}

.video-lightbox-frame {
  position: absolute;
  inset: 0;
}

.video-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(243, 245, 243, 0.4);
  background: rgba(0, 0, 0, 0.75);
  color: var(--paper);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
}

.video-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.92);
}

body.video-lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .video-lightbox {
    padding: 0;
  }

  .video-lightbox-content {
    width: 100vw;
    height: 100vh;
    max-height: 100dvh;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .video-lightbox-close {
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
  }
}

/* =========================================================
   Socratic block — shared by every question/evidence section
   (Problem, Complexity, Continuity, Capacity, Why-not-DIY)
   ========================================================= */

.socratic {
  text-align: center;
}

.socratic-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: center;
}

/* Wider column for sections whose content is a diagram, not
   prose — lets it use the room a 780px reading column won't give it. */
.socratic-inner--wide {
  max-width: 960px;
}

.socratic blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.25;
}

.socratic blockquote .word {
  display: inline-block;
  will-change: transform, opacity;
}

.socratic-context {
  color: var(--muted-strong);
  font-size: 1.1rem;
  line-height: 1.7;
  width: 100%;
  max-width: 60ch;
  text-align: left;
}

.socratic-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 60ch;
}

.question-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--muted-strong);
  font-size: 1.1rem;
  line-height: 1.7;
  width: 100%;
  max-width: 60ch;
  text-align: left;
}

/* Breather — the shortest Socratic section (a single-sentence
   pause before Pricing). Leans into being small instead of just
   looking sparse next to the longer sections around it. */
.socratic--breather {
  padding: clamp(5.5rem, 12vw, 10rem) 0;
}

.socratic--breather blockquote {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
}

.socratic--breather .socratic-context {
  text-align: center;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  line-height: 1.5;
}

/* Glow — a faint ambient version of the hero's signal-color mesh,
   used on the opening and closing Socratic beats (Problem,
   Why-not-DIY) so the scroll has rhythm instead of flat black
   the whole way down. */
.socratic--glow {
  position: relative;
  overflow: hidden;
}

.socratic--glow::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -10%;
  right: -10%;
  height: 560px;
  background: radial-gradient(55% 55% at 25% 15%, rgba(110, 231, 183, 0.14), transparent 70%),
              radial-gradient(45% 45% at 80% 10%, rgba(34, 211, 238, 0.12), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.socratic--glow .socratic-inner {
  position: relative;
  z-index: 1;
}

.stat-row {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat .num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .num.text {
  font-size: 1.05rem;
}

.stat .label {
  font-size: 0.82rem;
  color: var(--muted);
}

/* =========================================================
   One product, many ways — format grid
   ========================================================= */

.section-foot {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 1.05rem;
  text-align: center;
}

.possibilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.possibility-card {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--panel), #0d0f0e 70%);
  border: 1px solid var(--panel-border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1rem;
  text-align: center;
}

.possibility-card .format-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}

/* Video-capable state, applied by js/media.js once a real clip
   exists for a given format — see POSSIBILITIES in that file. */
.possibility-card--has-video {
  justify-content: flex-start;
  padding: 0.75rem;
}

.possibility-media {
  position: relative;
  width: 100%;
  flex: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.possibility-card--has-video .format-name {
  margin-top: 0.6rem;
}

.funnel-stage-group {
  margin-bottom: 2rem;
}

.funnel-stage-group:last-of-type {
  margin-bottom: 0;
}

.funnel-stage-note {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* =========================================================
   More complexity — production chain diagram
   ========================================================= */

.chain-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.4rem;
  max-width: 900px;
}

.chain-item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.5em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--paper);
}

.chain-arrow {
  color: var(--muted);
}

/* =========================================================
   Case study component — shared by the featured case studies
   grid, the magnesium case study and the correction case study.
   Two states: full (all fields populated) and compact (grid
   card). Media areas use the pending state until real footage
   exists — see .video-embed above for wiring a real one in.
   ========================================================= */

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.case-study-card {
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  position: relative;
}

.case-study-card--compact {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.case-study-card--compact h3 {
  font-size: 1.15rem;
}

.case-study-card--compact p {
  color: var(--muted);
  font-size: 1rem;
}

.case-study-card--compact.pending {
  border-style: dashed;
}

.case-study-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--signal-1);
  text-decoration: none;
  margin-top: auto;
}

.case-study-card--full {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.case-study-card--full h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.case-study-media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.case-study-media.media-pending {
  background: linear-gradient(160deg, var(--panel), #0d0f0e 70%);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Multiple clips from the same shoot (e.g. several hooks/environments
   for one case study) — a grid of vertical clips instead of a single
   16:9 slot. Each .case-study-video-item pops out to the lightbox on
   click, same as .possibility-media (see wireClickToLoadVideos). */
.case-study-video-gallery-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.case-study-video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.case-study-video-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(160deg, var(--panel), #0d0f0e 70%);
  border: 1px solid var(--panel-border);
}

.case-study-video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0.5rem 0.6rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--paper);
  background: linear-gradient(to top, rgba(5, 6, 6, 0.85), rgba(5, 6, 6, 0));
  pointer-events: none;
}

.case-study-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-1);
  margin-bottom: 0.4rem;
}

.case-study-field p {
  color: var(--muted);
}

.case-study-field ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.case-study-disclaimer {
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--panel-border);
  padding-top: 1.25rem;
}

.case-study-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.case-study-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
}

/* =========================================================
   Principles / capabilities — shared Q&A tile grid, reused
   verbatim by the "what we take off your plate" section
   ========================================================= */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.principle-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  position: relative;
}

.principle-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.principle-card p {
  color: var(--muted);
  font-size: 1rem;
}

/* =========================================================
   Pricing
   ========================================================= */

.pricing-framing {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.price-card {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.price-card.featured {
  border-color: rgba(110, 231, 183, 0.35);
  box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.12), 0 20px 50px -25px rgba(34, 211, 238, 0.4);
}

.price-card .tier-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.tier-tagline {
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

.tier-note {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--signal-1);
  border: 1px solid rgba(110, 231, 183, 0.3);
  border-radius: 999px;
  padding: 0.5em 0.9em;
  background: rgba(110, 231, 183, 0.08);
  width: fit-content;
}

.price-figure {
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-figure .amount {
  font-size: 1.9rem;
  color: var(--paper);
}

.price-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.price-card li {
  color: var(--muted);
  font-size: 1rem;
  padding-left: 1.4em;
  position: relative;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

/* =========================================================
   Founder Note
   ========================================================= */

.founder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.founder-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.founder-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(110, 231, 183, 0.22), rgba(34, 211, 238, 0.14));
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.founder-photo span {
  position: relative;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.founder-note blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
}

.founder-note cite {
  font-style: normal;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.founder-extra {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 56ch;
}

/* =========================================================
   Footer CTA / Form
   ========================================================= */

.footer-cta {
  background: linear-gradient(180deg, var(--panel) 0%, var(--ink) 100%);
  border-top: 1px solid var(--panel-border);
}

.footer-cta-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-cta-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.footer-cta-head .subtext {
  color: var(--muted);
  max-width: 52ch;
}

.form-shell {
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  overflow: hidden;
}

.form-shell iframe {
  display: block;
  width: 100%;
  border: none;
}

.form-microcopy {
  max-width: 640px;
  margin: 1rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-confirmation {
  max-width: 640px;
  margin: 1.25rem auto 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(110, 231, 183, 0.3);
  background: rgba(110, 231, 183, 0.06);
  color: var(--paper);
  font-size: 1rem;
  display: none;
}

.form-confirmation.visible {
  display: block;
}

/* =========================================================
   Site Footer
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 2.5rem 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer .legal-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer .legal-links a {
  text-decoration: none;
}

.site-footer .legal-links a:hover {
  color: var(--paper);
}

.email-obfuscated {
  cursor: pointer;
}

.site-footer .copyright {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* =========================================================
   Cookie consent banner
   ========================================================= */

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 480px;
  margin: 0 auto;
  z-index: 100;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cookie-consent p a {
  color: var(--signal-1);
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-consent .btn {
  padding: 0.55em 1.3em;
  font-size: 0.88rem;
}

@media (max-width: 560px) {
  .cookie-consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 1.1rem 1.25rem;
  }

  .cookie-consent-actions {
    flex-direction: column-reverse;
  }

  .cookie-consent .btn {
    width: 100%;
  }
}

/* =========================================================
   Reveal-on-scroll base state (JS toggles .in-view)
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-copy h1 .line span {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================
   Staggered group reveal (JS animates each .stagger-item
   via Motion when its .stagger-group scrolls into view)
   ========================================================= */

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: reduce) {
  .stagger-item {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Tilt / spotlight cards — cursor-reactive depth
   ========================================================= */

.tilt-card {
  --mx: 50%;
  --my: 50%;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(110, 231, 183, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.tilt-card:hover::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce), (hover: none) {
  .tilt-card {
    transform: none !important;
  }
  .tilt-card::after {
    display: none;
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--ink);
    border-bottom: 1px solid var(--panel-border);
  }

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

  .site-nav a {
    padding: 0.85rem 0;
    border-top: 1px solid var(--panel-border);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-frame-wrap {
    order: -1;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .founder {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 560px) {
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* Simple privacy page layout */
.legal-doc {
  padding: clamp(3rem, 6vw, 5rem) 0 5rem;
  max-width: 760px;
  margin: 0 auto;
}

.legal-doc h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.legal-doc .updated {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  display: block;
}

.legal-doc h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-doc p, .legal-doc li {
  color: var(--muted);
  font-size: 0.98rem;
}

.legal-doc ul {
  padding-left: 1.3rem;
}

.legal-doc a {
  color: var(--signal-1);
}
