/* The final design's stylesheet (Round 3, Option A). Hand-edited from here on.
   It is Round 3's firehouse.css followed by Option A's opening-screen rules, in one file.
   A few rules for sections this page does not use are still in here; they go at go-live. */

:root { --r: 2px; --caps: uppercase; --track: .04em; --bar: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; font: 700 15px var(--head); letter-spacing: var(--track); text-transform: var(--caps); padding: 16px 26px; border-radius: var(--r); border: 2px solid transparent; text-decoration: none; cursor: pointer; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-white { background: #fff; color: var(--navy-900); }
.btn-white:hover { background: var(--gray-100); }
.btn-line { border-color: #fff; color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .12); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-secondary { border-color: var(--navy-900); color: var(--navy-900); }
.btn-secondary:hover { background: var(--gray-100); }

.util { background: var(--red); color: #fff; font: 600 14px var(--head); letter-spacing: .04em; }
.util-in { max-width: 1160px; margin: 0 auto; padding: 9px 24px; display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.top { background: #fff; border-bottom: 4px solid var(--navy-900); }
.top-in { display: flex; align-items: center; gap: 26px; max-width: 1160px; margin: 0 auto; padding: 16px 24px; }
.brand img { width: 200px; }
.nav { display: flex; gap: 24px; margin-left: auto; font: 700 14px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--navy-900); }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--red); }
.login { font: 700 14px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--navy-900); white-space: nowrap; }
.mnav { color: var(--navy-900); }
.mnav summary { border-radius: var(--r); text-transform: uppercase; letter-spacing: .06em; }

.sub { font-size: 21px; max-width: 30em; color: #e3edf1; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* The facts strip (from Round 1's Option A). */
.facts { background: var(--navy-900); color: #fff; }
.facts-in { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: 26px 24px 24px; border-left: 2px solid rgba(255, 255, 255, .22); display: grid; gap: 2px; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { font: 700 24px/1.2 var(--head); text-transform: var(--caps); letter-spacing: var(--track); }
.facts span { color: #c9dae2; font-size: 15px; }

.sec { padding: 84px 0; }
.sec-tint { background: var(--gray-100); }
.sec-navy { background: var(--navy-900); color: #fff; }
.sec-red { background: var(--red); color: #fff; }
h2.bar { font-size: clamp(26px, 3vw, 36px); font-weight: 700; text-transform: var(--caps); letter-spacing: var(--track); margin-bottom: 40px; padding-left: 18px; border-left: var(--bar) solid var(--red); color: var(--navy-900); }
.sec-navy h2.bar, .sec-photo h2.bar { color: #fff; }
.sec-red h2.bar { color: #fff; border-left-color: #fff; }
.sec-lead { font-size: 19px; max-width: 40em; margin: -22px 0 36px; color: var(--muted); }
.sec-navy .sec-lead, .sec-red .sec-lead, .sec-photo .sec-lead { color: #dce8ed; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about h2.bar { margin-bottom: 22px; }
.story { font-size: 19px; color: var(--muted); margin: 0; }
.sec-navy .story, .sec-photo .story { color: #dce8ed; }
.owners { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.owner { background: var(--navy-900); color: #fff; padding: 26px 22px; border-top: 6px solid var(--red); border-radius: var(--r); }
.sec-navy .owner, .sec-photo .owner { background: #fff; color: var(--navy-900); }
.owner-pic { display: grid; place-items: center; width: 60px; height: 60px; background: #fff; color: var(--navy-900); font: 700 28px var(--head); margin-bottom: 16px; border-radius: var(--r); }
.sec-navy .owner-pic, .sec-photo .owner-pic { background: var(--navy-900); color: #fff; }
.owner h3 { font-size: 26px; text-transform: var(--caps); letter-spacing: var(--track); margin: 0; }
.rank { margin: 4px 0 0; font: 700 15px var(--head); letter-spacing: .08em; text-transform: uppercase; color: #ffb3b3; }
.sec-navy .rank, .sec-photo .rank { color: var(--red-dark); }
.role { margin: 6px 0 0; font-size: 15px; color: #c5d6de; }
.sec-navy .role, .sec-photo .role { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.step { padding: 6px 32px 6px 0; margin-right: 32px; border-right: 2px solid var(--line); }
.sec-navy .step { border-right-color: rgba(255, 255, 255, .25); }
.step:last-child { border-right: 0; margin-right: 0; }
.step-n { display: block; font: 700 62px/1 var(--head); color: var(--red); margin-bottom: 12px; }
.step h3 { font-size: 22px; text-transform: var(--caps); letter-spacing: var(--track); color: var(--navy-900); }
.step p { margin: 0; color: var(--muted); }
.sec-navy .step h3 { color: #fff; }
.sec-navy .step p { color: #c9dae2; }

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat { border: 2px solid var(--navy-900); border-top-width: var(--bar); padding: 26px 24px; border-radius: var(--r); background: #fff; }
.feat-ico, .why-ico { display: block; color: var(--red); margin-bottom: 12px; }
.feat-ico .icon, .why-ico .icon { width: 36px; height: 36px; stroke-width: 2; }
.feat h3, .why h3 { font-size: 21px; text-transform: var(--caps); letter-spacing: var(--track); color: var(--navy-900); }
.feat p, .why p { margin: 0; color: var(--muted); }

/* A feature beside its screenshot (from Round 1's Option A). */
.row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; margin-bottom: 64px; }
.row-flip .feat { order: 2; }
.row .feat { border: 0; border-left: var(--bar) solid var(--red); border-radius: 0; padding: 6px 0 6px 26px; background: none; }
.row .feat h3 { font-size: clamp(24px, 2.6vw, 32px); }
.row .feat p { font-size: 19px; }
.row-shot { display: grid; place-items: center; }
.row-shot .phone { width: 250px; }

.shots { background: linear-gradient(rgba(0, 43, 62, .82), rgba(0, 43, 62, .92)), url("img/photo-radio.jpg") center 30% / cover no-repeat; overflow: hidden; }
.shots-in { max-width: 1160px; margin: 0 auto; padding: 64px 24px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; height: 470px; }
.shots .phone { width: 100%; border-radius: 30px; border-width: 8px; }
.shots .phone img { border-radius: 22px; }

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why { background: #fff; padding: 28px 26px; border-left: 6px solid var(--navy-900); border-radius: var(--r); }
.sec:not(.sec-tint):not(.sec-navy) .why { background: var(--gray-100); }

.plans { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; align-items: stretch; }
.plan { padding: 34px; border: 2px solid var(--navy-900); display: flex; flex-direction: column; border-radius: var(--r); background: #fff; }
.plan-main { background: var(--navy-900); color: #fff; border-top: var(--bar) solid var(--red); }
.plan-tag { font: 700 13px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 8px; }
.plan-main .plan-tag { color: #ffb3b3; }
.plan h3 { font-size: 24px; text-transform: var(--caps); letter-spacing: var(--track); margin-bottom: 8px; }
.price { margin: 0; }
.amt { font: 700 66px/1 var(--head); }
.per { font: 700 15px var(--head); letter-spacing: .1em; text-transform: uppercase; }
.plan-sub { margin: 6px 0 22px; opacity: .85; }
.ticks { display: grid; gap: 10px; margin-bottom: 28px; }
.plan-main .ticks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.tick { color: var(--red); margin-top: 3px; stroke-width: 3; }
.plan-main .tick { color: #ff8f8f; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-notes { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 22px; font-weight: 500; }
.plan-notes li { padding: 0 20px; border-left: 3px solid var(--red); }

.groups { margin-top: 48px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.groups h3 { font-size: 24px; text-transform: var(--caps); letter-spacing: var(--track); color: var(--navy-900); }
.groups p { color: var(--muted); margin: 0 0 12px; }
.g-table { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--navy-900); font-size: 16px; }
.g-table th { background: var(--navy-900); color: #fff; font: 700 13px var(--head); letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 12px 16px; }
.g-table td { padding: 10px 16px; border-top: 1px solid var(--line); }
.g-table td:last-child, .g-table th:last-child { text-align: right; }
.g-table td:last-child { font: 700 17px var(--head); color: var(--navy-900); white-space: nowrap; }

.plain-box { background: #fff; border: 2px solid var(--navy-900); padding: 30px 34px; border-radius: var(--r); }
.plain-box h2 { font-size: 21px; text-transform: var(--caps); letter-spacing: var(--track); margin-bottom: 12px; color: var(--navy-900); }
.plain-box p { margin: 0; color: var(--muted); }

/* Contact: the form leads; the phone number is one quiet line under the pitch. */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.contact-pitch h2.bar { margin-bottom: 22px; }
.contact-pitch > p { font-size: 19px; max-width: 26em; }
.next { display: grid; gap: 14px; margin: 26px 0 30px; counter-reset: n; }
.next li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; counter-increment: n; }
.next li::before { content: counter(n); display: grid; place-items: center; width: 34px; height: 34px; background: #fff; color: var(--navy-900); font: 700 17px var(--head); border-radius: var(--r); }
.call-note { font-size: 15px; opacity: .9; margin: 0; max-width: 30em; }
.call-note a { font-weight: 700; white-space: nowrap; }
.contact-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; background: #fff; color: var(--ink); padding: 30px; border-radius: var(--r); box-shadow: 0 18px 44px rgba(0, 20, 30, .28); }
.contact-form h3 { grid-column: 1 / -1; font-size: 24px; text-transform: var(--caps); letter-spacing: var(--track); color: var(--navy-900); margin: 0 0 4px; }
.contact-form label { display: grid; gap: 6px; font: 700 13px var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--navy-900); }
.contact-form .wide { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea, .contact-form select { border: 2px solid var(--navy-900); border-radius: var(--r); padding: 10px 12px; font: 400 16px var(--copy); width: 100%; text-transform: none; letter-spacing: 0; background: #fff; }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
/* The working form (contact.js). The trap is off-screen for people and filled in only by bots. The status line
   carries its meaning in words and a bar, never in color alone. */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-check { grid-column: 1 / -1; min-width: 0; }
.form-status:empty { display: none; }
.form-check .cf-turnstile { transform-origin: left top; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 16px; font-weight: 700; color: var(--navy-900); padding-left: 12px; border-left: 4px solid var(--navy-900); }
.form-status-bad { border-left-color: var(--red); }
.contact-form .form-thanks { grid-column: 1 / -1; margin: 0; font-size: 18px; }
/* The thank-you heading takes focus so a screen reader lands on it; it is not a control, so it shows no focus ring. */
.contact-form h3[tabindex="-1"]:focus { outline: none; }
.contact-form button[disabled] { opacity: .6; cursor: default; }

.foot { background: var(--navy-900); color: #c9dae2; border-top: var(--bar) solid var(--red); }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 32px; align-items: center; }
.foot-logo { width: 200px; }
.foot-line { margin: 0; grid-column: 1; }
.stores { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 10px; }
.store { display: grid; padding: 9px 18px; border: 2px solid #fff; border-radius: var(--r); text-decoration: none; color: #fff; font: 700 16px/1.2 var(--head); }
.store small { font: 400 11px var(--copy); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 700 13px var(--head); letter-spacing: .08em; text-transform: uppercase; }
.foot-legal { margin: 0; font-size: 14px; text-align: right; }
.nw { white-space: nowrap; }

@media (max-width: 1020px) { .nav { gap: 18px; font-size: 13px; } .top-in { gap: 18px; } }
@media (max-width: 900px) {
  .nav, .top-in > .login { display: none; }
  .top-in > .btn { margin-left: auto; }
  .mnav { display: block; }
  .mnav[open] { flex-basis: 100%; order: 9; }
  .top-in { flex-wrap: wrap; gap: 10px; padding: 14px 20px; }
  .top-in > .btn { padding: 9px 11px; font-size: 12px; }
  .mnav summary { padding: 7px 11px; font-size: 13px; }
  .mnav[open] summary { margin-left: auto; width: max-content; }
  .mnav-links { margin-top: 12px; }
  .brand img { width: 138px; }
  .util-in { justify-content: center; text-align: center; font-size: 13px; }
  .util-in span + span { display: none; }
  .sub { font-size: 19px; }
  .facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 18px 16px; border-left: 0; border-top: 2px solid rgba(255, 255, 255, .22); }
  .facts li:first-child { padding-left: 16px; }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .facts li:nth-child(odd) { padding-left: 0; }
  .facts strong { font-size: 19px; }
  .sec { padding: 56px 0; }
  h2.bar { margin-bottom: 28px; }
  .sec-lead { margin-top: -12px; }
  .about, .steps, .why-grid, .plans, .contact-grid, .groups, .feats, .row { grid-template-columns: minmax(0, 1fr); }
  .about, .contact-grid, .groups { gap: 32px; }
  .step { border-right: 0; margin: 0 0 28px; padding: 0 0 28px; border-bottom: 2px solid var(--line); }
  .sec-navy .step { border-bottom-color: rgba(255, 255, 255, .25); }
  .step:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .row { gap: 28px; margin-bottom: 48px; }
  .row-flip .feat { order: 0; }
  .shots-in { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 360px; padding-top: 40px; gap: 16px; }
  .shots .phone:nth-child(n+3) { display: none; }
  .plan { padding: 26px 22px; }
  .plan-main .ticks { grid-template-columns: minmax(0, 1fr); }
  .plan-notes li { padding: 0 14px; flex-basis: 100%; }
  .g-table th, .g-table td { padding: 10px 10px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .stores { grid-column: 1; grid-row: auto; }
  .foot-legal { text-align: left; }
}
@media (max-width: 480px) { .owners { grid-template-columns: minmax(0, 1fr); } }

/* ── From Round 2 Option B: header on the dark opening ── */
.hero-wrap { position: relative; overflow: hidden; background-color: var(--navy-900); color: #fff; }
.top { position: relative; z-index: 2; background: transparent; border-bottom: 0; }
.top-in { padding-top: 22px; padding-bottom: 22px; }
.nav, .login, .mnav { color: #fff; }
.hero { position: relative; z-index: 1; }
.eyebrow { font: 700 14px var(--head); letter-spacing: .1em; text-transform: uppercase; color: #ffb3b3; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 4.3vw, 56px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.06; margin-bottom: 22px; padding-left: 22px; border-left: 8px solid var(--red); text-shadow: 0 2px 18px rgba(0, 20, 30, .55); }
.hero .sub { text-shadow: 0 1px 12px rgba(0, 20, 30, .6); }
.cta-row { margin-bottom: 20px; }
.price-line { color: #dbe8ee; margin: 0; }
.price-line strong { color: #fff; }
.hero-phones .phone { border-radius: 30px; }
.facts { border-top: 8px solid var(--red); position: relative; z-index: 2; }
.sec-photo { color: #fff; background: linear-gradient(90deg, rgba(0, 43, 62, .95) 0%, rgba(0, 43, 62, .88) 55%, rgba(0, 43, 62, .7) 100%), url("img/photo-radio.jpg") center 30% / cover no-repeat; }
@media (max-width: 900px) { .hero h1 { padding-left: 16px; border-left-width: 6px; } }

/* ── The opening screen: the firefighters photo, two phones ── */
.hero-wrap { background-image: linear-gradient(180deg, rgba(0, 43, 62, .82) 0%, rgba(0, 43, 62, 0) 24%), linear-gradient(90deg, rgba(0, 43, 62, .97) 0%, rgba(0, 43, 62, .88) 38%, rgba(0, 43, 62, .2) 78%, rgba(0, 43, 62, .1) 100%), url("img/photo-attack-flip.jpg"); background-position: center, center, center 30%; background-size: cover; background-repeat: no-repeat; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: end; max-width: 1160px; margin: 0 auto; padding: 40px 24px 0; }
.hero-copy { padding-bottom: 76px; }
.hero-phones { position: relative; height: 540px; }
.hero-phones .phone { position: absolute; }
.phone-back { left: 10px; width: 210px; bottom: -190px; opacity: .96; }
.phone-front { right: 0; width: 250px; bottom: -150px; }

/* ── The opening screen at phone width (Rounds 4 to 6: headline on the photo, locked menu bar, the photo never moves) ──
   Three layers: 1. the photo (.hero-pin), which starts right under the menu bar; 2. a navy fade that belongs to the
   words (.hero-in) and travels with them; 3. the words. The photo stands still (position: sticky) while the words and
   their navy slide up over it until it is covered. Plain CSS, so it behaves the same on every phone. */
.hero-pin { display: none; }
@media (max-width: 900px) {
  /* The opening's outer wrapper stops being a box of its own, so the menu bar is no longer trapped inside it. */
  .hero-wrap { display: contents; }
  /* The menu bar stays at the top of the screen for the whole page. It is 66 px tall. */
  .top { background: var(--navy-900); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(0, 20, 30, .35); }
  .top-in { padding-top: 15px; padding-bottom: 15px; }
  /* A menu link jumps to its section; stop the section's heading from landing underneath the bar. */
  html { scroll-padding-top: 78px; }
  .hero { background: var(--navy-900); overflow: hidden; overflow: clip; }
  /* The photo's track; the photo itself is the ::before, held 66 px down (right under the bar). The track is the photo's
     height plus 468 px, the point where the words' navy turns solid, so the photo is fully covered before it lets go.
     will-change gives the photo its own layer on the phone's graphics chip. */
  .hero-pin { display: block; position: absolute; top: 0; left: 0; right: 0; height: 938px; z-index: 0; pointer-events: none; }
  .hero-pin::before { content: ""; display: block; height: 470px; position: sticky; top: 66px; will-change: transform;
    background-image: linear-gradient(180deg, rgba(0, 43, 62, 1) 0, rgba(0, 43, 62, .1) 44px), url("img/photo-attack-flip.jpg");
    background-size: 100% 100%, max(100%, 780px) auto; background-position: center, 80% -36px; background-repeat: no-repeat; }
  .hero-in { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr); padding-top: 210px;
    background-image: linear-gradient(180deg, rgba(0, 43, 62, 0) 144px, rgba(0, 43, 62, .74) 263px, rgba(0, 43, 62, .9) 371px, rgba(0, 43, 62, 1) 468px); }
  .hero-copy { padding-bottom: 24px; }
  .hero-phones { height: 290px; max-width: 400px; width: 100%; margin: 0 auto; }
  .phone-back { width: 180px; bottom: -110px; left: 0; }
  .phone-front { width: 210px; bottom: -110px; }
}
/* Narrow phones: keep the logo and both buttons on one line, so the locked bar is never two rows tall. */
@media (max-width: 400px) { .brand img { width: 118px; } }
/* The small line above the headline stays on one line on a phone: tighter lettering, and a size that follows the
   screen width (about 13px on a 390px phone, never under 11px). Measured to fit from 320px to 480px wide. */
@media (max-width: 480px) { .eyebrow { font-size: clamp(11px, 3.4vw, 14px); letter-spacing: .03em; } }

/* ---- The Login popup (Round 7, Option B). Two choices, each: a tag, a name, a picture of the app, a button.
   Nothing is told apart by color alone: each choice carries its name in words. ---- */
.lg-dialog { border: 0; padding: 0; width: min(660px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; background: var(--gray-100); color: var(--ink); border-top: var(--bar) solid var(--red); box-shadow: 0 30px 80px rgba(0, 10, 16, .5); }
.lg-dialog::backdrop { background: rgba(0, 24, 36, .72); }
/* The box itself is not a control, so it shows no focus ring; the buttons and the x inside it still do. */
.lg-dialog:focus, .lg-dialog:focus-visible { outline: none; }
/* With scripts off (or in a browser too old for popups) the Login link's #login shows the same box, pinned to the top
   of the screen, and the x link puts it away. login.js adds "js-login" to <html> and then this rule stands down. */
.lg-dialog:not([open]) { display: none; }
html:not(.js-login) .lg-dialog:target { display: block; position: fixed; top: 12px; left: 50%; transform: translateX(-50%); margin: 0; z-index: 200; }
.lg-dialog-in { position: relative; padding: 24px; }
.lg-title { font-size: clamp(19px, 2.4vw, 26px); font-weight: 700; text-transform: var(--caps); letter-spacing: var(--track); color: var(--navy-900); padding-left: 18px; border-left: var(--bar) solid var(--red); margin: 0 56px 8px 0; }
.lg-title:focus { outline: none; }
.lg-lead { font-size: 16px; color: var(--muted); margin: 0 0 18px; }
.lg-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lg-choice { background: #fff; border-top: var(--bar) solid var(--navy-900); padding: 16px 16px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.lg-tag { order: 1; margin: 0; font: 700 13px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--red-dark); }
.lg-choice h3 { order: 2; font-size: 19px; text-transform: var(--caps); letter-spacing: var(--track); color: var(--navy-900); margin: 0; }
/* The phone pictures shrink on a short screen (a small laptop, a phone held sideways) so the buttons under them stay
   in view without scrolling inside the box: width follows the screen's height, between 84 and 150 px. */
.lg-choice .phone { order: 3; flex: none; width: clamp(84px, calc((100vh - 440px) * .46), 150px); width: clamp(84px, calc((100dvh - 440px) * .46), 150px); border-width: 6px; border-radius: 25px; box-shadow: 0 14px 34px rgba(0, 20, 30, .22); }
.lg-choice .phone img { border-radius: 19px; }
.lg-how { order: 4; margin: 0; font-size: 15px; color: var(--muted); }
.lg-choice .btn { order: 5; width: 100%; text-align: center; }
.lg-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--navy-900); color: #fff; border-radius: var(--r); font: 400 30px/1 var(--copy); text-decoration: none; }
.lg-close:hover { background: var(--red); }
@media (max-width: 760px) {
  .lg-dialog-in { padding: 16px 12px; }
  .lg-lead { font-size: 15px; margin-bottom: 12px; }
  .lg-choices { gap: 10px; }
  .lg-choice { padding: 10px 8px 12px; gap: 8px; }
  /* Two lines kept for both names, so "Original system" wrapping does not push its phone lower than the other. */
  .lg-choice h3 { font-size: 16px; min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
  .lg-tag { font-size: 11px; }
  .lg-how { font-size: 13px; }
  .lg-choice .phone { width: 100%; max-width: clamp(72px, calc((100vh - 470px) * .46), 124px); max-width: clamp(72px, calc((100dvh - 470px) * .46), 124px); border-width: 5px; border-radius: 19px; }
  .lg-choice .phone img { border-radius: 14px; }
  .lg-choice .btn { padding: 12px 6px; font-size: 12px; }
  .lg-close { top: 8px; right: 8px; }
}

/* ── Photo credits page (credits.html, AD-198): a plain page. The logo is white, so its bar is navy here at every width. ── */
.page-plain .top { background: var(--navy-900); border-bottom: var(--bar) solid var(--red); }
.page-plain .top-in { justify-content: space-between; }
.back-home { font: 700 14px var(--head); letter-spacing: .08em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.credits { max-width: 760px; }
.credits h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; text-transform: var(--caps); letter-spacing: var(--track); margin: 0 0 32px; padding-left: 18px; border-left: var(--bar) solid var(--red); color: var(--navy-900); }
.credit-list { margin: 0 0 28px; display: grid; gap: 18px; }
.credit-list dt { font: 700 14px var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--navy-900); }
.credit-list dd { margin: 4px 0 0; }
.credit-note { margin: 0; padding-top: 22px; border-top: 2px solid var(--navy-900); color: var(--muted); }
/* This page's footer has no store buttons, so its links start their own row, with the legal line to their right. */
.page-plain .foot-nav { grid-column: 1; }
@media (max-width: 760px) { .back-home { font-size: 12px; } }
