/* Love Calculator — editorial iOS brand site */

:root {
  --ivory: #f7f2ec;
  --ivory-deep: #efe7df;
  --blush: #f3e6e0;
  --surface: #fffcf9;
  --plum: #2a1b2c;
  --ink: #5c4a52;
  --ink-soft: #8f7a82;
  --rose: #c4a0a8;
  --rose-deep: #a87884;
  --magenta: #8e4d78;
  --coral: #d4a08c;
  --hairline: #e5d6cd;
  --focus: #8e4d78;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--plum);
  background: var(--ivory);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--magenta);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--plum);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ivory) 86%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--hairline);
}

.nav__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--plum);
}

.nav__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav__wordmark {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--plum);
}

.nav__cta {
  display: none;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--plum);
  cursor: pointer;
  border-radius: 10px;
}

.nav__toggle svg {
  width: 22px;
  height: 22px;
}

.nav__drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem var(--pad) 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.nav__drawer.is-open {
  display: block;
}

.nav__drawer a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  color: var(--plum);
  font-weight: 500;
  border-bottom: 1px solid var(--hairline);
}

.nav__drawer a:last-child {
  border-bottom: 0;
  margin-top: 0.5rem;
}

@media (min-width: 860px) {
  .nav__links,
  .nav__cta {
    display: flex;
  }

  .nav__toggle,
  .nav__drawer {
    display: none !important;
  }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 14px;
  font-family: Manrope, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease,
    color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--plum);
  color: #fff8f4;
}

.btn--primary:hover {
  background: var(--magenta);
  color: #fff8f4;
}

.btn--ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--hairline);
}

.btn--ghost:hover {
  border-color: var(--rose);
  color: var(--plum);
  background: color-mix(in srgb, var(--blush) 55%, transparent);
}

.btn--wide {
  min-width: min(100%, 280px);
}

.btn--store {
  min-height: 56px;
  padding: 0 1.75rem;
  background: var(--plum);
  color: #fff8f4;
  gap: 0.75rem;
}

.btn--store:hover {
  background: #3a243c;
  color: #fff8f4;
}

.btn--store .store-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.btn--store .store-mark small {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.btn--store .store-mark strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.btn.is-placeholder {
  pointer-events: none;
  opacity: 0.92;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 85% 30%, rgba(200, 154, 163, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 35% at 10% 85%, rgba(212, 160, 140, 0.18), transparent 55%),
    linear-gradient(180deg, var(--ivory) 0%, var(--blush) 100%);
}

.hero__inner {
  position: relative;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--pad) clamp(3rem, 8vw, 5rem);
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}

.hero__copy {
  max-width: 34rem;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 4.85rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 1.15rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--magenta);
}

.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink);
  font-weight: 500;
  max-width: 28ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__visual::before {
  content: "";
  position: absolute;
  width: min(92%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--rose) 45%, transparent);
  opacity: 0.55;
  pointer-events: none;
}

.hero__visual::after {
  content: "";
  position: absolute;
  width: min(78%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--magenta) 22%, transparent);
  opacity: 0.4;
  pointer-events: none;
}

.hero__visual picture,
.hero__visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  filter: drop-shadow(0 24px 48px rgba(42, 27, 44, 0.12));
}

/* Mobile: illustration first via order */
@media (max-width: 899px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
    padding-top: 0.5rem;
  }

  .hero__visual picture,
  .hero__visual img {
    width: min(86vw, 360px);
  }

  .hero__lede {
    max-width: 34ch;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
  }
}

/* ── Sections shared ─────────────────────────────────────────────────────── */

.section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--pad);
}

.section--flush {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.section__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 0.85rem;
}

.section__intro {
  color: var(--ink);
  font-size: 1.05rem;
  max-width: 40ch;
}

.divider {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

/* ── How it works ────────────────────────────────────────────────────────── */

.steps {
  margin-top: 3rem;
  display: grid;
  gap: 0;
}

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

.step {
  padding: 1.75rem 0;
  border-top: 1px solid var(--hairline);
}

@media (min-width: 800px) {
  .step {
    padding: 2rem 1.75rem 0 0;
    border-top: 0;
    border-left: 1px solid var(--hairline);
  }

  .step:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .step:not(:first-child) {
    padding-left: 1.75rem;
  }
}

.step__num {
  font-family: Manrope, sans-serif;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: var(--rose-deep);
  margin-bottom: 0.85rem;
}

.step h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--ink);
  font-size: 0.98rem;
  max-width: 28ch;
}

/* ── Experience ──────────────────────────────────────────────────────────── */

.experience {
  background: linear-gradient(180deg, var(--blush) 0%, var(--ivory) 100%);
  border-block: 1px solid var(--hairline);
}

.experience__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .experience__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.experience__copy .eyebrow {
  margin-bottom: 0.85rem;
}

.device {
  justify-self: center;
  width: min(100%, 280px);
  padding: 12px;
  border-radius: 36px;
  background: var(--plum);
  box-shadow: 0 28px 60px rgba(42, 27, 44, 0.18);
}

.device__screen {
  border-radius: 26px;
  overflow: hidden;
  background: var(--ivory);
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  text-align: center;
  gap: 0.75rem;
}

.device__screen img {
  width: 72%;
  margin-bottom: 0.25rem;
}

.device__score {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--plum);
}

.device__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.device__names {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 500;
}

/* ── Privacy ─────────────────────────────────────────────────────────────── */

.privacy {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .privacy {
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.privacy__mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--magenta);
}

.privacy__mark svg {
  width: 26px;
  height: 26px;
}

.privacy__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}

.privacy__links a {
  font-weight: 600;
  text-decoration: none;
  color: var(--plum);
  border-bottom: 1px solid color-mix(in srgb, var(--plum) 35%, transparent);
}

.privacy__links a:hover {
  border-bottom-color: var(--magenta);
  color: var(--magenta);
}

/* ── Download / CTA ──────────────────────────────────────────────────────── */

.download {
  text-align: center;
  padding-block: clamp(4.5rem, 12vw, 8rem);
}

.download__inner {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.download h2 {
  margin-bottom: 0.75rem;
}

.download p {
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.download__hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--hairline);
  background: var(--ivory-deep);
  padding: 3rem var(--pad) 2.5rem;
}

.footer__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer__brand-name {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.footer__tag {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: italic;
  font-family: "DM Serif Display", Georgia, serif;
}

.footer h3 {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--plum);
}

.footer__dev {
  color: var(--ink);
  font-size: 0.95rem;
}

.footer__dev a {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
}

.footer__base {
  width: min(var(--max), 100%);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* ── Motion ──────────────────────────────────────────────────────────────── */

.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.rise.is-in {
  opacity: 1;
  transform: none;
}

.hero .rise-1 {
  animation: rise-in 0.9s var(--ease) 0.05s both;
}

.hero .rise-2 {
  animation: rise-in 0.95s var(--ease) 0.16s both;
}

.hero .rise-3 {
  animation: rise-in 1s var(--ease) 0.28s both;
}

.hero .rise-4 {
  animation: rise-in 1.05s var(--ease) 0.38s both;
}

.hero__visual {
  animation: art-in 1.2s var(--ease) 0.15s both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .hero .rise-1,
  .hero .rise-2,
  .hero .rise-3,
  .hero .rise-4,
  .hero__visual {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .btn:hover {
    transform: none;
  }
}
