/* Shared palette and controls, including standalone privacy documents. */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --ink: #1d1e20; --muted: #65666c; --paper: #fff; --soft: #f5f5f7;
  --line: #dedee2; --blue: #0068d6; --surface: #fff; --header: #ffffffed;
  --hero-top: #fbfbfc; --hero-bottom: #eeeff1; --warm: #f1eee9;
  --warm-hero: #f6f3ef; --warm-glow: #e7c18b63; --green-soft: #eef2f0;
  --studio: #eeefeb; --studio-ring: #dde2d8; --button-bg: #1d1e20;
  --button-ink: #fff; --button-hover: #424348; --selection: #e9e9ed;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f0f1f3; --muted: #a8acb3; --paper: #131518; --soft: #1d2025;
  --line: #3c4149; --blue: #8bbcff; --surface: #282c32; --header: #17191ced;
  --hero-top: #17191c; --hero-bottom: #23272c; --warm: #2a2724;
  --warm-hero: #211f1d; --warm-glow: #70532f44; --green-soft: #1c2725;
  --studio: #242923; --studio-ring: #303a30; --button-bg: #f0f1f3;
  --button-ink: #1d1e20; --button-hover: #d4d8dd; --selection: #3a414a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ink: #f0f1f3; --muted: #a8acb3; --paper: #131518; --soft: #1d2025;
    --line: #3c4149; --blue: #8bbcff; --surface: #282c32; --header: #17191ced;
    --hero-top: #17191c; --hero-bottom: #23272c; --warm: #2a2724;
    --warm-hero: #211f1d; --warm-glow: #70532f44; --green-soft: #1c2725;
    --studio: #242923; --studio-ring: #303a30; --button-bg: #f0f1f3;
    --button-ink: #1d1e20; --button-hover: #d4d8dd; --selection: #3a414a;
  }
}
body { color: var(--ink); background: var(--paper); }
.site-header { background: var(--header); border-color: var(--line); }
.nav-shell { gap: 18px; }
.nav-links { gap: 20px; }
.nav-links a, .hero .eyebrow, .hero .lead, .device-label p, .intro-strip,
.caption, .feature-number, .process-step > span, .image-credit,
.product-card > .image-credit, .screenshot-card figcaption .image-credit { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"], .footer-links strong,
.footer-links a:hover, .footer-bottom a:hover, .editorial p strong { color: var(--ink); }
.nav-links .nav-contact, .button { color: var(--button-ink); background: var(--button-bg); }
.nav-links .nav-contact:hover, .button:hover { color: var(--button-ink) !important; background: var(--button-hover); }
.button.light { color: #1d2729; background: #fff; }
.button.outline { color: var(--ink); background: transparent; border-color: var(--line); }
.skip-link { background: var(--paper); }
.hero { background: linear-gradient(180deg, var(--hero-top), var(--soft) 76%, var(--hero-bottom)); }
.hero h1 span, .philosophy-head h2 span { color: var(--muted); }
.intro-strip, .detail-item, .process-step, .support-card, details, .footer-bottom { border-color: var(--line); }
.product-card.rimo { background: var(--warm); }
.product-card.rimo > p, .product-hero.rimo .lead, .demo-copy > p { color: var(--muted); }
.screenshot-section, .site-footer, .compatibility, .cta-section, .page-hero { background: var(--soft); }
.site-footer { color: var(--muted); }
.screenshot-section.norvo, .experience.norvo { background: var(--green-soft); }
.product-nav { background: var(--soft); border-color: var(--line); }
.product-hero.rimo { background: radial-gradient(ellipse at 50% 100%, var(--warm-glow), transparent 55%), var(--warm-hero); }
.floating-info { background: var(--surface); border-color: var(--line); }
.floating-info span { color: var(--muted); }
.experience { background: var(--warm); }
.segmented { background: var(--selection); }
.segmented button { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.demo-result:not(.metric-demo) { background: var(--surface); }
.demo-result .demo-verdict { color: var(--ink); }
.demo-data { border-color: var(--line); }
.demo-data div { color: var(--muted); }
.demo-data strong { color: var(--ink); }
.demo-footnote { color: var(--muted) !important; }
.metric-chooser button { color: var(--ink); border-color: var(--line); }
.metric-chooser button[aria-pressed="true"] { color: #fff; background: #1b3932; }
.studio-hero { background: var(--studio); }
.studio-hero::after { border-color: var(--studio-ring); }
.language-switch a, .document-dark .language-switch a { color: var(--muted); min-width: 32px; min-height: 44px; }
.language-switch a:hover, .language-switch a[aria-current="page"],
.document-dark .language-switch a:hover, .document-dark .language-switch a[aria-current="page"] { color: var(--ink); background: var(--selection); }
.menu-toggle { color: var(--ink); }
.theme-menu { position: relative; flex-shrink: 0; border: 0; margin: 0; color: var(--ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif; }
.theme-menu > summary { display: flex; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; list-style: none; cursor: pointer; }
.theme-menu > summary::after { content: none; }
.theme-menu > summary::-webkit-details-marker { display: none; }
.theme-menu > summary:hover, .theme-menu[open] > summary { background: var(--selection); }
.theme-menu svg { display: block; }
.theme-panel { position: absolute; top: 51px; right: 0; width: 205px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 35px #0002; z-index: 80; box-sizing: border-box; }
.theme-heading { display: block; font-size: 12px; color: var(--muted); margin: 2px 8px 8px; }
.theme-panel button { display: block; width: 100%; min-height: 44px; text-align: left; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.theme-panel button[aria-pressed="true"] { background: var(--selection); font-weight: 600; }
.theme-panel button[aria-pressed="true"]::after { content: '✓'; float: right; }
.theme-panel button:hover { background: var(--soft); }
.appearance-control { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 30px auto 0; color: var(--muted); font-size: 12px; }
.appearance-buttons { display: inline-flex; border: 1px solid var(--line); border-radius: 30px; padding: 3px; background: var(--paper); }
.appearance-buttons button { min-width: 80px; min-height: 44px; border: 0; border-radius: 24px; background: transparent; color: var(--ink); font-size: 13px; padding: 10px 18px; }
.appearance-buttons button[aria-pressed="true"] { background: var(--button-bg); color: var(--button-ink); }
.product-hero.norvo .appearance-control { color: #b7cbc4; }
.product-hero { padding-bottom: 32px; }
.product-hero .product-showcase { margin-bottom: 0; }
.product-hero .product-showcase + .appearance-control { margin-top: 20px; }
.catalogue-appearance .appearance-control { margin: 24px auto 0; }
.device-stage > .appearance-control { grid-column: 1 / -1; margin: 0; }
.screenshot-section .appearance-control { margin: 28px auto 0; }
.screenshot-viewer .appearance-control { margin: 25px auto; }
.app-mockup { aspect-ratio: 1350 / 2760; }
.appearance-control[hidden], .theme-menu[hidden] { display: none; }
.theme-menu :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.text-link, .product-nav-links a { min-height: 44px; }
.product-nav-links a { display: inline-flex; align-items: center; }
.footer-links a { min-height: 32px; display: inline-flex; align-items: center; }
.segmented button, .metric-chooser button { min-height: 44px; }

/* Retain legal prose and its structure while sharing the chosen appearance. */
.privacy-document { --bg1: var(--paper); --bg2: var(--soft); --ink70: var(--muted); --ink45: var(--muted); --card: var(--surface); --stroke: var(--line); --accent: var(--blue); }
.privacy-document body { color: var(--ink); background: var(--paper); }
.privacy-document a { color: var(--blue); }
.privacy-document .meta { color: var(--muted); }
.privacy-document hr { border-color: var(--line); }
.privacy-document .document-navigation { padding: 0; }
.privacy-rimo .document-navigation { max-width: 636px; padding-inline: 22px; }
.privacy-document .document-navigation > a { flex: 1 1 200px; }
.privacy-document .theme-menu a { text-decoration: none; }
.privacy-document [hidden] { display: none !important; }

@media (max-width: 1020px) {
  .site-header { height: 60px; }
  .nav-shell { width: calc(100% - 36px); gap: 8px; }
  .nav-shell > .brand { margin-right: auto; }
  .nav-shell > .language-switch { order: 2; }
  .nav-shell > .theme-menu { order: 3; }
  .menu-toggle { display: flex; order: 4; flex-shrink: 0; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--paper); padding: 24px 30px 40px; min-height: calc(100dvh - 60px); max-height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain; align-items: stretch; justify-content: flex-start; flex-direction: column; gap: 12px; }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 27px; padding: 7px 0; letter-spacing: -.7px; }
  .nav-links .nav-contact { display: inline-flex; justify-content: center; width: fit-content; margin-top: 12px; font-size: 15px; padding: 12px 24px; }
}
@media (max-width: 700px) {
  .product-hero .product-showcase { display: block; }
  .product-showcase .app-frame { width: min(100%, 264px); }
  .floating-info { display: none; }
}
@media (max-width: 620px) {
  .appearance-control { gap: 8px; margin-top: 25px; }
  .section-heading h2, .feature-intro h2, .demo-copy h2, .philosophy-head h2, .studio-teaser h2 { font-size: clamp(30px, 8.8vw, 39px); }
  .page-hero h1 { font-size: clamp(36px, 10.5vw, 48px); overflow-wrap: anywhere; }
  .product-card h3 { font-size: clamp(30px, 8.8vw, 38px); }
  .demo-data { flex-wrap: wrap; }
  .footer-bottom .legal-links { gap: 8px 19px; align-items: center; }
  .footer-bottom .legal-links > a { display: inline-flex; align-items: center; min-height: 36px; }
  .product-nav .container { flex-wrap: wrap; padding-block: 5px; gap: 0 12px; }
  .product-nav-links { flex-wrap: wrap; }
  .document-links a { gap: 12px; }
}
@media (max-width: 380px) {
  .nav-shell { width: calc(100% - 24px); gap: 4px; }
  .nav-shell .brand { font-size: 16px; gap: 6px; }
  .nav-shell .brand > span > span { display: block; font-size: 12px; line-height: 1; letter-spacing: 0; }
  .segmented { max-width: 100%; flex-wrap: wrap; border-radius: 20px; }
}
@media print {
  :root { --ink: #111 !important; --muted: #444 !important; --paper: #fff !important; --soft: #fff !important; }
  .theme-menu, .appearance-control { display: none !important; }
}
