/* Attune — attune-dating.com
   Same system as the app: ink and white, one coral accent, Manrope. */

:root {
  --ink: #0e0e10;
  --accent: #ef5b45;
  --accent-soft: #fde9e4;
  --canvas: #f6f6f4;
  --field: #f2f2f0;
  --hairline: #e7e7e4;
  --text-2: #6b6b68;
  --text-3: #9a9a96;
  --white: #ffffff;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1120px;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Warm glow and a little grain so the canvas is not flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(239, 91, 69, 0.10), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(14, 14, 16, 0.05), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 246, 244, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; }
.nav__links { display: none; gap: 28px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.nav__links a:hover { color: var(--ink); }
@media (min-width: 760px) { .nav__links { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms, border-color 160ms, opacity 160ms;
}
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #26262a; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: #e04d37; }
.btn--ghost { background: transparent; border-color: var(--hairline); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

h1.display {
  margin: 18px 0 20px;
  font-size: clamp(42px, 7.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}
.lede { margin: 0 0 32px; max-width: 34ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); text-wrap: pretty; }

/* Waitlist form: one pill, input and button inside */
.waitlist { max-width: 480px; }
.waitlist__row {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: border-color 160ms, box-shadow 160ms;
}
.waitlist__row:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(14, 14, 16, 0.06); }
.waitlist__row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  outline: none;
}
.waitlist__row input::placeholder { color: var(--text-3); }
.waitlist__row .btn { height: 44px; }
.waitlist__note { margin: 12px 0 0; font-size: 13px; color: var(--text-3); }
.waitlist__msg { margin: 12px 0 0; font-size: 14px; font-weight: 600; min-height: 1.4em; }
.waitlist__msg[data-state="ok"] { color: var(--ink); }
.waitlist__msg[data-state="error"] { color: var(--accent); }
.waitlist.is-done .waitlist__row { opacity: 0.5; pointer-events: none; }
@media (max-width: 420px) {
  .waitlist__row { flex-direction: column; border-radius: var(--r-md); padding: 8px; }
  .waitlist__row input { height: 46px; }
}

/* ---------- Phone + card stack ---------- */
.stage { position: relative; display: grid; place-items: center; min-height: 560px; overflow: hidden; padding: 24px 0 40px; }
.ghost {
  position: absolute;
  width: 250px;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(14, 14, 16, 0.35);
  opacity: 0.8;
}
.ghost img { width: 100%; height: 100%; object-fit: cover; }
.ghost--l { transform: translateX(-150px) rotate(-8deg) scale(0.92); }
.ghost--r { transform: translateX(150px) rotate(7deg) scale(0.92); }
.ghost::after { content: ""; position: absolute; inset: 0; background: rgba(246, 246, 244, 0.35); }
@media (max-width: 520px) { .ghost--l { transform: translateX(-105px) rotate(-8deg) scale(0.82); } .ghost--r { transform: translateX(105px) rotate(7deg) scale(0.82); } }

.phone {
  position: relative;
  width: 300px;
  padding: 12px;
  border-radius: 46px;
  background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(14, 14, 16, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: float 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.phone__screen { border-radius: 36px; background: var(--white); padding: 12px 10px 14px; }
.phone__bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 12px; font-size: 12px; font-weight: 700; }
.phone__bar span:last-child { width: 44px; height: 8px; border-radius: 4px; background: var(--ink); }
.phone__title { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; padding: 0 8px 10px; }
.phone__actions { display: flex; justify-content: center; align-items: center; gap: 18px; padding-top: 14px; }
.act { width: 46px; height: 46px; border-radius: 50%; background: var(--white); border: 1px solid var(--hairline); display: grid; place-items: center; box-shadow: 0 6px 16px -8px rgba(14, 14, 16, 0.3); }
.act--like { width: 58px; height: 58px; background: var(--accent); border-color: var(--accent); box-shadow: 0 10px 24px -10px rgba(239, 91, 69, 0.8); }
.act svg { width: 20px; height: 20px; }

/* The card: the one thing to remember */
.card {
  position: relative;
  aspect-ratio: 9 / 15.2;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 40%; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent); }
.card::after { content: ""; position: absolute; inset: auto 0 0; height: 62%; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.88)); }
.card > * { position: relative; z-index: 1; }
.glass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glass--owner { padding: 4px 11px 4px 4px; font-size: 12.5px; }
.glass svg { width: 12px; height: 12px; }
.pill--accent { background: var(--accent); border-color: var(--accent); }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, 0.9); }
.card__top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card__pills { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.card__bottom { position: absolute; left: 16px; right: 12px; bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.card__name { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.card__meta { margin-top: 4px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
.card__chev { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.card__chev svg { width: 18px; height: 18px; }

/* Dream pet (no pet yet) */
.dream { position: relative; width: 30px; height: 30px; }
.dream img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, 0.9); }
.dream__mark { position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--white); display: grid; place-items: center; }
.dream__mark svg { width: 8px; height: 8px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); border-top: 1px solid var(--hairline); }
.section__head { max-width: 40ch; margin-bottom: clamp(36px, 5vw, 64px); }
h2 { margin: 14px 0 12px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.section__head p { margin: 0; color: var(--text-2); font-size: 18px; text-wrap: pretty; }

.steps { display: grid; gap: 20px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { padding: 28px 26px 30px; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg); }
.step__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 800; }
.step h3 { margin: 22px 0 8px; font-size: 21px; letter-spacing: -0.02em; font-weight: 800; }
.step p { margin: 0; color: var(--text-2); font-size: 15.5px; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split--flip > :first-child { order: 2; } }
.split .card { width: min(300px, 100%); aspect-ratio: 9 / 14; margin-inline: auto; box-shadow: 0 40px 80px -40px rgba(14, 14, 16, 0.5); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--white); font-size: 14px; font-weight: 600; }
.chip--on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip svg { width: 14px; height: 14px; }

.principles { display: grid; gap: 28px; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.principle__bar { width: 44px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 20px; }
.principle h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.02em; font-weight: 800; }
.principle p { margin: 0; color: var(--text-2); font-size: 15.5px; }

.faq { max-width: 720px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--text-3); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 24px; color: var(--text-2); max-width: 60ch; }

.cta { padding-block: clamp(64px, 9vw, 128px); border-top: 1px solid var(--hairline); }
.cta__box { background: var(--ink); color: var(--white); border-radius: 32px; padding: clamp(36px, 6vw, 72px); display: grid; gap: 28px; align-items: center; overflow: hidden; position: relative; }
@media (min-width: 900px) { .cta__box { grid-template-columns: 1.2fr 1fr; } }
.cta__box::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(239, 91, 69, 0.55), transparent 62%); pointer-events: none; }
.cta__box h2 { margin: 0 0 10px; }
.cta__box p { margin: 0; color: rgba(255, 255, 255, 0.72); }
.cta__box .waitlist__row { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }
.cta__box .waitlist__row:focus-within { border-color: rgba(255, 255, 255, 0.6); box-shadow: none; }
.cta__box .waitlist__row input { color: var(--white); }
.cta__box .waitlist__row input::placeholder { color: rgba(255, 255, 255, 0.5); }
.cta__box .waitlist__note { color: rgba(255, 255, 255, 0.5); }
.cta__box .waitlist__msg[data-state="ok"] { color: var(--white); }
.cta__box .btn--ink { background: var(--white); color: var(--ink); }
.cta__box .btn--ink:hover { background: #ececea; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding-block: 40px; font-size: 14px; color: var(--text-2); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 600; }
.footer__links a:hover { color: var(--ink); }

/* ---------- Article pages ---------- */
.article { padding-block: clamp(48px, 7vw, 96px); }
.prose { max-width: 680px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1.02; margin: 12px 0 8px; font-weight: 800; }
.prose .updated { color: var(--text-3); font-size: 14px; margin: 0 0 40px; }
.prose h2 { font-size: 24px; margin: 44px 0 10px; letter-spacing: -0.02em; }
.prose h3 { font-size: 18px; margin: 28px 0 6px; }
.prose p, .prose li { color: #3a3a38; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .callout { padding: 18px 20px; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-md); margin: 24px 0; }
.prose .callout p { margin: 0; }
.prose ol { padding-left: 22px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
