/* The extra pages: comparisons (/vs/), business types (/for/), Phoenix and the Southwest, what you
   need (/hardware/) and partners. Loaded after site.css (colors, header, buttons, cards, steps,
   sections) and legal.css (the short footer). Same layout rules as everywhere: nothing wider than
   its container, grid and flex children may shrink, long words wrap, and the page never scrolls
   sideways (check at 390px wide). Links are root-relative (/start/), so they work at any depth.
   Every color here is a token below, so the pages follow the theme and the light look. */
:root {
  --pg-soft: #d7dcf3;                  /* body text on cards and tables */
  --pg-link: #9fc1ff;                  /* links inside text */
  --pg-tint: rgba(255, 255, 255, .05); /* table heads, tags */
  --pg-us-line: rgba(79, 140, 255, .5);
  --pg-us-bg: rgba(79, 140, 255, .07);
  --pg-warn: #ffd98a;                  /* "Good to know": the honest limits */
  --pg-warn-line: rgba(255, 196, 92, .35);
  --pg-warn-bg: rgba(255, 196, 92, .06);
}
/* Any look but today's (how these work: the end of site.css) */
:root[data-mode="light"], :root[data-theme] {
  --pg-soft: var(--text);
  --pg-link: var(--blue);
  --pg-tint: color-mix(in srgb, var(--text) 5%, transparent);
  --pg-us-line: color-mix(in srgb, var(--blue) 50%, transparent);
  --pg-us-bg: color-mix(in srgb, var(--blue) 8%, transparent);
}
/* The light look only */
:root[data-mode="light"] {
  --pg-warn: #7a4b00;
  --pg-warn-line: rgba(176, 112, 0, .4);
  --pg-warn-bg: rgba(255, 196, 92, .16);
}

/* Links inside text */
.pg main :is(p, li, td, dd) a:not(.btn) { color: var(--pg-link); text-underline-offset: 3px; }
.pg main :is(p, li, td, dd) a:not(.btn):hover { color: var(--text); }

/* The top of each page: where you are, the title, a few words, the buttons */
.pg-hero { position: relative; overflow: hidden; padding: 40px 0 48px; }
.pg-hero .aurora { opacity: .75; }
:where(:root[data-mode="light"]) .pg-hero .aurora { opacity: .4; }
.pg-hero-in { position: relative; }
.pg-hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; max-width: 17em; }
.pg-hero .lede { max-width: 38em; }
.pg-meta { margin: 20px 0 0; color: var(--muted); font-size: 14.5px; }
.crumbs { margin: 0 0 22px; font-size: 14.5px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.crumbs li { min-width: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; }
.crumbs a { display: inline-block; padding: 6px 0; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

/* Room between a heading and what it heads (the .sub line under a heading brings its own) */
.pg .section h2 + :is(.cards, .cmp-wrap, .fit, .hub, .sources, .steps, .also) { margin-top: 28px; }
.pg-hero + .section { padding-top: 64px; }
.pg .section :is(.cards, .fit, .steps, .hub) + .cta { margin-top: 28px; }
/* "Next" links after a section: Denali vs Toast →, What you need → */
.pg-next { display: flex; flex-wrap: wrap; gap: 6px 26px; }

/* Feature cards: site.css .cards and .card, with an icon on top */
.feats .card h3 { margin-top: 2px; }
.feats .card p { font-size: 15.5px; }
.card .list { margin: 12px 0 0; }
.card .list li { color: var(--pg-soft); font-size: 15.5px; }

/* Good to know: the honest limits */
.pg-note { margin: 0; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--pg-warn-line); background: var(--pg-warn-bg); }
.pg-note h2, .pg-note h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.01em; color: var(--pg-warn); }
.pg-note ul { margin: 0; padding-left: 20px; color: var(--pg-soft); font-size: 15.5px; line-height: 1.6; }
.pg-note li + li { margin-top: 6px; }
.pg-gap { margin-top: 28px; }

/* Comparisons: side by side. On phones each row becomes a card. */
.cmp-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); }
.cmp { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.cmp .c-label { width: 18%; }
.cmp .c-us, .cmp .c-them { width: 41%; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 15px 18px; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.cmp thead th { background: var(--pg-tint); color: var(--text); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.cmp tbody th { color: var(--text); font-weight: 700; }
.cmp td { color: var(--pg-soft); }
.cmp .us-col { background: var(--pg-us-bg); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.src { margin-left: 3px; padding: 0 1px; font-size: 12px; font-weight: 800; line-height: 0; vertical-align: super; text-decoration: none; white-space: nowrap; }
.pg main :is(p, li, td) a.src { color: var(--pg-link); text-decoration: none; }
@media (max-width: 760px) {
  .cmp thead, .cmp colgroup { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp tbody th { padding: 0 0 6px; border: 0; font-size: 16.5px; }
  .cmp td { padding: 8px 0 0; border: 0; }
  .cmp td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .cmp .us-col { background: none; }
}

/* Comparisons: who each one fits */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fit .card h3 { font-size: 20px; margin-bottom: 12px; }
.fit .us { border-color: var(--pg-us-line); background: var(--pg-us-bg); }
.fit ul { margin: 0; padding-left: 20px; color: var(--pg-soft); font-size: 15.5px; line-height: 1.6; }
.fit li + li { margin-top: 8px; }
@media (max-width: 760px) { .fit { grid-template-columns: minmax(0, 1fr); } }

/* Sources and small print */
.sources { margin: 0; padding-left: 24px; color: var(--pg-soft); font-size: 14.5px; line-height: 1.6; }
.sources li { margin: 0 0 10px; padding: 2px 4px; border-radius: 8px; scroll-margin-top: 90px; }
.sources li:target { background: var(--pg-us-bg); }
.sources a { overflow-wrap: anywhere; }
.fine { margin: 18px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* Hubs: big links to each page */
.hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub a { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .2s, transform .2s; }
.hub a:hover { border-color: var(--pg-us-line); transform: translateY(-1px); }
.hub .ic { margin-bottom: 6px; }
.hub b { color: var(--text); font-size: 18px; }
.hub span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.hub em { color: var(--pg-link); font-size: 14.5px; font-style: normal; font-weight: 700; }
@media (max-width: 980px) { .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hub { grid-template-columns: minmax(0, 1fr); } }

/* Hardware: one card per kind of device, a short list of what works on it */
.card dl { margin: 12px 0 0; display: grid; gap: 8px; }
.card dt { color: var(--text); font-weight: 700; font-size: 15.5px; }
.card dd { margin: -4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card h3 + p + dl { margin-top: 16px; }

/* A row of links shaped like the home page's tags (Phoenix: pick your kind of business) */
.also.pg-links { justify-content: flex-start; margin-top: 8px; }
.also.pg-links li { padding: 0; }
.pg main .also.pg-links a { display: block; padding: 10px 16px; color: var(--text); font-size: 15px; text-decoration: none; }
.also.pg-links li:hover { border-color: var(--pg-us-line); }

/* Four steps (partners) */
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .steps.four { grid-template-columns: minmax(0, 1fr); } }

/* The footer: the other pages, then the legal line */
.pg-foot { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-items: start; gap: 14px; }
.pg-more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.pg-more b { color: var(--text); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.pg-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .pg-hero { padding: 28px 0 44px; }
  .pg-hero + .section { padding-top: 48px; }
  .pg-more { gap: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub a { transition: none; }
}

/* A screenshot of the register on an inner page (site.css .device frames it). */
.pg-shot { margin: 0 0 48px; max-width: 980px; }
.pg-shot.phone-shot { max-width: 300px; }
.pg-shot figcaption { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
