/* Fusion PRO Player public site. Plain CSS, no build step; tokens follow the app's "cinema" theme. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #faf7f2; --bg-2: #f3eee6; --surface: #ffffff; --surface-2: #f7f2eb; --line: #e8e0d4; --line-strong: #d5c9b8;
  --text: #1c1814; --muted: #6a6056; --faint: #978b7e;
  --accent: #f4a127; --accent-hover: #ffb84d; --accent-ink: #1d1305; --accent-text: #9a4b00; --accent-soft: rgba(244, 161, 39, .13);
  --ok: #15803d; --ok-soft: rgba(21, 128, 61, .1); --warn: #a16207; --warn-soft: rgba(202, 138, 4, .12); --bad: #b91c1c; --bad-soft: rgba(185, 28, 28, .09);
  --shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 12px 32px -12px rgba(40, 30, 20, .18);
  --screen: #141210; --grid: rgba(28, 24, 20, .06);
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 16px; --container: 1180px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0e0d; --bg-2: #141210; --surface: #1b1815; --surface-2: #221e1a; --line: #2c2722; --line-strong: #443b32;
  --text: #f4efe8; --muted: #ab9f92; --faint: #7d7266;
  --accent: #ffb23f; --accent-hover: #ffc266; --accent-ink: #1d1305; --accent-text: #ffbe5c; --accent-soft: rgba(255, 178, 63, .11);
  --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .1); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .1); --bad: #f87171; --bad-soft: rgba(248, 113, 113, .1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .7);
  --grid: rgba(255, 240, 220, .045);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.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 { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; line-height: 1; }
.brand-name small { display: block; font: 600 .62rem/1.2 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 550; font-size: .94rem; text-decoration: none; }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--muted); text-decoration: none; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-btn { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; font-weight: 650; font-size: .82rem; letter-spacing: .04em; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
.menu-toggle { display: none; }
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .site-header.open .main-nav { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-header.open .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
}
@media (max-width: 560px) { .header-actions .btn-login { display: none; } .brand-name small { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 650; font-size: .96rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn-quiet { color: var(--muted); background: transparent; }
.btn-quiet:hover { color: var(--text); background: var(--surface-2); }
.btn-danger { color: var(--bad); background: transparent; border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn-danger:hover { background: var(--bad-soft); }
.btn[disabled], .btn.loading { opacity: .6; cursor: not-allowed; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Section scaffolding */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { font: 800 clamp(2rem, 4.2vw, 3.1rem)/1.04 var(--font-display); letter-spacing: -.03em; margin: 14px 0 0; text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 60ch; margin: 16px 0 0; text-wrap: pretty; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font: 800 clamp(2.8rem, 5.6vw, 4.7rem)/.98 var(--font-display); letter-spacing: -.045em; margin: 18px 0 0; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted); font-size: .9rem; }
.hero-note svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.devices { position: relative; padding: 0 0 48px 40px; }
.tv { position: relative; border-radius: 14px; background: #050505; padding: 10px 10px 12px; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .04) inset; }
.tv img { border-radius: 6px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--screen); }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 26%; height: 22px; transform: translateX(-50%); background: linear-gradient(#1a1714, #0c0b0a); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.phone { position: absolute; left: 0; bottom: 0; width: 23%; min-width: 108px; border-radius: 22px; padding: 6px; background: #050505; box-shadow: var(--shadow); }
.phone img { border-radius: 17px; aspect-ratio: 9 / 19.5; object-fit: cover; }
.callout { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.callout i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.callout-a { top: -14px; right: 8%; }
.callout-b { bottom: 8px; right: 4%; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .devices { padding-left: 24px; } }
@media (max-width: 520px) { .callout { display: none; } .devices { padding-left: 14px; } }

/* Platforms strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 22px 0; }
.strip-title { color: var(--muted); font-size: .85rem; font-weight: 600; }
.strip-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.strip-logos span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.strip-logos svg { width: 20px; height: 20px; fill: currentColor; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line-strong); }
.step { padding: 28px 28px 8px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step b { display: block; font: 800 3.4rem/1 var(--font-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font: 700 1.25rem/1.25 var(--font-display); letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* Feature sheet */
.sheet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.sheet article { padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet article:nth-child(4n) { border-right: 0; }
.sheet article:nth-last-child(-n + 4) { border-bottom: 0; }
.sheet .ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 18px; }
.sheet .ico svg { width: 20px; height: 20px; }
.sheet h3 { margin: 0 0 8px; font: 700 1.08rem/1.3 var(--font-display); }
.sheet p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 1020px) {
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet article:nth-child(4n) { border-right: 1px solid var(--line); }
  .sheet article:nth-child(2n) { border-right: 0; }
  .sheet article:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .sheet article:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 560px) { .sheet { grid-template-columns: 1fr; } .sheet article { border-right: 0 !important; } .sheet article:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

/* Showcase */
.showcase { display: grid; gap: clamp(56px, 8vw, 96px); }
.show { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.show:nth-child(even) { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.show:nth-child(even) .show-media { order: 2; }
.show h3 { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.08 var(--font-display); letter-spacing: -.025em; margin: 0 0 14px; }
.show p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.show-media .tv::after { display: none; }
@media (max-width: 860px) { .show, .show:nth-child(even) { grid-template-columns: 1fr; } .show:nth-child(even) .show-media { order: 0; } }

/* Manage band */
.manage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 550; }
.checks svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); margin-top: 1px; }
.mock { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); padding: 22px; font-size: .92rem; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mock-id { font: 700 1.25rem/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .08em; }
.mock-id small { display: block; font: 600 .7rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { color: var(--ok); background: var(--ok-soft); }
.pill-warn { color: var(--warn); background: var(--warn-soft); }
.pill-bad { color: var(--bad); background: var(--bad-soft); }
.pill-muted { color: var(--muted); background: var(--surface-2); }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.mock-row:last-child { border-bottom: 0; padding-bottom: 0; }
.mock-row .tag { margin-left: auto; color: var(--faint); font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; }
.mock-row .tag svg { width: 14px; height: 14px; }
.mock-glyph { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-text); flex: none; }
.mock-glyph svg { width: 18px; height: 18px; }
.mock-row strong { display: block; font-weight: 650; }
.mock-row span.sub { color: var(--faint); font-size: .8rem; font-family: ui-monospace, Menlo, Consolas, monospace; }
@media (max-width: 860px) { .manage { grid-template-columns: 1fr; } }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.price { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 28px; }
.price.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.price .badge { position: absolute; top: -12px; left: 24px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 750; letter-spacing: .02em; }
.price h3 { margin: 0; font: 700 1.1rem/1.2 var(--font-display); }
.price .hint { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.price .amount { margin: 22px 0 4px; font: 800 2.8rem/1 var(--font-display); letter-spacing: -.03em; }
.price .amount small { font-size: 1.1rem; font-weight: 700; margin-right: 4px; color: var(--muted); }
.price .per { color: var(--faint); font-size: .85rem; min-height: 1.4em; }
.price .btn { margin-top: 24px; }
.price-note { margin-top: 22px; color: var(--muted); font-size: .9rem; max-width: 72ch; }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }

/* Downloads */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s; }
a.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile .logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.tile .logo svg { width: 22px; height: 22px; }
.tile .logo .text-badge { font-size: .62rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.tile strong { display: block; font-size: .95rem; line-height: 1.25; }
.tile .state { font-size: .8rem; color: var(--faint); }
.tile .state.on { color: var(--ok); font-weight: 650; }
.tile.soon { opacity: .72; }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; color: var(--accent-text); font-weight: 650; text-decoration: none; }
.more-link svg { width: 16px; height: 16px; }

/* Resellers */
.resell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.lines li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lines li span { font: 700 .8rem/1.9 ui-monospace, Menlo, Consolas, monospace; color: var(--accent-text); }
@media (max-width: 860px) { .resell { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 650; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 64ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Notice */
.notice { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); }
.notice svg { flex: none; width: 24px; height: 24px; color: var(--accent-text); margin-top: 2px; }
.notice h2 { margin: 0 0 6px; font: 700 1.05rem/1.3 var(--font-display); }
.notice p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h3 { color: var(--text); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--faint); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Cookie note */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 420px; display: none; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: .88rem; color: var(--muted); }
.cookie.show { display: flex; }
.cookie p { margin: 0; }
.cookie .actions { display: flex; gap: 8px; margin-top: 12px; }

/* Portal */
.portal-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.portal-hero h1 { font: 800 clamp(2.3rem, 5vw, 3.8rem)/1 var(--font-display); letter-spacing: -.04em; margin: 14px 0 0; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: clamp(64px, 8vw, 104px); }
.card { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.card-pad { padding: clamp(20px, 3vw, 32px); }
.card h2 { margin: 0 0 4px; font: 750 1.35rem/1.2 var(--font-display); letter-spacing: -.01em; }
.card .sub { color: var(--muted); margin: 0 0 22px; font-size: .95rem; }
.field { display: grid; gap: 7px; margin-bottom: 16px; align-content: start; }
.field label, .field .label { font-weight: 650; font-size: .9rem; }
.field .help { color: var(--faint); font-size: .82rem; }
.help svg, .lock-ico { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.field .error { color: var(--bad); font-size: .84rem; font-weight: 550; }
.input { height: 50px; width: 100%; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input.code { font: 700 1.3rem/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .18em; text-transform: uppercase; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.row-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.found { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); margin: -4px 0 16px; }
.found .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.found .ico svg { width: 18px; height: 18px; }
.found strong { display: block; font-size: .92rem; }
.found span { display: block; color: var(--muted); font-size: .84rem; }
.found.bad { border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.found.bad .ico { background: var(--bad-soft); color: var(--bad); }
.found.checking { color: var(--muted); font-size: .88rem; }
.found > .btn { margin-left: auto; flex: none; }
[data-activate-step] { margin: 0 0 16px; }
@media (max-width: 640px) { .found { flex-wrap: wrap; } .found > .btn { width: 100%; } }
[data-identify] .error { color: var(--bad); font-weight: 600; margin: 0 0 14px; font-size: .9rem; }
.note { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: .9rem; }
.btn-block { width: 100%; }
.link-btn { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--accent-text); font-weight: 650; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.privacy { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; color: var(--faint); font-size: .82rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 20px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent-text); }
.help-card { padding: 22px; }
.help-card h3 { margin: 0 0 6px; font: 700 1.05rem/1.3 var(--font-display); }
.help-card p { margin: 0 0 16px; color: var(--muted); font-size: .93rem; }
.help-shot { margin: 0 0 16px; }
.help-shot:last-child { margin-bottom: 0; }
.help-shot .shot { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #151311; }
.help-shot img { width: 100%; aspect-ratio: 931 / 677; }
.help-shot mark { position: absolute; border: 2px solid var(--accent); border-radius: 10px; background: transparent; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .42); }
.help-shot .mark-activate { left: 25.5%; top: 15%; width: 49.5%; height: 26%; }
.help-shot .mark-home { left: 70%; top: 3%; width: 28.5%; height: 6.4%; }
.help-shot figcaption { margin-top: 8px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.device-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 20px clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.device-bar .mock-id { margin-right: auto; }
.tabs { display: flex; gap: 4px; padding: 0 clamp(14px, 2.5vw, 22px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { white-space: nowrap; }
.tabs button { position: relative; background: none; border: 0; padding: 16px 12px; font-weight: 650; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.panel { padding: clamp(20px, 3vw, 28px); }
.list { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.list li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .meta { min-width: 0; flex: 1; }
.list .meta strong { display: flex; align-items: center; gap: 8px; }
.list .meta > span { display: block; color: var(--faint); font-size: .82rem; font-family: ui-monospace, Menlo, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .chip { font: 650 .72rem/1 var(--font-body); padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.list .chip.lock { color: var(--accent-text); background: var(--accent-soft); display: inline-flex; gap: 4px; align-items: center; }
.list .chip svg { width: 12px; height: 12px; }
.history { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.history li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; }
.history .dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--ok); }
.history .dot.warn { background: var(--warn); }
.history .dot.bad { background: var(--bad); }
.history div { flex: 1; min-width: 0; }
.history strong { display: block; font-size: .92rem; }
.history div span { display: block; color: var(--muted); font-size: .84rem; }
.history time { color: var(--faint); font-size: .8rem; white-space: nowrap; }
@media (max-width: 640px) { .history li { flex-wrap: wrap; } .history time { flex-basis: 100%; padding-left: 20px; } }
.list .meta .info { display: block; margin-top: 3px; color: var(--muted); font-size: .82rem; }
/* An open device uses the whole width; its lists become cards. */
.portal-open .portal-grid { grid-template-columns: minmax(0, 1fr); }
.portal-open .portal-aside { display: none; }
@media (min-width: 921px) {
  .portal-open .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; border: 0; }
  .portal-open .list li { border: 1px solid var(--line); border-radius: 14px; align-content: start; }
  .portal-open .list li:last-child { border-bottom: 1px solid var(--line); }
  .portal-open .list li.editing { grid-column: 1 / -1; }
}
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 14px; margin-bottom: 18px; }
.seg { display: inline-grid; grid-auto-flow: column; max-width: 100%; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 16px; }
.seg button { border: 0; background: none; padding: 9px 14px; border-radius: 9px; font-weight: 650; font-size: .9rem; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.formbox { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--bg-2); margin-bottom: 18px; }
.formbox .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: .92rem; margin-bottom: 16px; border: 1px solid; }
.alert-info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); }
.alert-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--text); }
.alert-bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); color: var(--text); }
.periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.period { position: relative; display: block; cursor: pointer; border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px; background: var(--surface); }
.period input { position: absolute; opacity: 0; }
.period:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.period:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.period strong { display: block; font-weight: 700; }
.period .amount { display: block; font: 800 1.5rem/1.2 var(--font-display); margin-top: 6px; }
.period small { color: var(--faint); font-size: .78rem; }
.period small.until { display: block; margin-top: 4px; color: var(--accent-text); font-weight: 650; }
@media (max-width: 560px) { .periods { grid-template-columns: 1fr; } }
.pix { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.pix img { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 10px; border: 1px solid var(--line); }
.pix textarea { width: 100%; height: 96px; resize: none; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); padding: 12px; font: 500 .8rem/1.4 ui-monospace, Menlo, Consolas, monospace; }
.wait { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; margin-top: 14px; }
.wait::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
@media (max-width: 640px) { .pix { grid-template-columns: 1fr; } .pix img { margin: 0 auto; } }
.divider { height: 1px; background: var(--line); margin: 26px 0; }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 70; max-width: 360px; padding: 14px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; transition: .2s; pointer-events: none; }
.toast.show { transform: none; opacity: 1; }
[hidden] { display: none !important; }
@media (max-width: 920px) { .portal-grid { grid-template-columns: 1fr; } .portal-aside { order: 2; } }

/* Phones: tighter rhythm, smaller headings, no empty space between fields. */
@media (max-width: 640px) {
  .header-row { height: 60px; gap: 12px; }
  .icon-btn { width: 38px; height: 38px; border-radius: 11px; }
  .lang-btn { padding: 0 11px; }
  .lang-btn svg { display: none; }
  .brand img { width: 30px; height: 30px; }
  html { scroll-padding-top: 72px; }
  .site-header.open .main-nav { top: 60px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 24px; }
  .lead { margin-top: 12px; font-size: 1rem; }
  .hero { padding: 28px 0 44px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-note { margin-top: 18px; font-size: .85rem; }
  .step { padding: 20px 0 4px; }
  .step b { font-size: 2.6rem; margin-bottom: 10px; }
  .sheet article { padding: 20px; }
  .sheet .ico { margin-bottom: 12px; }
  .price { padding: 22px; }
  .price .amount { margin-top: 16px; font-size: 2.4rem; }
  .faq summary { padding: 16px 0; font-size: 1rem; }
  .notice { padding: 18px; gap: 14px; }
  .site-footer { padding: 40px 0 28px; }

  .portal-hero { padding: 24px 0 18px; }
  .portal-hero h1 { font-size: 2.1rem; }
  .portal-hero .lead { font-size: .95rem; margin-top: 10px; }
  .portal-grid { gap: 16px; padding-bottom: 48px; }
  .card { border-radius: 16px; }
  .card-pad { padding: 18px; }
  .card h2 { font-size: 1.2rem; }
  .card .sub { font-size: .9rem; margin-bottom: 16px; }
  .row-2 { gap: 0; }
  .field { gap: 5px; margin-bottom: 12px; }
  .field .help { font-size: .78rem; }
  .input { height: 46px; border-radius: 11px; }
  .input.code { font-size: 1.15rem; letter-spacing: .14em; }
  .check { margin: 4px 0 16px; font-size: .86rem; }
  .btn { height: 44px; }
  .help-card { padding: 16px; }
  .help-card p { margin-bottom: 12px; font-size: .88rem; }
  .help-shot { margin-bottom: 12px; }
  .device-bar { padding: 14px 16px; gap: 10px; }
  .mock-id { font-size: 1.1rem; }
  .tabs { padding: 0 8px; }
  .tabs button { padding: 13px 10px; }
  .panel { padding: 16px; }
  .list li { padding: 12px; gap: 10px; }
  .list li .meta { flex: 1 1 calc(100% - 52px); }
  .list .meta strong { flex-wrap: wrap; row-gap: 4px; }
  .list li .btn { flex: 1 1 40%; height: 38px; }
  .device-bar { display: grid; grid-template-columns: 1fr auto; align-items: start; }
  .device-bar .mock-id { margin-right: 0; }
  .device-bar [data-close] { grid-column: 2; grid-row: 1; height: 34px; padding: 0 10px; }
  .device-bar .pill { grid-column: 1 / -1; justify-self: start; }
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .seg button { padding: 9px 8px; font-size: .86rem; }
  .formbox { padding: 14px; }
  .periods { gap: 8px; }
  .period { padding: 12px 14px; display: flex; align-items: baseline; gap: 2px 10px; flex-wrap: wrap; }
  .period .amount { margin: 0 0 0 auto; font-size: 1.2rem; }
  .period small { width: 100%; }
  .cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 14px; font-size: .84rem; }
}
