/* Plans page (/pricing), rebuilt 2026-10-14 from the founder's pricing handoff.
   Kept out of styles.css so the page's layout doesn't collide with other pages' edits there.
   Every colour is a styles.css token or an rgba of one; surfaces stay dark like the rest of the site. */

.pp-hero { padding-bottom: clamp(56px, 7vw, 96px); }
.pp-hero h1 { max-width: none; font-weight: 600; letter-spacing: -.035em; }
.pp-grad { background: linear-gradient(100deg, var(--pastel-lilac), #e3d9ff 55%, var(--pastel-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pp-orbit { position: absolute; right: 0; bottom: 0; width: clamp(260px, 38vw, 560px); height: auto; z-index: 0; pointer-events: none; }

.pp-plans { padding-top: clamp(24px, 4vw, 48px); }
.pp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.pp-card { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.pp-card-ai { border-color: rgba(203,185,255,.7); box-shadow: 0 0 0 1px rgba(203,185,255,.25), 0 24px 70px -30px rgba(203,185,255,.45); background: linear-gradient(180deg, rgba(203,185,255,.07), rgba(203,185,255,0) 45%), var(--bg-soft); }
.pp-badge { position: absolute; top: -13px; right: 24px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; background: #17131f; color: #e3d9ff; border: 1px solid rgba(203,185,255,.6); }
.pp-head { display: flex; align-items: center; gap: 16px; }
.pp-head h3 { margin: 0; font-size: clamp(1.5rem, 2.1vw, 1.9rem); font-weight: 600; color: #fff; }
.pp-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; }
.pp-icon-blue { background: rgba(169,215,255,.14); color: var(--pastel-blue); }
.pp-icon-peach { background: rgba(255,201,163,.14); color: var(--pastel-peach); }
.pp-icon-lilac { background: rgba(203,185,255,.16); color: var(--pastel-lilac); }
.pp-price { display: inline-block; margin: 8px 0 0; padding: 3px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.08); }
.pp-tagline { margin: 22px 0 0; font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.pp-blurb { margin: 8px 0 0; color: var(--slate); font-size: .95rem; min-height: 4.8em; }
.pp-inherits { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: .86rem; font-weight: 600; color: #cdcdcd; }
.pp-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.pp-card > .pp-list:nth-child(4) { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.pp-list li { position: relative; padding-left: 30px; font-size: .95rem; color: var(--slate); }
.pp-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(142,232,216,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 10.2l2.6 2.6 5.4-5.6' stroke='%238ee8d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.pp-card-ai .pp-list li::before { background-color: rgba(203,185,255,.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 10.2l2.6 2.6 5.4-5.6' stroke='%23cbb9ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pp-cta { margin-top: auto; padding-top: 28px; }
.pp-cta .btn { width: 100%; justify-content: center; }
.pp-addon { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: #ffc9a3; background: rgba(255,201,163,.12); border: 1px solid rgba(255,201,163,.3); white-space: nowrap; }
.pp-table td .pp-addon { margin-left: 0; }
.pp-limit { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: #9fe3d9; background: rgba(14,147,132,.14); border: 1px solid rgba(14,147,132,.35); white-space: nowrap; }
.pp-note { margin-top: 22px; text-align: center; }

.pp-table thead th:not(:first-child), .pp-table td { text-align: center; }
.pp-table td .price-yes, .pp-table td .price-no { justify-content: center; }
.pp-table th.pp-col-ai, .pp-table td.pp-col-ai { background: rgba(203,185,255,.06); }
.pp-table thead th.pp-col-ai { background: #120f1c; color: #e3d9ff; }
.pp-table .price-yes svg [stroke] { stroke: var(--teal-bright); }
.pp-table td.pp-col-ai .price-yes svg [stroke] { stroke: var(--pastel-lilac); }

.pp-usage { padding: clamp(40px, 6vw, 80px) 0; }
.pp-usage .section-head { margin-bottom: 0; }
.pp-usage-link { grid-column: 2; margin-top: 8px; }
.pp-back { margin-top: 28px; }
.pp-back a.link { color: var(--pastel-blue); }
@media (max-width: 960px) { .pp-usage-link { grid-column: 1; } }

.pp-faq { padding-top: clamp(40px, 6vw, 80px); }
.pp-faq-list { border-bottom: 1px solid var(--line); }
.pp-faq-item { border-top: 1px solid var(--line); }
.pp-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(22px, 2.6vw, 30px) 0; }
.pp-faq-item summary::-webkit-details-marker { display: none; }
.pp-faq-item summary::after { content: "+"; flex: none; font-size: 1.6rem; line-height: 1; color: var(--pastel-lilac); transition: transform .18s ease; }
.pp-faq-item[open] summary::after { transform: rotate(45deg); }
.pp-faq-item summary:focus-visible { outline: 2px solid var(--pastel-lilac); outline-offset: 3px; border-radius: 8px; }
.pp-faq-item h3 { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 500; color: #fff; }
.pp-faq-item p { margin: 0 0 clamp(22px, 2.6vw, 30px); max-width: 72ch; color: var(--slate); font-size: 1.02rem; }

.pp-burst { position: absolute; top: clamp(40px, 6vw, 80px); right: 7vw; width: clamp(54px, 6vw, 92px); height: auto; z-index: 0; pointer-events: none; animation: slow-spin 48s linear infinite; }

/* Savings estimate (/savings): the Admin > Usage calculator, run in the browser on visitor-entered volumes. */
.pp-calc { padding: clamp(40px, 6vw, 80px) 0; }
.pp-calc .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.pp-calc-card { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.pp-calc-table-wrap { overflow-x: auto; }
.pp-calc-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.pp-calc-table th, .pp-calc-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: right; vertical-align: middle; }
.pp-calc-table th:first-child { text-align: left; }
.pp-calc-table thead th { color: #fff; font-weight: 600; font-size: .86rem; }
.pp-calc-table tbody th { color: var(--slate); font-weight: 400; }
.pp-calc-table td { color: #fff; font-variant-numeric: tabular-nums; }
.pp-calc input { width: 100%; max-width: 110px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: #fff; padding: 8px 10px; font: inherit; font-variant-numeric: tabular-nums; text-align: right; }
.pp-calc input:focus-visible { outline: 2px solid var(--pastel-lilac); outline-offset: 2px; }
.pp-calc-sections { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.pp-ecfr { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-ecfr-box { position: relative; }
.pp-ecfr-label { color: #fff; font-size: .9rem; }
.pp-ecfr > small { color: var(--slate-light); font-size: .8rem; line-height: 1.45; }
.pp-ecfr-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.04); color: var(--slate-light); font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.pp-ecfr-picked .pp-ecfr-trigger { color: #fff; }
.pp-ecfr-trigger:hover { border-color: rgba(255,255,255,.32); }
.pp-ecfr-trigger:focus-visible { outline: 2px solid var(--pastel-lilac); outline-offset: 2px; }
.pp-ecfr-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-ecfr-trigger svg { flex: none; transition: transform .15s ease; }
.pp-ecfr-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.pp-ecfr-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: #15131f; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.pp-ecfr-panel[hidden] { display: none; }
.pp-calc .pp-ecfr-filter { max-width: none; text-align: left; }
.pp-ecfr-list { list-style: none; margin: 0; padding: 0 4px; max-height: 300px; overflow-y: auto; }
.pp-ecfr-list li { padding: 2px 0; }
.pp-ecfr-list li[hidden] { display: none; }
.pp-ecfr-list label { display: flex; align-items: flex-start; gap: 10px; padding: 5px 6px; border-radius: 6px; font-size: .9rem; color: var(--slate); cursor: pointer; }
.pp-ecfr-list label:hover { background: rgba(255,255,255,.06); }
.pp-ecfr-list small { color: var(--slate-light); font-variant-numeric: tabular-nums; }
.pp-calc .pp-ecfr-list input[type="checkbox"] { width: 16px; height: 16px; max-width: none; margin: 3px 0 0; padding: 0; flex: none; accent-color: var(--pastel-lilac); }
.pp-ecfr-empty { margin: 0; padding: 4px 6px; font-size: .85rem; color: var(--slate-light); }
.pp-calc-sections-fields { display: flex; flex-direction: column; gap: 20px; }
.pp-calc-sections-out { margin: 0; font-size: .9rem; color: var(--slate); }
.pp-calc-sections-out strong { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) { .pp-calc-sections { grid-template-columns: 1fr; } }
.pp-calc-inputs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.pp-field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: #fff; }
.pp-field input { max-width: none; text-align: left; }
.pp-field small { color: var(--slate-light); font-size: .8rem; line-height: 1.45; }
.pp-calc-result { margin-top: 28px; padding: 20px 22px; border-radius: 14px; background: rgba(203,185,255,.08); border: 1px solid rgba(203,185,255,.35); }
.pp-calc-result p { margin: 0; color: #cdcdcd; }
.pp-calc-result p + p { margin-top: 8px; }
.pp-calc-result strong { color: #fff; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.pp-calc-cost strong { font-size: 1.35rem; }
.pp-calc-error { color: var(--pastel-peach) !important; font-size: .9rem; }
.pp-calc-actions { margin-top: 18px; }
.pp-calc-reset::after { content: none; }
@media (max-width: 1080px) {
  .pp-calc-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pp-calc-inputs { grid-template-columns: 1fr; }
  .pp-calc-table { min-width: 0; }
  .pp-calc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pp-calc-table, .pp-calc-table tbody, .pp-calc-table tr, .pp-calc-table th, .pp-calc-table td { display: block; }
  .pp-calc-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
  .pp-calc-table tbody th { grid-column: 1 / -1; padding: 0; border: 0; color: #fff; }
  .pp-calc-table td { padding: 0; border: 0; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; }
  .pp-calc-table td[data-out] { display: block; }
  .pp-calc-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: .74rem; color: var(--slate-light); }
  .pp-calc-table td[data-out] { grid-column: 1 / -1; color: var(--slate); }
  .pp-calc-table td[data-out]::before { display: inline; margin-right: 6px; }
  .pp-calc-table td[data-out]::after { content: " h"; }
  .pp-calc-table input { max-width: none; text-align: left; }
}

@media (max-width: 960px) {
  .pp-grid { grid-template-columns: 1fr; }
  .pp-blurb { min-height: 0; }
  .pp-orbit { opacity: .45; }
}
@media (max-width: 640px) {
  .pp-hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .pp-burst, .pp-orbit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-faq-item summary::after { transition: none; }
  .pp-burst { animation: none; }
}
.pp-horizon { margin: 0 0 28px; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--line-soft); min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pp-horizon > legend { padding: 0; margin-bottom: 8px; color: #fff; font-size: 1rem; font-weight: 600; }
.pp-horizon-intro { margin: 0; color: var(--slate-light); font-size: .8rem; line-height: 1.45; }
.pp-horizon-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.pp-horizon-group > legend { padding: 0; margin-bottom: 10px; color: var(--slate); font-size: .9rem; }
.pp-horizon-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 20px; }
.pp-horizon-out { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 1080px) { .pp-horizon-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pp-horizon-fields { grid-template-columns: 1fr; } }
