/* Landing page styles. Builds on the tokens in base.css; the phone mockups
   mirror the app's real components (SlotGrid, ReadyMeter, Tag, Card). */

html { overflow-x: hidden; }

body.landing {
  padding: 0;
  overflow-x: hidden;
}

/* clip (not hidden) so the page never becomes a horizontal scroll container. */
.landing main {
  max-width: none;
  margin: 0;
  overflow-x: clip;
}

.shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.glow {
  position: absolute;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 124, 255, 0.14), rgba(139, 124, 255, 0));
}

.glow--hero { top: -180px; right: -220px; width: 900px; height: 700px; }
.glow--side { top: 340px; left: -420px; width: 760px; height: 600px; background: radial-gradient(closest-side, rgba(65, 216, 240, 0.07), rgba(65, 216, 240, 0)); }

/* --- shared primitives --------------------------------------------------- */

.display {
  font-family: var(--display);
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  clip-path: var(--cut-sm);
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--muted);
  white-space: nowrap;
}

.tag--primary { color: var(--primary); background: rgba(139, 124, 255, 0.14); border-color: rgba(139, 124, 255, 0.33); }
.tag--success { color: var(--success); background: rgba(61, 220, 132, 0.12); border-color: rgba(61, 220, 132, 0.33); }
.tag--warning { color: var(--todo); background: rgba(255, 180, 84, 0.12); border-color: rgba(255, 180, 84, 0.33); }
.tag--accent { color: var(--accent); background: rgba(65, 216, 240, 0.12); border-color: rgba(65, 216, 240, 0.33); }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 12px 22px;
  clip-path: var(--cut-sm);
  cursor: pointer;
}

.btn--primary {
  color: #080b12;
  background: linear-gradient(90deg, var(--primary), #6a55f2);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 36px;
}

.section-head__dash {
  width: 26px;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(65, 216, 240, 0.7);
}

.section-head--gold .section-head__dash {
  background: var(--todo);
  box-shadow: 0 0 10px rgba(255, 180, 84, 0.7);
}

.section-head h2 {
  margin: 0;
  border: 0;
  padding: 0;
  font-size: 26px;
  letter-spacing: 2px;
}

/* --- nav ----------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.nav__wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.nav__wordmark span { color: var(--primary); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__links a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav__links a:hover { color: var(--accent); }

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

.hero {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-top: 80px;
  padding-bottom: 90px;
}

.hero__copy {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero__mark { width: 76px; height: 76px; }

.hero__eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(65, 216, 240, 0.35);
  padding: 7px 14px;
  clip-path: var(--cut-sm);
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.14;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero__title span { color: var(--primary); }

.hero__lede {
  margin: 0;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.stores { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }

.store-badge {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 11px 24px 11px 20px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.store-badge:hover { border-color: var(--accent); }

.store-badge__caption {
  font-family: var(--display);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.store-badge__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero__note { margin: 0; font-size: 13px; color: var(--muted); }

/* --- phone carousel ------------------------------------------------------ */

.carousel {
  position: relative;
  flex: 0 0 auto;
  width: 620px;
}

.carousel__stage {
  position: relative;
  height: 620px;
  touch-action: pan-y;
}

/* Arrows only appear on small screens — on desktop the side slides are the controls. */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 21, 31, 0.85);
  border: 1px solid var(--line);
  clip-path: var(--cut-sm);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.carousel__arrow:hover { border-color: var(--accent); color: var(--accent); }

.carousel__arrow--prev { left: -12px; }
.carousel__arrow--next { right: -12px; }

.carousel__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0.45;
  z-index: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.carousel__slide.is-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 2;
  cursor: default;
}

.carousel__slide.is-prev { transform: translate(-50%, -50%) translateX(-190px) scale(0.86); }
.carousel__slide.is-next { transform: translate(-50%, -50%) translateX(190px) scale(0.86); }

.carousel__slide.is-hidden { opacity: 0; pointer-events: none; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.carousel__dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(65, 216, 240, 0.8);
}

/* --- phone mockups (mirrors the app UI) ---------------------------------- */

.phone {
  width: 320px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 18px 16px 16px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #e9eef8;
}

.phone .tag { font-size: 9px; padding: 3px 8px; }

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

.p-head__info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.p-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.p-title--lg { font-size: 20px; }

.p-sub { font-weight: 500; font-size: 10px; color: #8a94ab; line-height: 1.4; }

.p-icon-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: var(--cut-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badges sit on this wrapper, outside the clipped button they would be cut by. */
.p-icon-wrap {
  position: relative;
  flex: 0 0 auto;
}

.p-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  background: var(--danger);
  box-shadow: 0 0 4px rgba(255, 92, 122, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 9px;
  color: #e9eef8;
}

.p-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.p-avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 500;
  color: #070a12;
}

.p-section {
  display: flex;
  align-items: center;
  gap: 7px;
}

.p-section__dash {
  width: 12px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 5px rgba(65, 216, 240, 0.8);
}

.p-section__label {
  flex: 1 1 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a94ab;
}

.p-section__meta { font-weight: 500; font-size: 10px; color: #8a94ab; }

.p-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: var(--cut);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.p-card--highlight {
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(139, 124, 255, 0.28);
}

.p-card__edge {
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 2px 2px 0;
}

.p-card__edge--success { background: var(--success); box-shadow: 0 0 5px rgba(61, 220, 132, 0.8); }
.p-card__edge--primary { background: var(--primary); box-shadow: 0 0 5px rgba(139, 124, 255, 0.8); }

.p-row { display: flex; align-items: center; justify-content: space-between; }
.p-row--start { justify-content: flex-start; gap: 6px; }
.p-row .spacer { flex: 1 1 0; }

.p-card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.ready-count {
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--success);
  text-shadow: 0 0 8px rgba(61, 220, 132, 0.6);
}

.ready-count span {
  font-weight: 600;
  font-size: 10px;
  color: #8a94ab;
  text-shadow: none;
}

.meter {
  height: 6px;
  background: var(--surface2);
  clip-path: polygon(5px 0, 100% 0, 100% 1px, calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.meter__fill {
  height: 100%;
  clip-path: polygon(5px 0, 100% 0, 100% 1px, calc(100% - 5px) 100%, 0 100%, 0 5px);
  background: repeating-linear-gradient(115deg, var(--success) 0 4px, rgba(61, 220, 132, 0.45) 4px 9px);
}

.team-label { display: flex; align-items: center; gap: 7px; }

.team-label__bar {
  width: 16px;
  height: 3px;
  border-radius: 2px;
}

.team-label span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.team-label--a .team-label__bar { background: var(--accent); box-shadow: 0 0 5px rgba(65, 216, 240, 0.8); }
.team-label--a span { color: var(--accent); }
.team-label--b .team-label__bar { background: var(--danger); box-shadow: 0 0 5px rgba(255, 92, 122, 0.8); }
.team-label--b span { color: var(--danger); }

.slots { display: flex; gap: 8px; }

.slot {
  position: relative;
  width: 51px;
  height: 62px;
  clip-path: var(--cut-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.slot--a { background: rgba(65, 216, 240, 0.06); border: 1px solid rgba(65, 216, 240, 0.33); }
.slot--b { background: rgba(255, 92, 122, 0.06); border: 1px solid rgba(255, 92, 122, 0.33); }
.slot--own { background: rgba(139, 124, 255, 0.14); border: 1px solid var(--primary); }
.slot--open { background: var(--surface); border: 1px dashed var(--line); }

.slot__name { font-weight: 600; font-size: 8px; color: #8a94ab; }

.slot__dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 4px rgba(61, 220, 132, 0.9);
}

.slot__dot--warn { background: var(--todo); box-shadow: 0 0 4px rgba(255, 180, 84, 0.9); }

.slot__avatar { width: 24px; height: 24px; font-size: 9px; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }

.slot__plus {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(65, 216, 240, 0.7);
  line-height: 1;
}

.vs {
  display: flex;
  align-items: center;
  gap: 9px;
}

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

.vs span {
  font-family: var(--display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(65, 216, 240, 0.6);
}

.p-hint { font-weight: 500; font-size: 9px; color: #8a94ab; }

.text-accent { color: var(--accent); }

.p-card__title--lg { font-size: 16px; }

.p-avatar--lg {
  width: 38px;
  height: 38px;
  font-size: 13px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.p-title .hex-bolt { margin-left: 6px; vertical-align: -2px; }

.p-btn-wrap { filter: drop-shadow(0 4px 10px rgba(139, 124, 255, 0.35)); }

.p-btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  color: #e9eef8;
  background: linear-gradient(90deg, var(--primary), #6a55f2);
  height: 44px;
  line-height: 44px;
  clip-path: var(--cut);
}

.p-btn--ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  filter: none;
}

.p-actions { display: flex; gap: 9px; }
.p-actions > div { flex: 1 1 0; }
.p-actions .p-btn { height: 42px; line-height: 42px; font-size: 11px; }

.chips { display: flex; gap: 10px; }

.chip-friend {
  flex: 1 1 0;
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: var(--cut-sm);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  position: relative;
}

.chip-friend__avatar { width: 32px; height: 32px; font-size: 11px; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }

.chip-friend__info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.chip-friend__name { font-weight: 600; font-size: 11px; }

.chip-friend__status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
}

.chip-friend__status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.chip-friend__status--ingame { color: var(--success); }
.chip-friend__status--online { color: var(--accent); }

.platform {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  background: var(--surface2);
  border: 1px solid var(--line);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs {
  position: relative;
  display: flex;
  gap: 7px;
  padding-bottom: 7px;
}

.tab {
  height: 34px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: var(--cut-sm);
  font-family: var(--display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a94ab;
}

.tab.is-active {
  background: rgba(65, 216, 240, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.tab-marker {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(65, 216, 240, 0.8);
}

.poll-row {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px dashed rgba(255, 180, 84, 0.4);
  clip-path: var(--cut-sm);
  padding: 10px 12px;
}

.poll-row__info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 5px; }

.poll-row__title { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; }

.hex-bolt { flex: 0 0 auto; }

/* --- features ------------------------------------------------------------ */

.features { padding-top: 8px; padding-bottom: 90px; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px;
  clip-path: var(--cut);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.feature p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

/* --- premium ------------------------------------------------------------- */

.premium { padding-bottom: 90px; }

.premium__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 30px;
  clip-path: var(--cut);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-card--gold {
  background: var(--surface2);
  border-color: rgba(255, 180, 84, 0.4);
}

.price-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-card__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 6px 12px;
  clip-path: var(--cut-sm);
}

.price-card__label--solid { color: #080b12; background: var(--todo); }
.price-card__label--outline { color: var(--todo); border: 1px solid rgba(255, 180, 84, 0.5); }

.price-card__price { display: flex; align-items: baseline; gap: 6px; }

.price-card__amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 1px;
}

.price-card--gold .price-card__amount { color: var(--todo); }

.price-card__cycle { font-size: 12px; color: var(--muted); }

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-card li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.price-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--primary);
}

.price-card--gold li::before { background: var(--todo); }

.premium__note { margin: 24px 0 0; font-size: 13px; color: var(--muted); }

/* --- companion ----------------------------------------------------------- */

.companion { padding-bottom: 90px; }

.glow--pc { top: -120px; right: -260px; width: 820px; height: 620px; background: radial-gradient(closest-side, rgba(139, 124, 255, 0.12), rgba(139, 124, 255, 0)); }

.companion__body { display: flex; align-items: center; gap: 72px; }

.companion__copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.companion__tags { display: flex; gap: 8px; flex-wrap: wrap; }

.companion__lede { margin: 0; max-width: 460px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.companion__lede strong { color: var(--text); font-weight: 600; }

.companion__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 480px; }

.companion__list li { position: relative; padding-left: 19px; font-size: 14px; line-height: 1.6; }

.companion__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; background: var(--accent); }

.companion__list b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.companion__list span { display: block; color: var(--muted); font-size: 13.5px; }

/* A badge that isn't a link yet: dashed and hover-less until the store listing is live. */
.store-badge--soon { border-style: dashed; cursor: default; }
.store-badge--soon:hover { border-color: var(--line); }
.store-badge--soon svg { opacity: 0.75; }

.companion__note { margin: 0; font-size: 13px; color: var(--muted); }

/* Companion window rebuilt 1:1 (428 x 640) from the Companion's own components and
   tokens (theme.ts, TitleBar, NavRail, Screen, Card, Tag, Meter, FriendsList), plus a
   slice of the Windows tray underneath. Scaled with zoom on narrow phones. */
.desk { flex: 0 0 auto; width: 428px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; }

.cw {
  --c-bg: #080b12;
  --c-surface: #10151f;
  --c-surface2: #171d2b;
  --c-line: #242d45;
  --c-text: #e9eef8;
  --c-muted: #8a94ab;
  --c-primary: #8b7cff;
  --c-primary-dim: rgba(139, 124, 255, 0.14);
  --c-accent: #41d8f0;
  --c-accent-dim: rgba(65, 216, 240, 0.12);
  --c-success: #3ddc84;
  --c-success-dim: rgba(61, 220, 132, 0.12);
  --c-danger: #ff5c7a;
  --c-cut6: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  --c-cut10: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  width: 428px;
  height: 640px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-bg);
  color: var(--c-text);
  border: 1px solid var(--line);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  font-family: var(--body);
  font-size: 12px;
  line-height: normal;
  text-align: left;
  user-select: none;
}

.cw-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding-left: 12px;
  border-bottom: 1px solid var(--c-line);
  flex-shrink: 0;
}
.cw-title__brand { display: flex; align-items: center; gap: 8px; }
.cw-title__text { font-family: var(--display); font-weight: 600; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--c-muted); }
.cw-title__controls { display: flex; align-self: stretch; }
.cw-title__control { display: flex; align-items: center; justify-content: center; width: 40px; color: var(--c-muted); }

.cw-shell { display: flex; flex: 1; min-height: 0; }

.cw-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 48px;
  padding: 10px 0 12px;
  border-right: 1px solid var(--c-line);
  flex-shrink: 0;
}
.cw-rail__brand { display: flex; align-items: center; justify-content: center; height: 36px; margin-bottom: 6px; }
.cw-rail__spacer { flex: 1; }
.cw-rail__item { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: var(--c-muted); clip-path: var(--c-cut6); }
.cw-rail__item--active { color: var(--c-accent); background: var(--c-accent-dim); filter: drop-shadow(0 0 6px rgba(65, 216, 240, 0.35)); }

.cw-screen { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 12px 16px 32px; overflow: hidden; }

.cw-header { display: flex; align-items: center; gap: 12px; }
.cw-header__info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cw-heading { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 1px; text-transform: uppercase; color: var(--c-text); }
.cw-caption { font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--c-muted); }
.cw-label { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--c-muted); }

.cw-actions { display: flex; gap: 8px; }
.cw-action { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.cw-action__box { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-text); clip-path: var(--c-cut6); }
.cw-action__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--c-danger);
  box-shadow: 0 0 4px var(--c-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 10px;
  color: var(--c-text);
}

.cw-card { position: relative; background: var(--c-surface); border: 1px solid var(--c-line); clip-path: var(--c-cut10); }
.cw-card--padded { padding: 16px; }
.cw-card--highlighted { border-color: var(--c-primary); filter: drop-shadow(0 0 10px rgba(139, 124, 255, 0.3)); }

.cw-detect { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.cw-detect__icon { display: flex; color: var(--c-muted); }
.cw-detect__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cw-detect__name { font-weight: 600; font-size: 13px; color: var(--c-text); }
.cw-detect__status { font-weight: 500; font-size: 11px; color: var(--c-muted); }

.cw-section { display: flex; align-items: center; gap: 8px; }
.cw-section__dash { width: 14px; height: 2px; background: var(--c-accent); box-shadow: 0 0 5px rgba(65, 216, 240, 0.8); }
.cw-section__meta { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--c-muted); }

.cw-friends { display: flex; flex-direction: column; gap: 8px; }
.cw-friend { display: flex; align-items: center; gap: 12px; padding: 8px 12px; clip-path: var(--c-cut6); }
.cw-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  color: #070a12;
  clip-path: var(--c-cut6);
}
.cw-friend__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cw-friend__name { font-weight: 600; font-size: 13px; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-friend__status { display: flex; align-items: center; gap: 5px; font-weight: 500; font-size: 11px; white-space: nowrap; }
.cw-friend__status--ingame { color: var(--c-success); }
.cw-friend__status--online { color: var(--c-accent); }
.cw-friend__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.cw-badges { display: flex; gap: 4px; flex-shrink: 0; }
.cw-badge { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: var(--c-surface2); border: 1px solid var(--c-line); color: var(--c-muted); clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.cw-friends__toggle { align-self: center; padding: 4px 8px; font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-muted); }

.cw-tag { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid; font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; clip-path: var(--c-cut6); white-space: nowrap; }
.cw-tag--success { color: var(--c-success); background: var(--c-success-dim); border-color: rgba(61, 220, 132, 0.33); }
.cw-tag--primary { color: var(--c-primary); background: var(--c-primary-dim); border-color: rgba(139, 124, 255, 0.33); }

.cw-hero { display: block; }
.cw-hero__tags { display: flex; align-items: center; justify-content: space-between; }
.cw-hero__countdown { font-weight: 500; font-size: 13px; color: var(--c-accent); }
.cw-hero__title { display: block; font-size: 20px; margin-top: 12px; }
.cw-hero .cw-caption { display: block; }
.cw-hero__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cw-hero__footer .cw-caption { display: inline; }

.cw-meter {
  display: block;
  height: 7px;
  margin-top: 12px;
  background: var(--c-surface2);
  clip-path: polygon(6px 0, 100% 0, 100% 1px, calc(100% - 6px) 100%, 0 100%, 0 6px);
  filter: drop-shadow(0 0 6px rgba(61, 220, 132, 0.5));
}
.cw-meter__fill {
  display: block;
  height: 100%;
  clip-path: polygon(6px 0, 100% 0, 100% 1px, calc(100% - 6px) 100%, 0 100%, 0 6px);
  background: repeating-linear-gradient(115deg, var(--c-success) 0 5px, rgba(61, 220, 132, 0.45) 5px 9px);
}

.tray { display: flex; justify-content: flex-end; }

.tray__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  background: #1c2130;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #cfd6e6;
  font-size: 11px;
}

.tray__icon { display: grid; place-items: center; width: 18px; height: 18px; color: #cfd6e6; }

/* the real tray icon is the plain white mark, no tint or glow */
.tray__icon--app svg { display: block; }

.tray__clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-variant-numeric: tabular-nums; }

.tray__tip {
  position: absolute;
  right: 92px;
  bottom: calc(100% + 10px);
  padding: 7px 11px;
  background: var(--surface2);
  border: 1px solid var(--line);
  clip-path: var(--cut-sm);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.price-card li .tag { margin-left: 8px; vertical-align: 1px; }

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

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

.footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 34px;
  padding-bottom: 44px;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__brand { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }

.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }

.footer__links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__links a:hover { color: var(--accent); }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1120px) {
  .hero { gap: 40px; }
  .hero__title { font-size: 38px; }
  .companion__body { gap: 40px; }
}

@media (max-width: 960px) {
  .nav__links a:not(.btn) { display: none; }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 48px;
    padding-bottom: 60px;
  }

  .hero__copy { align-items: center; }
  .hero__title { font-size: 32px; }
  .hero__lede { font-size: 15px; }

  .carousel { width: 100%; max-width: 620px; }

  .features { padding-bottom: 64px; }
  .premium { padding-bottom: 64px; }

  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 17px; letter-spacing: 1.4px; }
  .section-head__dash { width: 20px; }

  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  /* Icon and title share a row on stacked layouts — matches the app mockup. */
  .feature {
    display: grid;
    grid-template-columns: 19px 1fr;
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
    padding: 15px 16px;
  }
  .feature svg { width: 19px; height: 19px; grid-column: 1; }
  .feature h3 { font-size: 13px; grid-column: 2; }
  .feature p { font-size: 12.5px; line-height: 1.55; grid-column: 1 / -1; }

  .premium__grid { grid-template-columns: 1fr; gap: 14px; }
  .price-card { padding: 20px; gap: 14px; }
  .price-card__amount { font-size: 22px; }
  .price-card li { font-size: 13px; }
  .premium__note { font-size: 12px; margin-top: 18px; }

  .companion { padding-bottom: 64px; }
  .companion__body { flex-direction: column-reverse; align-items: center; text-align: center; }
  .companion__copy { align-items: center; }
  .companion__list { text-align: left; }
  .companion__lede { font-size: 15px; }
  .desk { width: 100%; max-width: 428px; }

  .footer .shell {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 36px;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
    column-gap: 22px;
    row-gap: 10px;
  }
}

@media (max-width: 680px) {
  .carousel__stage { height: 610px; overflow: hidden; }
  .features__grid { grid-template-columns: 1fr; }
  .carousel__arrow { display: flex; }
  .carousel__arrow--prev { left: -14px; }
  .carousel__arrow--next { right: -14px; }
  .carousel__slide.is-prev { transform: translate(-50%, -50%) translateX(-320px) scale(0.9); opacity: 0.4; }
  .carousel__slide.is-next { transform: translate(-50%, -50%) translateX(320px) scale(0.9); opacity: 0.4; }

  .nav { padding-top: 22px; }

  .hero { padding-top: 44px; padding-bottom: 56px; gap: 36px; }
  .hero__copy { gap: 22px; }
  .hero__title { font-size: 29px; line-height: 1.2; }
  .hero__lede { font-size: 14.5px; }

  .stores {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    gap: 10px;
  }

  .store-badge { justify-content: center; padding: 11px 0; }
  .store-badge--soon { width: 100%; max-width: 300px; }
  .tray__tip { right: 12px; }
}

/* the window keeps its pixel layout; on narrow phones it is zoomed down as a whole */
@media (max-width: 480px) {
  .desk { align-items: stretch; }
  .cw { zoom: 0.78; }
}

@media (max-width: 380px) {
  .cw { zoom: 0.7; }
}

@media (max-width: 380px) {
  .carousel__slide.is-active { transform: translate(-50%, -50%) scale(0.88); }
  .carousel__stage { height: 560px; }
}
