:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-muted: #f2efe8;
  --text: #1c1b19;
  --text-muted: #5f5b53;
  --border: #e3ded3;
  --accent: #6b5ecd;
  --accent-hover: #5a4db8;
  --accent-contrast: #ffffff;
  --accent-soft: #eeecfa;
  --accent-border: #d6d1f3;
  --accent-shadow: rgba(107, 94, 205, 0.28);
  --accent-glow: rgba(107, 94, 205, 0.55);
  --warm-glow: rgba(255, 158, 102, 0.35);
  --scrollbar-thumb: rgba(0, 0, 0, 0.22);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.38);
  --card-shadow: rgba(28, 27, 25, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 12px;
  --max: 1040px;
  color-scheme: light;
}

/* Dark theme, kept for later but not applied anywhere: it only takes effect if
   <html data-theme="dark"> is set, which no page does. */
:root[data-theme='dark'] {
  --bg: #141412;
  --surface: #1d1c1a;
  --surface-muted: #252421;
  --text: #efece6;
  --text-muted: #a8a397;
  --border: #34322d;
  --accent: #a99ff0;
  --accent-hover: #bdb5f5;
  --accent-contrast: #1a1540;
  --accent-soft: #2a2545;
  --accent-border: #4a4380;
  --accent-shadow: rgba(169, 159, 240, 0.25);
  --accent-glow: rgba(169, 159, 240, 0.3);
  --warm-glow: rgba(255, 158, 102, 0.15);
  --scrollbar-thumb: rgba(255, 255, 255, 0.22);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.38);
  --card-shadow: rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

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

/* One breakpoint, 1024px: below it phones and tablets share a single-column
   layout; at and above it the desktop layout takes over. */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .wrap {
    padding: 0 32px;
  }
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 80px;
}

@media (min-width: 1024px) {
  .site-header .wrap {
    height: 104px;
  }
}

.wordmark {
  display: flex;
  align-items: center;
}

.wordmark img {
  display: block;
  height: 50px;
  width: auto;
}

/* 72px only fits beside the header button on desktop; phones and tablets keep 50px. */
@media (min-width: 1024px) {
  .wordmark img {
    height: 72px;
  }
}

/* Buttons */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 26px;
  transition:
    background 0.2s ease,
    transform 0.2s var(--ease),
    box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--accent-contrast);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-shadow);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px var(--accent-shadow);
}

.btn-small {
  padding: 8px 16px;
  font-size: 15px;
}

/* Sections */

section {
  padding: 64px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(34px, 6vw, 56px);
  max-width: 17ch;
}

h2 {
  font-size: clamp(26px, 4vw, 34px);
}

h3 {
  font-size: 19px;
}

p {
  margin: 0 0 16px;
}

.lede {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--text-muted);
  max-width: 44em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 44em;
  margin-bottom: 32px;
}

.fine {
  font-size: 15px;
  color: var(--text-muted);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 12px;
}

/* A line break placed for phones and tablets; desktop runs the line on. */
@media (min-width: 1024px) {
  .mobile-break {
    display: none;
  }
}

.subhead {
  margin-top: 48px;
}

/* The objection each "secret" section answers, quoted in the visitor's voice. */
.belief {
  font-size: clamp(19px, 2.6vw, 22px);
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--accent-border);
  padding-left: 16px;
  max-width: 36em;
  margin-bottom: 24px;
}

.belief span {
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Phones and tablets center each section's heading block (eyebrow, objection,
   title, intro). Cards, lists and long-form story text stay left-aligned. */
@media (max-width: 1023px) {
  .hero-copy,
  .eyebrow,
  .belief,
  section h2,
  .section-intro,
  .subhead {
    text-align: center;
  }

  .hero h1,
  .hero .lede,
  .belief,
  section h2,
  .section-intro {
    margin-left: auto;
    margin-right: auto;
  }

  /* The side rule only reads as a quote mark against left-aligned text. */
  .belief {
    border-left: 0;
    padding-left: 0;
  }

  .patterns {
    justify-content: center;
  }

  .stack {
    margin: 0 auto;
  }
}

/* Copy the founder still has to write. Loud on purpose, so it can't ship unnoticed. */
.todo {
  background: #fff3c4;
  color: inherit;
  outline: 1px dashed #c9a400;
  border-radius: 4px;
  padding: 0 4px;
}

/* Hero */

.hero {
  padding: 72px 0 64px;
  /* The tilted mockup's near edge can poke past a narrow viewport. */
  overflow-x: clip;
}

.hero .btn {
  margin: 8px 0 12px;
}

.hero-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }

  .hero h1 {
    font-size: 50px;
  }
}

/* The hero is on screen at load, so it rises in with CSS alone rather than
   waiting on the scroll observer. */
/* backwards, not both: a held end state would override the button's hover lift. */
.hero-copy > *,
.mail-stage {
  animation: rise 0.7s var(--ease) backwards;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}

.mail-stage {
  animation-delay: 0.36s;
}

/* Hero mockup of the delivery email. The inner post styles copy the real
   delivery (apps/api/src/output/assemble-html.ts) so the preview is honest. */

.mail-stage {
  position: relative;
  isolation: isolate;
  margin-bottom: 24px;
  cursor: pointer;
}

/* Says whose business the sample was made for, so visitors in other niches
   read the bag threads as an example rather than as what they'd get. */
.mail-note {
  width: fit-content;
  margin: 0 auto 20px;
  padding: 4px 14px;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
  /* On the narrowest phones it wraps to two even, centered lines. */
  text-align: center;
  text-wrap: balance;
}

.mail-note strong {
  color: var(--accent-hover);
}

/* A soft purple glow behind the email lifts it off the page. */
.mail-stage::before {
  content: '';
  position: absolute;
  inset: -16% -20%;
  z-index: -2;
  background:
    radial-gradient(closest-side at 60% 40%, var(--accent-glow), transparent),
    radial-gradient(closest-side at 30% 75%, var(--warm-glow), transparent);
  filter: blur(32px);
  pointer-events: none;
}

/* A contact shadow on the "table" below the email. */
.mail-stage::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -36px;
  height: 40px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(28, 27, 25, 0.36),
    rgba(28, 27, 25, 0)
  );
  filter: blur(6px);
  transition:
    transform 0.6s var(--ease),
    opacity 0.6s ease;
}

/* On wide screens the email tilts toward the headline and settles flat on hover.
   The tilt sits on its own wrapper so it doesn't fight the stage's rise animation. */
@media (min-width: 1024px) {
  .mail-stage {
    perspective: 1800px;
  }

  .mail-tilt {
    transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg);
    transition: transform 0.6s var(--ease);
  }

  .mail-stage:hover .mail-tilt {
    transform: none;
  }

  /* Tilted, the email floats: its shadow spreads wide, faint, and off to the near side.
     Flat on hover, it settles: the shadow tucks in under it and darkens. */
  .mail-stage::after {
    transform: translate(20px, 16px) scale(1.12, 1.4);
    opacity: 0.55;
  }

  .mail-stage:hover::after {
    transform: translateY(-8px) scale(0.94, 0.7);
    opacity: 1;
  }
}

.mail {
  position: relative;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  box-shadow:
    0 2px 4px rgba(28, 27, 25, 0.06),
    0 40px 80px -20px rgba(28, 27, 25, 0.32),
    0 0 0 6px var(--accent-soft),
    0 0 0 7px var(--accent-border);
  overflow: hidden;
  font-size: 14px;
  line-height: 20px;
}

/* A soft sheen across the top-left corner, as if lit from above. */
.mail::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0) 40%
  );
}

.mail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.mail-avatar {
  flex: none;
  border-radius: 50%;
}

.mail-from {
  min-width: 0;
}

.mail-addr {
  color: var(--text-muted);
  font-size: 13px;
}

.mail-subject {
  font-weight: 600;
}

/* The list scrolls inside the email, cut off mid-post, so it's clear there's more below. */
.mail-body {
  position: relative;
  max-height: 460px;
  overflow-y: auto;
  padding: 4px 20px 0;
  color: #2a3c42;
}

@media (min-width: 1024px) {
  .mail-body {
    max-height: 520px;
  }
}

/* A macOS-style overlay thumb with no track. Custom-styled WebKit scrollbars stay
   visible even where the OS hides scrollbars until you scroll, which is the point here.
   Firefox gets its own thin version. */
.mail-body::-webkit-scrollbar {
  width: 13px;
  background: transparent;
}

.mail-body::-webkit-scrollbar-track {
  background: transparent;
}

/* The transparent border insets the 5px pill 4px from every edge. It has to be even on
   all sides: uneven border widths distort the rounded ends. */
.mail-body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  background-clip: padding-box;
  border: 4px solid transparent;
  border-radius: 999px;
  min-height: 40px;
}

.mail-body::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  background-clip: padding-box;
}

@supports not selector(::-webkit-scrollbar) {
  .mail-body {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
  }
}

.post {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5c6c74;
}

.sub-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d93900;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.sub {
  color: #0f1a1c;
  font-weight: 600;
}

.post-title {
  margin: 6px 0 8px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: #0f1a1c;
}

.post-text {
  margin: 0 0 12px;
}

.post-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill {
  background: #e5ebee;
  color: #0f1a1c;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* The suggested comment is what buyers pay for, so it sits in a brand-tinted callout
   that reads apart from the Reddit-styled post above it. */
/* Matches the delivery's "POST TYPE" note (apps/api/src/output/assemble-html.ts). */
/* Pushed to the end of the stats row; nowrap keeps the now-spaced type on one line. */
.post-type {
  margin-left: auto;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 4px;
  background: #fff8e1;
  border: 1px solid #f2b705;
  color: #7a5600;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Phones and tablets: the mockup is too narrow for the full label beside the two
   counts, so the tag shows just the type, slightly smaller. */
@media (max-width: 1023px) {
  .post-type {
    padding: 3px 6px;
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .post-type-label {
    display: none;
  }

  .post-stats {
    gap: 6px;
  }

  .post-stats .pill {
    padding: 4px 8px;
  }
}

.post-comment {
  margin-top: 12px;
  padding: 10px 12px 11px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: 4px 10px 10px 4px;
}

.post-comment-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 5px;
}

.post-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent) url('images/logo/keyworch-logo-only.svg') center /
    cover no-repeat;
}

.post-comment p {
  margin: 0;
  color: #1c1b19;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.post:last-of-type {
  border-bottom: 0;
}

.mail-more {
  padding: 4px 0 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* How it works */

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

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 700;
  margin-bottom: 12px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s var(--ease);
}

.steps li:hover::before {
  background: var(--accent);
  color: var(--accent-contrast);
  transform: scale(1.08);
}

.steps p {
  color: var(--text-muted);
  margin: 0;
}

/* Examples */

.examples {
  display: grid;
  gap: 16px;
}

@media (min-width: 1024px) {
  .examples {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* min-width: 0 stops the wide slideshow images from stretching the grid column. */
.example {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.example-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.example-meta strong {
  color: var(--text);
}

.example h3 {
  margin-bottom: 12px;
}

.example h3 a {
  color: inherit;
  text-decoration: none;
}

.example h3 a::after {
  content: ' ↗';
  color: var(--text-muted);
  font-weight: 400;
}

.example h3 a:hover,
.example h3 a:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The post's own photos, as on Reddit: one image, or a swipeable slideshow for a
   gallery. A fixed frame keeps the cards in a row the same height. */
.post-media {
  position: relative;
  min-width: 0;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-muted);
}

/* The height cap only bites on tablets, where the single-column card is wide enough
   that a 4:3 frame would push the post text far down. The explicit width stops the
   cap from shrinking the frame's width along with its height. */
.slides {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 400px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slides::-webkit-scrollbar {
  display: none;
}

.slides img {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}

.slide-btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.slide-btn[hidden] {
  display: none;
}

.slide-prev {
  left: 8px;
}

.slide-next {
  right: 8px;
}

.slide-count {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* Bottom gaps space the post from the draft below. */
.post-body {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-muted);
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.post-body.is-open {
  display: block;
}

.post-more {
  align-self: flex-start;
  margin: -20px 0 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-hover);
  cursor: pointer;
}

.post-more[hidden] {
  display: none;
}

/* Grows to fill the card, so cards in a row end level without a gap above a shorter draft. */
.draft {
  flex-grow: 1;
  margin: 0;
  background: var(--surface-muted);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  transition: background 0.25s ease;
}

.example:hover .draft {
  background: var(--accent-soft);
}

.draft-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Get / don't get */

.compare {
  display: grid;
  gap: 16px;
}

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

.compare > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.compare ul {
  margin: 0;
  padding-left: 20px;
}

.compare li + li {
  margin-top: 8px;
}

/* Story */

.story {
  max-width: 44em;
  margin-bottom: 40px;
}

.signature {
  font-weight: 600;
}

.old-new .old {
  background: var(--surface-muted);
  color: var(--text-muted);
}

.old-new .new {
  border-color: var(--accent-border);
}

.old-new .new h3 {
  color: var(--accent-hover);
}

/* Buying-signal phrasings */

.patterns {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 32px;
}

.patterns li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 15px;
}

/* 90/10 framework */

/* A true 90/10 bar with its labels underneath: the "10%" label is wider than its
   slice at every width, so it can't sit inside the bar. The bar segments are the
   grid's pseudo-elements; the label spans sit in the row below. */
.split {
  display: grid;
  grid-template-columns: 9fr 1fr;
  gap: 8px 3px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.split::before,
.split::after {
  content: '';
  grid-row: 1;
  height: 28px;
}

.split::before {
  grid-column: 1;
  background: var(--accent);
  border-radius: 999px 0 0 999px;
}

.split::after {
  grid-column: 2;
  background: var(--accent-border);
  border-radius: 0 999px 999px 0;
}

.split > span {
  grid-row: 2;
  white-space: nowrap;
}

.split-help {
  grid-column: 1;
  justify-self: start;
  color: var(--accent-hover);
}

/* Spans both columns so it can right-align to the end of the 10% slice. */
.split-pitch {
  grid-column: 1 / -1;
  justify-self: end;
  color: var(--text-muted);
}

.note {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0 0;
}

/* What Keyworch does: stages joined by arrows, a column on phones and tablets
   and a row on desktop */

/* Stacked, the gap is taller so a down arrow fits between the stages. */
.pipeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 32px;
}

@media (min-width: 1024px) {
  .pipeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.pipeline li {
  position: relative;
  background: var(--surface-muted);
  border-radius: var(--radius);
  padding: 20px;
}

.pipeline strong {
  display: block;
  margin-bottom: 6px;
}

.pipeline span {
  color: var(--text-muted);
  font-size: 15px;
}

.pipeline li:last-child {
  background: var(--accent-soft);
}

.pipeline li + li::before {
  content: '↓';
  position: absolute;
  left: 50%;
  top: -32px;
  width: 32px;
  line-height: 32px;
  margin-left: -16px;
  text-align: center;
  color: var(--accent);
  font-weight: 700;
}

@media (min-width: 1024px) {
  .pipeline li + li::before {
    content: '→';
    left: -14px;
    top: 50%;
    width: auto;
    line-height: inherit;
    margin-left: 0;
    transform: translateY(-50%);
  }
}

/* Offer stack */

.stack {
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    0 24px 48px -12px rgba(28, 27, 25, 0.12),
    0 0 0 6px var(--accent-soft);
}

@media (min-width: 1024px) {
  .stack {
    padding: 32px;
  }
}

.stack-head,
.stack-items li,
.stack-total,
.stack-price {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.stack-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.stack-items {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.stack-items li {
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}

/* The tick hangs in its own gutter, so a wrapped line starts under the text,
   not under the tick. */
.stack-items li > :first-child {
  position: relative;
  padding-left: 30px;
}

.stack-items li > :first-child::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.1em;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.stack-items .time,
.stack-total {
  color: var(--text-muted);
  white-space: nowrap;
}

/* A fixed column, so every time lines up on the right however long its item. */
.stack-items .time {
  flex: none;
  min-width: 3.5em;
  text-align: right;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.stack-total {
  padding: 4px 0;
}

.stack-price {
  align-items: baseline;
  margin: 12px 0 24px;
  padding-top: 16px;
  border-top: 2px solid var(--text);
  font-weight: 600;
}

.stack-price strong {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-hover);
}

.stack .btn {
  display: block;
  padding-left: 16px;
  padding-right: 16px;
  text-align: center;
  margin-bottom: 12px;
}

.stack .fine {
  margin: 0;
}

/* Card hover: a slight lift, shadow, and purple edge */

.steps li,
.example,
.compare > div {
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.steps li:hover,
.example:hover,
.compare > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--card-shadow);
  border-color: var(--accent-border);
}

/* Guarantee */

.guarantee {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.guarantee p:last-child {
  margin-bottom: 0;
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

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

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

/* A plus that turns into a cross when the answer is open */
.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transition:
    transform 0.3s var(--ease),
    background 0.2s ease,
    color 0.2s ease;
}

.faq summary:hover::after {
  background: var(--accent);
  color: var(--accent-contrast);
}

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

.faq details p {
  margin: -4px 0 16px;
  color: var(--text-muted);
  max-width: 44em;
}

.faq details[open] p {
  animation: rise 0.35s var(--ease);
}

/* Final CTA */

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

.final-cta h2,
.final-cta .section-intro,
.final-cta .guarantee {
  margin-left: auto;
  margin-right: auto;
}

.final-cta h2 {
  max-width: 16ch;
}

.final-cta .guarantee {
  max-width: 40em;
  margin-bottom: 32px;
}

.final-cta .btn {
  margin-bottom: 12px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

@media (max-width: 1023px) {
  .site-footer {
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
  }
}

/* Scroll reveal: .reveal elements start slightly low and transparent, and the
   observer in index.html adds .is-visible as each one scrolls into view. The
   .js-reveal guard means nothing is hidden if that script can't run. */

.js-reveal .reveal {
  transition:
    opacity 0.6s ease,
    transform 0.6s var(--ease);
}

.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .btn:hover,
  .steps li:hover,
  .example:hover,
  .compare > div:hover {
    transform: none;
  }
}

/* Policy pages */

.policy {
  padding: 48px 0 64px;
  max-width: 44em;
}

.policy h1 {
  font-size: clamp(30px, 5vw, 40px);
  max-width: none;
}

.policy h2 {
  font-size: 22px;
  margin-top: 36px;
}

.policy ul {
  padding-left: 20px;
}
