/* Public pages /pricing/, /refunds/ and /sample/. Loaded AFTER /guide/guide.css, which declares the tokens, the base type, the header,
   buttons, breadcrumbs, the layout with the side list, the FAQ, the call-to-action box and the footer. This file only adds what those
   pages need on top, with the same tokens: no new colours except the two status tints the app already uses for "Do" and "Don't".
   Mobile-first; no horizontal scroll at 320 px; touch targets >= 44 px. */
:root {
  --success-50: #eef5ee;
  --danger-50: #fef2f2;
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* One reading column (pricing, refund policy) */
.doc { max-width: 52rem; margin: 0 auto; padding-bottom: 48px; }
.doc .hero { max-width: none; }
.prose > * + * { margin-top: 12px; }
.prose { margin-top: 12px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.textlink { display: inline-flex; align-items: center; min-height: var(--target); font-weight: 600; }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand-600); color: var(--brand-700); }

/* Label box: "AI-generated sample", policy date */
.notice { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--brand-100); border-radius: var(--radius); background: var(--brand-50); color: var(--ink); }
.notice__title { font-weight: 700; }
.notice p + p { margin-top: 4px; color: var(--ink-2); }

/* Packs */
.packs { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 40rem) { .packs { grid-template-columns: 1fr 1fr; } }
.pack {
  display: flex; flex-direction: column; min-width: 0; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.pack h3 { font-size: 1.35rem; }
.pack__price { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pack__amount { font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; line-height: 1; color: var(--ink); }
.pack__unit { font-size: 0.95rem; color: var(--muted); }
.pack__credits { margin-top: 10px; font-weight: 700; color: var(--ink); }
.pack__per { font-size: 0.95rem; color: var(--muted); }
.pack__blurb { margin-top: 10px; color: var(--ink-2); }
.pack__notes { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 6px; color: var(--ink-2); font-size: 0.95rem; }
.pack__notes li { display: flex; gap: 8px; }
.pack__notes li::before { content: "✓"; content: "✓" / ""; color: var(--brand-700); font-weight: 700; }
.pack__notes { margin-bottom: 18px; }
.pack .btn { margin-top: auto; align-self: stretch; }   /* the two buy buttons share a baseline whatever the text above them */
.packs__note { margin-top: 14px; font-size: 0.95rem; color: var(--muted); }

/* What a Brand Bible contains */
.contains { list-style: none; padding: 0; margin-top: 16px; counter-reset: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contains li { counter-increment: s; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.contains li:first-child { border-top: 0; }
.contains li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; color: var(--brand-600); }
.contains strong { display: block; color: var(--ink); }
.contains span { color: var(--ink-2); }

/* Sample Brand Bible: the same sections and blocks as the in-app view, read-only */
.toc--sections ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.toc--sections a { font-size: 0.9rem; }
@media (min-width: 64rem) { .toc--sections ol { grid-template-columns: 1fr; } }
.bb { margin-top: 24px; padding: 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.content > .bb:first-child { margin-top: 28px; }
@media (min-width: 40rem) { .bb { padding: 28px; } }
.bb__head { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bb__num { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--brand-600); }
.bb__body { margin-top: 20px; display: grid; gap: 22px; color: var(--ink-2); font-size: 0.97rem; overflow-wrap: anywhere; }
.bb__body > *, .bb-grid > * { min-width: 0; }
.bb-lead { font-size: 1.1rem; color: var(--ink); }
.bb-sub { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4; color: var(--muted); }
.bb-block > .bb-sub + * { margin-top: 8px; }
.bb-grid { display: grid; gap: 22px; }
@media (min-width: 40rem) { .bb-grid--2 { grid-template-columns: 1fr 1fr; } .bb-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.bb-hero { padding: 22px 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-50), var(--paper-2)); }
.bb-hero__name { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; line-height: 1.05; color: var(--ink); }
.bb-hero__tagline { margin-top: 8px; font-size: 1.1rem; color: var(--ink-2); }
.bb-hero .bb-chips { margin-top: 14px; }
.bb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-chip { display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--paper-2); color: var(--ink-2); font-size: 0.8rem; font-weight: 600; line-height: 1.35; }
.bb-chip--brand { background: var(--brand-50); color: var(--brand-700); }
.bb-hero .bb-chip--brand { background: var(--surface); }
.bb-bullets { list-style: none; padding: 0; display: grid; gap: 6px; }
.bb-bullets li { display: grid; grid-template-columns: 6px minmax(0, 1fr); column-gap: 10px; }
.bb-bullets li::before { content: ""; width: 6px; height: 6px; margin-top: 0.6em; border-radius: 50%; background: var(--brand-500); }
.bb-tint { padding: 16px 18px; border-radius: var(--radius); }
.bb-tint--do { background: var(--success-50); }
.bb-tint--dont { background: var(--danger-50); }
.bb-box { padding: 14px 16px; border-radius: var(--radius); background: var(--paper); color: var(--ink-2); }
.bb-box + .bb-box { margin-top: 8px; }
.bb-box--dark { background: var(--ink); color: var(--paper); }
.bb-box--mono { font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.55; }
.bb-stack { list-style: none; padding: 0; display: grid; gap: 12px; }
.bb-stack__label { margin-bottom: 4px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.bb-palette { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 40rem) { .bb-palette { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .bb-palette { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.bb-palette li { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.bb-swatch { display: block; height: 64px; }
.bb-swatch__text { display: block; padding: 10px; }
.bb-swatch__name { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.bb-swatch__hex { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.bb-cards { list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 40rem) { .bb-cards { grid-template-columns: 1fr 1fr; } }
.bb-card { padding: 16px 18px; border-radius: var(--radius); background: var(--paper); min-width: 0; }
.bb-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bb-card__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.bb-card__share { font-size: 0.9rem; font-weight: 700; color: var(--brand-700); }
.bb-card > p, .bb-card > .bb-chips, .bb-card > .bb-block { margin-top: 8px; }
.bb-slot { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--brand-700); }
.bb-panel { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); display: grid; gap: 22px; }
@media (min-width: 40rem) { .bb-panel { padding: 24px; } }
.bb-panel > *, .bb-panel .bb-grid > * { min-width: 0; }
.bb-panel__title { font-size: 1.25rem; }
.bb-panel__title + p { margin-top: 4px; color: var(--muted); }
.bb-panel .bb-box:not(.bb-box--dark) { background: var(--surface); }
/* Numbered items (ideas, scripts): the number sits in its own column, wrapped lines start under the text */
.bb-ideas { list-style: none; padding: 0; display: grid; gap: 12px; }
@media (min-width: 40rem) { .bb-ideas { grid-template-columns: 1fr 1fr; } }
.bb-ideas li, .bb-script summary { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
.bb-ideas li { padding: 14px 16px; border-radius: var(--radius); background: var(--paper); }
.bb-marker { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1; color: var(--brand-600); font-variant-numeric: tabular-nums; }
.bb-item__title { font-weight: 600; color: var(--ink); }
.bb-item__text { margin-top: 4px; font-size: 0.92rem; }
.bb-ideas .bb-chips { margin-top: 10px; }
.bb-rows { list-style: none; padding: 0; }
.bb-rows li { padding: 12px 0; border-top: 1px solid var(--line); }
.bb-rows li:first-child { border-top: 0; padding-top: 0; }
.bb-tag { display: inline-block; margin-right: 8px; padding: 2px 6px; border-radius: 6px; background: var(--paper-2); color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; }
.bb-scripts { display: grid; gap: 12px; }
.bb-script { border-radius: var(--radius); background: var(--paper); }
.bb-script[open] { background: var(--surface); border: 1px solid var(--line); }
.bb-script summary { grid-template-columns: 1.75rem minmax(0, 1fr) auto; min-height: 56px; padding: 14px 16px; cursor: pointer; list-style: none; }
.bb-script summary::-webkit-details-marker { display: none; }
.bb-script summary::after { content: "⌄"; content: "⌄" / ""; color: var(--muted); }
.bb-script[open] summary::after { transform: rotate(180deg); }
.bb-script__meta { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.bb-script__body { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.bb-script__hook { padding: 12px; border-radius: 10px; background: var(--brand-50); color: var(--ink); }
.bb-script__cta { padding: 12px; border-radius: 10px; background: var(--paper-2); color: var(--ink); }
.bb-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.bb-script__hook .bb-label { color: var(--brand-700); }
.bb-beats { list-style: none; padding: 0; display: grid; gap: 8px; }
.bb-beats li { padding: 12px; border-radius: 10px; background: var(--paper); display: grid; gap: 6px; }
@media (min-width: 40rem) { .bb-beats li { grid-template-columns: 1fr 1fr; gap: 16px; } }
.bb-guide { list-style: none; padding: 0; display: grid; gap: 6px; }
.bb-guide strong { color: var(--ink); }
.bb-days { list-style: none; padding: 0; margin-top: 8px; }
.bb-days li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: 8px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
@media (min-width: 40rem) { .bb-days li { grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 16px; } }
.bb-day { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; color: var(--brand-700); }
.bb-days .bb-chips { margin-top: 6px; }
.bb-day__about { margin-top: 8px; font-size: 0.92rem; }
.bb-day__hook { margin-top: 8px; font-size: 0.92rem; color: var(--ink); }
.bb-day__tip { margin-top: 4px; font-size: 0.92rem; color: var(--muted); }
.bb-small { font-size: 0.92rem; }
.bb-disclaimer { padding: 12px; border-radius: 10px; background: var(--paper-2); font-size: 0.85rem; color: var(--muted); }

.cta .btn + .btn { margin-left: 8px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cta--inline { margin-top: 32px; }

@media print {
  .hero__actions, .toc, .cta { display: none; }
  .bb, .pack { box-shadow: none; }
}
