:root {
  color-scheme: dark;
  --bg-1: #020403;
  --bg-2: #07120d;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-active: rgba(255, 255, 255, 0.072);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #f4f7f4;
  --muted: #abb6af;
  --blue: #2da9ff;
  --green: #4cff88;
  --yellow: #ffd70a;
  --page-inline: clamp(16px, 3vw, 44px);
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg-1);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 24%, rgba(76, 255, 136, 0.16) 0%, transparent 20%),
    radial-gradient(circle at 46% 44%, rgba(45, 169, 255, 0.08) 0%, transparent 25%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: #031008;
  background: var(--green);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -80px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(145, 255, 185, 0.9) 0%, rgba(76, 255, 136, 0.45) 35%, rgba(76, 255, 136, 0) 72%);
  filter: blur(1px);
  opacity: 0.22;
  animation: float-up linear infinite;
}

.p1  { left: 6%;  width: 8px;  height: 8px;  animation-duration: 22s; animation-delay: 0s; }
.p2  { left: 14%; width: 14px; height: 14px; animation-duration: 30s; animation-delay: 5s; }
.p3  { left: 22%; width: 10px; height: 10px; animation-duration: 26s; animation-delay: 2s; }
.p4  { left: 31%; width: 18px; height: 18px; animation-duration: 34s; animation-delay: 8s; }
.p5  { left: 40%; width: 7px;  height: 7px;  animation-duration: 24s; animation-delay: 3s; }
.p6  { left: 49%; width: 12px; height: 12px; animation-duration: 28s; animation-delay: 10s; }
.p7  { left: 58%; width: 9px;  height: 9px;  animation-duration: 21s; animation-delay: 1s; }
.p8  { left: 67%; width: 16px; height: 16px; animation-duration: 33s; animation-delay: 6s; }
.p9  { left: 75%; width: 11px; height: 11px; animation-duration: 27s; animation-delay: 11s; }
.p10 { left: 83%; width: 20px; height: 20px; animation-duration: 36s; animation-delay: 4s; }
.p11 { left: 90%; width: 8px;  height: 8px;  animation-duration: 23s; animation-delay: 9s; }
.p12 { left: 96%; width: 13px; height: 13px; animation-duration: 31s; animation-delay: 13s; }

@keyframes float-up {
  0% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0; }
  8% { opacity: 0.16; }
  40% { transform: translate3d(-14px, -35vh, 0) scale(1); opacity: 0.24; }
  70% { transform: translate3d(16px, -70vh, 0) scale(1.08); opacity: 0.18; }
  100% { transform: translate3d(-8px, -115vh, 0) scale(1.12); opacity: 0; }
}

.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding:
    max(12px, env(safe-area-inset-top))
    max(var(--page-inline), env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(var(--page-inline), env(safe-area-inset-left));
}

.site-header {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  border-radius: 18px;
}

.brand:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.logo {
  display: block;
  width: clamp(84px, 7vw, 112px);
  height: auto;
}

main {
  display: flex;
  flex: 1 0 auto;
  width: 100%;
}

.hero-section {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.hero-copy {
  width: min(920px, 100%);
  margin: 0 auto clamp(14px, 2.2vh, 24px);
  text-align: center;
}

h1 {
  max-width: 880px;
  margin: 0 auto 10px;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.blue { color: var(--blue); }
.green { color: var(--green); }

.subtitle {
  max-width: 790px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.5;
  text-wrap: balance;
}

.hero-layout {
  --phone-width: clamp(200px, 15vw, 240px);
  display: grid;
  grid-template-areas:
    "left center right"
    ". download .";
  grid-template-columns: minmax(248px, 1fr) minmax(205px, 250px) minmax(248px, 1fr);
  align-items: center;
  column-gap: clamp(16px, 2.3vw, 34px);
  row-gap: clamp(7px, 1vh, 10px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.feature-column {
  display: grid;
  align-self: center;
  gap: clamp(10px, 1.4vh, 15px);
}

.feature-column-left { grid-area: left; justify-items: end; }
.feature-column-right { grid-area: right; justify-items: start; }

.feature-card {
  --accent: var(--green);
  width: min(330px, 100%);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.feature-weather,
.feature-forecast { --accent: var(--blue); }

.feature-sleep,
.feature-insights { --accent: var(--yellow); }

.feature-toggle {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 110px;
  padding: 13px 14px;
  color: inherit;
  text-align: left;
  appearance: none;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.feature-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}

.icon-box img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.06)) drop-shadow(0 0 14px rgba(76, 255, 136, 0.12));
}

.feature-text,
.feature-title,
.feature-summary { display: block; }

.feature-text { min-width: 0; }

.feature-title {
  margin-bottom: 5px;
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 750;
  line-height: 1.1;
}

.feature-summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.28;
  text-wrap: balance;
}

.feature-card.is-active,
.feature-card:has(.feature-toggle:focus-visible) {
  border-color: color-mix(in srgb, var(--accent) 54%, transparent);
  background: var(--panel-active);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28), 0 0 24px color-mix(in srgb, var(--accent) 16%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-2px) scale(1.012);
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    border-color: color-mix(in srgb, var(--accent) 54%, transparent);
    background: var(--panel-active);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28), 0 0 24px color-mix(in srgb, var(--accent) 16%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-2px) scale(1.012);
  }

}

.hero-center {
  grid-area: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--phone-width);
  margin: 0;
  container-type: inline-size;
}

.phone-glow {
  position: absolute;
  width: min(28vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 255, 136, 0.22) 0%, rgba(45, 169, 255, 0.08) 50%, transparent 76%);
  filter: blur(25px);
}

.phone-device {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2px;
  border: 1px solid rgba(207, 218, 212, 0.42);
  border-radius: clamp(18px, 10cqw, 27px);
  background: linear-gradient(145deg, #2d3538 0%, #111719 18%, #06090a 78%, #20282a 100%);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.46),
    0 0 20px rgba(76, 255, 136, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72);
}

.phone-bezel {
  width: 100%;
  padding: clamp(4px, 2.25cqw, 5.5px);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: clamp(16px, 9cqw, 25px);
  background: #050809;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 0 12px rgba(0, 0, 0, 0.74);
}

.phone-screen-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 3120;
  overflow: hidden;
  border-radius: clamp(12px, 7cqw, 19px);
  background: #080f12;
  isolation: isolate;
  contain: paint;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.phone-screen-viewport::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(5, 8, 9, 0.82);
}

.phone-screen {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.phone-screen-current {
  z-index: 1;
}

.phone-screen-next {
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.download-panel {
  grid-area: download;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: var(--phone-width);
  justify-self: center;
  margin-top: 0;
  text-align: center;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, rgba(61, 255, 156, 0.9) 0%, rgba(45, 169, 255, 0.9) 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32), 0 0 24px rgba(45, 169, 255, 0.18), inset 0 0 10px rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.store-status {
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-status img {
  display: block;
  flex: 0 0 auto;
  width: 105px;
  height: auto;
}

.site-footer {
  flex: 0 0 auto;
  margin-top: clamp(10px, 2vh, 24px);
  color: rgba(171, 182, 175, 0.72);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.site-footer p { margin: 0; }

@media (min-width: 901px) and (max-width: 1180px) {
  .hero-layout {
    grid-template-columns: minmax(220px, 1fr) 205px minmax(220px, 1fr);
    gap: 14px;
  }

  .feature-card { width: min(292px, 100%); }

  .feature-toggle {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .icon-box,
  .icon-box img { width: 46px; height: 46px; }

  .feature-summary { font-size: 12px; }
}

@media (min-width: 901px) and (max-height: 850px) {
  .hero-layout { --phone-width: 184px; }
  .site-shell {
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .logo { width: 76px; }
  .hero-copy { margin-bottom: 10px; }

  h1 {
    margin-bottom: 6px;
    font-size: clamp(32px, 3.4vw, 44px);
  }

  .subtitle { font-size: 14px; line-height: 1.35; }
  .feature-column { gap: 8px; }
  .feature-toggle { min-height: 96px; padding-block: 10px; }
  .availability-pill { height: 38px; min-height: 38px; }
  .site-footer { margin-top: 7px; }
}

@media (max-width: 900px) {
  .site-shell {
    padding-inline: max(clamp(14px, 3vw, 24px), env(safe-area-inset-left));
  }

  .logo { width: 86px; }
  .hero-section { justify-content: flex-start; }
  .hero-copy { margin-bottom: 16px; }
  h1 { font-size: clamp(34px, 6.2vw, 48px); }

  .hero-layout {
    --phone-width: clamp(174px, 27vw, 210px);
    grid-template-areas:
      "left center right"
      ". download .";
    grid-template-columns: minmax(168px, 1fr) minmax(184px, 210px) minmax(168px, 1fr);
    align-items: center;
    gap: 10px 12px;
    width: min(720px, 100%);
  }

  .hero-center { width: 100%; align-self: center; }
  .phone-glow { width: 250px; }

  .feature-column-left,
  .feature-column-right { justify-items: stretch; }

  .feature-card { width: 100%; }
  .feature-toggle {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
    min-height: 94px;
    padding: 10px;
  }

  .icon-box,
  .icon-box img { width: 42px; height: 42px; }

  .feature-title { font-size: 16px; }
  .feature-summary { font-size: 12px; }
  .feature-card.is-active { transform: none; }
  .download-panel { margin: 0 auto; }
}

@media (max-width: 600px) {
  .site-shell {
    padding-top: max(8px, env(safe-area-inset-top));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .logo { width: 72px; }
  .hero-copy { margin-bottom: 12px; }

  h1 {
    max-width: 380px;
    margin-bottom: 7px;
    font-size: clamp(29px, 8.2vw, 36px);
    line-height: 1.04;
  }

  .subtitle {
    max-width: 405px;
    font-size: 14px;
    line-height: 1.4;
  }

  .hero-layout {
    --phone-width: min(100%, 174px);
    grid-template-areas:
      "left center right"
      ". download .";
    grid-template-columns: minmax(68px, 0.64fr) minmax(150px, 1.4fr) minmax(68px, 0.64fr);
    row-gap: 7px;
    column-gap: 8px;
    width: 100%;
  }

  .hero-center,
  .download-panel { width: var(--phone-width); justify-self: center; }

  .phone-wrap { width: 100%; }
  .phone-glow { width: 190px; filter: blur(18px); }
  .download-panel { margin-top: 0; }

  .availability-pill {
    width: 100%;
    height: 40px;
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    font-size: 13.5px;
  }

  .store-status img { width: 104px; }
  .feature-column { gap: 6px; }
  .feature-card { border-radius: 16px; }

  .feature-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-height: clamp(82px, 22vw, 92px);
    padding: 6px 2px;
    text-align: center;
  }

  .icon-box,
  .icon-box img { width: 35px; height: 35px; }

  .feature-title { margin: 0; font-size: clamp(12px, 3.35vw, 14px); }
  .feature-summary { display: none; }

  .site-footer { font-size: 11px; }
}

@media (max-width: 360px) {
  h1 { font-size: 27px; }
  .subtitle { font-size: 13px; }

  .hero-layout {
    grid-template-columns: minmax(62px, 0.62fr) minmax(146px, 1.45fr) minmax(62px, 0.62fr);
    column-gap: 6px;
  }

  .icon-box,
  .icon-box img { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .particle { animation: none; opacity: 0.08; }

  .skip-link,
  .feature-card,
  .phone-screen-next { transition: none; }
}

/* Understanding Prototype V1: local Hero-only composition. */
html { scrollbar-gutter: stable; }
body { overflow-x: clip; }

.hero-copy { margin-bottom: clamp(12px, 1.8vh, 20px); }

.rotating-title {
  position: relative;
  max-width: 900px;
  min-height: var(--title-reserved-height, auto);
  text-wrap: pretty;
}

.title-content,
.title-measure { display: block; }
.title-content { will-change: opacity, filter; }
.title-measure {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  visibility: hidden;
  pointer-events: none;
}

.subtitle {
  max-width: 860px;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-layout {
  --phone-width: clamp(200px, 15.2vw, 228px);
  display: grid;
  grid-template-areas:
    "left center right"
    ". download .";
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(18px, 3.4vw, 52px);
  row-gap: clamp(10px, 1.4vh, 14px);
  width: min(1180px, 100%);
}

.feature-column {
  align-self: center;
  gap: clamp(8px, 1.2vh, 13px);
}

.feature-column-left { justify-items: end; }
.feature-column-right { justify-items: start; }

.feature-card.feature-topic {
  display: flex;
  align-items: stretch;
  width: min(330px, 100%);
  min-height: 88px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.feature-topic .feature-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 12px 15px;
  text-align: left;
  border-radius: inherit;
}

.feature-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.feature-topic .icon-box {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 12px 0 0;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 50%;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.feature-topic .icon-box img {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 12%, transparent));
}

.feature-topic .feature-text { min-width: 0; }
.feature-topic .feature-title {
  margin-bottom: 4px;
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 700;
  line-height: 1.12;
}

.feature-topic .feature-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
  text-wrap: pretty;
}

.feature-card.is-active,
.feature-card:has(.feature-toggle:focus-visible) {
  border-color: color-mix(in srgb, var(--accent) 48%, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), 0 0 18px color-mix(in srgb, var(--accent) 10%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

@media (hover: hover) and (pointer: fine) {
  .feature-card.feature-topic:hover {
    border-color: color-mix(in srgb, var(--accent) 48%, rgba(255, 255, 255, 0.1));
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), 0 0 18px color-mix(in srgb, var(--accent) 10%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
  }
}

.hero-center {
  align-self: center;
  width: var(--phone-width);
}

.phone-wrap {
  width: 100%;
  container-type: normal;
}

.phone-glow {
  width: min(30vw, 340px);
  opacity: 0.72;
}

.legacy-phone {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.38));
}

.download-panel {
  grid-area: download;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(var(--phone-width), 100%);
  justify-self: center;
  margin: 0;
  text-align: center;
}

.download-stack {
  width: min(var(--phone-width), 100%);
  justify-self: center;
  gap: 9px;
}

.availability-pill {
  height: 42px;
  min-height: 42px;
  padding-inline: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(100deg, rgba(61, 235, 153, 0.9) 0%, rgba(45, 169, 255, 0.9) 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.26), inset 0 0 8px rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
}

.store-status img { width: 100px; }

.primary-download.availability-pill {
  width: 96%;
  max-width: 100%;
  height: 39px;
  min-height: 39px;
  padding-inline: 8px;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(100deg, rgba(61, 218, 145, 0.88) 0%, rgba(45, 157, 226, 0.88) 100%);
  box-shadow: 0 4px 11px rgba(0, 0, 0, 0.22), inset 0 0 5px rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 600;
  transition: filter 160ms ease, border-color 160ms ease;
}

.rustore-badge.store-status {
  justify-self: center;
}

.rustore-badge.store-status img {
  width: 100px;
  height: auto;
}

@media (hover: hover) and (pointer: fine) {
  .primary-download.availability-pill:hover {
    filter: brightness(1.06);
    border-color: rgba(109, 226, 178, 0.34);
  }
}

.weather-dialog {
  --dialog-accent: #42c7ef;
  position: fixed;
  inset: 0;
  width: min(460px, calc(100% - 32px));
  max-width: none;
  max-height: min(88vh, 760px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--dialog-accent) 34%, rgba(255, 255, 255, 0.12));
  border-radius: 22px;
  color: var(--text);
  background:
    radial-gradient(ellipse at 22% 0%, color-mix(in srgb, var(--dialog-accent) 9%, transparent), transparent 48%),
    linear-gradient(155deg, #0b1111 0%, #080d0c 58%, #080d0b 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.weather-dialog:not([open]) { display: none; }
.weather-dialog[open] { opacity: 1; transform: translateY(0); }

@starting-style {
  .weather-dialog[open] { opacity: 0; transform: translateY(5px); }
}

.weather-dialog::backdrop {
  background: rgba(0, 4, 6, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.weather-dialog-panel { padding: 26px 30px 28px; }

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.dialog-topic-label {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--dialog-accent);
  font-size: 14px;
  font-weight: 650;
}

.dialog-icon-box {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--dialog-accent) 55%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--dialog-accent) 6%, transparent);
}

.dialog-icon-box img { display: block; width: 28px; height: 28px; }

.dialog-close {
  position: static;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(244, 247, 244, 0.8);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.dialog-close span { margin-top: -2px; font-size: 26px; line-height: 1; }
.dialog-close:hover,
.dialog-close:focus-visible { border-color: color-mix(in srgb, var(--dialog-accent) 56%, transparent); color: var(--dialog-accent); background: rgba(255, 255, 255, 0.06); }
.dialog-close:focus-visible { outline: 2px solid var(--dialog-accent); outline-offset: 3px; }

.weather-dialog h2 {
  max-width: 390px;
  margin: 0 0 13px;
  color: var(--text);
  font-size: clamp(27px, 2.2vw, 31px);
  font-weight: 720;
  letter-spacing: -0.028em;
  line-height: 1.12;
  text-wrap: pretty;
}

.weather-dialog p { margin: 0; color: #d0d9d3; font-size: 16px; line-height: 1.55; }

.dialog-insight {
  margin-top: 18px;
  padding: 12px 14px 13px;
  border-left: 2px solid color-mix(in srgb, var(--dialog-accent) 68%, transparent);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.035);
}

.dialog-insight-label {
  display: block;
  margin-bottom: 4px;
  color: var(--dialog-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.weather-dialog .dialog-insight p { color: #aebbb3; font-size: 14px; line-height: 1.45; }

@media (min-width: 901px) and (max-width: 1180px) {
  .hero-layout {
    --phone-width: clamp(190px, 20vw, 215px);
    grid-template-columns: minmax(0, 1fr) var(--phone-width) minmax(0, 1fr);
    column-gap: clamp(14px, 2vw, 24px);
  }
}

@media (min-width: 901px) and (max-height: 850px) {
  .hero-layout { --phone-width: clamp(178px, 17.5vw, 200px); }
  .site-shell { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .logo { width: 76px; }
  .hero-copy { margin-bottom: 10px; }
  .rotating-title { font-size: clamp(32px, 3.4vw, 44px); }
  .subtitle { font-size: 14px; line-height: 1.35; }
  .feature-column { gap: 7px; }
  .feature-card.feature-topic { min-height: 76px; }
  .feature-topic .feature-toggle { min-height: 74px; padding-block: 9px; }
  .availability-pill { height: 40px; min-height: 40px; }
  .primary-download.availability-pill { height: 39px; min-height: 39px; }
  .site-footer { margin-top: 7px; }
}

@media (max-width: 900px) {
  .hero-section { justify-content: flex-start; }
  .hero-layout {
    --phone-width: clamp(184px, 27vw, 210px);
    grid-template-columns: minmax(0, 1fr) var(--phone-width) minmax(0, 1fr);
    column-gap: clamp(10px, 2vw, 16px);
    width: min(760px, 100%);
  }
  .feature-card.feature-topic { min-height: 82px; }
  .feature-topic .feature-toggle { min-height: 80px; padding-inline: 10px; }
  .feature-topic .icon-box { flex-basis: 40px; width: 40px; height: 40px; margin-right: 9px; }
  .feature-topic .icon-box img { width: 28px; height: 28px; }
  .feature-topic .feature-title { font-size: 15px; }
  .feature-topic .feature-summary { font-size: 11.5px; }
  .hero-center { width: 100%; }
}

@media (max-width: 600px) {
  .site-shell {
    padding-top: max(8px, env(safe-area-inset-top));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
  }
  .logo { width: 72px; }
  .hero-copy { margin-bottom: 10px; }
  .rotating-title { max-width: 390px; margin-bottom: 7px; font-size: clamp(27px, 7.2vw, 34px); line-height: 1.04; }
  .subtitle { max-width: 430px; font-size: 14px; line-height: 1.38; }
  .hero-layout {
    --phone-width: min(44vw, 174px);
    grid-template-columns: minmax(0, 1fr) var(--phone-width) minmax(0, 1fr);
    column-gap: clamp(10px, 2.8vw, 13px);
    width: 100%;
  }
  .feature-column { gap: 7px; }
  .feature-card.feature-topic { min-height: 80px; border-radius: 15px; }
  .feature-topic .feature-toggle { flex-direction: column; justify-content: center; min-height: 78px; gap: 4px; padding: 5px 2px; text-align: center; }
  .feature-topic .icon-box { flex-basis: 33px; width: 33px; height: 33px; margin: 0 0 1px; }
  .feature-topic .icon-box img { width: 24px; height: 24px; }
  .feature-topic .feature-text { width: 100%; }
  .feature-topic .feature-title { margin: 0; font-size: clamp(11px, 3.15vw, 12.25px); line-height: 1.12; }
  .feature-topic .feature-summary { display: none; }
  .phone-wrap { width: 100%; }
  .phone-glow { width: 185px; filter: blur(16px); opacity: 0.58; }
  .legacy-phone { filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3)); }
  .download-stack { width: var(--phone-width); margin-top: 0; gap: 9px; }
  .primary-download.availability-pill { width: 96%; height: 37px; min-height: 37px; padding-inline: 7px; font-size: 12.5px; }
  .rustore-badge.store-status img { width: 98px; }
  .site-footer { margin-top: 10px; font-size: 11px; }
  .weather-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 19px; }
  .weather-dialog-panel { padding: 21px 20px 21px; }
  .dialog-header { margin-bottom: 15px; }
  .dialog-close { flex-basis: 42px; width: 42px; height: 42px; }
  .weather-dialog h2 { margin-bottom: 11px; font-size: 24px; }
  .weather-dialog p { font-size: 16px; line-height: 1.5; }
  .dialog-insight { margin-top: 15px; padding: 10px 12px 11px; }
}

@media (max-width: 370px) {
  .rotating-title { font-size: 26px; }
  .subtitle { font-size: 13px; }
  .hero-layout { --phone-width: min(44vw, 160px); column-gap: 9px; }
  .feature-card.feature-topic { min-height: 78px; }
  .feature-topic .icon-box { flex-basis: 30px; width: 30px; height: 30px; }
  .feature-topic .icon-box img { width: 22px; height: 22px; }
  .feature-topic .feature-title { font-size: 11px; }
  .availability-pill { font-size: 12px; }
}

.primary-download.availability-pill {
  transform: translateY(-11.5px);
  border-color: rgba(163, 255, 220, 0.34);
  background: linear-gradient(100deg, rgba(61, 218, 145, 0.42) 0%, rgba(45, 157, 226, 0.42) 100%);
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.08);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.primary-download.availability-pill:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

@media (min-width: 601px) and (max-width: 900px) {
  .primary-download.availability-pill { transform: translateY(-14.65px); }
}

@media (min-width: 901px) {
  .primary-download.availability-pill { transform: translateY(-14.65px); }
}

@media (max-width: 370px) {
  .primary-download.availability-pill { transform: translateY(-10.4px); }
}

@media (hover: hover) and (pointer: fine) {
  .primary-download.availability-pill:hover {
    background: linear-gradient(100deg, rgba(61, 218, 145, 0.52) 0%, rgba(45, 157, 226, 0.52) 100%);
    border-color: rgba(163, 255, 220, 0.48);
  }
}

@media (prefers-reduced-motion: reduce) {
  .title-content,
  .weather-dialog,
  .dialog-close,
  .feature-card.feature-topic { transition: none !important; }
}

.primary-download:disabled {
  appearance: none;
  margin: 0;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.site-information {
  position: relative;
  z-index: 1;
  padding: 12px var(--page-inline) 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.site-information p { margin: 0 0 10px; }
.site-information nav { display: flex; justify-content: center; gap: 10px 20px; flex-wrap: wrap; }
.site-information a { color: inherit; text-underline-offset: 3px; }
.site-information a:hover { color: var(--blue); }
.site-information a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.primary-download.availability-pill,
.rustore-badge.store-status { text-decoration: none; }

.rustore-badge.store-status:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
  border-radius: 6px;
}
