/* DatingVerse. Light, editorial, product-first. Tokens first; every colour below comes from here. */
:root {
  color-scheme: light;
  --bg: #fafaf8;
  --surface: #ffffff;
  --ink: #171717;            /* 17.4:1 on --bg */
  --muted: #666666;          /* 5.5:1 on --bg */
  --line: #e8e7e4;
  --brand: #635bce;          /* 5.0:1 on --bg; white on it 5.4:1 */
  --brand-ink: #4c44b3;
  --plum: #6e3f6b;           /* Hello Us. 8.6:1 on white */
  --plum-tint: #f3edf2;
  --coral: #b4492f;          /* Still Us. 5.3:1 on white */
  --coral-tint: #fbefe9;
  --night: #171717;
  --night-muted: #b5b5b5;    /* 8.6:1 on --night */

  --display: 'Manrope', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;

  --h1: clamp(2.6rem, 1.45rem + 4.6vw, 4.5rem);
  --h2: clamp(2rem, 1.35rem + 2.5vw, 3.25rem);
  --h3: clamp(1.65rem, 1.3rem + 1.4vw, 2.4rem);
  --lead: clamp(1.06rem, 1rem + .3vw, 1.2rem);

  --radius: 14px;
  --radius-lg: 22px;
  --gap: clamp(1.25rem, .8rem + 2vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.shell { width: min(100% - 2rem, 1240px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .75rem 1rem; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 1rem; }

.eyebrow { font: 600 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow span { color: var(--brand); margin-right: .35rem; }
.lead { font-size: var(--lead); line-height: 1.6; color: var(--muted); max-width: 36rem; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.3rem; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .95rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.button:hover { background: #2e2e2e; }
.button:active { transform: translateY(1px); }
.button.small { min-height: 40px; padding: .5rem 1rem; font-size: .875rem; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--surface); border-color: #d6d4cf; }
.button.light { background: #fff; color: var(--ink); }
.button.light:hover { background: #ececea; }
.button.ghost { background: transparent; color: #fff; border-color: #ffffff40; }
.button.ghost:hover { border-color: #fff; }
.arrow { display: inline-block; transition: transform .2s var(--ease); }
a:hover > .arrow { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink); }
.text-link:hover { color: var(--brand-ink); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.top.scrolled { border-bottom-color: var(--line); background: #fafaf8f2; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; font-size: .925rem; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 999px; transition: color .2s var(--ease); }
.site-nav a:not(.button):hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav .button { margin-left: .75rem; }
.menu-button { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; place-items: center; }
.menu-lines { position: relative; display: block; width: 20px; height: 12px; }
.menu-lines::before, .menu-lines::after { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease); }
.menu-lines::before { transform: translateY(-3.5px); }
.menu-lines::after { transform: translateY(3.5px); }
[aria-expanded='true'] .menu-lines::before { transform: rotate(45deg); }
[aria-expanded='true'] .menu-lines::after { transform: rotate(-45deg); }

/* Hero */
.hero { padding-block: clamp(3rem, 1.5rem + 6vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.hero h1 { font-size: var(--h1); margin: 1.25rem 0 1.5rem; }
.hero h1 em { display: block; color: var(--brand); }
.hero .lead { max-width: 31rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 2rem; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; align-items: start; }
.hero-art figure { margin: 0; }
.hero-art .panel { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; }
.hero-art .hello-us .panel { background: var(--plum-tint); }
.hero-art .ever-us .panel { background: var(--coral-tint); }
/* Both apps sit in the same 3:4 frame so the pair reads as one row. */
.hero-art img { width: 76%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 16px; box-shadow: 0 18px 40px -20px #2a1a2a66; }
.hero-art figcaption { margin-top: .75rem; font-size: .85rem; color: var(--muted); }
.hero-art figcaption strong { color: var(--ink); font-weight: 600; }

.index { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(3rem, 2rem + 4vw, 5rem); border-top: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .25rem 1rem; padding: 1.25rem 0; text-decoration: none; }
.index a + a { padding-left: var(--gap); border-left: 1px solid var(--line); }
.index .num { font: 500 .8rem/1 var(--sans); color: var(--muted); }
.index strong { font: 700 1.2rem/1.2 var(--display); letter-spacing: -.02em; }
.index span:not(.num) { grid-column: 2; font-size: .925rem; color: var(--muted); }
.index a:hover strong { color: var(--brand-ink); }

/* Sections */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: end; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-head h2 { font-size: var(--h2); margin-top: 1rem; max-width: 14ch; }
.section-head .lead { justify-self: end; max-width: 30rem; }

/* Product showcases */
.products { display: grid; gap: clamp(4rem, 3rem + 5vw, 7.5rem); }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.product.flip .product-copy { order: 2; }
.product h3 { font-size: var(--h3); margin: 1rem 0 1.1rem; max-width: 16ch; }
.product .eyebrow { color: var(--accent); }
.product .eyebrow span, .detail .eyebrow span { color: inherit; opacity: .7; }
.hello-us { --accent: var(--plum); --tint: var(--plum-tint); }
.ever-us { --accent: var(--coral); --tint: var(--coral-tint); }
.points { margin: 2rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.points div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.points dt { font-weight: 600; font-size: .95rem; }
.points dd { margin: 0; color: var(--muted); font-size: .925rem; line-height: 1.55; }
.product .points div { grid-template-columns: 1fr; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 2rem; }
.button.tinted { background: var(--accent); }
.button.tinted:hover { background: var(--ink); }

.product-art { background: var(--tint); border-radius: var(--radius-lg); padding: clamp(1.25rem, .5rem + 3vw, 3rem); overflow: hidden; }
.shots { display: grid; gap: clamp(.6rem, .3rem + 1vw, 1.1rem); align-items: center; }
.hello-us .shots { grid-template-columns: repeat(3, 1fr); }
.hello-us .shots img { border-radius: clamp(12px, 1.6vw, 22px); box-shadow: 0 24px 48px -24px #3a1f3a80; }
.hello-us .shots img:nth-child(2) { transform: translateY(-6%); }
.ever-us .shots { grid-template-columns: repeat(2, 1fr); }
.ever-us .shots img { border-radius: var(--radius); box-shadow: 0 18px 40px -22px #7a2e1c66; }

/* Approach */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: p; }
.principles article { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.principles .num { font: 500 .85rem/1 var(--sans); color: var(--brand); }
.principles h3 { font-size: 1.4rem; letter-spacing: -.025em; margin: 1.25rem 0 .75rem; }
.principles p { color: var(--muted); max-width: 22rem; }

/* About on the homepage */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); }
.about-grid h2 { font-size: var(--h2); margin-top: 1rem; }
.about-body { display: grid; gap: 2rem; }
.about-body > p { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.5; letter-spacing: -.01em; }
.now { display: grid; border-top: 1px solid var(--line); }
.now div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.now dt { font-weight: 600; }
.now dd { margin: 0; color: var(--muted); text-align: right; }

/* Closing */
.closing { background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(1.5rem, 1rem + 4vw, 5rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.closing h2 { font-size: var(--h2); max-width: 15ch; }
.closing h2 em { color: #c9c4ff; }
.closing p { color: var(--night-muted); margin-bottom: 1.75rem; max-width: 26rem; }
.closing-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.closing :focus-visible { outline-color: #fff; }

/* Footer */
.footer { margin-top: var(--section); border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { color: var(--muted); max-width: 22rem; margin-top: .75rem; font-size: .925rem; }
.footer nav { display: grid; align-content: start; gap: .1rem; }
.footer h2 { font: 600 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.footer nav a { display: inline-flex; align-items: center; min-height: 36px; font-size: .925rem; text-decoration: none; width: fit-content; }
.footer nav a:hover { color: var(--brand-ink); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 3rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* Inner pages */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero h1 { font-size: var(--h1); margin: 1.25rem 0 1.5rem; max-width: 14ch; }
.page-hero h1 em { color: var(--brand); }

.detail { padding-block: var(--section); border-top: 1px solid var(--line); }
.detail-head { display: grid; gap: 1rem; max-width: 44rem; }
.detail-head .eyebrow { color: var(--accent); }
.detail-head h2 { font-size: var(--h2); }
.detail-headline { font: 400 italic clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem)/1.2 var(--serif); color: var(--accent); }
.strip { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; background: var(--tint); padding-block: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
.strip:focus-visible { outline-offset: -3px; border-radius: 0; }
/* Edge to edge: the screens fill the page width and scroll sideways past it. */
.strip-row { display: flex; gap: clamp(.75rem, .5rem + .8vw, 1.25rem); width: max-content; padding-inline: clamp(1rem, 3vw, 3rem); }
.strip img { scroll-snap-align: center; flex: none; }
.hello-us .strip img { height: clamp(420px, 36vw, 760px); width: auto; border-radius: clamp(20px, 1.6vw, 30px); }
.ever-us .strip img { height: clamp(300px, 26vw, 520px); width: auto; border-radius: var(--radius); }
.detail-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--gap); margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); align-items: start; }
.detail-body h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.detail-body .points { margin-top: 1rem; }
.get { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; display: grid; gap: .25rem; position: sticky; top: 5.5rem; }
.get h3 { margin-bottom: .75rem; }
.get-row { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding: .85rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.get-row strong { font-weight: 600; font-size: .95rem; }
.get-row span:not(.arrow) { grid-column: 1; color: var(--muted); font-size: .875rem; }
.get-row .arrow { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--muted); }
.get-row:hover strong { color: var(--accent); }
.get .fine { font-size: .85rem; color: var(--muted); padding: .85rem 0 1rem; border-top: 1px solid var(--line); }

.rows { display: grid; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem); border-bottom: 1px solid var(--line); }
.row h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); letter-spacing: -.025em; }
.row .body { display: grid; gap: 1rem; max-width: 40rem; font-size: 1.05rem; }
.row .body p { color: #3b3b3b; }
.row .body .now { margin-top: .5rem; }
.contact-link { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; font: 600 clamp(1.15rem, 1rem + .7vw, 1.5rem)/1.3 var(--display); letter-spacing: -.02em; color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; word-break: break-word; }
.contact-link:hover { color: var(--ink); }

/* Motion: entrances only, and only when people haven't asked for less. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-art img { transition: transform .5s var(--ease); }
  .hero-art figure:hover img { transform: translateY(-4px); }
}

/* Tablet */
@media (max-width: 960px) {
  .hero-grid, .section-head, .product, .about-grid, .closing, .detail-body { grid-template-columns: 1fr; }
  .hero-grid { align-items: start; }
  .hero-art { max-width: 560px; }
  .section-head .lead { justify-self: start; }
  /* Phones see the app right after the intro, not after the whole list. */
  .product { gap: 0; }
  .product-copy { display: contents; }
  .product-art { order: 1; margin-top: 2rem; }
  .product .points, .product .actions { order: 2; }
  .principles { grid-template-columns: 1fr; gap: 0; }
  .principles article { display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; padding-block: 1.5rem; border-top-color: var(--line); }
  .principles article:first-child { border-top-color: var(--ink); }
  .principles .num { grid-row: span 2; padding-top: .35rem; }
  .principles h3 { margin: 0 0 .5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .get { position: static; }
  .row { grid-template-columns: 1fr; gap: 1rem; }
}

/* Navigation collapses before the links crowd the logo */
@media (max-width: 860px) {
  .js .menu-button { display: grid; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line); }
  .js .site-nav.open { display: flex; }
  .js .site-nav a:not(.button) { min-height: 52px; padding: 0; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .site-nav .button { margin: 1rem 0 0; }
  .top-row { position: relative; }
  html:not(.js) .site-nav { flex-wrap: wrap; justify-content: flex-end; }
}

/* Phone */
@media (max-width: 600px) {
  .hero-actions .button { flex: 1 1 100%; }
  .index { grid-template-columns: 1fr; }
  .index a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .points div { grid-template-columns: 1fr; }
  .product-art { margin-inline: -1rem; border-radius: 0; }
  .actions .button { flex: 1 1 100%; }
  .closing { margin-inline: -1rem; border-radius: 0; }
  .closing-actions .button { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer nav[aria-label='Legal'] { grid-column: 1 / -1; }
  .now div { flex-direction: column; gap: .15rem; }
  .now dd { text-align: left; }
}
