:root {
  color-scheme: light;
  --night: #111630;
  --ink: #171b35;
  --muted: #525972;
  --paper: #f7f7fc;
  --line: #dddff0;
  --purple: #575fe6;
  --cyan: #87ddd9;
  --light-text: #c8cdea;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

.role-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid #a89bff66; border-radius: 20px; color: #dcd6ff; background: #8d80ff1a; font-size: .76rem; font-weight: 600; }

* { box-sizing: border-box; }

body { margin: 0; }

.device-bar { background: #191e3c; color: #d0d5ee; font-size: .83rem; }
.device-bar-inner { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.device-change { border: 0; color: #e6e3ff; background: transparent; font: inherit; font-weight: 600; padding: 10px 0 10px 12px; min-height: 44px; cursor: pointer; }
.modal-open { overflow: hidden; }
.portal-modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 24px; background: #070b21df; }
.modal-card { width: 100%; max-width: 520px; max-height: calc(100vh - 48px); overflow: auto; padding: 32px; border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: 0 20px 80px #0005; }
.modal-card h2, .confirm-main h1 { font-size: 1.8rem; line-height: 1.15; margin-bottom: 16px; }
.modal-card > p { margin-block: 12px; }
.device-choices { display: grid; gap: 10px; margin: 24px 0; }
.device-choices .button[aria-pressed=true] { border-color: #555de5; background: #e8e6ff; }
.portal-tv.tv-home #main > .content, .portal-tv.tv-home .site-footer { display: none; }
.tv-welcome { color: #f7f7ff; background: radial-gradient(ellipse at 80% 50%, #323365 0, #171c3e 40%, #111630 80%); }
.tv-welcome-inner { min-height: calc(100vh - 120px); padding-block: 40px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: 48px; }
.tv-welcome h1 { margin-top: 14px; max-width: 680px; font-size: clamp(2.2rem, 4.4vw, 3.9rem); font-weight: 700; line-height: 1.08; letter-spacing: -.045em; }
.tv-welcome .eyebrow { color: #b9b4f5; }
.portal-tv.tv-home #nav-products { display: none; }
.tv-welcome .hero-lead { max-width: 600px; margin-block: 20px 28px; font-size: 1.15rem; }
.tv-profile { margin-bottom: 16px; color: #c5c4f7; }
#tv-build-meta { margin-top: 12px; font-size: .9rem; }
.tv-access-note { margin-top: 28px; font-size: .93rem; color: #b6bfdf; }
.tv-product-art { display: flex; flex-direction: column; gap: 20px; align-items: center; color: #f6f4ff; font-size: 1.6rem; font-weight: 600; }
.tv-product-art img { width: min(100%, 250px); border-radius: 24%; box-shadow: 0 20px 70px #05081f88; }
.tv-qr-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 38px; max-width: 920px; }
.tv-qr-instructions .eyebrow { margin-bottom: 14px; }
.tv-qr-instructions ol { padding-left: 22px; line-height: 1.6; margin-block: 22px; }
.tv-qr-instructions li + li { margin-top: 12px; }
.tv-manual { color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; margin-bottom: 24px; }
.tv-qr-image { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 280px; }
.tv-qr-image img { background: white; width: min(100%, 280px); height: auto; aspect-ratio: 1; }
.tv-code { font-size: 1.9rem; font-weight: 700; letter-spacing: .12em; margin-block: 14px; font-variant-numeric: tabular-nums; }
#tv-countdown { color: var(--muted); font-size: .85rem; }
.confirm-main { max-width: 568px; margin: 36px auto; padding: 0 20px; }
.confirm-main .modal-card { max-height: none; }
.confirm-main .eyebrow { margin-bottom: 16px; }
.confirm-main form { display: grid; gap: 12px; margin-block: 24px; }
.confirm-main label { font-size: .9rem; font-weight: 600; }
.confirm-main input { width: 100%; font: inherit; font-size: 1.3rem; text-transform: uppercase; padding: 14px; border: 1px solid #a7acca; border-radius: 10px; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
#confirm-status:not(:empty) { margin-top: 24px; }
.portal-tv :focus { outline: 3px solid #959dff; outline-offset: 4px; }
@media (max-width: 600px) {
  .portal-modal { padding: 16px; }
  .modal-card { padding: 24px; border-radius: 18px; max-height: calc(100vh - 32px); }
  .tv-qr-card { grid-template-columns: 1fr; }
  .tv-welcome-inner { grid-template-columns: 1fr; gap: 24px; }
  .tv-product-art { display: none; }
  .confirm-main { margin-block: 20px; padding-inline: 12px; }
  .confirm-actions { flex-direction: column; }
}

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid #6b73ff; outline-offset: 5px; }

h1, h2, h3, p { margin: 0; }

h1, h2 { text-wrap: balance; }

p { line-height: 1.6; }

.wrap { width: min(100% - 80px, 1200px); margin-inline: auto; }

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 5;
  padding: 12px 18px;
  border-radius: 12px;
  transform: translateY(-150%);
  color: var(--ink);
  background: white;
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 2;
  color: #f5f5ff;
  background: #10142d;
  border-bottom: 1px solid #e7e9ff1c;
}

.header-inner,
.site-nav,
.brand,
.button,
.footer-inner { display: flex; align-items: center; }

.header-inner { min-height: 76px; justify-content: space-between; gap: 18px; }

.brand {
  gap: 8px;
  min-height: 44px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.brand img { width: 40px; height: 40px; }

.site-nav { gap: clamp(16px, 3vw, 36px); font-size: .9rem; font-weight: 600; }

.nav-link { display: inline-flex; align-items: center; min-height: 44px; }

.button {
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button-quiet { color: inherit; border-color: #d9dfff45; background: #ffffff0b; }
.button-quiet:hover { border-color: #c8cdea; background: #ffffff1a; }

.button-primary {
  min-height: 54px;
  padding: 13px 20px;
  color: #141934;
  background: #e0dcff;
  box-shadow: 0 8px 30px #8d80ff35;
}

.button-primary:hover { background: white; box-shadow: 0 10px 34px #9a8cff50; }

.button-light { color: #302fa1; background: #eeedff; border-color: #e1dfff; }
.button-light:hover { border-color: #8982f2; background: #e7e3ff; }

.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #f8f8ff;
  background:
    radial-gradient(ellipse at 75% 35%, #303780 0%, transparent 48%),
    linear-gradient(118deg, #111630 23%, #181c47 69%, #101631 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  min-height: 432px;
  padding-block: 26px 34px;
  gap: clamp(8px, 3vw, 48px);
}

.hero-copy,
.detail-copy { position: relative; z-index: 1; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #3e418e;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.15rem, 6.3vw, 6.1rem);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.075em;
  text-wrap: initial;
}

.hero h1 em {
  /* Negative letter spacing can clip the last glyph at the gradient edge. */
  padding-inline-end: .1em;
  color: #bdb8ff;
  font-style: normal;
  background: linear-gradient(104deg, #d2c6ff 4%, #a7afff 64%, #a9e6e8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 450px;
  margin-top: 22px;
  color: var(--light-text);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.hero .hero-lead { max-width: 500px; text-wrap: pretty; }

.hero .button,
.detail-actions { margin-top: 27px; }

.hero-art {
  position: relative;
  display: grid;
  isolation: isolate;
  place-items: center;
  width: min(100%, 444px);
  aspect-ratio: 1.2;
  justify-self: center;
}

.hero-art::before {
  position: absolute;
  inset: -14%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 63% 40%, #545bf270, transparent 46%),
    radial-gradient(ellipse at 36% 71%, #8160f655, transparent 46%);
  content: "";
}

.hero-grid {
  position: absolute;
  inset: -4%;
  z-index: -1;
  background-image: linear-gradient(#8f97ff23 1px, transparent 1px), linear-gradient(90deg, #8f97ff23 1px, transparent 1px);
  background-size: 29px 29px;
  mask-image: radial-gradient(ellipse, #000 8%, transparent 69%);
}

.orbit {
  position: absolute;
  inset: 10% 5%;
  border: 1px solid #b9baff51;
  border-radius: 50%;
  transform: rotate(-22deg);
}

.orbit-outer { inset: 16% -1%; box-shadow: 0 0 26px #7669ff24; }
.orbit-middle { inset: 22% 6%; border-color: #b2b6ff32; }
.orbit-inner { inset: 5% 17%; transform: rotate(30deg); border-color: #b2b6ff39; }

.orb {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 63%;
  aspect-ratio: 1;
  border: 1px solid #ddd9ff65;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 67% 8%, #a2a3ff5c, transparent 44%),
    radial-gradient(ellipse at 10% 80%, #7654e888, transparent 55%),
    linear-gradient(148deg, #323b8c, #121a4a 68%);
  box-shadow: inset 0 0 38px #9e97ff40, 0 22px 80px #090e35a0, 0 0 68px #7068ff62;
}

.orb img {
  width: 88%;
  height: auto;
  filter: drop-shadow(0 8px 24px #9690ff55);
}

.spark {
  position: absolute;
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c4c5ff;
  box-shadow: 0 0 16px 3px #9b9dff8f;
}

.spark-one { top: 20%; left: 78%; }
.spark-two { bottom: 22%; left: 11%; background: var(--cyan); box-shadow: 0 0 14px 3px #87ddd970; }
.spark-three { bottom: 10%; right: 21%; width: 4px; }

.catalog,
.detail-body { padding-block: 42px 56px; }

.catalog { scroll-margin-top: 18px; }

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 330px);
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2,
.detail-body > .wrap > h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 4.1vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: -.062em;
}

.section-head > p { color: var(--muted); }

.product-grid,
.feature-grid { display: grid; gap: 16px; }

.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.product-card { display: flex; min-width: 0; }

.product-link {
  display: flex;
  width: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 7px 18px #24245008;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-link:hover {
    transform: translateY(-4px);
    border-color: #aaa4ef;
    box-shadow: 0 16px 30px #30276c18;
  }
}

.product-art {
  position: relative;
  display: grid;
  isolation: isolate;
  place-items: center;
  overflow: hidden;
  min-height: 132px;
  color: var(--art-line);
  background:
    radial-gradient(ellipse at 64% 19%, var(--art-glow), transparent 59%),
    linear-gradient(145deg, var(--art-base), var(--art-deep));
}

.product-link .product-art { border-radius: 19px 19px 0 0; }

.theme-health {
  --art-base: #1d3945;
  --art-deep: #112733;
  --art-glow: #2e5860;
  --art-line: #77bfbb;
  --emblem-scale: 1.42;
  --emblem-y: 2%;
}
.theme-drive {
  --art-base: #26385b;
  --art-deep: #162344;
  --art-glow: #374c78;
  --art-line: #849cf0;
  --emblem-scale: 1.28;
  --emblem-y: 3%;
}
.theme-kino {
  --art-base: #34274f;
  --art-deep: #231b3a;
  --art-glow: #4c3865;
  --art-line: #ad8edf;
  --emblem-scale: 1.34;
  --emblem-y: 1%;
}
.theme-joi {
  --art-base: #1e3654;
  --art-deep: #142740;
  --art-glow: #325577;
  --art-line: #87b3de;
  --emblem-scale: 1.32;
  --emblem-x: 2%;
}

.art-motif {
  position: absolute;
  width: 100%;
  height: 100%;
  color: inherit;
  stroke: currentColor;
  stroke-width: 1.2;
  opacity: .38;
  transition: transform .25s ease;
}

.art-faint { opacity: .35; }
.product-link:hover .art-motif { transform: scale(1.06); }

.product-emblem {
  position: relative;
  display: grid;
  width: 88px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ffffffac;
  border-radius: 25px;
  background: #111630;
  box-shadow: 0 14px 27px #201c5632;
}

.product-art .product-emblem {
  border-color: #d4e1ff42;
  box-shadow: 0 12px 24px #080c2480;
}

.product-emblem img {
  width: 100%;
  height: auto;
  transform: translate(var(--emblem-x, 0), var(--emblem-y, 0)) scale(var(--emblem-scale, 1));
}

.card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 16px;
}

.card-copy .eyebrow { font-size: .65rem; letter-spacing: .12em; }

.card-copy h3 {
  margin: 6px 0 5px;
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.card-copy > p:not(.eyebrow) { margin-bottom: 12px; color: var(--muted); font-size: .9rem; }

.card-action {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin-top: auto;
  border-top: 1px solid #ececf6;
  padding-top: 11px;
  color: #3538a4;
  font-size: .88rem;
  font-weight: 700;
}

.account-note,
.start-panel {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  background: white;
}

.account-emblem {
  --emblem-scale: 1.48;
  --emblem-y: -2%;
  flex: none;
  width: 48px;
  border-radius: 14px;
}
.account-note h2, .start-panel h2 { font-size: 1.12rem; letter-spacing: -.02em; }
.account-note p, .start-panel p { color: var(--muted); font-size: .9rem; }
.account-note .button, .start-panel .button { flex: none; margin-left: auto; font-size: .9rem; }

.account-actions, .catalog-fallback { display: flex; flex-wrap: wrap; gap: 8px; }
.account-actions { flex: none; margin-left: auto; }
button.button { font-family: inherit; font-size: inherit; cursor: pointer; }
button.button:disabled { cursor: wait; }
.account-note > div:not(.account-actions) { min-width: 0; overflow-wrap: anywhere; }
#account-welcome { margin-top: 4px; color: #302fa1; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }
.footer-inner { min-height: 68px; }

.detail-hero > .wrap { padding-block: 42px 52px; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 72px);
}

.detail-layout .product-art {
  min-height: 278px;
  border: 1px solid #fff6;
  border-radius: 28px;
  box-shadow: 0 20px 56px #090e353f;
}

.detail-layout .product-emblem { width: 35%; max-width: 180px; border-radius: 25%; }

.detail-art-label {
  margin-bottom: 14px;
  color: #e5e8ff;
  font-size: clamp(1.125rem, 2.1vw, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-align: center;
}

.detail-copy h1 {
  font-size: clamp(2.55rem, 5.4vw, 5.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.065em;
  text-wrap: initial;
}

.detail-copy .hero-lead { margin-top: 16px; }

.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.detail-body > .wrap > h2 { margin-bottom: 23px; }

.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature {
  padding: 19px 20px 23px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.feature > span { color: #4749b7; font-size: .75rem; font-weight: 800; }
.feature h3 { margin: 9px 0 6px; font-size: 1.13rem; }
.feature p { color: var(--muted); font-size: .93rem; }

.device-guide { margin-top: 32px; scroll-margin-top: 24px; }
.device-guide h2 { margin-bottom: 14px; font-size: clamp(1.5rem, 3vw, 2rem); }
.device-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.device-guide-grid .feature { display: flex; flex-direction: column; align-items: flex-start; }
.device-guide-grid h3 { margin-top: 0; }
.device-guide-grid p { margin-bottom: 14px; }
.device-guide-grid .button { margin-top: auto; }

.start-panel { align-items: center; scroll-margin-top: 24px; }
.start-panel p { max-width: 740px; margin-top: 4px; }

.fallback { padding-block: 65px; }
.fallback p { margin: 10px 0 20px; }

@media (max-width: 920px) {
  .wrap { width: min(100% - 48px, 1200px); }
  .hero-inner { min-height: 415px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; flex-wrap: wrap; gap: 2px 8px; padding-block: 8px; }
  .brand { gap: 4px; font-size: .97rem; letter-spacing: .09em; }
  .brand img { width: 34px; height: 34px; }
  .site-nav { flex-wrap: wrap; gap: clamp(6px, 2vw, 10px); font-size: .82rem; }
  .site-nav .button { min-height: 44px; padding: 7px 10px; }
  .hero-inner { grid-template-columns: 1fr; gap: 7px; min-height: 0; padding-block: 35px 18px; }
  .hero h1 { font-size: clamp(2.7rem, 11vw, 4.75rem); }
  .hero-lead { margin-top: 15px; }
  .hero .button, .detail-actions { margin-top: 20px; }
  .hero-art { width: min(84%, 300px); }
  .catalog, .detail-body { padding-block: 34px; }
  .section-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }
  .section-head > p { font-size: .94rem; }
  .product-grid, .feature-grid { gap: 12px; }
  .product-art { min-height: 101px; }
  .product-art .product-emblem { width: 65px; border-radius: 19px; }
  .card-copy { padding: 12px 12px 10px; }
  .card-copy > p:not(.eyebrow) { font-size: .82rem; }
  .card-copy .eyebrow { font-size: .58rem; letter-spacing: .09em; }
  .account-note, .start-panel { flex-wrap: wrap; padding: 14px; }
  .account-note > div { flex: 1 0 calc(100% - 68px); }
  .account-note > .account-actions { flex-basis: 100%; margin-left: 0; }
  .account-note .button, .start-panel .button { margin-left: 0; }
  .footer-inner { flex-wrap: wrap; padding-block: 12px; }
  .detail-hero > .wrap { padding-block: 28px 26px; }
  .detail-layout, .feature-grid { grid-template-columns: 1fr; }
  .detail-copy h1 { font-size: clamp(2.2rem, 10vw, 3.7rem); }
  .detail-layout .product-art { min-height: 155px; }
  .detail-layout .product-emblem { width: 26%; }
}

@media (max-width: 355px) {
  .product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.portal-status { margin-block: 16px; color: #ae304b; }
