/* ==================================================================
   AI Softphone — one stylesheet, no build step.
   Sections: tokens · base · header · hero · carousel · features ·
             roadmap · downloads · footer · motion · responsive
   ================================================================== */

/* ---------------- tokens: light is the base ---------------- */
:root {
  --bg:            #f6f7fb;
  --bg-2:          #eef1f8;
  --surface:       #ffffff;
  --surface-2:     #f3f5fb;
  --border:        #dfe4f0;
  --border-strong: #c9d1e4;
  --text:          #0e1424;
  --text-soft:     #4b556e;
  --text-mute:     #6f7a94;

  --accent:        #00796b;   /* the application icon's deep teal */
  --accent-2:      #26a69a;   /* the application icon's light teal */
  --accent-3:      #0f9e8d;
  --accent-alt:    #2f6fd0;   /* one cool note, used in the hero glow only */
  --accent-ink:    #ffffff;
  --accent-soft:   rgba(0, 121, 107, .10);

  /* the same colours as plain channels: rgba() works everywhere, while
     color-mix() needs a 2023 browser and takes the whole declaration with
     it when it is not understood */
  --bg-rgb:         246, 247, 251;
  --surface-rgb:    255, 255, 255;
  --accent-rgb:     0, 121, 107;
  --accent-alt-rgb: 47, 111, 208;
  --accent-3-rgb:   15, 158, 141;
  --title-2:        #0a2e36;   /* text mixed a quarter of the way to accent */

  --mark-1:        #26a69a;
  --mark-2:        #00796b;
  --os-eye:        #ffffff;

  --shadow-sm:  0 1px 2px rgba(14, 20, 36, .06), 0 2px 8px rgba(14, 20, 36, .05);
  --shadow-md:  0 4px 12px rgba(14, 20, 36, .07), 0 18px 40px rgba(14, 20, 36, .08);
  --shadow-lg:  0 10px 30px rgba(14, 20, 36, .10), 0 40px 80px rgba(14, 20, 36, .12);

  --radius:     16px;
  --radius-lg:  24px;
  --wrap:       1180px;
  --header-h:   64px;

  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

/* ---------------- dark ---------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #080b14;
    --bg-2:          #0b0f1c;
    --surface:       #111726;
    --surface-2:     #161d2f;
    --border:        #232c42;
    --border-strong: #33405e;
    --text:          #eaeefb;
    --text-soft:     #b6c0d8;
    --text-mute:     #8994ae;

    --accent:        #2fc3af;
    --accent-2:      #57dcc6;
    --accent-3:      #6ee7d2;
    --accent-alt:    #5aa8ff;
    --accent-ink:    #04211d;
    --accent-soft:   rgba(47, 195, 175, .15);

    --bg-rgb:         8, 11, 20;
    --surface-rgb:    17, 23, 38;
    --accent-rgb:     47, 195, 175;
    --accent-alt-rgb: 90, 168, 255;
    --accent-3-rgb:   110, 231, 210;
    --title-2:        #b9e3e7;

    --mark-1:        #57dcc6;
    --mark-2:        #2fc3af;

    --shadow-sm:  0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md:  0 6px 18px rgba(0, 0, 0, .45), 0 24px 48px rgba(0, 0, 0, .35);
    --shadow-lg:  0 12px 34px rgba(0, 0, 0, .5), 0 48px 90px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  --bg:            #080b14;
  --bg-2:          #0b0f1c;
  --surface:       #111726;
  --surface-2:     #161d2f;
  --border:        #232c42;
  --border-strong: #33405e;
  --text:          #eaeefb;
  --text-soft:     #b6c0d8;
  --text-mute:     #8994ae;

  --accent:        #2fc3af;
  --accent-2:      #57dcc6;
  --accent-3:      #6ee7d2;
  --accent-alt:    #5aa8ff;
  --accent-ink:    #04211d;
  --accent-soft:   rgba(47, 195, 175, .15);

  --bg-rgb:         8, 11, 20;
  --surface-rgb:    17, 23, 38;
  --accent-rgb:     47, 195, 175;
  --accent-alt-rgb: 90, 168, 255;
  --accent-3-rgb:   110, 231, 210;
  --title-2:        #b9e3e7;

  --mark-1:        #57dcc6;
  --mark-2:        #2fc3af;

  --shadow-sm:  0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md:  0 6px 18px rgba(0, 0, 0, .45), 0 24px 48px rgba(0, 0, 0, .35);
  --shadow-lg:  0 12px 34px rgba(0, 0, 0, .5), 0 48px 90px rgba(0, 0, 0, .45);
}

/* ---------------- base ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
html.i18n-pending body { visibility: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.16; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 680; }
p  { margin: 0 0 1em; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 5vw, 32px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { left: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: rgba(var(--bg-rgb), .82);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 720; letter-spacing: -.02em; font-size: 1.02rem; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--text-soft); font-size: .95rem; font-weight: 520;
  padding: 8px 12px; border-radius: 10px; text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav .nav-cta {
  color: var(--accent-ink); background: var(--accent);
  margin-left: 6px; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--accent); filter: brightness(1.08); color: var(--accent-ink); }

.header-tools { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; background: var(--surface);
}
.lang-switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 640; letter-spacing: .02em;
  color: var(--text-mute); padding: 7px 10px; transition: color .15s, background .15s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--accent-soft); color: var(--accent); }

.theme-toggle, .menu-toggle {
  appearance: none; cursor: pointer; display: inline-grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text-soft);
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover, .menu-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun  { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"]  .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"]  .theme-toggle .icon-moon { display: none; }

.menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-toggle span { display: block; width: 16px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
html.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
html.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
html.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column;
  border-top: 1px solid var(--border); background: var(--bg);
  padding: 4px clamp(18px, 5vw, 32px) 18px;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.mobile-nav a {
  display: flex; align-items: center; min-height: 52px;
  padding: 6px 4px; color: var(--text); font-weight: 560; font-size: 1.02rem;
  border-bottom: 1px solid var(--border); text-decoration: none;
}
.mobile-nav a:last-child {
  border-bottom: 0; margin-top: 12px; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 12px; font-weight: 640;
}
html.menu-open .mobile-nav { display: flex; }
/* opaque while the panel is down: a translucent bar over the panel reads as a bug */
html.menu-open .site-header { background: var(--bg); border-bottom-color: var(--border); }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: clamp(56px, 9vw, 108px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -20% auto -20%; height: 780px; z-index: -1;
  background:
    radial-gradient(46% 42% at 22% 28%, rgba(var(--accent-rgb), .34), transparent 68%),
    radial-gradient(40% 40% at 78% 18%, rgba(var(--accent-alt-rgb), .26), transparent 66%),
    radial-gradient(38% 44% at 60% 62%, rgba(var(--accent-3-rgb), .2), transparent 70%);
  filter: blur(24px); opacity: .55; pointer-events: none;
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 580; letter-spacing: .01em;
  color: var(--text-soft); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; margin: 0 0 22px; box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3);
  box-shadow: 0 0 0 3px rgba(var(--accent-3-rgb), .22);
}

.hero-title {
  font-size: clamp(2.15rem, 6.2vw, 4rem);
  letter-spacing: -.035em; font-weight: 720;
  max-width: 900px; margin-bottom: .38em; text-wrap: balance;
  color: var(--text);
}
.hero-sub {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 620; letter-spacing: -.02em; line-height: 1.3;
  color: var(--text); max-width: 34ch; margin: 0 0 18px;
}
.hero-sub span { display: inline-block; }   /* a sentence never breaks across lines */
.hero-sub::after {
  content: ""; display: block; width: 54px; height: 3px; border-radius: 2px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
}
.hero-lead {
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  color: var(--text-soft); max-width: 62ch; margin-bottom: 34px; text-wrap: pretty;
}
.hero-note { font-size: .92rem; color: var(--text-mute); margin-top: 18px; max-width: 68ch; }
.hero-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.download-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.dl-more {
  align-self: center; font-size: .88rem; color: var(--text-mute);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.dl-more:hover { color: var(--accent); }

.dl-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.dl-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.dl-btn.primary {
  border-color: transparent; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 26px rgba(var(--accent-rgb), .36);
}
.dl-btn.primary:hover { filter: brightness(1.06); }
.dl-btn.disabled {
  opacity: .55; cursor: default; box-shadow: none;
  background: var(--surface-2);
}
.dl-btn.disabled:hover { transform: none; box-shadow: none; border-color: var(--border); }
.dl-btn.block { width: 100%; justify-content: center; }

.dl-btn-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; }
.dl-btn-icon svg { width: 22px; height: 22px; fill: currentColor; }
.dl-btn-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.dl-btn-text strong { font-size: .98rem; font-weight: 640; }
.dl-btn-text small  { font-size: .78rem; opacity: .78; font-weight: 480; }
.dl-btn.block .dl-btn-text { text-align: center; }

.hero-facts {
  list-style: none; margin: 46px 0 0; padding: 0;
  display: grid; gap: 14px 28px; width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--border); padding-top: 26px;
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong {
  font-size: 1.32rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--accent);
}
.hero-facts span { font-size: .84rem; color: var(--text-mute); }

/* Gradient lettering is decoration, never the thing that makes the words
   visible: the headline is painted in a plain colour above, and only takes the
   gradient where a background can be clipped to the glyphs. A browser that
   does not know @supports keeps the solid text; so does high contrast. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title {
    background-image: linear-gradient(180deg, var(--text) 46%, var(--title-2) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
  .hero-facts strong {
    background-image: linear-gradient(135deg, var(--accent), var(--accent-alt));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
@media (forced-colors: active) {
  .hero-title, .hero-facts strong {
    background-image: none;
    -webkit-text-fill-color: currentColor; color: CanvasText;
  }
}

/* ---------------- sections ---------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-muted { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 72ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-kicker {
  font-size: .78rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}
.section-title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin-bottom: .35em; }
.section-lead { color: var(--text-soft); font-size: clamp(1rem, 1.6vw, 1.08rem); margin: 0; }

/* ---------------- carousel ---------------- */
/* The screenshots are portrait windows of differing size: they are laid out
   at one shared height, each keeping its own width, several at a time. */
.carousel {
  position: relative; margin-top: 6px;
  --shot-h: clamp(320px, 56vh, 660px);
}
.carousel-viewport {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-block: 6px 4px; overscroll-behavior-x: contain;
  /* the strip runs off both edges: fade the neighbours out instead of
     letting the viewport cut them off mid-window */
  --edge: clamp(40px, 7vw, 150px);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--edge), #000 calc(100% - var(--edge)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--edge), #000 calc(100% - var(--edge)), transparent 100%);
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track {
  display: flex; align-items: flex-end; gap: clamp(14px, 2vw, 26px);
  padding-inline: 0;
}
.slide {
  margin: 0; flex: 0 0 auto; scroll-snap-align: center;
  display: flex; align-items: flex-end;
}
.slide-frame {
  height: var(--shot-h);
  display: flex; align-items: flex-end; justify-content: center;
  transition: transform .25s ease, filter .25s ease;
}
.slide-img {
  height: 100%; width: auto;
  max-width: min(86vw, 720px);
  object-fit: contain; object-position: bottom center;
  display: block; border-radius: 10px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .34)) drop-shadow(0 3px 8px rgba(0, 0, 0, .22));
}
/* the slide in the middle is the one being read; the rest step back */
.slide:not(.is-active) .slide-frame { transform: scale(.93); filter: saturate(.75) opacity(.45); }

.slide-frame.is-empty {
  width: min(86vw, 420px); align-items: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: rgba(var(--surface-rgb), .6);
}
.slide-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-mute); text-align: center; padding: 24px;
}
.slide-placeholder span { font-size: .95rem; font-weight: 560; }
.slide-placeholder code {
  font-family: var(--mono); font-size: .78rem; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 10px; border-radius: 8px; overflow-wrap: anywhere;
}

.carousel-caption {
  margin: 26px auto 0; max-width: 62ch; min-height: 3em;
  text-align: center; color: var(--text-soft); font-size: .98rem;
  padding-inline: clamp(18px, 5vw, 32px);
}

.carousel-arrow {
  position: absolute; top: calc(var(--shot-h) / 2 + 6px); transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border);
  background: rgba(var(--surface-rgb), .92);
  backdrop-filter: blur(8px); color: var(--text);
  cursor: pointer; box-shadow: var(--shadow-md); z-index: 2;
  transition: opacity .15s ease, transform .15s ease;
}
.carousel-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.carousel-arrow.prev { left: clamp(10px, 3vw, 26px); }
.carousel-arrow.next { right: clamp(10px, 3vw, 26px); }
.carousel-arrow:hover:not(:disabled) { transform: translateY(-50%) scale(1.06); }

.carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.carousel-dots .dot {
  appearance: none; border: 0; cursor: pointer; padding: 0;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--border-strong); transition: width .2s ease, background .2s ease;
}
.carousel-dots .dot.active { width: 26px; background: var(--accent); }

/* ---------------- features ---------------- */
.feature-grid {
  display: grid; gap: clamp(16px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.feature-card {
  position: relative; padding: clamp(22px, 2.6vw, 32px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature-card h3 { font-size: 1.22rem; margin-bottom: .45em; }
.feature-card > p { color: var(--text-soft); margin-bottom: 1.1em; font-size: .98rem; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 18px; color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), .22);
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tick-list li {
  position: relative; padding-left: 26px; font-size: .94rem; color: var(--text-soft);
}
.tick-list li::before {
  content: ""; position: absolute; left: 2px; top: .52em;
  width: 12px; height: 7px; border-left: 2px solid var(--accent-3); border-bottom: 2px solid var(--accent-3);
  transform: rotate(-45deg); border-radius: 1px;
}
.tick-list strong { color: var(--text); font-weight: 640; }

@media (min-width: 900px) { .feature-card.wide { grid-column: span 2; } }

/* ---------------- roadmap ---------------- */
.road-grid {
  display: grid; gap: clamp(14px, 1.8vw, 18px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.road-card {
  padding: 22px; border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: rgba(var(--surface-rgb), .6);
}
.road-card h3 { font-size: 1.02rem; margin-bottom: .4em; color: var(--text); }
.road-card h3::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 7px; height: 7px; border-radius: 50%; margin-right: 9px;
  background: var(--text-mute); opacity: .7;
}
.road-card p { margin: 0; font-size: .92rem; color: var(--text-mute); }

/* ---------------- downloads ---------------- */
.dl-grid {
  display: grid; gap: clamp(16px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.dl-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.dl-card.unavailable { background: var(--surface-2); box-shadow: none; border-style: dashed; }
.dl-card-head { display: flex; align-items: flex-start; gap: 14px; }
.dl-card-head h3 { font-size: 1.14rem; margin: 0 0 2px; }
.dl-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; flex: none; background: var(--accent-soft); color: var(--accent); }
.dl-card-icon svg { width: 22px; height: 22px; fill: currentColor; }
.dl-req { margin: 0; font-size: .86rem; color: var(--text-mute); }

.dl-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .84rem; }
.dl-meta dt { color: var(--text-mute); }
.dl-meta dd { margin: 0; color: var(--text-soft); overflow-wrap: anywhere; }
.dl-meta .dl-file, .dl-meta .dl-sum { font-family: var(--mono); font-size: .78rem; grid-column: 1 / -1; color: var(--text-mute); }

/* format chooser — one card, one button, the package picked above it */
.fmt-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: -6px; }
.fmt-chip {
  font: inherit; font-size: .84rem; font-weight: 560; line-height: 1;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-soft);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.fmt-chip:hover { border-color: var(--border-strong); color: var(--text); }
.fmt-chip.is-on {
  background: var(--accent-soft); border-color: rgba(var(--accent-rgb), .45);
  color: var(--accent);
}
.fmt-note { margin: 0; font-size: .82rem; color: var(--text-mute); overflow-wrap: anywhere; }
.dl-foot { margin-top: 26px; font-size: .88rem; color: var(--text-mute); max-width: 78ch; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: clamp(36px, 5vw, 56px) 0 40px; }
.footer-inner { display: grid; gap: 22px; }
.footer-brand .brand-name { font-size: 1.05rem; }
.footer-brand p { margin: 6px 0 0; color: var(--text-mute); font-size: .92rem; max-width: 46ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--text-soft); font-size: .92rem; }
.footer-links a:hover { color: var(--accent); }
.soon-note {
  font-size: .78rem; font-weight: 580; letter-spacing: .01em;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), .26);
  border-radius: 999px; padding: 2px 10px; align-self: center;
}
.footer-legal { margin: 0; font-size: .84rem; color: var(--text-mute); border-top: 1px solid var(--border); padding-top: 18px; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------------- motion ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .download-row { flex-direction: column; align-items: stretch; }
  .dl-btn { justify-content: center; }
  .dl-btn-text { text-align: center; }
  .carousel-arrow { display: none; }
  .carousel { --shot-h: clamp(300px, 52vh, 520px); }
  .carousel-viewport { --edge: 16px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
  .brand-name { display: none; }
}

/* ---------------- print ---------------- */
@media print {
  .site-header, .carousel-arrow, .carousel-dots, .theme-toggle, .lang-switch { display: none !important; }
  body { background: #fff; color: #000; }
}
