/* ==========================================================================
   Monkey404 design system — Content Jungle
   Single source of truth for colour and type. No hex values elsewhere.
   ========================================================================== */

/* ---- Fonts (self-hosted, /assets/fonts) --------------------------------- */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: optional;
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

/* ---- Tokens -------------------------------------------------------------- */

:root {
  --bark:   #2A1D14; /* warm brown-black, primary dark ground */
  --canopy: #12291F; /* dark forest green, Act IV ground */
  --pith:   #F7F1E4; /* warm off-white, light ground */
  --banana: #FFC24B; /* THE primary CTA colour */
  --fur:    #8B5A32; /* mid brown: borders, strokes, rope */
  --leaf:   #1FC77E; /* status only: live / published */
  --amber:  #E8963C; /* needs attention */
  --ink:    #1A120B; /* text on light grounds */

  /* Derived shades (defined here only) */
  --banana-press: #EAA92E;
  --bark-lift:    #38281B; /* raised card on bark */
  --bark-edge:    #4A3524;
  --canopy-lift:  #1B3A2C;
  --canopy-edge:  #2C523F;
  --pith-dim:     #EFE6D2; /* recessed field on pith */
  --pith-card:    #FDFAF2; /* raised card on pith */
  --ink-soft:     #4A3B2C; /* secondary text on light */
  --pith-soft:    #D8CDB9; /* secondary text on dark */
  --leaf-deep:    #0E5D3C; /* readable green text on light */
  --amber-deep:   #8A4D10; /* readable amber text on light */

  --font-display: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --size-title: clamp(2.2rem, 6vw, 4.5rem);
  --size-title-sub: clamp(1.7rem, 4vw, 2.8rem);
  --size-lead: clamp(1.1rem, 2vw, 1.5rem);

  --measure: 62ch;
  --radius-card: 14px;
  --radius-chip: 5px;
  --shadow-card: 0 2px 0 rgba(26, 18, 11, 0.14);
  --shadow-drop: 0 14px 34px rgba(26, 18, 11, 0.28);
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bark);
  overflow-x: clip;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 1000;
  transform: translateY(-180%);
  border: 2px solid var(--banana);
  border-radius: 0.5rem;
  background: var(--pith);
  color: var(--bark);
  font-weight: 700;
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

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

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; }
p { margin: 0 0 1em; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--banana);
  outline-offset: 2px;
  border-radius: 4px;
}
/* on light grounds, a thin ink seat keeps the banana ring visible */
.ground-pith :focus-visible,
.section :focus-visible,
.section.white :focus-visible {
  box-shadow: 0 0 0 1px var(--ink);
}

::selection { background: var(--banana); color: var(--ink); }

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

/* Fixed background slot for the Phase 3 scene. Empty until then. */
#canopy {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---- Type roles ---------------------------------------------------------- */

.act-title, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: var(--size-title);
  line-height: 1.02;
  margin: 0 0 0.35em;
}

.lead {
  font-size: var(--size-lead);
  line-height: 1.45;
  max-width: 46ch;
}

.mono-label, .chip, .trust-line {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Chips: machine-verified state only ---------------------------------- */

.chip {
  display: inline-block;
  padding: 0.25em 0.7em;
  border-radius: var(--radius-chip);
  white-space: nowrap;
}
.chip-live { background: var(--leaf); color: var(--canopy); }
.chip-amber { background: var(--amber); color: var(--ink); }
.chip-missing {
  background: transparent;
  color: var(--pith);
  border: 1px dashed var(--fur);
}

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

.button, .nav-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85em 1.5em;
  border-radius: 12px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.button-primary, .nav-cta, button.button-primary {
  background: var(--banana);
  color: var(--ink);
  border-color: var(--banana);
}
.button-primary:hover, .nav-cta:hover, button.button-primary:hover {
  background: var(--banana-press);
  border-color: var(--banana-press);
}
.button-primary:active, .nav-cta:active { transform: translateY(1px); }

.button-secondary, .button-light {
  background: transparent;
  color: inherit;
  border-color: var(--fur);
}
.button-secondary:hover, .button-light:hover { border-color: var(--banana); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 1.5rem 0 0;
}

/* ---- Layout helpers ------------------------------------------------------ */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}
@media (max-width: 420px) {
  .container { width: calc(100% - 2rem); }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bark);
  color: var(--pith);
  border-bottom: 1px solid var(--bark-edge);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--pith);
}
.nav-links a:hover { color: var(--banana); }
.nav-links .nav-cta {
  padding: 0.55em 1.1em;
  font-size: 0.95rem;
  color: var(--ink);
}
.nav-links .nav-cta:hover { color: var(--ink); }
.nav-signin { opacity: 0.85; }

@media (max-width: 700px) {
  .nav { flex-wrap: nowrap; gap: 0.5rem; }
  .nav-links { flex-wrap: nowrap; gap: 0.75rem; }
  .nav-links > a:nth-child(-n+3) { display: none; }
  .nav-links .nav-cta { padding-inline: 0.85em; }
}
@media (max-width: 360px) {
  .brand-name { display: none; }
}

/* ---- Acts (homepage) ----------------------------------------------------- */

.act { position: relative; }

.ground-bark { background: var(--bark); color: var(--pith); }
.ground-canopy { background: var(--canopy); color: var(--pith); }
.ground-pith { background: var(--pith); color: var(--ink); }

.ground-bark .lead, .ground-canopy .lead { color: var(--pith-soft); }
.ground-pith .lead { color: var(--ink-soft); }

.act-kicker {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  color: var(--fur);
}
.ground-bark .act-kicker, .ground-canopy .act-kicker { color: var(--banana); }

/* Act I ------------------------------------------------------------------- */

#act-1 { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4.5rem, 10vw, 8rem); }

.act1-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 4rem;
  align-items: center;
}
@media (max-width: 880px) {
  .act1-grid { grid-template-columns: minmax(0, 1fr); }
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin-top: 2.2rem;
  color: var(--pith-soft);
}
.product-definition {
  max-width: 54ch;
  margin-top: 1.35rem;
  color: var(--pith);
  font-weight: 600;
}
.trust-line span { white-space: nowrap; }
.trust-line .sep { color: var(--fur); padding: 0 0.55em; }
@media (max-width: 360px) {
  .trust-line { column-gap: 0.7rem; }
  .trust-line .sep { display: none; }
}

/* The dropped post card */
.dropped-card-zone { position: relative; min-height: 240px; }

.dropped-card {
  position: relative;
  width: min(330px, 88%);
  margin-inline: auto;
  background: var(--bark-lift);
  border: 1px solid var(--bark-edge);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.2rem 1.3rem;
  color: var(--pith-soft);
  opacity: 0.9;
  box-shadow: var(--shadow-drop);
}

.dropped-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.dropped-card .card-title {
  font-weight: 600;
  color: var(--pith);
  font-size: 0.95rem;
}
.dropped-card .card-media {
  height: 110px;
  border-radius: 8px;
  background: var(--bark);
  border: 1px dashed var(--bark-edge);
  margin-bottom: 0.9rem;
}
.dropped-card .card-line {
  height: 9px;
  border-radius: 5px;
  background: var(--fur);
  opacity: 0.55;
  margin-bottom: 0.55rem;
}
.dropped-card .card-line.short { width: 62%; margin-bottom: 0; }

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pith-soft);
  opacity: 0.85;
  margin-top: 0.9rem;
}

/* Act II ------------------------------------------------------------------- */

#act-2 { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem); }

.act2-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem 3.5rem;
  align-items: start;
}
@media (max-width: 880px) {
  .act2-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The composed product visual: caption, three thumbnails, destinations, date */
.composer {
  background: var(--pith-card);
  border: 1px solid var(--fur);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.5rem 1.5rem;
  max-width: 560px;
}

.composer-label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.45rem;
}

.composer-caption {
  background: var(--pith-dim);
  border: 1px solid var(--pith-soft);
  border-radius: 9px;
  padding: 0.9rem 1rem;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.composer-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.composer-thumbs i {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--pith-dim) 20%, var(--pith-soft) 100%);
  border: 1px solid var(--pith-soft);
}

.composer-dests { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.dest-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 1.5px solid var(--fur);
  border-radius: 999px;
  padding: 0.35em 0.95em;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--pith);
}
.dest-pill::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fur);
}

.composer-date {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px dashed var(--pith-soft);
  padding-top: 1rem;
}

/* Act III ------------------------------------------------------------------ */

#act-3 { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }

.live-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  max-width: 760px;
  margin-top: 2.2rem;
}
@media (max-width: 680px) {
  .live-cards { grid-template-columns: minmax(0, 1fr); }
}

.live-card {
  background: var(--pith-card);
  border: 1px solid var(--fur);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.2rem 1.3rem 1.3rem;
}
.live-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.live-card .dest-name { font-weight: 600; font-size: 1rem; }
.live-card .card-media {
  border-radius: 9px;
  background: linear-gradient(160deg, var(--pith-dim), var(--pith-soft));
  border: 1px solid var(--pith-soft);
  height: 130px;
  margin-bottom: 0.9rem;
}
.live-card.card-square .card-media { height: 170px; }
.live-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.channel-honesty {
  max-width: 56ch;
  margin-top: 2.4rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--fur);
  padding-left: 1.1rem;
}

/* Act IV ------------------------------------------------------------------- */

#act-4 { padding: clamp(4.5rem, 10vw, 8rem) 0; }

.act4-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 3rem 4rem;
}
@media (max-width: 880px) {
  .act4-layout { grid-template-columns: minmax(0, 1fr); }
}

.ops-queue {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.queue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--canopy-lift);
  border: 1px solid var(--canopy-edge);
  border-radius: 11px;
  padding: 0.9rem 1.1rem;
}
.queue-row .row-title {
  font-weight: 500;
  color: var(--pith);
  font-size: 0.98rem;
  min-width: 0;
}
.queue-row .row-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--pith-soft);
  font-weight: 400;
}

.plain-statements {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  max-width: 54ch;
}
.plain-statements li {
  padding: 1.05rem 0;
  border-top: 1px solid var(--canopy-edge);
  font-size: var(--size-lead);
  line-height: 1.4;
  color: var(--pith);
}
.plain-statements li:last-child { border-bottom: 1px solid var(--canopy-edge); }

/* Act V -------------------------------------------------------------------- */

#act-5 { padding: clamp(4rem, 9vw, 7rem) 0 clamp(4.5rem, 10vw, 7.5rem); }

.act5-panel { max-width: 620px; }

.form-heading {
  margin-top: 2.2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.static-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.2rem;
  margin-top: 2rem;
}
@media (max-width: 620px) {
  .static-form { grid-template-columns: minmax(0, 1fr); }
  .static-form .two-columns { grid-column: auto; }
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.form-row.full, .form-actions.full { grid-column: 1 / -1; }

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
}
.form-row label strong {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-left: 0.5em;
}

.static-form input[type="text"],
.static-form input[type="email"],
.static-form select,
.static-form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--pith);
  border: 1.5px solid var(--fur);
  border-radius: 9px;
  padding: 0.7em 0.85em;
  width: 100%;
}
.static-form textarea { resize: vertical; min-height: 6.5em; }
.static-form ::placeholder { color: var(--ink-soft); opacity: 0.75; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
}
.form-actions span { font-size: 0.9rem; color: var(--pith-soft); max-width: 34ch; }
.ground-pith .form-actions span, .section .form-actions span { color: var(--ink-soft); }
.ground-bark .form-actions span, .section.dark .form-actions span { color: var(--pith-soft); }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.thanks-message {
  background: var(--canopy);
  color: var(--pith);
  border-left: 4px solid var(--leaf);
  border-radius: 9px;
  padding: 0.9rem 1.1rem;
  max-width: 52ch;
}

.closing-line {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: var(--size-title-sub);
  margin: 3.5rem 0 0;
  color: var(--banana);
}

/* ---- Sub-page vocabulary (features / pricing / use-cases / legal) -------- */

.simple-page main { background: var(--pith); }

.simple-hero {
  background: var(--bark);
  color: var(--pith);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 5.5rem);
}
.simple-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  max-width: 22ch;
}
.simple-hero p {
  font-size: var(--size-lead);
  line-height: 1.45;
  color: var(--pith-soft);
  max-width: 52ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--banana);
  margin-bottom: 1rem;
}

.section { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--pith); color: var(--ink); }
.section.white { background: var(--pith); }
.section.dark { background: var(--canopy); color: var(--pith); }

.section-kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fur);
  margin: 0 0 0.9rem;
}
.section.dark .section-kicker { color: var(--banana); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.12;
  max-width: 30ch;
}
.section-copy { max-width: var(--measure); color: var(--ink-soft); }
.section.dark .section-copy { color: var(--pith-soft); }

.card-grid, .faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.card {
  background: var(--pith-card);
  border: 1px solid var(--pith-soft);
  border-radius: var(--radius-card);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-card);
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.card p { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }
.card h3 a { color: inherit; }

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 1.6rem;
}
.link-list a {
  border: 1.5px solid var(--fur);
  border-radius: 999px;
  padding: 0.45em 1.1em;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.link-list a:hover { border-color: var(--banana); background: var(--pith-card); }

/* Pricing */
.pricing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 880px) { .pricing-hero-grid { grid-template-columns: minmax(0, 1fr); } }

.pricing-console {
  background: var(--bark-lift);
  border: 1px solid var(--bark-edge);
  border-radius: var(--radius-card);
  padding: 1.3rem 1.4rem;
}
.pricing-console-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pricing-console-top span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--banana);
}
.pricing-console-meter {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border: 1px dashed var(--fur);
  border-radius: 9px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.pricing-console-meter strong { font-size: 1.3rem; color: var(--banana); }
.pricing-console-status { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pricing-console-status span {
  font-size: 0.82rem;
  color: var(--pith-soft);
  border: 1px solid var(--bark-edge);
  border-radius: 999px;
  padding: 0.25em 0.8em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
  align-items: stretch;
}
.price-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.price-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.price-card ul { margin: 0.8rem 0 0; padding-left: 1.1rem; }
.price-card li { margin-bottom: 0.35rem; font-size: 0.95rem; color: var(--ink-soft); }
.price-card p { font-size: 0.95rem; }
.price-card-featured { border: 2px solid var(--banana); position: relative; }
.plan-ribbon {
  position: absolute;
  top: -0.8rem;
  left: 1.1rem;
  background: var(--banana);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border-radius: 999px;
}
.price-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fur);
  margin-bottom: 0.4rem;
}
.mascot-note {
  background: var(--pith-dim);
  border-radius: 9px;
  padding: 0.7rem 0.9rem;
  margin: 0.8rem 0;
  font-size: 0.9rem;
}
.mascot-note strong { display: block; font-size: 0.92rem; }
.mascot-note span { color: var(--ink-soft); }
.pricing-footnote { margin-top: 1.8rem; font-size: 0.9rem; color: var(--ink-soft); max-width: var(--measure); }

.pricing-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.pricing-feature-grid > div {
  border-top: 3px solid var(--fur);
  padding-top: 0.9rem;
}
.pricing-feature-grid span { font-weight: 600; display: block; margin-bottom: 0.35rem; }
.pricing-feature-grid p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.section.dark .pricing-feature-grid p { color: var(--pith-soft); }

.beta-panel {
  background: var(--canopy);
  color: var(--pith);
  border-radius: var(--radius-card);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.beta-panel .section-copy, .beta-panel p { color: var(--pith-soft); }
.beta-panel .section-kicker { color: var(--banana); }
.honesty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.2rem;
  margin: 1.4rem 0;
}
.honesty-grid > div {
  border: 1px solid var(--canopy-edge);
  border-radius: 11px;
  padding: 1rem 1.1rem;
  background: var(--canopy-lift);
}
.honesty-grid strong { display: block; margin-bottom: 0.3rem; }
.honesty-grid p { margin: 0; font-size: 0.95rem; color: var(--pith-soft); }

.honesty-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--fur);
  padding-left: 1rem;
  max-width: var(--measure);
}

/* Legal pages */
.content-stack { display: grid; gap: 1.2rem; max-width: 780px; }
.content-panel {
  background: var(--pith-card);
  border: 1px solid var(--pith-soft);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.6rem;
}
.content-panel h2 { font-size: 1.25rem; margin-bottom: 0.5em; }
.content-panel p { color: var(--ink-soft); font-size: 0.98rem; }
.content-panel p:last-child { margin-bottom: 0; }
.content-panel ul { color: var(--ink-soft); font-size: 0.98rem; padding-left: 1.2rem; }

/* Forms on dark sub-page sections */
.section.dark .static-form input[type="text"],
.section.dark .static-form input[type="email"],
.section.dark .static-form select,
.section.dark .static-form textarea {
  background: var(--pith);
}
.section.dark .form-row label { color: var(--pith); }

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

.site-footer {
  background: var(--bark);
  color: var(--pith-soft);
  border-top: 1px solid var(--bark-edge);
  padding: 2.2rem 0 2.6rem;
}
.footer-row { display: grid; gap: 1rem; }
.footer-row > p:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pith);
  font-size: 1.15rem;
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  margin: 0;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--pith-soft);
}
.footer-links a:hover { color: var(--banana); }

/* ==========================================================================
   Phase 2 — hand-made treatment
   ========================================================================== */

/* ---- Paper grain: one fixed overlay, applied once ------------------------ */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* ---- Torn edges where light meets dark ----------------------------------- */

.tear {
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 19px;
  pointer-events: none;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 20' preserveAspectRatio='none'><path d='M0 20 L0 11 C14 8 26 14 42 10 C58 6 66 13 84 9 C98 6 112 14 130 11 C146 8 158 4 176 8 C192 11 204 15 222 10 C238 6 250 12 268 9 C284 6 296 13 314 10 C330 7 344 12 360 8 L360 20 Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 20' preserveAspectRatio='none'><path d='M0 20 L0 11 C14 8 26 14 42 10 C58 6 66 13 84 9 C98 6 112 14 130 11 C146 8 158 4 176 8 C192 11 204 15 222 10 C238 6 250 12 268 9 C284 6 296 13 314 10 C330 7 344 12 360 8 L360 20 Z'/></svg>");
  -webkit-mask-size: 340px 100%;
  mask-size: 340px 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}
.tear-pith { background: var(--pith); }
.tear-canopy { background: var(--canopy); }
.tear-bark { background: var(--bark); }

/* anchors for the mascot's absolute positions */
.composer { position: relative; }
.live-cards { position: relative; }

/* ---- Hand placement ------------------------------------------------------ */

.dropped-card { transform: rotate(-1.8deg); }
.dropped-card .chip-missing { transform: rotate(1.2deg); }
.composer { transform: rotate(-0.6deg); }
.queue-row-attention { transform: rotate(0.55deg); }

/* Act II heading sits optically high beside the big composer */
@media (min-width: 881px) {
  .act2-copy { margin-top: -0.6rem; }
  .act2-visual { margin-top: 1.2rem; }
}

/* Act III is the off-axis act: the whole block steps right, cards stagger */
@media (min-width: 940px) {
  #act-3 .act3-inner { margin-left: 12%; }
  .live-cards { max-width: 700px; }
  .live-card.card-square { transform: translateY(38px) rotate(0.5deg); }
  #act-3 .channel-honesty { margin-left: 6%; margin-top: 4.6rem; }
}

/* Vertical rhythm: tight where dense, generous where it breathes */
#act-3 { padding-top: clamp(2.2rem, 5vw, 3.5rem); }
#act-4 { padding-block: clamp(5.5rem, 12vw, 9.5rem); }

/* ---- The mascot's ascent (fallback mark on a banana pad) ----------------- */

.mascot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--banana);
  border: 2px solid var(--bark);
  box-shadow: var(--shadow-card);
  pointer-events: none;
  z-index: 2;
}
.mascot img { width: 30px; height: 30px; }

.mascot-a1 { bottom: -12px; left: 4%; transform: rotate(-5deg); }
.mascot-a2 { top: -24px; right: 26px; transform: rotate(3deg); }
.mascot-a3 { top: -23px; left: 58%; transform: rotate(-4deg); }
.mascot-a4 { top: -23px; left: -61px; transform: rotate(4deg); }
.mascot-a5 { top: 4px; right: 0; transform: rotate(-6deg); }

.dropped-card-zone .mascot-a1 { bottom: -18px; }
.act5-panel { position: relative; }
@media (max-width: 940px) {
  .mascot-a4 { display: none; }
}
@media (max-width: 880px) {
  .mascot-a1 { left: 2%; }
}

/* ---- The rope (Act IV) --------------------------------------------------- */

.ops-queue { position: relative; }
.rope {
  position: absolute;
  top: -70px;
  bottom: -70px;
  left: -44px;
  width: 26px;
  color: var(--fur);
  pointer-events: none;
}
.rope svg { width: 100%; height: 100%; display: block; }
@media (max-width: 940px) {
  .rope { display: none; }
}
@media (min-width: 941px) {
  .act4-layout > .ops-queue { margin-left: 44px; }
}

/* ---- Botanical linework (Act V divider sprig) ---------------------------- */

.sprig {
  color: var(--fur);
  margin: 2.6rem 0 0;
  width: min(300px, 70%);
  height: 26px;
}
.sprig svg { width: 100%; height: 100%; display: block; }

/* ---- Canopy windows -------------------------------------------------------
   When the 3D scene mounts (body.has-canopy) the acts float apart and the
   jungle shows through the gaps. Without the scene the page stays seamless. */

.has-canopy #act-2,
.has-canopy #act-3,
.has-canopy #act-4,
.has-canopy #act-5 { margin-top: 22vh; }

/* ---- Motion: one orchestrated moment, then quiet reveals ----------------- */

@media (prefers-reduced-motion: no-preference) {
  /* First paint: the fallen card settles, the chip fades in, the headline sets.
     Text never fades from zero so paint (and LCP) is immediate. */
  .js #act-1 .dropped-card {
    animation: card-settle 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .js #act-1 .chip-missing {
    animation: chip-fade 380ms ease-out 620ms both;
  }
  .js #act-1 .act1-copy {
    animation: headline-set 480ms cubic-bezier(0.22, 0.9, 0.3, 1) 900ms both;
  }

  @keyframes card-settle {
    from { transform: translateY(-30px) rotate(0.6deg); opacity: 0.4; }
    to { transform: translateY(0) rotate(-1.8deg); opacity: 0.82; }
  }
  @keyframes chip-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes headline-set {
    from { transform: translateY(10px); }
    to { transform: translateY(0); }
  }

  /* Scroll reveals: 400ms, but distance and easing differ per act */
  #act-2 { --rev-dist: 20px; --rev-ease: cubic-bezier(0.22, 0.8, 0.32, 1); }
  #act-3 { --rev-dist: 12px; --rev-ease: cubic-bezier(0.33, 1, 0.5, 1); }
  #act-4 { --rev-dist: 24px; --rev-ease: cubic-bezier(0.19, 0.86, 0.42, 1.02); }
  #act-5 { --rev-dist: 14px; --rev-ease: ease-out; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(var(--rev-dist, 16px));
    transition: opacity 400ms var(--rev-ease, ease-out), transform 400ms var(--rev-ease, ease-out);
  }
  .js [data-reveal].is-seen { opacity: 1; transform: translateY(0); }
  .js .composer[data-reveal].is-seen { transform: translateY(0) rotate(-0.6deg); }
  .js .queue-row-attention[data-reveal].is-seen { transform: translateY(0) rotate(0.55deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
