/* Lulani — calm cream editorial.
   Warm cream paper, ink text, one saturated pink accent. The palette is the app's own
   Aurora tokens (DesignSystem/Tokens/AppColor.swift); the restraint comes from the
   App Store art direction: everything stays pale so the pink reads as the signature.
   Interactive elements are ink. Pink is for accents, one emphasis word, and the ring. */

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

:root {
  --cream: #FFFBF8;
  --wash: #FFEDE2;
  --wash-rose: #FFE3DC;
  --wash-cool: #F5EEF8;

  --ink: #3A2231;
  --ink-soft: #6B4B5C;
  --muted: #9C8290;

  --punch: #F2517C;
  --violet: #8F5BD8;
  --peach: #FFC9AE;
  --hairline: #EDCBD9;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 12px 32px rgba(194, 68, 127, 0.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

html {
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  font-variation-settings: "SOFT" 20, "WONK" 0;
}

em {
  font-style: italic;
  color: var(--punch);
}

::selection {
  background: var(--punch);
  color: #fff;
}

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

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

p a,
li a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--punch);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s ease;
}

p a:hover,
li a:hover {
  text-decoration-color: var(--ink);
}

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

.container {
  width: min(1140px, 100%);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 4rem;
}

.section__heading {
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.6em;
}

.section__lede {
  color: var(--ink-soft);
  max-width: 46ch;
}

.text-centered {
  text-align: center;
}

.text-centered .section__lede {
  margin-inline: auto;
}

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

/* ---------- Button ---------- */

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  line-height: 1.15;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.app-store-btn:hover {
  background: #4d2f42;
  transform: translateY(-1px);
}

.app-store-btn:active {
  transform: translateY(0) scale(0.98);
}

.app-store-btn .btn-text {
  display: flex;
  flex-direction: column;
}

.app-store-btn .btn-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

.app-store-btn .btn-title {
  font-size: 1.05rem;
  font-weight: 500;
}

.app-store-btn--nav {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  gap: 0.5rem;
  box-shadow: none;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav__desktop-link {
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.nav__desktop-link:hover {
  color: var(--ink);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.lang-switch a {
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.lang-switch a:hover {
  color: var(--ink);
  background: var(--wash);
}

.lang-switch [aria-current="true"] {
  color: var(--ink);
  font-weight: 500;
}

.nav__hamburger {
  width: 26px;
  height: 18px;
  border: 0;
  background: none;
  position: relative;
  cursor: pointer;
  padding: 0;
}

.nav__hamburger span,
.nav__hamburger span::before,
.nav__hamburger span::after {
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger span {
  top: 8px;
}

.nav__hamburger span::before {
  content: "";
  top: -7px;
}

.nav__hamburger span::after {
  content: "";
  top: 7px;
}

.mobile-nav-open .nav__hamburger span {
  transform: rotate(45deg);
}

.mobile-nav-open .nav__hamburger span::before {
  transform: rotate(-90deg) translateX(7px);
}

.mobile-nav-open .nav__hamburger span::after {
  opacity: 0;
}

.nav__mobile {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-top: 0 solid var(--hairline);
}

.mobile-nav-open .nav__mobile {
  max-height: 360px;
  border-top-width: 1px;
}

.nav__mobile-links {
  list-style: none;
  padding-block: 1rem;
}

.nav__mobile-link {
  display: block;
  padding: 0.6rem 0;
  color: var(--ink-soft);
}

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

.hero {
  padding-block: 3rem 4rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--wash) 100%);
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.hero__text {
  text-align: center;
}

.hero__heading {
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  letter-spacing: -0.015em;
  max-width: 17ch;
  margin-inline: auto;
}

.hero__sub {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-inline: auto;
}

.hero__btn-group {
  margin-top: 1.8rem;
}

.hero__trust {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* The 40-week ring framing the phone. The ring geometry is the app icon's own
   (r=307, band 92, 216deg sweep from 12 o'clock — week 24 of 40).
   The ring sits behind the phone so the arc reads as a halo around the device;
   the phone fades out at the bottom, letting the lower arc show through. */
.hero__art {
  position: relative;
  width: min(560px, 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__phone {
  position: relative;
  z-index: 1;
  width: min(184px, 44vw);
  border-radius: 26px;
  border: 1px solid var(--hairline);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 97%);
}

/* ---------- Source strip ---------- */

.sources {
  background: var(--cream);
  border-block: 1px solid var(--hairline);
  padding-block: 1.6rem;
}

.sources__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.4rem;
  list-style: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.sources__list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sources__check {
  color: var(--violet);
  flex: none;
}

.sources__note {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 62ch;
  margin-inline: auto;
}

/* ---------- Story ---------- */

.story__container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* flex: 0 0 auto — otherwise flex:1 in the row layout stretches the screenshot
   far past its intended width. */
.story__figure {
  flex: 0 0 auto;
  width: min(250px, 62vw);
}

.story__figure img {
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}

.story__text {
  flex: 1;
}

.story__text p {
  color: var(--ink-soft);
  max-width: 46ch;
}

.story__text p + p {
  margin-top: 0.9rem;
}

.story__points {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.story__points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.story__points + p {
  margin-top: 1.2rem;
}

.story__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--punch);
  opacity: 0.55;
}

/* ---------- Bento ---------- */

.bento {
  background: var(--wash);
}

.bento__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.bento__cell {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--cream);
}

.bento__cell h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.bento__cell p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.bento__cell--rose {
  background: var(--wash-rose);
}

.bento__cell--cool {
  background: var(--wash-cool);
}

/* Slot for the optional spot illustrations in image-prompts.md. Sized so the art
   reads at a glance without pushing the copy out of the cell. */
.bento__art {
  width: min(260px, 100%);
  margin: -0.35rem 0 0.9rem;
}

.bento__tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--punch);
  font-weight: 500;
}

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

.promise__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.promise__card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: var(--cream);
}

.promise__card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.promise__card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Regions ---------- */

.regions {
  background: var(--wash);
}

.regions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.regions__item {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
}

.regions__item span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

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

.faq__list {
  margin-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.faq__item {
  border-bottom: 1px solid var(--hairline);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

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

.faq__item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--punch);
  line-height: 1;
  flex: none;
  transition: transform 0.3s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  padding-bottom: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

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

.cta {
  background: var(--wash-rose);
  text-align: center;
}

.cta__heading {
  font-size: clamp(2.2rem, 7vw, 3rem);
}

.cta p {
  margin: 0.8rem auto 1.8rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

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

.footer {
  background: var(--cream);
  border-top: 1px solid var(--hairline);
  padding-block: 3rem 2rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer__heading {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.footer__description {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 34ch;
}

.footer__subheading {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer__links a {
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.footer__links a:hover {
  color: var(--ink);
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer__disclaimer {
  max-width: 78ch;
}

.footer__legal summary {
  cursor: pointer;
  font-size: 0.8rem;
}

.footer__legal p {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.7;
}

/* ---------- Legal pages ---------- */

.legal-page {
  max-width: 820px;
  margin-inline: auto;
  padding: 3rem 1.25rem 4.5rem;
}

.legal-page h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-section {
  margin-bottom: 2.25rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.legal-section h3 {
  font-size: 1.15rem;
  margin: 1.2rem 0 0.5rem;
}

.legal-section p,
.legal-section li {
  color: var(--ink-soft);
}

.legal-section p + p,
.legal-section ul + p,
.legal-section ol + p {
  margin-top: 0.9rem;
}

.legal-section ul,
.legal-section ol {
  margin: 0.9rem 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.callout {
  background: var(--wash);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.callout p {
  color: var(--ink);
}

.contact-info {
  background: var(--wash);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-info p + p {
  margin-top: 0.9rem;
}

/* ---------- Scroll reveal (replaces the AOS library) ---------- */

/* Scoped to .js (set by an inline script in <head>) so that if scripting is off or the
   script fails, every .reveal block stays visible instead of being hidden forever. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .js .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

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

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

  .regions__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

@media (min-width: 768px) {
  .nav__desktop {
    display: flex;
  }

  .nav__hamburger {
    display: none;
  }

  .footer__content {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  }
}

@media (min-width: 820px) {
  .section {
    padding-block: 5.5rem;
  }

  .story__container {
    flex-direction: row;
    gap: 3.5rem;
    align-items: center;
  }

  .story--reverse .story__container {
    flex-direction: row-reverse;
  }

  .bento__cell--wide {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  .hero__container {
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
    padding-block: 2rem;
  }

  .hero__text {
    text-align: left;
    flex: 1;
  }

  .hero__heading,
  .hero__sub {
    margin-inline: 0;
  }
}
