/* MySummaries public site.
   Palette mirrors the portal's mid theme (hosting/src/app.css) — warm sepia
   paper, brown ink, portal orange kept for signal moments only. Single-theme
   by design: the site commits to the mid look. */

:root {
  --paper-1: #eae1d6;
  --paper-2: #e2d7ca;
  --paper-3: #d4c7b8;
  --surface: #f4eee6;
  --surface-2: #efe7dc;
  --ink: #241e19;
  --ink-2: #4a4137;
  --ink-3: #706558;
  --brown: #5c4634;
  --line: #d4c7b5;
  --line-soft: #ddd2c2;
  --accent: #ef562f;
  --accent-soft: #fe795d;
  --accent-wash: #f2ddc6;
  --accent-ink: #7c2d12;
  --deep: #2a231d;
  --deep-2: #382f27;
  --deep-line: #4a3f34;
  --cream: #f1e8dc;
  --cream-2: #cbbba7;

  --font-display: "STIX Two Text", "Charter", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  /* Wordmark only — headings stay on --font-display. */
  --font-wordmark: "Fraunces", "STIX Two Text", Georgia, serif;

  --shell: 71rem;
  --radius: 14px;
  --radius-small: 9px;
  --shadow-cell: 0 1px 2px rgb(42 35 29 / 0.06), 0 10px 30px -12px rgb(42 35 29 / 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper-1);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

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

.shell {
  width: min(var(--shell), 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--deep);
  color: var(--cream);
  border-radius: var(--radius-small);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.eyebrow-light {
  color: var(--cream-2);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.section-head h2,
.manifesto-head h2,
.oratory-copy h2,
.mobile-copy h2,
.cta-inner h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 38rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgb(239 86 47 / 0.55);
}

.button-primary:hover {
  background: #d94a26;
  transform: translateY(-1px);
}

.button-small {
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
}

.button-large {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.text-link:hover {
  color: var(--accent-ink);
  border-color: var(--accent-soft);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(234 225 214 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgb(234 225 214 / 0.94);
  border-bottom-color: var(--line-soft);
}

/* Over the dark hero the header wears the dark treatment; syncHeader drops
   .over-dark once the hero scrolls past, so the paper look below is
   untouched. Declared after .is-scrolled so it wins while both apply. */
.site-header.over-dark {
  background: rgb(25 20 16 / 0.7);
}

.site-header.over-dark.is-scrolled {
  background: rgb(25 20 16 / 0.92);
  border-bottom-color: var(--deep-line);
}

.site-header.over-dark .primary-nav > a:not(.button) {
  color: var(--cream-2);
}

.site-header.over-dark .primary-nav > a:not(.button):hover {
  color: var(--cream);
}

.site-header.over-dark .brand-type {
  color: var(--cream);
}

.site-header.over-dark .mark-path {
  stroke: var(--cream-2);
}

.site-header.over-dark .mark-node {
  fill: var(--cream-2);
}

.site-header.over-dark .mark-node-synapse {
  fill: var(--accent);
}

.site-header.over-dark .nav-toggle {
  border-color: var(--deep-line);
}

.site-header.over-dark .nav-toggle span {
  background: var(--cream);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.mark-path {
  fill: none;
  stroke: var(--brown);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-node {
  fill: var(--brown);
}

.mark-node-synapse {
  fill: var(--accent);
}

/* The lockup. The tagline is tracked out until its ink is exactly as wide as
   the wordmark above it, and both ratios below are scale-invariant — set --wm
   and the pair stays locked at any size. They are tuned to Fraunces 600 at
   opsz 100 against the string "Summarise, revise, recall"; change either the
   face or the words and the match has to be re-measured (scripts/brandKit.mjs
   prints the numbers). */
.brand-type {
  --wm: 1.18rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.brand-type strong {
  font-family: var(--font-wordmark);
  font-size: var(--wm);
  font-weight: 600;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 100;
}

.brand-type small {
  font-size: calc(var(--wm) * 0.308);
  letter-spacing: 0.18em;
  margin-right: -0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

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

.primary-nav > a:not(.button) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.18s ease;
}

.primary-nav > a:not(.button):hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

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

/* The one dark band above the fold — the brain animation needs the black to
   glow against. Everything below stays paper. */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 10vw, 8rem) clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(58rem 32rem at 78% 14%, rgb(254 121 93 / 0.1), transparent 62%),
    linear-gradient(180deg, #262019, #191410);
  color: var(--cream);
}

/* The hemispheres animation sits behind the copy as an incidental field. */
.hero-synapse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.hero-copy {
  max-width: 36rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  letter-spacing: -0.015em;
  color: var(--cream);
}

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

.hero .eyebrow {
  color: var(--cream-2);
}

.hero .text-link {
  color: var(--cream-2);
  border-color: var(--deep-line);
}

.hero .text-link:hover {
  color: var(--accent-soft);
  border-color: var(--accent-soft);
}

.hero-lead {
  margin-top: 1.4rem;
  font-size: 1.14rem;
  color: var(--cream-2);
  max-width: 33rem;
}

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

/* --- Manifesto ------------------------------------------------------------ */

.manifesto {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
}

.manifesto-head {
  max-width: 40rem;
}

.manifesto-body {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
  align-items: start;
}

.manifesto-copy {
  display: grid;
  gap: 1.2rem;
  color: var(--ink-2);
  max-width: 36rem;
}

.manifesto-quote {
  margin: 0;
  padding: 2rem 2.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-cell);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}

.manifesto-quote em {
  color: var(--accent-ink);
}

.difference {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.difference h3 {
  font-size: 1.35rem;
  margin-bottom: 1.6rem;
}

.difference-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.difference-grid li {
  background: var(--paper-2);
  padding: 1.4rem 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.difference-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 600;
}

.difference-grid strong em {
  font-style: italic;
}

/* --- Pillars --------------------------------------------------------------- */

.pillars {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--paper-1);
}

.pillar-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.pillar {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.7rem;
  box-shadow: var(--shadow-cell);
}

.pillar-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.pillar h3 {
  margin: 0.55rem 0 0.6rem;
  font-size: 1.3rem;
}

.pillar p {
  font-size: 0.94rem;
  color: var(--ink-2);
}

/* --- Oral examiner band ------------------------------------------------------ */

.oratory {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: linear-gradient(180deg, var(--deep), #241d17);
  color: var(--cream);
}

.oratory-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.oratory h2 {
  color: var(--cream);
}

.oratory-copy p {
  margin-top: 1.15rem;
  color: var(--cream-2);
  max-width: 34rem;
}

.oratory-copy p em {
  color: var(--accent-soft);
  font-style: italic;
}

.exchange {
  display: grid;
  gap: 0.9rem;
  background: var(--deep-2);
  border: 1px solid var(--deep-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.5);
}

.exchange-row {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-small);
  font-size: 0.93rem;
  line-height: 1.55;
}

.exchange-who {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.exchange-who i {
  font-style: normal;
  opacity: 0.65;
  letter-spacing: 0.06em;
}

.exchange-examiner {
  background: rgb(0 0 0 / 0.25);
  border: 1px solid var(--deep-line);
  color: var(--cream);
}

.exchange-examiner .exchange-who {
  color: var(--accent-soft);
}

.exchange-you {
  background: rgb(241 232 220 / 0.08);
  border: 1px solid rgb(241 232 220 / 0.14);
  color: var(--cream);
}

.exchange-you .exchange-who {
  color: var(--cream-2);
}

.exchange-score {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.score-chip {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgb(241 232 220 / 0.1);
  border: 1px solid rgb(241 232 220 / 0.16);
  color: var(--cream-2);
}

.score-chip b {
  color: var(--cream);
  font-weight: 600;
}

.score-chip-flag {
  background: rgb(254 121 93 / 0.14);
  border-color: rgb(254 121 93 / 0.35);
  color: var(--accent-soft);
}

.exchange-ideal {
  border-top: 1px solid var(--deep-line);
  padding-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--cream-2);
}

.exchange-ideal span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.3rem;
}

/* --- Showcase ----------------------------------------------------------------- */

.showcase {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 1.4rem;
}

.demo-cell {
  margin: 0;
}

.demo-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-cell);
  padding: 0.55rem;
}

.demo-frame video,
.demo-slot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius) - 5px);
  border: 0;
}

.demo-slot {
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(120deg, rgb(92 70 52 / 0.05) 0%, transparent 40%),
    linear-gradient(180deg, var(--surface-2), var(--paper-2));
}

.demo-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -6px rgb(42 35 29 / 0.35);
  position: relative;
}

.demo-play::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--accent);
}

.demo-badge {
  position: absolute;
  bottom: 0.85rem;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  background: rgb(244 238 230 / 0.85);
  border: 1px solid var(--line);
}

.demo-cell figcaption {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0.4rem 0;
}

.demo-cell figcaption strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
}

.demo-cell figcaption span {
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* --- Mobile --------------------------------------------------------------------- */

.mobile {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--paper-1);
}

.mobile-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.phone {
  position: relative;
  width: min(270px, 80%);
  margin-inline: auto;
  background: var(--deep);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 60px -24px rgb(42 35 29 / 0.45);
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  border-radius: 999px;
  background: var(--deep);
  z-index: 2;
}

.phone .demo-frame {
  padding: 0;
  border: 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: none;
}

.phone .demo-frame video,
.phone .demo-slot {
  aspect-ratio: 9 / 19;
  border-radius: 32px;
}

.mobile-copy p {
  margin-top: 1.1rem;
  color: var(--ink-2);
  max-width: 32rem;
}

.mobile-points {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.mobile-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.mobile-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.mobile-note {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-top: 1.4rem !important;
}

/* --- CTA + footer ------------------------------------------------------------------ */

.cta {
  padding-block: clamp(4rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--paper-2), var(--paper-3));
  border-top: 1px solid var(--line-soft);
}

.cta-inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.cta-inner p {
  color: var(--ink-2);
}

.cta-inner .button {
  margin-top: 0.6rem;
}

.site-footer {
  background: var(--deep);
  color: var(--cream-2);
  padding-block: 3rem 2.2rem;
}

.footer-shell {
  display: grid;
  gap: 1.8rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand .brand-mark {
  width: 46px;
  height: 46px;
}

/* The footer is the one place with room for the full lockup at its minimum
   legible size — 1.9rem puts the tracked tagline at ~9.4px. */
.footer-brand .brand-type {
  --wm: 1.9rem;
}

.footer-brand .brand-type small {
  color: var(--cream-2);
}

.footer-brand .mark-path {
  stroke: var(--cream);
}

.footer-brand .mark-node {
  fill: var(--cream);
}

.footer-brand .mark-node-synapse {
  fill: var(--accent-soft);
}

/* Size comes from --wm on .brand-type — do not set font-size here or the
   wordmark and its width-matched tagline scale off different numbers. */
.footer-brand strong {
  color: var(--cream);
}

.footer-brand p {
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--cream-2);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--cream);
}

.footer-fine {
  font-size: 0.78rem;
  color: rgb(203 187 167 / 0.6);
  border-top: 1px solid var(--deep-line);
  padding-top: 1.4rem;
}

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

.contact-page {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--paper-1), var(--paper-2));
  min-height: 60vh;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-copy h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  letter-spacing: -0.015em;
}

.contact-copy p {
  margin-top: 1.1rem;
  color: var(--ink-2);
  max-width: 30rem;
}

.contact-column {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}

/* The deletion instructions only concern people asking to delete, so they are
   hidden until that subject is picked. `option:checked` tracks selectedness,
   which is live state — so the ?subject=delete preselect shows it too, with no
   JS involved. No `.reveal` on this box: the scroll observer never fires for a
   display:none element, which would leave it at opacity 0 when unhidden. */
.contact-aside {
  display: none;
  padding: 1.3rem 1.5rem;
  background: var(--accent-wash);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
}

.contact-layout:has(select[name="subject"] option[value="delete"]:checked) .contact-aside {
  display: block;
}

.contact-aside h2 {
  font-size: 1.05rem;
}

.contact-aside p {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-cell);
  padding: 1.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0.65rem 0.85rem;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 9rem;
}

.contact-form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
}

/* Honeypot — visually gone, still in the form for bots to fill. */
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.form-status.is-error {
  color: var(--accent-ink);
  font-weight: 600;
}

.form-success {
  display: grid;
  gap: 0.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--accent-wash);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  color: var(--accent-ink);
}

.form-success strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* --- Reveal-on-scroll --------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease var(--delay, 0ms), transform 0.7s ease var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --- Legal pages ---------------------------------------------------------------------- */

/* One column, not the contact page's two: legal text is read top to bottom and
   a measure this narrow is the whole reason it stays readable. */
.legal-layout {
  max-width: 44rem;
}

.legal-version {
  margin-top: 0.9rem;
  color: var(--ink-2);
  font-size: 0.85rem;
}

.legal-body {
  margin-top: clamp(2rem, 4vw, 2.8rem);
  display: grid;
  gap: 1.9rem;
}

.legal-body h2 {
  font-size: 1.12rem;
  letter-spacing: -0.005em;
}

.legal-body p {
  margin-top: 0.6rem;
  color: var(--ink-2);
}

/* --- Responsive ---------------------------------------------------------------------- */

@media (max-width: 62rem) {
  .manifesto-body,
  .oratory-layout,
  .mobile-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .difference-grid,
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-visual {
    order: 2;
  }
}

@media (max-width: 44rem) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.3rem 1.5rem 1.6rem;
    background: var(--paper-1);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .site-header.over-dark .primary-nav {
    background: #1d1712;
    border-bottom-color: var(--deep-line);
  }

  .difference-grid,
  .pillar-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Motion preferences --------------------------------------------------------------- */

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button-primary:hover {
    transform: none;
  }
}
