/* ROVA landing page (index.html). OWNER: site builder #1. "Clear water" (Review/screens/redesign/DIRECTION.md).
   Loaded after tokens.css, motion/motion.css and site.css. The one bold thing is the stage with the live ROVA window;
   every other screen is type on the page, one idea each. */

/* ---------------------------------------------------------------- the real app's palette (src/styles.css) */
.app {
  --a-page: #141413; --a-pane: #171716; --a-surface: #1B1B19; --a-raised: #232321;
  --a-ink: #F0EFEC; --a-ink2: #CFCDC6; --a-muted: #9C998F; --a-line: #2F2E2B; --a-line2: #3D3C38;
  --a-accent: #4DD4E5; --a-accent-hover: #72DEEB; --a-accent-ink: #0A1F23; --a-good: #4CC38A;
  --a-field: #1B1B19; --a-track: #1B1B19; --a-track-line: #2F2E2B; --a-seg-on: #2D2D2A; --a-seg-line: rgba(240, 239, 236, .5);
  --a-hover: rgba(240, 239, 236, .06); --a-shadow-seg: 0 1px 2px rgba(0, 0, 0, .45);
  --a-window: 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 80px -24px rgba(0, 0, 0, .75);
}
:root[data-theme="light"] .app {
  --a-page: #F7F6F3; --a-pane: #FFFFFF; --a-surface: #FFFFFF; --a-raised: #FFFFFF;
  --a-ink: #141413; --a-ink2: #3B3A36; --a-muted: #67655F; --a-line: #E2E0DA; --a-line2: #CFCDC5;
  --a-accent: #0B6F80; --a-accent-hover: #095F6E; --a-accent-ink: #FFFFFF; --a-good: #1F9D5C;
  --a-field: #FFFFFF; --a-track: #ECEBE6; --a-track-line: #E2E0DA; --a-seg-on: #FFFFFF; --a-seg-line: rgba(20, 20, 19, .62);
  --a-hover: rgba(20, 20, 19, .05); --a-shadow-seg: 0 1px 2px rgba(20, 20, 19, .07);
  --a-window: 0 0 0 1px rgba(13, 17, 23, .08), 0 30px 70px -30px rgba(13, 17, 23, .28);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .app {
    --a-page: #F7F6F3; --a-pane: #FFFFFF; --a-surface: #FFFFFF; --a-raised: #FFFFFF;
    --a-ink: #141413; --a-ink2: #3B3A36; --a-muted: #67655F; --a-line: #E2E0DA; --a-line2: #CFCDC5;
    --a-accent: #0B6F80; --a-accent-hover: #095F6E; --a-accent-ink: #FFFFFF; --a-good: #1F9D5C;
    --a-field: #FFFFFF; --a-track: #ECEBE6; --a-track-line: #E2E0DA; --a-seg-on: #FFFFFF; --a-seg-line: rgba(20, 20, 19, .62);
    --a-hover: rgba(20, 20, 19, .05); --a-shadow-seg: 0 1px 2px rgba(20, 20, 19, .07);
    --a-window: 0 0 0 1px rgba(13, 17, 23, .08), 0 30px 70px -30px rgba(13, 17, 23, .28);
  }
}

/* ---------------------------------------------------------------- hero */
.hero { padding: calc(var(--nav) + env(safe-area-inset-top) + 52px) 0 128px; text-align: center; }
.hero-text { display: block; }
.hero h1 { font-size: var(--t-h1); line-height: 1.04; font-weight: 620; letter-spacing: -0.036em; }
.hero h1 > span { display: block; text-wrap: balance; }
/* the search line above the three lines (owner OK 2026-11-29): part of the h1 for search engines, quiet to the eye */
.hero h1 > .hero__kicker { margin: 0 auto 20px; font-size: 18px; line-height: 1.4; font-weight: 550; letter-spacing: -0.005em; color: var(--rova-muted); }
.hero h1 > span:nth-child(3) { color: var(--rova-ink-2); }
.hero h1 > span:nth-child(4) { color: color-mix(in oklab, var(--rova-ink-2) 72%, var(--rova-page)); }
.hero__sub { margin: 22px auto 0; max-width: 38em; font-size: 19px; line-height: 1.5; color: var(--rova-muted); text-wrap: balance; }
.hero__actions { justify-content: center; margin-top: 32px; }
.os { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.os li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--rova-line); font-size: 14.5px; font-weight: 550; color: var(--rova-ink); }
.os img { height: 18px; width: auto; }
.os__soon { margin-left: 2px; padding: 2px 7px; border-radius: 999px; background: var(--rova-sunken); color: var(--rova-muted);
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; line-height: 1.3; } /* data-soon: remove with the first macOS/Linux build */
.os-soon { margin-top: 10px; font-size: 14px; color: var(--rova-muted); text-wrap: balance; } /* data-soon: remove with the first macOS/Linux build */
.hero__price { margin-top: 12px; font-size: 14.5px; text-wrap: balance; }

/* the stage: a calm surface in the page's own theme, a faint kingfisher glow, one ember spark, the window rising out of it */
.stage {
  --glow: color-mix(in oklab, var(--rova-brand) 16%, transparent);
  --spark: color-mix(in oklab, var(--rova-ember) 7%, transparent);
  position: relative; isolation: isolate; overflow: hidden; margin-top: 48px; padding: 56px 56px 0; border-radius: 28px;
  background:
    radial-gradient(48% 70% at 50% 0%, var(--glow), transparent 72%),
    radial-gradient(30% 40% at 92% 100%, var(--spark), transparent 70%),
    var(--rova-mist);
  border: 1px solid var(--rova-line);
}
:root:not([data-theme="light"]) .stage { --glow: color-mix(in oklab, var(--rova-brand) 10%, transparent); --spark: color-mix(in oklab, var(--rova-ember) 5%, transparent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .stage { --glow: color-mix(in oklab, var(--rova-brand) 16%, transparent); --spark: color-mix(in oklab, var(--rova-ember) 7%, transparent); } }

/* ---------------------------------------------------------------- the ROVA window (live HTML) */
.app {
  position: relative; max-width: 1040px; margin-inline: auto; text-align: left;
  background: var(--a-page); color: var(--a-ink); border-radius: 14px 14px 0 0; overflow: hidden;
  font: 400 13.5px/1.45 var(--font-text); letter-spacing: 0; box-shadow: var(--a-window);
  -webkit-tap-highlight-color: transparent;
}
:where(.app button) { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
.app button:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.app svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app__bar { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--a-line); }
.app__logo { height: 17px; width: auto; }
.app__bar-r { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--a-ink2); }
.app__sites { display: inline-flex; align-items: center; gap: 6px; }
.app__sites svg { width: 14px; height: 14px; }
.app__pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--a-line2); background: var(--a-surface); }
.app__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--a-good); flex: none; }
.app__cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); min-height: 540px; }
.app__left { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; padding: 18px 18px 24px; }
.app__right { min-width: 0; padding: 14px 16px 24px; border-left: 1px solid var(--a-line); background: var(--a-pane); }

.app__paste { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 12px; border-radius: 10px; border: 1px solid var(--a-line2); background: var(--a-field); }
.app__ico { width: 16px; height: 16px; color: var(--a-muted); flex: none; }
.app__url { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--a-ink); }
@media (max-width: 1023px) { .app__url { white-space: normal; overflow-wrap: anywhere; overflow: visible; line-height: 1.35; } }
.app__btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--a-line2);
  background: var(--a-raised); font-size: 12.5px; font-weight: 600; flex: none; }
.app__btn svg { width: 14px; height: 14px; }
.app__found { display: flex; align-items: center; gap: 12px; min-height: 63px; }
.app__found img { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; flex: none; background: var(--a-track); }
.app__found b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.app__found small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--a-muted); }

.app__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 10px; background: var(--a-track); border: 1px solid var(--a-track-line); }
.app__tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; border-radius: 8px;
  color: var(--a-ink2); border: 1px solid transparent; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.app__tab svg { width: 15px; height: 15px; }
.app__tab[aria-selected="true"] { background: var(--a-seg-on); color: var(--a-ink); font-weight: 600; border-color: var(--a-seg-line); box-shadow: var(--a-shadow-seg); }
.app__panels { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 150px; align-content: start; }
.app__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; }
.app__lbl { font-size: 12.5px; color: var(--a-ink2); margin-top: 2px; }
.app__chips { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--a-track); border: 1px solid var(--a-track-line); }
.app__chip { flex: 1 1 0; min-width: 0; height: 28px; border-radius: 7px; border: 1px solid transparent; font-size: 12.5px; color: var(--a-ink2);
  white-space: nowrap; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.app__chip[aria-pressed="true"] { background: var(--a-seg-on); color: var(--a-ink); font-weight: 600; border-color: var(--a-seg-line); box-shadow: var(--a-shadow-seg); }
.app__chip[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.app__fmt { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 12px; background: var(--a-track); border: 1px solid var(--a-track-line); }
.app__card { display: grid; gap: 2px; padding: 9px 12px; border-radius: 9px; border: 1px solid transparent; text-align: left; color: var(--a-ink2); }
.app__card b { font-size: 13px; font-weight: 600; color: var(--a-ink); }
.app__card small { font-size: 11.5px; color: var(--a-muted); line-height: 1.35; }
.app__card[aria-pressed="true"] { background: var(--a-seg-on); border-color: var(--a-seg-line); box-shadow: var(--a-shadow-seg); }
.app__note { font-size: 12px; color: var(--a-muted); }
.app__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.app__grid img, .app__more { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--a-track); }
.app__more { position: relative; overflow: hidden; display: block; }
.app__more img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }
.app__more b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; }
.app__go { height: 40px; border-radius: 10px; background: var(--a-accent); color: var(--a-accent-ink); font-weight: 600; font-size: 13.5px;
  margin-top: 4px; transition: background-color 150ms var(--ease), transform 90ms var(--ease); }
.app__go:active { transform: translateY(1px) scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .app__tab:not([aria-selected="true"]):hover, .app__chip:not([aria-pressed="true"]):not([aria-disabled="true"]):hover, .app__card:not([aria-pressed="true"]):hover { background: var(--a-hover); color: var(--a-ink); }
  .app__btn:hover { border-color: var(--a-muted); }
  .app__go:hover { background: var(--a-accent-hover); }
}

/* the queue */
.app__qh { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--a-line); }
.app__qh b { font-weight: 600; font-size: 14px; }
.app__qh small { font-size: 12.5px; color: var(--a-muted); }
.app__queue { display: grid; }
.job { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--a-line); }
.job > img { width: 96px; height: 54px; object-fit: cover; border-radius: 7px; background: var(--a-track); }
.job__body { display: grid; gap: 2px; min-width: 0; }
.job__title { font-weight: 600; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.job__meta { font-size: 12px; color: var(--a-muted); }
.job__bar { display: block; height: 5px; margin-top: 7px; border-radius: 9px; background: var(--a-track); border: 0; overflow: hidden; }
.job__fill { display: block; height: 100%; width: 0; border-radius: 9px; background: var(--a-accent); transition: width 240ms linear; }
.job__fill--62 { width: 62%; }
.job__st { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 12px; color: var(--a-ink2); font-variant-numeric: tabular-nums; }
.job[data-state="done"] .job__st { color: var(--a-ink); }
.job.is-new, .app__found.is-new { animation: job-in 260ms var(--ease) both; }
@keyframes job-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* touch screens: every control of the window at least 44px tall */
@media (pointer: coarse) {
  .app__btn { height: 44px; }
  .app__tab { height: 44px; }
  .app__chip { height: 44px; }
  .app__card { min-height: 52px; }
  .app__go { height: 48px; }
}

/* ---------------------------------------------------------------- sections: one idea per screen */
.sec { min-height: 100vh; min-height: 100svh; padding: 120px 0 72px; }
.sec__head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.sec__lead { font-size: var(--t-lead); line-height: 1.5; color: var(--rova-muted); max-width: 40em; }
.sec h3 { font: 600 20px/1.3 var(--font-text); letter-spacing: -0.015em; }

/* how it works: three numbered steps (a real sequence), each with the real app shot */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { display: grid; gap: 20px; align-content: start; }
.step__words { display: grid; gap: 8px; justify-items: start; }
.step__n { display: grid; margin-bottom: 6px; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--rova-mist); color: var(--rova-ink); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.step__words p { color: var(--rova-muted); }
.step__shot { aspect-ratio: 4 / 3; border-radius: 18px; }

/* what ROVA saves: short text columns, no boxes */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 56px; }
.feat > * { padding-right: 24px; }
.feat { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--rova-line); }
.feat p:not(.tags) { color: var(--rova-muted); max-width: 36ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--rova-mist); color: var(--rova-ink-2); font-size: 13px; font-weight: 500; }

/* price: the words left, one card right */
.price { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.price__words { grid-column: 1 / span 5; display: grid; gap: 14px; }
.buysteps { counter-reset: b; display: grid; gap: 18px; margin-top: 22px; }
.buysteps li { color: var(--rova-muted); }
.buysteps__n { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--rova-mist); color: var(--rova-ink); font-weight: 600; font-size: 13px; vertical-align: 1px; }
.buysteps b { color: var(--rova-ink); font-weight: 600; }
.pcard { grid-column: 7 / span 6; display: grid; gap: 18px; padding: 40px; border-radius: 28px; background: var(--rova-surface);
  border: 1px solid var(--rova-line); box-shadow: var(--rova-shadow-lg); }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard__top h3 { font-size: 20px; }
.pcard__amount { display: flex; align-items: baseline; gap: 14px; font-variant-numeric: tabular-nums; }
.pcard__usd { display: inline-flex; align-items: flex-start; font-size: var(--t-h2); font-weight: 620; line-height: 1; letter-spacing: -0.04em; }
.pcard__cur { font-size: .5em; line-height: 1.1; margin-right: 2px; letter-spacing: 0; }
.pcard__amount s { font-size: 22px; color: var(--rova-muted); text-decoration-thickness: 1.5px; }
.pcard__once { color: var(--rova-muted); margin-top: -8px; }
.pcard__list { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--rova-line); }
.pcard__list li { position: relative; padding-left: 30px; }
.pcard__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--rova-accent-soft);
}
.pcard__list li::after {
  content: ""; position: absolute; left: 6px; top: 7px; width: 8px; height: 5px; border-left: 2px solid var(--rova-accent-text); border-bottom: 2px solid var(--rova-accent-text); transform: rotate(-45deg);
}
.coins { display: grid; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rova-line); }
.coins__lbl { color: var(--rova-muted); font-size: 15px; }
.coins__row { display: flex; flex-wrap: wrap; gap: 8px; }
.coins__row li { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--rova-line); font-size: 14px; font-weight: 500; color: var(--rova-ink); }
.coins__row img { height: 24px; width: auto; }
.pcard__osicons { display: inline-flex; gap: 6px; align-items: center; margin-right: 8px; vertical-align: -2px; }
.pcard__osicons img { height: 16px; width: auto; }
.pcard__buy { width: 100%; margin-top: 6px; }
.pcard__after { font-size: 14px; color: var(--rova-muted); text-align: center; }

/* questions */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.faq__head { grid-column: 1 / span 5; display: grid; gap: 14px; justify-items: start; }
.faq__list { grid-column: 7 / span 6; border-top: 1px solid var(--rova-line); }
.faq__buy { margin-top: 10px; }
.qa { border-bottom: 1px solid var(--rova-line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 550; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px; border-right: 1.7px solid var(--rova-muted); border-bottom: 1.7px solid var(--rova-muted);
  transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease); }
.qa[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.qa summary:focus-visible { outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .qa summary:hover { color: var(--rova-accent-text); } }
.qa p { padding: 0 32px 22px 0; color: var(--rova-muted); max-width: 62ch; }

/* ---------------------------------------------------------------- big screens: more room, same measure */
@media (min-width: 1680px) {
  .app { max-width: 1120px; font-size: 14px; }
  .stage { padding: 64px 64px 0; }
  .hero__sub { font-size: 20px; }
}

/* ---------------------------------------------------------------- laptops and tablets */
@media (max-width: 1279px) {
  .stage { padding: 44px 40px 0; }
}
@media (max-width: 1023px) {
  .sec { padding: 104px 0 64px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 48px; max-width: 640px; }
  .step__shot { max-width: 640px; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; }
  .price__words, .pcard, .faq__head, .faq__list { grid-column: 1 / -1; }
  .pcard { max-width: 560px; margin-top: 40px; }
  .faq__list { margin-top: 32px; }
  .stage { padding: 32px 24px 0; }
  .app__cols { min-height: 500px; }
}
/* phone landscape and other short screens: sections take their content's height */
@media (max-height: 520px) and (orientation: landscape) {
  .sec { min-height: 0; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 639px) {
  .hero { padding-top: calc(var(--nav) + env(safe-area-inset-top) + 32px); padding-bottom: 88px; }
  .hero h1 { letter-spacing: -0.032em; line-height: 1.08; }
  .hero h1 > .hero__kicker { font-size: 15px; margin-bottom: 14px; letter-spacing: 0; }
  .hero__sub { font-size: 17px; margin-top: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .hero__actions .btn { width: 100%; }
  .os li { padding: 0 12px 0 10px; font-size: 14px; }
  .hero__price { font-size: 14px; }
  .stage { margin-top: 36px; padding: 16px 12px 0; border-radius: 22px; }
  .app { border-radius: 12px 12px 0 0; }
  .app__bar { padding: 0 12px; }
  .app__sites { display: none; }
  .app__cols { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app__left { padding: 14px 12px 18px; }
  .app__right { border-left: 0; border-top: 1px solid var(--a-line); padding: 12px 12px 18px; }
  .app__found img { width: 96px; height: 54px; }
  .app__chip { font-size: 12px; }
  .app__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .job { grid-template-columns: 80px minmax(0, 1fr); }
  .job > img { width: 80px; height: 45px; }
  .sec { padding: 88px 0 56px; }
  .sec__head { margin-bottom: 32px; }
  .feats { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .pcard { padding: 28px 22px; border-radius: 22px; }
  .faq__buy, .faq__buy .btn { width: 100%; }
  .qa summary { font-size: 16px; }
  .qa p { padding-right: 0; }
}
@media (max-width: 359px) {
  .hero h1 { font-size: 31px; }
  .app__chip { font-size: 11px; }
  .os { gap: 6px; }
  .os li { padding: 0 10px 0 8px; font-size: 13.5px; }
}

/* ---------------------------------------------------------------- Supported sites (a dialog; assets/sites.js)
   The app's panel on the page's own surface: title and count, Find a site, Popular rows, All sites A–Z in columns,
   the DRM note pinned at the foot. A centred panel of fixed height (searching never resizes it); a full-screen sheet
   under 640. One open movement: the panel settles 8px up as it appears (none under reduced motion). */
html.sites-locked { overflow: hidden; }
@media (min-width: 640px) { html.sites-locked { scrollbar-gutter: stable; } }   /* the page keeps its width behind the panel */
html.sites-locked body { overflow: hidden; }
.sites {
  --sites-pad: 28px;
  --sites-field: color-mix(in oklab, var(--rova-ink) 22%, var(--rova-surface));
  position: fixed; inset: 0; margin: auto; padding: 0;
  width: min(920px, 100% - 48px); max-width: none; height: min(800px, 100% - 64px); max-height: none;
  border: 1px solid var(--rova-line); border-radius: 24px; background: var(--rova-surface); color: var(--rova-ink);
  box-shadow: var(--rova-shadow-lg); overflow: hidden; overscroll-behavior: contain;
}
.sites:not([open]) { display: none; }
.sites[open] { display: flex; flex-direction: column; animation: sites-in 220ms cubic-bezier(.22, 1, .36, 1); }
.sites::backdrop { background: rgb(8 12 18 / .55); animation: sites-fade 200ms ease; }
:root[data-theme="light"] .sites::backdrop { background: rgb(13 17 23 / .32); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .sites::backdrop { background: rgb(13 17 23 / .32); } }
.sites.is-fallback { z-index: 91; }
.sites-scrim { position: fixed; inset: 0; z-index: 90; background: rgb(8 12 18 / .55); }
@keyframes sites-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sites-fade { from { opacity: 0; } to { opacity: 1; } }

.sites__head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 20px 0 var(--sites-pad); }
.sites__title { display: grid; gap: 4px; min-width: 0; padding-top: 4px; }
.sites__title h2 { font-size: 28px; line-height: 1.15; font-weight: 620; letter-spacing: -0.025em; }
.sites__count { font-size: 15px; line-height: 1.4; color: var(--rova-muted); font-variant-numeric: tabular-nums; }
.sites__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: var(--rova-mist-2); color: var(--rova-ink-2); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.sites__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.sites__close:focus-visible { outline: 2px solid var(--rova-focus); outline-offset: 2px; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) { .sites__close:hover { background: color-mix(in oklab, var(--rova-ink) 14%, var(--rova-surface)); color: var(--rova-ink); } }

.sites__find { flex: none; display: grid; gap: 8px; padding: 18px var(--sites-pad) 18px; border-bottom: 1px solid var(--rova-line); }

.sites__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 6px var(--sites-pad) 28px; }
.sites__body:focus-visible { outline: 2px solid var(--rova-focus); outline-offset: -3px; border-radius: 0; }
.sites__group + .sites__group { margin-top: 8px; }
.sites[data-state="loading"] .sites__group, .sites[data-state="error"] .sites__group, .sites[data-state="idle"] .sites__group { display: none; }
.sites__state { padding: 20px 0 0; }

.sites[data-searching] .sites-all__letter { display: none; }   /* a search shows only names */

.sites__empty { padding: 28px 0 8px; font-size: 16px; line-height: 1.5; color: var(--rova-ink-2); max-width: 46ch; }
.sites[data-state="loading"] .sites__src, .sites[data-state="error"] .sites__src { display: none; }
.sites__drm { flex: none; padding: 14px var(--sites-pad) 16px; border-top: 1px solid var(--rova-line); background: var(--rova-surface);
  font-size: 14px; line-height: 1.45; color: var(--rova-muted); }
.sites__drm { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.sites__full { flex: none; font-weight: 550; }   /* the /sites page: the same list as a page of its own */

@media (max-width: 1023px) {
  .sites { width: min(920px, 100% - 40px); height: min(860px, 100% - 48px); }
}
/* phones: a full-screen sheet, the safe areas inside it */
@media (max-width: 639px) {
  .sites {
    --sites-pad: 20px;
    inset: 0; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .sites[open] { animation-name: sites-up; animation-duration: 240ms; }
  .sites__head { padding: calc(10px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) 0 calc(var(--sites-pad) + env(safe-area-inset-left)); align-items: center; }
  .sites__title { padding-top: 0; }
  .sites__title h2 { font-size: 24px; }
  .sites__find, .sites__body { padding-left: calc(var(--sites-pad) + env(safe-area-inset-left)); padding-right: calc(var(--sites-pad) + env(safe-area-inset-right)); }
  .sites__find { padding-top: 14px; padding-bottom: 14px; }
  .sites__drm { padding: 12px calc(var(--sites-pad) + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(var(--sites-pad) + env(safe-area-inset-left)); font-size: 13.5px; }
}
@keyframes sites-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 359px) {
  .sites { --sites-pad: 16px; }
}

/* ---------------------------------------------------------------- reduced motion: no fills, no slides */
@media (prefers-reduced-motion: reduce) {
  .job__fill, .app__tab, .app__chip, .app__go, .qa summary::after, .sites__close, .sites__input { transition: none; }
  .job.is-new, .app__found.is-new { animation: none; }
  .sites[open], .sites::backdrop { animation: none; }
}
