/* frames.css — the container system both landing pages share: two rail
   frames built like the handset, square step cards, and the page-level
   performance rules. Colour comes from the page: it sets --acc-rgb (the
   accent as "r,g,b") and the frames stay neutral otherwise. Loaded after
   home.css and before the page's own stylesheet. */

.pg-frames{--acc-rgb:110,207,255}

/*
 * Two container styles, shared by both landing pages (body.pg-frames).
 *   rail     — built like the handset: a brushed-steel rail around a dark
 *              screen (the chrome highlight was too loud next to graphite). For the boxes that ARE the product: the hero slot, the
 *              autoviral column, the spec sheet, the price card.
 *   graphite — the same build in a slimmer, darker rail with a quieter edge,
 *              for everything else. Both carry an inset top highlight and a
 *              sheen; they differ by a step, not a category.
 * Both keep the dots and the centred title. The rail is a transparent border
 * with two background layers, so no wrapper element is needed.
 *
 * Shadows are deliberately small: one hairline and one short drop. The big
 * blurred glows this started with were the single most expensive thing to
 * scroll on a Gecko laptop — twelve 64px blurs inside rounded clips.
 */
.pg-frames .cn-box.rail{
  --rail:linear-gradient(145deg,#545a62 0%,#2b3036 20%,#15181c 50%,#101316 75%,#353a41 100%);
  border:4px solid transparent;border-radius:22px;overflow:hidden;
  background:linear-gradient(#06080b,#06080b) padding-box,var(--rail) border-box;
  box-shadow:0 0 0 1px rgba(0,0,0,.85),0 1px 0 rgba(255,255,255,.07) inset,0 14px 28px -18px rgba(0,0,0,.9)}
.pg-frames .cn-box.rail::before{border-radius:18px;
  background:linear-gradient(150deg,rgba(255,255,255,.055) 0%,rgba(255,255,255,.015) 22%,transparent 46%)}
.pg-frames .cn-box.rail .cn-box-head{border-radius:18px 18px 0 0;background:#0b0e12}
/* the highlighted column keeps a glow in the page's own accent (--acc-rgb) */
.pg-frames .cmp .us{box-shadow:0 0 0 1px rgba(0,0,0,.85),0 1px 0 rgba(255,255,255,.07) inset,0 14px 28px -18px rgba(0,0,0,.9),0 0 18px rgba(var(--acc-rgb),.16)}
/*
 * graphite — the sibling of the rail for every other container (the other
 * comparison columns, the FAQ, the step cards). Same construction and the same
 * dark screen, but a slimmer rail in matte graphite with no bright edge, so it
 * sits a step behind the rail boxes instead of competing with them.
 */
.pg-frames .cn-box:not(.rail),.pg-frames .steps .step{
  --rail:linear-gradient(145deg,#474d55 0%,#262b31 20%,#141719 50%,#0e1013 75%,#2d3238 100%);
  border:3px solid transparent;border-radius:18px;
  background:linear-gradient(#06080b,#06080b) padding-box,var(--rail) border-box;
  box-shadow:0 0 0 1px rgba(0,0,0,.85),0 1px 0 rgba(255,255,255,.05) inset,0 12px 24px -16px rgba(0,0,0,.9)}
.pg-frames .cn-box:not(.rail){overflow:hidden}
.pg-frames .cn-box:not(.rail)::before{border-radius:15px;
  background:linear-gradient(150deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.012) 22%,transparent 46%)}
.pg-frames .cn-box:not(.rail) .cn-box-head{border-radius:15px 15px 0 0;background:#0a0d11}
/* the step cards keep the graphite rail but square corners — they are list
   items, not screens */
.pg-frames .steps .step{padding:26px 28px;position:relative;overflow:hidden;border-radius:3px}
.pg-frames .steps .step::before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:0;
  background:linear-gradient(150deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.012) 22%,transparent 46%)}
/* the site's terminal window blurs whatever is behind it; on this page that is
   a static near-black, so the blur costs a pass and shows nothing */
.pg-frames .cn-box{backdrop-filter:none;-webkit-backdrop-filter:none}


/* the pricing card carries no title bar on either page — the price is the
   heading — so the body needs the rounding the head used to give it */
.pg-frames .price-card .cn-box-body{border-radius:18px}

/* ── performance ────────────────────────────────────────────────────────── */
/*
 * The page-level costs (shared by both landing pages), in the order they mattered:
 *  - home.css pins the body's scanline texture with background-attachment:
 *    fixed, which makes Gecko repaint the whole viewport on every scroll. It
 *    scrolls with the page here; at 1px lines nobody can tell.
 *  - Everything below the hero is content-visibility:auto, so the browser
 *    skips laying out and painting sections that are off screen.
 *  - hero-away.js pauses the hero video and the hero's animations while the
 *    hero is scrolled away (the .is-away class), and the demo phone's while it
 *    is not in view.
 */
.pg-frames{background-attachment:scroll}
/* #features is excluded: dials.js measures the tile pitch from offsetLeft at
   load, and a skipped subtree reports 0, which would leave the dials on the
   approximate percentage fallback and never clone enough tiles. */
.pg-frames section:not(.hero):not(#features){content-visibility:auto;contain-intrinsic-size:auto 720px}
.hero.is-away .crt-scanline,.hero.is-away .hero-inner,.hero.is-away .dp-lock-hint,.hero.is-away .dp-heart{animation-play-state:paused}
.hero.is-away .hero-video{visibility:hidden}

/* ── the three product pages (driver, phones, control board) ───────────── */
/*
 * The accent-driven rules the driver, phones and control-board pages share.
 * Each page sets its own --acc-rgb / --cn-blue on its body class (.pg-driver,
 * .pg-devices, .pg-board); everything here reads those, so one copy serves
 * all three. :is() keeps each selector's specificity what it was when it was
 * written three times with the page class. Accounts (.pg-accounts) are violet
 * since the driver took the brand blue.
 */
.pg-accounts{--acc-rgb:178,140,255;--cn-blue:#b28cff}
:is(.pg-driver,.pg-devices,.pg-board,.pg-accounts){
  --cn-blue-dim:rgba(var(--acc-rgb),.4);
  --cn-glow-blue:0 0 2px var(--cn-blue),0 0 10px rgba(var(--acc-rgb),.3),0 0 30px rgba(var(--acc-rgb),.1);
  background-image:
    radial-gradient(900px 460px at 12% -6%,rgba(var(--acc-rgb),.06),transparent 60%),
    repeating-linear-gradient(0deg,rgba(255,255,255,.017) 0 1px,transparent 1px 3px)}

/* buttons */
:is(.pg-driver,.pg-devices,.pg-board,.pg-accounts) .cn-btn-primary{background:rgba(var(--acc-rgb),.07);text-shadow:0 0 4px rgba(var(--acc-rgb),.55);
  box-shadow:0 1px 0 rgba(var(--acc-rgb),.18) inset,0 2px 4px rgba(0,0,0,.4),0 6px 16px -4px rgba(0,0,0,.5),0 0 16px rgba(var(--acc-rgb),.12)}
:is(.pg-driver,.pg-devices,.pg-board,.pg-accounts) .cn-btn-primary:hover{background:rgba(var(--acc-rgb),.16);
  box-shadow:0 1px 0 rgba(var(--acc-rgb),.25) inset,0 4px 8px rgba(0,0,0,.5),0 10px 28px -6px rgba(0,0,0,.65),0 0 26px rgba(var(--acc-rgb),.35)}
:is(.pg-driver,.pg-devices,.pg-board,.pg-accounts) .hero .cn-btn-primary{text-shadow:0 0 4px rgba(var(--acc-rgb),.6),0 0 18px rgba(var(--acc-rgb),.28)}

/* hero copy + scrim */
:is(.pg-driver,.pg-devices,.pg-board,.pg-accounts) .hero h1 .blue{
  text-shadow:0 2px 26px rgba(0,0,0,.85),-.6px 0 0 rgba(255,72,72,.22),
    0 0 3px rgba(var(--acc-rgb),.85),0 0 22px rgba(var(--acc-rgb),.40),0 0 54px rgba(var(--acc-rgb),.16)}
:is(.pg-driver,.pg-devices,.pg-board,.pg-accounts) .hero .prompt{text-shadow:0 0 2px rgba(var(--acc-rgb),.55),0 0 14px rgba(var(--acc-rgb),.22)}
:is(.pg-driver,.pg-devices,.pg-board,.pg-accounts) .hero-scrim{background:
    linear-gradient(90deg,rgba(0,0,0,.96) 0%,rgba(0,0,0,.92) 46%,rgba(0,0,0,.6) 72%,rgba(0,0,0,.25) 100%),
    linear-gradient(180deg,rgba(0,0,0,.88) 0%,transparent 24%,transparent 46%,rgba(0,0,0,.55) 72%,var(--cn-bg) 100%),
    radial-gradient(900px 420px at 14% 18%,rgba(var(--acc-rgb),.09),transparent 62%)}

/* comparison, readouts */
:is(.pg-driver,.pg-devices,.pg-board,.pg-accounts) .cmp .us .cn-box-title,
:is(.pg-driver,.pg-devices,.pg-board,.pg-accounts) .cmp .us h3{text-shadow:0 0 5px rgba(var(--acc-rgb),.45)}
:is(.pg-driver,.pg-devices,.pg-board,.pg-accounts) .readout b,
:is(.pg-driver,.pg-devices,.pg-board,.pg-accounts) .readout a{text-shadow:0 0 4px rgba(var(--acc-rgb),.5)}

/*
 * The spec sheet: two columns of key/value rows in one window. One line each
 * — the value and its note; the copy is written to fit two columns at desktop
 * widths, below that the sheet goes single-column rather than letting a note
 * wrap. The ellipsis is a guard, not a plan. On a phone, narrower than the
 * shortest note, a wrapped note beats a cut one.
 */
.spec{display:grid;grid-template-columns:1fr 1fr;gap:0 44px;margin:0}
.spec>div{display:grid;grid-template-columns:110px 1fr;gap:14px;align-items:baseline;
  padding:12px 0;border-bottom:1px solid rgba(255,255,255,.07)}
.spec>div:nth-last-child(-n+2){border-bottom:0}
.spec dt{font-size:.62rem;letter-spacing:1.4px;text-transform:uppercase;color:var(--cn-text-3);line-height:1.9}
.spec dt::before{content:"> ";color:var(--cn-blue);text-shadow:0 0 4px var(--cn-blue)}
.spec dd{margin:0;font-size:.84rem;color:var(--cn-text);font-weight:500;line-height:1.5;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.spec dd small{display:block;font-size:.74rem;font-weight:400;color:var(--cn-text-2);margin-top:2px;line-height:1.6;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spec dd small code{font-size:.95em}
@media(max-width:1100px){
  .spec{grid-template-columns:1fr;gap:0}
  .spec>div:nth-last-child(-n+2){border-bottom:1px solid rgba(255,255,255,.07)}
  .spec>div:last-child{border-bottom:0}
}
@media(max-width:520px){
  .spec>div{grid-template-columns:1fr;gap:2px}
  .spec dd,.spec dd small{white-space:normal;overflow:visible}
}
