/* Ingathery marketing site — shared design system.
   Tokens deliberately match public/assets/css/app.css and the existing
   coming-soon page so the marketing site and the app read as one brand. */

:root {
  --ink: #2b2620;
  --muted: #6b6257;
  --muted-soft: #9a9084;
  --accent: #6d5f8f;
  --accent-hover: #5a4e7a;
  --accent-soft: #cfc4e4;
  --accent-subtle: #ece7f5;
  --thread-ink: #3d5a99;
  --xref-ink: #6b7686;

  --cream: #fffdf8;
  --page: #f7f4ef;
  --sunken: #f0ebe1;
  --border: #e5ddd0;
  --border-soft: #ede8df;

  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --shadow-raised: 0 1px 3px rgba(60, 50, 30, .08), 0 1px 2px rgba(60, 50, 30, .06);
  --shadow-floating: 0 16px 40px rgba(60, 50, 30, .16), 0 4px 12px rgba(60, 50, 30, .08);

  --container: 1160px;
  --container-narrow: 760px;

  --header-h: 76px;
}

/* ---------- Reset ---------- */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(207, 196, 228, .30), transparent 55%),
    linear-gradient(165deg, var(--cream) 0%, var(--page) 55%, #efeae2 100%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

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

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

.container-narrow {
  width: min(100% - 2.5rem, var(--container-narrow));
  margin-inline: auto;
}

main {
  display: block;
  padding-top: var(--header-h);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section-header {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.625rem, 3.4vw, 2.25rem);
}

.section-header p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.rule {
  border: none;
  border-top: 1px solid var(--border);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--cream);
  box-shadow: var(--shadow-raised);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-floating);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding-inline: 0.25rem;
}

.btn-ghost:hover {
  color: var(--accent-hover);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  /* Deliberately a solid background, not backdrop-filter: a blur here would
     create a new containing block for this header's position:fixed
     descendants (the mobile nav panel), collapsing it instead of letting it
     fill the viewport. */
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: height .2s ease, border-color .2s ease, background-color .2s ease;
}

.site-header.is-scrolled {
  height: 62px;
  border-bottom-color: var(--border);
  background: rgba(255, 253, 248, 0.94);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.brand img {
  height: 30px;
  width: 30px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color .15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  margin: -0.5rem -0.5rem -0.5rem 0;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-toggle .icon-close { display: none; }

body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    padding: 0.5rem 1.5rem 2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    overflow-y: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .18s ease, transform .18s ease;
  }

  body.nav-open {
    overflow: hidden;
  }

  .header-actions .btn span.long { display: none; }
}

@media (min-width: 781px) {
  .header-actions .btn span.short { display: none; }
}

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

.hero {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 6vw, 4rem);
  text-align: center;
}

.hero .wordmark {
  width: min(100%, 400px);
  margin-inline: auto;
}

.hero h1 {
  margin-top: 2rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  max-width: 42rem;
  margin-inline: auto;
}

.hero .lede {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero .cta-row {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
}

/* Simple page hero, used on interior pages */

.page-hero {
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.page-hero .eyebrow { display: block; }

.page-hero h1 {
  font-size: clamp(1.875rem, 4.4vw, 2.875rem);
  max-width: 38rem;
  margin-inline: auto;
}

.page-hero .lede {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: 1.0625rem;
  color: var(--muted);
}

/* ---------- Feature grid / cards ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

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

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-raised);
}

.card h3 {
  font-size: 1.1875rem;
  margin-top: 1rem;
}

.card p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

/* ---------- Feature "row" (image + text alternating) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.feature-row.reverse .feature-row-media { order: 2; }
.feature-row.reverse .feature-row-text { order: 1; }

/* Portrait panel crops (e.g. passage panel) fill the column height more than
   neighbouring landscape screenshots — scale down slightly so they feel even. */
.feature-row-media-portrait .shot {
  max-width: 78%;
  margin-inline: auto;
}

.feature-row-text .eyebrow { margin-bottom: 0.6rem; }

.feature-row-text h2,
.feature-row-text h3 {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
}

.feature-row-text p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-row-text ul {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.feature-row-text li {
  list-style: none;
  padding-left: 1.6rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}

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

@media (max-width: 820px) {
  .feature-row {
    grid-template-columns: 1fr;
  }
  .feature-row.reverse .feature-row-media,
  .feature-row.reverse .feature-row-text {
    order: initial;
  }
}

/* ---------- Screenshots ---------- */

.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-floating);
  border: 1px solid var(--border-soft);
  background: var(--sunken);
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
}

/* For screenshots whose native aspect ratio doesn't match a neighbouring
   shot in the same row (e.g. a tall panel crop next to a wide one) — locks
   both to the same box and crops to the top of the image, which is where
   the relevant content sits. */
.shot-capped {
  aspect-ratio: 8 / 5;
}

.shot-capped img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.shot-frame {
  padding: 10px;
  background: linear-gradient(160deg, var(--accent-subtle), var(--sunken));
  border-radius: calc(var(--radius-lg) + 8px);
  box-shadow: var(--shadow-floating);
}

.shot-frame .shot {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Three-ways-in strip ---------- */

.input-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .input-strip { grid-template-columns: 1fr; }
}

.input-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.input-card .icon-badge {
  margin-inline: auto;
  width: 52px;
  height: 52px;
}

.input-card .icon-badge svg {
  width: 26px;
  height: 26px;
}

/* ---------- Trust strip ---------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: center;
}

@media (max-width: 720px) {
  .trust-strip { grid-template-columns: 1fr; }
}

.trust-item {
  padding: 1.5rem 1rem;
}

.trust-item .icon-badge {
  margin-inline: auto;
  margin-bottom: 0.85rem;
}

.trust-item h3 {
  font-size: 1.0625rem;
}

.trust-item p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Founder note / testimonial ---------- */

.founder-note {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-raised);
  max-width: 42rem;
  margin-inline: auto;
}

.founder-note p {
  font-size: 1.05rem;
  color: var(--ink);
}

.founder-note p + p {
  margin-top: 1rem;
}

.founder-note .signature {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
}

.entity-facts {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.35rem, 3.5vw, 2rem);
  box-shadow: var(--shadow-raised);
}

.entity-facts dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.entity-facts dl > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
}

@media (max-width: 560px) {
  .entity-facts dl > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.entity-facts dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.entity-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.entity-facts a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entity-facts a:hover {
  color: var(--accent-hover);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 820px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

.testimonial {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-raised);
  font-size: 0.95rem;
}

.testimonial .who {
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- FAQ accordion ---------- */

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.faq-item {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.25rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.75rem 1.15rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.1rem;
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform .15s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-answer {
  padding-bottom: 1.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42rem;
}

/* ---------- Waitlist form ---------- */

.waitlist-block {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-raised);
}

.waitlist-block h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.waitlist-block p {
  margin-top: 0.65rem;
  color: var(--muted);
}

/* ---------- Contact form ---------- */

.contact-flash {
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.contact-flash p {
  margin: 0;
}

.contact-flash-ok {
  background: #eef6ee;
  border-color: #c5dbc5;
  color: #2a4a2a;
}

.contact-flash-error {
  background: #faf0ee;
  border-color: #e4c8c2;
  color: #6a3530;
}

.contact-form {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-raised);
  display: grid;
  gap: 1.15rem;
}

.contact-field {
  display: grid;
  gap: 0.4rem;
}

.contact-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  line-height: 1.4;
}

.contact-field textarea {
  resize: vertical;
  min-height: 10rem;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-turnstile {
  min-height: 65px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.contact-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-note a:hover {
  color: var(--accent-hover);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand .brand {
  font-size: 1.05rem;
}

.footer-brand img {
  height: 26px;
  width: 26px;
}

.footer-brand p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 20rem;
}

.footer-links {
  display: flex;
  gap: clamp(2rem, 6vw, 4rem);
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.footer-col ul {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.825rem;
  color: var(--muted-soft);
}

.footer-bottom a {
  color: var(--muted-soft);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.footer-bottom a:hover {
  color: var(--accent);
}

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

.legal {
  padding-bottom: 4rem;
}

.legal .container-narrow > h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.legal .lede {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal .updated {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.legal section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.legal h2 {
  font-size: 1.125rem;
  margin-bottom: 0.65rem;
}

.legal p + p,
.legal ul + p,
.legal p + ul {
  margin-top: 0.75rem;
}

.legal ul {
  padding-left: 1.15rem;
}

.legal li {
  list-style: disc;
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal a {
  color: var(--accent);
  text-underline-offset: 0.12em;
}

.legal a:hover {
  color: var(--ink);
}

/* ---------- "Never do" commitments list ---------- */

.commit-list {
  display: grid;
  gap: 1rem;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.commit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-raised);
}

.commit-item .icon-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.commit-item .icon-badge svg {
  width: 18px;
  height: 18px;
}

.commit-item h3 {
  font-size: 1.02rem;
}

.commit-item p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 52rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
}

.price-card--founder {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow-raised);
}

.price-card--founder .eyebrow {
  color: var(--accent);
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  margin-top: 1rem;
}

.price-card .price span {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--muted);
  font-weight: 400;
}

.price-card .price-after {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.price-card ul {
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
  display: grid;
  gap: 0.7rem;
  text-align: left;
}

.price-card li {
  list-style: none;
  padding-left: 1.6rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.price-card .btn { margin-top: auto; }

/* ---------- Reveal-on-scroll ----------
   Content is fully visible by default — the hidden starting state is only
   ever applied by JS (site.js adds .reveal-pending), so a page with no JS,
   blocked JS, or a failed script load still shows every section. */

.reveal {
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* ---------- Note mock (reference-recognition illustration) ---------- */

.note-mock {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-floating);
  font-size: 1.02rem;
  line-height: 1.75;
}

.note-mock .note-mock-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.note-mock .note-mock-meta {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.82rem;
  color: var(--muted-soft);
}

.ref-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent-hover);
  font-weight: 600;
  font-size: 0.92em;
  white-space: nowrap;
}

/* ---------- Translation spectrum (Why BSB page) ---------- */

.spectrum {
  max-width: 34rem;
  margin: 2.75rem auto 0;
}

.spectrum-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
  margin-bottom: 2rem;
}

.spectrum-track {
  position: relative;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

.spectrum-point {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--muted-soft);
}

.spectrum-point span {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.spectrum-point.strong {
  width: 18px;
  height: 18px;
  margin-top: -9px;
  margin-left: -9px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-subtle);
}

.spectrum-point.strong span {
  color: var(--accent-hover);
  font-weight: 700;
  top: 18px;
}

/* ---------- Numbered steps (How it works) ---------- */

.steps {
  display: grid;
  gap: 2.25rem;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.vignette {
  padding: 1.75rem;
}

.vignette .icon-badge {
  margin-bottom: 1rem;
}

.vignette h3 {
  font-size: 1.1rem;
}

.vignette p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Misc ---------- */

.center-text { text-align: center; }

.stack {
  display: grid;
  gap: 1.5rem;
}

.text-muted { color: var(--muted); }

.mt-lg { margin-top: clamp(3rem, 7vw, 5rem); }

/* ---------- Blog ---------- */

.blog-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.blog-tag-filter a {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.blog-tag-filter a:hover {
  border-color: var(--accent-soft);
  color: var(--accent-hover);
}

.blog-tag-filter a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--cream);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-raised);
  transition: transform .18s ease, box-shadow .18s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-floating);
}

.blog-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sunken);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.blog-card-date {
  display: block;
  font-size: 0.82rem;
  color: var(--muted-soft);
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 0.35rem;
}

.blog-card-body h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.35;
}

.blog-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-pagination a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.blog-pagination a:hover { text-decoration: underline; }

/* Single post */

.blog-post-header .blog-back {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.blog-post-header .blog-back:hover { text-decoration: underline; }

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.tag-pill {
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.tag-pill:hover { background: var(--accent-soft); }

.blog-post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.blog-post-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 2rem;
}

.blog-post-cover {
  margin-bottom: 2.5rem;
}

.blog-toc {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--sunken);
  padding: 1.1rem 1.4rem;
  margin-bottom: 2.5rem;
}

.blog-toc-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-soft);
  margin-bottom: 0.6rem;
}

.blog-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.blog-toc a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
}

.blog-toc a:hover { color: var(--accent); }

.blog-toc-level-3 { margin-left: 1.1rem; }

.blog-post-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

.blog-post-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.blog-post-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 0.85rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.blog-post-body p { margin: 0 0 1.25rem; }

.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
}

.blog-post-body li + li { margin-top: 0.4rem; }

.blog-post-body a { color: var(--accent); }
.blog-post-body a:hover { text-decoration: underline; }

.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.blog-post-body blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 1.3rem;
  border-left: 3px solid var(--accent-soft);
  color: var(--muted);
  font-style: italic;
}

.blog-post-body code {
  background: var(--sunken);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.9em;
}

.blog-post-body pre {
  background: var(--sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 0 0 1.25rem;
}

.blog-post-body pre code {
  background: none;
  padding: 0;
}

.blog-related {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.blog-related h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 1.25rem;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .blog-related-grid { grid-template-columns: 1fr; }
}

.blog-related-card {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  background: var(--cream);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.blog-related-card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-raised);
}

.blog-related-card h3 {
  margin: 0.3rem 0 0;
  font-size: 0.98rem;
  line-height: 1.4;
}
