/* YURAGI — shared theme tokens and components
   Local design tokens only. No remote fonts, images or scripts. */

:root {
  --ink-950: #08070c;
  --ink-900: #0b0910;
  --ink-850: #100d17;
  --ink-800: #14101d;
  --ink-750: #191324;
  --ink-700: #1e1829;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f4eff5;
  --soft: #bdb5c7;
  --mute: #968ea2;
  --bloom: #e993ac;
  --bloom-soft: #f6c6d3;
  --bloom-deep: #b2617c;
  --aura: #8e7be0;
  --mint: #7fd8c4;
  --warn: #e8b980;
  --radius-xs: 8px;
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shell: 1180px;
  --pad: 20px;
  --font-display: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Songti SC", "Noto Serif JP", "Georgia", serif;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(142, 123, 224, 0.16), transparent 62%),
    radial-gradient(680px 460px at 8% 4%, rgba(233, 147, 172, 0.12), transparent 66%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input {
  font: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

::selection {
  background: rgba(233, 147, 172, 0.3);
}

/* ---------- layout ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}

.section {
  padding: 68px 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--line);
}

[id] {
  scroll-margin-top: 88px;
}

@media (min-width: 900px) {
  .section {
    padding: 104px 0;
  }
  :root {
    --pad: 32px;
  }
}

@media (min-width: 1200px) {
  :root {
    --pad: 40px;
  }
}

/* ---------- type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.32;
  letter-spacing: 0.005em;
}

@media (min-width: 900px) {
  .display {
    font-size: 54px;
    line-height: 1.24;
  }
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.42;
}

@media (min-width: 900px) {
  .h2 {
    font-size: 38px;
    line-height: 1.34;
  }
}

.lede {
  color: var(--soft);
  font-size: 15px;
  line-height: 1.85;
  max-width: 60ch;
}

@media (min-width: 900px) {
  .lede {
    font-size: 16px;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--bloom-deep);
  flex: none;
}

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: end;
    gap: 56px;
    margin-bottom: 56px;
  }
  .section-head .lede {
    justify-self: end;
  }
}

.note {
  color: var(--mute);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease), transform 0.12s var(--ease);
}

a.btn {
  text-decoration: none;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn-primary {
  background: var(--bloom);
  color: #1a0c12;
}

.btn-primary:hover {
  background: var(--bloom-soft);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(233, 147, 172, 0.55);
  background: rgba(233, 147, 172, 0.07);
}

.btn-quiet {
  padding: 0 14px;
  min-height: 40px;
  color: var(--soft);
  border-radius: 999px;
}

.btn-quiet:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 7, 12, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
}

@media (min-width: 900px) {
  .header-inner {
    min-height: 76px;
    gap: 30px;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 0;
  flex: none;
}

.brand-mark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.34em;
  line-height: 1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--mute);
  text-transform: uppercase;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.site-nav button {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--soft);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.site-nav button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-actions .btn-sm {
  display: none;
}

@media (min-width: 720px) {
  .header-actions .btn-sm {
    display: inline-flex;
  }
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.lang-switch button {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mute);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.lang-switch button[aria-pressed="true"] {
  background: rgba(233, 147, 172, 0.16);
  color: var(--bloom-soft);
}

.lang-switch button:hover {
  color: var(--text);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--soft);
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px 0 18px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 4px;
  font-size: 15px;
  color: var(--soft);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .mobile-nav.is-open {
    display: none;
  }
}

/* ---------- landing hero ---------- */

.hero {
  position: relative;
  padding: 40px 0 56px;
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    padding: 76px 0 92px;
  }
}

.hero-grid {
  display: grid;
  gap: 34px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: 48px;
  }
}

.hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 46px;
  }
}

@media (min-width: 900px) {
  .hero-title {
    font-size: 58px;
    line-height: 1.22;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.hero-actions .btn {
  flex: 1 1 auto;
  min-width: 168px;
}

.visual-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

@media (min-width: 640px) {
  .visual-stage {
    min-height: 460px;
  }
}

@media (min-width: 900px) {
  .visual-stage {
    min-height: 520px;
  }
}

.stage-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(94%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(circle at 50% 42%, rgba(233, 147, 172, 0.16), transparent 62%);
}

.stage-ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- product photo (real image) ---------- */

.product-photo {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  display: grid;
  place-items: center;
  width: fit-content;
  max-width: 100%;
}

.product-photo img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 26px 44px rgba(4, 8, 16, 0.55));
}

@media (min-width: 640px) {
  .product-photo img {
    max-width: 460px;
  }
}

@media (min-width: 900px) {
  .product-photo img {
    max-width: 540px;
  }
}

.product-photo--plate {
  width: 100%;
}

.product-photo--plate img {
  width: 100%;
  max-width: 420px;
}

/* when the real photo is present, hide the fallback illustration */
.visual-stage.has-photo .device-svg--fallback,
.product-plate.has-photo .device-svg--fallback {
  display: none;
}

/* if the photo fails to load, show the fallback illustration instead */
.product-photo.is-missing {
  display: none;
}

.device-svg {
  position: relative;
  width: auto;
  height: 322px;
  max-width: 100%;
  filter: drop-shadow(0 34px 58px rgba(38, 84, 120, 0.42));
}

@media (min-width: 640px) {
  .device-svg {
    height: 424px;
  }
}

.stage-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(19, 16, 25, 0.9);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--soft);
  white-space: nowrap;
}

.stage-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(127, 216, 196, 0.16);
}

.stage-tag--a {
  top: 12%;
  right: 2%;
}

.stage-tag--b {
  bottom: 14%;
  left: 0;
}

/* ---------- hero app panel ---------- */

.hero-app-panel {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 8px;
  padding: 15px 16px 14px;
  border-radius: var(--radius-m);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(233, 147, 172, 0.17), transparent 58%),
    radial-gradient(120% 110% at 100% 100%, rgba(142, 123, 224, 0.16), transparent 62%),
    linear-gradient(165deg, rgba(26, 21, 34, 0.96), rgba(11, 9, 16, 0.97));
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (min-width: 900px) {
  .hero-app-panel {
    position: absolute;
    left: -10px;
    bottom: 6px;
    width: 244px;
    max-width: none;
    margin-top: 0;
  }
}

.hap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hap-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--soft);
}

.hap-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(127, 216, 196, 0.16);
}

.hap-id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--mute);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
}

.hap-body {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.hap-dial {
  position: relative;
  width: 66px;
  height: 66px;
}

.hap-dial svg {
  width: 100%;
  height: 100%;
}

.hap-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: var(--text);
}

.hap-unit {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--mute);
  margin-left: 1px;
}

.hap-info {
  display: grid;
  gap: 7px;
}

.hap-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.hap-bars {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3px;
  align-items: end;
  height: 26px;
}

.hap-bars button {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hap-bars button span {
  display: block;
  width: 100%;
  height: 42%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.13);
  transition: height 0.28s var(--ease), background 0.28s var(--ease);
}

.hap-bars button:nth-child(2n) span {
  height: 58%;
}

.hap-bars button:nth-child(3n) span {
  height: 74%;
}

.hap-bars button:nth-child(5n) span {
  height: 92%;
}

.hap-bars button[aria-pressed="true"] span {
  background: linear-gradient(180deg, var(--bloom-soft), var(--bloom) 55%, var(--aura));
  box-shadow: 0 0 10px rgba(233, 147, 172, 0.32);
}

.hap-bars button:focus-visible {
  outline: 1px solid var(--bloom);
  outline-offset: 2px;
  border-radius: 3px;
}

.hap-mode {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--soft);
}

.hap-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.hap-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--mute);
}

.hap-cta {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(233, 147, 172, 0.42);
  background: rgba(233, 147, 172, 0.12);
  color: var(--bloom-soft);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease);
}

.hap-cta:hover {
  background: rgba(233, 147, 172, 0.2);
  border-color: rgba(233, 147, 172, 0.62);
}

.hap-cta:focus-visible {
  outline: 1px solid var(--bloom);
  outline-offset: 3px;
}

@media (max-width: 639px) {
  .stage-tag {
    display: none;
  }
  .visual-stage {
    min-height: 380px;
  }
}

/* ---------- specs ---------- */

.spec-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}

@media (min-width: 760px) {
  .spec-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.spec-item {
  padding: 18px 18px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-item:nth-child(2n) {
  border-right: 0;
}

.spec-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

@media (min-width: 760px) {
  .spec-item {
    border-bottom: 0;
  }
  .spec-item:nth-child(2n) {
    border-right: 1px solid var(--line);
  }
  .spec-item:last-child {
    border-right: 0;
  }
}

.spec-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.spec-label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- device section ---------- */

.split {
  display: grid;
  gap: 34px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 64px;
    align-items: start;
  }
}

.product-plate {
  position: relative;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(142, 123, 224, 0.16), transparent 58%),
    linear-gradient(160deg, #191324 0%, #0d0a14 100%);
  padding: 34px 20px;
  display: grid;
  place-items: center;
  min-height: 340px;
  overflow: hidden;
}

@media (min-width: 900px) {
  .product-plate {
    min-height: 480px;
    position: sticky;
    top: 108px;
  }
}

.product-plate svg {
  width: auto;
  height: 280px;
  max-width: 90%;
  filter: drop-shadow(0 26px 44px rgba(38, 84, 120, 0.4));
}

@media (min-width: 900px) {
  .product-plate svg {
    height: 330px;
  }
}

.plate-caption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
}

.feature-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.feature {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--bloom);
  padding-top: 4px;
}

.feature h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.feature p {
  margin-top: 6px;
  color: var(--mute);
  font-size: 13.5px;
  line-height: 1.75;
}

/* ---------- app preview ---------- */

.app-split {
  display: grid;
  gap: 30px;
}

@media (min-width: 900px) {
  .app-split {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 56px;
    align-items: center;
  }
}

.app-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.app-points {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.app-points li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  font-size: 13.5px;
  color: var(--soft);
  line-height: 1.6;
}

.app-points svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--bloom);
}

.app-mock {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  border-radius: 26px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #16111f 0%, #0c0912 100%);
  padding: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 12px;
}

.mock-bar-title {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.mock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--mint);
  letter-spacing: 0.04em;
}

.mock-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.mock-screen {
  border-radius: 18px;
  background: #0a0810;
  border: 1px solid var(--line);
  padding: 16px 14px;
}

.mock-dial-row {
  display: grid;
  place-items: center;
  padding: 10px 0 14px;
}

.mock-readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 2px 2px;
}

.mock-readout-label {
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.06em;
}

.mock-readout-value {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--bloom-soft);
}

.mock-wave {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  color: var(--bloom);
  opacity: 0.85;
}

.mock-slider {
  margin-top: 10px;
}

/* ---------- dial ---------- */

.dial-wrap {
  position: relative;
  width: 216px;
  height: 216px;
  max-width: 100%;
  display: grid;
  place-items: center;
}

.dial-wrap svg.dial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dial-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 6;
}

.dial-progress {
  fill: none;
  stroke: var(--bloom);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 603;
  stroke-dashoffset: 360;
  transition: stroke-dashoffset 0.2s var(--ease), stroke 0.2s var(--ease);
}

.dial-core {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #201729, #0d0a13 72%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.dial-value {
  font-family: var(--font-mono);
  font-size: 34px;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.01em;
}

.dial-unit {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
}

.dial-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--soft);
}

.dial-wrap.is-stopped .dial-progress {
  stroke: rgba(255, 255, 255, 0.18);
}

.dial-wrap.is-stopped .dial-value {
  color: var(--mute);
}

/* ---------- range ---------- */

.range-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.range-label {
  font-size: 12.5px;
  color: var(--soft);
  letter-spacing: 0.04em;
}

.range-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--bloom-soft);
}

input[type="range"].range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 30px;
  background: transparent;
  margin: 0;
  cursor: pointer;
}

input[type="range"].range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--bloom) 0%,
    var(--bloom) var(--fill, 50%),
    rgba(255, 255, 255, 0.1) var(--fill, 50%),
    rgba(255, 255, 255, 0.1) 100%
  );
}

input[type="range"].range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fdf6f8;
  border: 3px solid var(--bloom);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s var(--ease);
}

input[type="range"].range:active::-webkit-slider-thumb {
  transform: scale(1.08);
}

input[type="range"].range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

input[type="range"].range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--bloom);
}

input[type="range"].range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fdf6f8;
  border: 3px solid var(--bloom);
}

input[type="range"].range:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* ---------- chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--soft);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease),
    background-color 0.16s var(--ease);
}

.chip:hover {
  border-color: var(--line-2);
  color: var(--text);
}

.chip[aria-pressed="true"] {
  border-color: rgba(233, 147, 172, 0.6);
  background: rgba(233, 147, 172, 0.14);
  color: var(--bloom-soft);
}

.chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- wave ---------- */

.wave-box {
  overflow: hidden;
  border-radius: var(--radius-s);
  background: rgba(233, 147, 172, 0.05);
  border: 1px solid rgba(233, 147, 172, 0.12);
}

.wave-box svg {
  display: block;
  width: 100%;
  height: 54px;
}

.wave-flow {
  animation: waveShift var(--wave-duration, 4s) linear infinite;
}

@keyframes waveShift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-160px);
  }
}

/* ---------- pattern grid ---------- */

.pattern-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .pattern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .pattern-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.pattern-card {
  display: grid;
  gap: 12px;
  padding: 18px 16px 16px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  align-content: start;
  text-align: left;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.pattern-card:hover {
  border-color: rgba(233, 147, 172, 0.34);
}

.pattern-card.is-active {
  border-color: rgba(233, 147, 172, 0.5);
  background: linear-gradient(170deg, rgba(233, 147, 172, 0.12), rgba(233, 147, 172, 0.03));
}

.pattern-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pattern-name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
}

.pattern-code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--mute);
}

.pattern-card p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mute);
}

.pattern-wave {
  color: var(--bloom);
  width: 100%;
  height: 30px;
}

/* ---------- privacy ---------- */

.privacy-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .privacy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
  }
}

.privacy-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .privacy-item {
    padding: 0 32px;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }
  .privacy-item:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .privacy-item:last-child {
    padding-right: 0;
  }
}

.privacy-item .icon {
  width: 22px;
  height: 22px;
  color: var(--bloom);
  margin-bottom: 12px;
}

.privacy-item h3 {
  font-size: 15.5px;
  font-weight: 600;
}

.privacy-item p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mute);
}

/* ---------- cta band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid rgba(233, 147, 172, 0.2);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(233, 147, 172, 0.18), transparent 58%),
    radial-gradient(100% 130% at 92% 100%, rgba(142, 123, 224, 0.2), transparent 60%),
    linear-gradient(160deg, #1a1322, #0c0913);
  padding: 36px 24px;
}

@media (min-width: 900px) {
  .cta-band {
    padding: 56px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }
}

.cta-band .display {
  font-size: 28px;
}

@media (min-width: 900px) {
  .cta-band .display {
    font-size: 42px;
  }
}

.cta-band-copy {
  display: grid;
  gap: 10px;
}

.cta-band-side {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  justify-items: start;
}

@media (min-width: 900px) {
  .cta-band-side {
    margin-top: 0;
    justify-items: end;
    flex: none;
  }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  margin-top: 8px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-links button {
  font-size: 12.5px;
  color: var(--mute);
  padding: 6px 0;
}

.footer-links button:hover {
  color: var(--text);
}

.adult-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(232, 185, 128, 0.28);
  background: rgba(232, 185, 128, 0.07);
  color: var(--warn);
  font-size: 11.5px;
  line-height: 1.5;
}

.adult-badge svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 11.5px;
  color: var(--mute);
  letter-spacing: 0.04em;
}

/* =====================================================================
   DOWNLOAD PAGE
   ===================================================================== */

.dl-hero {
  padding: 40px 0 48px;
}

@media (min-width: 900px) {
  .dl-hero {
    padding: 76px 0 84px;
  }
}

.dl-grid {
  display: grid;
  gap: 34px;
}

@media (min-width: 900px) {
  .dl-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
    align-items: center;
  }
}

.dl-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.platform-buttons {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 380px;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease),
    transform 0.12s var(--ease);
}

.platform-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(233, 147, 172, 0.45);
}

.platform-btn:active {
  transform: translateY(1px);
}

.platform-btn svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--bloom-soft);
}

.platform-btn .plat-text {
  display: grid;
  gap: 1px;
}

.platform-btn .plat-top {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--mute);
  text-transform: uppercase;
}

.platform-btn .plat-main {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.platform-btn .plat-arrow {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--mute);
  flex: none;
}

.dl-aside {
  display: grid;
  gap: 14px;
}

@media (max-width: 899px) {
  .dl-aside {
    max-width: 480px;
  }
}

.qr-card {
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #171222, #0c0913);
  padding: 20px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.qr-plate {
  background: #f4eff5;
  border-radius: 12px;
  padding: 10px;
}

.qr-plate svg {
  width: 132px;
  height: 132px;
  display: block;
  shape-rendering: crispEdges;
}

.qr-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.qr-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--mute);
  max-width: 26ch;
}

.meta-list {
  border-top: 1px solid var(--line);
  display: grid;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.meta-row dt {
  color: var(--mute);
}

.meta-row dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}

/* steps */

.steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.step {
  border-top: 2px solid rgba(233, 147, 172, 0.35);
  padding-top: 16px;
  display: grid;
  gap: 8px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--bloom);
}

.step h3 {
  font-size: 15.5px;
  font-weight: 600;
}

.step p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--mute);
}

/* requirements */

.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.req-table caption {
  text-align: left;
  font-size: 12px;
  color: var(--mute);
  padding-bottom: 10px;
}

.req-table th,
.req-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.req-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  border-bottom-color: var(--line-2);
}

.req-table tbody th {
  color: var(--soft);
  font-weight: 500;
  width: 34%;
}

.req-table td {
  color: var(--text);
}

@media (max-width: 560px) {
  .req-table th,
  .req-table td {
    padding: 11px 8px;
  }
  .req-table tbody th {
    width: 40%;
  }
}

/* faq */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 2px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}

.faq-q .sign {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  margin-top: 2px;
  transition: transform 0.18s var(--ease), border-color 0.16s var(--ease);
}

.faq-q[aria-expanded="true"] .sign {
  transform: rotate(45deg);
  border-color: rgba(233, 147, 172, 0.6);
}

.faq-q .sign svg {
  width: 10px;
  height: 10px;
  color: var(--bloom);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s var(--ease);
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  padding: 0 2px 20px;
  max-width: 68ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mute);
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

/* =====================================================================
   CONTROL PAGE (app)
   ===================================================================== */

.rc-page {
  min-height: 100vh;
  background: #08070c;
}

.rc-layout {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 700px) and (max-width: 1079px) {
  .rc-layout {
    padding: 32px 24px 56px;
  }
}

@media (min-width: 1080px) {
  .rc-layout {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding: 40px 32px 72px;
  }
}

.rc-app {
  position: relative;
  background: linear-gradient(180deg, #100c18 0%, #08070c 100%);
  min-height: 100vh;
  padding: 0 20px 34px;
}

@media (min-width: 1080px) {
  .rc-app {
    min-height: auto;
    border-radius: 30px;
    border: 1px solid var(--line);
    padding: 0 22px 26px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  }
}

@media (min-width: 700px) {
  .rc-app {
    overflow: hidden;
  }
}

.rc-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  background: linear-gradient(180deg, rgba(16, 12, 24, 0.96), rgba(16, 12, 24, 0.86));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  margin: 0 -20px;
  padding: 0 14px;
}

@media (min-width: 1080px) {
  .rc-bar {
    margin: 0 -22px;
    height: 64px;
    border-radius: 30px 30px 0 0;
  }
}

@media (min-width: 700px) and (max-width: 1079px) {
  .rc-app {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 22px 28px;
    min-height: auto;
    border-radius: 30px;
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  }
  .rc-bar {
    margin: 0 -22px;
    height: 64px;
    border-radius: 30px 30px 0 0;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--soft);
  flex: none;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.rc-bar-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.rc-bar-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--mint);
  letter-spacing: 0.03em;
}

.rc-bar-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(127, 216, 196, 0.14);
}

.rc-body {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.device-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(233, 147, 172, 0.09), rgba(255, 255, 255, 0.02));
}

.device-thumb {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 40% 30%, #f3ccd7, #b06a84 62%, #5b3648);
  flex: none;
  display: grid;
  place-items: center;
  color: #2a1119;
}

.device-thumb svg {
  width: 18px;
  height: 18px;
}

.device-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.device-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.device-sub {
  font-size: 11px;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 6px;
}

.device-battery {
  margin-left: auto;
  display: grid;
  justify-items: end;
  gap: 2px;
  flex: none;
}

.battery-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
}

.battery-bar {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.battery-bar span {
  display: block;
  height: 100%;
  width: 78%;
  background: var(--mint);
  border-radius: 999px;
}

.rc-section {
  display: grid;
  gap: 10px;
}

.rc-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mute);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.rc-dial-block {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 8px 0 2px;
}

.rc-wave {
  width: 100%;
  height: 40px;
  color: var(--bloom);
  opacity: 0.7;
}

.rc-controls {
  display: grid;
  gap: 16px;
}

.rc-slider-group {
  display: grid;
  gap: 6px;
}

.rc-invite {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.rc-invite-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rc-invite-head svg {
  width: 17px;
  height: 17px;
  color: var(--bloom);
  flex: none;
}

.rc-invite-head h2 {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rc-invite p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--mute);
}

.rc-invite .btn {
  min-height: 44px;
  font-size: 13px;
}

.rc-stop {
  display: grid;
  gap: 8px;
}

.stop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(233, 147, 172, 0.42);
  background: rgba(233, 147, 172, 0.1);
  color: var(--bloom-soft);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease);
}

.stop-btn svg {
  width: 18px;
  height: 18px;
}

.stop-btn:hover {
  background: rgba(233, 147, 172, 0.18);
}

.stop-btn.is-stopped {
  border-color: rgba(127, 216, 196, 0.45);
  background: rgba(127, 216, 196, 0.1);
  color: var(--mint);
}

.stop-btn.is-stopped:hover {
  background: rgba(127, 216, 196, 0.16);
}

.rc-hint {
  font-size: 11px;
  color: var(--mute);
  text-align: center;
  line-height: 1.6;
}

/* session panel */

.session-panel {
  display: none;
}

@media (min-width: 1080px) {
  .session-panel {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 40px;
  }
}

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.022);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

.session-time {
  font-family: var(--font-mono);
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--text);
}

.session-time small {
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.1em;
  margin-left: 6px;
}

.session-rows {
  display: grid;
}

.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.session-row span:first-child {
  color: var(--mute);
}

.session-row span:last-child {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.pattern-log {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.log-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--soft);
}

.log-chip.is-latest {
  border-color: rgba(233, 147, 172, 0.5);
  color: var(--bloom-soft);
}

.session-note {
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--mute);
}

.wave-visual {
  width: 100%;
  height: 90px;
  border-radius: 12px;
  background: rgba(233, 147, 172, 0.05);
  border: 1px solid rgba(233, 147, 172, 0.12);
  overflow: hidden;
}

.wave-visual svg {
  width: 100%;
  height: 100%;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  z-index: 60;
  max-width: min(92vw, 520px);
  padding: 11px 18px;
  border-radius: 18px;
  background: rgba(28, 22, 38, 0.96);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.device-id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--mute);
}

/* =====================================================================
   CONNECT PAGE (ID entry)
   ===================================================================== */

.cn-head {
  display: grid;
  gap: 10px;
  padding: 8px 2px 2px;
}

.cn-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
}

.cn-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.36;
  letter-spacing: 0.01em;
}

@media (min-width: 1080px) {
  .cn-heading {
    font-size: 30px;
  }
}

.cn-lede {
  font-size: 13px;
  line-height: 1.8;
  color: var(--soft);
}

.cn-form {
  display: grid;
  gap: 10px;
}

.cn-field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.cn-input {
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 24px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.cn-input::placeholder {
  color: #5f5869;
  letter-spacing: 0.28em;
}

.cn-input:focus {
  outline: none;
  border-color: rgba(233, 147, 172, 0.7);
  box-shadow: 0 0 0 3px rgba(233, 147, 172, 0.16);
  background: rgba(233, 147, 172, 0.06);
}

.cn-input.is-error {
  border-color: rgba(232, 120, 120, 0.72);
}

.cn-helper {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--mute);
}

.cn-error {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(232, 120, 120, 0.4);
  background: rgba(232, 120, 120, 0.09);
  color: #f0b6b6;
  font-size: 12px;
  line-height: 1.6;
}

.cn-error.is-visible {
  display: block;
}

.cn-status {
  display: none;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mint);
}

.cn-status.is-visible {
  display: block;
}

.cn-form .btn {
  min-height: 54px;
  margin-top: 2px;
}

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(26, 12, 18, 0.28);
  border-top-color: #1a0c12;
  animation: spin 0.8s linear infinite;
  flex: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cn-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--mute);
  text-transform: uppercase;
}

.cn-divider::before,
.cn-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.cn-recent {
  display: grid;
  gap: 8px;
}

.cn-recent-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.cn-recent-btn:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.05);
}

.cn-recent-thumb {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: radial-gradient(circle at 40% 30%, #f3ccd7, #b06a84 62%, #5b3648);
  flex: none;
}

.cn-recent-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.cn-recent-name {
  font-size: 12.5px;
  font-weight: 600;
}

.cn-recent-id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.cn-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--mint);
  flex: none;
}

.cn-state .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.cn-state.is-offline {
  color: var(--mute);
}

.cn-demo {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--mute);
  padding-top: 4px;
}

.cn-list {
  display: grid;
  gap: 10px;
}

.cn-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mute);
}

.cn-list svg {
  width: 13px;
  height: 13px;
  margin-top: 4px;
  color: var(--bloom);
}

/* utilities */

.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;
}

.stack-18 {
  display: grid;
  gap: 18px;
}

.stack-28 {
  display: grid;
  gap: 28px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .wave-flow {
    animation: none;
  }
}
