/* /compare (Ivan's pick of 2026-11-11: "Compare A, pick the app you use", Components/Pages/Site/Compare_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 (the page uses the home page's radio ids, so home.css draws the picked door and shows the
   .hm-who block for it), the store buttons. Only what is new is here, class prefixes ca- (the drawing's) and cm- (what the
   radios pick). Every responsive rule is a container query on .gp. No script: a door and an app chip are radios, every
   head-to-head card is in the page, and the rules under "What the radios pick" show one. Nothing here moves. */

/* Bands are tighter than the home page's: this page is a tool, and it has to stay short. */
.ca-sec { padding-block: clamp(36px, 3.4cqi, 48px); }
.gp .ca-h2 { font-size: clamp(27px, 2.7cqi, 38px); line-height: 1.06; }
.gp .ca-h2s { font-size: clamp(25px, 2.3cqi, 32px); line-height: 1.08; }
.ca-eyebrow { color: var(--blue); }
.ca-head2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22em); align-items: end; gap: 8px clamp(28px, 4cqi, 48px); margin-bottom: clamp(18px, 1.8cqi, 24px); }
.ca-head2 > p { font-size: 16.5px; padding-bottom: 3px; }
.ca-head2-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* 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; }

/* ---------- 1 · Hero: the words, the stamp, one still for the picked audience ---------- */
.ca-hero-body { display: flex; align-items: center; justify-content: space-between; gap: clamp(28px, 5cqi, 72px); padding-block: clamp(10px, 1.9cqi, 28px) clamp(30px, 3cqi, 44px); }
.ca-hero-copy { flex: 1 1 0; min-width: 0; max-width: 760px; display: flex; flex-direction: column; align-items: flex-start; }
.gp .ca-h1 { margin-top: 14px; font-size: clamp(34px, 3.7cqi, 54px); }
.gp .ca-hero-copy .gp-lead { margin-top: 18px; max-width: 36em; }
.gp .ca-stamp { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px 7px 12px; border-radius: 999px; border: 1px solid var(--navy-line); background: rgba(248, 250, 252, .06); color: var(--on-navy-2); font-size: 15px; line-height: 1.4; }
.ca-stamp i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.ca-still { display: none; flex: 0 0 clamp(320px, 31cqi, 440px); aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--navy-2); box-shadow: 0 0 0 1px var(--navy-line), 0 30px 60px -34px rgba(2, 6, 23, .9); }
.gp .ca-still img { width: 100%; height: 100%; object-fit: cover; }
.gp .ca-still.is-crew img { object-position: 100% 50%; }
.gp .ca-still.is-trip img { object-position: 50% 46%; }
.gp .ca-still.is-home img { object-position: 50% 19%; }
/* Room for the three doors, which sit across the hero's lower edge on a wide screen (home.css pulls them up). */
@container gp (min-width: 901px) {
  .ca-hero-body { padding-bottom: calc(clamp(30px, 3cqi, 44px) + 88px); }
}
@container gp (max-width: 900px) {
  .ca-hero-body { flex-direction: column; align-items: stretch; gap: 20px; padding-block: 6px 30px; }
  .ca-hero-copy { flex: none; max-width: none; }
  .gp .ca-stamp { border-radius: 14px; }
  /* The still becomes a short band under the words. */
  .ca-still { flex: none; width: 100%; aspect-ratio: 3 / 1; border-radius: var(--r-sm); }
  .gp .ca-still.is-crew img { object-position: 50% 12%; }
  .gp .ca-still.is-trip img { object-position: 50% 49%; }
  .gp .ca-still.is-home img { object-position: 50% 23%; }
}
@container gp (max-width: 520px) {
  /* On a phone the crew still closes in on the three at the table. */
  .gp .ca-still.is-crew img { width: 136%; max-width: none; margin-left: -36%; object-position: 50% 8%; }
}

/* ---------- 2 · The chooser: the home page's doors, then the app chips ---------- */
.ca .gp-sec.ca-pick { padding-bottom: clamp(36px, 3.4cqi, 48px); }
.ca-with { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.ca-with-t { font-weight: 600; font-size: 17px; }
.ca-group { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ca-group-t { margin-right: 2px; font-size: 15px; color: var(--muted); }
.ca-chip { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 1.5px solid #CBD5E1; background: #FFFFFF; color: var(--ink-2); font-weight: 600; font-size: 16px; white-space: nowrap; cursor: pointer; }
.ca-chip-in:checked + .ca-chip { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.ca-chip-in:focus-visible + .ca-chip { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- 3 · The short answer, beside one real screen that rises from the panel's lower edge ---------- */
.ca-short { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(28px, 4cqi, 56px); padding: clamp(18px, 2.2cqi, 28px) clamp(16px, 2.6cqi, 32px) 0; border-radius: var(--r); border: 1px solid var(--line); background: var(--ground); overflow: hidden; }
.ca-short-say { align-self: center; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: clamp(18px, 2.2cqi, 28px); }
.gp .ca-why { align-self: stretch; margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.ca-why p { font-size: 16.5px; text-wrap: pretty; }
.ca-why .a2-launch { margin-left: 2px; vertical-align: 1px; }
.ca-peek { align-self: end; height: 324px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ca-peek .gp-phone { box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(15, 23, 42, .5); }
.ca-short .gp-note { color: var(--muted); }

/* Where a fact about another app was read: a wrapping row of links, each a full tap target. */
.ca-src { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; font-size: 15px; color: var(--muted); }
.gp .ca-src a { min-height: 44px; display: inline-flex; align-items: center; color: var(--blue); text-underline-offset: .18em; }
.ca-src-of { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.gp .ca-short .ca-src { margin-top: 6px; }

/* ---------- 4 · The head-to-head card ---------- */
.ca-card { border-radius: var(--r); border: 1px solid var(--line); background: var(--card); overflow: hidden; box-shadow: 0 34px 60px -48px rgba(15, 23, 42, .4); }
.ca-row { display: grid; grid-template-columns: clamp(150px, 15.4cqi, 220px) minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.ca-label { padding: 19px 8px 16px clamp(18px, 1.9cqi, 26px); font-family: var(--disp); font-stretch: 78%; font-weight: 700; font-size: 15px; letter-spacing: .09em; line-height: 1.35; text-transform: uppercase; color: var(--muted); }
.ca-cell { min-width: 0; padding: 16px clamp(18px, 1.9cqi, 26px); font-size: 16.5px; line-height: 1.55; text-wrap: pretty; overflow-wrap: break-word; }
.ca-us { background: #F1F6FE; }
.ca-who { display: none; }
.ca-head .ca-cell { padding-block: 18px 14px; }
.ca-colname { display: block; font-family: var(--disp); font-stretch: 108%; font-weight: 800; font-size: clamp(19px, 1.8cqi, 23px); letter-spacing: -.015em; line-height: 1.2; }
.ca-us .ca-colname { color: var(--blue); }
.ca-colsub { display: block; margin-top: 2px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.ca-cell .a2-launch { margin-top: 9px; }
/* "Not stated": unknown, never a cross (site.css's .gfs-ns, in this look's grey). */
.ca .gfs-ns { color: var(--faint); }

/* Short labelled lines inside a cell: prices and platforms. */
.ca-kv { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 6px 12px; }
.ca-kv dt { font-weight: 600; font-size: 15px; line-height: 1.7; color: var(--muted); }

.ca-foot { display: flex; flex-direction: column; gap: 8px; padding: clamp(14px, 1.7cqi, 22px) clamp(18px, 1.9cqi, 26px) clamp(14px, 1.6cqi, 20px); }
.ca-lead { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 13px 16px; border-radius: var(--r-sm); background: var(--tint); font-size: 16.5px; line-height: 1.5; text-wrap: pretty; }
.ca-lead svg { width: 22px; height: 22px; margin-top: 1px; color: var(--ink-2); }
.ca-lead b { font-weight: 600; }
.gp .ca-names { margin-top: 4px; }

/* ---------- 5 · Every app here is good at something ---------- */
.gp .ca-ahead { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 14px; }
.ca-ahead-item { padding: 11px 16px 12px; border-radius: 12px; font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.ca-ahead-item b { font-weight: 600; color: var(--ink); }
/* "Show all nine" exists only on a phone, where the list is folded. */
.ca-more-wrap { display: none; position: relative; }
.ca-ahead-foot { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.ca-fold { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--blue); cursor: pointer; }
.ca-fold svg { flex: none; width: 18px; height: 18px; }
.ca-more .is-open, .ca-more-in:checked + .ca-more .is-shut { display: none; }
.ca-more-in:checked + .ca-more .is-open { display: inline; }
.ca-more-in:checked + .ca-more svg, .ca-read[open] > summary svg { transform: rotate(180deg); }
.ca-more-in:focus-visible + .ca-more { outline: 2px solid var(--blue); outline-offset: 3px; }
.ca-read { margin-top: 6px; }
.ca-read > summary { list-style: none; width: fit-content; }
.ca-read > summary::-webkit-details-marker { display: none; }
.ca-read > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ca-all { margin-top: 10px; padding: 8px 18px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--ground); }
.ca-all-app { min-width: 168px; font-weight: 600; color: var(--ink); }

/* ---------- 6 · How we check ---------- */
.ca-method { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px clamp(20px, 2.9cqi, 36px); font-size: 16px; color: var(--ink-2); }
.ca-method p { text-wrap: pretty; }
.gp .ca-method .gp-link { display: flex; width: fit-content; color: var(--blue); }
.gp .ca-tm { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- 7 · The close ---------- */
.ca-close { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px clamp(28px, 5cqi, 72px); }
.gp .ca-close-t { font-size: clamp(26px, 2.6cqi, 36px); line-height: 1.08; }
.gp .ca-credit { margin-top: clamp(22px, 2.4cqi, 30px); padding-top: 16px; border-top: 1px solid var(--navy-line); }

/* ---------- What the radios pick ---------- */
/* The door: its still in the hero; crew see the crew chips and cards, travelers and family the flight apps'. */
.gp:has(#hm-crew:checked) .ca-still.is-crew, .gp:has(#hm-trip:checked) .ca-still.is-trip, .gp:has(#hm-home:checked) .ca-still.is-home { display: block; }
.cm-crew { display: none; }
.cm-travel, .gp:has(#hm-crew:checked) .cm-crew { display: contents; }
.gp:has(#hm-crew:checked) .cm-travel { display: none; }
/* The app: its one card, and its line marked where each app leads. */
.cm-card { display: none; }
.gp:has(#cm-rosterbuster:checked) .cm-card.is-rosterbuster, .gp:has(#cm-aviateroster:checked) .cm-card.is-aviateroster,
.gp:has(#cm-logten:checked) .cm-card.is-logten, .gp:has(#cm-foreflight:checked) .cm-card.is-foreflight,
.gp:has(#cm-flighty:checked) .cm-card.is-flighty, .gp:has(#cm-flightaware:checked) .cm-card.is-flightaware,
.gp:has(#cm-flightradar24:checked) .cm-card.is-flightradar24, .gp:has(#cm-tripit:checked) .cm-card.is-tripit,
.gp:has(#cm-aviate:checked) .cm-card.is-aviate { display: block; }
.gp:has(#hm-crew:checked):has(#cm-rosterbuster:checked) .ca-ahead-item.is-rosterbuster, .gp:has(#hm-crew:checked):has(#cm-aviateroster:checked) .ca-ahead-item.is-aviateroster,
.gp:has(#hm-crew:checked):has(#cm-logten:checked) .ca-ahead-item.is-logten, .gp:has(#hm-crew:checked):has(#cm-foreflight:checked) .ca-ahead-item.is-foreflight,
.gp:not(:has(#hm-crew:checked)):has(#cm-flighty:checked) .ca-ahead-item.is-flighty, .gp:not(:has(#hm-crew:checked)):has(#cm-flightaware:checked) .ca-ahead-item.is-flightaware,
.gp:not(:has(#hm-crew:checked)):has(#cm-flightradar24:checked) .ca-ahead-item.is-flightradar24, .gp:not(:has(#hm-crew:checked)):has(#cm-tripit:checked) .ca-ahead-item.is-tripit,
.gp:not(:has(#hm-crew:checked)):has(#cm-aviate:checked) .ca-ahead-item.is-aviate { background: #F1F6FE; box-shadow: inset 0 0 0 1.5px #BFD4F7; }
/* The picked audience's apps come first. */
.gp:not(:has(#hm-crew:checked)) .ca-ahead-item.for-travel { order: -1; }

/* ---------- Narrower ---------- */
@container gp (max-width: 1000px) {
  .gp .ca-ahead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container gp (max-width: 900px) {
  .ca-head2 { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ca-head2 > p { padding-bottom: 0; }
  .gp .ca-why { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ca-method { grid-template-columns: minmax(0, 1fr); }
  .ca-close { grid-template-columns: minmax(0, 1fr); }
}
@container gp (max-width: 760px) {
  /* The chooser: "Compare with:" on its own line, each group's name above its chips. */
  .ca-with { margin-top: 18px; flex-direction: column; align-items: stretch; gap: 10px; }
  .ca-group-t { flex-basis: 100%; margin-right: 0; }

  /* The short answer: the words, then the screen. */
  .ca-short { margin-top: 18px; grid-template-columns: minmax(0, 1fr); padding: 18px 16px 0; }
  .ca-short-say { padding-bottom: 18px; }
  .ca-why p { font-size: 16px; }
  .ca-peek { justify-self: center; height: 282px; }

  /* Prices and platforms read as lines, not two columns. */
  .ca-kv { display: block; }
  .ca-kv dt, .ca-kv dd { display: inline; font-size: inherit; line-height: inherit; }
  .ca-kv dt::after { content: ": "; }
  .ca-kv dd::after { content: ""; display: block; height: 5px; }
  .ca-kv.is-flow dd::after { content: " · "; display: inline; color: var(--faint); }
  .ca-kv.is-flow dd:last-child::after { content: ""; }

  /* The nine one-liners: the picked audience's apps first, the rest behind one checkbox. */
  .gp .ca-ahead { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ca-ahead-item { padding: 10px 14px 11px; }
  .gp:has(#hm-crew:checked):not(:has(#cm-more:checked)) .ca-ahead-item.for-travel,
  .gp:not(:has(#hm-crew:checked)):not(:has(#cm-more:checked)) .ca-ahead-item.for-crew { display: none; }
  .ca-more-wrap { display: block; margin-top: 4px; }
  .ca-ahead-foot { margin-top: 12px; flex-direction: column; align-items: stretch; }
  .gp .ca-side { min-height: 54px; padding: 10px 22px; white-space: normal; text-align: center; line-height: 1.25; }
  .ca-all-app { min-width: 0; flex-basis: 100%; padding-top: 8px; }
}
/* Under 720 px the card folds into stacked rows: the row's name, ours, then theirs. No sideways scrolling. */
@container gp (max-width: 719px) {
  .ca-row { grid-template-columns: minmax(0, 1fr); }
  .ca-row.ca-head { display: none; }
  .ca-label { padding: 14px 18px 0; }
  .ca-cell { padding: 9px 18px 14px; font-size: 16px; line-height: 1.5; }
  .ca-cell.ca-us { margin: 8px 8px 0; padding: 9px 10px 11px; border-radius: 12px; }
  .ca-who { display: block; margin-bottom: 2px; font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--ink); }
  .ca-us .ca-who { color: var(--blue); }
  .ca-foot { padding: 14px 18px 16px; }
  .ca-lead { padding: 12px 14px; font-size: 16px; }
}
@container gp (max-width: 520px) {
  /* Both store buttons share one row on a phone; "or use it on the web" takes the next. */
  .ca-close .gp-store { flex: 1 1 0; min-width: 0; padding-inline: 16px; }
  .ca-close .gp-stores .gp-link { flex-basis: 100%; }
}
