/* ============================================================
   Hearty — Match with heart.
   Design system
   ============================================================ */

:root {
  --plum: #2B1B2E;
  --plum-2: #3A2540;
  --plum-soft: #4A3152;
  --coral: #FF4D5E;
  --coral-2: #FF7A6B;
  --amber: #FFB347;
  --cream: #FFF8F4;
  --paper: #FFFDFB;
  --ink: #241A28;
  --muted: #7A6A80;
  --line: rgba(43, 27, 46, 0.12);
  --line-soft: rgba(43, 27, 46, 0.07);
  --glow: radial-gradient(circle at 30% 20%, rgba(255,179,71,.55), transparent 60%),
          radial-gradient(circle at 80% 70%, rgba(255,77,94,.45), transparent 55%);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -26px rgba(43, 27, 46, 0.42);
  --shadow-sm: 0 10px 28px -14px rgba(43, 27, 46, 0.28);
  --wrap: 1140px;
  --font-head: "Fraunces", Georgia, "Songti SC", serif;
  --font-body: "Manrope", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(760px 520px at 92% -10%, rgba(255,179,71,.20), transparent 62%),
    radial-gradient(680px 480px at -14% 4%, rgba(255,77,94,.13), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 .9em;
  display: inline-block;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--coral-2));
  box-shadow: 0 18px 34px -16px rgba(255,77,94,.95);
}
.btn--ghost { border: 1.8px solid var(--plum); color: var(--plum); background: transparent; }
.btn--ghost:hover { background: var(--plum); color: #fff; }
.btn--android {
  color: #fff;
  background: linear-gradient(135deg, #3DDC84, #1FA463);
  box-shadow: 0 18px 34px -16px rgba(31,164,99,.9);
}
.btn--light { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.22); }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn[hidden] { display: none !important; }
.dl-row { display: flex; gap: 14px; flex-wrap: wrap; }
.dl-row.center { justify-content: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,253,251,.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-head); font-weight: 900; font-size: 1.32rem; letter-spacing: -.02em;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 8px 18px -10px rgba(43,27,46,.8); }
.brand__dot { color: var(--coral); }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-weight: 700; font-size: 15px; color: var(--plum-soft); transition: color .15s; }
.nav__links a:hover { color: var(--coral); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--plum); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--plum);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .lead { max-width: 480px; }
.hero__cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; font-size: 14px; font-weight: 700; color: var(--plum-soft); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--coral); flex: none; }

/* phone mockup */
.phone {
  position: relative; justify-self: center; width: 300px; height: 600px; border-radius: 44px;
  background: linear-gradient(160deg, #3A2540, #23142A);
  padding: 12px; box-shadow: 0 40px 80px -30px rgba(43,27,46,.75), inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone::after {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; border-radius: 999px; background: #170D1C;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, #FFE7D6, #FFF8F4 45%, #FDEBE4);
  display: flex; flex-direction: column; padding: 52px 18px 18px;
}
.pcard {
  background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow-sm);
}
.pcard__img {
  height: 210px; border-radius: 14px; background:
    radial-gradient(circle at 32% 30%, #FFB347 0%, #FF7A6B 42%, #FF4D5E 100%);
  position: relative; margin-bottom: 12px; overflow: hidden;
}
.pcard__img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 80%, rgba(255,255,255,.45), transparent 55%);
}
.pcard__img b {
  position: absolute; left: 12px; bottom: 10px; color: #fff; font-size: 20px;
  font-family: var(--font-head); font-weight: 900; text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.pcard__row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--plum-soft); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px; background: #EAF8F0; color: #1FA463;
}
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #FFF1E8; color: #B5452F; font-size: 12px; font-weight: 700; margin: 8px 6px 0 0; }
.prow { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.pbtn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-sm); font-size: 20px;
}
.pbtn--yes { background: linear-gradient(135deg, var(--coral), var(--coral-2)); color: #fff; }
.float-chip {
  position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
  font-size: 13px; font-weight: 800; color: var(--plum); display: flex; align-items: center; gap: 8px;
}
.float-chip small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; }
.float-chip--a { top: 74px; left: -34px; }
.float-chip--b { bottom: 92px; right: -30px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61,220,132,.22); }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.tight { padding: 48px 0; }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: 0 14px 34px -26px rgba(43,27,46,.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(43,27,46,.55); }
.card__ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(140deg, #FFF1E8, #FFE3D6); color: var(--coral); margin-bottom: 18px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.step { position: relative; padding-top: 6px; }
.step__no {
  font-family: var(--font-head); font-weight: 900; font-size: 2.9rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.6px var(--amber); margin-bottom: 14px;
}
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split h2 { margin-bottom: .45em; }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: .98rem; color: var(--plum-soft); }
.checklist svg { flex: none; margin-top: 3px; color: var(--coral); }
.media-card {
  border-radius: var(--radius); padding: 34px; background:
    linear-gradient(150deg, #FFF1E8, #FFF8F4); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
}
.mini-chat { display: flex; flex-direction: column; gap: 12px; }
.bubble {
  max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.5;
  background: #fff; box-shadow: var(--shadow-sm); color: var(--plum-soft);
}
.bubble--me { align-self: flex-end; background: linear-gradient(135deg, var(--coral), var(--coral-2)); color: #fff; }
.bubble small { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: linear-gradient(150deg, #3A2540, #2B1B2E); border-radius: 28px; padding: 44px 30px; color: #fff;
  position: relative; overflow: hidden;
}
.stats::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 320px at 82% -10%, rgba(255,179,71,.38), transparent 62%);
}
.stat { text-align: center; position: relative; }
.stat b { display: block; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.stat span { font-size: .85rem; opacity: .72; font-weight: 600; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: 0 14px 34px -26px rgba(43,27,46,.5); display: flex; flex-direction: column;
}
.quote p { font-size: .98rem; color: var(--plum-soft); }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; color: #fff; font-size: 15px; flex: none;
}
.quote__who b { display: block; font-size: .92rem; }
.quote__who span { font-size: .8rem; color: var(--muted); }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 13px; margin-bottom: 12px; }

/* faq */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 4px 22px;
  margin-bottom: 12px; box-shadow: 0 10px 24px -20px rgba(43,27,46,.5);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; font-size: 1rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--plum);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--coral); font-weight: 700; line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: .95rem; padding: 0 0 18px; margin: 0; }

/* download CTA band */
.dl-band {
  background: linear-gradient(140deg, #3A2540, #2B1B2E); border-radius: 30px;
  padding: 60px 40px; color: #fff; text-align: center; position: relative; overflow: hidden;
}
.dl-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 340px at 78% 0%, rgba(255,179,71,.4), transparent 62%),
              radial-gradient(440px 300px at 10% 100%, rgba(255,77,94,.32), transparent 60%);
}
.dl-band h2 { position: relative; }
.dl-band p { position: relative; opacity: .82; max-width: 460px; margin: 0 auto 30px; }
.dl-band .dl-row { position: relative; }
.dl-band .btn--apk-hint { position: relative; margin-top: 18px; font-size: 13px; opacity: .6; }

/* footer */
.footer { background: var(--plum); color: rgba(255,255,255,.66); padding: 56px 0 34px; margin-top: 20px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: .92rem; }
.footer a:hover { color: var(--amber); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; opacity: .7;
}

/* legal pages */
.page-head { padding: 64px 0 24px; }
.page-head h1 { margin-bottom: .3em; }
.legal { max-width: 800px; margin: 0 auto; padding-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); font-size: .97rem; }
.legal ul { padding-left: 20px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .nav__links.is-open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; box-shadow: 0 18px 30px -24px rgba(43,27,46,.6);
  }
  .nav__links.is-open a { padding: 10px 0; font-size: 16px; width: 100%; }
  .hero { padding: 60px 0 50px; }
  .phone { width: 270px; height: 552px; }
  .float-chip--a { left: -10px; }
  .float-chip--b { right: -6px; }
  .cards, .cards--4, .steps, .quotes { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__links.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 680px) {
  section { padding: 56px 0; }
  .cards, .cards--4, .steps, .quotes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; padding: 34px 22px; }
  .dl-band { padding: 44px 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .nav__actions .btn--ghost { display: none; }
  .float-chip { display: none; }
  .hero__cta .btn { width: 100%; }
}
