/* /pricing: the tier cards, the feature table (seat packs folded in as add-ons), the FAQ accordion and the purple launch band, ported from the
   Framer page and its three code components (ompricing tiers, the add-on packs, the FAQ). The moving wave
   behind the top of the page is /assets/pages/hero-gradient.js; pricing.js sizes it as the original did. */

.pr-main { position: relative; }   /* no isolation: it trapped the pinned plan picker under the nav's frosted band (board, skailsites item 5); the wave's z-index -1 still sits above the page canvas */

/* the wave: absolutely placed at the top of the page, 28% of the page's full height (Framer's main held the
   footer too, and the canvas was 28% of it). pricing.js writes --pr-wave-h; the fallback is the 1440 value. */
.pr-wave { position: absolute; top: 0; left: 0; width: 100%; height: var(--pr-wave-h, 796px); z-index: -1; pointer-events: none; overflow: hidden; }
.pr-wave canvas { display: block; width: 100%; height: 100%; }

/* ── type shared by the three sections ─────────────────────────────────── */
.pr-main h1 { font-size: 64px; line-height: 1.2; font-weight: 700; letter-spacing: .01em; text-align: center; padding-bottom: 2px; }
.pr-main h1 strong { font-weight: 400; color: var(--accent-2); }
.pr-main h2 { font-size: 52px; line-height: 1.1; font-weight: 500; letter-spacing: 0; text-align: center; padding-bottom: 6px; }
.pr-main h2 strong { font-weight: 500; }
.pr-lead { margin: 10px auto 0; max-width: 34em;   /* 36em ran centred lines to 77 characters (board, item 64) */ padding: 0 10px; font-size: 18px; line-height: 1.6; color: var(--txt); text-align: center; text-wrap: pretty; }   /* pretty, not balance: balance stopped every line about 60px short of the box (board, item 64) */

/* ── 1. hero + tier cards ──────────────────────────────────────────────── */
.pr-hero { padding: 152px 72px 0; }
/* the plan cards are the shared ones (assets/plans.css, orgo/plans.py): only their width here */
.pr-hero .s-pricing { max-width: 1200px; margin: 40px auto 0; }

/* ── 1b. the feature table: one row per capability, one column per plan, written by orgo/plans.py. Under 640px
   the table scrolls inside its own box with the capability column pinned, so the page never scrolls sideways. ── */
.pr-compare { padding: 72px 40px 0; }   /* 40px sides: the table spans the same 1200px box as the plan cards above it */
.pr-matrix { position: relative; max-width: 1200px; margin: 32px auto 0; overflow-x: auto;   /* relative: the hidden labels (.pm-vh, absolute) are clipped here, not by the page */
   border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); }
.pr-matrix table { width: 100%; min-width: 600px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.4; }
.pr-matrix th, .pr-matrix td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.pr-matrix tbody tr:last-child > * { border-bottom: 0; }
.pr-matrix thead th { vertical-align: bottom; }
.pr-matrix tbody th { text-align: left; font-weight: 500; color: var(--txt-2); }
.pr-matrix th:first-child { position: sticky; left: 0; z-index: 1; width: 55%; background: var(--bg-elev); }   /* a tick needs about 180px and no more: at 32% the two longest labels wrapped onto a second line while 425px columns each held one tick (board, 2026-10-27) */
.pr-matrix thead th:nth-child(4), .pr-matrix td:nth-child(4) { background: rgba(108, 58, 237, .12); }
/* the table and the cards above it share one box, so their text starts at one edge: the first column carries the
   card's own 24px inset instead of the cell's 12px (board, 2026-10-27) */
.pr-matrix tbody th, .pr-matrix thead th:first-child { padding-left: 24px; }
.pr-matrix tbody td:last-child, .pr-matrix thead th:last-child { padding-right: 24px; }
.pm-name { display: block; font-size: 16px; font-weight: 700; color: var(--txt-2); }
.pm-price { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.pm-price b { font-weight: 700; color: var(--txt-2); }
.pr-matrix .s-tick { display: inline-block; width: 20px; height: 20px; vertical-align: middle; color: #34d399; }
.pr-matrix .s-none { color: var(--muted); stroke-width: 2.4; }   /* a dash is "not included" and has to read as one: the 1.7 bar the ticks carry drew a hairline at 20px, and at var(--txt-2) it was as loud as the green tick it sits beside (board, 2026-10-27) */
.pm-n { font-weight: 400; color: var(--txt); }   /* a value reads in regular weight beside its label, as in System Settings */
/* the add-ons heading row spans the table; its text is pinned left so a phone's scroller never cuts it off */
.pr-matrix .pm-group th { padding-top: 26px; font-size: 16px; font-weight: 700; color: var(--txt-2); }   /* a sentence-case row heading, not a small uppercase label (board, item 64) */
.pm-group-note { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--muted); }
.pm-bar { display: none; }
.pm-from { display: none; }   /* phone only: see the narrow-phone block (queue 32) */
.pm-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* fine print under the feature table */
.pr-note { max-width: 1200px; margin: 16px auto 0; padding: 0 25px;   /* the table's 1px border plus the first column's 24px inset */ font-size: var(--fs-label); line-height: 1.6; color: var(--muted); text-align: left; text-wrap: pretty; }   /* the table's footnote: on its width and its cells' inset, in regular weight; centred and capped it floated mid-page under the table (board, item 64) */

/* ── 3. FAQ ────────────────────────────────────────────────────────────── */
.pr-faq { padding: 42px 92px 0; }
.pr-faq-head { text-align: center; }
.pr-faq-head .pr-lead { margin-top: 5px; }
.faq { position: relative; width: 100%; max-width: 580px;   /* answers at 17px stay under 75 characters a line: at 600px and 16px they ran to 81 (board, item 64) */ margin: 9px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .3s ease, background .3s ease; }
.faq-item:hover { border-color: var(--line-strong); }
.faq-item.is-open { border-color: hsla(258, 82%, 58%, .5); }
.faq-item h3 { margin: 0; font: inherit; letter-spacing: 0; }
.faq-item button {
  appearance: none; width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 22px; border: 0;
  background: var(--bg-elev); color: var(--txt-2); font: inherit; text-align: left; cursor: pointer;
}
.faq-item button > span { flex: 1; min-width: 0; font-size: 16px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.faq-item button svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.faq-item.is-open button svg { transform: rotate(180deg); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.45, 0, .25, 1); }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; }
.faq-panel p { margin: 0; padding: 0 22px 22px; font-size: 17px; line-height: 1.6; color: var(--body); }
.faq-panel p:not(:last-child) { padding-bottom: 12px; }   /* an answer in short paragraphs reads as one answer */
.faq-item:not(.is-open) .faq-panel > div { visibility: hidden; transition: visibility 0s .4s; }

/* ── 4. the purple launch band ─────────────────────────────────────────── */
.pr-cta { margin-top: 40px; padding: 60px 20px; background: var(--accent); text-align: center; }
.pr-cta h2 { text-wrap: balance; color: #fff; }
.pr-cta-lead { margin: 10px auto 24px; max-width: var(--lead-measure); font-size: 18px; line-height: 1.6; color: #fff; }
/* the "Light" appearance of the launch button: white fill, no icon, a soft shadow on hover. Framer's
   #8478F0 text on white measured 3.5:1; the deep accent is 6.1:1. */
.btn.btn--light:hover { background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }

/* the template footer sits right under the band on this page, as on the original */

/* ── tablet (810 to 1199) ──────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .pr-hero { padding: 152px 50px 0; }
  .pr-compare { padding: 60px 50px 0; }
  .pr-faq { padding: 42px 70px 0; }
  .pr-main h1 { font-size: 48px; }
  .pr-main h2 { font-size: 40px; }
  .pr-lead { font-size: 17px; }
}
/* ── phone (under 810) ─────────────────────────────────────────────────── */
@media (max-width: 809.98px) {
  .pr-hero { padding: 152px 20px 0; }
  .pr-compare { padding: 48px 16px 0; }
  .pr-matrix { margin-top: 24px; }
  .pr-matrix table { min-width: 470px; font-size: 14px; }
  .pr-matrix th:first-child { width: 172px; }   /* 140px was measured with the old 8px cell inset: at 24px a side it left 92px for the label and "iPhone companion: search and request from anywhere" came out a word a line, so the column is the old 124px of text plus the new 48px of padding (layout guard, 2026-10-27) */
  .pr-matrix th, .pr-matrix td { padding: 14px 24px; }   /* the cards above inset 25px, so a 16px row sat neither symmetric nor lined up with them, and a 76% label column minus 32px wrapped every long label short (board, 2026-10-27) */
  /* the footnote keeps the desktop 25px inset: the table's 1px border plus the label column's 24px, which is where
     every row label on this table starts (board, 2026-10-27: at 9px it lined up with neither the labels nor the edge) */
  .pm-name { font-size: 14px; }
  .pr-faq { padding: 42px 20px 0; }
  .pr-main h1 { font-size: 40px; }
  .pr-main h2 { font-size: 32px; line-height: 1.2; }
  .pr-lead { font-size: 16px; }
}

/* ── narrow phones: one plan at a time, picked by the segmented control plans.py writes above the table ── */
@media (max-width: 599.98px) {
  /* sticky flush under the floating nav: the picker names the plan the column shows, so it stays in view the whole
     table long and the table needs no header of its own. The picker is the table card's own top (its cap), so the
     card's fill and side borders run on into the rows, which pass under it whole; the bar behind the cap is square
     page black, so no row shows past the cap's rounded corners (board, item 130) */
  .pm-bar { display: block; position: sticky; top: 78px; z-index: 5; margin: 16px 0 0; padding: 6px 0 12px; background: var(--bg); container-type: scroll-state; }
  .pm-cap { padding: 0; border: 0; border-radius: 0; background: none; }   /* queue 31: the picker is its own track above the table card, no longer the card's cap, so it is one surface, not a fill inside a card */
  .pm-cap { position: relative; }
  /* rows pass under the pinned picker through a fade, never sliced mid-letter by its edge (board, 2026-10-23); only
     while it is pinned, or the first row reads as greyed out, "not included" (board, skailsites item 5) */
  .pm-cap::after { content: ""; position: absolute; left: -1px; right: -1px; top: 100%; height: 28px; pointer-events: none; background: linear-gradient(var(--bg) 40%, transparent); opacity: 0; }
  @container scroll-state(stuck: top) { .pm-cap::after { opacity: 1; } }
  /* pinned, the picker sits under the nav's frosted band (shared/nav.css, z-index 50), which washed it out as if
     switched off (board, skailsites item 5): it draws above the band, and below it again while the phone menu is open */
  .pm-bar { z-index: 51; }
  html:has(.nav-menu:not([hidden])) .pm-bar { z-index: 5; }
  @container scroll-state(stuck: top) { .pm-cap { border-radius: 0; } }   /* pinned: square, so no black notch shows over the rows */
  .pm-pick { display: flex; gap: 0; margin: 0; padding: 3px; border-radius: 12px;
    background: rgba(255, 255, 255, .08); border: 0; }   /* a segmented control's track, a fill and no border: no tray box, so one control is not three boxes deep (board, 2026-10-27) */
  .pm-pick label { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; align-items: center; justify-content: center; min-height: 46px; padding: 4px 2px; border-radius: 9px;
    font-size: 14px; font-weight: 600; color: var(--txt-2); text-align: center; line-height: 1.15; white-space: nowrap; cursor: pointer; }   /* equal thirds: the segments are one control, so none may take the space of its label */
  .pm-pick-price { font-size: 12px; font-weight: 500; color: var(--txt-2); }
  .pm-pick input:checked + label .pm-pick-price { color: rgba(255, 255, 255, .85); }
  /* One surface (queue 31): the control is a phone's segmented control on the page, its own track above the table card
     rather than a fill inside the card's cap (a card in a card), and its segments read as buttons: a hairline between
     each pair, a raised thumb on the one chosen, the keyboard ring drawn inside it so the thumb keeps one look. */
  .pm-pick label { position: relative; }
  .pm-pick label:not(:first-of-type)::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line-2); }
  .pm-pick input:checked + label::before, .pm-pick input:checked + label + input + label::before { opacity: 0; }
  .pm-pick input:checked + label { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 1px 3px rgba(0, 0, 0, .45); }   /* the selected segment is a neutral thumb, never the accent the one call to action on the page carries (board, 2026-10-27) */
  .pm-pick input:not(:checked):focus-visible + label { outline: 2px solid var(--accent-3); outline-offset: -2px; }
  .pm-pick input:checked:focus-visible + label { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7), 0 1px 3px rgba(0, 0, 0, .45); }   /* the chosen segment keeps its one look when focused (a tap focuses it too): a brighter hairline, not a purple ring (queue 31 board, round 2) */
  .pr-matrix { margin-top: 0; }   /* a whole card under the picker's track (queue 31) */
  /* One plan's column at a time, and under Free the lower half was a column of dashes that read as an empty table
     (queue 32): a feature the plan lacks names the plan that brings it, in the muted tone a dash had. */
  .pr-matrix .pm-from { display: inline; font-size: 13px; color: var(--muted); }   /* one line, as every trailing value here is: "From" over the plan name left a word alone on a line (queue 32 board) */
  .pr-matrix td .s-tick { margin-right: -4px; }   /* the tick's glyph ends 4px inside its 20px box: pulled out, it ends on the same right edge as "Just you" and "In Personal" (queue 32 board) */
  .pr-matrix td:has(.pm-from) .s-none { display: none; }
  .pr-matrix table { min-width: 0; table-layout: auto; }   /* fixed layout would size the hidden plan columns too */
  .pr-matrix th:first-child { width: 100%; }   /* at `auto` the browser gave the value column its content width and left 40px unused after every label, so five two-line rows could have been one; the label takes every pixel the one visible tick column does not need */
  .pr-matrix tbody td, .pr-matrix thead th:not(:first-child) { width: 1%; padding-left: 0; text-align: right; white-space: nowrap; }   /* the mark ends at the same 24px inset its label starts from; it needs no left inset of its own, and every pixel the value column gives back is a pixel the label keeps on one line (board, 2026-10-27). nowrap: a value column sized to its longest value ("Just you") must not break it onto two lines */
  .pr-matrix tbody th { padding-right: 8px; }   /* the label's right inset is the value column's job: at 24 it wrapped "AI rename engine and anime resolver" one word short while 24px of its own cell sat empty (board, 2026-10-27) */
  .pr-matrix thead th:nth-child(4), .pr-matrix td:nth-child(4) { background: none; }
  .pr-matrix thead th { padding: 0; border: 0; height: 0; }
  .pr-matrix thead th > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* the sticky picker names each plan and its price, so the header stays for screen readers only (board, items 63 and 130) */
  .pr-compare:has(#pm-plan-0:checked) .pr-matrix tr > :is(:nth-child(3), :nth-child(4)),
  .pr-compare:has(#pm-plan-1:checked) .pr-matrix tr > :is(:nth-child(2), :nth-child(4)),
  .pr-compare:has(#pm-plan-2:checked) .pr-matrix tr > :is(:nth-child(2), :nth-child(3)) { display: none; }
  /* the add-on packs are Household's: on the other two tabs they were four rows of "Not available", which is a
     table of dashes nobody needs. The group and its three rows leave the phone table entirely; Household shows them. */
  .pr-compare:has(#pm-plan-0:checked) .pr-matrix tr.pm-group,
  .pr-compare:has(#pm-plan-0:checked) .pr-matrix tr.pm-group ~ tr,
  .pr-compare:has(#pm-plan-1:checked) .pr-matrix tr.pm-group,
  .pr-compare:has(#pm-plan-1:checked) .pr-matrix tr.pm-group ~ tr { display: none; }

}

@media (prefers-reduced-motion: reduce) {
  .faq-item, .faq-item button svg, .faq-panel, .faq-item:not(.is-open) .faq-panel > div { transition: none; }
}
/* narrow phones: the hero headline at 34px, as on every orgomedia.ai page */
/* balance at phone width only: plain wrapping left "household." alone on the last line at 390 and pretty did not move it
   (board, 2026-11-06); wider, the two lines already fill (balance there shortens a line that had room, see docs.css) */
@media (max-width: 479.98px) { .pr-main h1 { font-size: 34px; text-wrap: balance; } }
/* The questions as one grouped list, as Settings draws one (the board, 2026-10-30): one container, hairlines between
   rows, the question the leading line and the answer under it in secondary colour. 560px keeps a 16px answer at 75
   characters a line or fewer. */
.faq { max-width: 560px; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-elev); }
.faq-item { border: 0; border-radius: 0; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item.is-open { border-color: var(--line); }
.faq-item button > span { font-size: 17px; }
.faq-panel p { font-size: 16px; color: var(--muted); }
