:root {
  --ink: #f8f6ee;
  --muted: rgba(248, 246, 238, 0.72);
  --deep: #070911;
  --panel: #202538;
  --line: rgba(255, 255, 255, 0.14);
  --lavender: #aaa4ff;
  --violet: #8c86e6;
  --acid: #f4f08a;
  --mist: rgba(255, 255, 255, 0.075);
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  --pointer-x: 50%;
  --pointer-y: 50%;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -8%, rgba(157, 160, 207, 0.32), transparent 36rem),
    radial-gradient(circle at 10% 18%, rgba(73, 82, 112, 0.34), transparent 28rem),
    linear-gradient(180deg, #34394b 0%, #151923 46%, #080a10 100%);
  font-family: var(--sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

body.error-page {
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(244, 240, 138, 0.13), transparent 13rem),
    radial-gradient(circle at calc(var(--pointer-x) + 12%) calc(var(--pointer-y) + 8%), rgba(170, 164, 255, 0.18), transparent 18rem);
  opacity: 0.85;
  transition: opacity 240ms ease;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(100% - 32px, 1440px);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 66px;
  margin: 0 auto 32px;
  padding: 12px 18px 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(64, 70, 96, 0.62);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(24px);
  transform: translateZ(0);
  transition: transform 260ms ease, background 260ms ease, border-color 260ms ease;
}

.topbar:hover {
  transform: translateY(-2px);
  background: rgba(72, 78, 108, 0.74);
  border-color: rgba(255, 255, 255, 0.22);
}

.brand,
.nav-links,
.nav-actions,
.phone-top,
.hero-actions,
.journal {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: 0;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: white;
  font-family: var(--serif);
  font-size: 30px;
  font-style: italic;
  transform: rotate(-14deg);
}

.nav-links {
  justify-content: center;
  gap: clamp(18px, 4vw, 58px);
  color: rgba(248, 246, 238, 0.84);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 12px 0;
}

.nav-links a:hover {
  color: white;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 4px;
  height: 1px;
  background: var(--acid);
  transition: left 240ms ease, right 240ms ease;
}

.nav-links a:hover::after {
  left: 0;
  right: 0;
}

.nav-actions {
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.pill-button,
.primary-button,
.soft-button,
.mini-pill,
.ghost-button {
  position: relative;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transform: translateZ(0);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease, background 220ms ease;
}

.pill-button::before,
.primary-button::before,
.soft-button::before,
.mini-pill::before,
.ghost-button::before,
.icon-button::before {
  content: "";
  position: absolute;
  inset: -55%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.62), transparent 42%);
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 360ms ease, transform 520ms ease;
}

.pill-button.is-pressed::before,
.primary-button.is-pressed::before,
.soft-button.is-pressed::before,
.mini-pill.is-pressed::before,
.ghost-button.is-pressed::before,
.icon-button.is-pressed::before {
  opacity: 0.55;
  transform: scale(1);
}

.pill-button,
.mini-pill {
  min-height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  color: #15151a;
  background: var(--acid);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 10px 24px rgba(244, 240, 138, 0.18);
}

.icon-button {
  position: relative;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.bag-icon {
  width: 16px;
  height: 18px;
  border: 1.6px solid currentColor;
  border-radius: 3px;
  position: relative;
}

.bag-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -6px;
  width: 6px;
  height: 7px;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 19px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease, top 260ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

body.menu-open .menu-icon {
  transform: rotate(45deg);
}

body.menu-open .menu-icon::before {
  top: 0;
  transform: rotate(90deg);
}

body.menu-open .menu-icon::after {
  top: 0;
  opacity: 0;
  transform: scaleX(0.2);
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(127, 133, 178, 0.28);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.hero {
  min-height: clamp(680px, 76vh, 860px);
  display: grid;
  place-items: center;
  padding: 120px 32px 88px;
  isolation: isolate;
  perspective: 1200px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 25% 50%;
  opacity: 0.42;
  z-index: -1;
}

.hero::after {
  background:
    radial-gradient(circle at 50% 43%, rgba(178, 173, 255, 0.68), transparent 25rem),
    linear-gradient(180deg, rgba(19, 23, 34, 0.1), rgba(10, 12, 19, 0.32));
  z-index: -1;
}

.hero-reference {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.2;
  filter: saturate(0.82) blur(1px);
  z-index: -2;
}

.hero-content {
  width: min(920px, 92%);
  margin-top: -18px;
  text-align: center;
  position: relative;
  z-index: 2;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
  animation: floatIn 900ms ease both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--acid);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  font-size: clamp(56px, 7.5vw, 108px);
  line-height: 0.96;
  text-wrap: balance;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(38px, 4.7vw, 74px);
  line-height: 1;
  text-wrap: balance;
}

h3 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy {
  width: min(520px, 100%);
  margin: 0 auto 24px;
  color: white;
  font-size: 18px;
}

.hero-actions {
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.primary-button,
.soft-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
}

.primary-button {
  color: #15151a;
  background:
    linear-gradient(180deg, rgba(255, 255, 196, 0.9), var(--acid)),
    var(--acid);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 16px 34px rgba(244, 240, 138, 0.2);
}

.primary-button:hover,
.soft-button:hover,
.pill-button:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.soft-button:active,
.pill-button:active,
.ghost-button:active,
.icon-button:active {
  transform: scale(0.96);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(248, 246, 238, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(112, 118, 157, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.ghost-button:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(142, 137, 220, 0.2);
  border-color: rgba(255, 255, 255, 0.26);
}

.floating-bud {
  position: absolute;
  width: 134px;
  aspect-ratio: 1.2;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, #eff0f7 0 12%, #8e90a2 28%, transparent 29%),
    radial-gradient(circle at 70% 58%, #0d0d14 0 28%, #2d2c3b 29% 48%, transparent 49%),
    linear-gradient(130deg, #c9cad8, #101019);
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.45));
  animation: drift 8s ease-in-out infinite;
}

.floating-bud::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 26px;
  width: 42px;
  height: 48px;
  border-radius: 50%;
  background: #0b0c12;
}

.bud-one {
  top: 22%;
  left: 42%;
  transform: rotate(-24deg);
}

.bud-two {
  top: 47%;
  left: 55%;
  transform: rotate(16deg) scale(0.9);
  animation-delay: -2s;
}

.bud-three {
  right: 18%;
  bottom: 24%;
  transform: rotate(-8deg) scale(0.72);
  opacity: 0.72;
  animation-delay: -4s;
}

.liquid-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  filter: blur(18px) saturate(1.25);
  opacity: 0.78;
}

.liquid-field span {
  position: absolute;
  width: 34vw;
  max-width: 520px;
  aspect-ratio: 1;
  border-radius: 42% 58% 53% 47%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent 18%),
    linear-gradient(135deg, rgba(169, 163, 255, 0.42), rgba(251, 250, 134, 0.16));
  mix-blend-mode: screen;
  animation: liquidMove 14s ease-in-out infinite alternate;
}

.liquid-field span:nth-child(1) {
  left: 8%;
  top: 18%;
}

.liquid-field span:nth-child(2) {
  right: 12%;
  top: 30%;
  animation-delay: -5s;
}

.liquid-field span:nth-child(3) {
  left: 38%;
  bottom: 3%;
  animation-delay: -9s;
}

.split-section,
.subscription {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 36px;
  align-items: center;
  padding: 90px 0;
}

.section-copy {
  max-width: 560px;
}

.section-copy p:not(.eyebrow) {
  font-size: 18px;
}

.phone-stage {
  min-height: 600px;
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 18px;
  align-items: end;
  overflow: hidden;
  padding: 8px 2px 18px;
}

.phone-card {
  position: relative;
  min-height: 520px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 42px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 260ms ease, filter 260ms ease;
}

.phone-card::before,
.feature::before,
.support-grid article::before,
.metric::before,
.order-form::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 28%),
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.18), transparent 15rem);
  opacity: 0;
  transition: opacity 260ms ease;
}

.phone-card:hover,
.feature:hover,
.support-grid article:hover,
.metric:hover,
.order-form:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
  filter: saturate(1.08);
}

.phone-card:hover::before,
.feature:hover::before,
.support-grid article:hover::before,
.metric:hover::before,
.order-form:hover::before {
  opacity: 1;
}

.phone-dark {
  padding-bottom: 210px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), #030305),
    radial-gradient(circle at 44% 32%, rgba(93, 92, 177, 0.46), transparent 12rem);
}

.phone-lavender {
  min-height: 580px;
  padding-bottom: 210px;
  background: linear-gradient(180deg, #aaa2ff, #837ee2);
  color: #14131c;
}

.phone-lavender p {
  color: rgba(15, 15, 23, 0.82);
}

.phone-light {
  min-height: 500px;
  padding-bottom: 180px;
  background: #f5f4ef;
  color: #17171c;
}

.phone-light p {
  color: rgba(23, 23, 28, 0.68);
}

.phone-status {
  margin-bottom: 30px;
  color: inherit;
  font-weight: 700;
}

.phone-top {
  justify-content: space-between;
  min-height: 54px;
  margin-bottom: 44px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.mini-pill {
  min-height: 34px;
  padding: 0 16px;
  font-size: 13px;
}

.ear-glow {
  position: absolute;
  top: 155px;
  left: 52%;
  width: 130px;
  height: 170px;
  border-radius: 60% 40% 45% 55%;
  background:
    radial-gradient(circle at 43% 52%, #9db9ff 0 6%, transparent 7%),
    radial-gradient(circle at 46% 52%, #151827 0 22%, transparent 23%),
    radial-gradient(circle at 49% 52%, rgba(124, 126, 239, 0.7), transparent 50%);
  transform: translateX(-50%) rotate(-22deg);
}

.phone-bottom {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 34px;
}

.soft-button {
  color: #1d1c24;
  background: rgba(255, 255, 255, 0.42);
}

.product-tile {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  min-height: 160px;
  padding: 22px;
  border-radius: 18px;
  color: white;
  background: #12111d;
  overflow: hidden;
}

.product-tile span {
  font-family: var(--serif);
  font-size: 42px;
}

.bud-render {
  position: absolute;
  right: -16px;
  bottom: -18px;
  width: 180px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 42%, #6c65e7 0 13%, transparent 14%),
    radial-gradient(circle at 62% 50%, #11121b 0 27%, transparent 28%),
    linear-gradient(135deg, #c7c8d6, #1b1c2f);
}

.reference-slice {
  height: 260px;
  margin: -28px -24px 24px;
  overflow: hidden;
}

.reference-slice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 38%;
}

.phone-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 34px;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--line);
}

.feature {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 360ms ease, background 260ms ease;
}

.feature span {
  display: block;
  margin-bottom: 54px;
  color: var(--lavender);
  font-family: var(--serif);
  font-size: 36px;
}

.clinical {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: end;
  margin: 90px 0 0;
  padding: 64px;
  background:
    linear-gradient(180deg, rgba(6, 8, 13, 0.1), rgba(6, 8, 13, 0.82)),
    url("assets/desktop-reference.jpg") center / cover;
}

.metric-grid {
  display: grid;
  gap: 14px;
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(3, 4, 8, 0.44);
  backdrop-filter: blur(18px);
}

.metric strong {
  display: block;
  color: white;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
}

.metric span {
  color: var(--muted);
}

.subscription {
  align-items: start;
}

.order-form {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
}

label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
select {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 0 16px;
  color: white;
  background: rgba(4, 6, 10, 0.5);
  outline: 0;
}

select option {
  background: #151820;
}

input:focus,
select:focus {
  border-color: var(--lavender);
  box-shadow: 0 0 0 4px rgba(169, 163, 255, 0.14);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--acid);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.support-grid article {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.journal {
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 82px 0 20px;
}

.journal h2 {
  margin-bottom: 0;
}

.text-link {
  color: white;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(251, 250, 134, 0.75);
  text-underline-offset: 5px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -18px;
  }
}

@keyframes liquidMove {
  0% {
    transform: translate3d(-4%, 2%, 0) rotate(0deg) scale(1);
    border-radius: 42% 58% 53% 47%;
  }
  50% {
    transform: translate3d(8%, -6%, 0) rotate(38deg) scale(1.12);
    border-radius: 58% 42% 48% 52%;
  }
  100% {
    transform: translate3d(-2%, 5%, 0) rotate(70deg) scale(0.94);
    border-radius: 48% 52% 61% 39%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.order-dialog {
  width: min(92vw, 460px);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  color: var(--ink);
  background: rgba(20, 22, 31, 0.94);
  box-shadow: var(--shadow);
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  transition: opacity 280ms ease, backdrop-filter 280ms ease;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(100%, 440px);
  padding: 14px;
  pointer-events: none;
  transform: translateX(104%);
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.cart-open {
  overflow: hidden;
}

body.cart-open .cart-drawer {
  pointer-events: auto;
  transform: translateX(0);
}

body.cart-open .cart-backdrop {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.cart-panel {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(68, 74, 103, 0.88), rgba(16, 19, 30, 0.9)),
    rgba(18, 21, 31, 0.88);
  box-shadow: -24px 0 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  backdrop-filter: blur(26px);
}

.cart-panel::before {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 18%, rgba(244, 240, 138, 0.18), transparent 18rem),
    radial-gradient(circle at 80% 42%, rgba(170, 164, 255, 0.22), transparent 17rem);
}

.cart-header,
.cart-row,
.cart-total {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-header h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 48px);
}

.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.075);
}

.cart-item h3 {
  margin-bottom: 8px;
  font-size: 25px;
}

.cart-item p {
  margin-bottom: 10px;
  font-size: 14px;
}

.cart-item strong,
.cart-row strong,
.cart-total strong {
  color: white;
}

.cart-thumb {
  position: relative;
  min-height: 104px;
  border-radius: 18px;
  background: linear-gradient(145deg, #191a27, #34375a);
  overflow: hidden;
}

.cart-thumb .bud-render {
  right: -40px;
  bottom: -10px;
  width: 150px;
  height: 100px;
}

.cart-row {
  min-height: 58px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 38px 42px 38px;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.quantity-control button {
  width: 38px;
  height: 40px;
  border: 0;
  color: white;
  background: transparent;
  cursor: pointer;
}

.quantity-control button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.quantity-control strong {
  text-align: center;
}

.cart-total {
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
}

.cart-total strong {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
}

.cart-order {
  width: 100%;
}

.cart-note {
  position: relative;
  margin: 0;
  font-size: 13px;
  text-align: center;
}

.error-shell {
  width: min(100% - 32px, 1120px);
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 32px 0;
}

.error-card {
  width: 100%;
  min-height: min(760px, calc(100vh - 64px));
  display: grid;
  place-items: center;
  padding: 110px 28px 80px;
  text-align: center;
  isolation: isolate;
}

.error-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 25% 50%;
  opacity: 0.38;
  z-index: -1;
}

.error-card h1 {
  max-width: 780px;
  font-size: clamp(54px, 8vw, 104px);
}

.error-brand {
  position: absolute;
  top: 28px;
  left: 28px;
}

.error-card .bud-one {
  top: 22%;
  left: 16%;
}

.error-card .bud-two {
  top: auto;
  left: auto;
  right: 14%;
  bottom: 20%;
}

.order-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.close-dialog {
  position: absolute;
  top: 14px;
  right: 14px;
}

body.menu-open .nav-links {
  display: flex;
}

@media (max-width: 980px) {
  .site-shell {
    width: min(100% - 20px, 760px);
    padding-top: 12px;
  }

  .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
    border-radius: 28px;
    gap: 14px;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 10px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(25, 29, 42, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(22px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.97);
    transform-origin: top right;
    transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 260ms ease;
  }

  body.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    border-color: rgba(255, 255, 255, 0.24);
  }

  .nav-links a {
    padding: 14px;
    border-radius: 14px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 260ms ease, transform 260ms ease, background 220ms ease;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  body.menu-open .nav-links a {
    opacity: 1;
    transform: translateY(0);
  }

  body.menu-open .nav-links a:nth-child(1) {
    transition-delay: 45ms;
  }

  body.menu-open .nav-links a:nth-child(2) {
    transition-delay: 80ms;
  }

  body.menu-open .nav-links a:nth-child(3) {
    transition-delay: 115ms;
  }

  body.menu-open .nav-links a:nth-child(4) {
    transition-delay: 150ms;
  }

  body.menu-open .nav-links a:nth-child(5) {
    transition-delay: 185ms;
  }

  .hero {
    min-height: 680px;
    border-radius: 28px;
    padding: 116px 22px 72px;
  }

  .hero-content {
    margin-top: 0;
    width: min(680px, 100%);
  }

  .floating-bud {
    width: 96px;
  }

  .bud-one {
    top: 18%;
    left: 18%;
  }

  .bud-two {
    top: 34%;
    left: 62%;
  }

  .bud-three {
    display: none;
  }

  .split-section,
  .subscription,
  .clinical {
    grid-template-columns: 1fr;
  }

  .split-section,
  .subscription {
    gap: 28px;
  }

  .phone-stage {
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .phone-card {
    scroll-snap-align: center;
  }

  .feature-band,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .clinical {
    padding: 34px;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 62px;
    padding: 10px 10px 10px 18px;
  }

  .pill-button {
    display: none;
  }

  .nav-actions {
    gap: 4px;
  }

  .hero {
    min-height: 640px;
  }

  .clinical {
    margin-top: 66px;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 16px, 420px);
  }

  .brand {
    font-size: 20px;
    gap: 8px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
    font-size: 26px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 590px;
    padding: 96px 16px 56px;
  }

  h1 {
    font-size: clamp(40px, 12.8vw, 58px);
    line-height: 1;
    margin-bottom: 22px;
  }

  h2 {
    font-size: clamp(36px, 11vw, 44px);
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button {
    min-width: 142px;
    min-height: 50px;
    padding: 0 22px;
    font-size: 14px;
  }

  .split-section,
  .subscription {
    padding: 56px 0;
  }

  .phone-stage {
    min-height: 540px;
    grid-template-columns: repeat(3, minmax(252px, 82vw));
    gap: 12px;
  }

  .phone-card {
    min-height: 500px;
    padding: 24px 20px;
    border-radius: 34px;
  }

  .phone-lavender {
    min-height: 540px;
  }

  .phone-top {
    margin-bottom: 34px;
  }

  .floating-bud {
    width: 76px;
  }

  .bud-one {
    top: 17%;
    left: 10%;
  }

  .bud-two {
    top: 27%;
    left: 67%;
  }

  .liquid-field span {
    width: 72vw;
  }

  .feature {
    min-height: 210px;
    padding: 28px;
  }

  .feature span {
    margin-bottom: 34px;
  }

  .clinical {
    padding: 28px 22px;
    border-radius: 28px;
  }

  .order-form,
  .support-grid article {
    padding: 22px;
    border-radius: 22px;
  }

  .journal {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 58px;
  }

  .error-shell {
    width: min(100% - 16px, 420px);
    padding: 12px 0;
  }

  .error-card {
    min-height: calc(100vh - 24px);
    padding: 104px 18px 54px;
    border-radius: 28px;
  }

  .error-card h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .error-brand {
    top: 20px;
    left: 20px;
  }

  .error-card .bud-one {
    left: 8%;
  }

  .error-card .bud-two {
    right: 7%;
    bottom: 15%;
  }

  .cart-drawer {
    width: 100%;
    padding: 8px;
  }

  .cart-panel {
    padding: 22px;
    border-radius: 26px;
  }

  .cart-item {
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .cart-thumb {
    min-height: 88px;
  }

  .cart-item h3 {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .brand span:last-child {
    max-width: 104px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .soft-button,
  .ghost-button {
    justify-content: center;
    width: 100%;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button {
    min-width: 100%;
  }
}
