/* Landing page (index.html). Tokens and buttons come from jelly.css. Calm: gentle fade-ins on
   scroll only, nothing bounces, nothing loops except the CTA's slow light. */

.landing { --wrap: 1120px; }
.landing main { overflow-x: clip; }
.landing h1 { font-size: clamp(42px, 12vw, 72px); line-height: .98; margin: 0; letter-spacing: -0.02em; }
.landing h2 { font-size: clamp(30px, 8vw, 44px); line-height: 1.05; margin: 0 0 18px; }
.landing h3 { font-size: 20px; line-height: 1.2; margin: 0 0 6px; }
.landing p { line-height: 1.5; }
.landing .fine { font-size: 13px; color: var(--ink-3); text-align: center; margin: 10px 0 0; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; max-width: var(--wrap); margin: 0 auto;
}
.nav::before { content: ""; position: absolute; inset: 0 -100vw; z-index: -1; background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav-brand { display: inline-flex; align-items: center; min-height: 44px; }
.nav-brand img { display: block; height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { display: none; padding: 10px 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 999px; }
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav-cta { min-height: 44px; font-size: 15px; padding: 0 18px; }
@media (min-width: 760px) { .nav-links a:not(.btn) { display: inline-flex; } }
/* "Sign in" for people who've been here before: on every width (landing.js swaps it for "Your matches"). */
.nav-links a.nav-signin { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 10px; color: var(--ink); white-space: nowrap; }
.nav-cta { white-space: nowrap; }
@media (max-width: 400px) { .nav { gap: 6px; } .nav-brand img { height: 34px; } .nav-links a.nav-signin { padding: 10px 6px; } .nav-cta { padding: 0 14px; } }

/* Hero */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 18px 20px 8px; display: grid; gap: 18px; }
.hero-word { display: none; width: 168px; height: auto; margin-bottom: 14px; }
.squiggle { display: block; width: 210px; height: auto; margin: 10px 0 12px -6px; }
.hero-sub { font-size: 19px; color: var(--ink-2); margin: 0 0 22px; max-width: 30ch; }
.hero-ctas { display: grid; gap: 12px; max-width: 420px; }
.hero-ctas .btn-soft svg { width: 20px; height: 20px; }
.hero-fine { font-size: 14px; color: var(--ink-3); margin: 14px 0 0; }
.hero-fine a { color: var(--accent-text); font-weight: 600; }
.hero-app { font-size: 14px; margin: 8px 0 0; }
.hero-app a { color: var(--ink-3); }
.hero-coverage { color: var(--ink-3); font-size: 13px; margin: 4px 0 0; max-width: 42ch; }
.laurel { display: inline-flex; align-items: center; gap: 4px; margin-top: 22px; color: var(--tomato); }
.laurel .leaf { width: 26px; height: 52px; }
.laurel .leaf.flip { transform: scaleX(-1); }
.laurel div { text-align: center; }
.laurel strong { display: block; font: 700 30px/1 var(--font-head); color: var(--ink); }
.laurel small { display: block; font: 700 10.5px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }

.hero-art { position: relative; height: 560px; display: grid; place-items: center; }
.phone {
  position: relative; z-index: 2; width: 252px; aspect-ratio: 600 / 1304; border-radius: 44px; padding: 9px;
  background: linear-gradient(145deg, #E9E4E0, #B9B2AD 40%, #F2EEEA 60%, #A9A29D);
  box-shadow: 0 30px 60px rgba(150, 60, 50, .25), 0 6px 14px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(255, 255, 255, .6);
  transform: rotate(4deg);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: #000; }
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 999px; background: #0B0B0C; }
.hero-mascot { position: absolute; z-index: 3; width: 150px; height: auto; left: calc(50% - 205px); bottom: 34px; filter: drop-shadow(0 12px 18px rgba(229, 64, 94, .22)); }
.drip { position: absolute; z-index: 1; width: 64px; height: auto; right: calc(50% - 175px); top: -10px; opacity: .95; }
.float { position: absolute; z-index: 3; height: auto; filter: drop-shadow(0 10px 16px rgba(120, 50, 40, .18)); }
.float.f1 { width: 84px; right: calc(50% - 190px); top: 120px; }
.float.f2 { width: 76px; left: calc(50% - 190px); top: 70px; }
.float.f3 { width: 84px; right: calc(50% - 175px); bottom: 70px; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; padding: 34px 28px 20px; min-height: min(760px, calc(100vh - 70px)); }
  .hero-word { display: block; width: 210px; }
  .hero-ctas { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .hero-art { height: 640px; }
  .phone { width: 290px; }
  .hero-mascot { width: 180px; left: calc(50% - 250px); }
  .float.f1 { right: calc(50% - 230px); }
  .float.f2 { left: calc(50% - 230px); }
  .float.f3 { right: calc(50% - 215px); }
  .drip { right: calc(50% - 205px); width: 74px; }
}

/* The group chat */
.chat { max-width: 420px; margin: 8px auto 0; padding: 0 20px; display: flex; flex-direction: column; gap: 8px; }
.bubble { margin: 0; max-width: 78%; padding: 10px 14px; border-radius: 20px; font-size: 16px; line-height: 1.3; background: var(--surface); border: 1px solid var(--surface-rim); box-shadow: var(--shadow-sm); }
.bubble.l { align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.r { align-self: flex-end; border-bottom-right-radius: 6px; background: color-mix(in srgb, var(--tomato) 12%, var(--surface-solid)); }
.bubble.solve { display: inline-flex; align-items: center; gap: 10px; }
.bubble.solve span { text-decoration: line-through; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; color: var(--ink-3); }
.bubble.solve img { height: 26px; width: auto; display: block; }

/* Sections */
.sec { max-width: var(--wrap); margin: 0 auto; padding: 64px 20px 8px; }
.sec > h2 { text-align: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { position: relative; padding: 22px 20px 20px; text-align: center; }
.steps img { display: block; height: 104px; width: auto; margin: 0 auto 8px; }
.steps .num { position: absolute; top: 16px; left: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 700 15px/1 var(--font-head); color: #fff; background: linear-gradient(180deg, var(--coral), var(--tomato)); }
.steps p { margin: 0; color: var(--ink-2); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.features { display: grid; gap: 12px; }
.feature { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 26px; background: var(--surface); border: 1px solid var(--surface-rim); box-shadow: var(--shadow-sm); }
.feature img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } .feature { flex-direction: column; text-align: center; padding: 22px; } .feature img { width: 92px; height: 92px; } }

/* Pro */
.pro { text-align: center; }
.pro-head { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; margin-bottom: 18px; }
.pro-head img { width: 96px; height: auto; flex: none; }
.pro-head h2 { margin: 0 0 4px; }
.pro-head p { margin: 0; color: var(--ink-2); font-size: 17px; }
.pro-grid { list-style: none; margin: 0 auto; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; max-width: 720px;
  border-radius: 30px; background: var(--surface); border: 1px solid var(--surface-rim); box-shadow: var(--shadow); text-align: left; }
.pro-grid li { display: flex; align-items: center; gap: 10px; font: 600 15px/1.2 var(--font-head); }
.pro-grid img { width: 46px; height: 46px; object-fit: contain; flex: none; }
@media (min-width: 760px) { .pro-grid { grid-template-columns: repeat(4, 1fr); padding: 24px; } .pro-grid li { flex-direction: column; text-align: center; } .pro-grid img { width: 64px; height: 64px; } }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin: 22px auto 18px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px 16px; border-radius: 24px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 2px solid var(--surface-rim); box-shadow: var(--shadow-sm); }
.plan.best { border-color: var(--tomato); background: color-mix(in srgb, var(--tomato) 6%, var(--surface-solid)); }
.plan strong { font: 600 17px/1.2 var(--font-head); }
.plan .price { font: 700 28px/1.1 var(--font-head); }
.plan .price small { font: 600 14px var(--font); color: var(--ink-2); }
.plan .per { font-size: 13px; color: var(--ink-3); }
.plan .save { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  font: 700 12px/1.3 var(--font); color: #fff; background: linear-gradient(180deg, var(--coral), var(--raspberry)); }
.pro-cta { max-width: 420px; margin: 0 auto; }

/* Get the app */
.get-card { display: flex; align-items: center; gap: 16px; padding: 22px; max-width: 720px; margin: 0 auto; }
.get-card img { width: 100px; height: auto; flex: none; }
.get-card h2 { font-size: 28px; margin-bottom: 6px; }
.get-card p { margin: 0 0 12px; color: var(--ink-2); }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 14px; background: #111; color: #fff; text-decoration: none; font: 600 15px/1.15 var(--font); }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.store small { display: block; font-size: 10px; font-weight: 500; opacity: .8; }
.store.soon { background: var(--surface-2); color: var(--ink); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-radius: 22px; background: var(--surface); border: 1px solid var(--surface-rim); box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font: 600 18px/1.3 var(--font-head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: solid var(--ink-3); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

/* Footer */
.foot { max-width: var(--wrap); margin: 56px auto 0; padding: 26px 20px calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: 14px; }
.foot img { height: 34px; width: auto; display: block; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot a { color: var(--ink-2); text-decoration: none; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.foot a:hover { text-decoration: underline; }
.foot p { margin: 0; width: 100%; }
@media (min-width: 760px) { .foot p { width: auto; } }

/* Calm reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
