/* GetToken product pages (/claude/, /codex/ …). Loaded after guides.css and builds on its tokens.
   A product page is a purchase page: a short intro, one framed purchase panel, how buying works
   and the FAQ. Accents follow the page tone (body[data-tone] in guides.css); --solid is the filled
   variant used where white text sits on the accent. */
body[data-tone] { --solid: #3b82f6; }
body[data-tone="violet"] { --solid: #8b5cf6; }
body[data-tone="cyan"] { --solid: #0e7490; }
body[data-tone="silver"] { --solid: #475569; }
body[data-tone="green"] { --solid: #047857; }
body[data-tone="orange"] { --solid: #c2410c; }
button.g-btn { border: 0; font: 600 14px/1 var(--font); cursor: pointer; }
.g-btn--ghost, button.g-btn--ghost { border: 1px solid var(--line-2); background: transparent; color: var(--ink); }
.g-btn--ghost:hover { border-color: rgba(var(--rgb), .6); }
.p-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Intro */
.p-hero { background: radial-gradient(55% 120% at 88% 0%, rgba(var(--rgb), .22), transparent 62%), radial-gradient(40% 90% at 0% 0%, rgba(59, 130, 246, .08), transparent 65%); }
.p-hero > .g-shell { padding-bottom: 36px; }
.p-hero__head { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.p-hero h1 { margin-top: 4px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -.02em; }
.p-hero .g-lead { max-width: 760px; margin-top: 16px; }
.p-points { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; }
.p-points li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.p-points li::before { content: ""; position: absolute; left: 0; top: .25em; width: 18px; height: 18px; border-radius: 50%; background: rgba(var(--rgb), .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23f4f5f8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: inset 0 0 0 1px rgba(var(--rgb), .45); }

/* Purchase panel: its own framed surface, tone-lit edge and a darker checkout column. */
.p-buy { --accent: var(--solid); --accent-2: var(--tone); padding-bottom: 16px; scroll-margin-top: 72px; }
.p-buy__panel { display: grid; grid-template-columns: minmax(0, 1fr) 360px; border: 1px solid rgba(var(--rgb), .38); border-radius: 24px; background: radial-gradient(70% 50% at 0% 0%, rgba(var(--rgb), .1), transparent 60%), #13131b; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 50px 100px -50px rgba(var(--rgb), .55), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.p-buy__choices { min-width: 0; padding: 32px 36px 28px; }
.p-buy__head h2 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.3; }
.p-buy__head p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.p-buy__side { border-left: 1px solid rgba(255, 255, 255, .07); border-radius: 0 23px 23px 0; background: rgba(0, 0, 0, .24); }
.p-buy__fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; line-height: 1.8; }
.p-buy__fine a { color: var(--link); text-underline-offset: 3px; }

/* Segmented choices (delivery, period) */
.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice--two .choice__options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice label { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice label > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 100%; min-height: 56px; padding: 6px 4px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; transition: border-color .25s, background .25s, color .25s, box-shadow .25s; }
.choice label > span b { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.choice label > span small { font-size: 12px; font-weight: 400; color: var(--muted); }
.choice label:hover > span { border-color: rgba(var(--rgb), .5); color: var(--ink); }
.choice input:checked + span { border-color: var(--accent-2); background: rgba(var(--rgb), .1); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent-2); }
.choice input:checked + span b { color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.choice--period .choice__options { gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .2); }
.choice--period label > span { min-height: 44px; border-color: transparent; border-radius: 10px; background: transparent; }
.choice--period input:checked + span { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -6px rgba(var(--rgb), .7); }

/* Numbered steps inside the panel */
.p-step { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.p-step legend { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 0; color: var(--ink); font-size: 16px; font-weight: 600; }
.p-step__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(var(--rgb), .18); color: var(--tone); font: 700 12px/1 var(--mono); }

/* Tier cards */
.p-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.p-tier { position: relative; display: block; min-width: 0; cursor: pointer; }
.p-tier input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.p-tier__body { display: flex; flex-direction: column; height: 100%; padding: 18px 18px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(255, 255, 255, .02); transition: border-color .2s, background .2s, box-shadow .2s; }
.p-tier:hover .p-tier__body { border-color: rgba(var(--rgb), .55); }
.p-tier input:checked + .p-tier__body { border-color: var(--tone); background: rgba(var(--rgb), .09); box-shadow: inset 0 0 0 1px var(--tone), 0 20px 40px -24px rgba(var(--rgb), .7); }
.p-tier input:focus-visible + .p-tier__body { outline: 2px solid var(--tone); outline-offset: 3px; }
.p-tier__name { padding-right: 28px; font-size: 18px; line-height: 1.35; word-break: keep-all; }
.p-tier__name small { color: var(--muted); font-size: 13px; font-weight: 500; }
.p-tier__hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.p-tier__badge { padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(var(--rgb), .35); color: var(--tone); font-size: 11px; font-weight: 600; white-space: nowrap; }
.p-tier__price { display: flex; flex-direction: column; margin-top: 14px; font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.p-tier__price > small { margin-top: 4px; color: var(--faint); font-size: 12px; font-weight: 400; }
.p-tier__price .is-pending { color: var(--ink-2); font-size: 18px; font-weight: 600; }
.p-tier__desc { margin-top: 12px; color: var(--ink-2); font-size: 13px; line-height: 1.75; }
.p-tier__features { display: grid; gap: 6px; margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.p-tier__desc + .p-tier__features { margin-top: 14px; border-top: 1px solid var(--line); }
.p-tier__features span { display: flex; gap: 6px; }
.p-tier svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-tier__features svg { margin-top: 2px; color: var(--tone); }
.p-tier__tick { position: absolute; top: 18px; right: 16px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); color: transparent; transition: background .2s, border-color .2s; }
.p-tier input:checked ~ .p-tier__tick { border-color: var(--solid); background: var(--solid); color: #fff; }

/* Checkout column */
.p-checkout { padding: 32px 28px 28px; scroll-margin-top: 80px; }
.p-checkout__state { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(16, 185, 129, .14); color: #4ee0b0; font-size: 12px; font-weight: 600; }
.p-checkout__state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-checkout__state[data-state="unavailable"] { background: rgba(245, 158, 11, .13); color: #fbbf24; }
.p-checkout h3 { margin-top: 20px; color: var(--muted); font-size: 13px; font-weight: 500; }
.p-checkout__name { margin-top: 4px; font-size: 22px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.p-checkout__details { margin-top: 20px; }
.p-checkout__details > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.p-checkout__details dt { color: var(--muted); }
.p-checkout__details dd { text-align: right; font-variant-numeric: tabular-nums; }
.p-checkout__details .p-checkout__total dd { font-size: 26px; font-weight: 700; line-height: 1.2; }
.p-checkout__details .p-checkout__total.is-pending dd { color: var(--ink-2); font-size: 17px; font-weight: 600; }
.p-checkout .g-btn { width: 100%; min-height: 48px; margin-top: 18px; white-space: normal; }
.p-checkout__note { margin-top: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.p-dock { display: none; }

/* Buying steps */
.p-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.1fr; gap: 0; border-block: 1px solid var(--line); counter-reset: s; }
.p-steps li { padding: 22px 24px 24px 0; counter-increment: s; }
.p-steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.p-steps li::before { content: counter(s, decimal-leading-zero); color: var(--tone); font: 600 13px/1 var(--mono); }
.p-steps h3 { margin-top: 10px; font-size: 16px; }
.p-steps p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.p-steps .p-steps__check::before { content: "✓"; }
.p-steps a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(154, 185, 255, .35); text-underline-offset: 3px; }
.p-more { display: inline-flex; margin-top: 20px; color: var(--tone); font-size: 14px; font-weight: 600; }
.p-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.p-buy + .g-shell { padding-bottom: 88px; }
/* FAQ under its heading, left-aligned at a readable measure. */
.p-faq .g-faq { max-width: 880px; }

/* Dialogs, contact and toast: same as the homepage (home.css) */
.sheet .eyebrow { margin-bottom: 10px; color: #3b82f6; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.sheet { width: min(860px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: rgba(18, 18, 27, .84); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); color: var(--ink); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9); overflow: auto; overscroll-behavior: contain; }
.sheet[open] { animation: sheet-in .45s var(--ease); }
.sheet::backdrop { background: rgba(3, 3, 6, .72); backdrop-filter: blur(6px); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.sheet--small { width: min(480px, calc(100% - 32px)); }
.sheet__close { position: absolute; right: 12px; top: 12px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; transition: color .2s, background .2s, transform .4s var(--ease); }
.sheet__close:hover { color: #fff; background: rgba(255, 255, 255, .06); transform: rotate(90deg); }
.sheet__body { padding: 36px 28px 26px; }
.sheet h2 { font-size: 22px; }
.sheet__text { margin: 10px 0 18px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.sheet__action { width: 100%; margin-top: 18px; }
.pay { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.pay__summary { padding: 36px 28px 28px; }
.pay__panel { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 28px 28px; border-left: 1px solid var(--line); background: radial-gradient(100% 60% at 50% 0%, rgba(124, 58, 237, .12), transparent 70%), rgba(255, 255, 255, .01); }
.pay__list { margin-top: 18px; }
.pay__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pay__list dt { color: var(--muted); }
.pay__list dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pay__list .is-total dd { color: #c4a3ff; font-size: 15px; }
.pay__ref { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 10px 10px 14px; border-radius: 11px; border: 1px dashed rgba(196, 163, 255, .4); background: rgba(168, 85, 247, .06); }
.pay__ref span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pay__ref code { flex: 1; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .03em; color: #c4a3ff; word-break: break-all; }
.pay__ref button { flex: none; min-height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); font-size: 12px; font-weight: 600; }
.pay__ref button:hover { background: rgba(255, 255, 255, .1); }
.pay__steps { display: grid; gap: 8px; margin-top: 18px; counter-reset: s; }
.pay__steps li { display: flex; gap: 10px; font-size: 13px; line-height: 1.7; color: var(--muted); counter-increment: s; }
.pay__steps li::before { content: counter(s); display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 11px; font-weight: 700; }
.pay__methods { display: flex; gap: 3px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.pay__methods button { min-height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; transition: background .25s, color .25s; }
.pay__methods button[aria-selected="true"] { background: #fff; color: #0b0b10; }
.pay__qr { position: relative; display: grid; place-items: center; width: 200px; aspect-ratio: 1; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px -24px rgba(168, 85, 247, .7); }
.pay__qr img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.qr-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; border-radius: 10px; border: 2px dashed #cdcdd8; color: #555566; text-align: center; font-size: 12px; }
.qr-placeholder svg { width: 38px; height: 38px; color: #8a8a9a; }
.qr-placeholder b { color: #0b0b10; font-size: 13px; }
.pay__hint { max-width: 240px; font-size: 12px; line-height: 1.6; color: var(--faint); text-align: center; }
.pay__amount { display: flex; flex-direction: column; align-items: center; }
.pay__amount span, .pay__amount small { font-size: 12px; color: var(--muted); }
.pay__amount strong { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay__contact { display: grid; gap: 6px; width: 100%; }
.pay__contact p { font-size: 12px; color: var(--muted); text-align: center; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; }
.contact-row span { color: var(--muted); }
.contact-row b { flex: 1; font-weight: 600; text-align: right; word-break: break-all; }
.contact-row button { min-height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: transparent; font-size: 12px; }
.contact-empty { padding: 11px 14px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); text-align: center; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; padding: 10px 18px; border-radius: 999px; background: #fff; color: #0b0b10; font-size: 13px; font-weight: 600; box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .6); transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--ease), opacity .3s; pointer-events: none; }
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
.noscript-note { padding: 14px; text-align: center; font-size: 13px; color: #dbeafe; background: #172033; }
.sheet .g-btn { width: 100%; margin-top: 18px; }
.contact-qr { display: grid; justify-items: center; gap: 8px; margin: 4px auto 6px; }
.contact-qr img { width: 160px; height: 160px; padding: 8px; border-radius: 12px; background: #fff; object-fit: contain; }
.contact-qr figcaption { color: var(--muted); font-size: 12px; }
:where(.sheet) button { font: inherit; color: inherit; cursor: pointer; }


@media (max-width: 1100px) {
  .p-tiers { grid-template-columns: 1fr; }
  .p-tier__body { display: grid; grid-template-columns: minmax(0, 1fr) 150px; column-gap: 20px; }
  .p-tier__name, .p-tier__hint, .p-tier__desc, .p-tier__features { grid-column: 1; }
  .p-tier__price { grid-column: 2; grid-row: 1 / span 2; align-items: flex-end; margin: 0 28px 0 0; text-align: right; }
  .p-tier__features { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; padding-top: 0; }
  .p-tier__desc + .p-tier__features { border-top: 0; }
}
@media (max-width: 1000px) {
  .p-buy__panel { grid-template-columns: minmax(0, 1fr) 300px; }
  .p-buy__choices { padding: 28px 24px 24px; }
  .p-checkout { padding: 28px 22px 24px; }
  .p-steps { grid-template-columns: 1fr 1fr; }
  .p-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .p-steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .p-buy__panel { grid-template-columns: 1fr; }
  .p-buy__side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .07); border-radius: 0 0 23px 23px; }
}
@media (max-width: 720px) {
  .p-hero > .g-shell { padding-bottom: 24px; }
  .p-hero__head { align-items: flex-start; gap: 14px; }
  .p-hero h1 { font-size: 26px; }
  .p-points { flex-direction: column; gap: 6px; }
  .p-buy__panel { margin-inline: -8px; border-radius: 20px; }
  .p-buy__side { border-radius: 0 0 19px 19px; }
  .p-buy__choices { padding: 22px 16px 20px; }
  .p-checkout { padding: 22px 16px 20px; }
  .p-tier__body { display: flex; padding: 16px 14px 14px; }
  .p-tier__price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 10px 0 0; text-align: left; font-size: 20px; }
  .p-tier__price .is-pending { font-size: 16px; }
  .p-tier__price > small { margin-top: 0; }
  .choice label > span { min-height: 52px; }
  .pay { grid-template-columns: 1fr; }
  .pay__panel { order: -1; border-left: 0; border-bottom: 1px solid var(--line); }
  .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
  .p-steps { grid-template-columns: 1fr; }
  .p-steps li, .p-steps li + li { display: grid; grid-template-columns: 32px minmax(0, 1fr); padding: 14px 0; border-left: 0; }
  .p-steps li::before { grid-row: span 2; padding-top: 4px; }
  .p-steps h3 { margin-top: 0; font-size: 15px; }
  .p-steps p { margin-top: 2px; font-size: 13px; }
  .p-steps li + li { border-top: 1px solid var(--line); }
  .p-dock:not([hidden]) { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 9px 9px 16px; border-radius: 14px; border: 1px solid rgba(var(--rgb), .35); background: rgba(20, 20, 30, .88); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .8); animation: dock-in .45s var(--ease); }
  .p-dock > div { min-width: 0; }
  .p-dock strong, .p-dock span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .p-dock strong { font-size: 14px; }
  .p-dock span { color: var(--muted); font-size: 12px; }
  .p-dock .g-btn { flex: none; min-height: 40px; padding-inline: 16px; }
  @keyframes dock-in { from { transform: translateY(120%); } }
}
@media (prefers-reduced-motion: reduce) {
  .p-dock:not([hidden]) { animation: none; }
}
