/* HAM Radio Apps — the new site style (main page live 2026-11-06; the app pages, news, manuals list and
   ham-app-features still use style.css and move here one by one, then style.css goes).
   Calm and technical: a live 20 m waterfall in the hero, plain bands instead of cards, no coloured border accents,
   no labels over headings, monospace only for frequencies and dates. Rules: Website/CLAUDE.md → "Look". */

:root {
  --paper: #F6F6F4;
  --mist: #ECEDEE;
  --ink: #16191E;
  --night: #070B12;
  --text: #3A414B;
  --muted: #69717D;
  --line: rgba(22, 25, 30, 0.13);
  --amber: #F0A23B;       /* the one accent, like a VFO display; only where something is "on air" */
  --link: #0B5FB3;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
ul { list-style: none; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; }

h1, h2, h3 { font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
.h2-small { font-size: 26px; margin-bottom: 16px; }
h3 { font-size: 19px; letter-spacing: -0.01em; }
.intro { color: var(--text); max-width: 40em; }
.small { font-size: 14px; color: var(--muted); margin-top: 12px; }
.note { margin-top: 40px; font-size: 15px; color: var(--muted); }
p + p { margin-top: 12px; }

.pad { padding: clamp(72px, 9vw, 120px) 0; }
.band-mist { background: var(--mist); }
.band-dark { background: var(--night); color: rgba(255, 255, 255, 0.85); }
.band-dark h2 { color: #fff; }
.band-dark a { color: #8CC4FF; }
.band-dark strong { color: #fff; }

/* ---------- Nav ---------- */

.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, color .4s, box-shadow .4s; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 650; }
.brand img { border-radius: 6px; }
.nav nav { display: flex; gap: 24px; font-size: 15px; }
.nav nav a { color: inherit; text-decoration: none; opacity: .75; }
.nav nav a:hover { opacity: 1; }
.nav.on-dark { color: #fff; }
.nav.solid {
  color: var(--ink);
  background: rgba(246, 246, 244, 0.85);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
@media (max-width: 760px) {
  .nav nav a:not(.keep) { display: none; }   /* on the iPhone only the links marked "keep" */
  .nav nav { gap: 18px; }
}

/* ---------- Hero with the waterfall ---------- */

.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; padding-top: 56px; }
.waterfall {
  position: absolute; left: 0; right: 0; top: 78px; width: 100%; height: 640px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%);
  opacity: .9;
}
/* Frequency scale over the waterfall, 14.000 to 14.150 MHz */
.scale {
  position: relative; height: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font: 11px/22px var(--mono); color: rgba(255, 255, 255, 0.45);
}
.scale span { position: absolute; top: 0; padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.scale span:nth-child(1) { left: 0; }
.scale span:nth-child(2) { left: 16.667%; }
.scale span:nth-child(3) { left: 33.333%; }
.scale span:nth-child(4) { left: 50%; }
.scale span:nth-child(5) { left: 66.667%; }
.scale span:nth-child(6) { left: 83.333%; }

.hero-copy { position: relative; z-index: 1; padding: clamp(56px, 9vh, 96px) 0 0; }
.hero-copy::before {   /* darker area behind the text so it stays readable over the signals */
  content: ""; position: absolute; z-index: -1; left: -40px; top: 30px; width: min(720px, 100%); height: 330px;
  background: radial-gradient(ellipse at 30% 50%, rgba(7, 11, 18, 0.92), rgba(7, 11, 18, 0.6) 55%, transparent 75%);
}
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); letter-spacing: -0.035em; }
.hero-lede { margin-top: 18px; font-size: clamp(18px, 1.8vw, 22px); max-width: 28em; color: rgba(255, 255, 255, 0.86); }
.hero-brands { margin-top: 22px; font: 14px var(--mono); color: var(--amber); letter-spacing: 0.02em; }
.byline { margin-top: 6px !important; font-size: 14px; color: rgba(255, 255, 255, 0.5); }

.hero-shot { position: relative; z-index: 1; margin-top: clamp(28px, 5vh, 56px); }
.hero-devices { width: min(980px, 100%); margin-left: auto; }

/* ---------- Pick your radio: the radios are the picker ---------- */

.shelf { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; margin-top: 44px; border-bottom: 1px solid var(--line); }
.shelf-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 4px 16px; text-decoration: none; color: var(--muted); font-size: 15px;
}
.shelf-item img {
  width: 100%; height: 96px; object-fit: contain; object-position: center bottom;
  transition: opacity .35s, transform .5s cubic-bezier(.22, 1, .36, 1), filter .35s;
}
.shelf-item span { margin-top: 12px; }
.shelf-item::after {        /* the "tuned" marker under the chosen radio, in the VFO colour */
  content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 3px; border-radius: 2px;
  background: var(--amber); transform: scaleX(0); transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.js .shelf-item[aria-selected="false"] img { opacity: .45; filter: grayscale(1); }
.js .shelf-item[aria-selected="false"]:hover img { opacity: .8; filter: none; transform: translateY(-3px); }
.js .shelf-item[aria-selected="true"] { color: var(--ink); font-weight: 650; }
.js .shelf-item[aria-selected="true"]::after { transform: scaleX(1); }
.shelf-item:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 4px; }

.app-panels { margin-top: 36px; }
.app-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 5vw, 72px); padding-bottom: 36px; }
.js .app-panel { display: none; }
.js .app-panel.active { display: grid; animation: panel-in .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; gap: 18px; align-items: flex-start; }
.panel-head .app-icon { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.panel-head h3 { font-size: 26px; margin-bottom: 6px; }
.panel-head p { color: var(--text); }
.panel-body .models { color: var(--text); }
.app-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-head .app-badges { margin-top: 16px; }   /* under the app's name and subtitle (developer, 2026-11-07) */
.app-badges img { height: 40px; width: auto; }
.badge-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.more { display: inline-block; margin-top: 16px; font-weight: 600; }
.more::after { content: " →"; }

@media (max-width: 760px) {
  /* sideways only: overflow-y hidden, else the 1 px marker below the row lets it scroll and bounce up and down on the iPhone */
  .shelf {
    display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y;
    scroll-snap-type: x mandatory; gap: 8px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none;
  }
  .shelf-item::after { bottom: 0; }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf-item { flex: 0 0 150px; scroll-snap-align: start; }
  .shelf-item img { height: 80px; }
  .app-panel, .js .app-panel.active { grid-template-columns: 1fr; }
}

/* ---------- Features ---------- */

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 36px; }
.feature-list > div { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.feature-list dt { font-weight: 650; margin-bottom: 4px; }
.feature-list dd { color: var(--text); font-size: 16px; }
@media (max-width: 900px) { .feature-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- General purpose apps: two equal blocks ---------- */

.app-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(32px, 5vw, 72px); margin-top: 40px; }
.pair-item { padding-top: 28px; border-top: 1px solid var(--line); }
.pair-item .app-icon { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 18px; }
.pair-item h3 { font-size: 24px; margin-bottom: 6px; }
.pair-item p { color: var(--text); margin-bottom: 18px; max-width: 30em; }
.pair-item .badge { height: 40px; width: auto; }
@media (max-width: 700px) { .app-pair { grid-template-columns: 1fr; } }

/* ---------- Who we are + news ---------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(40px, 6vw, 96px); }
.two-col p { color: var(--text); }
.band-dark .two-col p { color: rgba(255, 255, 255, 0.8); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.news-list { margin-bottom: 14px; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.news-list time { font: 13px var(--mono); color: var(--muted); }
.news-list a { color: var(--ink); text-decoration: none; }
.news-list a:hover { color: var(--link); text-decoration: underline; }

/* ---------- Support ---------- */

.list-head { font-size: 15px; color: #fff; margin: 10px 0 10px; }
.line-list { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.line-list li { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

/* ---------- Footer ---------- */

.footer { padding: 48px 0 44px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.legal { margin-top: 24px; font-size: 12px; line-height: 1.6; max-width: 62em; }

/* =====================================================================
   App pages (SmartSDR first, 2026-11-06): the same hero with the waterfall, then plain bands.
   ===================================================================== */

a:focus-visible, summary:focus-visible, img.screenshot:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.rule-top { border-top: 1px solid var(--line); }

/* Hero: text at the left, the app on a MacBook with the iPhone and the radio at the right */
.app-hero { padding-bottom: clamp(40px, 6vw, 72px); }
.app-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 32px clamp(32px, 4vw, 56px); align-items: center; padding-top: clamp(40px, 7vh, 80px); }
.app-hero-copy { position: relative; }
.app-hero-copy::before {
  content: ""; position: absolute; z-index: -1; inset: -40px -60px -40px -80px;
  background: radial-gradient(ellipse at 40% 50%, rgba(7, 11, 18, 0.92), rgba(7, 11, 18, 0.55) 60%, transparent 78%);
}
.app-hero .hero-icon { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 22px; }
.app-hero h1 { font-size: clamp(40px, 5vw, 64px); }
.tagline { margin-top: 12px; font: 15px var(--mono); color: var(--amber); letter-spacing: 0.02em; }
.app-hero .hero-lede { font-size: clamp(17px, 1.5vw, 19px); }
.store-row { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 28px; }
.store-row img { height: 40px; width: auto; }
.store-row p { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.band-dark .store-row p, .app-hero .store-row p { color: rgba(255, 255, 255, 0.55); }

.devices { position: relative; padding: 0 6% 21% 0; }
.devices .device-macbook { width: 100%; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5)); cursor: zoom-in; }
.devices .device-phone { position: absolute; right: 0; bottom: 0; width: 19%; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55)); }
.devices .device-radio { position: absolute; left: -4%; bottom: 0; width: 46%; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.6)); }
.devices .device-radio.tall { width: 34%; }

@media (max-width: 900px) {
  .app-hero-grid { grid-template-columns: 1fr; }
  .devices { max-width: 640px; }
  .devices .device-radio { left: 0; }
}

/* Small platform note on a list item or heading: plain text, no pill */
.platform-tag {
  margin-left: 0.4em; font: 600 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; vertical-align: 0.1em;
}
.small-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Highlights: text and the whole picture, sides switching, no boxes */
.feature-rows { display: grid; gap: clamp(64px, 8vw, 104px); margin-top: 56px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(40px, 6vw, 88px); align-items: center; }
.feature-row:nth-child(even) .feature-media { order: -1; }
.feature-text h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; }
.feature-text p { color: var(--text); max-width: 32em; }
.feature-media { display: flex; justify-content: center; align-items: flex-start; }
.feature-media img { cursor: zoom-in; }
.shot-ipad { width: 100%; max-width: 360px; filter: drop-shadow(0 14px 28px rgba(10, 20, 35, 0.18)); }
.shot-window { width: 100%; max-width: 560px; border-radius: 10px; box-shadow: 0 14px 36px rgba(10, 20, 35, 0.16), 0 0 0 1px var(--line); }
.shot-iphone { width: 30%; max-width: 150px; align-self: flex-end; filter: drop-shadow(0 12px 24px rgba(10, 20, 35, 0.25)); }
img + .shot-iphone { margin-left: -40px; }   /* an iPhone in front of a bigger picture overlaps it a little */
/* An iPhone next to a strip cut from the spectrum scope (memory spots) */
.feature-media.pair { align-items: center; gap: 20px; }
.shot-strip { width: 64%; border-radius: 8px; box-shadow: 0 12px 28px rgba(10, 20, 35, 0.2); cursor: zoom-in; }
.feature-media .shot-window:has(+ .shot-iphone) { width: 78%; }
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
}

/* Logbook: the Mac list and the iPad map */
.logbook-media { display: grid; grid-template-columns: 2.2fr 1fr; gap: 32px; align-items: start; justify-items: center; margin-top: 44px; }
.logbook-media .shot-window { max-width: none; }
.logbook-media .shot-ipad { max-width: 300px; }
@media (max-width: 760px) { .logbook-media { grid-template-columns: 1fr; } }

/* Plain lists with hairlines, in two columns on wide screens */
.rule-list { margin-top: 36px; columns: 2; column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.rule-list li { break-inside: avoid; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.rule-list.one { columns: 1; margin-top: 14px; }
@media (max-width: 760px) { .rule-list { columns: 1; } }

/* Controllers: the photos on the band itself (white photo backgrounds blend away) */
.controller-photos { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr; gap: 24px; align-items: end; margin-top: 44px; }
.controller-photos figure { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.controller-photos img { max-height: 150px; width: auto; mix-blend-mode: multiply; }
.controller-photos figcaption { font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .controller-photos { grid-template-columns: 1fr 1fr; }
  .controller-photos .wide { grid-column: 1 / -1; }
}

/* Everything on board: three plain columns */
.columns-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px clamp(32px, 4vw, 56px); margin-top: 44px; }
.columns-3 h3, .columns-2 h3 { font-size: 17px; }
.columns-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(40px, 6vw, 88px); margin-top: 44px; }
.version { margin-left: 8px; font: 400 13px var(--mono); color: var(--muted); letter-spacing: 0; }
@media (max-width: 860px) { .columns-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .columns-2 { grid-template-columns: 1fr; } }

/* Supported radios: the radio and one sentence */
.radio-line { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(40px, 6vw, 88px); align-items: center; }
.radio-line img { width: 100%; max-width: 420px; filter: drop-shadow(0 14px 26px rgba(10, 20, 35, 0.22)); }
.radio-line p { color: var(--text); }
.radio-line p + p { margin-top: 14px; }
@media (max-width: 760px) { .radio-line { grid-template-columns: 1fr; } .radio-line img { max-width: 300px; } }

/* Made by a ham */
.maker p { color: var(--text); max-width: 44em; font-size: clamp(17px, 1.6vw, 19px); }

/* Questions and answers */
.faq { margin-top: 36px; border-top: 1px solid var(--line); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 24px var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--text); max-width: 46em; }

/* Get the app: the dark band at the end */
.get-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; }
.line-list strong { color: #fff; font-weight: 600; }

/* Screenshot lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 40px 20px 20px; background: rgba(7, 11, 18, 0.9); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 64px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5); }
.lightbox-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
body.lightbox-open { overflow: hidden; }

/* AOR Scanner (ordered by e-mail): the order button, a Windows window in the hero, the four steps */
.order-button { display: inline-block; padding: 11px 22px; border-radius: 10px; background: #fff; color: var(--ink) !important; font-weight: 650; text-decoration: none; }
.order-button:hover { background: var(--amber); }
.order-note { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.devices .device-window { width: 100%; border-radius: 6px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); cursor: zoom-in; }
.steps { list-style: none; counter-reset: step; margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 14px; font: 15px var(--mono); color: var(--amber); }
.steps strong, .two-col strong { color: #fff; }

/* SDR-Receiver: "New" marks on recent decoders (plain text like .platform-tag, in the accent), the group photo of the
   receivers on white (multiply makes the white the page colour) */
.new-tag {
  margin-left: 0.4em; font: 600 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  color: #8F5200; white-space: nowrap; vertical-align: 0.1em;
}
.shot-photo { width: 100%; max-width: 560px; mix-blend-mode: multiply; cursor: zoom-in; }
.columns-2.no-top { margin-top: 0; }
.columns-2 h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 12px; }
.columns-2 p { color: var(--text); }
