/* PotterForm — production stylesheet
   Static, mobile-first, no runtime dependency. Design values preserved from
   the approved Claude-generated prototype pages under /prototype, with the
   approved Instrument Sans body typeface. Decorative-illustration motion is
   intentionally deferred to a later phase — every element here renders in
   its final, visible state. */

/* ---------- Fonts (local, self-hosted) ---------- */

@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/Newsreader-Variable.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/InstrumentSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/InstrumentSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/InstrumentSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */

:root {
  /* Color */
  --pf-canvas: #FBF8F4;
  --pf-surface: #F3EEE9;
  --pf-surface-strong: #E7DED8;
  --pf-ink: #2B2729;
  --pf-text-muted: #625B5F;
  --pf-plum: #6E3B5B;
  --pf-plum-hover: #593048;
  --pf-plum-soft: #EADDE5;
  --pf-white: #FFFDFC;
  --pf-control-border: #776C72;
  --pf-error: #9D342F;
  --pf-success: #356749;

  /* Type */
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --text-h1: clamp(2.25rem, 1.2rem + 3.4vw, 5rem);
  --text-h2: clamp(2.125rem, 1.4rem + 2.5vw, 3.5rem);
  --text-h3: clamp(1.3125rem, 1.15rem + 0.6vw, 1.5rem);
  --text-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --text-body: clamp(1rem, 0.97rem + 0.15vw, 1.125rem);
  --text-small: 0.875rem;

  /* Layout */
  --container-max: 75rem;
  --content-max: 48rem;
  --reading-max: 44rem;
  --page-gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section-space: clamp(4.5rem, 8vw, 8rem);
  --header-height: 64px;

  /* Radius / borders */
  --radius-small: 8px;
  --radius-control: 10px;
  --radius-panel: 20px;
  --border-width: 1px;

  /* Motion tokens (reserved for a later phase; unused for animation here) */
  --motion-fast: 160ms;
  --motion-base: 320ms;
  --motion-draw: 700ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 64rem) {
  :root { --header-height: 72px; }
}

/* ---------- Reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pf-canvas);
  color: var(--pf-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--pf-plum);
}
a:hover { color: var(--pf-plum-hover); }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--pf-plum);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--pf-ink);
}

/* Default major-section heading scale. h1 is always sized by a specific
   page/hero selector below; h3 is always sized by its card/list-item
   context. This h2 default is the fix for undersized section headings —
   every bare <h2> in the main content picks it up, while the smaller,
   deliberately-scoped h2 rules for legal and changelog entries (higher
   specificity) continue to override it as intended. */
h2 {
  font-size: var(--text-h2);
  line-height: 1.05;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

button {
  font-family: inherit;
}

/* ---------- Layout helpers ---------- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.container-narrow {
  max-width: var(--reading-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.section {
  padding: var(--section-space) 0;
  background: var(--pf-canvas);
}

.section-alt {
  background: var(--pf-surface);
}

.section-header {
  max-width: var(--content-max);
  margin: 0 0 3rem;
}
.section-header > *:not(:first-child) { margin-top: 20px; }
.section-header--narrow { max-width: 32rem; }

.section-flush-top { padding-top: 0; }

[id] { scroll-margin-top: calc(var(--header-height) + 12px); }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pf-text-muted);
  margin: 0 0 14px;
}
.eyebrow-tight { margin: 0; }

.lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--pf-text-muted);
  max-width: 42rem;
}

.body-text {
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--pf-text-muted);
  max-width: 42rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pf-plum);
  color: var(--pf-white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-control);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out);
}

.btn-sm { height: 48px; padding: 0 22px; }

.btn-primary {
  background: var(--pf-plum);
  color: var(--pf-white);
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--pf-plum-hover); color: var(--pf-white); }

.btn-secondary {
  background: transparent;
  color: var(--pf-ink);
  border-color: var(--pf-control-border);
}
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--pf-surface); border-color: var(--pf-ink); color: var(--pf-ink); }

.btn-on-plum {
  background: var(--pf-white);
  color: var(--pf-plum);
}
.btn-on-plum:hover, .btn-on-plum:focus-visible { background: var(--pf-plum-soft); color: var(--pf-plum); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pf-canvas);
  border-bottom: 1px solid var(--pf-surface-strong);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 26px);
  color: var(--pf-ink);
  letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--pf-ink); }
.wordmark svg { flex: 0 0 auto; }

.nav-desktop {
  display: none;
}

.nav-desktop-list {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--pf-ink);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--pf-ink); text-decoration: underline; }

/* The toggle sits inside header-inner's row visually, but the <details>
   element itself is a sibling of header-inner (a direct child of the
   sticky .site-header) so its panel renders as a normal block, in normal
   document flow, full width, directly below the header row — never a
   floating overlay. The toggle is pinned to the same row via absolute
   positioning against .site-header (its sticky positioning context). */
.nav-mobile { display: block; }

.nav-mobile-toggle {
  position: absolute;
  top: calc((var(--header-height) - 48px) / 2);
  right: var(--page-gutter);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--pf-control-border);
  border-radius: var(--radius-control);
  background: var(--pf-canvas);
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease-out);
}
.nav-mobile-toggle::-webkit-details-marker { display: none; }
.nav-mobile-toggle:hover { background: var(--pf-surface); }

.nav-mobile-panel {
  border-top: 1px solid var(--pf-surface-strong);
  background: var(--pf-canvas);
  padding: 20px var(--page-gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
}

.nav-mobile-panel .nav-link { font-size: 16px; }

@media (min-width: 64rem) {
  .nav-desktop { display: flex; align-items: center; gap: 36px; }
  .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--pf-canvas);
  padding: clamp(1.5rem, 4vh, 3rem) 0;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vh, 56px);
  align-items: center;
}

.hero-copy { flex: 0.9 1 340px; min-width: 260px; }

.hero-title {
  font-size: var(--text-h1);
  line-height: 0.98;
  margin: 0 0 clamp(14px, 2vh, 24px);
}

.hero-lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--pf-text-muted);
  max-width: 42rem;
  margin: 0 0 clamp(20px, 3vh, 36px);
}

.hero-illustration-col {
  flex: 1.4 1 380px;
  min-width: 220px;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 4px 0 16px;
  width: 100%;
  max-width: 770px;
}

.hero-illustration-box {
  position: relative;
  width: min(420px, 78vw);
  aspect-ratio: 560 / 640;
}

.hero-wash {
  position: absolute;
  left: 13%;
  top: 0.5%;
  width: 74%;
  height: 97%;
  object-fit: contain;
  opacity: 0.9;
}

.hero-illustration-box svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (min-width: 64.0625rem) {
  .hero-illustration-box { width: auto; height: 525px; transform: scale(1.18); transform-origin: top center; }
}

/* ---------- Vessel illustration primitives (shared) ---------- */

.vessel-axis { stroke: var(--pf-control-border); stroke-width: 1; }
.vessel-profile, .vessel-mirror, .vessel-closure { fill: none; stroke: var(--pf-plum); stroke-width: 2; vector-effect: non-scaling-stroke; }
.vessel-measure { stroke: var(--pf-control-border); stroke-width: 1; fill: none; opacity: 0.7; }
.vessel-point { fill: var(--pf-ink); }
.vessel-label { fill: var(--pf-text-muted); font-size: 13px; font-family: var(--font-body); }

/* ---------- Product showcase ---------- */

.showcase-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
}

.showcase-media {
  flex: 1.6 1 620px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
}

.showcase-media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(43, 39, 41, 0.12);
}

.showcase-caption {
  font-size: 13px;
  color: var(--pf-text-muted);
  margin: 10px 0 0;
}

.mock-panel {
  flex: 1 1 300px;
  min-width: 260px;
  background: var(--pf-canvas);
  border: 1px solid var(--pf-surface-strong);
  border-radius: 4px;
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mock-svg {
  align-self: center;
  width: 62%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 200 / 307;
}
.mock-svg path { fill: var(--pf-plum-soft); stroke: var(--pf-plum); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mock-svg line { stroke: var(--pf-control-border); stroke-width: 1; stroke-dasharray: 2 5; }

.mock-controls { display: flex; flex-direction: column; gap: 18px; }

.mock-field-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pf-text-muted);
  margin-bottom: 10px;
}

.mock-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--pf-surface-strong);
  border-radius: 3px;
}

.mock-fill {
  position: absolute;
  left: 0; top: 0;
  height: 6px;
  background: var(--pf-plum);
  border-radius: 3px;
}

.mock-thumb {
  position: absolute;
  top: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--pf-plum);
  border: 3px solid var(--pf-canvas);
  box-shadow: 0 1px 4px rgba(43, 39, 41, 0.25);
  margin: -9px 0 0 -9px;
}

/* Static resting-state values for the illustrative height/width preview
   (matches the prototype's own documented static resting frame). */
.mock-fill--h { width: 40%; }
.mock-thumb--h { left: 40%; }
.mock-fill--w { width: 22%; }
.mock-thumb--w { left: 22%; }

.mock-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--pf-text-muted);
  margin: 0;
}

/* ---------- Product value / relationships ---------- */

.value-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.value-copy { flex: 1 1 420px; min-width: 300px; }
.value-copy h2 { max-width: 20ch; margin-bottom: 24px; }
.value-copy p { margin-bottom: 20px; max-width: none; }
.value-copy p:last-child { margin-bottom: 0; }

.value-graphic { flex: 1 1 360px; min-width: 280px; }

.rel-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 340 / 340;
}
.rel-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rel-diagram .vessel-label-accent { fill: var(--pf-plum); font-weight: 600; }
.rel-diagram .vessel-callout-line { stroke: var(--pf-control-border); stroke-width: 1; stroke-dasharray: 2 5; }
.rel-diagram .vessel-callout-point { fill: var(--pf-plum); transform-box: fill-box; transform-origin: 50% 50%; }
.rel-diagram .vessel-callout-text { fill: var(--pf-ink); font-size: 14px; font-weight: 600; font-family: var(--font-body); }

@media (max-width: 900px) {
  .rel-diagram, .about-diagram { max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 64rem) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 40rem) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  padding: 32px;
  background: var(--pf-canvas);
  border: 1px solid var(--pf-surface-strong);
  border-radius: 12px;
}

.icon-frame {
  position: relative;
  width: 71px;
  height: 71px;
  margin: 0 auto 20px;
}

.icon-frame svg { position: relative; width: 56px; height: 56px; }

.icon-wash {
  position: absolute;
  inset: -20%;
  width: 82px;
  height: 80px;
  object-fit: contain;
  opacity: 0.38;
  pointer-events: none;
}

.feature-card h3 { font-size: var(--text-h3); line-height: 1.2; margin: 0 0 12px; }
.feature-card p { font-size: 16px; line-height: 1.65; color: var(--pf-text-muted); margin: 0; }

/* ---------- How it works ---------- */

.steps-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.step { flex: 1 1 260px; min-width: 240px; }

.step .icon-frame { width: 64px; height: 64px; margin: 0 0 20px; }
.step .icon-frame svg { width: 64px; height: 64px; }
.step .icon-wash { inset: -22%; width: 144%; height: 144%; }

.step-number {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--pf-plum);
  margin-bottom: 10px;
}

.step h3 { font-size: var(--text-h3); margin: 0 0 12px; }
.step p { font-size: 16px; line-height: 1.65; color: var(--pf-text-muted); margin: 0; }

/* ---------- Who it's for ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.audience-item {
  padding: 0 32px 32px 0;
  border-left: none;
}

.audience-item + .audience-item {
  border-left: 1px solid var(--pf-surface-strong);
  padding-left: 32px;
}

.audience-item .icon-frame { width: 56px; height: 56px; margin: 0 0 20px; }
.audience-item .icon-frame svg { width: 56px; height: 56px; }
.audience-item .icon-wash { inset: -20%; width: 140%; height: 140%; }

.audience-item h3 { font-size: var(--text-h3); margin: 0 0 14px; }
.audience-item p { font-size: 16px; line-height: 1.65; color: var(--pf-text-muted); margin: 0; }

@media (max-width: 48rem) {
  .audience-item + .audience-item { border-left: none; padding-left: 0; }
}

/* ---------- About ---------- */

.about-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.about-copy { flex: 1 1 460px; min-width: 320px; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { margin-bottom: 20px; max-width: none; }
.about-copy p:last-child { margin-bottom: 0; }

.about-graphic { flex: 1 1 360px; min-width: 280px; }

.about-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 480 / 280;
  overflow: hidden;
}
.about-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.about-wash {
  position: absolute;
  left: 17%; top: -33%;
  width: 67%; height: 172%;
  object-fit: contain;
  opacity: 0.9;
  transform: rotate(90deg);
  pointer-events: none;
}

.flow-diagram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 6px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.flow-step span {
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-ink);
  white-space: nowrap;
}

.flow-connector {
  flex: 1 1 auto;
  min-width: 32px;
  width: 15%;
  height: 16px;
}
.flow-connector path { stroke: var(--pf-control-border); stroke-width: 1.5; fill: none; }

/* Created only by JavaScript for the one-time travelling-point animation;
   this rule never applies to anything present in the static markup. */
.flow-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--pf-plum);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 520px) {
  .flow-step span { white-space: normal; font-size: 12px; text-align: center; }
  .flow-diagram { gap: 4px; }
}

/* ---------- FAQ ---------- */

.faq-list { list-style: none; }

.faq-item {
  border-top: 1px solid var(--pf-surface-strong);
}

.faq-item summary {
  list-style: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-question {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--pf-ink);
}

.faq-icon {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 400;
  color: var(--pf-plum);
  line-height: 1;
}
.faq-icon::before { content: '+'; }
.faq-item[open] .faq-icon::before { content: '\2212'; }

.faq-answer {
  font-size: 16px;
  line-height: 1.65;
  color: var(--pf-text-muted);
  margin: 0 0 24px;
  padding-right: 40px;
}

/* ---------- Newsletter ---------- */

.newsletter-inner { max-width: 720px; margin: 0 auto; padding: 0 var(--page-gutter); }

.newsletter-form { margin-top: 32px; }

.newsletter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-end;
}

.form-field { flex: 1 1 260px; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--pf-control-border);
  border-radius: var(--radius-control);
  padding: 0 16px;
  font-size: 16px;
  font-family: var(--font-body);
  background: var(--pf-white);
  color: var(--pf-ink);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pf-text-muted);
}
.form-consent input { margin-top: 3px; }

.newsletter-credit {
  font-size: 12px;
  color: var(--pf-text-muted);
  margin: 12px 0 0;
}

/* ---------- Final CTA ---------- */

.cta-section { padding: clamp(3rem, 6vw, 5rem) 0; }

.cta-panel {
  background: var(--pf-plum);
  border-radius: var(--radius-panel);
  padding: clamp(2rem, 6vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.cta-copy { flex: 1 1 420px; max-width: 680px; }
.cta-copy h2 { color: var(--pf-white); margin: 0 0 20px; }
.cta-copy p { font-size: var(--text-lead); line-height: 1.55; color: var(--pf-plum-soft); margin: 0 0 32px; }

.cta-illustration { flex: 0 0 140px; width: 140px; height: 170px; display: none; }
.cta-illustration svg path { stroke: var(--pf-plum-soft); }

@media (min-width: 64rem) {
  .cta-illustration { display: block; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pf-white);
  border-top: 1px solid var(--pf-surface-strong);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-brand-name { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--pf-ink); }
.footer-tagline { font-size: 14px; color: var(--pf-text-muted); margin: 0; }

.footer-heading {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pf-text-muted);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.footer-links a { font-size: 15px; color: var(--pf-ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.share-links { display: flex; gap: 12px; list-style: none; }
.share-link {
  width: 36px; height: 36px;
  border: 1px solid var(--pf-surface-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pf-ink);
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease-out);
}
.share-link:hover { background: var(--pf-surface); }

.copy-status {
  font-size: 12px;
  color: var(--pf-text-muted);
  margin: 8px 0 0;
  min-height: 1em;
}

/* ---------- Simple pages (Legal, Changelog, 404) ---------- */

.page-header { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.page-header h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); line-height: 1.05; margin: 0 0 16px; }
.page-header .lead { max-width: 36rem; }
.page-meta { font-size: 15px; color: var(--pf-text-muted); margin: 0; }

.legal-section { margin-bottom: 32px; }
.legal-section h2, .legal-contact h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); line-height: 1.2; margin: 0 0 12px; }
.legal-section p { font-size: 16px; line-height: 1.7; color: var(--pf-text-muted); margin: 0; }
.legal-intro { font-size: 16px; line-height: 1.7; color: var(--pf-text-muted); margin: 0 0 32px; }
.legal-contact { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--pf-surface-strong); }

.legal-section p + p,
.legal-contact p + p { margin-top: 1rem; }

.legal-section ul {
  list-style: disc;
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}
.legal-section li + li { margin-top: 0.375rem; }
.legal-section ul + p { margin-top: 1rem; }

.changelog-entry { padding: 28px 0; border-top: 1px solid var(--pf-surface-strong); }
.changelog-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.changelog-tag { font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pf-plum); }
.changelog-date { font-size: 13px; color: var(--pf-text-muted); }
.changelog-entry h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); line-height: 1.2; margin: 0 0 10px; }
.changelog-entry p { font-size: 16px; line-height: 1.65; color: var(--pf-text-muted); margin: 0; }

.simple-footer {
  background: var(--pf-white);
  border-top: 1px solid var(--pf-surface-strong);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.simple-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.simple-footer-brand { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--pf-ink); }
.simple-header .header-inner { justify-content: space-between; }
.simple-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2vw, 28px);
  color: var(--pf-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* ---------- 404 ---------- */

.not-found-main {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.not-found-content { max-width: 32rem; text-align: center; }
.not-found-illustration { margin: 0 auto 32px; width: 120px; height: 150px; }
.not-found-content h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.1; margin: 0 0 14px; }
.not-found-content p { font-size: 16px; line-height: 1.6; color: var(--pf-text-muted); margin: 0 0 28px; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
