:root {
  color-scheme: dark;
  --font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-text: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --color-bg: #050706;
  --color-bg-deep: #020303;
  --color-surface: #0c1210;
  --color-surface-soft: #111a16;
  --color-ink: #f2eee5;
  --color-muted: #a7ada3;
  --color-muted-strong: #d4d4ca;
  --color-line: rgba(242, 238, 229, 0.14);
  --color-line-strong: rgba(242, 238, 229, 0.24);
  --color-accent: #c98145;
  --color-accent-strong: #eba863;
  --color-green: #647562;
  --color-danger: #ffb39f;
  --color-success: #b9daa7;
  --shadow-deep: 0 24px 90px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --container: 1120px;
}

html[data-theme="light"] {
  color-scheme: light;
  --color-bg: #f4f0e8;
  --color-bg-deep: #e8dfd1;
  --color-surface: #fffaf1;
  --color-surface-soft: #efe8dc;
  --color-ink: #171a15;
  --color-muted: #697166;
  --color-muted-strong: #333a31;
  --color-line: rgba(23, 26, 21, 0.15);
  --color-line-strong: rgba(23, 26, 21, 0.26);
  --color-accent: #b46632;
  --color-accent-strong: #7d4320;
  --color-green: #65755d;
  --color-danger: #9c321f;
  --color-success: #315f27;
  --shadow-deep: 0 24px 80px rgba(55, 45, 32, 0.16);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(201, 129, 69, 0.32);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% -10%, rgba(100, 117, 98, 0.26), transparent 34rem),
    linear-gradient(180deg, #08100d 0%, var(--color-bg) 46%, var(--color-bg-deep) 100%);
  content: "";
}

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

picture {
  display: contents;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(235, 168, 99, 0.5);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 10px 14px;
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section-pad {
  padding: 76px 0;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: 2.85rem;
  max-width: 14ch;
}

h2 {
  font-size: 2.1rem;
  max-width: 17ch;
}

h3 {
  font-size: 1.35rem;
}

.eyebrow,
.card-code {
  color: var(--color-accent-strong);
  font-family: var(--font-text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 15px 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  position: relative;
  overflow: hidden;
  background: var(--color-accent);
  color: #160e08;
  box-shadow: 0 18px 42px rgba(201, 129, 69, 0.22);
}

.button-primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  transition: left 700ms ease;
  pointer-events: none;
}

.button-primary:hover {
  background: var(--color-accent-strong);
}

.button-primary:hover::before {
  left: 130%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(242, 238, 229, 0.08);
  background: rgba(5, 7, 6, 0.68);
  padding: 12px 16px;
  backdrop-filter: blur(18px);
}

.site-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.brand-logo,
.brand-wordmark,
.footer-brand {
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.brand-logo {
  display: inline-flex;
  flex: 0 1 245px;
  width: clamp(150px, 46vw, 245px);
  min-width: 0;
  align-items: center;
}

.brand-logo img {
  width: 100%;
  height: auto;
}

.drop-label {
  display: none;
  flex: 0 0 auto;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-muted-strong);
  padding: 8px 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.drop-label:hover {
  border-color: rgba(235, 168, 99, 0.42);
  color: var(--color-ink);
}

.theme-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  flex: 0 0 auto;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(2, 3, 3, 0.36);
  padding: 3px;
  backdrop-filter: blur(16px);
}

.theme-switch button {
  min-height: 30px;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted-strong);
  cursor: pointer;
  padding: 0 9px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.theme-switch button[aria-pressed="true"] {
  background: var(--color-ink);
  color: var(--color-bg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.theme-switch button:not([aria-pressed="true"]):hover {
  background: rgba(242, 238, 229, 0.1);
  color: var(--color-ink);
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  border-radius: var(--radius);
  color: var(--color-muted-strong);
  padding: 8px 10px;
  font-size: 0.84rem;
  font-weight: 500;
}

.site-nav a:hover {
  background: rgba(242, 238, 229, 0.08);
  color: var(--color-ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.94) 0%, rgba(5, 7, 6, 0.72) 42%, rgba(5, 7, 6, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 7, 6, 0.12) 0%, rgba(5, 7, 6, 0.54) 54%, var(--color-bg) 100%),
    radial-gradient(circle at 72% 22%, rgba(201, 129, 69, 0.12), transparent 26rem),
    radial-gradient(circle at 28% 10%, rgba(100, 117, 98, 0.2), transparent 30rem),
    image-set(url("/assets/img/hero/dark-water-fog.webp") type("image/webp"), url("/assets/img/hero/dark-water-fog.jpg") type("image/jpeg")) center / cover no-repeat,
    var(--color-bg);
  padding: 112px 0 44px;
}

.atmosphere,
.atmosphere span {
  position: absolute;
  pointer-events: none;
}

.atmosphere {
  inset: 0;
}

.mist {
  left: -20%;
  right: -20%;
  height: 34vh;
  filter: blur(24px);
  opacity: 0.28;
}

.mist-one {
  top: 18%;
  background: linear-gradient(90deg, transparent, rgba(242, 238, 229, 0.22), transparent);
  animation: mistDrift 19s ease-in-out infinite alternate;
}

.mist-two {
  bottom: 12%;
  background: linear-gradient(90deg, transparent, rgba(100, 117, 98, 0.24), transparent);
  animation: mistDrift 26s ease-in-out infinite alternate-reverse;
}

.ripple {
  right: -34vw;
  bottom: 9vh;
  width: 92vw;
  aspect-ratio: 1.65;
  border: 1px solid rgba(242, 238, 229, 0.05);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 34px rgba(242, 238, 229, 0.018),
    inset 0 0 0 78px rgba(242, 238, 229, 0.014),
    inset 0 0 0 126px rgba(242, 238, 229, 0.01);
}

.ripple-one {
  animation: rippleBreathe 14s ease-in-out infinite alternate;
}

.ripple-two {
  right: auto;
  left: -58vw;
  bottom: 36vh;
  width: 96vw;
  opacity: 0.42;
  animation: rippleBreathe 18s ease-in-out infinite alternate-reverse;
}

.grain {
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(115deg, transparent 0 47%, rgba(242, 238, 229, 0.035) 48%, transparent 56%),
    repeating-linear-gradient(178deg, rgba(242, 238, 229, 0.024) 0 1px, transparent 1px 18px);
}

/* --- Hero entrance ------------------------------------------------ */

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.js .hero-entrance > * {
  opacity: 0;
  animation: heroRise 950ms cubic-bezier(0.22, 0.61, 0.25, 1) forwards;
}

.js .hero-entrance > *:nth-child(1) {
  animation-delay: 140ms;
}

.js .hero-entrance > *:nth-child(2) {
  animation-delay: 300ms;
}

.js .hero-entrance > *:nth-child(3) {
  animation-delay: 470ms;
}

.js .hero-entrance > *:nth-child(4) {
  animation-delay: 620ms;
}

.js .hero-entrance-card {
  opacity: 0;
  animation: heroRise 1100ms cubic-bezier(0.22, 0.61, 0.25, 1) 780ms forwards;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: rgba(242, 238, 229, 0.66);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--color-accent-strong), transparent);
  animation: cueDrop 2.4s ease-in-out infinite;
}

.js .scroll-cue {
  opacity: 0;
  animation: heroRise 900ms ease 1250ms forwards;
}

@keyframes cueDrop {
  0% {
    opacity: 0;
    transform: translateY(-10px) scaleY(0.4);
  }
  45% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translateY(12px) scaleY(0.6);
  }
}

.scroll-cue:hover {
  color: var(--color-accent-strong);
}

/* --- Announcement marquee ----------------------------------------- */

.announce-strip {
  overflow: hidden;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg-deep);
  padding: 15px 0;
}

.announce-track {
  display: flex;
  width: max-content;
  animation: marqueeDrift 38s linear infinite;
}

.announce-strip:hover .announce-track {
  animation-play-state: paused;
}

.announce-group {
  display: flex;
  align-items: center;
}

.announce-group span {
  display: inline-flex;
  align-items: center;
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.announce-group span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  margin: 0 34px;
  opacity: 0.85;
}

@keyframes marqueeDrift {
  to {
    transform: translateX(-50%);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - 32px), var(--container));
  gap: 34px;
  margin: 0 auto;
}

.hero-copy {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.hero-subheadline {
  max-width: 320px;
  color: var(--color-muted);
  font-size: 1.06rem;
}

.hero-copy .button {
  width: 100%;
  max-width: 320px;
  margin-top: 8px;
}

.hero-dossier {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  max-width: 360px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(5, 7, 6, 0.58);
  box-shadow: var(--shadow-deep);
  padding: 18px;
  backdrop-filter: blur(16px);
}

.hero-dossier::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(242, 238, 229, 0.07);
  border-radius: var(--radius);
  content: "";
  pointer-events: none;
}

.hero-dossier-mark {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 108px;
  opacity: 0.08;
}

.hero-dossier-preview {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 180px;
  border: 1px solid rgba(242, 238, 229, 0.12);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 54%;
}

.hero-dossier div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  border-left: 1px solid rgba(235, 168, 99, 0.42);
  color: var(--color-muted);
  padding-left: 14px;
}

.hero-dossier span {
  color: var(--color-accent-strong);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.split-layout,
.waitlist-layout {
  display: grid;
  gap: 28px;
}

.section-copy,
.waitlist-copy,
.section-head,
.future-panel {
  display: grid;
  gap: 16px;
}

.section-copy p,
.section-head p,
.waitlist-copy p,
.future-panel p {
  color: var(--color-muted);
  font-size: 1.06rem;
}

.section-copy p:first-child {
  color: var(--color-muted-strong);
}

.mood-feature {
  position: relative;
  display: grid;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(460px, 68svh, 720px);
  color: #f7f5ef;
  background: #78909a;
}

.mood-feature::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.46), rgba(5, 7, 6, 0.03) 72%),
    linear-gradient(180deg, transparent 48%, rgba(3, 5, 4, 0.54) 100%);
  content: "";
  pointer-events: none;
}

.mood-feature > img,
.mood-feature > picture img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  animation: kenBurns 26s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08) translateX(-1.2%);
  }
}

.mood-feature-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 88px;
  padding-bottom: 42px;
}

.mood-feature-copy h2 {
  max-width: 11ch;
  color: #f7f5ef;
}

.mood-feature-copy > p:last-child {
  max-width: 520px;
  color: rgba(247, 245, 239, 0.82);
  font-size: 1.05rem;
}

.mood-studies {
  background:
    radial-gradient(circle at 82% 4%, rgba(100, 117, 98, 0.12), transparent 28rem),
    var(--color-bg-deep);
}

.mood-studies .section-head {
  max-width: 760px;
}

.mood-studies .section-head h2 {
  max-width: 13ch;
}

.mood-study-grid {
  display: grid;
  gap: 30px;
}

.mood-study {
  display: grid;
  gap: 12px;
  margin: 0;
  border-top: 1px solid var(--color-line);
  padding-top: 12px;
}

.mood-study img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.mood-study figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.mood-study figcaption span {
  color: var(--color-ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mood-study figcaption small {
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.products {
  background:
    radial-gradient(circle at 70% 0%, rgba(201, 129, 69, 0.12), transparent 26rem),
    linear-gradient(180deg, var(--color-bg), #07100d 48%, var(--color-bg));
}

.section-head {
  margin-bottom: 28px;
}

.products .section-head {
  max-width: 760px;
}

.products .section-head h2 {
  max-width: 13ch;
}

.products .section-head p:not(.eyebrow) {
  max-width: 640px;
  color: var(--color-muted);
}

.snippet-grid {
  display: grid;
  grid-auto-columns: minmax(250px, 78vw);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  margin-top: 30px;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--color-line-strong) transparent;
}

.snippet-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 3 / 4;
  margin: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #050706;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
  scroll-snap-align: start;
}

.snippet-card::before,
.snippet-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.snippet-card::before {
  z-index: 2;
  inset: 10px;
  border: 1px solid rgba(242, 238, 229, 0.16);
  border-radius: calc(var(--radius) - 2px);
}

.snippet-card::after {
  z-index: 1;
  inset: 34% 0 0;
  background: linear-gradient(180deg, transparent, rgba(2, 3, 3, 0.88));
}

.snippet-card picture {
  position: absolute;
  inset: 0;
}

.snippet-card img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--card-zoom, 1));
  transition: transform 1200ms cubic-bezier(0.19, 0.6, 0.22, 1);
}

.snippet-card:hover img,
.snippet-card:focus-within img {
  transform: scale(calc(var(--card-zoom, 1) * 1.06));
}

.snippet-card:nth-child(-n + 3) {
  --card-zoom: 1.2;
}

.snippet-card:nth-child(4) img {
  object-position: 50% 54%;
}

.snippet-card:nth-child(5) img {
  object-position: 50% 58%;
}

.snippet-card:nth-child(6) img,
.snippet-card:nth-child(7) img,
.snippet-card:nth-child(8) img {
  object-position: 54% 50%;
}

.snippet-card figcaption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 5px;
  color: #f2eee5;
  padding: 64px 20px 20px;
}

.snippet-card figcaption strong {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}

.snippet-card figcaption small {
  color: rgba(242, 238, 229, 0.72);
  font-size: 0.78rem;
  line-height: 1.45;
}

.snippet-index {
  color: #f1aa68;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.snippet-note {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  border-top: 1px solid var(--color-line);
  padding-top: 20px;
}

.snippet-note p {
  max-width: 640px;
  color: var(--color-muted);
}

.snippet-note a {
  width: fit-content;
  border-bottom: 1px solid var(--color-accent-strong);
  color: var(--color-ink);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.snippet-note-character {
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.snippet-note-body {
  display: grid;
  gap: 12px;
}

.campaign-cameo,
.campaign-frame {
  margin: 0;
}

.campaign-cameo {
  display: grid;
  gap: 8px;
}

.campaign-cameo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 34%;
}

.campaign-cameo figcaption,
.campaign-frame figcaption {
  color: var(--color-muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.waitlist {
  background:
    radial-gradient(circle at 20% 10%, rgba(100, 117, 98, 0.14), transparent 26rem),
    var(--color-bg);
}

.privacy-note {
  color: var(--color-accent-strong) !important;
  font-size: 0.95rem !important;
  font-weight: 500;
}

.waitlist-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(12, 18, 16, 0.9);
  box-shadow: var(--shadow-deep);
  padding: 18px;
}

.field-row {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

label {
  color: var(--color-ink);
  font-size: 0.88rem;
  font-weight: 500;
}

label span {
  color: var(--color-accent-strong);
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(242, 238, 229, 0.16);
  border-radius: var(--radius);
  background: rgba(2, 3, 3, 0.66);
  color: var(--color-ink);
  padding: 12px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 42px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(235, 168, 99, 0.72);
  background: rgba(2, 3, 3, 0.82);
  box-shadow: 0 0 0 4px rgba(235, 168, 99, 0.1);
  outline: 0;
}

.has-error {
  border-color: rgba(255, 179, 159, 0.76) !important;
}

.field-error {
  color: var(--color-danger);
  font-size: 0.86rem;
  font-weight: 500;
}

.form-alert {
  color: var(--color-muted);
  font-weight: 500;
}

.form-alert:empty {
  display: none;
}

.form-alert-error {
  border: 1px solid rgba(255, 179, 159, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 179, 159, 0.08);
  color: var(--color-danger);
  padding: 12px;
}

.form-alert-success {
  border: 1px solid rgba(185, 218, 167, 0.32);
  border-radius: var(--radius);
  background: rgba(185, 218, 167, 0.08);
  color: var(--color-success);
  padding: 12px;
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(242, 238, 229, 0.1);
  border-radius: var(--radius);
  background: rgba(242, 238, 229, 0.04);
  padding: 12px;
}

.consent input {
  width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--color-accent);
}

.consent span {
  color: var(--color-muted-strong);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
}

.consent-optional {
  background: rgba(242, 238, 229, 0.025);
}

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

.field-trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  border: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.form-submit {
  width: 100%;
}

.form-submit[disabled] {
  cursor: wait;
  opacity: 0.76;
  transform: none;
}

.form-microcopy {
  color: var(--color-muted);
  font-size: 0.86rem;
}

.future {
  background: var(--color-bg-deep);
}

.future-panel {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  grid-template-columns: 1fr;
  padding: 34px 0;
}

.future-panel > div {
  max-width: 780px;
}

.future-panel-character {
  gap: 34px;
}

.campaign-frame {
  display: grid;
  width: min(76vw, 250px);
  gap: 10px;
  justify-self: end;
}

.campaign-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 50%;
}

.campaign-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.campaign-frame figcaption span {
  color: var(--color-ink);
}

.campaign-frame figcaption small {
  color: var(--color-muted);
  font-size: inherit;
  text-align: right;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: #020303;
  padding: 54px 0 26px;
}

.footer-grid {
  display: grid;
  gap: 34px 24px;
}

.footer-brand-block {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-brand-block .footer-brand {
  display: inline-flex;
  width: min(100%, 250px);
}

.footer-brand img {
  width: 100%;
  height: auto;
}

.footer-brand-block p {
  max-width: 30ch;
}

.footer-column {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 9px;
}

.footer-column h2 {
  max-width: none;
  margin-bottom: 4px;
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-column a,
.footer-column button {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  padding: 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
}

.site-footer p,
.footer-bottom address {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 400;
}

.footer-column a:hover,
.footer-column button:hover {
  color: var(--color-ink);
}

.footer-bottom {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--color-line);
  margin-top: 42px;
  padding-top: 20px;
}

.footer-bottom address {
  max-width: 1000px;
}

.cookie-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 100;
  padding: 8px;
  pointer-events: none;
}

.cookie-banner {
  width: min(calc(100% - 4px), 520px);
  max-height: min(70svh, 560px);
  overflow-y: auto;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  margin: 0 0 0 auto;
  background: rgba(12, 18, 16, 0.98);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.56);
  padding: 14px 16px;
  pointer-events: auto;
  backdrop-filter: blur(18px);
}

.cookie-banner [data-cookie-summary],
.cookie-preferences {
  display: grid;
  gap: 9px;
}

.cookie-banner h2 {
  max-width: none;
  font-size: 1.18rem;
  line-height: 1.15;
}

.cookie-banner p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--color-accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 2px;
}

.cookie-banner [data-cookie-summary] .cookie-button.secondary {
  grid-column: 1 / -1;
}

.cookie-button,
.cookie-close {
  min-height: 38px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 600;
}

.cookie-button.secondary,
.cookie-close {
  background: transparent;
  color: var(--color-ink);
}

.cookie-preferences-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.cookie-close {
  min-height: 32px;
  padding: 5px 8px;
}

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--color-line);
  padding: 10px 0 0;
}

.cookie-category > span {
  display: grid;
  gap: 3px;
}

.cookie-category strong {
  color: var(--color-ink);
  font-size: 0.84rem;
}

.cookie-category small {
  color: var(--color-muted);
  font-size: 0.73rem;
  font-weight: 400;
}

.cookie-category input {
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--color-accent);
}

.cookie-noscript {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 100;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-muted);
  padding: 12px;
}

.content-page {
  padding: 130px 0 80px;
}

.prose {
  max-width: 800px;
}

.legal-updated {
  color: var(--color-muted);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose h1 {
  margin-top: 14px;
  font-size: 2.4rem;
}

.prose p {
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.legal-prose h2 {
  max-width: 24ch;
  margin-top: 44px;
  font-size: 1.65rem;
}

.legal-prose address {
  margin-top: 16px;
  color: var(--color-muted);
  font-style: normal;
}

.policy-table-wrap {
  overflow-x: auto;
  margin-top: 28px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.policy-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.policy-table th,
.policy-table td {
  border-bottom: 1px solid var(--color-line);
  color: var(--color-muted);
  padding: 14px;
  vertical-align: top;
}

.policy-table th {
  color: var(--color-ink);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.policy-table tbody tr:last-child td {
  border-bottom: 0;
}

.contact-panel {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-panel div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 16px;
}

.contact-panel span {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose a:not(.button) {
  color: var(--color-accent-strong);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(235, 168, 99, 0.4);
  text-underline-offset: 3px;
}

.prose .button {
  margin-top: 28px;
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(circle at 50% -10%, rgba(180, 102, 50, 0.16), transparent 34rem),
    linear-gradient(180deg, #fbf7ef 0%, var(--color-bg) 52%, var(--color-bg-deep) 100%);
}

html[data-theme="light"] .site-header {
  border-bottom-color: rgba(23, 26, 21, 0.12);
  background: rgba(246, 242, 233, 0.8);
}

html[data-theme="light"] .brand-logo img,
html[data-theme="light"] .footer-brand img,
html[data-theme="light"] .minimal-card > img {
  filter: invert(1);
}

html[data-theme="light"] .theme-switch {
  background: rgba(255, 250, 241, 0.62);
}

html[data-theme="light"] .hero {
  color: #f2eee5;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.9) 0%, rgba(5, 7, 6, 0.66) 42%, rgba(5, 7, 6, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 7, 6, 0.08) 0%, rgba(5, 7, 6, 0.48) 54%, var(--color-bg) 100%),
    radial-gradient(circle at 72% 22%, rgba(201, 129, 69, 0.12), transparent 26rem),
    radial-gradient(circle at 28% 10%, rgba(100, 117, 98, 0.2), transparent 30rem),
    image-set(url("/assets/img/hero/dark-water-fog.webp") type("image/webp"), url("/assets/img/hero/dark-water-fog.jpg") type("image/jpeg")) center / cover no-repeat,
    #050706;
}

html[data-theme="light"] .hero-subheadline,
html[data-theme="light"] .hero-dossier p {
  color: #d4d4ca;
}

html[data-theme="light"] .hero-dossier {
  border-color: rgba(242, 238, 229, 0.14);
  background: rgba(5, 7, 6, 0.62);
}

html[data-theme="light"] .products {
  background:
    radial-gradient(circle at 70% 0%, rgba(180, 102, 50, 0.12), transparent 26rem),
    linear-gradient(180deg, var(--color-bg), #fbf7ef 48%, var(--color-bg));
}

html[data-theme="light"] .mood-studies {
  background:
    radial-gradient(circle at 82% 4%, rgba(100, 117, 98, 0.1), transparent 28rem),
    var(--color-bg-deep);
}

html[data-theme="light"] .snippet-card {
  border-color: rgba(23, 26, 21, 0.14);
  box-shadow: 0 20px 70px rgba(55, 45, 32, 0.14);
}

html[data-theme="light"] .waitlist {
  background:
    radial-gradient(circle at 20% 10%, rgba(100, 117, 98, 0.12), transparent 26rem),
    var(--color-bg);
}

html[data-theme="light"] .waitlist-form,
html[data-theme="light"] .minimal-card {
  background: rgba(255, 250, 241, 0.9);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  border-color: rgba(23, 26, 21, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(180, 102, 50, 0.12);
}

html[data-theme="light"] .consent {
  border-color: rgba(23, 26, 21, 0.1);
  background: rgba(23, 26, 21, 0.035);
}

html[data-theme="light"] .future {
  background: var(--color-bg-deep);
}

html[data-theme="light"] .site-footer {
  background: #eee7dc;
}

html[data-theme="light"] .announce-strip {
  background: #efe6d8;
}

html[data-theme="light"] .announce-group span {
  color: var(--color-muted-strong);
}

html[data-theme="light"] .theme-switch button:not([aria-pressed="true"]):hover {
  background: rgba(23, 26, 21, 0.08);
}

html[data-theme="light"] .cookie-banner {
  background: rgba(255, 250, 241, 0.98);
  box-shadow: 0 24px 80px rgba(55, 45, 32, 0.2);
}

html[data-theme="light"] .minimal-page {
  background:
    radial-gradient(circle at 50% -12%, rgba(180, 102, 50, 0.18), transparent 30rem),
    var(--color-bg);
}

.minimal-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 28px;
}

.minimal-card {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 720px;
  gap: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(12, 18, 16, 0.88);
  box-shadow: var(--shadow-deep);
  padding: 28px;
}

.minimal-card img {
  width: min(100%, 260px);
}

.minimal-card h1 {
  font-size: 2.25rem;
  max-width: none;
}

.minimal-card p:not(.eyebrow):not(.kicker) {
  color: var(--color-muted);
}

.minimal-action-form {
  display: grid;
  gap: 12px;
}

.brand-mark {
  width: min(58vw, 210px);
}

.brand-mark img {
  width: 100%;
}

.fog {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 36vh;
  filter: blur(22px);
  opacity: 0.28;
  pointer-events: none;
}

.fog-a {
  top: 18%;
  background: linear-gradient(90deg, transparent, rgba(242, 238, 229, 0.22), transparent);
  animation: mistDrift 18s ease-in-out infinite alternate;
}

.kicker {
  color: var(--color-accent-strong);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.js [data-reveal] {
  transform: translateY(26px);
  opacity: 0;
  transition:
    opacity 720ms ease var(--reveal-delay, 0ms),
    transform 720ms cubic-bezier(0.22, 0.61, 0.25, 1) var(--reveal-delay, 0ms);
}

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

@keyframes mistDrift {
  from {
    transform: translate3d(-5%, 0, 0);
  }
  to {
    transform: translate3d(5%, 0, 0);
  }
}

@keyframes rippleBreathe {
  from {
    transform: scale(0.98);
    opacity: 0.52;
  }
  to {
    transform: scale(1.04);
    opacity: 0.78;
  }
}

@media (min-width: 680px) {
  .container,
  .hero-inner {
    width: min(calc(100% - 56px), var(--container));
  }

  .drop-label {
    display: inline-flex;
  }

  h1 {
    font-size: 4.1rem;
  }

  h2 {
    font-size: 2.9rem;
  }

  .hero-copy .button {
    width: auto;
  }

  .hero-subheadline {
    max-width: 560px;
  }

  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .snippet-grid {
    grid-auto-columns: initial;
    grid-auto-flow: initial;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .mood-study-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .waitlist-form {
    padding: 26px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .cookie-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cookie-banner [data-cookie-summary] .cookie-button.secondary {
    grid-column: auto;
  }

  .cookie-preferences .cookie-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prose h1,
  .minimal-card h1 {
    font-size: 3.1rem;
  }
}

@media (max-width: 460px) {
  .site-header {
    gap: 8px;
    min-height: 66px;
    padding: 11px 14px;
  }

  .brand-logo {
    width: clamp(145px, 42vw, 180px);
  }

  .site-actions {
    gap: 8px;
  }

  .site-nav {
    display: none;
  }

  .theme-switch button {
    min-height: 28px;
    padding: 0 6px;
    font-size: 0.58rem;
  }

  .hero {
    padding-top: 92px;
  }

  .hero-inner {
    gap: 26px;
  }

  .scroll-cue {
    display: none;
  }

  .announce-group span {
    font-size: 0.62rem;
  }
}

@media (min-width: 960px) {
  .section-pad {
    padding: 112px 0;
  }

  .site-header {
    padding: 14px 28px;
  }

  .hero {
    align-items: center;
    padding: 116px 0 62px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: end;
    gap: 72px;
  }

  h1 {
    font-size: 5.3rem;
  }

  h2 {
    font-size: 3.6rem;
  }

  .split-layout,
  .waitlist-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.72fr);
    gap: 76px;
  }

  .waitlist-copy {
    position: sticky;
    top: 110px;
  }

  .snippet-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .mood-feature-copy {
    padding-bottom: 72px;
  }

  .mood-study img {
    aspect-ratio: 16 / 10;
  }

  .snippet-note {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    margin-top: 42px;
  }

  .snippet-note-character {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .snippet-note-body {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: minmax(230px, 1.4fr) repeat(5, minmax(105px, 0.66fr));
  }

  .footer-brand-block {
    grid-column: auto;
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .future-panel {
    grid-template-columns: minmax(0, 780px);
    align-items: center;
  }

  .future-panel-character {
    grid-template-columns: minmax(0, 780px) 260px;
    justify-content: space-between;
    gap: 72px;
  }

  .campaign-frame {
    width: 260px;
  }

  .prose h1,
  .minimal-card h1 {
    font-size: 3.9rem;
  }
}

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

  .js [data-reveal] {
    transform: none;
    opacity: 1;
  }
}

/* Mascot cameos */
.minimal-cameo {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: 4px 0 0;
}

.minimal-cameo img {
  width: min(100%, 170px);
  height: auto;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 18%;
}

.minimal-cameo figcaption {
  color: var(--color-muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose-cameo {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-top: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 20px;
}

.prose-cameo figure {
  margin: 0;
}

.prose-cameo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 18%;
}

.prose-cameo-body p {
  margin: 0 0 6px;
}

.prose-cameo-body a {
  border-bottom: 1px solid var(--color-accent-strong);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .prose-cameo {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .prose-cameo img {
    width: 120px;
  }
}

/* Gary cutouts (transparent mascot poses) */
.cameo-cutout img {
  border: 0;
  border-radius: 0;
  background: none;
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
}

.minimal-cameo.cameo-cutout img {
  width: min(100%, 150px);
}

.prose-cameo.cameo-cutout {
  align-items: end;
}

.waitlist-cameo {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: 26px 0 0;
}

.waitlist-cameo img {
  width: min(40vw, 150px);
  height: auto;
}

.waitlist-cameo figcaption {
  color: var(--color-muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Gary peek: rises from behind a card when it scrolls into view */
.gary-peek-host {
  position: relative;
}

.gary-peek {
  position: absolute;
  top: 1px;
  right: 7%;
  width: 96px;
  height: 82px;
  overflow: hidden;
  transform: translateY(-100%);
  pointer-events: none;
}

.gary-peek img {
  width: 100%;
  height: auto;
  transform: translateY(14%);
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) 0.4s;
}

.js .gary-peek-host[data-reveal]:not(.is-visible) .gary-peek img {
  transform: translateY(102%);
}

@media (prefers-reduced-motion: reduce) {
  .gary-peek img {
    transition: none;
    transform: translateY(14%) !important;
  }
}

/* Image theft deterrents */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}


/* Collapsed theme switcher: half-light/half-dark dot that opens the options */
.theme-menu {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: transparent;
  color: var(--color-muted-strong);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle svg {
  display: block;
}

.theme-toggle:hover,
.theme-menu.is-open .theme-toggle {
  border-color: rgba(235, 168, 99, 0.42);
  background: rgba(242, 238, 229, 0.06);
  color: var(--color-ink);
}

.theme-menu .theme-switch {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  grid-template-columns: 1fr;
  gap: 2px;
  min-width: 136px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  backdrop-filter: none;
}

.theme-menu.is-open .theme-switch {
  display: grid;
}

.theme-menu .theme-switch button {
  min-height: 36px;
  border-radius: 6px;
  padding: 0 12px;
  text-align: left;
}

/* Account menu in the header */
.account-menu {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.account-toggle {
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted-strong);
  padding: 9px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.account-toggle:hover,
.account-menu.is-open .account-toggle {
  border-color: rgba(235, 168, 99, 0.42);
  color: var(--color-ink);
}

.account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  grid-template-columns: 1fr;
  gap: 2px;
  min-width: 176px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.account-menu.is-open .account-dropdown {
  display: grid;
}

.account-dropdown form {
  display: contents;
}

.account-dropdown a,
.account-dropdown button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted-strong);
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: rgba(242, 238, 229, 0.08);
  color: var(--color-ink);
}

html[data-theme="light"] .account-dropdown a:hover,
html[data-theme="light"] .account-dropdown button:hover,
html[data-theme="light"] .theme-menu .theme-switch button:not([aria-pressed="true"]):hover {
  background: rgba(23, 26, 21, 0.08);
}

.footer-column form {
  display: contents;
}

/* Show/hide password toggle */
.pw-field {
  position: relative;
  display: block;
  width: 100%;
}

.pw-field input {
  width: 100%;
  padding-right: 46px;
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0;
}

.pw-toggle:hover {
  color: var(--color-ink);
  background: rgba(128, 128, 128, 0.12);
}
