/* ==========================================================================
   GRADIFY advocacy site — shared stylesheet
   Plain CSS, no framework. Mobile-first. Self-hosted fonts.
   ========================================================================== */

/* ----- Fonts (self-hosted, latin subsets) -------------------------------- */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/zilla-slab-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/zilla-slab-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

/* ----- Design tokens ------------------------------------------------------ */

:root {
  /* Brand */
  --green: #1f4b3f;
  --green-deep: #16382f;
  --green-soft: #2c6152;
  --green-tint: #e3ebe6;
  --paper: #f4f3ee;
  --card: #fbfaf6;
  --white: #ffffff;
  --ink: #1c2a24;
  --muted: #55655e;
  --line: #dcdad0;
  --line-soft: #e7e5dc;

  /* Tier colors */
  --tier-pass: #1f7a4d;
  --tier-connect: #4d7a1f;
  --tier-develop: #a8690a;
  --tier-emerge: #b03a2e;

  /* Type */
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Zilla Slab', 'Georgia', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Consolas', monospace;

  /* Motion — strong curves; built-in easings are too weak */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Layout */
  --container: 68rem;
  --radius: 16px;
  --radius-sm: 10px;
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em; /* large slab type wants negative tracking */
  margin: 0 0 0.5em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

::selection {
  background: var(--green);
  color: var(--paper);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Mono eyebrow label used above section headings */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 999px; /* pill — echoes the bubble */
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease,
    border-color 200ms ease, color 200ms ease;
}

.btn:active {
  transform: scale(0.97); /* the interface heard you */
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

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

.btn-light {
  background: var(--paper);
  color: var(--green);
}

.btn-sm {
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--green-soft);
  }
  .btn-secondary:hover {
    background: var(--green-tint);
  }
  .btn-light:hover {
    background: var(--white);
  }
}

.cta-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.cta-note strong {
  color: var(--ink);
  font-weight: 500;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 243, 238, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}

/* Supplied wordmark (transparent PNG, black text + green dot) */
.brand-word {
  height: 1.5rem;
  width: auto;
}

.site-footer .brand-word {
  /* white version for the deep-green footer */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: background-color 200ms ease;
}

.site-nav a[aria-current='page'] {
  color: var(--green);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:not(.btn):hover {
    background: var(--green-tint);
  }
}

.site-nav .btn {
  margin-left: 0.5rem;
}

@media (max-width: 40em) {
  .nav-label-home {
    display: none; /* logo already links home on phones */
  }
  .site-nav .btn {
    padding: 0.6rem 1.05rem;
    font-size: 0.9rem;
  }
}

/* ----- Bubble motif ------------------------------------------------------- */

/* A row of A B C D answer bubbles — the signature artifact */
.bubble-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  user-select: none;
}

.bubble-row .bq {
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 1.4em;
  text-align: right;
  margin-right: 0.15rem;
}

.bubble {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 500;
  flex: none;
  background: transparent;
}

.bubble.is-filled {
  background: var(--green);
  color: var(--paper);
}

/* Faint bubble-grid texture for section backgrounds */
.bubble-texture {
  background-image: radial-gradient(
    circle,
    rgba(31, 75, 63, 0.07) 0.35rem,
    transparent calc(0.35rem + 1px)
  );
  background-size: 2.6rem 2.6rem;
}

/* Divider strip of bubbles between sections */
.bubble-divider {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0;
  border: 0;
  margin: 0 auto;
}

.bubble-divider span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
}

.bubble-divider span:nth-child(3) {
  background: var(--green);
  border-color: var(--green);
}

/* ----- Sections ----------------------------------------------------------- */

.section {
  padding-block: 4.5rem;
}

@media (min-width: 60em) {
  .section {
    padding-block: 6.5rem;
  }
}

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

.section-head h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
}

.section-head .lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 3.5rem 4.5rem;
}

.hero::before {
  /* faint bubble-sheet texture, fading out downward */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(31, 75, 63, 0.08) 0.35rem,
    transparent calc(0.35rem + 1px)
  );
  background-size: 2.6rem 2.6rem;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 60em) {
  .hero {
    padding-block: 5rem 6rem;
  }
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow .seal {
  width: 1.4rem;
  height: auto;
  margin-left: -0.2rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 6.5vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero .sub {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-tagline {
  margin-top: 2.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-soft);
}

/* Hero graphic — supplied marketing shot (phone over bubble sheets) */

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-graphic {
  width: min(28rem, 92vw);
  height: auto;
}

/* Phone mockup (used in the trust section) */

.phone {
  position: relative;
  width: min(19rem, 78vw);
  aspect-ratio: 9 / 18.5;
  background: var(--green-deep);
  border-radius: 2.6rem;
  padding: 0.55rem;
  box-shadow:
    0 1px 2px rgba(22, 42, 34, 0.2),
    0 24px 48px -16px rgba(22, 42, 34, 0.35);
}

.phone::after {
  /* camera pill */
  content: '';
  position: absolute;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5.5rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--green-deep);
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2.1rem;
  overflow: hidden;
  background: #22423a;
}

.phone-screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ----- Fact strip --------------------------------------------------------- */

.fact-strip {
  border-block: 1px solid var(--line-soft);
  background: var(--card);
}

.fact-strip .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.fact {
  padding: 1.4rem 1rem;
  text-align: center;
}

.fact dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green);
}

.fact dd {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 48em) {
  .fact-strip .container {
    grid-template-columns: repeat(4, 1fr);
  }
  .fact + .fact {
    border-left: 1px solid var(--line-soft);
  }
}

@media (max-width: 47.99em) {
  .fact:nth-child(even) {
    border-left: 1px solid var(--line-soft);
  }
  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }
}

/* ----- Problem section ---------------------------------------------------- */

.problem-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48em) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.problem-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.problem-card .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.problem-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

.problem-close {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  color: var(--green);
}

/* ----- How it works ------------------------------------------------------- */

.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 48em) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 72em) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.6rem;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--paper);
  background: var(--green);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.step h3 {
  font-size: 1.22rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.step a {
  font-weight: 500;
}

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

.features-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48em) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 72em) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -18px rgba(22, 42, 34, 0.35);
  }
}

.feature-card .icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card .icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.feature-card h3 {
  font-size: 1.13rem;
  margin-bottom: 0.35rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* ----- Analytics / differentiator ----------------------------------------- */

.analytics {
  background: var(--green);
  color: #ecf1ea;
}

.analytics .eyebrow {
  color: #a8cbb3;
}

.analytics .eyebrow::before {
  background: #a8cbb3;
}

.analytics h2,
.analytics h3 {
  color: #fdfcf8;
}

.analytics .lede {
  color: #c4d5c6;
}

.analytics-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 60em) {
  .analytics-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.analytics-copy p {
  color: #d4e0d3;
  font-size: 1.05rem;
}

.analytics-copy strong {
  color: #fdfcf8;
  font-weight: 600;
}

/* Tier table, styled as rows */
.tier-table {
  display: grid;
  gap: 0.6rem;
  margin-top: 2rem;
}

.tier-row {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 0.4rem 1.1rem;
  align-items: center;
  background: rgba(244, 243, 238, 0.06);
  border: 1px solid rgba(244, 243, 238, 0.14);
  border-left: 4px solid var(--tier-color, #7fd4a8);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
}

.tier-row .score {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.02rem;
  color: #fdfcf8;
  white-space: nowrap;
}

.tier-row .desc {
  min-width: 0;
}

.tier-row .desc b {
  display: block;
  font-weight: 600;
  color: #fdfcf8;
  font-size: 0.97rem;
}

.tier-row .desc span {
  font-size: 0.88rem;
  color: #c4d5c6;
}

.tier-pass { --tier-color: #7fd4a8; }
.tier-connect { --tier-color: #b8d97e; }
.tier-develop { --tier-color: #ecc06a; }
.tier-emerge { --tier-color: #ef9f8a; }

.tier-note {
  font-size: 0.82rem;
  color: #a8cbb3;
  margin-top: 0.9rem;
}

/* Screenshot slots inside analytics — portrait app captures, side by side */
.shot-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(244, 243, 238, 0.18);
  background: rgba(244, 243, 238, 0.05);
}

.shot img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  object-position: top;
}

.shot figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 1rem;
  color: #c4d5c6;
  border-top: 1px solid rgba(244, 243, 238, 0.12);
}

/* Placeholder look while the real PNG is not yet supplied */
.shot.is-placeholder img {
  display: none;
}

.shot.is-placeholder::before {
  content: 'Screenshot slot — demo data only';
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #a8cbb3;
  background-image: radial-gradient(
    circle,
    rgba(244, 243, 238, 0.1) 0.3rem,
    transparent calc(0.3rem + 1px)
  );
  background-size: 2.2rem 2.2rem;
}

/* Light variant for screenshot slots on pale sections */
.shot-light {
  border-color: var(--line-soft);
  background: var(--card);
}

.shot-light figcaption {
  color: var(--muted);
  border-top-color: var(--line-soft);
}

.shot-light.is-placeholder::before {
  color: var(--muted);
  background-image: radial-gradient(
    circle,
    rgba(31, 75, 63, 0.08) 0.3rem,
    transparent calc(0.3rem + 1px)
  );
}

/* ----- Trust / privacy ---------------------------------------------------- */

.trust-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 60em) {
  .trust-inner {
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
  }
}

.trust-grid {
  display: grid;
  gap: 1.25rem;
}

.trust-visual {
  display: flex;
  justify-content: center;
}

.trust-visual .phone {
  width: min(15.5rem, 70vw);
}

.trust-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.75rem 1.5rem;
}

.trust-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

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

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

.faq-list {
  max-width: 46rem;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
}

.faq-q .chev {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--green);
  transition: transform 200ms var(--ease-out);
}

.faq-q[aria-expanded='true'] .chev {
  transform: rotate(180deg);
}

/* Grid-rows trick: interruptible height animation without measuring */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms var(--ease-out);
}

.faq-q[aria-expanded='true'] + .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ----- About strip --------------------------------------------------------- */

.about-strip {
  border-block: 1px solid var(--line-soft);
  background: var(--card);
}

.about-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-block: 3rem;
}

@media (min-width: 48em) {
  .about-inner {
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }
}

.about-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-tint);
  box-shadow: 0 6px 16px -8px rgba(22, 42, 34, 0.35);
  flex: none;
}

.about-inner p {
  margin: 0;
  font-size: 1.05rem;
  max-width: 46em;
}

.about-inner p b {
  font-weight: 600;
}

/* ----- Final CTA ----------------------------------------------------------- */

.cta-final {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(31, 75, 63, 0.07) 0.35rem,
    transparent calc(0.35rem + 1px)
  );
  background-size: 2.6rem 2.6rem;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 75%);
  mask-image: linear-gradient(to top, #000 0%, transparent 75%);
  pointer-events: none;
}

.cta-final .container {
  position: relative;
}

.cta-final h2 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  max-width: 22em;
  margin-inline: auto;
}

.cta-final .lede {
  color: var(--muted);
  max-width: 36em;
  margin: 0 auto 2rem;
}

.cta-final .hero-ctas {
  justify-content: center;
}

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

.site-footer {
  background: var(--green-deep);
  color: #c4d5c6;
  padding-block: 3.5rem 2.5rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer .brand {
  color: #fdfcf8;
  margin-bottom: 0.9rem;
}

.footer-tagline {
  max-width: 26em;
  color: #a8cbb3;
  margin: 0;
}

.footer-division {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.25rem 0 0;
  color: #e3ebe0;
  font-weight: 500;
}

.footer-division .seal {
  width: 2.4rem;
  height: auto;
  flex: none;
}

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fb89c;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer a {
  color: #e3ebe0;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(244, 243, 238, 0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8fb89c;
}

.footer-bottom .bubble-row .bubble {
  border-color: #8fb89c;
  color: #8fb89c;
  width: 1.1rem;
  height: 1.1rem;
  font-size: 0.55rem;
}

.footer-bottom .bubble-row .bubble.is-filled {
  background: #8fb89c;
  color: var(--green-deep);
}

/* ==========================================================================
   Bubble Sheets page
   ========================================================================== */

.sheets-hero {
  padding-block: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.sheets-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(31, 75, 63, 0.08) 0.35rem,
    transparent calc(0.35rem + 1px)
  );
  background-size: 2.6rem 2.6rem;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  pointer-events: none;
}

.sheets-hero .container {
  position: relative;
  max-width: 50rem;
}

.sheets-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
}

.sheets-hero .lede {
  font-size: 1.1rem;
  color: var(--muted);
}

.sheets-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.rule-chip .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

/* Download grid */

.sheet-group {
  margin-bottom: 3rem;
}

.sheet-group-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sheet-group-label::after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}

.sheet-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40em) {
  .sheet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60em) {
  .sheet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sheet-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .sheet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -18px rgba(22, 42, 34, 0.35);
  }
}

.sheet-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sheet-count {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--green);
}

.sheet-count small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Mini thumbnail of a sheet built from bubbles */
.sheet-thumb {
  flex: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.6rem;
  display: grid;
  gap: 0.3rem;
  position: relative;
}

.sheet-thumb::before,
.sheet-thumb::after {
  /* corner registration squares */
  content: '';
  position: absolute;
  width: 0.32rem;
  height: 0.32rem;
  background: var(--ink);
}

.sheet-thumb::before { top: 0.22rem; left: 0.22rem; }
.sheet-thumb::after { top: 0.22rem; right: 0.22rem; }

.sheet-thumb .bubble {
  width: 0.55rem;
  height: 0.55rem;
  border-width: 1px;
  font-size: 0;
}

.sheet-thumb .bubble-row {
  gap: 0.22rem;
}

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

.sheet-card .btn {
  width: 100%;
}

.sheets-zip {
  text-align: center;
  margin-top: 0.5rem;
}

/* Print guide */

.guide-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48em) {
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 72em) {
  .guide-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guide-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.guide-card .icon {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-card .icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.guide-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.25rem;
}

.guide-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.guide-card p b {
  color: var(--ink);
  font-weight: 600;
}

/* Mistakes callout */

.mistakes {
  margin-top: 2.5rem;
  background: #fdf6ec;
  border: 1px solid #ecd9b8;
  border-left: 4px solid var(--tier-develop);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
  max-width: 46rem;
}

.mistakes h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #7a4e08;
  margin-bottom: 0.4rem;
}

.mistakes p {
  font-size: 0.95rem;
  color: #6b5330;
  margin: 0;
}

/* ----- Scroll reveal ------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* Stagger for grids: children pick up incremental delays */
.stagger > :nth-child(2) { --reveal-delay: 60ms; }
.stagger > :nth-child(3) { --reveal-delay: 120ms; }
.stagger > :nth-child(4) { --reveal-delay: 180ms; }
.stagger > :nth-child(5) { --reveal-delay: 240ms; }
.stagger > :nth-child(6) { --reveal-delay: 300ms; }
.stagger > :nth-child(7) { --reveal-delay: 360ms; }
.stagger > :nth-child(8) { --reveal-delay: 420ms; }
.stagger > :nth-child(9) { --reveal-delay: 480ms; }

/* No-JS and reduced-motion: content always visible */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transform: none;
    transition: opacity 200ms ease; /* keep the gentle fade, drop the movement */
  }
  .feature-card,
  .sheet-card,
  .btn,
  .faq-q .chev {
    transition-duration: 0ms;
  }
  .feature-card:hover,
  .sheet-card:hover {
    transform: none;
  }
  .faq-a {
    transition: none;
  }
}
