/* =====================================================================
   BellReady — secondary public pages: guides, legal, thank-you.
   Loaded after landing.css and built only from its tokens and parts.
   ===================================================================== */

/* ---------- photo hero (guides) ---------- */
.page-hero { position: relative; padding: 92px 0 76px; background: var(--navy); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 18, 34, .72), rgba(11, 18, 34, .94)); }
.page-hero .wrap { max-width: 860px; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 4.8vw, 58px); line-height: 1.06; }
.page-hero .lede { color: var(--on-dark-2); max-width: 700px; }
.page-hero .meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--on-dark-2); }
.page-hero .meta-line li { display: inline-flex; align-items: center; gap: 7px; }
.page-hero .meta-line li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-right: 11px; }

/* breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; color: var(--on-dark-2); }
.crumbs li + li::before { content: '/'; margin: 0 10px; opacity: .5; }
.crumbs a { color: var(--gold); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- plain header (legal, thank-you) ---------- */
.page-head { position: relative; padding: 76px 0 120px; background: var(--sand); overflow: hidden; isolation: isolate; text-align: center; }
.page-head::before { content: ''; position: absolute; inset: -40% -10% auto; height: 160%; z-index: -1; background: radial-gradient(520px 360px at 82% 20%, rgba(242, 182, 50, .22), transparent 70%), radial-gradient(520px 360px at 12% 10%, rgba(225, 91, 54, .08), transparent 70%); }
.page-head h1 { font-size: clamp(36px, 4.8vw, 58px); max-width: 860px; margin-inline: auto; }
.page-head h1 em { font-style: italic; font-weight: 500; color: var(--coral); }
.page-head .lede { margin-inline: auto; }
.page-head .updated { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- article (guides) ---------- */
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; justify-content: center; align-items: start; padding: 64px 0 24px; }
.article { font-size: 18px; line-height: 1.75; color: #2f3854; }
.article-layout .article { padding: 0; }
.article:not(.article-layout .article) { max-width: 720px; margin: 0 auto; padding: 64px 0 24px; }
.article > :first-child { margin-top: 0; }
.article h2 { font: 600 clamp(26px, 2.6vw, 32px)/1.15 var(--serif); letter-spacing: -.02em; margin: 1.9em 0 .55em; scroll-margin-top: 100px; }
.article h3 { font-size: 20px; margin: 1.5em 0 .35em; }
.article p { margin: 0 0 1.1em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin: 8px 0; }
.article li::marker { color: var(--coral); }
.article b { color: var(--ink); }
.article a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article a:hover { color: var(--coral-text); }
.article .tip { margin: 26px 0; padding: 16px 20px 16px 52px; border-radius: 14px; background: var(--gold-soft); border: 1px solid #f5dfa4; font-size: 16.5px; line-height: 1.6; position: relative; }
.article .tip::before { content: ''; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b07a06' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1 2V16h5.2v-.2c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.article .box { position: relative; margin: 26px 0; padding: 22px 26px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 16.5px; line-height: 1.65; }
.article .box h3 { margin-top: 0; }
.article .box p:last-child { margin-bottom: 0; }
.article .box.template { border-style: dashed; border-color: var(--sand-2); background: #fffdf8; }
.copy-btn { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--sand-2); background: var(--white); font: 600 13px/1 var(--sans); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.done { background: var(--mint-soft); border-color: var(--mint); color: var(--mint-text); }
.article .box.template h3 { padding-right: 150px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--white); }
.article table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.article th, .article td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article tr:last-child td { border-bottom: 0; }
.article th { background: var(--sand); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.article td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* table of contents + reading progress */
.toc { position: sticky; top: 100px; padding: 20px 20px 16px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); font-size: 14px; }
.toc p { margin: 0 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 22px 1fr; padding: 6px 0; color: var(--ink-2); text-decoration: none; line-height: 1.35; transition: color .2s; }
.toc a::before { content: counter(t); font-weight: 700; color: var(--muted); }
.toc a:hover, .toc a.on { color: var(--coral-text); }
.toc a.on { font-weight: 650; }
.toc a.on::before { color: var(--coral-text); }
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 70; background: linear-gradient(90deg, var(--gold), var(--coral)); transform-origin: left; transform: scaleX(0); }

/* call to action under an article */
.article-cta { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; max-width: 1004px; margin: 40px auto 96px; padding: 40px 44px; border-radius: var(--r-lg); background: var(--navy); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.article-cta::before { content: ''; position: absolute; z-index: -1; width: 380px; height: 380px; right: -120px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 182, 50, .38), transparent 65%); }
.article-cta h2 { color: #fff; font-size: clamp(26px, 2.8vw, 32px); margin-bottom: 8px; }
.article-cta p { margin: 0; color: var(--on-dark-2); max-width: 560px; }
.article-cta .price-line { margin-top: 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.article-cta .price-line b { font: 600 30px/1 var(--serif); color: #fff; }
.article-cta .price-line s { color: var(--on-dark-2); text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.article-cta .price-line span { font-size: 14px; }
.article-cta .ctas { display: grid; gap: 10px; }

/* related guides */
.more-guides { padding: 0 0 104px; }
.more-guides h2 { font-size: clamp(28px, 3vw, 36px); }
.more-guides .guides { grid-template-columns: repeat(2, 1fr); }
.guides-index { padding: 72px 0 24px; }

/* ---------- legal pages ---------- */
.legal { position: relative; max-width: 820px; margin: -72px auto 96px; padding: 52px 60px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 17px; line-height: 1.75; color: #2f3854; }
.legal h2 { font: 650 20px/1.3 var(--sans); letter-spacing: -.01em; margin: 2em 0 .5em; color: var(--ink); }
.legal > :first-child { margin-top: 0; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--coral); }
.legal a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal a:hover { color: var(--coral-text); }
.legal .summary { margin: 0 0 8px; padding: 18px 22px; border-radius: 14px; background: var(--mint-soft); border: 1px solid #cfece4; color: var(--ink); }
.legal .summary b { color: var(--mint-text); }
.legal-nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 26px 0 0; }
.legal-nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--sand-2); background: var(--white); font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: border-color .2s, color .2s; }
.legal-nav a:hover { border-color: var(--ink); color: var(--ink); }
.legal-nav a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* refund steps */
.legal .steps { margin: 18px 0 8px; }
.legal .steps h3 { font-size: 17px; }
.legal .steps p { font-size: 15.5px; line-height: 1.6; }

/* ---------- thank-you ---------- */
.seal-ok { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; background: var(--mint); color: #fff; box-shadow: 0 0 0 8px var(--mint-soft); }
.seal-ok .ico { width: 38px; height: 38px; stroke-width: 2.6; }
.ty { max-width: 860px; margin: -72px auto 96px; position: relative; }
.ty .steps li { background: var(--white); box-shadow: var(--shadow-sm); }
.ty .steps p + p, .ty .steps .btn { margin-top: 14px; }
.ty .steps p b { color: var(--ink); }
.ty .steps code { font: 600 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--sand); padding: 3px 7px; border-radius: 6px; }
.ty .devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.ty .devices div { padding: 12px 14px; border-radius: 12px; background: var(--sand); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ty .devices b { display: block; color: var(--ink); }
.ty .help { margin-top: 26px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 36px; }
  .article-layout > * { min-width: 0; }
  .toc { position: static; margin-bottom: 36px; }
  .article-cta { margin-inline: 20px; }
}
@media (max-width: 760px) {
  .page-hero { padding: 60px 0 46px; }
  .page-head { padding: 52px 0 100px; }
  .article { font-size: 17px; }
  .article:not(.article-layout .article) { padding-top: 40px; }
  .article .box { padding: 18px 18px; }
  .article .box.template { padding-top: 60px; }
  .article .box.template h3 { padding-right: 0; }
  .article td:first-child { white-space: normal; }
  .article-cta { grid-template-columns: 1fr; margin: 24px 16px 72px; padding: 30px 24px; }
  .article-cta .btn { width: 100%; }
  .more-guides { padding-bottom: 72px; }
  .more-guides .guides { grid-template-columns: 1fr; }
  .guides-index { padding-top: 48px; }
  .legal { margin: -64px 16px 72px; padding: 30px 22px; font-size: 16px; }
  .ty { margin: -64px 16px 72px; }
  .ty .steps li { grid-template-columns: 1fr; gap: 12px; }
  .ty .devices { grid-template-columns: 1fr; }
}
.article-cta .app-line { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-dark); }
.article-cta .app-line .ico { width: 18px; height: 18px; flex: none; stroke: var(--gold); fill: none; stroke-width: 1.9; stroke-linecap: round; }
