/* ==========================================================================
   Luna Calorie — landing site
   A standalone static site. No Flutter, no app code: the palette and type
   scale are mirrored from the product's design system (DESIGN.md) so the
   site and the app feel like one brand.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */

:root {
  /* Surfaces */
  --cream: #f5f1e8;
  --card: #ffffff;
  --band: #efeadd;
  --hero-tint: #faf4ea;
  --ink: #292521;
  --ink-90: #34302b;

  /* Tokens used only inside the app-screen mockups, matching the app's own
     values exactly (lib/core/theme/colors.dart). */
  --app-line: #e7e1d4; /* LunaColors.divider */
  --card-high: #f0ece6; /* LunaColors.cardHigh — ring + bar tracks */
  --status-bg: #ede8dc; /* LunaColors.statusBackground / cardMuted */

  /* Text */
  --text: #292521;
  --text-soft: #5a544c; /* 6.6:1 on cream — body copy */
  --text-mute: #7a7469; /* decorative / large text only */
  --on-dark: #f5f1e8;
  --on-dark-soft: rgba(245, 241, 232, 0.72);

  /* Lines */
  --line: #e4ded0;
  --line-strong: #d8d1c0;

  /* Accent */
  --coral: #e0684a;
  --coral-dark: #b84a30; /* 4.6:1 on cream — small accent text */
  --coral-wash: #f7e5da;

  /* Macro colours, straight from the app */
  --carb: #b6543a;
  --protein: #d8a93e;
  --fat: #8c6480;
  --sage: #8a9a7e;

  /* Type */
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii + shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(41, 37, 33, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(41, 37, 33, 0.16);
  --shadow-lg: 0 30px 60px -24px rgba(41, 37, 33, 0.28);

  /* Layout */
  --container: 1140px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Reset -------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip` where supported: unlike `hidden` it does not turn the body into a
     scroll container, so position: sticky keeps working on the legal pages. */
  overflow-x: hidden;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.14;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--coral-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--coral-wash);
  color: var(--ink);
}

/* --- Type scale --------------------------------------------------------- */

.h1 {
  font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.5rem);
}
.h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.4rem);
}
.h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

.lead {
  color: var(--text-soft);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.14rem);
  line-height: 1.65;
}

.body {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

.small {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--coral-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
}

.eyebrow--center::before {
  display: none;
}

/* --- Layout ------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--band {
  background: var(--band);
}

.section--paper {
  background: var(--card);
}

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.section__head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section__head .lead {
  max-width: 54ch;
}

.section--dark .section__head .lead {
  color: var(--on-dark-soft);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Brand lockup ------------------------------------------------------- */

/* The logo is the app's own artwork (assets/images/App logo.png), keyed to
   transparency by tool/gen_web_icons.py so it drops onto any surface. */

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.logo img {
  height: 34px;
  width: auto;
}

.logo--footer img {
  height: 46px;
}

@media (max-width: 960px) {
  .logo img {
    height: 30px;
  }
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Default (ink) treatment — named for clarity at the call site. */
.btn--primary {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
}

.btn--primary:hover {
  --btn-bg: var(--ink-90);
}

.btn--accent {
  --btn-bg: var(--coral);
  --btn-fg: #fff;
}

.btn--accent:hover {
  --btn-bg: var(--coral-dark);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--card);
  --btn-bd: var(--ink);
}

.btn--light {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  --btn-bd: rgba(245, 241, 232, 0.28);
}

.btn--outline-light:hover {
  --btn-bd: var(--on-dark);
  --btn-bg: rgba(245, 241, 232, 0.06);
}

.btn--sm {
  min-height: 38px;
  padding: 0 15px;
  font-size: 0.83rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.textlink {
  color: var(--coral-dark);
  font-weight: 600;
  border-bottom: 1px solid rgba(184, 74, 48, 0.35);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.textlink:hover {
  border-color: var(--coral-dark);
}

/* --- Badge / pill ------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: var(--r-full);
  background: var(--coral-wash);
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.pill--dark {
  background: rgba(224, 104, 74, 0.16);
  color: #f2c6b4;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--coral);
  flex: none;
}

.dot--live {
  box-shadow: 0 0 0 0 rgba(224, 104, 74, 0.55);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(224, 104, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(224, 104, 74, 0);
  }
}

/* --- Header ------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--hero-tint);
  background: color-mix(in srgb, var(--hero-tint) 92%, transparent);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: var(--cream);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(41, 37, 33, 0.5);
}

.header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--coral), var(--protein));
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.header.is-scrolled .header__progress {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.22s var(--ease);
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
}

.nav__link[aria-current="true"]::after {
  transform: scaleX(1);
}

.header__cta {
  margin-left: 8px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
}

.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s var(--ease);
}

.burger span::before {
  top: -5.5px;
}
.burger span::after {
  top: 5.5px;
}

.burger[aria-expanded="true"] span {
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] span::before {
  transform: translateY(5.5px) rotate(-90deg);
}
.burger[aria-expanded="true"] span::after {
  opacity: 0;
}

.mobile-menu {
  display: grid;
  gap: 2px;
  overflow: hidden;
  max-height: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.32s var(--ease), border-color 0.2s var(--ease);
}

.mobile-menu[data-open="true"] {
  max-height: 420px;
  border-top-color: var(--line);
}

.mobile-menu__inner {
  display: grid;
  gap: 4px;
  padding: 14px 0 20px;
}

.mobile-menu a:not(.btn) {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.98rem;
  font-weight: 500;
}

.mobile-menu .btn {
  margin-top: 12px;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(36px, 6vw, 76px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, var(--hero-tint) 0%, var(--cream) 68%);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero__glow--coral {
  width: 44vw;
  height: 44vw;
  top: -14vw;
  right: -10vw;
  background: rgba(224, 104, 74, 0.16);
}

.hero__glow--gold {
  width: 32vw;
  height: 32vw;
  bottom: -14vw;
  left: -8vw;
  background: rgba(216, 169, 62, 0.14);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(44px, 6vw, 64px);
  align-items: center;
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.hero__copy .h1 {
  max-width: 16ch;
}

.hero__copy .lead {
  max-width: 46ch;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 2px;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.hero__trust svg {
  width: 15px;
  height: 15px;
  fill: var(--sage);
  flex: none;
}

.hero__visual {
  position: relative;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 20px;
}

/* Floating "AI estimate" chip beside the hero phone */
.float-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}

.float-card--input {
  left: -8%;
  top: 8%;
  max-width: 210px;
}

.float-card--output {
  right: -6%;
  bottom: 14%;
  animation-delay: -3s;
}

.float-card__label {
  color: var(--text-mute);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.float-card__text {
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--ink);
}

.float-card__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.float-card__kcal {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
}

.float-card__macros {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-soft);
}

@keyframes float {
  50% {
    transform: translateY(-9px);
  }
}

/* --- Stat strip --------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
  text-align: center;
}

.stat__value {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 600;
  color: var(--coral-dark);
  line-height: 1.1;
}

.stat__label {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* --- Cards / grids ------------------------------------------------------ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 22px);
}

.card {
  height: 100%;
  padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    border-color 0.24s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: var(--coral-wash);
}

.card__icon svg {
  width: 21px;
  height: 21px;
  fill: var(--coral-dark);
}

.card__title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}

/* --- How it works ------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 26px);
  counter-reset: step;
}

.step {
  position: relative;
  padding: clamp(22px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step__num {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--coral-dark);
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--coral-wash);
}

.step__top svg {
  width: 22px;
  height: 22px;
  fill: var(--text-mute);
}

/* Connector between the desktop steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(clamp(18px, 2.4vw, 26px) * -1);
  width: clamp(18px, 2.4vw, 26px);
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* Worked example: text in → macros out */
.example {
  margin-top: clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--card), var(--cream));
}

.example__label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-mute);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.example__input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
}

.example__input svg {
  width: 17px;
  height: 17px;
  fill: var(--coral);
  flex: none;
}

.example__caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  background: var(--coral);
  animation: blink 1.1s step-end infinite;
  vertical-align: -0.14em;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.example__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--ink);
}

.example__arrow svg {
  width: 18px;
  height: 18px;
  fill: var(--cream);
}

.example__out {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--card);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
}

.chip b {
  font-weight: 700;
}

.chip--kcal {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.chip--p {
  color: var(--protein);
}
.chip--c {
  color: var(--carb);
}
.chip--f {
  color: var(--fat);
}

.chip--conf {
  color: var(--sage);
  font-family: var(--sans);
  font-size: 0.76rem;
}

/* --- Screens carousel --------------------------------------------------- */

.screens__viewport {
  position: relative;
}

.screens__track {
  position: relative; /* makes item.offsetLeft measurable for the carousel */
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px clamp(20px, 4vw, 40px) 22px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}

.screens__track::-webkit-scrollbar {
  display: none;
}

.screens__item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 268px;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.screens__item.is-active {
  opacity: 1;
}

.screens__caption {
  text-align: center;
  max-width: 26ch;
}

.screens__caption h3 {
  font-family: var(--serif);
  font-size: 1.16rem;
  margin-bottom: 4px;
}

.screens__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.screens__dots {
  display: flex;
  gap: 7px;
}

.screens__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: var(--r-full);
  background: var(--line-strong);
  transition: width 0.24s var(--ease), background-color 0.24s var(--ease);
}

.screens__dots button[aria-pressed="true"] {
  width: 24px;
  background: var(--coral);
}

.arrow-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-strong);
  background: var(--card);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.arrow-btn:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.arrow-btn svg {
  width: 17px;
  height: 17px;
  fill: var(--ink);
}

/* --- Phone frame -------------------------------------------------------- *

   The frame is CSS; the screen itself is a real screenshot of the app,
   dropped in as a background image so a missing file degrades to the app's
   cream background instead of a broken-image icon.

   Screenshots live in assets/img/screens/ and are generated from the source
   captures by tool/gen_screen_shots.py.                                     */

.phone {
  --phone-w: 268px;
  width: var(--phone-w);
  padding: calc(var(--phone-w) * 0.031);
  border-radius: calc(var(--phone-w) * 0.152);
  background: #17150f;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone--lg {
  --phone-w: clamp(272px, 31vw, 322px);
}

.phone__screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: calc(var(--phone-w) * 0.125);
  overflow: hidden;
  background-color: var(--cream);
}

.phone__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 2.6%;
  border-radius: 0 0 calc(var(--phone-w) * 0.05) calc(var(--phone-w) * 0.05);
  background: #17150f;
  z-index: 2;
}

/* --- Comparison --------------------------------------------------------- */

.compare {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--card);
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare th,
.compare td {
  padding: 16px clamp(14px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  vertical-align: top;
}

.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  background: var(--band);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.compare thead th:nth-child(2) {
  color: var(--coral-dark);
}

.compare tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 28%;
}

.compare .col-luna {
  background: rgba(224, 104, 74, 0.05);
  color: var(--ink);
  font-weight: 500;
  border-left: 1px solid rgba(224, 104, 74, 0.18);
  border-right: 1px solid rgba(224, 104, 74, 0.18);
}

.compare .col-them {
  color: var(--text-soft);
}

.compare td svg {
  width: 15px;
  height: 15px;
  fill: var(--sage);
  flex: none;
  margin-right: 8px;
  vertical-align: -2px;
}

.compare .col-them svg {
  fill: var(--text-mute);
}

/* --- Join the beta (dark band) ------------------------------------------ */

.join {
  position: relative;
  overflow: hidden;
}

.join::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 90% at 50% 0%,
    rgba(224, 104, 74, 0.18),
    transparent 60%
  );
  pointer-events: none;
}

.join__inner {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}

.note {
  display: flex;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  background: rgba(224, 104, 74, 0.13);
  border: 1px solid rgba(224, 104, 74, 0.4);
  color: rgba(245, 241, 232, 0.9);
  font-size: 0.88rem;
  line-height: 1.55;
}

.note svg {
  width: 18px;
  height: 18px;
  fill: var(--coral);
  flex: none;
  margin-top: 2px;
}

.joinsteps {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  counter-reset: joinstep;
}

.joinstep {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: rgba(245, 241, 232, 0.05);
  border: 1px solid rgba(245, 241, 232, 0.13);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.joinstep:hover {
  border-color: rgba(245, 241, 232, 0.28);
  background: rgba(245, 241, 232, 0.08);
}

.joinstep__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.joinstep h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.joinstep p {
  color: var(--on-dark-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.join__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 26px;
  color: var(--on-dark-soft);
  font-size: 0.86rem;
}

/* --- FAQ ---------------------------------------------------------------- */

.faq {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  list-style: none;
  border-radius: var(--r-lg);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: auto;
  flex: none;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.24s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.faq summary:hover {
  color: var(--coral-dark);
}

.faq__answer {
  padding: 0 20px 18px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.faq__more {
  margin-top: 24px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  background: var(--band);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 72px) 26px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 48px);
}

.footer__about {
  max-width: 30ch;
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.footer__bottom a {
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer__bottom a:hover {
  color: var(--coral-dark);
  border-bottom-color: currentColor;
}

.footer li {
  margin-bottom: 10px;
}

.footer li a {
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: color 0.16s var(--ease);
}

.footer li a:hover {
  color: var(--coral-dark);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 0.8rem;
}

/* --- Back to top -------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--ink);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

.to-top svg {
  width: 18px;
  height: 18px;
  fill: var(--cream);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* --- Reveal on scroll --------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --- Legal pages -------------------------------------------------------- */

.legal {
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px));
  padding-bottom: var(--section-y);
}

.legal__head {
  max-width: 720px;
  display: grid;
  gap: 14px;
  padding-bottom: clamp(28px, 4vw, 40px);
  margin-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.legal__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.legal__toc a {
  padding: 6px 8px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.4;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.legal__toc a:hover {
  background: var(--band);
  color: var(--ink);
}

.legal__body {
  max-width: 68ch;
}

.legal__body section {
  margin-bottom: clamp(28px, 3vw, 36px);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.legal__body h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  margin-bottom: 10px;
}

.legal__body p {
  color: var(--text-soft);
  line-height: 1.72;
}

.legal__body p + p {
  margin-top: 12px;
}

.legal__body ul {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.legal__body li {
  position: relative;
  padding-left: 20px;
  color: var(--text-soft);
  line-height: 1.65;
}

.legal__body li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--coral);
}

/* --- Responsive --------------------------------------------------------- */

@media (min-width: 961px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  /* On desktop there is room for the whole gallery, so the carousel becomes a
     static four-up grid — no dimming, no controls, nothing that moves on its
     own while someone is reading. */
  .screens__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }

  .screens__item {
    width: auto;
    opacity: 1;
  }

  .screens__item .phone {
    --phone-w: 100%;
    max-width: 268px;
    margin-inline: auto;
  }

  .screens__controls {
    display: none;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 62px;
  }

  .nav,
  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    text-align: center;
  }

  .hero__copy {
    justify-items: center;
  }

  .hero__copy .h1,
  .hero__copy .lead {
    max-width: 34ch;
  }

  .hero__trust {
    justify-content: center;
  }

  .float-card--input {
    left: -4%;
  }

  .float-card--output {
    right: -4%;
  }

  .grid-3,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal__layout {
    grid-template-columns: 1fr;
  }

  .legal__toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .example {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .example__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  /* Three columns of prose will not fit a phone, so the table scrolls
     sideways rather than shrinking to unreadable type. */
  .compare {
    border-radius: var(--r-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .compare table {
    min-width: 560px;
  }

  .compare th,
  .compare td {
    padding: 13px 14px;
    font-size: 0.85rem;
  }

  .compare tbody th {
    width: 30%;
  }

  .float-card {
    display: none;
  }
}

@media (max-width: 560px) {
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .joinstep {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .badges {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Motion / print preferences ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .screens__track {
    scroll-behavior: auto;
  }
}

@media print {
  .header,
  .to-top,
  .screens,
  .join {
    display: none !important;
  }
}


/* ========================================================================
   Landing page refresh — real Luna product screens
   ======================================================================== */
:root {
  --cream: #fbf7f0;
  --hero-tint: #fbf7f0;
  --card: #fffdfa;
  --band: #efe8dc;
  --ink: #25382f;
  --ink-90: #1d3027;
  --text: #25382f;
  --text-soft: #58675f;
  --line: #dedbd0;
  --line-strong: #c7c9ba;
  --coral: #df785c;
  --coral-dark: #ae5139;
  --coral-wash: #f7ded3;
  --sage: #91a78d;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;
  --container: 1220px;
  --header-h: 76px;
  --r-xl: 28px;
}

body { background: var(--cream); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 40px; }
.header { background: rgba(251,247,240,.9); }
.header.is-scrolled { background: rgba(251,247,240,.92); }
.header__bar { height: var(--header-h); }
.nav { gap: 10px; }
.nav__link { font-size: .82rem; letter-spacing: .02em; }
.btn { border-radius: 999px; min-height: 48px; padding-inline: 21px; font-size: .85rem; }
.btn--primary { --btn-bg: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn span { font-size: 1.1em; }
.kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--coral-dark); font-size: .69rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.kicker > span { display: inline-block; width: 18px; height: 2px; background: currentColor; }
.kicker--light { color: #e7a38e; }

.hero--new { position: relative; padding: calc(var(--header-h) + clamp(70px,10vw,130px)) 0 0; overflow: hidden; background: linear-gradient(111deg,#fbf7f0 0%,#fbf7f0 52%,#f2eadc 100%); }
.hero-new__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(390px,.84fr); align-items: center; min-height: 610px; gap: clamp(30px,7vw,100px); }
.hero-new__copy { max-width: 620px; padding-bottom: 65px; }
.hero-new__copy h1 { margin: 18px 0 24px; font-size: clamp(3.5rem, 6.6vw, 6.35rem); font-weight: 500; line-height: .96; letter-spacing: -.06em; }
.hero-new__copy h1 em, .section-intro h2 em, .ritual h2 em, .join-new h2 em { color: var(--coral); font-weight: 500; }
.hero-new__lead { max-width: 43ch; color: var(--text-soft); font-size: clamp(1rem,1.2vw,1.15rem); line-height: 1.7; }
.hero-new__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.text-action { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: .88rem; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.hero-new__proof { display: flex; align-items: center; gap: 13px; margin-top: 50px; color: var(--text-soft); font-size: .74rem; line-height: 1.45; }
.hero-new__proof strong { color: var(--ink); font-size: .78rem; }
.proof-avatars { display: flex; align-items: center; }
.proof-avatars i { display: grid; place-items: center; width: 29px; height: 29px; margin-right: -7px; border: 2px solid var(--cream); border-radius: 50%; background: #a4bc96; color: #fff; font-size: .63rem; font-style: normal; font-weight: 700; }
.proof-avatars i:nth-child(2) { background:#e8a68c; }.proof-avatars i:nth-child(3) { background:#c0a2a6; }.proof-avatars i:last-child { background:var(--ink); }
.hero-phone-wrap { position: relative; align-self: end; justify-self: center; width: min(100%, 370px); }
.phone--hero { --phone-w: clamp(280px, 30vw, 340px); position: relative; z-index: 1; padding: 8px; border-radius: 43px 43px 0 0; background: #2d3730; box-shadow: 0 35px 55px -24px rgba(38,53,44,.45); }
.phone--hero .phone__screen { border-radius: 36px 36px 0 0; }
.hero-stat { position: absolute; z-index: 2; display: grid; gap: 2px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.72); border-radius: 13px; background: rgba(255,253,250,.9); box-shadow: 0 12px 30px rgba(54,52,43,.12); backdrop-filter: blur(12px); }
.hero-stat b { color: var(--ink); font-family: var(--mono); font-size: 1.05rem; }.hero-stat span, .hero-stat small { color: var(--text-soft); font-size: .66rem; }.hero-stat--top { top: 21%; left: -30%; }.hero-stat--bottom { right: -25%; bottom: 11%; grid-template-columns: 9px auto; column-gap: 8px; }.hero-stat--bottom small { grid-column: 2; }.hero-stat__dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #9caf80; }
.hero-scribble { position: absolute; z-index: 2; top: 0; right: -25%; color: var(--coral-dark); font-family: var(--serif); font-size: 1.25rem; font-style: italic; line-height: 1.02; transform: rotate(10deg); }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }.hero__orb--one { width: 500px; height: 500px; right: -220px; top: 100px; background: rgba(224,173,144,.2); }.hero__orb--two { width: 190px; height: 190px; left: 43%; top: 120px; background: rgba(164,188,150,.16); }
.hero-new__marquee { display: flex; align-items: center; justify-content: center; gap: clamp(22px,4vw,62px); min-width: max-content; height: 70px; margin-top: -1px; overflow: hidden; border-block: 1px solid rgba(37,56,47,.14); color: var(--ink); font-family: var(--mono); font-size: .66rem; letter-spacing: .17em; }.hero-new__marquee i { color: var(--coral); font-size: .95rem; font-style: normal; }
.intro-strip { padding: 42px 0; background: var(--ink); color: #f8f3eb; }.intro-strip__inner { display: grid; grid-template-columns: 1.15fr 1.3fr auto; align-items: center; gap: 30px; }.intro-strip p:first-child { font-family: var(--serif); font-size: clamp(1.45rem,2.6vw,2rem); }.intro-strip p:nth-child(2) { max-width: 35ch; color: rgba(248,243,235,.66); font-size: .83rem; line-height: 1.65; }.intro-strip a { border-bottom: 1px solid rgba(248,243,235,.6); font-size: .78rem; font-weight: 700; white-space: nowrap; padding-bottom: 4px; }

.section-intro { max-width: 720px; margin-bottom: clamp(42px,6vw,76px); }.section-intro h2, .gallery__head h2, .ritual h2, .join-new h2 { margin: 15px 0 17px; font-size: clamp(2.45rem,4.6vw,4.6rem); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }.section-intro > p:last-child { max-width: 50ch; color: var(--text-soft); line-height: 1.7; }.story { padding-block: clamp(90px,12vw,160px); }.story-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(18px,3vw,35px); }.story-card { position: relative; min-height: 550px; overflow: hidden; border-radius: 25px; background: #ece5d8; }.story-card--nutrition { background: #dce4d7; }.story-card__copy { position: relative; z-index: 2; max-width: 290px; padding: clamp(28px,4vw,48px); }.story-card__copy > span { color: var(--coral-dark); font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; }.story-card__copy h3 { margin: 13px 0; font-size: clamp(1.5rem,2.3vw,2rem); font-weight: 500; line-height: 1.08; }.story-card__copy p { color: var(--text-soft); font-size: .85rem; line-height: 1.65; }.story-card img { position: absolute; width: 265px; max-width: 60%; right: 8%; bottom: -20px; border: 7px solid #28362f; border-bottom: 0; border-radius: 33px 33px 0 0; box-shadow: 0 20px 40px -20px rgba(37,56,47,.42); }
.ritual { padding-block: clamp(85px,10vw,130px); overflow: hidden; }.ritual__grid { display: grid; grid-template-columns: 1fr .75fr; align-items: center; gap: 80px; }.ritual__lead { max-width: 43ch; margin: 0 0 29px; color: rgba(245,241,232,.68); line-height: 1.7; }.ritual .btn { --btn-bg:#f7eee4; --btn-fg:var(--ink); }.ritual__phone { position: relative; justify-self: center; }.phone--ritual { --phone-w: clamp(258px,26vw,310px); padding: 7px; border-radius: 39px 39px 0 0; background: #f7eee4; box-shadow: 18px 20px 0 rgba(223,120,92,.7); }.phone--ritual .phone__screen { border-radius: 33px 33px 0 0; }.ritual__note { position: absolute; right: -108px; bottom: 35px; color: #e7a38e; font-family: var(--serif); font-size: 1.35rem; font-style: italic; line-height: 1.05; transform: rotate(-9deg); }.ritual__note span { display: inline-block; margin-left: 13px; font-family: var(--sans); }

.features { padding-block: clamp(90px,12vw,145px); }.section-intro--split { display: grid; grid-template-columns: 1fr .55fr; align-items: end; max-width: none; gap: 40px; }.section-intro--split > p:last-child { margin-bottom: 7px; }.feature-list { border-top: 1px solid var(--line-strong); }.feature { display: grid; grid-template-columns: 90px 1fr auto; align-items: start; gap: 24px; padding: 31px 10px; border-bottom: 1px solid var(--line-strong); }.feature > b { color: var(--coral-dark); font-family: var(--mono); font-size: .72rem; font-weight: 500; }.feature h3 { margin: 0 0 7px; font-family: var(--sans); font-size: 1.18rem; font-weight: 700; letter-spacing: -.025em; }.feature p { max-width: 60ch; color: var(--text-soft); font-size: .88rem; }.feature > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: .82rem; }

.gallery { overflow: hidden; padding-block: clamp(85px,11vw,140px); background: #f0eadf; }.gallery__head { max-width: 610px; margin: 0 auto clamp(36px,5vw,62px); text-align: center; }.gallery__head .kicker { justify-content: center; }.gallery__head p:last-child { color: var(--text-soft); }.gallery .screens__track { gap: clamp(18px,2.5vw,34px); }.gallery .screens__item { gap: 13px; }.gallery .screens__caption span { display: block; margin-bottom: 3px; color: var(--coral-dark); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }.gallery .screens__caption h3 { font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: -.02em; }.gallery .phone { background: #26372d; }.gallery .phone__screen { background: #eee9df; }
.join-new { padding-block: clamp(70px,9vw,105px); }.join-new__box { position: relative; display: grid; grid-template-columns: 1.1fr .7fr; align-items: end; gap: 50px; overflow: hidden; padding: clamp(40px,7vw,85px); border-radius: 29px; background: #e2a387; }.join-new h2 { margin-bottom: 14px; }.join-new h2 em { color: #fff8ef; }.join-new__box p:not(.kicker) { max-width: 42ch; color: rgba(37,56,47,.78); font-size: .94rem; line-height: 1.65; }.join-new__actions { position: relative; z-index: 1; display: grid; justify-items: start; gap: 12px; }.join-new__actions small { color: rgba(37,56,47,.72); font-size: .72rem; }.join-new__flower { position: absolute; right: -44px; bottom: -105px; color: rgba(255,248,239,.48); font-size: 285px; line-height: 1; transform: rotate(15deg); }
.faq-new { padding-top: clamp(50px,7vw,90px); }.faq-new .section-intro { margin-bottom: 32px; }.faq-new .faq { max-width: 860px; }.faq-new details { background: transparent; }.faq-new summary { padding-block: 20px; font-family: var(--sans); font-weight: 700; }.faq-new .faq__answer { padding-bottom: 21px; }
.footer--new { padding: 45px 0 30px; border-top: 1px solid var(--line); background: transparent; color: var(--ink); }.footer-new__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }.footer--new .brand img { height: 37px; }.footer--new p { color: var(--text-soft); font-size: .8rem; }.footer--new div div { display: flex; gap: 18px; }.footer--new a, .footer--new small { color: var(--text-soft); font-size: .72rem; }.footer--new small { grid-column: 3; justify-self: end; margin-top: -19px; }
.to-top { background: var(--ink); color: #fff; }

@media (min-width: 961px) { .gallery .screens__track { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 28px 20px; }.gallery .screens__item .phone { max-width: 208px; }.gallery .screens__item { transform: none; }.gallery .screens__controls { display: none; } }
@media (max-width: 960px) { :root { --header-h:68px; }.brand img { height: 35px; }.hero-new__grid { grid-template-columns: 1fr; justify-items: center; min-height: 0; }.hero-new__copy { justify-self: start; padding-bottom: 0; }.hero-phone-wrap { margin-top: -20px; }.hero-new__marquee { margin-top: 44px; }.story-card { min-height: 490px; }.hero-stat--top { left: -17%; }.hero-stat--bottom { right: -15%; }.ritual__grid { gap: 45px; }.section-intro--split { grid-template-columns: 1fr .7fr; } }
@media (max-width: 720px) { .hero--new { padding-top: calc(var(--header-h) + 55px); }.hero-new__copy h1 { font-size: clamp(3.25rem,15vw,4.8rem); }.hero-new__lead { font-size: 1rem; }.hero-phone-wrap { width: 290px; margin-top: 22px; }.phone--hero { --phone-w: 260px; }.hero-stat--top { top: 22%; left: -31%; }.hero-stat--bottom { right: -28%; bottom: 13%; }.hero-scribble { right: -19%; font-size: 1rem; }.hero-new__proof { margin-top: 36px; }.hero-new__marquee { height: 57px; margin-top: 30px; }.intro-strip__inner { grid-template-columns: 1fr; gap: 12px; }.intro-strip { padding-block: 33px; }.story-grid, .ritual__grid, .section-intro--split, .join-new__box { grid-template-columns: 1fr; }.story-card { min-height: 500px; }.story-card img { right: 8%; }.ritual__grid { gap: 50px; }.ritual__phone { margin-top: 8px; }.ritual__note { right: -60px; }.section-intro--split > p:last-child { margin-bottom: 0; }.feature { grid-template-columns: 45px 1fr; gap: 13px; }.feature > span { display: none; }.gallery .screens__track { padding-inline: 22px; }.join-new__box { padding: 38px 28px; gap: 25px; }.footer-new__inner { grid-template-columns: 1fr; gap: 14px; }.footer--new div div { flex-wrap: wrap; }.footer--new small { grid-column: auto; justify-self: start; margin-top: 0; } }
@media (max-width: 390px) { .hero-stat--top { left: -39%; }.hero-stat--bottom { right: -35%; }.hero-stat { transform: scale(.9); }.story-card img { max-width: 64%; }.join-new h2 { font-size: 2.25rem; } }


/* --- Single-phone app showcase ---------------------------------------- */
.gallery .container {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(400px, 1fr);
  align-items: center;
  gap: clamp(42px, 8vw, 126px);
}
.gallery__head {
  max-width: 500px;
  margin: 0;
  text-align: left;
}
.gallery__head .kicker { justify-content: flex-start; }
.gallery__head h2 { margin-bottom: 20px; }
.gallery__lead { max-width: 38ch; }
.gallery__screen-copy {
  display: grid;
  gap: 8px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(37, 56, 47, 0.25);
}
.gallery__screen-copy span {
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gallery__screen-copy strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.1;
}
.gallery__screen-copy p {
  max-width: 37ch;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.65;
}
.gallery .screens__viewport {
  position: relative;
  min-height: 760px;
}
.gallery .screens__track {
  position: relative;
  display: block;
  width: 100%;
  height: 730px;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.gallery .screens__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.gallery .screens__item.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.gallery .screens__item .phone {
  --phone-w: clamp(300px, 29vw, 370px);
  width: var(--phone-w);
  max-width: none;
  padding: 9px;
  border-radius: 48px;
  background: #26372d;
  box-shadow: 0 34px 58px -25px rgba(37, 56, 47, 0.43), 14px 16px 0 rgba(223, 120, 92, 0.38);
}
.gallery .screens__item .phone__screen { border-radius: 39px; }
.gallery .screens__caption { display: none; }
.gallery .screens__controls {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
}
.gallery .arrow-btn {
  color: var(--ink);
  font-size: 1rem;
}
.gallery .screens__dots button { background: #c9c5b9; }
.gallery .screens__dots button[aria-pressed="true"] { background: var(--coral); }

@media (min-width: 961px) {
  .gallery .screens__track { display: block; }
  .gallery .screens__item { width: 100%; }
  .gallery .screens__item .phone { max-width: none; }
  .gallery .screens__controls { display: flex; }
}

@media (max-width: 960px) {
  .gallery .container { grid-template-columns: 1fr; gap: 20px; }
  .gallery__head { max-width: 620px; margin-inline: auto; text-align: center; }
  .gallery__head .kicker { justify-content: center; }
  .gallery__lead, .gallery__screen-copy p { margin-inline: auto; }
  .gallery__screen-copy { max-width: 470px; margin: 30px auto 0; }
  .gallery .screens__viewport { min-height: 690px; }
  .gallery .screens__track { height: 650px; }
}

@media (max-width: 560px) {
  .gallery .screens__viewport { min-height: 590px; }
  .gallery .screens__track { height: 555px; }
  .gallery .screens__item .phone { --phone-w: min(75vw, 286px); padding: 7px; border-radius: 39px; }
  .gallery .screens__item .phone__screen { border-radius: 32px; }
  .gallery__screen-copy { margin-top: 26px; }
  .gallery .screens__controls { bottom: 0; }
}


/* --- Proportion pass: align desktop copy and device scales ------------ */
@media (min-width: 961px) {
  .hero-new__grid {
    align-items: start;
  }

  .hero-new__copy {
    align-self: start;
    padding-top: clamp(34px, 5vw, 78px);
  }

  .hero-new__copy h1 {
    font-size: clamp(3.45rem, 5.65vw, 5.65rem);
  }

  .hero-phone-wrap {
    align-self: start;
  }

  .gallery {
    padding-block: clamp(74px, 8vw, 108px);
  }

  .gallery .container {
    grid-template-columns: minmax(450px, 0.95fr) minmax(360px, 0.75fr);
    gap: clamp(42px, 5vw, 72px);
  }

  .gallery__head {
    max-width: 480px;
  }

  .gallery__head h2 {
    font-size: clamp(2.45rem, 3.55vw, 3.55rem);
    line-height: 1.06;
  }

  .gallery .screens__viewport {
    min-height: 710px;
  }

  .gallery .screens__track {
    height: 674px;
  }

  .gallery .screens__item .phone {
    --phone-w: clamp(278px, 25vw, 318px);
    box-shadow: 0 28px 50px -24px rgba(37, 56, 47, 0.38), 11px 13px 0 rgba(223, 120, 92, 0.32);
  }
}

@media (max-width: 960px) {
  .hero-new__grid {
    align-items: center;
  }

  .gallery__head h2 {
    font-size: clamp(2.35rem, 7vw, 3.35rem);
  }

  .gallery .screens__viewport {
    min-height: 650px;
  }

  .gallery .screens__track {
    height: 615px;
  }

  .gallery .screens__item .phone {
    --phone-w: clamp(270px, 43vw, 310px);
  }
}

@media (max-width: 560px) {
  .gallery .screens__viewport {
    min-height: 570px;
  }

  .gallery .screens__track {
    height: 535px;
  }

  .gallery .screens__item .phone {
    --phone-w: min(72vw, 270px);
  }
}


/* Keep the showcase headline visually equal to the large phone. */
@media (min-width: 961px) {
  .gallery__head h2 {
    font-size: clamp(2.35rem, 3.05vw, 2.8rem);
    letter-spacing: -0.05em;
  }
}

@media (max-width: 960px) {
  .gallery__head h2 {
    font-size: clamp(2.2rem, 6.2vw, 3rem);
  }
}


/* --- Closed-beta onboarding ------------------------------------------- */
.beta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff9f0;
}
.beta::before {
  position: absolute;
  width: 510px;
  height: 510px;
  right: -270px;
  top: -240px;
  border-radius: 50%;
  background: rgba(223, 120, 92, 0.14);
  content: "";
}
.beta__inner { position: relative; z-index: 1; }
.beta__intro { max-width: 650px; margin-inline: auto; text-align: center; }
.beta__intro .kicker { justify-content: center; }
.beta__intro h2 { margin: 14px 0; font-size: clamp(2.55rem, 4.6vw, 4.25rem); font-weight: 500; letter-spacing: -0.05em; }
.beta__intro h2 em { color: #e7a38e; font-weight: 500; }
.beta__intro > p:last-child { margin-inline: auto; max-width: 58ch; color: rgba(255, 249, 240, 0.72); font-size: .95rem; line-height: 1.65; }
.beta__notice { display: flex; gap: 12px; max-width: 760px; margin: 34px auto 28px; padding: 15px 18px; border: 1px solid rgba(231, 163, 142, 0.54); border-radius: 15px; background: rgba(223, 120, 92, 0.13); color: rgba(255, 249, 240, 0.88); font-size: .84rem; line-height: 1.55; }
.beta__notice span { display: grid; flex: none; place-items: center; width: 19px; height: 19px; margin-top: 2px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-style: italic; font-weight: 700; }
.beta__notice strong { color: #fff9f0; }
.beta__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.beta-step { display: grid; grid-template-columns: auto 1fr; gap: 16px; min-height: 270px; padding: 25px 22px; border: 1px solid rgba(255, 249, 240, 0.16); border-radius: 19px; background: rgba(255, 249, 240, 0.055); }
.beta-step--final { border-color: rgba(231, 163, 142, 0.65); background: rgba(223, 120, 92, 0.13); }
.beta-step__number { color: #e7a38e; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; }
.beta-step__eyebrow { margin-bottom: 9px; color: rgba(255, 249, 240, 0.55); font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.beta-step h3 { margin-bottom: 10px; font-size: 1.45rem; font-weight: 500; line-height: 1.05; }
.beta-step div > p:not(.beta-step__eyebrow) { color: rgba(255, 249, 240, 0.7); font-size: .81rem; line-height: 1.65; }
.beta-step__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 21px; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 249, 240, 0.55); color: #fff9f0; font-size: .78rem; font-weight: 700; }
.beta-step__link:hover { border-color: #fff9f0; }
.beta__help { display: flex; width: max-content; gap: 8px; margin: 29px auto 0; padding-bottom: 3px; border-bottom: 1px solid rgba(255, 249, 240, 0.45); color: rgba(255, 249, 240, 0.86); font-size: .79rem; font-weight: 700; }

@media (max-width: 960px) {
  .beta__steps { grid-template-columns: 1fr; max-width: 650px; margin-inline: auto; }
  .beta-step { min-height: 0; padding: 23px 25px; }
}
@media (max-width: 560px) {
  .beta { padding-block: 72px; }
  .beta__intro h2 { font-size: 2.5rem; }
  .beta__notice { padding: 14px; font-size: .8rem; }
  .beta-step { gap: 12px; padding: 21px 17px; }
  .beta-step h3 { font-size: 1.28rem; }
}


/* --- Desktop device-fit pass ------------------------------------------
   Keep each complete phone inside a typical laptop viewport instead of
   enlarging it past the available vertical space. */
@media (min-width: 961px) {
  .hero--new {
    padding-top: calc(var(--header-h) + clamp(28px, 4vw, 54px));
  }

  .hero-new__grid {
    min-height: 540px;
  }

  .hero-new__copy {
    padding-top: clamp(24px, 3vw, 42px);
    padding-bottom: 28px;
  }

  .phone--hero {
    --phone-w: clamp(230px, 23vw, 270px);
  }

  .hero-new__marquee {
    height: 60px;
  }

  .story {
    padding-block: clamp(72px, 8vw, 96px);
  }

  .story-card {
    min-height: 490px;
  }

  .story-card img {
    width: clamp(190px, 16vw, 220px);
    right: 9%;
    bottom: 18px;
  }

  .ritual {
    padding-block: 72px;
  }

  .phone--ritual {
    --phone-w: clamp(220px, 20vw, 250px);
  }

  .gallery {
    padding-block: 42px;
  }

  .gallery .screens__viewport {
    min-height: 590px;
  }

  .gallery .screens__track {
    height: 540px;
  }

  .gallery .screens__item .phone {
    --phone-w: clamp(210px, 20vw, 250px);
  }
}

@media (min-width: 961px) and (max-height: 760px) {
  .hero--new {
    padding-top: calc(var(--header-h) + 20px);
  }

  .hero-new__grid {
    min-height: 490px;
  }

  .phone--hero {
    --phone-w: 230px;
  }

  .hero-new__marquee {
    height: 52px;
  }

  .gallery {
    padding-block: 34px;
  }

  .gallery .screens__viewport {
    min-height: 540px;
  }

  .gallery .screens__track {
    height: 495px;
  }

  .gallery .screens__item .phone {
    --phone-w: 220px;
  }

  .ritual {
    padding-block: 58px;
  }

  .phone--ritual {
    --phone-w: 225px;
  }
}


/* Render complete device silhouettes rather than open-ended screen crops. */
.phone--hero {
  border-radius: 43px;
}
.phone--hero .phone__screen {
  border-radius: 36px;
}
.phone--ritual {
  border-radius: 39px;
}
.phone--ritual .phone__screen {
  border-radius: 33px;
}

@media (min-width: 961px) {
  .story-card img {
    width: auto;
    max-width: 48%;
    max-height: calc(100% - 38px);
  }
}


@media (min-width: 961px) {
  .phone--hero {
    --phone-w: clamp(225px, 22vw, 260px);
  }
}


@media (min-width: 961px) {
  .hero-phone-wrap {
    margin-bottom: 18px;
  }
}

@media (min-width: 961px) and (max-height: 760px) {
  .hero-phone-wrap {
    margin-bottom: 12px;
  }
}


/* Compact desktop windows (for example 1024 × 480) still show full phones. */
@media (min-width: 961px) and (max-height: 600px) {
  .hero--new {
    padding-top: calc(var(--header-h) + 10px);
  }

  .hero-new__grid {
    min-height: 355px;
  }

  .hero-new__copy {
    padding-top: 14px;
    padding-bottom: 8px;
  }

  .hero-new__copy h1 {
    margin-block: 10px 14px;
    font-size: clamp(2.75rem, 4.7vw, 4rem);
  }

  .hero-new__lead {
    font-size: .9rem;
  }

  .hero-new__proof {
    margin-top: 20px;
  }

  .phone--hero {
    --phone-w: 170px;
  }

  .hero-phone-wrap {
    margin-bottom: 10px;
  }

  .hero-new__marquee {
    height: 44px;
  }

  .story {
    padding-block: 44px;
  }

  .story-card {
    min-height: 360px;
  }

  .story-card__copy {
    padding: 25px;
  }

  .story-card img {
    max-height: calc(100% - 28px);
    max-width: 42%;
    bottom: 14px;
  }

  .ritual {
    padding-block: 36px;
  }

  .phone--ritual {
    --phone-w: 180px;
  }

  .gallery {
    padding-block: 18px;
  }

  .gallery .screens__viewport {
    min-height: 420px;
  }

  .gallery .screens__track {
    height: 380px;
  }

  .gallery .screens__item .phone {
    --phone-w: 175px;
  }

  .gallery .screens__controls {
    transform: translateX(-50%) scale(.86);
    transform-origin: bottom center;
  }
}


/* --- Screen integrity, changelog, and beta roadmap -------------------- */
/* Use the complete source captures: never crop their lower UI. */
.phone__shot {
  object-fit: contain;
  object-position: center;
  background: var(--cream);
}

/* A figure has a browser-default inline margin; removing it centres the
   animated phone exactly over the dots and previous/next controls. */
.gallery .screens__item {
  margin: 0;
}

/* Keep the three unique hero values, without repeating the marquee copy. */
.hero-new__marquee span:nth-of-type(n + 4),
.hero-new__marquee i:nth-of-type(n + 4) {
  display: none;
}

@media (min-width: 961px) {
  .story-card img {
    width: auto;
    height: calc(100% - 36px);
    max-width: 46%;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
  }
}

.changelog {
  background: var(--card);
}
.changelog__layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(48px, 9vw, 140px);
}
.changelog__intro {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}
.changelog__intro h2 {
  margin: 15px 0;
  font-size: clamp(2.45rem, 4.25vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.03;
}
.changelog__intro h2 em { color: var(--coral); font-weight: 500; }
.changelog__intro > p:last-child { max-width: 31ch; color: var(--text-soft); font-size: .92rem; line-height: 1.68; }
.release-list { border-top: 1px solid var(--line-strong); }
.release {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.release__meta { display: grid; align-content: start; gap: 5px; }
.release__meta span { color: var(--coral-dark); font-family: var(--mono); font-size: .76rem; font-weight: 500; }
.release__meta time { color: var(--text-mute); font-size: .66rem; line-height: 1.4; }
.release h3 { margin-bottom: 7px; font-family: var(--sans); font-size: 1.08rem; font-weight: 700; letter-spacing: -.025em; }
.release p { max-width: 58ch; color: var(--text-soft); font-size: .86rem; line-height: 1.62; }
.release--latest h3::after { display: inline-block; margin-left: 9px; padding: 3px 7px; border-radius: 99px; background: var(--coral-wash); color: var(--coral-dark); content: "Latest"; font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

/* Present the required beta steps as a connected route, not disconnected cards. */
.beta__steps {
  position: relative;
  max-width: 1140px;
  margin-inline: auto;
  gap: 0;
}
.beta__steps::before {
  position: absolute;
  z-index: -1;
  top: 27px;
  left: 16.7%;
  right: 16.7%;
  height: 1px;
  background: rgba(255, 249, 240, .38);
  content: "";
}
.beta-step {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}
.beta-step::after {
  position: absolute;
  top: 17px;
  right: -5px;
  color: #e7a38e;
  content: "→";
  font-size: 1.2rem;
}
.beta-step:last-child::after { display: none; }
.beta-step__number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 17px;
  border: 1px solid rgba(231, 163, 142, .72);
  border-radius: 50%;
  background: var(--ink);
  color: #f3b39e;
  font-size: .7rem;
}
.beta-step > div {
  min-height: 210px;
  padding: 24px 21px;
  border: 1px solid rgba(255, 249, 240, .16);
  border-radius: 17px;
  background: rgba(255, 249, 240, .055);
}
.beta-step--final > div { border-color: rgba(231, 163, 142, .65); background: rgba(223, 120, 92, .13); }
.beta-step__eyebrow { margin-bottom: 8px; }
.beta-step h3 { font-size: 1.35rem; }

@media (max-width: 960px) {
  .changelog__layout { grid-template-columns: 1fr; gap: 36px; }
  .changelog__intro { position: static; }
  .release { grid-template-columns: 92px 1fr; gap: 18px; }

  .beta__steps { display: grid; gap: 15px; max-width: 650px; }
  .beta__steps::before { top: 28px; bottom: 28px; left: 26px; right: auto; width: 1px; height: auto; }
  .beta-step { display: grid; grid-template-columns: 53px 1fr; gap: 15px; padding: 0; text-align: left; }
  .beta-step::after { display: none; }
  .beta-step__number { margin: 0; }
  .beta-step > div { min-height: 0; padding: 22px 20px; }
}

@media (max-width: 560px) {
  .release { grid-template-columns: 1fr; gap: 8px; }
  .release__meta { grid-template-columns: auto 1fr; align-items: center; }
  .release__meta time { text-align: right; }
  .changelog__intro h2 { font-size: 2.45rem; }
  .beta-step { grid-template-columns: 45px 1fr; gap: 11px; }
  .beta-step__number { width: 45px; height: 45px; font-size: .65rem; }
  .beta__steps::before { left: 22px; top: 23px; }
  .beta-step > div { padding: 20px 16px; }
}


/* Story captures use the same complete, rounded device edge as the hero. */
.story-card img {
  border-bottom: 7px solid #28362f;
  border-radius: 33px;
}


/* The story previews are complete device shells, not open-ended screenshots. */
.phone--hero,
.phone--ritual {
  overflow: hidden;
}
.story-card .story-phone {
  position: absolute;
  right: 9%;
  bottom: 18px;
  box-sizing: border-box;
  height: calc(100% - 36px);
  max-width: 46%;
  aspect-ratio: 9 / 19.5;
  padding: 7px;
  border-radius: 33px;
  background: #28362f;
  box-shadow: 0 18px 32px -20px rgba(37, 56, 47, .55);
  overflow: hidden;
}
.story-card .story-phone img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 26px;
  background: var(--cream);
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}
@media (min-width: 961px) and (max-height: 600px) {
  .story-card .story-phone {
    right: 8%;
    bottom: 14px;
    height: calc(100% - 28px);
  }
}


/* Keep the roadmap connector visible behind, rather than beneath, its steps. */
.beta__steps {
  isolation: isolate;
}
.beta__steps::before {
  z-index: 0;
}
.beta-step {
  z-index: 1;
}
.beta-step__number {
  position: relative;
  z-index: 2;
}


/* A min-height parent does not resolve percentage child heights reliably. */
@media (min-width: 961px) {
  .story-card .story-phone {
    height: 454px;
  }
}
@media (min-width: 961px) and (max-height: 600px) {
  .story-card .story-phone {
    height: 332px;
  }
}


/* --- Conversion, trust, and accessibility polish --------------------- */
.hero-stat { display: none; }
.hero-new__copy h1 { max-width: 11ch; font-size: clamp(2.8rem, 5.3vw, 5.15rem); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-trust li { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: rgba(255,253,250,.72); color: var(--text-soft); font-size: .7rem; font-weight: 700; }
.hero-trust li::before { margin-right: 6px; color: var(--coral-dark); content: "✓"; }
.mobile-beta-cta { display: none; }
.feature { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: var(--card); }
.story-card .story-phone { border: 7px solid #28362f; padding: 0; }
.story-card .story-phone img { border-radius: 25px; }

@media (max-width: 960px) {
  .burger { margin-left: auto; }
  .mobile-beta-cta { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--r-full); background: var(--ink); color: var(--cream); box-shadow: 0 14px 30px rgba(0,0,0,.24); font-size: .85rem; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity .22s var(--ease), transform .22s var(--ease); }
  .mobile-beta-cta.is-visible { opacity: 1; pointer-events: auto; transform: none; }
}
@media (max-width: 720px) { .hero-scribble { display: none; } .hero-new__copy h1 { max-width: 12ch; } }
@media (prefers-reduced-motion: reduce) { .mobile-beta-cta { transition: none; } .feature { transition: none; } }

/* Inside Luna uses the same complete handset shell as the hero. */
.gallery .screens__item .phone {
  padding: 8px;
  border-radius: 43px;
  background: #2d3730;
  box-shadow: 0 35px 55px -24px rgba(38, 53, 44, .45);
}
.gallery .screens__item .phone__screen { border-radius: 36px; }

/* Keep copy and the handset in two fixed vertical zones on mobile/tablet. */
@media (max-width: 960px) {
  .story-card { min-height: 650px; }
  .story-card__copy { position: relative; z-index: 2; max-width: none; padding: 30px; }
  .story-card .story-phone {
    top: 270px;
    right: auto;
    bottom: auto;
    left: 50%;
    width: auto;
    max-width: calc(100% - 56px);
    height: 340px;
    transform: translateX(-50%);
  }
}
@media (max-width: 720px) {
  .story-card { min-height: 620px; }
  .story-card__copy { padding: 28px; }
  .story-card .story-phone { top: 260px; max-width: calc(100% - 48px); height: 330px; }
}
@media (max-width: 390px) {
  .story-card { min-height: 570px; }
  .story-card__copy { padding: 24px; }
  .story-card .story-phone { top: 250px; max-width: calc(100% - 40px); height: 300px; }
}
