/* The plan page: the price, a slider that works out the month, what is included, and the
   few answers people ask before they start. */

.p-title { font-size: clamp(3.8rem, 8vw, 7.4rem); }

/* ─── Prices: one set price per client range ───────────────────────────────── */
.tiers { padding: clamp(16px, 2.5vh, 32px) 0 clamp(90px, 12vw, 160px); }
.tier-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.tier-row li { display: grid; align-content: start; gap: 10px; padding-top: 18px; border-top: 3px solid var(--control); }
.tier-row .up { color: var(--soft); font: 600 15px/1.2 var(--body); }
.tier-row b { font: 800 clamp(3rem, 5.4vw, 5.2rem)/0.86 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tier-row .mo { color: var(--muted); font: 600 15px/1 var(--body); }
/* Oracle, the add-on, by the plan's size (132). */
.tier-row .ai { color: var(--soft); font: 600 14px/1.2 var(--body); }
.js .tier-row li { opacity: 0; transform: translateY(22px); animation: w-rise 1.1s var(--out) forwards; animation-delay: calc(0.95s + var(--k) * 90ms); }
/* Monthly or yearly (2026-10-17): the switch over the prices, Yearly first. Each price is written for
   both, the other hidden; without scripts the yearly prices show and the switch does not. */
.switches { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: clamp(26px, 3vw, 36px); }
.bill-switch { display: none; gap: 4px; padding: 4px; border-radius: 16px; background: var(--control); width: max-content; }
.js .bill-switch { display: inline-flex; }
.bill-switch button { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 600 16px/1 var(--body); cursor: pointer; transition: background-color 0.15s var(--ease), color 0.15s var(--ease); }
.bill-switch button:hover { color: var(--ink); }
.bill-switch button[aria-checked="true"] { background: var(--control2); color: var(--ink); }
.save { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; background: var(--ink); color: var(--ground); font: 600 12.5px/1 var(--body); font-style: normal; white-space: nowrap; }
.tiers[data-bill="year"] .only-month, .tiers[data-bill="month"] .only-year { display: none; }
.tier-row .price { display: flex; align-items: baseline; gap: 10px; }
.tier-row s { color: var(--muted); font: 500 clamp(1rem, 1.5vw, 1.25rem)/1 var(--body); }
.tier-row .yr { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--soft); font: 600 14px/1.2 var(--body); }
.tier-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: clamp(40px, 5vw, 64px); }
.js .tier-foot { opacity: 0; transform: translateY(18px); animation: w-rise 1.1s var(--out) 1.45s forwards; }
/* One price at a time (2026-10-26, B of the board): the sizes as buttons, no price on them, and only the
   card of the size picked (plans.js). Without scripts the sizes hide and every card shows, as before. */
.pick-q, .sizes { display: none; }
.js .pick-q { display: block; margin: 0 0 12px; font: 700 clamp(1.3rem, 1.8vw, 1.6rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.js .sizes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 600px; margin-bottom: 16px; }
.sizes button { display: grid; justify-items: center; align-content: center; gap: 3px; height: 64px; border: 0; border-radius: 14px; background: var(--control); color: var(--soft); cursor: pointer; transition: background-color 0.15s var(--ease); }
.sizes button:hover { background: var(--control2); }
.sizes button b { font: 800 26px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.sizes button span { font: 500 12px/1 var(--body); color: var(--muted); }
.sizes button[aria-checked="true"] { background: var(--ink); }
.sizes button[aria-checked="true"] b { color: var(--ground); }
.sizes button[aria-checked="true"] span { color: #4b5563; }
.sizes button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.js .tier-one { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
.js .tier-one li:not(.on) { display: none; }
.js .tier-one li { grid-template-columns: minmax(0, 1fr); align-items: start; padding: clamp(22px, 2.6vw, 30px); border-top: 0; border-radius: clamp(18px, 2vw, 24px); background: var(--panel); animation-delay: 0.95s; }
.js .tier-one b { font-size: clamp(3.4rem, 6vw, 5.2rem); }
.js .tier-one .ai, .js .tier-one .yr { grid-column: auto; }
/* Once a size is picked, its card is simply there: no rising in again. */
.tiers[data-picked] .tier-one li { opacity: 1; transform: none; animation: none; }
.t-small { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.t-small a { color: var(--ink); }

/* ─── Everything included ───────────────────────────────────────────────────── */
.p-all { padding: 0 0 clamp(90px, 12vw, 160px); }

/* ─── Answers ───────────────────────────────────────────────────────────────── */
.faq { padding: 0 0 clamp(40px, 6vw, 72px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); }
.faq dl { margin: 0; display: grid; }
.faq dt { font: 800 clamp(1.5rem, 2.2vw, 1.9rem)/1.1 var(--display); padding-top: 22px; border-top: 1px solid var(--hair); }
.faq dt:first-child { padding-top: 0; border-top: 0; }
.faq dd { margin: 10px 0 24px; color: var(--soft); max-width: 50ch; }
.faq dd a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .js .buy-lead, .js .tier-row li, .js .buy-card { opacity: 1; transform: none; animation: none; }
}

@media (max-width: 900px) {
  /* Narrow: the ranges become rows, the price on the right. */
  .tier-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tier-row li { grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 10px; padding: 18px 0; border-top-width: 1px; border-top-color: var(--hair); }
  .tier-row b { font-size: clamp(2.2rem, 8vw, 3rem); }
  .tier-row .ai, .tier-row .yr { grid-column: 1 / -1; }
  .tier-row .price b { font-size: clamp(2.2rem, 8vw, 3rem); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Fully loaded as the home page's two themes, side by side, each opening its list under them. */
.p-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.p-theme { display: grid; align-content: start; gap: 12px; padding: clamp(24px, 3vw, 36px); border-radius: clamp(18px, 2vw, 26px); background: var(--panel); }
.p-theme h3 { font: 800 clamp(1.7rem, 2.6vw, 2.4rem)/1 var(--display); text-transform: uppercase; }
.p-theme p { color: var(--soft); max-width: 40ch; }
.p-theme .see-all { margin-top: 10px; justify-self: start; }
.p-all .sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
@media (max-width: 760px) { .p-themes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .js .sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ─── One screen: what to pick on the left, the price card on the right (2026-10-28, the user: "the
   plans section, show a plus for oracle, but doesn't say its extra ... there is a lot of dead space") ─── */
.tiers.buy { padding: clamp(28px, 5vh, 64px) 0 clamp(64px, 9vw, 120px); }
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.buy .p-title { font-size: clamp(3.4rem, min(7.2vw, 11vh), 7rem); margin-bottom: clamp(16px, 2.6vh, 26px); }
.buy-lead { max-width: 38ch; margin: 0 0 clamp(22px, 3.4vh, 34px); }
.js .buy-lead { opacity: 0; transform: translateY(16px); animation: w-rise 1.1s var(--out) 0.75s forwards; }
.buy .switches { margin-bottom: clamp(18px, 2.6vh, 26px); }
.js .buy .sizes { max-width: 640px; margin-bottom: 0; }

/* The card: the size's price, Oracle as a plus row, what comes with it, the button. */
.buy-card { display: grid; gap: 18px; padding: clamp(24px, 3vw, 34px); border-radius: clamp(20px, 2vw, 28px); background: var(--panel); }
.js .buy-card { opacity: 0; transform: translateY(22px); animation: w-rise 1.1s var(--out) 0.95s forwards; }
.js .buy .tier-one { max-width: none; }
.js .buy .tier-one li, .tiers.buy[data-picked] .tier-one li { padding: 0; border-radius: 0; background: none; gap: 10px; opacity: 1; transform: none; animation: none; }
.buy .ai { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--row); }
.ai-plus { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--control2); color: var(--ink); font: 800 24px/1 var(--display); }
.ai-t { display: grid; gap: 3px; min-width: 0; }
.ai-name { color: var(--ink); font: 800 1.3rem/1 var(--display); letter-spacing: 0.01em; text-transform: uppercase; }
.ai-sub { color: var(--muted); font: 500 13.5px/1.3 var(--body); }
.ai-p { color: var(--ink); font: 600 15px/1.2 var(--body); white-space: nowrap; }
.buy-incl { display: grid; gap: 10px; margin: 2px 0 0; padding: 18px 0 0; border-top: 1px solid var(--control); }
.buy-incl li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--soft); font-size: 15.5px; line-height: 1.4; }
.buy-incl svg { width: 20px; height: 20px; color: var(--blaze); stroke-width: 2.6; }
.buy-go { width: 100%; }
.buy .t-small { margin: 0; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 900px) {
  .buy-grid { grid-template-columns: minmax(0, 1fr); }
  .buy .ai { grid-column: 1 / -1; }
}
