/* Pricing, free-plan version (board mockup 2026-10-10): three plans, Free vs Subscribed, no road framing, no videos, no sound. */

/* ─── 1. hero ─── */
.sg-top { position: relative; padding: clamp(40px, 5vw, 64px) 0 26px; text-align: center; isolation: isolate; }
.sg-top::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 55% 70% at 50% 20%, rgba(212,175,55,.10), transparent 70%), radial-gradient(ellipse 40% 50% at 50% 100%, rgba(255,122,47,.08), transparent 70%); }
.sg-top-in { display: grid; justify-items: center; gap: 4px; }
.sg-top .sg-h1 { margin: 10px 0 12px; font-size: clamp(32px, 4vw, 56px); text-wrap: balance; }
.sg-bottomless .sg-h2 { text-align: center; }
.sg-top .sg-lede { max-width: 820px; margin: 0 auto 8px; }

/* ─── 2 + 3. the plan (one card, its price follows the toggle) beside how the 14 days work ─── */
.sg-plans-sec { padding: 22px 0 30px; }
.sg-plan-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1080px; }
.sg-plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 30px 24px; border-radius: 18px; border: 1px solid rgba(212,175,55,.6);
  background: linear-gradient(180deg, rgba(212,175,55,.08), transparent 40%), rgba(20,17,14,.9); box-shadow: 0 24px 50px rgba(0,0,0,.55), 0 0 40px rgba(255,180,80,.12); transition: transform .3s var(--ease-spring); }
.sg-plan:hover { transform: translateY(-3px) scale(1.01); }
.sg-plan-tag { position: absolute; top: -13px; right: 22px; }
body[data-period="yearly"] .sg-plan-tag[data-only="yearly"] { display: inline-flex; }
.sg-plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.sg-plan-price b { font: 900 clamp(48px, 4.6vw, 64px)/1 var(--font-display); color: var(--gold); text-shadow: 0 0 26px rgba(212,175,55,.3); font-variant-numeric: tabular-nums; }
.sg-plan-price span { font: italic 22px/1 var(--font-lore); color: var(--cream); }
.sg-plan-price em { flex-basis: 100%; font: 600 12px/1 var(--font-heading); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim); }
body[data-period="yearly"] .sg-plan-price em[data-only="yearly"] { display: block; }
.sg-plan .sg-list { padding-top: 16px; border-top: 1px solid var(--gold-faint); }
.sg-plan .sg-list li { font-size: 15.5px; }
.sg-list .sg-list-lead { color: var(--cream); font-weight: 600; }
.sg-plan-btn { width: 100%; justify-content: center; margin-top: 6px; }
.sg-plan .sg-rc-small { text-align: center; }
.sg-plans-under { margin: 2px 0 0; text-align: center; font-size: 17px; }
/* how the 14 days work: three plain steps (static) */
.sg-steps { display: grid; gap: 18px; }
.sg-steps-h { margin: 0; font: 700 clamp(24px, 2.4vw, 32px)/1.15 var(--font-display); color: var(--gold); letter-spacing: .02em; }
.sg-step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
.sg-step-list::before { content: ''; position: absolute; left: 26px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(212,175,55,.2)); }
.sg-step-list li { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 18px 14px 0; font-size: 16px; line-height: 1.55; color: var(--cream-dim); }
.sg-step-list b { font: 700 17px/1.3 var(--font-heading); letter-spacing: .03em; color: var(--cream); margin-right: 4px; }
.sg-step-list .sg-seal { font-size: 24px; cursor: default; }
.sg-step-list .sg-seal:hover { transform: none; }
@media (max-width: 1000px) { .sg-plan-row { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 600px) { .sg-plan { padding: 26px 20px 22px; } .sg-step-list li { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; font-size: 15.5px; } .sg-step-list .sg-seal { width: 46px; height: 46px; font-size: 20px; } .sg-step-list::before { left: 22px; } }

/* ─── 4. what a month includes: one column on parchment ─── */
.sg-ledger { padding: 22px clamp(16px, 3vw, 30px) 16px; }
.sg-ledger-small { margin-top: 10px; font-size: 14.5px; color: var(--cream-dim); }
.sg-allow { width: 100%; border-collapse: collapse; position: relative; }
.sg-allow thead th { padding: 4px 8px 12px; font: 700 12px/1 var(--font-heading); letter-spacing: .2em; text-transform: uppercase; color: #7a4a1a; text-align: right; border-bottom: 1px solid rgba(90,60,20,.45); }
.sg-allow thead th:first-child { text-align: left; }
.sg-allow tbody th { display: flex; align-items: center; gap: 10px; padding: 10px 8px; text-align: left; font: 400 18px/1.25 var(--font-lore); color: #3c2f1e; }
.sg-allow tbody th iconify-icon { flex: none; color: #8a1c22; font-size: 20px; }
.sg-allow tbody th small { font: italic 14px/1.2 var(--font-lore); color: #6b5232; }
.sg-allow td { padding: 10px 8px; text-align: right; font: 700 22px/1 var(--font-heading); color: #3c2f1e; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sg-allow td.none { color: rgba(60,47,30,.4); font-weight: 400; }
.sg-allow tbody tr + tr > * { border-top: 1px dashed rgba(90,60,20,.3); }
.sg-allow td:last-child { color: #8a1c22; }
.sg-allow tbody tr { opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s var(--ease-out); }
.sg-ledger.in .sg-allow tbody tr { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sg-allow tbody tr { opacity: 1; transform: none; } }
@media (max-width: 520px) { .sg-allow tbody th { font-size: 16px; gap: 8px; } .sg-allow tbody th small { display: block; } .sg-allow td { font-size: 19px; } .sg-allow thead th { letter-spacing: .1em; } }
.sg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* medals */
.sg-medals { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 960px; margin-left: auto; margin-right: auto; }
.sg-medals li { display: grid; justify-items: center; gap: 10px; text-align: center; cursor: pointer; }
.sg-medal { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; color: #3a2508; background: radial-gradient(circle at 38% 30%, #fff1c8, #e2bf4d 45%, #8a6420); box-shadow: 0 10px 24px rgba(0,0,0,.55), inset 0 0 0 4px rgba(90,60,10,.35), 0 0 0 5px rgba(12,10,8,.7); transition: transform .3s var(--ease-spring), box-shadow .3s; }
.sg-medals li:hover .sg-medal { transform: rotate(-8deg) scale(1.08); box-shadow: 0 14px 30px rgba(0,0,0,.6), inset 0 0 0 4px rgba(90,60,10,.35), 0 0 0 5px rgba(12,10,8,.7), 0 0 30px rgba(243,212,122,.5); }
.sg-medals b { font: 700 14px/1.2 var(--font-heading); color: var(--cream); letter-spacing: .03em; }
.sg-medals small { font: italic 13px/1.2 var(--font-lore); color: var(--gold-dim); }

.sg-medals a { display: contents; color: inherit; text-decoration: none; }
@media (max-width: 600px) { .sg-medals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; } .sg-medal { width: 64px; height: 64px; font-size: 28px; } .sg-medals b { font-size: 12.5px; } .sg-medals small { font-size: 12px; } }
.sg-medals small { color: var(--cream-dim); }

/* faq */
.sg-faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.sg-faq { display: grid; gap: 10px; }
.sg-q { border-radius: 14px; border: 1px solid var(--umber); background: var(--panel); overflow: hidden; transition: border-color .25s; }
.sg-q.open { border-color: var(--gold-hair); }
.sg-q button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 0; background: none; text-align: left; font: 600 17px/1.3 var(--font-heading); color: var(--cream); letter-spacing: .02em; }
.sg-q button .sg-seal { width: 30px; height: 30px; font-size: 13px; pointer-events: none; }
.sg-q.open button .sg-seal { background: var(--sg-wax-gold); color: #3a2508; }
.sg-q-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.sg-q.open .sg-q-a { grid-template-rows: 1fr; }
.sg-q-a > div { overflow: hidden; }
.sg-q-a p { margin: 0; padding: 0 18px 18px 62px; font: 400 15.5px/1.6 var(--font-body); color: var(--cream-dim); }
@media (max-width: 900px) { .sg-faq-wrap { grid-template-columns: 1fr; } }

@media (max-width: 600px) { .sg-q button { font-size: 16px; } .sg-q-a p { padding-left: 18px; } }

/* ─── Monthly / Yearly (Peter 2026-10-02: $49.99 a year, up front, no trial, "2 months free") ─── */
.sg-period { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin: 18px auto 0; padding: 4px; border-radius: 999px; border: 1px solid var(--gold-hair); background: rgba(12,10,8,.78); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.sg-period button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--cream-dim); font: 600 15px/1 var(--font-heading); font-variant: small-caps; letter-spacing: .08em; white-space: nowrap; transition: color .25s; }
.sg-period button[aria-checked="true"] { color: var(--btn-primary-text); }
.sg-period-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--btn-primary); box-shadow: 0 0 22px rgba(212,175,55,.35), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .45s var(--ease-spring); }
.sg-period[data-on="yearly"] .sg-period-thumb { transform: translateX(100%); }
.sg-period-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 700 10px/1 var(--font-heading); font-variant: normal; letter-spacing: .12em; text-transform: uppercase; color: #ffd3b0; background: rgba(255,122,47,.18); border: 1px solid rgba(255,122,47,.5); transition: color .25s, background .25s, border-color .25s; }
.sg-period button[aria-checked="true"] .sg-period-badge { color: #3a2508; background: rgba(255,255,255,.35); border-color: rgba(90,60,10,.35); }

[data-only] { display: none; }
body[data-period="monthly"] [data-only="monthly"], body[data-period="yearly"] [data-only="yearly"] { display: revert; }
body[data-period="yearly"] p[data-only="yearly"].sg-rc-then { display: flex; }
.sg-rc-then { margin: 0; align-items: center; gap: 8px; font: italic 15px/1.35 var(--font-lore); color: var(--gold-bright); }


.sg-tag-gold { color: #3a2508 !important; background: var(--btn-primary) !important; border-color: rgba(255,230,150,.5) !important; }
.sg-rc-small { margin: 0; font: 400 12.5px/1.4 var(--font-body); color: var(--cream-dim); }

.sg-allow.one { max-width: 520px; margin: 0 auto; }
