/* LustreLife — site styles
   Palette: pearl base, plum ink, marigold action, storm and blush as weather tones. */

:root {
  --pearl: #F3F1F6;
  --paper: #FFFFFF;
  --plum: #2B1B33;
  --plum-soft: #5A4763;
  --storm: #4F6483;
  --marigold: #F0A830;
  --marigold-deep: #D98F14;
  --blush: #EBCBD2;
  --rule: rgba(43, 27, 51, 0.16);
  --rule-light: rgba(243, 241, 246, 0.22);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.4vw, 4.25rem);
  --step-4: clamp(2.8rem, 1.6rem + 5vw, 5.75rem);
  --step-5: clamp(3.2rem, 1.4rem + 8vw, 8.5rem);

  --space-section: clamp(4rem, 3rem + 5vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pearl);
  color: var(--plum);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--plum);
  color: var(--pearl);
  padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; }

.visually-hidden, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 14ch;
}
.display--md { font-size: var(--step-3); max-width: 16ch; }
.display--xl { font-size: var(--step-5); font-style: italic; max-width: 11ch; line-height: 0.95; }

.h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.3;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 34em;
  color: var(--plum-soft);
}

.kicker {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--storm);
  margin-bottom: 1rem;
}
.kicker--light { color: var(--blush); }

.prose { max-width: 36em; }
.prose p + p { margin-top: 1.1em; }

.fine-print { font-size: var(--step--1); color: var(--plum-soft); margin-top: 0.9rem; max-width: 34em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--marigold); color: var(--plum); }
.btn--primary:hover { background: var(--marigold-deep); }
.btn--ghost { border-color: var(--plum); color: var(--plum); }
.btn--ghost:hover { background: var(--plum); color: var(--pearl); }
.btn--small { min-height: 2.5rem; padding: 0.5rem 1.1rem; font-size: 0.9375rem; }
.btn--store { background: var(--plum); color: var(--pearl); border-radius: 10px; }
.btn--store:hover { background: #47304F; }

.button-row, .store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.store-buttons--dark .btn--store { background: var(--pearl); color: var(--plum); }
.store-buttons--dark .btn--store:hover { background: var(--blush); }

/* Official store badges: both shown at the same visible height (50px). */
.store-buttons { align-items: center; }
.store-badge { display: inline-block; line-height: 0; border-radius: 9px; }
.store-badge img { height: 50px; width: auto; }
/* Google's PNG has transparent padding around the artwork (41px of 250px).
   Scale it so the visible badge is 50px tall, then pull in the padding. */
.store-badge--google img { height: 75px; margin: -12.5px; }

.link-button {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  font: inherit;
  font-size: var(--step--1);
  color: var(--plum-soft);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 241, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.wordmark {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
}
.wordmark--light { color: var(--pearl); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav a:not(.btn) {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--marigold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--plum);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--plum);
  cursor: pointer;
}

/* ---------- Sections ---------- */

.section { padding-block: var(--space-section); }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--paper); }
.section--dark { background: var(--plum); color: var(--pearl); }
.section--dark .lead { color: rgba(243, 241, 246, 0.82); }
.section--signup { background: var(--blush); }
.section--signup .fine-print { color: var(--plum); }

.section-head { max-width: 46rem; }
.section-head .h2 { margin-bottom: 1.25rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem var(--gutter);
  align-items: start;
}
.split + .split { margin-top: 4rem; }

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

.hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem); }
.hero--plain { padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.hero--plain .lead { margin-top: 1.5rem; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem var(--gutter);
  align-items: center;
}
.hero__text .lead { margin-top: 1.75rem; }

.hero--next {
  background: var(--plum);
  color: var(--pearl);
  padding-block: clamp(5rem, 3rem + 8vw, 10rem);
}
.hero--next .lead { margin-top: 2rem; color: rgba(243, 241, 246, 0.82); }
.launch-date { margin-top: 2rem; font-weight: 600; color: var(--marigold); }

/* ---------- App screenshots in the heroes ---------- */

.app-shot {
  display: block;
  max-width: 25rem;
  margin-inline-start: auto;
}
.app-shot img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(43, 27, 51, 0.55);
}
@media (max-width: 860px) {
  .app-shot { margin-inline: auto; max-width: 22rem; }
}

/* ---------- Day card (not currently used on any page) ---------- */

.daycard {
  --sky: var(--storm);
  --sky-ink: var(--pearl);
  background: var(--plum);
  color: var(--pearl);
  border-radius: 28px;
  padding: 0.75rem;
  max-width: 26rem;
  margin-inline-start: auto;
  box-shadow: 0 30px 60px -30px rgba(43, 27, 51, 0.55);
}
.daycard[data-state="sun"] { --sky: var(--marigold); --sky-ink: var(--plum); }
.daycard[data-state="evening"] { --sky: var(--blush); --sky-ink: var(--plum); }

.daycard__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  padding: 0.25rem;
}
.daycard__tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: rgba(243, 241, 246, 0.75);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.55rem 0.5rem;
  cursor: pointer;
}
.daycard__tabs button:hover { color: var(--pearl); }
.daycard__tabs button[aria-selected="true"] { background: var(--pearl); color: var(--plum); font-weight: 600; }

.daycard__panel { margin-top: 0.5rem; }

.daycard__sky {
  background: var(--sky);
  color: var(--sky-ink);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  align-items: end;
  transition: background-color 0.5s ease, color 0.5s ease;
}
.glyph {
  grid-row: 1 / 3;
  width: 4.5rem;
  height: 4.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  align-self: center;
}
.glyph[hidden] { display: none; }
.daycard__temp {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 4rem;
  font-weight: 500;
  line-height: 0.9;
}
.daycard__cond { font-weight: 500; margin-top: 0.4rem; }

.daycard__body { padding: 1.25rem 1rem 0.5rem; }
.daycard__occasion { font-size: var(--step--1); color: rgba(243, 241, 246, 0.7); }
.daycard__look {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-top: 0.4rem;
  min-height: 3.75em;
}
.daycard__note {
  font-size: 0.8125rem;
  color: rgba(243, 241, 246, 0.55);
  padding: 0.5rem 1rem 0.5rem;
}

/* Phone frame on the ForecastMO page */
.phone {
  max-width: 23rem;
  margin-inline-start: auto;
  background: var(--plum);
  border-radius: 46px;
  padding: 0.9rem;
  box-shadow: 0 40px 80px -40px rgba(43, 27, 51, 0.6);
}
.phone__screen { background: #1E1324; border-radius: 36px; padding: 1.25rem 0.5rem 0.75rem; }
.phone__app {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--pearl);
  text-align: center;
  margin-bottom: 0.75rem;
}
.phone .daycard { box-shadow: none; padding: 0.25rem; max-width: none; background: transparent; }

/* ---------- Features, pillars, steps ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem var(--gutter);
  margin-top: 3.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}
.features--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features--beliefs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features dt { font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
.features--beliefs dt { font-family: var(--display); font-weight: 500; font-size: var(--step-2); line-height: 1.1; }
.features dd { margin-top: 0.5rem; color: var(--plum-soft); max-width: 28em; }

.more-link { margin-top: 1.5rem; font-weight: 600; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
}
.pillars li { padding: 0 var(--gutter) 0 0; }
.pillars li + li { border-left: 1px solid var(--rule); padding-left: var(--gutter); }
.pillars p { margin-top: 0.6rem; color: var(--plum-soft); max-width: 24em; }
.section .wrap > .pillars:first-child { margin-top: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem var(--gutter);
  margin-top: 3rem;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--storm);
  margin-bottom: 1rem;
}
.steps p { margin-top: 0.5rem; color: var(--plum-soft); }

/* ---------- Teaser ---------- */

.teaser .lead { margin-block: 1.75rem 2.25rem; }

/* ---------- Signup ---------- */

.signup-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem var(--gutter);
  align-items: center;
}
.signup-block p { margin-top: 1rem; max-width: 30em; }
.signup-block .fine-print { margin-top: 0.9rem; }

.signup-form__row { display: flex; gap: 0.5rem; }
.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border: 2px solid var(--plum);
  border-radius: 999px;
  background: var(--paper);
  color: var(--plum);
  font: inherit;
  font-size: 1rem;
}
.signup-form input[type="email"]::placeholder { color: #85768C; }
.signup-form--dark input[type="email"] { border-color: rgba(243, 241, 246, 0.4); background: transparent; color: var(--pearl); }
.signup-form--dark input[type="email"]::placeholder { color: rgba(243, 241, 246, 0.6); }
.signup-form__msg { min-height: 1.6em; margin-top: 0.6rem; font-size: 0.9375rem; font-weight: 500; }
.signup-form__msg.is-error { color: #9B1C3A; }
.signup-form--dark .signup-form__msg.is-error { color: #F7B5C3; }
.signup-form.is-done .signup-form__row { display: none; }
.signup-form.is-done .signup-form__msg { font-size: var(--step-1); font-weight: 600; margin-top: 0; }

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

.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem var(--gutter); }
.faq__list { border-top: 1px solid var(--rule); }
.faq details, .faq-page details { border-bottom: 1px solid var(--rule); }
.faq summary, .faq-page summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker, .faq-page summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq-page summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 1rem;
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
}
.faq details[open] summary::after, .faq-page details[open] summary::after { content: "\2212"; }
.faq details p, .faq-page details p { padding-bottom: 1.4rem; color: var(--plum-soft); max-width: 34em; }

/* ---------- ForecastMO FAQ page ---------- */

.faq-page { max-width: 52rem; }
.faq-page .lead { margin-top: 1.25rem; }
.faq-group__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--storm);
  margin: 3.5rem 0 0.5rem;
}
.faq-page .faq__list a { font-weight: 500; }
.faq-page__cta { margin-top: 4rem; }
.faq-page__cta > p { font-family: var(--display); font-size: var(--step-2); line-height: 1.1; }
.faq-page__cta .store-buttons { margin-top: 1.5rem; }

/* ---------- About / contact / legal ---------- */

.closing .display { max-width: 20ch; }
.contact-email { margin-top: 2rem; font-family: var(--display); font-size: var(--step-2); }
.prose--legal { max-width: 40em; }
.prose--legal .display { margin-bottom: 0.75rem; }
.prose--legal .legal-date { color: var(--plum-soft); font-size: var(--step--1); margin-bottom: 2.5rem; }
.prose--legal h2 { font-family: var(--sans); font-weight: 600; font-size: var(--step-1); line-height: 1.3; margin: 2.75rem 0 0.9rem; }
.prose--legal p + p { margin-top: 1em; }
.prose--legal ul { list-style: disc; padding-left: 1.25em; margin-top: 1em; }
.prose--legal li + li { margin-top: 0.6em; }

/* ---------- Popup ---------- */

.popup {
  width: min(32rem, calc(100% - 2rem));
  border: 0;
  border-radius: 24px;
  padding: 2.5rem 2rem 1.5rem;
  background: var(--pearl);
  color: var(--plum);
  box-shadow: 0 40px 80px -30px rgba(43, 27, 51, 0.6);
}
.popup::backdrop { background: rgba(43, 27, 51, 0.55); }
.popup > p { margin-block: 1rem 1.5rem; }
.popup__close-form { position: absolute; top: 0.75rem; right: 0.75rem; }
.popup__close {
  width: 2.5rem; height: 2.5rem;
  border: 0; border-radius: 50%;
  background: transparent;
  font-size: 1.75rem; line-height: 1;
  color: var(--plum);
  cursor: pointer;
}
.popup__close:hover { background: rgba(43, 27, 51, 0.08); }

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

.site-footer { background: var(--plum); color: var(--pearl); padding-block: 4.5rem 2rem; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem var(--gutter);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule-light);
}
.site-footer__brand p { margin-top: 0.9rem; color: rgba(243, 241, 246, 0.75); }
.site-footer__label { font-size: 1rem; font-weight: 600; margin-bottom: 0.9rem; }
.site-footer__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem var(--gutter);
  padding-block: 2.5rem;
}
.site-footer__links h2 { font-size: 0.9375rem; font-weight: 600; color: rgba(243, 241, 246, 0.6); margin-bottom: 0.75rem; }
.site-footer__links li + li { margin-top: 0.4rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__legal { font-size: var(--step--1); color: rgba(243, 241, 246, 0.6); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--pearl);
    border-bottom: 1px solid var(--rule);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0.9rem; }
  .site-nav a:not(.btn) { font-size: 1.125rem; }

  .hero__grid, .split, .signup-block, .faq, .site-footer__top { grid-template-columns: 1fr; }
  .daycard, .phone { margin-inline: 0; }
  .pillars, .steps { grid-template-columns: 1fr; gap: 2rem; }
  .pillars li, .pillars li + li { border-left: 0; padding: 0; }
  .pillars li + li { border-top: 1px solid var(--rule); padding-top: 2rem; }
  .site-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .features, .features--wide, .features--beliefs { grid-template-columns: 1fr; }
  .signup-form__row { flex-direction: column; }
  .store-buttons .btn, .button-row .btn { flex: 1 1 100%; }
  .daycard__temp { font-size: 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
