/* ==========================================================================================================
   ROVA site shell: site.css (OWNER: site builder #1). "Clear water" redesign, 2026-11-29.

   HEAD BLOCK of the landing and inner pages (no inline <script>/<style>/style="": the CSP is 'self' only):
     <link rel="preload" href="/assets/fonts/geist-latin-wght.woff2" as="font" type="font/woff2" crossorigin>
     <link rel="stylesheet" href="/assets/tokens.css">          brand tokens (--rova-*), dark base + light
     <link rel="stylesheet" href="/assets/motion/motion.css">   taste-skill kit: hover / press / hero entrance
     <link rel="stylesheet" href="/assets/site.css">            THIS FILE: base, shell (header, footer), components
     <link rel="stylesheet" href="/assets/<page>.css">          home.css, pages.css, legal.css
     <script src="/assets/boot.js"></script>                    sync: stored theme + entrance guard (before paint)
     … end of body: motion/motion.js, site.js (modules), then the page's own script.

   The checkout pages (buy, order, manage) still load the taste-skill kit (system.css, ui/cards.css) BEFORE this
   file. So: the base below sits in a cascade layer (@layer rova-base) and loses to the kit's unlayered rules on those
   pages; the palette, the header, the footer, the buttons and the shared components are unlayered and apply on
   every page. Class names are stable (the checkout pages use .nav*, .btn*, .box, .notice*, .key, .field__hint …).

   HEADER   header.nav > .wrap.nav__bar
              a.skip-link[href="#top"] · a.nav__logo (svg.logo--light + svg.logo--dark)
              nav.nav__links > .nav__item > a.nav__link   How it works · Supported sites · Price · Questions
              .nav__actions > button.theme-toggle[data-theme-toggle] + a.btn.btn--primary.btn--sm "Buy ROVA"
              button.nav__toggle[aria-expanded][aria-controls]   phones: opens the links as a full-screen sheet
   FOOTER   footer.foot > .wrap > .foot__grid (.foot__brand + .foot__col × 4) + .foot__legal
   BUTTONS  .btn.btn--primary (ink pill, white in dark: ONE main action per view) · .btn--secondary (quiet mist pill)
            .btn--sm (the header) · .btn--lg (hero, price card) · .btn-row · .link (text link)
   ========================================================================================================== */

/* ---------------------------------------------------------------- Geist (SIL OFL, self-hosted) */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geist-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geist-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- the palette, from the tokens (every page)
   The kit's --p-* names (system.css derives --bg, --ink, --action … from them on the checkout pages) and the
   site-only names point at the --rova-* tokens, so a theme switch in tokens.css is the only switch. */
:root {
  --p-bg: var(--rova-page); --p-surface: var(--rova-mist); --p-ink: var(--rova-ink); --p-muted: var(--rova-muted);
  --p-accent: var(--rova-accent); --p-accent-ink: var(--rova-accent-ink);
  --p-action: var(--rova-accent); --p-action-ink: var(--rova-accent-ink);
  --p-inv-bg: #0B0D11; --p-inv-surface: #151920; --p-inv-ink: #F1F4F8; --p-inv-muted: #9AA5B4;
  --p-inv-accent: #4DD4E5; --p-inv-accent-ink: #062026; --p-inv-action: #4DD4E5; --p-inv-action-ink: #062026;
  --font-display: var(--rova-font-sans);
  --font-text: var(--rova-font-sans);
  --font-mono: var(--rova-font-mono);
  --display-weight: 600;
  --display-tracking: -0.03em;
  /* site-only names (checkout.css reads them) */
  --ember: var(--rova-ember);
  --raised: var(--rova-raised);
  --hairline: var(--rova-line);
  --ink-2: var(--rova-ink-2);
  --mist: var(--rova-mist);
  --mist-2: var(--rova-mist-2);
  -webkit-tap-highlight-color: color-mix(in oklab, var(--rova-accent) 18%, transparent);
}
html[data-ground="sky"] { --ground-bg: var(--rova-mist); --ground-surface: var(--rova-mist-2); --ground-ink: var(--rova-ink); --ground-muted: var(--rova-muted); --ground-accent: var(--rova-accent); }

/* ---------------------------------------------------------------- base (layered: the kit wins where it is loaded) */
@layer rova-base {
  :root {
    --bg: var(--p-bg); --surface: var(--p-surface); --ink: var(--p-ink); --muted: var(--p-muted);
    --accent: var(--p-accent); --accent-ink: var(--p-accent-ink); --card: var(--rova-surface);
    --action: var(--p-action); --action-ink: var(--p-action-ink);
    --line: var(--rova-line);
    --line-strong: color-mix(in oklab, var(--rova-ink) 22%, transparent);
    /* layout: one .wrap for the header, every section and the footer */
    --nav: 72px;
    --container: 1280px;
    --gut: 80px;
    --gutter: 24px;
    /* spacing (4/8) */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
    /* type: the only sizes */
    --t-label: 13px; --t-small: 14px; --t-body: 16px; --t-lead: 18px; --t-card: 18px; --t-h3: 22px;
    --t-h2: clamp(30px, 1.72vw + 23.3px, 48px);
    --t-h1: clamp(36px, 2.5vw + 28px, 76px);
    /* radius */
    --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-btn: 999px;
    /* controls */
    --btn-h: 48px; --btn-h-sm: 40px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --dur: 180ms;
  }
  @media (max-width: 1023px) { :root { --gut: 48px; } }
  @media (max-width: 639px)  { :root { --nav: 64px; --gut: 20px; --gutter: 16px; --t-lead: 17px; } }
  @media (max-width: 359px)  { :root { --gut: 16px; } }
  @media (min-width: 1680px) { :root { --container: 1360px; } }

  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 16px); }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 400 var(--t-body)/1.55 var(--font-text);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip;
  }
  img, svg, video, canvas { display: block; max-width: 100%; }
  img, video { height: auto; }
  [hidden] { display: none !important; }
  a { color: inherit; text-decoration: none; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-wrap: balance; overflow-wrap: break-word; }
  h1, .t-h1 { font-size: var(--t-h1); line-height: 1.04; }
  h2, .t-h2 { font-size: var(--t-h2); line-height: 1.08; }
  h3, .t-h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.015em; }
  h4, .t-card { font-family: var(--font-text); font-weight: 600; font-size: var(--t-card); line-height: 1.3; letter-spacing: -0.01em; }
  p { text-wrap: pretty; }
  .t-lead { font-size: var(--t-lead); line-height: 1.5; }
  .t-small { font-size: var(--t-small); line-height: 1.5; }
  .t-label { font-size: var(--t-label); font-weight: 500; line-height: 1.4; }
  .muted { color: var(--muted); }
  .measure { max-width: 62ch; }
  :focus-visible { outline: 2px solid var(--rova-focus); outline-offset: 2px; border-radius: 4px; }
  ::selection { background: color-mix(in oklab, var(--rova-c-kingfisher) 32%, transparent); }

  .wrap, .container { width: min(100% - 2 * var(--gut) - env(safe-area-inset-left) - env(safe-area-inset-right), var(--container)); margin-inline: auto; }
  .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-5); }
  .grid > * { min-width: 0; grid-column: 1 / -1; }
  @media (min-width: 1024px) {
    .span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
    .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
    .start-4 { grid-column-start: 4; } .start-7 { grid-column-start: 7; } .start-8 { grid-column-start: 8; } .start-9 { grid-column-start: 9; } .start-10 { grid-column-start: 10; }
  }
  .section { padding-block: var(--s-9); }
  .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}

/* ---------------------------------------------------------------- base touches (every page) */
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.skip-link {
  position: absolute; left: var(--s-4); top: calc(env(safe-area-inset-top) + 12px); z-index: 60; padding: 10px 16px; border-radius: 999px;
  background: var(--rova-btn); color: var(--rova-btn-ink); font-weight: 600; font-size: 15px; transform: translateY(-200%);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; }
:where(a, button, [role="tab"], summary, label, input, select) { touch-action: manipulation; }

/* ---------------------------------------------------------------- buttons (no underline, ever) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--btn-h); min-height: 44px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 550 16px/1 var(--font-text); letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  text-decoration: none; -webkit-user-select: none; user-select: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 90ms var(--ease);
}
a.btn, a.btn:is(:hover, :focus, :focus-visible, :active, :visited) { text-decoration: none; }
:root .btn.btn--primary { background: var(--rova-btn); color: var(--rova-btn-ink); border-color: transparent; }
:root .btn.btn--secondary { background: var(--rova-mist); color: var(--rova-ink); border-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  :root .btn.btn--primary:hover { background: color-mix(in oklab, var(--rova-btn) 86%, var(--rova-page)); }
  :root .btn.btn--secondary:hover { background: var(--rova-mist-2); border-color: transparent; }
}
:root .btn:focus-visible { outline: 2px solid var(--rova-focus); outline-offset: 3px; border-radius: 999px; }
.btn--sm { height: var(--btn-h-sm); padding: 0 18px; font-size: 15px; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 17px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.m-arrow { display: none; }   /* no arrows in buttons (DIRECTION.md) */
.link { color: var(--rova-accent-text); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }
.link::after { content: none !important; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------------------------------------------------------------- logo (the brand lockup, never retyped) */
.nav__logo { display: inline-flex; align-items: center; flex: none; border-radius: 6px; }
.nav__logo .logo { height: 38px; width: auto; margin-left: -8px; }
.logo--dark { display: none; }
:root:not([data-theme="light"]) .logo--light { display: none; }
:root:not([data-theme="light"]) .logo--dark { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo--light { display: block; }
  :root:not([data-theme="dark"]) .logo--dark { display: none; }
}
@media (max-width: 639px) { .nav__logo .logo { height: 34px; } }

/* ---------------------------------------------------------------- header: fixed at the top, never mid-page */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--nav) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  background: var(--rova-page); color: var(--rova-ink);
  border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.nav.is-scrolled, .nav.is-open { border-bottom-color: var(--rova-line); }
.nav .nav__bar { position: relative; height: var(--nav); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s-4); }
.nav .nav__logo { grid-column: 1; justify-self: start; }
.nav .nav__nav { grid-column: 2; display: flex; justify-content: center; }
.nav .nav__links { grid-column: 2; display: flex; align-items: center; align-self: center; gap: 4px; flex: none; height: auto; }
.nav .nav__item { display: flex; height: auto; }
.nav .nav__link {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px;
  font: 500 15px/1 var(--font-text); letter-spacing: -0.005em; color: var(--rova-ink-2); white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav .nav__link::before, .nav .nav__link::after { content: none; display: none; }
.nav .nav__link[aria-current="page"] { color: var(--rova-ink); background: var(--rova-mist); }
@media (hover: hover) and (pointer: fine) { .nav .nav__link:hover { color: var(--rova-ink); background: var(--rova-mist); } }
.nav .nav__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--s-2); }
.nav .nav__actions .btn { height: var(--btn-h-sm); min-height: 40px; padding: 0 18px; font-size: 15px; }
.nav .nav__menu, .nav .nav__expand, .nav .chev { display: none; }

/* theme toggle and menu button: quiet round icon buttons */
.theme-toggle, .theme-switch, .nav .nav__toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none; margin: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--rova-muted); cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .theme-toggle:hover, .theme-switch:hover, .nav .nav__toggle:hover { color: var(--rova-ink); background: var(--rova-mist); } }
:is(.theme-toggle, .theme-switch) svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* the icon shows where a click takes you: a moon in light, a sun in dark */
:is(.theme-toggle, .theme-switch) .i-moon { display: none; }
:is(.theme-toggle, .theme-switch) .i-sun { display: block; }
:root[data-theme="light"] :is(.theme-toggle, .theme-switch) .i-moon { display: block; }
:root[data-theme="light"] :is(.theme-toggle, .theme-switch) .i-sun { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) :is(.theme-toggle, .theme-switch) .i-moon { display: block; }
  :root:not([data-theme="dark"]) :is(.theme-toggle, .theme-switch) .i-sun { display: none; }
}
.nav .nav__toggle { display: none; }
.nav .nav__toggle svg { width: 20px; height: 20px; }
.nav .nav__toggle .i-close { display: none; }
.nav.is-open .nav__toggle .i-open { display: none; }
.nav.is-open .nav__toggle .i-close { display: block; }

/* four words (the site shell's header: How it works, Supported sites, Price, Questions) between 768 and 1023: the words
   sit between the logo and the actions, a step tighter, so they never run under the Buy button */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav .nav__bar:has(.nav__item:nth-child(4)) { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--s-2); }
  .nav .nav__bar:has(.nav__item:nth-child(4)) .nav__links { gap: 0; }
  .nav .nav__bar:has(.nav__item:nth-child(4)) .nav__link { padding: 0 10px; }
}
/* tablets and phones under 768: the words go into a full-screen sheet behind the menu button */
@media (max-width: 767px) {
  .nav .nav__bar { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2); }
  .nav .nav__actions { grid-column: 2; gap: 6px; }
  .nav .nav__actions .btn { height: 44px; padding: 0 16px; }
  .nav .nav__toggle { display: inline-grid; margin-left: -2px; color: var(--rova-ink); }
  .nav .nav__nav { position: absolute; width: 0; height: 0; }
  .nav .nav__links { display: none; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; align-self: stretch; justify-self: stretch; gap: 0;
    position: fixed; left: 0; right: 0; top: calc(var(--nav) + env(safe-area-inset-top)); bottom: 0; z-index: 49;
    padding: var(--s-4) calc(var(--gut) + env(safe-area-inset-right)) calc(var(--s-6) + env(safe-area-inset-bottom)) calc(var(--gut) + env(safe-area-inset-left));
    background: var(--rova-page); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.is-open .nav__item { display: block; border-bottom: 1px solid var(--rova-line); }
  .nav.is-open .nav__link { display: flex; width: 100%; height: 64px; padding: 0; border-radius: 0; background: none; font-size: 24px; font-weight: 550; letter-spacing: -0.02em; color: var(--rova-ink); }
  body.nav-locked { overflow: hidden; }
}
@media (max-width: 359px) {
  .nav .nav__actions .btn { padding: 0 12px; font-size: 14px; }
  .nav .nav__logo .logo { height: 30px; }
}
/* touch screens (phones and tablets): every control in the bar and the footer is 44px tall or more */
.nav .nav__logo, .foot .nav__logo { min-height: 44px; }
.foot .nav__logo { justify-self: start; }
.foot__legal a { display: inline-flex; align-items: center; min-height: 44px; }
@media (pointer: coarse) {
  .nav .nav__link { height: 44px; }
  .nav .nav__actions .btn { height: 44px; min-height: 44px; }
  .foot .foot__col li a { min-height: 44px; }
  .toc li a { min-height: 44px; }
}
/* no script: the sheet cannot open, so the menu button goes (the footer holds every link) */
@media (scripting: none) { .nav .nav__toggle { display: none !important; } }

/* the black Apple mark turns white on a dark page */
:root:not([data-theme="light"]) .ink-mark { filter: invert(1); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .ink-mark { filter: none; } }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--rova-line); background: var(--rova-page); color: var(--rova-ink);
  padding: var(--s-8) 0 calc(var(--s-6) + env(safe-area-inset-bottom)); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.foot__brand { display: grid; gap: var(--s-4); align-content: start; }
.foot__brand .nav__logo .logo { height: 38px; }
.foot__lede { color: var(--rova-muted); font-size: 15px; line-height: 1.5; max-width: 30ch; }
.foot__os { color: var(--rova-muted); font-size: 14px; }
.foot__col .foot__h, .foot__col h2 { font: 500 14px/1.4 var(--font-text); letter-spacing: 0; color: var(--rova-muted); margin-bottom: var(--s-3); }
.foot__col li a { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--rova-ink); }
@media (hover: hover) and (pointer: fine) { .foot__col li a:hover { color: var(--rova-accent-text); } }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-top: var(--s-7);
  padding-top: var(--s-5); border-top: 1px solid var(--rova-line); color: var(--rova-muted); font-size: 14px; }
.foot__legal a { color: var(--rova-muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }
@media (max-width: 1023px) {
  .foot__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
  .foot .foot__col li a { min-height: 44px; }
}

/* the older dark footer markup (checkout pages until they take the footer above) */
.footer--dark .footer__col :is(h2, h3) { font: 500 var(--t-label)/1.4 var(--font-text); color: var(--muted); margin-bottom: var(--s-3); }
.footer--dark .footer__col li + li { margin-top: var(--s-2); }
.footer--dark .footer__col a { color: var(--ink); }
.footer--dark .footer__lede { font-size: var(--t-lead); line-height: 1.45; max-width: 26ch; color: var(--muted); }
.footer__legal { color: var(--muted); font-size: var(--t-small); }
.footer .nav__logo .logo { height: 40px; }

/* ---------------------------------------------------------------- inner pages: content height, under the header */
html[data-layout="flow"] main > :is(section, .section),
html[data-layout="flow"] footer.closing { height: auto; min-height: 0; }
html[data-layout="flow"] main > :is(section, .section) > :is(.wrap, .container),
html[data-layout="flow"] footer.closing > .wrap { height: auto; }
html[data-layout="flow"] main > :is(section, .section) { padding-block: var(--s-8); }
html[data-layout="flow"] main > :is(section, .section):first-child { padding-top: calc(var(--nav) + env(safe-area-inset-top) + var(--s-9)); }
html[data-layout="flow"] main { min-height: calc(100svh - 280px); }
html[data-layout="flow"] footer.closing { padding-block: var(--s-9) var(--s-6); }
html[data-layout="flow"] footer.closing > .wrap { display: block; }
@media (max-width: 639px) {
  html[data-layout="flow"] main > :is(section, .section) { padding-block: var(--s-7); }
  html[data-layout="flow"] main > :is(section, .section):first-child { padding-top: calc(var(--nav) + env(safe-area-inset-top) + var(--s-7)); }
}
/* the page title block of an inner page */
.doc-head { display: grid; gap: var(--s-4); max-width: 760px; }
.doc-head h1 { font-size: clamp(36px, 2.2vw + 27px, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.doc-head .t-lead { color: var(--rova-muted); max-width: 60ch; }
.doc-head__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-small); color: var(--rova-muted); }

/* ---------------------------------------------------------------- small pieces */
/* the launch price: Ember, the brand's 5 % colour, used for this one fact only */
.launch-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  font: 500 13px/1 var(--font-text); white-space: nowrap;
  color: var(--rova-ink); background: color-mix(in oklab, var(--rova-ember) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--rova-ember) 38%, transparent);
}
.launch-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rova-ember); }
.price-line { font-size: var(--t-small); color: var(--rova-muted); line-height: 1.5; }
.price-line b { color: var(--rova-ink); font-weight: 600; }
.price-line s { text-decoration-thickness: 1px; }
/* licence keys, addresses, hashes: the only monospace on the site */
.key, .mono-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums slashed-zero; letter-spacing: 0.02em; overflow-wrap: anywhere; word-break: break-all; }
.key { font-size: clamp(18px, 1vw + 14px, 24px); font-weight: 500; }
/* a plain bordered surface block (app-like pages: checkout, manage, download) */
.box { background: var(--rova-surface); border: 1px solid var(--rova-line); border-radius: var(--r-lg, 20px); padding: var(--s-6); }
@media (max-width: 639px) { .box { padding: var(--s-5); } }
.field__hint { font-weight: 400; color: var(--rova-muted); font-size: var(--t-small); }
.input--key { font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }
input, select, textarea { font-size: max(16px, 1em); }   /* no zoom on focus in iOS Safari */

/* notices: status blocks (order status, manage errors). Text stays ink; the colour is the edge and the dot. */
.notice { --n: var(--rova-line-strong); display: grid; gap: var(--s-1); padding: var(--s-4) var(--s-5); border-radius: var(--r-md, 12px);
  border: 1px solid color-mix(in oklab, var(--n) 45%, var(--rova-line)); background: color-mix(in oklab, var(--n) 7%, var(--rova-page)); }
.notice > :first-child { font-weight: 500; display: flex; align-items: center; gap: var(--s-2); }
.notice > :first-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--n); flex: none; }
.notice--info { --n: var(--rova-accent); }
.notice--success { --n: var(--rova-success); }
.notice--warning { --n: var(--rova-warning); }
.notice--danger { --n: var(--rova-danger); }

/* ---------------------------------------------------------------- long-form text (legal, changelog) */
.prose { max-width: 72ch; font-size: 16px; line-height: 1.7; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-size: clamp(24px, .762vw + 21px, 32px); line-height: 1.2; margin-top: var(--s-8); scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.prose h3 { font-size: 20px; line-height: 1.3; margin-top: var(--s-6); letter-spacing: -0.015em; scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.prose h4 { font-size: 17px; margin-top: var(--s-5); }
.prose :is(h2, h3, h4) + * { margin-top: var(--s-3); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--rova-muted); }
.prose a:not(.btn) { color: var(--rova-accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); }
@media (hover: hover) and (pointer: fine) { .prose a:not(.btn):hover { text-decoration-color: currentColor; } }
.prose strong { font-weight: 600; }
.prose code { font-family: var(--font-mono); font-size: .92em; padding: .1em .35em; border-radius: 4px; background: var(--rova-mist); }
.prose pre { overflow-x: auto; padding: var(--s-4); border-radius: var(--r-md, 12px); background: var(--rova-mist); font: 13px/1.6 var(--font-mono); }
.prose blockquote { padding-left: var(--s-4); border-left: 2px solid var(--rova-line-strong); color: var(--rova-muted); }
.prose hr { border: 0; border-top: 1px solid var(--rova-line); margin-block: var(--s-7); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose :is(th, td) { text-align: left; vertical-align: top; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--rova-line); }
.prose th { font-weight: 500; color: var(--rova-muted); }
/* a legal page: the contents list beside the text from 1024 */
.doc-grid { display: grid; gap: var(--s-7); margin-top: var(--s-8); }
@media (min-width: 1024px) { .doc-grid { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-9); } }
.toc { font-size: var(--t-small); }
.toc p { color: var(--rova-muted); font-weight: 500; margin-bottom: var(--s-3); }
.toc li + li { margin-top: var(--s-1); }
.toc a { color: var(--rova-muted); display: inline-flex; align-items: center; min-height: 32px; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--rova-ink); } }
@media (min-width: 1024px) { .toc > div { position: sticky; top: calc(var(--nav) + var(--s-6)); } }
@media (max-width: 1023px) { .toc { display: none; } }

/* ---------------------------------------------------------------- screenshot frame (real app captures) */
.shot { position: relative; overflow: hidden; border-radius: var(--r-lg, 20px); border: 1px solid var(--rova-line); background: var(--rova-mist); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ---------------------------------------------------------------- reduced motion: nothing extra moves */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle, .theme-switch, .nav, .nav .nav__link, .btn { transition: none; }
}
