/* SPDX-FileCopyrightText: 2026 yukunlabs */
/* SPDX-License-Identifier: 0BSD */
/* Refs: US-28, AC-28.01, AC-28.02, AC-28.03, AC-28.04; US-30, AC-30.01, AC-30.03. */
:root {
  color-scheme: light dark;
  --paper: #f6f5fa;
  --ink: #1d1c26;
  --muted: #6b6978;
  --line: #e3e1ea;
  --accent: #6b5ac6;
  --accent-ink: #fff;
  --dark: #0f0e15;
  --dark-ink: #f2f0f8;
  --dark-muted: #a6a1b5;
  --dark-line: #2a2834;
  --shadow: 0 30px 80px -30px rgba(38, 30, 70, .45);
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17161d;
    --ink: #eeecf5;
    --muted: #a39db1;
    --line: #2c2a36;
    --accent: #b9a4ed;
    --accent-ink: #1a1424;
    --dark: #0a0a0f;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, video:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -60px; left: 16px; z-index: 20; padding: 12px 16px; background: var(--paper); border-radius: 10px; }
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 52px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.site-header nav { display: flex; gap: clamp(14px, 2.6vw, 30px); font-size: 13px; color: var(--muted); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav a:hover { color: var(--ink); }

/* Shared type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: clamp(46px, 8.4vw, 96px); line-height: 1; letter-spacing: -.035em; font-weight: 600; margin: 14px 0 26px; text-wrap: balance; }
h2 { font-size: clamp(36px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; margin: 12px 0 20px; text-wrap: balance; }
.lede, .intro > p:last-child { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.intro { max-width: 700px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.intro > p:last-child { margin: 0 auto; max-width: 640px; }

/* Buttons */
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 32px 0 clamp(48px, 7vw, 80px); }
.button {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  background: color-mix(in srgb, var(--paper) 60%, #fff 40%);
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Hero */
.hero { padding: clamp(72px, 11vw, 128px) clamp(16px, 4vw, 40px) 0; text-align: center; }
.lede { max-width: 680px; margin: 0 auto; }
.display { max-width: 1180px; margin: 0 auto; }
.display img {
  width: 100%;
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--dark-line);
  border-bottom: 0;
  box-shadow: var(--shadow);
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
.display figcaption { margin-top: -6px; padding: 0 16px 0; font-size: 13px; color: var(--muted); }

/* Feature sections */
.feature { padding: clamp(80px, 11vw, 140px) clamp(16px, 4vw, 40px); }
.feature.dark { background: var(--dark); color: var(--dark-ink); }
.feature.dark .intro > p:last-child, .feature.dark figcaption, .feature.dark .note { color: var(--dark-muted); }
.feature.dark .eyebrow { color: #c7b6f5; }
.single { max-width: 760px; margin: 0 auto; }
.single img, .pair img, .wide img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--dark-line) 60%, transparent); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); max-width: 1100px; margin: 0 auto; }
.pair img { border-color: rgba(255, 255, 255, .09); }
.pair figcaption, .strips figcaption { margin-top: 16px; text-align: center; font-size: 14px; font-weight: 500; color: var(--muted); }
.wide { max-width: 1180px; margin: 0 auto; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); }
.wide img { border-radius: 0; box-shadow: none; border: 0; }

/* Film */
.product-film {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000;
  box-shadow: var(--shadow);
}

/* Messenger tabs */
.channels { text-align: center; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin: 0 auto clamp(32px, 4vw, 48px); }
.segmented [role="tab"] {
  border: 0;
  background: none;
  color: var(--dark-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.segmented [role="tab"]:hover { color: var(--dark-ink); }
.segmented [role="tab"][aria-selected="true"] { background: #fff; color: #1a1424; box-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.segmented [role="tab"]:focus-visible { outline: 3px solid #c7b6f5; outline-offset: 2px; }
.panels { display: grid; }
.panel { grid-area: 1 / 1; text-align: left; transition: opacity .4s ease; }
.panel.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s; }

/* Phones */
.phones { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 36px); }
.phones li { text-align: center; }
.phones img { width: 100%; max-width: 330px; margin: 0 auto; }
.phones span { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 15px; }
.phones b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.feature.dark .phones b { background: #c7b6f5; color: #1a1424; }
.note { margin: 36px auto 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Skins */
.strips { display: grid; gap: clamp(20px, 3vw, 32px); max-width: 720px; margin: 0 auto; }
.strips img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }

/* Availability */
.availability { padding: clamp(80px, 11vw, 140px) clamp(16px, 4vw, 40px) clamp(64px, 8vw, 100px); border-top: 1px solid var(--line); }
.availability .intro { margin-bottom: clamp(36px, 5vw, 56px); }
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); max-width: 1100px; margin: 0 auto; }
.columns h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.columns p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.columns .button { margin-top: 18px; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 28px clamp(16px, 4vw, 40px) 56px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.site-footer div { display: flex; gap: 22px; }
.site-footer div a:hover { color: var(--ink); }

/* Reveal: only when the script runs and motion is welcome. */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  .motion .reveal { opacity: 1; transform: none; transition: none; }
  .button, .panel, .panel.is-hidden, .segmented [role="tab"] { transition: none; }
}

/* Narrow screens */
@media (max-width: 820px) {
  .pair, .columns { grid-template-columns: 1fr; }
  .pair { max-width: 560px; }
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 8px 12px; scrollbar-width: none; max-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phones li { flex: 0 0 min(74%, 320px); scroll-snap-align: center; }
  .display img { border-radius: 14px 14px 0 0; }
  .display figcaption { font-size: 12px; }
  /* The island sits at the strip's center, so a phone sees its middle half at twice the size. */
  .wide { aspect-ratio: 16 / 4; border-radius: 14px; }
  .wide img { width: 200%; max-width: none; margin-left: -50%; }
}
@media (max-width: 480px) {
  .site-header nav { font-size: 12px; }
  .brand span { display: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #4a4856; --line: #b9b5c6; }
  .button { border-width: 2px; }
}
