/* LIVORA palette and control sizes, shared with packages/ui_tokens/tokens.json. */
:root {
  color-scheme: dark;
  --background: #0b1922;
  --surface: #172c35;
  --accent: #59e6b5;
  --text: #f4f8fa;
  --secondary: #a4b8c5;
  --warning: #f0bc79;
  --line: color-mix(in srgb, var(--secondary) 24%, transparent);
  --font: Inter, "Segoe UI", system-ui, sans-serif;
}
:root:has(#light-theme:checked) {
  color-scheme: light;
  --background: #f5f8f7;
  --surface: #fff;
  --accent: #12665b;
  --text: #172b30;
  --secondary: #405b60;
  --warning: #754700;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font: 400 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:is(a, button, summary):focus-visible, .theme-input:focus-visible + label {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.wrap { width: min(100% - 64px, 1176px); margin-inline: auto; }
.skip { position: absolute; z-index: 4; left: 16px; top: -100px; padding: 14px; border-radius: 8px; background: var(--surface); }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .masthead nav, .brand, .language, .hero-actions, .text-action, .button, .card-top, .section-head, .footer-inner, .footer-brand {
  display: flex;
  align-items: center;
}
.masthead-inner { justify-content: space-between; gap: 20px; min-height: 78px; }
.brand, .footer-brand { gap: 12px; font-size: 1.3rem; font-weight: 730; letter-spacing: .14em; }
.brand { min-height: 48px; }
.brand-leaf { display: inline-block; flex: none; width: 24px; height: 26px; border-radius: 100% 15% 100% 15%; background: var(--accent); }
.masthead nav { gap: 12px; }
.nav-downloads, .language a, .theme-switch { display: grid; min-height: 48px; min-width: 48px; align-content: center; justify-content: center; }
.nav-downloads { color: var(--secondary); font-size: .9rem; font-weight: 600; padding: 0 12px; }
.language { position: relative; }
.language::before { content: ''; position: absolute; pointer-events: none; inset: 5px 0; border-radius: 12px; border: 1px solid var(--line); }
.language a { position: relative; z-index: 0; font-size: .78rem; font-weight: 700; color: var(--secondary); }
.language a[aria-current] { color: var(--text); }
.language a[aria-current]::before { content: ''; position: absolute; z-index: -1; inset: 8px 3px; border-radius: 8px; background: color-mix(in srgb, var(--secondary) 19%, transparent); }
.theme-switch { cursor: pointer; border-radius: 50%; }
.sun { position: relative; width: 18px; height: 18px; color: var(--secondary); display: block; }
.sun::before { content: ''; position: absolute; inset: 4px; border: 1.6px solid currentColor; border-radius: 50%; }
.sun::after { content: ''; position: absolute; inset: 0; background: currentColor; mask: repeating-conic-gradient(from -6deg, #000 0 12deg, transparent 12deg 45deg), radial-gradient(circle, transparent 54%, #000 60%); mask-composite: intersect; }
.logout { margin: 0; }
.nav-downloads:hover, .language a:hover, .theme-switch:hover .sun, .text-action:hover { color: var(--accent); }
.theme-switch:hover { background: color-mix(in srgb, var(--secondary) 9%, transparent); }
.hero { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: clamp(24px, 3.6vw, 56px); align-items: center; padding: clamp(40px, 5vw, 80px) 0; }
.hero-copy h1, .section-head h2, .card h3 { margin: 0; line-height: 1.08; letter-spacing: -.055em; }
.hero-copy h1 { font-size: clamp(3.1rem, 4.9vw, 4.55rem); font-weight: 660; }
.hero-copy h1 span { color: var(--accent); }
.hero-copy > p { max-width: 32rem; margin: 22px 0 0; color: var(--secondary); font-size: clamp(1.05rem, 1.6vw, 1.18rem); }
.hero-copy .availability { font-size: .88rem; margin-top: 14px; }
.hero-actions { flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; }
.button, .text-action { gap: 12px; justify-content: center; min-height: 48px; min-width: 48px; font-weight: 650; font-size: .94rem; line-height: 1.25; }
.button { padding: 13px 20px; border-radius: 11px; }
.button.primary { color: var(--background); background: var(--accent); }
.button.primary:hover { background: color-mix(in srgb, var(--accent) 83%, var(--text)); }
.button.secondary { color: var(--text); border: 1px solid var(--line); justify-content: space-between; }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); }
.button span[aria-hidden], .text-action span[aria-hidden] { font-size: 1.2em; }
.text-action { padding: 0; background: transparent; border: 0; color: var(--text); }
.product { position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; margin: 0; aspect-ratio: 1.63; border: 1px solid #386460; border-radius: 24px; background: radial-gradient(ellipse at 68% 50%, #516f60 0%, #244941 49%, #11332f 100%); }
.product::before { content: ''; position: absolute; inset: 0; opacity: .43; background-image: radial-gradient(#8ab4a1 .7px, transparent .9px); background-size: 12px 12px; mask-image: linear-gradient(125deg,#000,transparent 65%); }
.product::after { content: ''; z-index: -1; position: absolute; width: 72%; height: 135%; right: -14%; top: -34%; border: 1px solid #74b49f85; border-radius: 100% 12% 100% 12%; transform: rotate(12deg); box-shadow: 0 0 0 30px #72ad990b, 0 0 0 31px #72ad9933, 0 0 0 62px #72ad990b, 0 0 0 63px #72ad9928; }
.frames { position: absolute; inset: 0; }
.tablet-frame, .phone-frame { position: absolute; overflow: hidden; background: #10191c; border: 1px solid #8a9e9c; box-shadow: 4px 11px 22px #0315166b, inset 0 0 0 2px #1c2528; }
.tablet-frame { top: 12%; left: 6%; width: 75%; height: 68%; border-radius: 3cqw; padding: 1.1cqw; transform: perspective(900px) rotateY(7deg) rotateZ(-4deg); }
.tablet-frame img, .phone-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tablet-frame img { border-radius: 2cqw; }
.phone-frame { top: 22%; right: 7%; width: 23%; aspect-ratio: 9/17.2; padding: .68cqw; border-radius: 2.3cqw; transform: rotate(5deg); }
.phone-frame img { border-radius: 1.7cqw; }
.product figcaption { position: absolute; bottom: 4%; left: 5%; color: #e4f2eb; font-size: .69rem; letter-spacing: .035em; }
.downloads { padding: 0 0 clamp(56px, 7vw, 96px); }
.section-head { justify-content: space-between; gap: 16px; margin: 0 0 22px; padding-top: 26px; border-top: 1px solid var(--line); }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 640; }
.section-head p { margin: 0; color: var(--secondary); font-size: .9rem; }
.catalog { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.card { min-height: 250px; height: 100%; display: flex; flex-direction: column; padding: clamp(20px, 2.15vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.card-top { justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.device-icon { color: var(--accent); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.device-icon i { position: relative; display: block; }
.icon-android { width: 15px; height: 24px; border: 1.9px solid currentColor; border-radius: 4px; }
.icon-android::after { content: ''; position: absolute; left: 3px; right: 3px; bottom: 2px; height: 1.6px; border-radius: 2px; background: currentColor; }
.icon-windows { width: 23px; height: 16px; margin-top: -3px; border: 1.9px solid currentColor; border-radius: 3px; }
.icon-windows::after { content: ''; position: absolute; left: 4px; bottom: -7px; width: 12px; height: 2px; border-radius: 2px; background: currentColor; }
.icon-windows::before { content: ''; position: absolute; left: 9px; bottom: -6px; width: 2px; height: 5px; background: currentColor; }
.icon-web { width: 23px; height: 23px; border: 1.8px solid currentColor; border-radius: 50%; }
.icon-web::before { content: ''; position: absolute; inset: -1px 5px; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-web::after { content: ''; position: absolute; left: 1px; right: 1px; top: 9px; border-top: 1.5px solid currentColor; }
.format { color: var(--secondary); font: 600 .72rem/1.25 ui-monospace, Consolas, monospace; letter-spacing: .07em; }
.card h3 { font-weight: 620; font-size: 1.5rem; letter-spacing: -.035em; }
.subtitle { margin: 7px 0 0; color: var(--secondary); font-size: .95rem; }
.detail { margin: 14px 0 0; color: var(--secondary); font-size: .82rem; }
.card-action { display: flex; flex-direction: column; margin-top: auto; padding-top: 18px; }
.card-action .text-action { align-self: flex-start; text-align: left; color: var(--accent); font-size: .88rem; }
.unavailable { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: .84rem; font-weight: 580; color: var(--secondary); }
.unavailable::before { content: ''; width: 6px; height: 6px; background: var(--warning); border-radius: 50%; }
details { padding-top: 6px; font-size: .83rem; color: var(--secondary); }
summary { min-height: 48px; padding-top: 13px; cursor: pointer; }
details code { display: block; overflow-wrap: anywhere; color: var(--text); font-size: .79rem; }
.notice { margin: 22px 0 0; background: var(--surface); color: var(--text); border-left: 3px solid var(--warning); border-radius: 4px; padding: 14px 18px; }
footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 76px; justify-content: space-between; gap: 16px; color: var(--secondary); font-size: .86rem; }
.footer-brand { font-size: .9rem; gap: 8px; }
.footer-brand .brand-leaf { width: 15px; height: 16px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .hero-copy h1 { font-size: clamp(2.9rem, 6vw, 3.8rem); }
  .wrap { width: min(100% - 48px, 1176px); }
  .hero-actions { gap: 6px 16px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .masthead-inner { min-height: 66px; gap: 8px; }
  .masthead nav { gap: 4px; }
  .nav-downloads { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 32px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 9.5vw, 4rem); }
  .hero-copy > p { margin-top: 16px; }
  .hero-actions { margin-top: 18px; }
  .product { max-width: 560px; width: 100%; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 17px; }
  .catalog { grid-template-columns: 1fr; gap: 12px; }
  .card { min-height: 0; padding: 20px; }
  .card-top { margin-bottom: 16px; }
  .card-action { padding-top: 12px; }
}
@media (max-width: 440px) {
  .brand { gap: 6px; font-size: 1.02rem; }
  .brand > .brand-leaf { width: 18px; height: 20px; }
  .masthead-inner { flex-wrap: wrap; padding-block: 4px; }
  .masthead .text-action { font-size: .81rem; }
  .language a { min-width: 48px; }
  .product figcaption { font-size: .6rem; }
}
@media (forced-colors: active) {
  .brand-leaf, .device-icon i, .unavailable::before { outline: 1px solid currentColor; }
  .button, .theme-switch { border: 1px solid ButtonText; }
}
