/* ============================================================
   Leafy — editorial landing
   ============================================================ */

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

:root {
  --bg:           #000000;
  --bg-secondary: #0a0a0a;
  --separator:    rgba(255, 255, 255, 0.10);
  --separator-light: rgba(255, 255, 255, 0.06);

  /* Lime green — matches the Leafy app icon; one green, used site-wide */
  --green:        #9fd038;   /* accent text / links / labels */
  --green-ink:    #9fd038;   /* brush-stroke fill */
  --green-hover:  #b3e840;
  --green-deep:   #7ab02c;   /* darker lime — dry-brush streak / borders */
  --green-on:     #1e2e0a;   /* dark ink, for text on solid green fills */

  --text-primary:   #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary:  #48484a;

  --page-w:      1440px;
  --nav-h:       52px;
  --gutter:      28px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, monospace;
  /* Characterful display face — warm literary serif for big headings */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
}
/* Slim, unobtrusive scrollbar — a scroll reference, not a jump-scare */
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  border: 2px solid #000;
}
html::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.24); }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }

kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  display: inline-block;
  padding: 0.1em 0.45em;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

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

/* ── Scrollbar ── */
.hide-scrollbar {
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* IE / Edge */
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;                    /* Chrome, Safari, Opera */
}

/* ── Grain ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: #000000;
  border-bottom: 1px solid var(--separator-light);
  transition: border-color 0.3s ease;
}
#nav.scrolled {
  border-bottom: 1px solid var(--separator);
}
.nav-inner {
  width: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-logo:hover { color: var(--text-primary); }
.nav-mark {
  width: 20px; height: 20px;
  border-radius: 5px;
  background: url("/icons/leafy-192.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  flex: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}
.nav-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta,
.nav-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  padding: 6px 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: 3px 4px 0 0 var(--nav-btn-shadow, #3a3a3d);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}
.nav-cta {
  --nav-btn-shadow: var(--green-on);
  color: var(--green-on);
  background: var(--green);
  border-color: rgba(255, 255, 255, 0.18);
}
.nav-cta:hover {
  color: var(--green-on);
  background: var(--green-hover);
  box-shadow: 1px 2px 0 0 var(--green-on);
  transform: translate(2px, 2px);
}
.nav-help-btn {
  --nav-btn-shadow: #3a3a3d;
  color: #1a1a1a;
  background: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.22);
}
.nav-help-btn:hover {
  color: #1a1a1a;
  background: #ffffff;
  box-shadow: 1px 2px 0 0 #3a3a3d;
  transform: translate(2px, 2px);
}

/* ============================================================
   ① PAIN — full-bleed sticky hero
   ============================================================ */

/* Hero flows normally — no fixed positioning, no scroll-jacking */
.hero-wrap {
  position: relative;
}

.pain {
  position: relative;
  width: 100%;
  min-height: min(88vh, 780px);
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 72px;
  overflow: hidden;
}

/* Full-bleed background image */
.pain-shot {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pain-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.82);
}
.pain-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.30) 0%,
    rgba(0,0,0,0.38) 35%,
    rgba(0,0,0,0.88) 100%
  );
  pointer-events: none;
}

/* Copy sits at the bottom of the viewport, over the image */
.pain-copy {
  position: relative;
  z-index: 1;
  max-width: var(--page-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.pain h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 680px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.pain-sub {
  margin-top: 16px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

/* One solid block slides over the fixed hero — no gaps possible */
.content {
  position: relative;
  z-index: 1;
  background: var(--bg);
}
footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* ============================================================
   ② PIVOT — the promise
   ============================================================ */
.pivot {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 120px var(--gutter);
}
.pivot-inner {
  max-width: 580px;
}
.pivot h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.pivot-sub {
  margin-top: 18px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 480px;
}

/* ============================================================
   ③ DEMO — one-shot reveal: article → select → define.
   Plays once in place when scrolled into view — no pinning, no
   scroll-jacking. JS times a single data-phase attribute on
   .demo; everything else is plain CSS transitions reacting to it.
   ============================================================ */
.demo {
  max-width: none;
  margin: 0 0 120px;
  padding: 110px var(--gutter) 56px;
  position: relative;
}

.demo-sticky { position: relative; }

.demo-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.demo-vignette {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 50% 55% at 50% 42%, rgba(159, 208, 56, 0.16), transparent 72%);
}

.demo-scene {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-page {
  position: relative;
  width: min(680px, calc(100% - 48px));
  margin: 0 auto;
  -webkit-font-smoothing: subpixel-antialiased;
}

.demo-page-inner {
  padding: clamp(32px, 4vw, 48px) clamp(28px, 3.5vw, 40px);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.demo-article p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.65vw, 1.1875rem);
  line-height: 1.72;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 247, 0.78);
  margin-bottom: 1.15em;
}
.demo-article p:last-child { margin-bottom: 0; }

.demo-target-sentence {
  color: var(--text-primary);
}

.demo-page mark {
  background: none;
  color: inherit;
  font-weight: 600;
}

.demo-highlight-wrap {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}

.demo-select-box {
  position: absolute;
  inset: -5px -10px;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.demo[data-phase="select"] .demo-select-box,
.demo[data-phase="define"] .demo-select-box {
  opacity: 1;
  transform: scale(1);
}

.demo-popup {
  position: fixed;
  width: clamp(300px, 38vw, 460px);
  filter: drop-shadow(0 20px 48px rgba(0,0,0,0.55));
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.97);
  transform-origin: top center;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.demo[data-phase="define"] .demo-popup {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.demo-captions {
  position: relative;
  margin: 28px auto 0;
  text-align: center;
  width: min(480px, calc(100% - 40px));
  min-height: 1.4em;
  pointer-events: none;
}
.demo-caption {
  position: absolute;
  inset: 0;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(245, 245, 247, 0.72);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.demo-caption kbd { font-size: 0.9em; }
.demo[data-phase="select"] .demo-caption[data-phase="select"],
.demo[data-phase="define"] .demo-caption[data-phase="define"] {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FEATURES — visual walkthrough. Each row pairs a real screenshot or
   screen recording with a short caption. Static, alternating sides,
   plain vertical scroll — no pinning, no scrubbing.
   ============================================================ */
.features {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 88px var(--gutter);
  border-top: 1px solid var(--separator-light);
}
.features-head .topic-label { display: block; margin-bottom: 14px; }
.features-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.scene-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.scene-chip {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--separator);
  background: rgba(255, 255, 255, 0.02);
}

.frow {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.45fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  margin-top: clamp(52px, 7vw, 88px);
}
.frow--reverse {
  /* Media sits in column 2 — give it the wide track, not the narrow one */
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1.55fr);
}
.features-head + .frow {
  margin-top: clamp(24px, 3.5vw, 36px);
}
.frow.demo-row {
  align-items: start;
}
.frow.demo-row .frow-text {
  padding-top: 2px;
}
.frow--reverse .frow-media { order: 2; }
.frow--reverse .frow-text  { order: 1; }

/* No backdrop board — the screenshot/recording stands on its own. */
.frow-media img,
.frow-media video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.reveal.is-visible .frow-media img,
.reveal.is-visible .frow-media video {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.feature-vid--scrub {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}
.feature-vid--scrub.is-dragging {
  cursor: grabbing;
}

/* The floating definition popup just centres, bare. */
.frow-media--pop {
  display: flex;
  align-items: center;
  justify-content: center;
}
.frow-media--pop img { width: min(320px, 82%); }

.frow-step {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.frow-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.frow-text h3 kbd { font-size: 0.8em; vertical-align: 0.08em; }
.frow-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 420px;
}

/* Merged scan + look-up demo — a reading passage with the definition
   popup dropped right under the highlighted word. Static, no animation. */
.demo-card {
  position: relative;
  overflow: visible;
}
.demo-card p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.72;
  color: rgba(245, 245, 247, 0.78);
  margin-bottom: 1em;
}
.demo-card p:last-child { margin-bottom: 0; }
.demo-eyebrow {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}
.demo-word {
  color: var(--text-primary);
  font-weight: 600;
}
.demo-pop {
  position: absolute;
  width: 300px;
  max-width: 70vw;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  z-index: 5;
  pointer-events: none;
}

/* ============================================================
   ⑤ DOWNLOAD BUTTON
   ============================================================ */
.dl-wrap {
  margin-top: 32px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.dl-platform {
  margin: 0 0 -2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.dl-btn-wrap {
  display: block;
  position: relative;
}
.dl-btn-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #1e2a10;
  border-radius: 14px;
  transform: translate(6px, 7px) rotate(-1.2deg);
  z-index: 0;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: #9fd038;
  color: #2d3d1a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.125rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  border: 3px solid #1e2a10;
  border-radius: 14px;
  text-decoration: none;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.1s ease;
  transform: rotate(-1.2deg);
}
.dl-btn svg { width: 22px; height: 22px; flex: none; }
.dl-btn:hover {
  color: #2d3d1a;
  background: #9fd038;
  transform: rotate(-1.2deg) translate(3px, 3px);
}
.dl-btn:active {
  transform: rotate(-1.2deg) translate(6px, 7px);
}
.dl-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

/* ── Download block — flat, no panel / glow / radius ── */
.dl-panel {
  margin-bottom: 44px;
  text-align: center;
}
.dl-icon {
  display: block;
  width: clamp(72px, 12vw, 96px);
  height: clamp(72px, 12vw, 96px);
  margin: 0 auto 24px;
}
.dl-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.dl-panel-sub {
  margin: 18px auto 0;
  max-width: 440px;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.dl-panel .dl-wrap { margin-top: 30px; margin-bottom: 0; }
.dl-panel .dl-meta { color: var(--text-tertiary); }

.dl-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 32px;
  color: var(--text-tertiary);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.9375rem;
}
.dl-divider::before,
.dl-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--separator);
}

/* ============================================================
   ⑤ SIGNUP + TRUST
   ============================================================ */
.signup-section {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 96px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
}
.signup-inner {
  position: relative;
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.signup-cols {
  display: flex;
  align-items: center;
  margin-top: 0;
  gap: 0;
}
.signup-col-left {
  flex: 1;
  min-width: 0;
  padding-right: 48px;
}
.signup-col-right {
  flex: 0 0 auto;
  padding-left: 48px;
  border-left: 1px solid var(--separator);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.reach-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}
.signup-col-right .reach-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.signup-inner h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.signup-note {
  margin-top: 44px;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}

/* Languages — ambient gravity text fills the stack behind copy + newsletter */
.lang-stack {
  position: relative;
}
.lang-stack.reveal.is-visible .lang-field {
  opacity: 1;
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.lang-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 10%, #000 22%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 10%, #000 22%, #000 100%);
}
.info--languages {
  position: relative;
  overflow: visible;
  z-index: 2;
}
/* Double-class selector so this reliably wins over the plain .info padding
   shorthand below regardless of source order (same specificity, and .info's
   `padding: 88px var(--gutter)` shorthand would otherwise silently reset
   padding-bottom back to 88px). The falling-text field now continues behind
   .lang-cta below, so this only needs a normal gap before that panel. */
.info.info--languages {
  padding-bottom: 8px;
}
.lang-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
/* Download panel, replayed over the tail end of the same falling-text
   field instead of a new section — the last thing anyone scrolling
   through the whole page sees before the footer. */
.lang-cta {
  position: relative;
  z-index: 2;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}
.lang-field__stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: auto;
  cursor: default;
}
.lang-tile {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  will-change: transform;
  color: rgba(245, 245, 247, 0.14);
}
.feedback-cols {
  display: flex;
  align-items: flex-start;
  gap: 0;
  text-align: left;
}
.feedback-col-main {
  flex: 1;
  min-width: 0;
  padding-right: 48px;
}
.feedback-col-social {
  flex: 0 0 auto;
  padding-left: 48px;
  border-left: 1px solid var(--separator);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.feedback-col-social .reach-links {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.feedback-col-social .reach-pill {
  justify-content: center;
}
.feedback-form {
  text-align: left;
}
.feedback-form__body {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  margin-bottom: 0;
  transition:
    grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    margin 0.4s ease;
}
.feedback-form__inner {
  overflow: visible;
  min-height: 0;
}
.feedback-form.is-sent .feedback-form__inner {
  overflow: hidden;
}
.feedback-fields-row {
  display: flex;
  align-items: stretch;
  gap: 18px;
  overflow: visible;
}
.feedback-fields {
  flex: 1;
  min-width: 0;
}
.feedback-line {
  display: block;
  width: 100%;
  max-width: 100%;
}
.feedback-send-wrap {
  flex: none;
  align-self: stretch;
  display: block;
  position: relative;
  width: clamp(76px, 9vw, 92px);
  min-height: 118px;
  margin: 0 10px 10px 0;
  overflow: visible;
}
.feedback-send-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  transform: translate(6px, 7px) rotate(-1.2deg);
  transform-origin: center center;
  z-index: 0;
}
.feedback-send-btn {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 18px 10px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.1;
  text-align: center;
  box-sizing: border-box;
  border-radius: 14px;
  z-index: 1;
  background: #f5f5f7;
  color: #1a1a1a;
  border: 3px solid rgba(255, 255, 255, 0.22);
}
.feedback-send-btn svg {
  width: 26px;
  height: 16px;
  flex: none;
}
.feedback-send-btn:hover {
  color: #0a0a0a;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: rotate(-1.2deg) translate(3px, 3px);
}
.feedback-send-btn:active {
  background: #ebebef;
  transform: rotate(-1.2deg) translate(6px, 7px);
}
.feedback-send-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.sign-field--grow {
  flex: 1;
  min-width: 0;
  display: block;
}
.feedback-form .sign-field {
  display: block;
  width: 100%;
}
.feedback-input {
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  min-height: 0;
  max-height: 8rem;
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.125rem, 2.6vw, 1.625rem);
  letter-spacing: 0.005em;
  color: var(--text-primary);
  text-align: left;
  padding: 0 0 3px;
  margin: 0;
  caret-color: var(--green);
  line-height: 1.25;
  field-sizing: content;
}
.feedback-input::placeholder {
  color: var(--text-tertiary);
  font-style: italic;
}
.feedback-input:focus {
  outline: none;
}
.feedback-form.is-sent .feedback-form__body {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-bottom: 0;
}
.feedback-form__thanks {
  opacity: 0;
  transform: translateY(8px);
  max-height: 0;
  overflow: hidden;
  margin: 0;
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.18s,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.18s,
    max-height 0.4s ease 0.18s,
    margin 0.4s ease 0.18s;
}
.feedback-form__thanks:not(:empty):not(.ok) {
  opacity: 1;
  transform: translateY(0);
  max-height: 3rem;
  transition: none;
}
.feedback-form.is-sent .feedback-form__thanks.ok {
  opacity: 1;
  transform: translateY(0);
  max-height: 4rem;
  margin-top: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.feedback-cols:has(.feedback-form.is-sent) {
  justify-content: center;
  align-items: center;
  gap: 48px;
}
.feedback-cols:has(.feedback-form.is-sent) .feedback-col-main {
  flex: 0 0 auto;
  width: auto;
  padding-right: 0;
}
.feedback-cols:has(.feedback-form.is-sent) .feedback-col-social {
  flex: 0 0 auto;
}
.feedback-email-line { margin-top: 26px; }
.feedback-fields-row .feedback-email-line { margin-top: 22px; }
.sign-prompt--sm { font-size: 0.9375rem; margin-bottom: 14px; }
.feedback-consent { justify-content: flex-start; margin-top: 18px; }

/* ============================================================
   INFO SECTIONS — use cases / features / privacy / languages
   Plain static blocks, no scroll animation beyond a gentle fade.
   ============================================================ */
.info {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 88px var(--gutter);
  border-top: 1px solid var(--separator-light);
}
.info .topic-label { display: block; margin-bottom: 14px; }
.info h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 14px;
}
.privacy-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 6vw, 72px);
}
.privacy-content { flex: 1 1 auto; min-width: 0; }
.privacy-badge {
  flex: 0 0 auto;
  width: clamp(140px, 16vw, 240px);
  height: clamp(140px, 16vw, 240px);
  will-change: transform;
}
@media (max-width: 780px) {
  .privacy-info { flex-direction: column; align-items: flex-start; }
  .privacy-badge { align-self: center; width: 120px; height: 120px; margin-top: 8px; }
}
.info-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
}
.info-foot { margin-top: 28px; font-size: 0.9375rem; }
.info-foot a { color: var(--green); }
.info-foot a:hover { color: var(--green-hover); }

/* Privacy log — read like a verified audit trail, not a marketing card grid:
   plain rows on hairline rules, a status dot standing in for "checked true",
   and the claim itself set in mono like a system readout. */
.privacy-log {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  max-width: 640px;
  border-top: 1px solid var(--separator-light);
}
.privacy-log li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--separator-light);
}
.privacy-log__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  transform: translateY(-0.15em);
  box-shadow: 0 0 8px rgba(159, 208, 56, 0.55);
}
.privacy-log__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.privacy-log__fact {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.privacy-log__detail {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
@media (max-width: 700px) {
  .privacy-log li { gap: 12px; padding: 18px 0; }
  .privacy-log__fact { font-size: 0.9375rem; }
}

/* Languages */
.lang-count span { color: var(--green); }

/* ── Feedback bar (below download) ─────────────────────────────────────── */
.signup-row {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.field {
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--separator);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}
.field::placeholder { color: var(--text-tertiary); }
.field:focus { outline: none; border-color: var(--green); }

.signup-btn {
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: none;
  background: #ffffff;
  color: #000000;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.signup-btn:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}
.signup-btn:active { transform: translateY(0); }

.consent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.consent input { margin-top: 2px; accent-color: var(--green); }

.form-msg {
  margin-top: 10px;
  font-size: 0.8125rem;
  min-height: 1.2em;
  color: var(--text-secondary);
  text-align: center;
}
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #ff6961; }

/* ── Manuscript "sign here" line ─────────────────────────────────────────
   No box, no fill — text is written on a hand-painted brush line, like
   signing a page. The stroke paints in (left→right) on focus / once filled.
   Reused by the optional email line under the feedback form. */
.sign-prompt {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}
.sign-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.sign-field {
  position: relative;
  display: inline-block;
}
/* faint resting guide line so the user knows where to write */
.sign-field::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}
/* the oil-paint swipe, clipped away until focus/fill */
.sign-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 0.45em;
  pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' preserveAspectRatio='none'><path d='M4,13 C30,8 60,15 95,11 C130,7 165,16 205,10 C222,8 232,11 236,13 C232,19 210,14 182,18 C140,23 100,13 64,18 C36,21 16,15 4,16 Z' fill='%239fd038'/><path d='M16,15 C62,11 120,18 172,13 C202,11 222,15 230,14' fill='none' stroke='%237ab02c' stroke-width='1.6' stroke-linecap='round' opacity='0.45'/></svg>") left center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.sign-field:has(.sign-input:focus)::after,
.sign-field:has(.sign-input:not(:placeholder-shown))::after,
.sign-field:has(.feedback-input:focus)::after,
.sign-field:has(.feedback-input:not(:placeholder-shown))::after {
  clip-path: inset(0 0 0 0);
}
.sign-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.125rem, 2.6vw, 1.625rem);
  letter-spacing: 0.005em;
  color: var(--text-primary);
  text-align: left;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0 0 3px;
  margin: 0;
  caret-color: var(--green);
  line-height: 1.25;
}
.sign-input::placeholder { color: var(--text-tertiary); font-style: italic; }

/* ── Alternative reach-out — Discord / Reddit, no email needed ────────────
   Quiet secondary option below the signature line. Same manuscript voice:
   an italic serif divider, then two understated pills that warm to green. */
.reach-alt { margin-top: 38px; }
.reach-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto 18px;
  color: var(--text-secondary);
}
.reach-divider::before,
.reach-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--separator);
}
.reach-divider span {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.0625rem;
  white-space: nowrap;
}
.reach-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.reach-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}
.reach-pill svg { width: 18px; height: 18px; flex: none; }
.reach-pill:hover { transform: translateY(-1px); }
.reach-pill:active { transform: translateY(0); }

.reach-pill--discord {
  border: 1px solid #5865f2;
  color: #5865f2;
}
.reach-pill--discord:hover {
  color: #5865f2;
  background: rgba(88, 101, 242, 0.1);
}
.reach-pill--reddit {
  border: 1px solid #ff4500;
  color: #ff4500;
}
.reach-pill--reddit:hover {
  color: #ff4500;
  background: rgba(255, 69, 0, 0.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--separator-light);
  padding: 24px 0 32px;
}
.footer-inner {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

/* ============================================================
   COOKIE
   ============================================================ */
#cookie {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: min(480px, calc(100% - 32px));
  z-index: 200;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(28,28,30,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--separator);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#cookie.show { transform: translateX(-50%) translateY(0); }
#cookie p {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
  flex: 1;
}
#cookie button {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: none;
  background: #ffffff;
  color: #000000;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
#cookie button:hover { background: rgba(255, 255, 255, 0.88); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.hero-reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--d, 0) * 0.13s + 0.1s);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* ============================================================
   ABOUT — story (for about.html)
   ============================================================ */
.story-hero {
  width: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 72px var(--gutter) 56px;
}
.story-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 14px 0 20px;
}
.story-hero-lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: none;
}

.story-body {
  width: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 var(--gutter) 100px;
}

.story-section {
  padding: 56px 0;
  border-top: 1px solid var(--separator-light);
}
.story-section .topic-label {
  display: block;
  margin-bottom: 14px;
}
.story-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.story-section p {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.story-section p:last-child { margin-bottom: 0; }
.story-section p strong { color: var(--text-primary); }
.story-section p em { color: var(--green); font-style: italic; }
.story-section .btn { margin-top: 8px; }

.story-highlight { color: var(--text-primary) !important; }

.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 24px 0 0;
}
.story-split h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.story-split p { font-size: 0.9375rem !important; }

.story-blockquote {
  margin: 28px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--separator-light);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav-links a.is-active { color: var(--text-primary); }

/* Generic button primitives used across pages */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 22px;
  transition: opacity 0.18s ease, transform 0.15s ease, background 0.18s ease;
}
.btn:active { transform: translateY(1px); }

/* Solid white pill — for page-level CTAs on dark backgrounds */
.btn-primary {
  background: #ffffff;
  color: #000000;
}
.btn-primary:hover { background: rgba(255,255,255,0.88); color: #000; }

/* Ghost outline — secondary / inline CTAs */
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.72);
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* ── Hand-painted brush accent ───────────────────────────────────────────
   Wrap a keyword in <span class="brush"> to lay a single oil-paint swipe
   behind it. The stroke is an inline SVG (uneven body, frayed tapered ends,
   a darker dry-brush streak) — stretched to the word's width. z-index:-1 in an
   isolated context keeps it behind the glyphs but above the section colour. */
.brush {
  position: relative;
  display: inline-block;
  isolation: isolate;
  white-space: nowrap;
}
.brush::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.16em;
  right: -0.16em;
  bottom: -0.02em;
  height: 0.5em;
  pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' preserveAspectRatio='none'><path d='M4,13 C30,8 60,15 95,11 C130,7 165,16 205,10 C222,8 232,11 236,13 C232,19 210,14 182,18 C140,23 100,13 64,18 C36,21 16,15 4,16 Z' fill='%239fd038'/><path d='M16,15 C62,11 120,18 172,13 C202,11 222,15 230,14' fill='none' stroke='%237ab02c' stroke-width='1.6' stroke-linecap='round' opacity='0.45'/></svg>") center / 100% 100% no-repeat;
}
/* Mirror so repeated strokes don't look stamped from one template */
.brush--flip::after { transform: scaleX(-1); }
/* Slightly heavier swipe for big hero words — brighter fill + shadow so it
   still reads clearly over a busy photo, not just a flat section colour. */
.brush--bold::after {
  height: 0.46em;
  bottom: 0.0em;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' preserveAspectRatio='none'><path d='M4,13 C30,8 60,15 95,11 C130,7 165,16 205,10 C222,8 232,11 236,13 C232,19 210,14 182,18 C140,23 100,13 64,18 C36,21 16,15 4,16 Z' fill='%239fd038'/><path d='M16,15 C62,11 120,18 172,13 C202,11 222,15 230,14' fill='none' stroke='%237ab02c' stroke-width='1.6' stroke-linecap='round' opacity='0.5'/></svg>") center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.45));
}

/* ============================================================
   LEGAL (privacy.html, terms.html) — shares story page shell
   ============================================================ */
.story-hero .back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.9375rem;
  color: var(--green);
}
.story-hero .back:hover { text-decoration: underline; }
.story-hero .updated {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 8px;
}
.story-body.legal h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 8px;
}
.story-body.legal p,
.story-body.legal li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.story-body.legal ul {
  padding-left: 1.25em;
  margin: 8px 0 16px;
}
.story-body.legal li { margin-bottom: 6px; }
.story-body.legal strong { color: var(--text-primary); }
.story-body.legal code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ============================================================
   HELP CENTER (help.html) — sidebar + switchable panels
   ============================================================ */
.help-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}
.help-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: stretch;
  padding-right: 28px;
  border-right: 1px solid var(--separator);
}
.help-nav-group { display: block; margin-bottom: 24px; }
.help-nav-group-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.help-nav-link {
  display: block;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: #f5f5f7;
  color: #1a1a1a;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  box-shadow: 5px 6px 0 0 #3a3a3d;
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.1s ease;
}
.help-nav-link:hover {
  color: #0a0a0a;
  background: #ffffff;
  box-shadow: 3px 3px 0 0 #3a3a3d;
  transform: translate(2px, 3px);
}
.help-nav-link.is-active {
  color: #0a0a0a;
  background: #ffffff;
  font-weight: 700;
  box-shadow: 5px 6px 0 0 #3a3a3d;
}
.help-nav-link.is-active:hover {
  box-shadow: 3px 3px 0 0 #3a3a3d;
  transform: translate(2px, 3px);
}

.help-panel { display: none; }
.help-panel.is-active { display: block; }
.help-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 10px 0 20px;
}
.help-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 8px;
}
.help-panel p { font-size: 1rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 12px; }
.help-panel p strong { color: var(--text-primary); }

.help-callout {
  position: relative;
  background: var(--green);
  border: 2px solid var(--green-on);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0 8px;
}
.help-callout p { margin: 0; color: var(--green-on); font-size: 0.9375rem; line-height: 1.6; }
.help-callout p strong { color: var(--green-on); }

.help-steps { list-style: none; counter-reset: help-step; margin: 12px 0 20px; padding: 0; }
.help-steps li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.help-steps li strong { color: var(--text-primary); }
.help-step-img {
  display: block;
  max-width: min(100%, 420px);
  height: auto;
  margin: 12px 0 4px;
  border-radius: 10px;
  border: 1px solid var(--separator-light);
}
.help-steps li::before {
  counter-increment: help-step;
  content: counter(help-step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--green-on);
  color: var(--green-on);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-contact {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--separator-light);
  font-size: 0.9375rem !important;
}

@media (max-width: 760px) {
  .help-layout { grid-template-columns: 1fr; gap: 28px; }
  .help-sidebar {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 14px;
    padding: 4px 4px 14px;
  }
  .help-nav-group { display: contents; }
  .help-nav-group-title { display: none; }
  .help-nav-link { flex: none; margin: 0; white-space: nowrap; }
}

.pill { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green); background: rgba(159, 208, 56, 0.14); border: 1px solid rgba(159, 208, 56, 0.38); padding: 5px 10px; border-radius: 999px; }
.topic-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.large-title { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.title-1 { font-size: 1.75rem; font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  :root { --gutter: 20px; }

  .pain { min-height: auto; padding: 88px 0 48px; }
  .pain h1 { font-size: clamp(2rem, 8vw, 3.5rem); }

  .pivot { padding: 80px var(--gutter); }

  /* ── Demo ── */
  .demo { margin-bottom: 64px; padding: 64px var(--gutter) 40px; }
  .demo-page { max-width: none; }
  .demo-vignette,
  .demo-popup,
  .demo-select-box { display: none !important; }
  .demo-captions {
    position: static;
    width: 100%;
    margin: 28px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .demo-caption {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    font-size: 0.8125rem;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
  }

  /* ── Features: stack the media above the caption ── */
  .features { padding: 64px var(--gutter); }
  .frow,
  .frow--reverse { grid-template-columns: 1fr; gap: 20px; margin-top: 56px; }
  .features-head + .frow { margin-top: 28px; }
  .frow--reverse .frow-media,
  .frow--reverse .frow-text { order: 0; }
  .frow-media { border-radius: 10px; }
  .reveal {
    transform: translate3d(0, 24px, 0);
    transition-duration: 0.8s;
  }

  /* ── Signup ── */
  .signup-section { padding: 80px var(--gutter); min-height: 0; }
  .sign-input { width: 100%; }
  .signup-cols { flex-direction: column; gap: 40px; }
  .signup-col-left { padding-right: 0; width: 100%; }
  .signup-col-right { padding-left: 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; width: 100%; align-items: center; }
  .signup-col-right .reach-links { flex-direction: row; justify-content: center; gap: 12px; }
  .feedback-cols { flex-direction: column; gap: 40px; text-align: center; }
  .feedback-col-main { padding-right: 0; width: 100%; }
  .feedback-col-social { padding-left: 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; width: 100%; align-items: center; }
  .feedback-col-social .reach-links { flex-direction: row; justify-content: center; gap: 12px; }
  .feedback-fields-row { flex-direction: column; }
  .feedback-send-wrap {
    width: 100%;
    min-height: 0;
  }
  .feedback-send-btn {
    min-height: 52px;
    flex-direction: row;
    padding: 14px 24px;
  }
  .feedback-input { text-align: left; width: 100%; }

  .nav-links { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .story-split { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-reveal { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lang-field { opacity: 1; transition: none; }
  #cookie { transition: none; }
}
