/* The public /plans (spec 2026-11-11, Ivan's picks: "Plans A, which one are you?" from 720 px and "Plans B, three plans at a
   glance" under it; Components/Pages/Site/PublicPlans_Page.razor), in the home page's look. Loaded after home.css, whose gp-,
   a2- and a2c- parts it uses as they are: the tokens, the navy hero's header, the three doors (layout A uses the home page's
   radio ids, so home.css draws the picked door), the plan cards, the lifetime row, the store buttons. Only what is new is
   here, class prefixes pa- (layout A's drawing), pb- (layout B's), pc- (the cast's faces) and pl- (which layout shows).
   Every responsive rule is a container query on .gp. No script: every switch is a radio read through .gp:has(), every price
   it can pick is in the page, and the feature table is a <details>. Nothing here moves. */

/* ---------- Which layout shows: A from 720 px, B under it ---------- */
@container gp (width >= 720px) { .gp .pl-b { display: none !important; } }
@container gp (width < 720px) { .gp .pl-a { display: none !important; } }

.pa-big { font-size: clamp(28px, 3.3cqi, 46px); }
.pl .gp-sec { padding-block: clamp(40px, 4.2cqi, 60px); }

/* A cast member's face (240 x 240 in the drawing): square and round, sized by width. */
.pc-av { display: block; flex: none; width: 56px; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #B9C3DC; box-shadow: 0 0 0 2px #FFFFFF; }
.gp-navy .pc-av { box-shadow: 0 0 0 2px var(--navy); }
.pc-avs { display: inline-flex; align-items: center; }
.pc-avs .pc-av + .pc-av { margin-left: -14px; }
/* The page you are on, in the header's links. */
.gp-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* A two- or three-way switch: radios, their labels the buttons. */
.gp .a2c-bill { position: relative; display: inline-flex; margin: 0; min-width: 0; padding: 4px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
.a2c-bill-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.a2c-bill input:checked + .a2c-bill-btn { background: var(--ink); color: #FFFFFF; }
.a2c-bill input:focus-visible + .a2c-bill-btn { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- 1 · Hero (both layouts) ---------- */
.pa-hero, .pa-band { --pa-lap: 0px; }
.pa-hero-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: end; gap: 18px clamp(28px, 5cqi, 72px); padding-block: clamp(14px, 1.9cqi, 28px) calc(clamp(34px, 3.4cqi, 48px) + var(--pa-lap)); }
.pa-hero-title { display: flex; flex-direction: column; gap: 12px; }
.pa-hero-title .gp-h1 { font-size: clamp(40px, 5.3cqi, 76px); }
.pa-hero-say { display: flex; flex-direction: column; gap: 14px; }
.pa-hero-say .gp-lead { font-size: clamp(18px, 1.4cqi, 20px); }
.pa-hero-launch { padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--navy-line); background: rgba(248, 250, 252, .06); font-size: 16px; line-height: 1.5; color: var(--on-navy-2); text-wrap: pretty; }
.pa-hero-launch b { font-weight: 600; color: var(--on-navy); }

/* Layout B's two switches, on the hero's navy. */
.pb-switches { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.pb-sw { display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 12px; }
.pb-sw-label { font-size: 15.5px; font-weight: 500; color: var(--on-navy-2); }
.gp .pb-bill { display: flex; background: rgba(248, 250, 252, .08); border-color: var(--navy-line); }
.pb-bill .a2c-bill-btn { flex: 1 1 0; padding-inline: 8px; color: var(--on-navy); }
.pb-bill input:checked + .a2c-bill-btn { background: #FFFFFF; color: #0F172A; }

/* ---------- A2 · Find yourself at the gate ---------- */
.pa-group { position: relative; z-index: 2; margin-top: calc(-1 * var(--pa-lap)); margin-bottom: clamp(16px, 1.7cqi, 24px); border-radius: var(--r); overflow: hidden; background: var(--navy-2); box-shadow: 0 34px 60px -38px rgba(2, 6, 23, .75); }
.gp .pa-group > img { width: 100%; aspect-ratio: 2000 / 600; object-fit: cover; object-position: 50% 0; }
@container gp (width >= 720px) { .pa-hero, .pa-band { --pa-lap: min(11cqi, 160px); } }
/* The plan that fits each group, in the sky above their heads. */
.pa-tag { position: absolute; top: clamp(8px, 1.1cqi, 16px); display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 4px 13px; border-radius: 999px; background: #FFFFFF; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; box-shadow: 0 10px 22px -12px rgba(2, 6, 23, .7); }
.pa-tag b { font-weight: 700; }
.pa-tag-crew { left: 2.2%; }
.pa-tag-trip { left: 51%; transform: translateX(-50%); }
.pa-tag-home { right: 2.2%; }
.pa-gate-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 12px; }
.pa-h2 { font-size: clamp(26px, 2.5cqi, 36px); }
.pa-ask { color: var(--blue); }

/* ---------- A3 · Your plan ---------- */
.pa-plan { padding-block: clamp(32px, 3.6cqi, 52px) clamp(40px, 4cqi, 56px); }
.pa-plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: clamp(16px, 1.7cqi, 24px); }
.pa-plan-head > .a2c-bill { margin-left: auto; }
.pa-role { display: inline-flex; align-items: center; gap: 10px; }
.pa-role-ask { font-weight: 600; font-size: 16px; color: var(--ink-2); white-space: nowrap; }
.pa-role .a2c-bill-btn { padding-inline: 18px; }
.pa-role input:checked + .a2c-bill-btn { background: var(--blue); }

.pa-panel { display: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 2.4cqi, 32px); padding: clamp(14px, 1.5cqi, 20px); border-radius: var(--r); border: 1px solid var(--line); background: var(--ground); }
.pa-panel.is-home { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }

/* The recommended plan: one strong navy card. */
.gp .pa-card { align-self: stretch; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "main" "why" "get"; gap: 18px; padding: clamp(20px, 2cqi, 28px); border: 0; border-radius: calc(var(--r) - 6px); background: radial-gradient(circle, rgba(148, 163, 184, .16) .8px, transparent 1.3px) 0 0 / 10px 10px, var(--navy); color: var(--on-navy); }
.pa-card-main { grid-area: main; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.gp .pa-card p.pa-card-for { font-size: 15px; color: var(--sky-2); }
.pa-card-name { font-family: var(--disp); font-stretch: 108%; font-weight: 800; font-size: clamp(38px, 3.4cqi, 48px); letter-spacing: -.03em; line-height: 1; }
.gp .pa-card .pa-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 9px; margin-top: 4px; font-size: clamp(34px, 3cqi, 42px); }
.gp .pa-card .pa-price small { font-size: 16px; color: var(--on-navy-2); }
.pa-card-main .a2-launch { margin-top: 2px; }
.pa-card-why { grid-area: why; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gp .pa-card .a2-plan-list { margin-top: 0; gap: 9px; font-size: 16px; }
.gp .pa-card p.pa-near { font-size: 15px; color: var(--on-navy-3); text-wrap: pretty; }
.pa-get { grid-area: get; align-self: end; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--navy-line); min-width: 0; }
.gp .pa-card p.pa-get-say { font-size: 16px; font-weight: 500; color: var(--on-navy); }

/* Real screens beside it. */
.pa-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 224px)); justify-content: center; align-items: start; gap: clamp(12px, 1.4cqi, 20px); }
.pa-screens.is-one { grid-template-columns: minmax(0, 224px); }
.pa-tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pa-tile .gp-phone { width: 100%; }
.pa-tile-say { font-size: 15px; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.pa-tile-say .gp-tag { margin-right: 3px; vertical-align: 1px; }

/* Family and friends: nothing to buy, so the useful purchase is a gift. */
.pa-gift { align-self: stretch; display: flex; flex-direction: column; min-width: 0; border-radius: calc(var(--r) - 6px); border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.pa-gift-pic { position: relative; flex: 1 1 auto; min-height: 250px; background: var(--tint); }
.gp .pa-gift-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.pa-gift-say { display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 1.6cqi, 22px); }
.pa-gift-say p { font-size: 16px; color: var(--ink-2); text-wrap: pretty; }
.gp .pa-gift-say p.pa-gift-tags { line-height: 1.9; color: var(--muted); }

/* ---------- A4 · Every plan, side by side ---------- */
.gp .pa-all-head { margin-bottom: clamp(18px, 2.2cqi, 30px); }
.gp .pa-slim { gap: 6px; padding: 20px 22px; }
.pa-slim-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.pa-yours { display: none; align-items: center; padding: 3px 11px; border-radius: 999px; background: var(--blue); color: #FFFFFF; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pa-slim .gp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.gp .pa-slim p.pa-slim-for { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 500; line-height: 1.35; color: var(--ink-2); text-wrap: pretty; }
.pa-slim-for .pc-av { width: 34px; }
.pa-slim-for .pc-avs .pc-av + .pc-av { margin-left: -10px; }

/* Households: the couple at the left, the two prices, the three rules. */
.pa-house { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "pic head head" "pic say rules"; align-items: start; gap: 12px clamp(18px, 2.4cqi, 36px); padding-right: clamp(18px, 2.2cqi, 28px); border-radius: var(--r); border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.pa-house-pic { grid-area: pic; position: relative; align-self: stretch; min-height: 210px; background: var(--tint); }
.gp .pa-house-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 20%; }
.gp .pa-house-h { grid-area: head; padding-top: 20px; }
.pa-house-say { grid-area: say; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 20px; min-width: 0; }
.pa-house-plans { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.pa-house-plan { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pa-house-name { font-weight: 600; font-size: 16px; color: var(--ink-2); }
.pa-house-amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; font-family: var(--disp); font-stretch: 108%; font-weight: 800; font-size: 28px; letter-spacing: -.02em; line-height: 1.15; }
.pa-house-amt small { font-family: var(--body); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.pa-house-who { font-size: 15px; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.pa-house-rules { grid-area: rules; display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.pa-house-rules li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; text-wrap: pretty; }
.pa-house-rules svg { width: 20px; height: 20px; margin-top: 1px; color: var(--blue); }
.pa-all .a2c-life { background: var(--card); }

/* ---------- B2 · The board: three price columns, who each is for, then the value rows ---------- */
.pb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pb-board-sec { padding-block: 18px 14px; }
.pb-board { padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: 0 34px 64px -44px rgba(2, 6, 23, .6); }
.pb-headl { display: flex; flex-direction: column; gap: 4px; padding: 6px 2px 12px; }
.gp .pb-showing { color: var(--blue); }
.pb-board-t { font-size: 26px; line-height: 1.06; }
.gp .pb-ctx { font-size: 15.5px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
/* Every row of the board shares these three columns: Free, Plus, Pro. */
.pb-heads, .pb-gl, .pb-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 6px; }
.pb-head { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 7px 12px; border-radius: 14px; background: var(--tint); min-width: 0; }
.pb-head.is-plus { background: var(--navy); color: var(--on-navy); }
.pb-head .pc-av { width: 30px; box-shadow: 0 0 0 2px var(--tint); }
.pb-head .pc-avs .pc-av + .pc-av { margin-left: -9px; }
.pb-head.is-plus .pc-av { box-shadow: 0 0 0 2px var(--navy); }
.gp .pb-head .a2-plan-name { margin-top: 8px; font-size: 16px; font-stretch: 100%; line-height: 1.15; overflow-wrap: anywhere; }
.pb-price { margin-top: 2px; display: flex; flex-direction: column; align-items: flex-start; font-family: var(--disp); font-stretch: 108%; font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1.1; }
.pb-price small { font-family: var(--body); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.pb-head .a2c-then { margin-top: 2px; white-space: normal; line-height: 1.3; }
.pb-head .a2c-then s { display: block; font-size: 17px; }
.pb-head.is-plus .a2c-then { color: var(--on-navy-2); }

/* Who each plan is for, and the line under its price. */
.pb-metas { margin-top: 4px; }
.pb-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 2px; border-top: 1px solid var(--line); }
.pb-meta:first-child { border-top: 0; }
.gp .pb-meta-for { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.pb-meta-for b { margin-right: 2px; font-weight: 700; color: var(--ink); }
.pb-meta-for .gp-tag { vertical-align: 1px; }
.gp .pb-note { font-size: 15.5px; line-height: 1.4; color: var(--muted); text-wrap: pretty; }

/* The value rows: a plain label, then three short values. Each group repeats the three plan names. */
.gp .pb-gl-t { grid-column: 1 / -1; padding: 20px 2px 6px; color: var(--blue); }
.pb-gl-k { padding: 0 8px 4px; font-size: 15px; font-weight: 600; color: var(--muted); }
.pb-gl-k.is-plus { color: var(--ink); }
.pb-row { row-gap: 8px; padding: 10px 0 12px; border-top: 1px solid var(--line); }
.pb-gl + .pb-row { border-top: 0; padding-top: 2px; }
.gp .pb-label { grid-column: 1 / -1; padding: 0 2px; font-size: 15.5px; line-height: 1.4; text-wrap: pretty; }
.pb-label small { display: block; margin-top: 1px; font-size: 15px; color: var(--faint); }
.pb-cell { display: flex; align-items: center; gap: 5px; min-height: 44px; min-width: 0; padding: 6px 8px; border-radius: 10px; background: var(--tint); font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pb-cell.is-plus { background: var(--navy); color: var(--on-navy); }
.pb-cell.is-no { font-weight: 400; color: var(--muted); }
.pb-cell.is-plus.is-no { color: var(--on-navy-3); }
.pb-ok { width: 16px; height: 16px; flex: none; color: var(--blue); }
.is-plus > .pb-ok { color: var(--accent); }

.pb-foot { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; padding: 16px 2px 4px; border-top: 1px solid var(--line); }
.pb-foot-say { display: flex; flex-direction: column; gap: 3px; }
.gp .pb-foot-buy { font-size: 16.5px; font-weight: 600; }
.pb-foot .gp-store { flex: 1 1 0; min-width: 0; padding-inline: 14px; }
.pb-foot .gp-stores .gp-link { flex-basis: 100%; }

/* ---------- B3 · Two small cards: a second seat, and a gift ---------- */
.pb-pair-sec { padding-block: 0 30px; }
.pb-pair { display: flex; flex-direction: column; gap: 12px; }
.gp .pb-pcard { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 16px; }
.pb-thumb { position: relative; height: 190px; border-radius: var(--r-sm); overflow: hidden; background: var(--tint); }
.gp .pb-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 46% 16%; }
.gp .pb-thumb.is-gift img { object-position: 50% 12%; }
.pb-card-say { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 4px; min-width: 0; }
.pb-card-t { font-family: var(--disp); font-stretch: 108%; font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.gp .pb-card-p { font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.gp .pb-rules { margin-top: 2px; }
.gp .pb-seatbtn { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.pb-seatbtn svg { width: 18px; height: 18px; flex: none; }
.pb-gift-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

/* ---------- 5 · Your first trip (both layouts) ---------- */
.pa-first { padding-block: clamp(26px, 2.8cqi, 40px); }
.pa-first-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 12px clamp(28px, 5cqi, 72px); }
.pa-first-t { display: flex; flex-direction: column; gap: 8px; }
.pa-first-h { font-size: clamp(24px, 2.5cqi, 34px); }
.pa-first-in > p { font-size: 17px; color: var(--on-navy-2); text-wrap: pretty; }

/* ---------- 6 · Every feature, folded (both layouts) ---------- */
.pa-table-sec { padding-block: clamp(26px, 2.8cqi, 40px); }
.pa-fold-say { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.pa-fold-h { font-size: clamp(24px, 2.5cqi, 34px); }
.pa-fold-say .gp-note { max-width: 46em; color: var(--muted); }
.pb-fold { list-style: none; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 2.2cqi, 26px); border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--ground); cursor: pointer; }
.pb-fold::-webkit-details-marker { display: none; }
.pb-fold:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.pb-fold-say { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; min-width: 0; }
.pb-fold-t { font-family: var(--disp); font-stretch: 108%; font-weight: 800; font-size: clamp(19px, 1.9cqi, 23px); letter-spacing: -.01em; line-height: 1.2; }
.pb-fold-hint { font-size: 15.5px; color: var(--muted); }
.pb-chev { width: 26px; height: 26px; flex: none; color: var(--blue); }
details[open] > .pb-fold .pb-chev { transform: rotate(180deg); }

.pa-ft { margin-top: clamp(18px, 2cqi, 28px); }
.pa-ft-head, .pa-ft-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px 150px; }
.pa-ft-head span { padding: 10px 14px; font-family: var(--disp); font-stretch: 108%; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.pa-ft-head span + span { text-align: center; }
.pa-ft-head .is-plus { border-radius: 12px 12px 0 0; background: var(--ink); color: #FFFFFF; }
.gp .pa-ft-group { margin-top: 16px; padding: 9px 14px 8px; border-radius: 10px; background: var(--tint); font-family: var(--disp); font-stretch: 78%; font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.gp .pa-ft-head + .pa-ft-group { margin-top: 0; }
.pa-ft-row { border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.pa-ft-f { padding: 11px 14px; text-wrap: pretty; }
.pa-ft-c { position: relative; display: flex; align-items: center; justify-content: center; padding: 11px 10px; font-weight: 500; text-align: center; }
.pa-ft-c.is-plus { background: var(--way-bg); }
.pa-ft-c.is-no { font-weight: 400; color: #5A687C; }
/* Each value names its column for a screen reader; on a phone the name shows. */
.pa-ft-lab { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 7 · Questions (both layouts) ---------- */
.pa-faq { columns: 2; column-gap: clamp(28px, 5cqi, 72px); margin-top: clamp(16px, 2cqi, 26px); }
.pa-faq > div { break-inside: avoid; padding-block: 16px 18px; border-top: 1px solid #D5DCE6; }
.pa-faq dt { font-weight: 600; font-size: 19px; line-height: 1.3; }
.gp .pa-faq dd { margin-top: 5px; font-size: 16.5px; color: var(--muted); text-wrap: pretty; }

/* ---------- 8 · The close (both layouts) ---------- */
.pa-close-say { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.pa-close-say .pc-av { width: 48px; }
.pa-close-h { font-size: clamp(26px, 2.5cqi, 34px); }
.pa-close-say > p { font-size: 18px; }

/* ---------- What the radios pick (ids, so these out-rank every display above) ---------- */
/* Layout A. The door: its tag on the picture, its card; a pilot or a flight attendant only for crew. */
.gp:has(#hm-crew:checked) .pa-tag-crew, .gp:has(#hm-trip:checked) .pa-tag-trip, .gp:has(#hm-home:checked) .pa-tag-home { background: var(--blue); color: #FFFFFF; }
.gp:not(:has(#hm-crew:checked)) .pa-role { display: none; }
.gp:has(#hm-crew:checked):has(#pl-pilot:checked) .pa-panel.is-pilot, .gp:has(#hm-crew:checked):has(#pl-fa:checked) .pa-panel.is-fa,
.gp:has(#hm-trip:checked) .pa-panel.is-trip, .gp:has(#hm-home:checked) .pa-panel.is-home { display: grid; }
/* "Your pick" on the slim card of the plan that card names: Pro for a pilot, Free for family, Plus for everyone else. */
.gp:has(#hm-crew:checked):has(#pl-pilot:checked) .pa-slim.pl-pro, .gp:has(#hm-home:checked) .pa-slim.pl-free,
.gp:has(#hm-crew:checked):has(#pl-fa:checked) .pa-slim.pl-plus, .gp:has(#hm-trip:checked) .pa-slim.pl-plus { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue), 0 24px 44px -32px rgba(27, 95, 217, .6); }
.gp:has(#hm-crew:checked):has(#pl-pilot:checked) .pa-slim.pl-pro .pa-yours, .gp:has(#hm-home:checked) .pa-slim.pl-free .pa-yours,
.gp:has(#hm-crew:checked):has(#pl-fa:checked) .pa-slim.pl-plus .pa-yours, .gp:has(#hm-trip:checked) .pa-slim.pl-plus .pa-yours { display: inline-flex; }
/* Yearly or Monthly: one switch drives every price in layout A. */
.gp:has(#pl-year:checked) .pa-mo, .gp:has(#pl-month:checked) .pa-yr { display: none; }
/* Layout B: Pay (yearly, monthly, lifetime) and Seats (one, two). A Household is never sold as lifetime. */
.gp:has(#pb-year:checked) :is(.pb-b-m, .pb-b-l),
.gp:has(#pb-month:checked) :is(.pb-b-y, .pb-b-l),
.gp:has(#pb-life:checked) :is(.pb-b-y, .pb-b-m, .pb-b-ym),
.gp:has(#pb-one:checked) .pb-s-2,
.gp:has(#pb-two:checked) .pb-s-1,
.gp:has(#pb-life:checked):has(#pb-two:checked) .pb-not-l2 { display: none; }

/* ---------- Narrower ---------- */
@container gp (max-width: 1300px) {
  .pa-panel { grid-template-columns: minmax(0, 1fr); }
  .gp .pa-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; grid-template-areas: "main why" "get why"; column-gap: clamp(24px, 4cqi, 48px); }
  .pa-panel.is-home { grid-template-columns: auto minmax(0, 1fr); }
  .pa-panel.is-home .pa-card { grid-column: 1 / -1; }
}
@container gp (max-width: 1100px) {
  .pa-house { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); grid-template-areas: "pic head" "pic say" "rules rules"; }
  .pa-house-say { padding-bottom: 8px; }
  .pa-house-rules { padding: 14px 0 20px clamp(18px, 2.2cqi, 28px); border-top: 1px solid var(--line); }
  .pa-ft-head, .pa-ft-row { grid-template-columns: minmax(0, 1fr) 120px 120px 120px; }
}
@container gp (max-width: 900px) {
  .pa-hero-body { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .pa-first-in { grid-template-columns: minmax(0, 1fr); }
  .pa-faq { columns: 1; }
  .pa-tag { min-height: 26px; font-size: 13px; padding-inline: 10px; }
  .pa-plan-head > .a2c-bill { margin-left: 0; }
}
/* A phone: each table row is its feature, then three labelled cells. No sideways scrolling. */
@container gp (max-width: 760px) {
  .pa-ft-head { display: none; }
  .pa-ft-row { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 12px 2px; border-bottom: 0; }
  .pa-ft-f { grid-column: 1 / -1; padding: 0 2px 8px; font-weight: 500; }
  .pa-ft-c { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1px; padding: 8px 10px; background: var(--ground); text-align: left; overflow-wrap: anywhere; }
  .pa-ft-row > :nth-child(2) { border-radius: 10px 0 0 10px; }
  .pa-ft-row > :last-child { border-radius: 0 10px 10px 0; }
  .pa-ft-lab { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; font-size: 15px; font-weight: 400; color: var(--muted); }
  .pa-close-say .pc-av { width: 34px; }
  .pa-close-say .pc-avs .pc-av + .pc-av { margin-left: -11px; }
}
@container gp (max-width: 520px) {
  /* Both store buttons share one row on a phone; "or use it on the web" takes the next. */
  .pl .a2-close .gp-store { flex: 1 1 0; min-width: 0; padding-inline: 16px; }
  .pl .a2-close .gp-stores .gp-link { flex-basis: 100%; }
}
