/* ==========================================================================
   Fermenta website
   Colors are taken 1:1 from the app's asset catalog
   (fermentaShared/SharedAssets.xcassets). Headlines use the system serif,
   the same face the app uses for its titles ("Brews", "Jasmine Green").
   ========================================================================== */

/* -------------------------------- Tokens ---------------------------------- */

:root {
  --primary: #3e7040;
  --accent: #8f6e35;
  --gold: #a57621;

  --bg: #f7f4ee;
  --surface: #edeae2;
  --card: #ffffff;
  --hero-bg: #3c5941;
  --hero-fg: #f6f5ee;

  --text: #1a2a18;
  --text-secondary: #556b4e;
  --divider: #d9d5cc;

  --pro-badge-bg: #f3e7cc;
  --pro-badge-text: #7a5820;

  --badge-f1-bg: #f0e6d0;
  --badge-f2-bg: #f2e3ec;
  --badge-chill-bg: #e0ecf6;
  --badge-active-bg: #d4eacf;

  --notice-bg: #f9edd3;
  --notice-text: #966719;

  /* Feature panel tints, derived from the app's stage badge colors. */
  --panel-wheat: #efe5ce;
  --panel-sky: #dde9f3;
  --panel-sage: #e2ebd9;
  --panel-berry: #f1e2eb;
  --panel-green: #d7e8d2;
  --panel-gold: #f2e6c9;
  --panel-glow: rgba(255, 255, 255, 0.6);

  --shadow-sm: 0 1px 2px rgba(20, 30, 18, 0.06);
  --shadow-md: 0 18px 40px -22px rgba(20, 30, 18, 0.3);
  --shadow-shot: 0 34px 60px -26px rgba(20, 30, 18, 0.38), 0 0 0 1px rgba(20, 30, 18, 0.06);
  --shadow-phone: 0 60px 90px -40px rgba(20, 30, 18, 0.55);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --theme-duration: 280ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #71b273;
    --accent: #c4a175;
    --gold: #e6bb60;
    --bg: #121110;
    --surface: #1c1a18;
    --card: #24211e;
    --hero-bg: #2a3a2e;
    --hero-fg: #f6f5ee;
    --text: #e6e0d8;
    --text-secondary: #a39c93;
    --divider: #35312d;
    --pro-badge-bg: #3a2e14;
    --pro-badge-text: #e6bb60;
    --badge-f1-bg: #2c2418;
    --badge-f2-bg: #2a2028;
    --badge-chill-bg: #1c2530;
    --badge-active-bg: #1f2a20;
    --notice-bg: #352d1b;
    --notice-text: #e6ba60;
    --panel-wheat: #2a2319;
    --panel-sky: #1b232c;
    --panel-sage: #1d241c;
    --panel-berry: #271f25;
    --panel-green: #1f2a20;
    --panel-gold: #2f2717;
    --panel-glow: rgba(255, 255, 255, 0.04);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
    --shadow-shot: 0 34px 60px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-phone: 0 60px 90px -40px rgba(0, 0, 0, 0.8);
  }
}

:root[data-theme="dark"] {
  --primary: #71b273;
  --accent: #c4a175;
  --gold: #e6bb60;
  --bg: #121110;
  --surface: #1c1a18;
  --card: #24211e;
  --hero-bg: #2a3a2e;
  --hero-fg: #f6f5ee;
  --text: #e6e0d8;
  --text-secondary: #a39c93;
  --divider: #35312d;
  --pro-badge-bg: #3a2e14;
  --pro-badge-text: #e6bb60;
  --badge-f1-bg: #2c2418;
  --badge-f2-bg: #2a2028;
  --badge-chill-bg: #1c2530;
  --badge-active-bg: #1f2a20;
  --notice-bg: #352d1b;
  --notice-text: #e6ba60;
  --panel-wheat: #2a2319;
  --panel-sky: #1b232c;
  --panel-sage: #1d241c;
  --panel-berry: #271f25;
  --panel-green: #1f2a20;
  --panel-gold: #2f2717;
  --panel-glow: rgba(255, 255, 255, 0.04);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  --shadow-shot: 0 34px 60px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-phone: 0 60px 90px -40px rgba(0, 0, 0, 0.8);
}

/* --------------------------------- Base ----------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--theme-duration) ease, color var(--theme-duration) ease, opacity 0.3s ease;
}

/* Hidden only until a non-English dictionary has been applied (see the inline
   boot script); a timeout in that script guarantees it can never stay hidden. */
html[data-i18n-pending] body {
  opacity: 0;
}

body.menu-open {
  overflow: hidden;
}

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

svg {
  flex: none;
}

a {
  color: inherit;
}

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

/* Long compounds ("Datenschutzerklärung") must never push the page wider. */
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

:lang(de) h1,
:lang(de) h2,
:lang(de) h3 {
  -webkit-hyphens: auto;
  hyphens: auto;
}

ul,
ol {
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: color-mix(in srgb, var(--primary) 28%, transparent);
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

/* ------------------------------- Typography -------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

.eyebrow .mono {
  color: var(--primary);
}

.display,
.display-2,
.display-3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display {
  margin-top: 20px;
  font-size: clamp(2.7rem, 6.2vw, 4.9rem);
  line-height: 1.02;
}

.display em {
  font-style: italic;
  color: var(--primary);
}

.display-2 {
  margin-top: 16px;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.08;
}

.display-3 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  line-height: 1.1;
}

.lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

.section-head {
  max-width: 740px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-lede {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.text-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out);
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* --------------------------------- Header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: 12px;
  pointer-events: none;
}

.site-header .container {
  pointer-events: auto;
}

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 58px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border: 1px solid color-mix(in srgb, var(--divider) 75%, transparent);
  transition: box-shadow 0.3s ease, background-color var(--theme-duration) ease;
}

.site-header.is-scrolled .nav-pill {
  box-shadow: var(--shadow-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.icon-button:hover,
.icon-button[aria-expanded="true"] {
  background: var(--surface);
}

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

/* Theme toggle: shows the sun in dark mode, the moon in light mode. */
.theme-toggle svg {
  position: absolute;
  transition: opacity 0.25s ease, transform 0.4s var(--ease-out);
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-60deg) scale(0.6);
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(60deg) scale(0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    opacity: 1;
    transform: none;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(60deg) scale(0.6);
  }
}

/* Language switcher (desktop popover) */
.lang {
  position: relative;
}

.lang-button {
  padding: 0 10px 0 12px;
}

.lang-button .lang-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-button .lang-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform 0.3s var(--ease-out);
}

.lang-button[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  padding: 6px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-md);
  transform-origin: top right;
  animation: pop-in 0.22s var(--ease-out);
}

.lang-menu button {
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lang-menu button span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.lang-menu button:hover,
.lang-menu button:focus-visible {
  background: var(--surface);
  outline: none;
}

.lang-menu button[aria-checked="true"] {
  font-weight: 600;
  color: var(--primary);
}

.lang-menu button[aria-checked="true"] span {
  color: var(--primary);
}

/* Menu button (small screens only) */
.menu-button {
  display: none;
}

.menu-button svg {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.35s var(--ease-out);
}

.menu-button .icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}

.menu-button[aria-expanded="true"] .icon-menu {
  opacity: 0;
  transform: rotate(90deg);
}

.menu-button[aria-expanded="true"] .icon-close {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .nav-actions .lang {
    display: none;
  }
}

/* ------------------------------- Mobile menu ------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 108px clamp(20px, 6vw, 40px) max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
}

.mobile-menu-links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 9vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--text);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.mobile-menu-links a .mono {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  transform: translateY(-0.5em);
}

.mobile-menu.is-open .mobile-menu-links a {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-open .mobile-menu-links a:nth-child(2) { transition-delay: 40ms; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(3) { transition-delay: 80ms; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(4) { transition-delay: 120ms; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(5) { transition-delay: 160ms; }

.mobile-menu-lang .eyebrow {
  margin-bottom: 14px;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.lang-grid button {
  color: var(--text);
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: var(--card);
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-grid button[aria-checked="true"] {
  background: var(--hero-bg);
  border-color: var(--hero-bg);
  color: var(--hero-fg);
  font-weight: 600;
}

.mobile-menu-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: auto;
  font-size: 0.95rem;
}

.mobile-menu-foot a {
  color: var(--text-secondary);
  text-decoration: none;
}

/* ------------------------------- App Store badge ---------------------------- */
/* Official "Download on the App Store" artwork (unmodified), from
   https://developer.apple.com/app-store/marketing/guidelines/. Not a link
   yet: the app isn't live, so it's presented as artwork with a "Coming soon"
   label next to it rather than a functioning button. */

.store-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  cursor: default;
  user-select: none;
}

.cta-row--center .store-cta {
  align-items: center;
}

.store-badge-img {
  display: block;
  width: 156px;
}

.store-badge-img img {
  display: block;
  width: 100%;
  height: auto;
}

.store-coming-soon {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}

.cta-band .store-coming-soon {
  color: color-mix(in srgb, var(--hero-fg) 75%, transparent);
}

.store-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

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

.hero {
  position: relative;
  padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 940px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 36px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: 44%;
  left: 50%;
  z-index: -1;
  width: 560px;
  height: 560px;
  max-width: 150%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 26%, transparent), transparent 68%);
}

/* ------------------------------ Phone carousel ----------------------------- */

.carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.phone {
  --phone-w: min(clamp(240px, 26vw, 304px), calc((100svh - 250px) * 0.46));
  position: relative;
  width: var(--phone-w);
  min-width: 220px;
  padding: calc(var(--phone-w) * 0.036);
  /* Corners scale with the frame itself, so a small phone never inherits a
     large phone's radius (the "huge corners on a small screen" look). */
  border-radius: calc(var(--phone-w) * 0.17);
  background: #0d0d0c;
  box-shadow: var(--shadow-phone);
}

.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.phone-screen {
  position: relative;
  aspect-ratio: 760 / 1652;
  border-radius: calc(var(--phone-w) * 0.135);
  overflow: hidden;
  background: var(--bg);
}

/* Slides push each other out, like a navigation transition, rather than
   cross-fading. Only the active slide and (briefly) the one it's replacing
   are ever visible; everything else sits invisible until it's its turn. */
.slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  transform: translateX(0);
  transition: transform 0.6s var(--ease-in-out);
}

.slide.is-active {
  z-index: 2;
  visibility: visible;
  transform: translateX(0);
}

.slide.is-exiting {
  z-index: 1;
  visibility: visible;
}

.slide.enter-right { transform: translateX(100%); }
.slide.enter-left { transform: translateX(-100%); }
.slide.exit-left { transform: translateX(-100%); }
.slide.exit-right { transform: translateX(100%); }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.carousel-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.carousel-caption {
  min-height: 1.5em;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-align: center;
}

.carousel-caption span {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}

.carousel-caption span.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.carousel-controls {
  display: flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid var(--divider);
}

.carousel-dots {
  display: flex;
  align-items: center;
}

.carousel-dot {
  position: relative;
  width: 16px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width 0.4s var(--ease-out);
}

.carousel-dot::before,
.carousel-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 4.5px;
  height: 7px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.carousel-dot::before {
  width: 7px;
  background: color-mix(in srgb, var(--text) 24%, transparent);
  transition: width 0.4s var(--ease-out), background-color 0.3s ease;
}

.carousel-dot:hover::before {
  background: color-mix(in srgb, var(--text) 45%, transparent);
}

.carousel-dot.is-active {
  width: 42px;
}

.carousel-dot.is-active::before {
  width: 33px;
  background: color-mix(in srgb, var(--text) 14%, transparent);
}

.carousel-dot.is-active::after {
  /* Grown by width, not scaleX: scaling a 7px-tall pill horizontally
     un-rounds its ends as it shrinks toward zero. Width keeps the radius
     (999px, resolved against the box's own height) correct at every step. */
  width: 0;
  background: var(--primary);
  animation: dot-progress var(--interval, 4s) linear forwards;
}

.carousel.is-paused .carousel-dot.is-active::after {
  animation-play-state: paused;
}

@keyframes dot-progress {
  to {
    width: 33px;
  }
}

/* Light/dark screenshot pairs */
.theme-shot .shot-dark {
  display: none;
}

:root[data-theme="dark"] .theme-shot .shot-light {
  display: none;
}

:root[data-theme="dark"] .theme-shot .shot-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-shot .shot-light {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-shot .shot-dark {
    display: block;
  }
}

.theme-shot,
.theme-shot img {
  width: 100%;
  height: 100%;
}

/* ------------------------------ Flavor marquee ------------------------------ */

.marquee {
  padding: 8px 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.marquee-label {
  margin-bottom: 20px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-secondary);
}

.marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-row + .marquee-row {
  margin-top: 12px;
}

/* The HTML holds each row's flavors twice, so a -50% loop is one full set:
   the fallback when JS is off. script.js then takes over (`.is-live`), adding
   as many copies as the row's width needs and looping by the measured width
   of one set, so the strip never runs out on a wide window. */
.marquee-track {
  display: flex;
  width: max-content;
  /* Spacing is a margin on each chip rather than a flex `gap`, so a set of
     chips measures the same wherever it sits in the strip. row-gap is only
     for the wrapped reduced-motion list. */
  row-gap: 10px;
  list-style: none;
  animation: marquee 45s linear infinite;
}

.marquee-row--reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 52s;
}

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

.marquee-row.is-live .marquee-track {
  animation: none;
}

.flavor {
  flex: none;
  margin-right: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--fb);
  color: var(--ff);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

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

/* ------------------------------- How it works ------------------------------- */

.how {
  margin-inline: clamp(8px, 1.4vw, 20px);
  padding: clamp(72px, 10vw, 128px) 0;
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--hero-bg);
  color: var(--hero-fg);
}

.how .eyebrow {
  color: color-mix(in srgb, var(--hero-fg) 72%, transparent);
}

.how .eyebrow::before {
  background: var(--hero-fg);
}

.how .section-lede {
  color: color-mix(in srgb, var(--hero-fg) 78%, transparent);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  list-style: none;
  border-radius: 28px;
  background: color-mix(in srgb, var(--hero-fg) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--hero-fg) 16%, transparent);
}

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

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: clamp(26px, 3vw, 36px);
  background: var(--hero-bg);
}

/* Step numerals take the app's stage colors: brew and enjoy use the "active"
   green, F1 and tasting the F1 wheat, F2 its berry, chilling its blue. */
.step:nth-child(1) { --stage: #d4eacf; }
.step:nth-child(2) { --stage: #f0e6d0; }
.step:nth-child(3) { --stage: #f0e6d0; }
.step:nth-child(4) { --stage: #f2e3ec; }
.step:nth-child(5) { --stage: #e0ecf6; }
.step:nth-child(6) { --stage: #d4eacf; }

.step-num {
  display: block;
  margin-bottom: 36px;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--stage);
}

.step-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.step-text {
  margin-top: 10px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--hero-fg) 76%, transparent);
}

@media (max-width: 639px) {
  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    align-items: baseline;
  }

  .step-num {
    grid-row: span 2;
    margin-bottom: 0;
    font-size: 2.4rem;
  }
}

/* --------------------------------- Features -------------------------------- */

.features {
  padding: clamp(88px, 12vw, 150px) 0;
}

.feature {
  display: grid;
  gap: 40px;
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(88px, 12vw, 150px);
}

@media (min-width: 940px) {
  .feature {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 72px;
  }

  .feature--reverse {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .feature--reverse .feature-copy {
    order: 2;
  }
}

.feature-text {
  margin-top: 18px;
  max-width: 32em;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.feature-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 32em;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.feature-note svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--primary);
}

.panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(380px, 46vw, 580px);
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px);
  overflow: hidden;
  border-radius: clamp(26px, 3vw, 38px);
  background: var(--tint, var(--surface));
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 20% 0%, var(--panel-glow), transparent 60%);
}

.panel--wheat { --tint: var(--panel-wheat); }
.panel--sky { --tint: var(--panel-sky); }
.panel--sage { --tint: var(--panel-sage); }
.panel--berry { --tint: var(--panel-berry); }
.panel--green { --tint: var(--panel-green); }
.panel--gold { --tint: var(--panel-gold); }

.shot {
  width: min(100%, 360px);
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-shot);
  transform: translate3d(var(--sx, 0), var(--py, 0px), 0);
  will-change: transform;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot--wide {
  width: min(100%, 420px);
}

/* The uncropped, full-device screenshot: no object-fit, no cover, just the
   whole screen at a width that keeps its natural (tall) proportions in view. */
.shot--full {
  width: min(60%, 258px);
  border-radius: 30px;
}

.panel--pair {
  align-items: flex-start;
  gap: clamp(12px, 2vw, 22px);
  padding-inline: clamp(14px, 3vw, 36px);
}

.panel--pair .shot {
  width: min(49%, 290px);
  border-radius: 18px;
}

.panel--pair .shot--full {
  width: min(44%, 188px);
  border-radius: 22px;
}

.panel--pair .shot--offset {
  margin-top: clamp(44px, 7vw, 96px);
}

.panel--stack {
  flex-direction: column;
  gap: clamp(16px, 2vw, 22px);
}

.panel--stack .shot--front {
  position: relative;
  z-index: 2;
  width: min(96%, 400px);
  --sx: -5%;
}

.panel--stack .shot--back {
  width: min(82%, 330px);
  --sx: 7%;
}

/* ---------------------------------- Tools ---------------------------------- */

.tools {
  padding: clamp(88px, 11vw, 136px) 0;
  background: var(--surface);
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

  .tool-card--featured {
    grid-column: span 2;
  }
}

@media (min-width: 1000px) {
  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tool-card--featured {
    grid-row: span 2;
  }
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--divider);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--primary);
}

.tool-icon svg {
  width: 22px;
  height: 22px;
}

.tool-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tool-card p {
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.tool-card--featured {
  display: grid;
  gap: 32px;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px) 0;
  overflow: hidden;
  background: var(--hero-bg);
  border-color: var(--hero-bg);
  color: var(--hero-fg);
}

@media (min-width: 760px) {
  .tool-card--featured {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
  }
}

.tool-card-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: clamp(28px, 4vw, 44px);
}

.tool-card--featured .tool-icon {
  background: color-mix(in srgb, var(--hero-fg) 14%, transparent);
  color: var(--hero-fg);
}

.tool-card--featured h3 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.tool-card--featured p {
  color: color-mix(in srgb, var(--hero-fg) 80%, transparent);
}

.tool-card--featured .tool-tag {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--hero-fg) 18%, transparent);
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--hero-fg) 70%, transparent);
}

.tool-shot {
  justify-self: center;
  width: min(100%, 270px);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.35);
}

/* ------------------------------- SCOBY hotel -------------------------------- */

.hotel {
  padding: clamp(88px, 11vw, 136px) 0 clamp(56px, 7vw, 88px);
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pro-badge-bg);
  color: var(--pro-badge-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pro-badge svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------- Pricing --------------------------------- */

.pricing {
  padding: clamp(56px, 7vw, 88px) 0 clamp(88px, 11vw, 136px);
}

.price-grid {
  display: grid;
  gap: 18px;
  max-width: 940px;
  margin-inline: auto;
}

@media (min-width: 760px) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--divider);
}

.price-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.price-name svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.price-amount {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.price-list {
  list-style: none;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--divider);
  line-height: 1.45;
}

.price-list svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--primary);
}

.price-note {
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.price-card--pro {
  background: var(--hero-bg);
  border-color: var(--hero-bg);
  color: var(--hero-fg);
}

.price-card--pro .price-name,
.price-card--pro .price-note {
  color: color-mix(in srgb, var(--hero-fg) 72%, transparent);
}

.price-card--pro .price-name svg,
.price-card--pro .price-list svg {
  color: #e6bb60;
}

.price-card--pro .price-list li {
  border-top-color: color-mix(in srgb, var(--hero-fg) 16%, transparent);
}

/* --------------------------------- Privacy --------------------------------- */

.privacy-strip {
  padding-bottom: clamp(88px, 11vw, 136px);
}

.privacy-card {
  display: grid;
  gap: 40px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: clamp(28px, 3.5vw, 40px);
  background: var(--surface);
}

@media (min-width: 940px) {
  .privacy-card {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 64px;
  }
}

.privacy-facts {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 32px;
  list-style: none;
}

@media (min-width: 560px) {
  .privacy-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.privacy-facts li {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--divider);
}

.privacy-facts svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.privacy-facts h3 {
  font-size: 1rem;
  font-weight: 600;
}

.privacy-facts p {
  margin-top: 4px;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ----------------------------------- FAQ ----------------------------------- */

.faq {
  padding: 0 0 clamp(88px, 11vw, 136px);
}

/* A real two-column grid, not two independently-flowing lists: pairs share a
   row, so a short question on one side still starts its next row exactly
   where the taller one across from it ends, instead of drifting out of
   alignment down the page. */
.faq-grid {
  display: grid;
  gap: 12px;
  max-width: 1060px;
  margin-inline: auto;
  align-items: start;
}

@media (min-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
  }
}

.faq-item {
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--divider);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.is-open {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--divider));
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 20px 24px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 22px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  transition: transform 0.45s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(135deg);
  background: var(--hero-bg);
  color: var(--hero-fg);
}

.faq-answer {
  overflow: hidden;
  line-height: 1.65;
  color: var(--text-secondary);
}

.faq-answer p {
  padding: 0 24px 22px;
}

/* -------------------------------- Final CTA -------------------------------- */

.cta-band {
  position: relative;
  margin: 0 clamp(8px, 1.4vw, 20px);
  padding: clamp(88px, 12vw, 150px) 0;
  overflow: hidden;
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--hero-bg);
  color: var(--hero-fg);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 760px;
}

.cta-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  color: var(--hero-fg);
}

.cta-band .section-lede {
  color: color-mix(in srgb, var(--hero-fg) 80%, transparent);
}

.cta-row--center {
  flex-direction: column;
  justify-content: center;
}

.cta-band .store-note {
  color: color-mix(in srgb, var(--hero-fg) 70%, transparent);
}

/* --------------------------------- Footer ---------------------------------- */

.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 max(36px, env(safe-area-inset-bottom));
}

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

.footer-tagline {
  max-width: 30ch;
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.footer-links a,
.footer-bottom a {
  font-size: 0.93rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a[aria-current="page"],
.footer-bottom a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--divider);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* -------------------------------- Doc pages -------------------------------- */

.doc-hero {
  padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 5vw, 56px);
}

.doc-hero .display {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.doc-hero .eyebrow {
  display: flex;
}

.doc-updated {
  display: inline-flex;
  margin-top: 24px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.doc-summary {
  display: grid;
  gap: 14px;
  margin-top: 48px;
  list-style: none;
}

@media (min-width: 760px) {
  .doc-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}

.doc-summary li {
  padding: 26px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--divider);
}

.doc-summary-icon,
.doc-section-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--surface);
  color: var(--primary);
}

.doc-summary-icon svg,
.doc-section-icon svg {
  width: 24px;
  height: 24px;
}

.doc-summary h2 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
}

.doc-summary p {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-bottom: clamp(88px, 11vw, 136px);
}

@media (min-width: 980px) {
  .doc-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 64px;
  }
}

.doc-toc {
  min-width: 0;
  position: sticky;
  top: 78px;
  z-index: 5;
  align-self: start;
  margin-inline: calc(-1 * clamp(20px, 5vw, 40px));
  padding: 12px clamp(20px, 5vw, 40px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.doc-toc .eyebrow {
  display: none;
}

.doc-toc ol {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.doc-toc ol::-webkit-scrollbar {
  display: none;
}

.doc-toc a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.doc-toc a.is-current {
  background: var(--hero-bg);
  border-color: var(--hero-bg);
  color: var(--hero-fg);
}

@media (min-width: 980px) {
  .doc-toc {
    top: 110px;
    margin: 0;
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .doc-toc .eyebrow {
    display: inline-flex;
  }

  .doc-toc ol {
    flex-direction: column;
    gap: 2px;
    margin-top: 16px;
    border-left: 1px solid var(--divider);
  }

  .doc-toc a {
    margin-left: -1px;
    padding: 9px 0 9px 18px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    white-space: normal;
  }

  .doc-toc a:hover {
    color: var(--text);
  }

  .doc-toc a.is-current {
    background: none;
    border-left-color: var(--primary);
    color: var(--text);
    font-weight: 600;
  }
}

.doc-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.doc-section {
  scroll-margin-top: 150px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--divider);
}

.doc-section-icon {
  margin-bottom: 20px;
}

.doc-section h2 {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.doc-section p {
  margin-top: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.doc-section h2 + p {
  margin-top: 0;
}

.doc-section .doc-list-label {
  margin-top: 18px;
  font-weight: 600;
  color: var(--text);
}

.doc-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 4px;
  list-style: none;
}

.doc-bullets li {
  position: relative;
  padding-left: 22px;
  line-height: 1.6;
}

/* Accent dots, like the bullets in the app's privacy policy screen. */
.doc-bullets li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.2s ease;
}

.chip-link:hover {
  background: var(--surface);
}

.chip-link svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.mail-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--hero-bg);
  color: var(--hero-fg);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.mail-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mail-button svg {
  width: 20px;
  height: 20px;
}

.mail-button--light {
  background: var(--hero-fg);
  color: var(--hero-bg);
}

.icon-list {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  list-style: none;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--divider);
  line-height: 1.45;
}

.icon-list li:first-child {
  border-top: 0;
}

.icon-list svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.icon-list--grid {
  display: grid;
  gap: 8px;
}

@media (min-width: 560px) {
  .icon-list--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.icon-list--grid li {
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
}

.doc-section--warning {
  background: var(--notice-bg);
  border-color: transparent;
}

.doc-section--warning .doc-section-icon {
  background: color-mix(in srgb, var(--notice-text) 16%, transparent);
  color: var(--notice-text);
}

.doc-section--warning p {
  color: var(--text);
}

.doc-section--more {
  background: var(--surface);
  border-color: transparent;
}

.doc-section--more .doc-section-icon {
  background: var(--card);
}

.contact-card {
  display: grid;
  gap: 32px;
  margin-top: 48px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: clamp(28px, 3.5vw, 36px);
  background: var(--hero-bg);
  color: var(--hero-fg);
  scroll-margin-top: 110px;
}

@media (min-width: 860px) {
  .contact-card {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
  }
}

.contact-card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--hero-fg) 14%, transparent);
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h2 {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.contact-card p {
  margin-top: 10px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--hero-fg) 80%, transparent);
}

.contact-card .contact-card-label {
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hero-fg) 70%, transparent);
}

.icon-list--on-dark li {
  border-top-color: color-mix(in srgb, var(--hero-fg) 16%, transparent);
  color: var(--hero-fg);
}

.icon-list--on-dark svg {
  color: #e6bb60;
}

/* ------------------------------- Animations -------------------------------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

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

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .marquee-track {
    animation: none;
  }

  .marquee-row {
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Static fallback: just the 12 unique flavors, once, wrapped like a normal
     chip list — not the doubled strip a moving marquee needs, and not the
     second (reverse) row, which exists only to be a second lane of motion. */
  .marquee-row--reverse,
  .marquee-track .flavor[aria-hidden="true"] {
    display: none;
  }

  .marquee-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: 20px;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .shot {
    transform: translate3d(var(--sx, 0), 0, 0);
  }

  .carousel-dot.is-active::after {
    animation: none;
    width: 33px;
  }
}
