/* Homepage — warm paper, teal ink, restrained coral.
   Confident educational brand: clearer hierarchy, fewer heavy outlines. */

.homepage {
  --paper: var(--vooral-paper, #f8f5f2);
  --paper-deep: var(--vooral-paper-deep, #ebe4dc);
  --ink: var(--vooral-ink, #174b4a);
  --ink-soft: var(--vooral-ink-soft, #3a5c5c);
  --ink-mute: var(--vooral-ink-soft, #5a7272);
  --surface: var(--vooral-surface, #fffcf9);
  --accent: var(--vooral-accent, #d05638);
  --accent-hover: var(--vooral-accent-hover, #b8482e);
  --warm: var(--vooral-warm, #e87557);
  --warm-tint: var(--vooral-warm-tint, #fff0eb);
  --shadow-sm: var(--vooral-shadow-sm, 2px 2px 0 0 #174b4a);
  --shadow: var(--vooral-shadow, 4px 4px 0 0 #174b4a);
  --shadow-lg: var(--vooral-shadow-lg, 8px 8px 0 0 #174b4a);
  --radius: var(--vooral-radius, 1.5rem);
  --radius-sm: var(--vooral-radius-sm, 0.75rem);
  --radius-pill: var(--vooral-radius-pill, 9999px);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-body, "Bricolage Grotesque", system-ui, sans-serif);
}

.homepage * { box-sizing: border-box; }
.homepage [hidden] { display: none !important; }
.homepage a { color: inherit; text-underline-offset: 0.2em; }
.homepage a:hover { color: var(--accent-hover); }
.homepage :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.homepage p { margin: 0 0 1em; max-width: 58ch; }

.homepage h1,
.homepage h2,
.homepage h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
  margin: 0 0 0.55em;
}
.homepage h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); max-width: 14ch; }
.homepage h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); max-width: 18ch; }
.homepage h3 { font-size: 1.12rem; line-height: 1.25; letter-spacing: -0.02em; }

.home-wrap { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.home-section { padding-block: 56px; }

.home-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px !important;
  color: var(--ink-mute);
}
.home-eyebrow-on-ink { color: #b8c4c3; }
.home-lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 48ch; }

/* Header + nav */
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 22%, transparent);
}
.home-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  min-height: 44px;
}
.home-nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px 6px;
  font-size: 0.95rem;
  font-weight: 700;
}
.home-nav-desktop a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.home-nav-desktop a[href="/demo"] {
  background: var(--warm-tint);
  border: 1.5px solid color-mix(in oklab, var(--ink) 35%, transparent);
}
.home-nav-mobile { display: none; position: relative; }
.home-nav-mobile > summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.home-nav-mobile > summary::-webkit-details-marker { display: none; }
.home-nav-toggle,
.home-nav-toggle::before,
.home-nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  position: relative;
}
.home-nav-toggle::before,
.home-nav-toggle::after {
  content: "";
  position: absolute;
  left: 0;
}
.home-nav-toggle::before { top: -6px; }
.home-nav-toggle::after { top: 6px; }
.home-nav-mobile nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: min(280px, 80vw);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.home-nav-mobile nav a {
  text-decoration: none;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.home-nav-mobile nav a[href="/demo"] {
  background: var(--warm-tint);
}
.home-skip { position: absolute; left: -9999px; }
.home-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 40;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 800;
}

/* Hero */
.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-block: 48px 40px;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
}
.home-hero-visual { position: relative; min-width: 0; }
.home-lead {
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 42ch;
}
.home-trust-line {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 10px !important;
}
.home-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 22px 14px;
}
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  background: var(--accent);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.25;
  text-align: center;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.home-button:hover {
  background: var(--accent-hover);
  color: #fff !important;
}
.home-button:active { filter: brightness(0.96); }
.home-button-secondary {
  background: var(--surface);
  color: var(--ink) !important;
}
.home-button-secondary:hover {
  background: var(--warm-tint);
  color: var(--ink) !important;
}
.home-link {
  display: inline;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
.home-meta {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-mute);
  max-width: 48ch;
}

/* Hero product composition */
.home-hero-product {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: 520px;
}
.home-hero-main {
  position: absolute;
  inset: 8% 8% 18% 0;
  margin: 0;
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 28px color-mix(in oklab, var(--ink) 14%, transparent);
}
.home-hero-main img,
.home-hero-rubric img {
  display: block;
  width: 100%;
  height: auto;
}
.home-hero-rubric {
  position: absolute;
  width: 38%;
  right: 0;
  bottom: 0;
  margin: 0;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 22px color-mix(in oklab, var(--ink) 16%, transparent);
  z-index: 2;
}
.home-hero-pins {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  max-width: 52%;
  pointer-events: none;
  user-select: none;
}
.home-hero-pins li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-hero-pins span {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  flex-shrink: 0;
}

.home-shot {
  margin: 0;
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px color-mix(in oklab, var(--ink) 12%, transparent);
}
.home-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}
.home-shot-tall {
  --shot-frame: 360px;
  max-height: var(--shot-frame);
}
.home-shot-tall:focus { outline: none; }
.home-shot-tall:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.home-shot-tall img {
  width: 100%;
  height: auto;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    .home-shot-tall:hover img {
      will-change: transform;
      animation: home-shot-pan 22s ease-in-out infinite alternate;
    }
  }
  .home-shot-tall:focus-within img {
    will-change: transform;
    animation: home-shot-pan 22s ease-in-out infinite alternate;
  }
}
@keyframes home-shot-pan {
  0%, 10% { transform: translate3d(0, 0, 0); }
  90%, 100% { transform: translate3d(0, min(0px, calc(var(--shot-frame) - 100%)), 0); }
}

/* Trust */
.home-trust {
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
}
.home-trust h2 { max-width: 16ch; }
.home-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
  margin-top: 8px;
}
.home-trust-grid p {
  margin: 0;
  color: var(--ink-soft);
  max-width: none;
}

/* Pain — short */
.home-pain {
  padding-block: 40px;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
}
.home-pain h2 { max-width: 14ch; }

/* Workflow */
.home-ink {
  background: var(--ink);
  color: var(--paper);
}
.home-ink h2 { color: var(--paper); max-width: 16ch; }
.home-ink a { color: #fff; }
.home-ink a:hover { color: var(--warm); }
.home-ink .home-link { color: #fff; }
.home-ink :focus-visible { outline-color: var(--warm); }

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  border: 1.5px solid color-mix(in oklab, #fff 55%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
}
.home-steps li {
  display: flex;
  flex-direction: column;
  padding: 20px 16px 16px;
  border-right: 1.5px solid color-mix(in oklab, #fff 45%, transparent);
  min-width: 0;
}
.home-steps li:last-child { border-right: 0; }
.home-steps li > span {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--warm);
  margin-bottom: 12px;
  line-height: 1;
}
.home-steps h3 { color: #fff; }
.home-steps p {
  font-size: 0.92rem;
  margin: 0;
  color: #c5d0cf;
  max-width: none;
  flex: 1;
}
.home-steps .home-shot {
  margin-top: 16px;
  border-color: color-mix(in oklab, #fff 70%, transparent);
  box-shadow: none;
  /* submission_page.webp 1400×813 is the shortest width-constrained frame */
  aspect-ratio: 1400 / 813;
  width: 100%;
  height: auto;
  max-height: none;
  container-type: size;
  --shot-frame: 100cqh;
}
.home-quiet-cta {
  margin: 24px 0 0 !important;
  font-weight: 700;
  max-width: none;
}

/* Marking */
.home-marking {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
}
.home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 18px 0 20px;
}
.home-tags li {
  font-size: 0.9rem;
  font-weight: 800;
  border: 1.5px solid color-mix(in oklab, var(--ink) 45%, transparent);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  background: var(--surface);
}
.home-feedback-example { margin: 0 0 12px; max-width: 40ch; }
.home-generic {
  font-size: 1.02rem;
  color: var(--ink-mute);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  margin-bottom: 10px !important;
}
.home-feedback-example > div {
  background: var(--warm-tint);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
  overflow: hidden;
}
.home-feedback-example > div p { margin: 8px 0 0; max-width: none; }

.home-marking-panel {
  margin: 0;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px color-mix(in oklab, var(--ink) 10%, transparent);
}

/* Moderation + peer feature blocks */
.home-moderation,
.home-peer {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
}
.home-feature-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 48ch;
}
.home-feature-points li {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.home-feature-points strong {
  color: var(--ink);
  font-weight: 800;
}
.home-moderation-panel {
  margin: 0;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px color-mix(in oklab, var(--ink) 10%, transparent);
}
.home-mod {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.home-mod-meta,
.home-mod-foot {
  margin: 0 !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  max-width: none;
}
.home-mod-status {
  margin: 0 !important;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: none;
}
.home-mod-rows {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1.5px solid color-mix(in oklab, var(--ink) 22%, transparent);
}
.home-mod-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
  font-size: 0.95rem;
}
.home-mod-rows strong {
  font-variant-numeric: tabular-nums;
}
.home-peer .home-shot {
  margin: 0;
}
.home-peer .home-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  box-shadow: 0 8px 20px color-mix(in oklab, var(--ink) 10%, transparent);
}

/* Compact extras — flat cells, not a card wall */
.home-extras {
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
}
.home-extras-grid {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1.5px solid color-mix(in oklab, var(--ink) 28%, transparent);
}
.home-extras-grid li {
  padding: 22px 20px 22px 0;
  border-bottom: 1.5px solid color-mix(in oklab, var(--ink) 22%, transparent);
  border-right: 1.5px solid color-mix(in oklab, var(--ink) 22%, transparent);
}
.home-extras-grid li:nth-child(3n) {
  border-right: 0;
  padding-right: 0;
}
.home-extras-grid li:nth-child(n + 4) {
  border-bottom: 0;
}
.home-extras-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.home-extras-grid p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 36ch;
}
.home-qf {
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-qf-label {
  margin: 0 !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  max-width: none;
}
.home-qf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
}
.home-qf-tags li {
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid color-mix(in oklab, var(--ink) 40%, transparent);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  background: var(--paper);
}
.home-qf-tags li:nth-child(1) { background: #e8f4f1; }
.home-qf-tags li:nth-child(2) { background: #fde8e4; }
.home-qf-tags li:nth-child(3) { background: #eef0fa; }
.home-qf-tags li:nth-child(4) { background: #fef3e2; }
.home-qf-tags li:nth-child(5) { background: #e7f3fb; }
.home-qf-tags li:nth-child(6) { background: #f3eef8; }
.home-qf-compose {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.home-qf-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1.5px solid color-mix(in oklab, var(--ink) 40%, transparent);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.home-qf-field {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.9rem;
  color: var(--ink-mute);
  border: 1.5px solid color-mix(in oklab, var(--ink) 40%, transparent);
  border-radius: var(--radius-sm);
  background: var(--paper);
  pointer-events: none;
}
.home-qf-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  pointer-events: none;
}
.home-qf-list {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-qf-list li {
  padding: 12px 14px;
  background: var(--paper-deep);
  border: 1.5px solid color-mix(in oklab, var(--ink) 30%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
}
.home-qf-list li .home-qf-time {
  min-height: 0;
  padding: 2px 8px;
  margin-right: 6px;
  font-size: 0.78rem;
  vertical-align: middle;
}
.home-qf-list strong { font-size: 0.92rem; }
.home-qf-list p {
  margin: 6px 0 0 !important;
  font-size: 0.9rem;
  max-width: none;
}
.home-qf-record {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1.5px solid color-mix(in oklab, var(--ink) 40%, transparent);
  border-radius: var(--radius-pill);
  background: var(--paper);
  pointer-events: none;
}

/* Templates */
.home-band {
  background: var(--paper-deep);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
}
.home-resources {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 24px 0;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.home-resources li {
  padding: 20px 18px;
  border-right: 1.5px solid color-mix(in oklab, var(--ink) 35%, transparent);
}
.home-resources li:last-child { border-right: 0; }
.home-resources h3 { font-size: 1.08rem; }
.home-resources h3 a { text-decoration: none; }
.home-resources p { font-size: 0.9rem; }
.home-community {
  max-width: 62ch;
  font-size: 0.95rem;
  margin-top: 4px !important;
  color: var(--ink-soft);
}

/* Free + pricing */
.home-free {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.home-free .home-meta { color: #a8b4b3; }
.home-free a:hover { color: var(--warm); }
.home-free .home-button { background: var(--accent); }
.home-free .home-button-secondary {
  background: transparent;
  color: #fff !important;
  border-color: #fff;
}
.home-free .home-button-secondary:hover {
  background: color-mix(in oklab, #fff 12%, transparent);
  color: #fff !important;
}
.home-free .home-link { color: #fff; }
.home-free :focus-visible { outline-color: var(--warm); }
.home-free-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}
.home-free h2 { color: #fff; max-width: 14ch; }
.home-free .home-lead { color: #d0d8d7; }
.home-free-points {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  max-width: 48ch;
}
.home-free-points li {
  position: relative;
  padding: 10px 0 10px 1.1em;
  border-top: 1px solid color-mix(in oklab, #fff 22%, transparent);
  font-size: 0.95rem;
  color: #d0d8d7;
}
.home-free-points li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--warm);
  font-weight: 800;
}
.home-price {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.home-pricing h2 { max-width: 16ch; }
.home-billing {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 28px;
}
.home-billing button {
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid color-mix(in oklab, var(--ink) 35%, transparent);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.home-billing button[aria-checked="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.home-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 0;
  margin-bottom: 18px;
}
.home-price-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 0;
  border: 1.5px solid color-mix(in oklab, var(--ink) 22%, transparent);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
}
.home-price-card-school {
  border-color: var(--ink);
  background: color-mix(in oklab, var(--warm) 14%, var(--surface));
}
.home-price-card h3 {
  margin: 0 0 8px;
}
.home-price-desc {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}
.home-price-card .home-price { display: inline; }
.home-price-period { font-weight: 700; }
.home-price-note {
  margin: 4px 0 14px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.home-price-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  align-self: start;
}
.home-price-card li {
  padding: 8px 0;
  border-top: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
  font-size: 0.95rem;
}
.home-price-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 18px;
  margin-top: 0;
}
.home-price-panel[hidden] {
  display: none !important;
}
.home-price-card .home-actions {
  margin: 0;
}
.home-price-card .home-actions .home-button {
  width: fit-content;
  align-self: flex-start;
}
.home-pricing-footnotes {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-pricing-footnotes .home-meta {
  max-width: none;
}

/* Fallback when subgrid is unavailable: keep equal-height cards and bottom CTAs */
@supports not (grid-template-rows: subgrid) {
  .home-price-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    grid-row: auto;
  }
  .home-pricing-grid {
    align-items: stretch;
  }
  .home-price-card ul {
    flex: 1 1 auto;
  }
  .home-price-panel {
    margin-top: auto;
  }
}

/* FAQ */
.home-faq {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 36px;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
}
.home-faq h2 { max-width: 10ch; }
.home-faq details {
  border-bottom: 1.5px solid color-mix(in oklab, var(--ink) 28%, transparent);
  padding: 0;
  margin: 0;
}
.home-faq summary {
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 800;
  padding: 14px 0;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-weight: 800;
  color: var(--accent);
}
.home-faq details[open] > summary::after { content: "−"; }
.home-faq details::details-content {
  display: block;
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  interpolate-size: allow-keywords;
  transition:
    block-size 0.28s ease,
    opacity 0.22s ease,
    content-visibility 0.28s allow-discrete;
}
.home-faq details[open]::details-content {
  block-size: auto;
  opacity: 1;
}
@starting-style {
  .home-faq details[open]::details-content {
    block-size: 0;
    opacity: 0;
  }
}
.home-faq details p {
  margin: 0;
  padding: 0 0 16px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.home-compare { margin-top: 20px !important; max-width: none; }
@media (prefers-reduced-motion: reduce) {
  .home-faq details::details-content { transition: none; }
}

.home-final {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  background: var(--warm-tint);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  margin-block: 40px 48px;
  padding: 28px 32px;
}
.home-final h2 { margin: 0; max-width: 16ch; }
.home-final .home-meta { margin: 10px 0 0; }
.home-final-actions { margin: 0; }
.home-final-actions .home-button { min-width: 11.5rem; }

.home-footer {
  border-top: 1px solid color-mix(in oklab, var(--ink) 22%, transparent);
  padding-block: 32px 48px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  font-size: 0.88rem;
  color: var(--ink-mute);
}
.home-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 520px;
  align-content: start;
  font-weight: 700;
}
.home-footer nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.home-cookie {
  position: fixed;
  bottom: 12px;
  right: 12px;
  left: auto;
  max-width: 360px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px color-mix(in oklab, var(--ink) 18%, transparent);
  padding: 14px 16px;
  z-index: 20;
  font-size: 0.85rem;
}
.home-cookie p { max-width: none; margin-bottom: 12px; }
.home-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.home-cookie button {
  font: inherit;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.home-cookie button[data-cookie-accept] {
  background: var(--accent);
  color: #fff;
}
.home-cookie button[data-cookie-accept]:hover {
  background: var(--accent-hover);
  color: #fff;
}

@media (max-width: 900px) {
  .home-hero,
  .home-marking,
  .home-moderation,
  .home-peer,
  .home-free-inner,
  .home-pricing-grid,
  .home-faq,
  .home-trust-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-peer .home-shot { order: 2; }
  .home-peer-copy { order: 1; }
  .home-extras-grid {
    grid-template-columns: 1fr;
  }
  .home-extras-grid li {
    border-right: 0;
    padding-right: 0;
    border-bottom: 1.5px solid color-mix(in oklab, var(--ink) 22%, transparent);
  }
  .home-extras-grid li:nth-child(n + 4) {
    border-bottom: 1.5px solid color-mix(in oklab, var(--ink) 22%, transparent);
  }
  .home-extras-grid li:last-child {
    border-bottom: 0;
  }
  /* Keep subgrid row alignment; space cards with margin, not parent row-gap */
  .home-pricing-grid {
    row-gap: 0;
    column-gap: 0;
  }
  .home-price-card + .home-price-card {
    margin-top: 28px;
  }
  .home-hero-product {
    aspect-ratio: 5 / 4;
    max-height: 440px;
    max-width: 560px;
  }
  .home-steps { grid-template-columns: 1fr; }
  .home-steps li {
    border-right: 0;
    border-bottom: 1.5px solid color-mix(in oklab, #fff 45%, transparent);
  }
  .home-steps li:last-child { border-bottom: 0; }
  .home-resources { grid-template-columns: 1fr; }
  .home-resources li {
    border-right: 0;
    border-bottom: 1.5px solid color-mix(in oklab, var(--ink) 30%, transparent);
  }
  .home-resources li:last-child { border-bottom: 0; }
  .home-section { padding-block: 44px; }
  .home-final { margin-block: 32px 40px; }
  .home-shot-tall { --shot-frame: 300px; }
}

@media (max-width: 640px) {
  .home-wrap { width: calc(100% - 24px); }
  .home-nav-desktop { display: none; }
  .home-nav-mobile { display: block; }
  .home-hero { padding-top: 28px; align-items: start; gap: 24px; }
  .home-hero-product {
    aspect-ratio: 1 / 1;
    max-height: 380px;
  }
  .home-hero-main { inset: 4% 10% 28% 0; }
  .home-hero-rubric { width: 42%; }
  .home-hero-pins {
    max-width: 70%;
    font-size: 0.72rem;
  }
  .homepage h1 { max-width: 12ch; font-size: clamp(2.25rem, 11vw, 3rem); }
  .home-actions { flex-direction: column; align-items: stretch; }
  .home-actions .home-button { width: 100%; }
  .home-price-card .home-actions .home-button {
    width: fit-content;
    align-self: flex-start;
  }
  .home-shot-tall { --shot-frame: 240px; }
  .home-final {
    display: block;
    margin-block: 24px 36px;
    padding: 22px;
  }
  .home-final-actions {
    margin-top: 18px;
    flex-direction: column;
  }
  .home-footer { display: block; }
  .home-footer nav { margin-top: 20px; }
  .home-faq { grid-template-columns: 1fr; }
  .home-cookie {
    left: 12px;
    right: 12px;
    max-width: none;
  }
  .homepage p,
  .homepage a { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .homepage * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
