/* Hearmony marketing site. Colors and shapes follow the app (Theme.swift): flat violet, chunky "lip" buttons and cards. */
:root {
  --violet: #7b4dff;
  --violet-lip: #5a2fe0;
  --violet-soft: #efe8ff;
  --violet-line: #c9b6ff;
  --yellow: #ffc21a;
  --yellow-lip: #e0a000;
  --sky: #1eafff;
  --green: #2ecc71;
  --green-text: #1e9e55;
  --orange: #ff9a1f;
  --pink: #ff5cb8;
  --ink: #3c3c3c;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --polar: #f7f7f7;
  --navy: #0b184c;
  --radius: 20px;
  --wrap: 1120px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-lip); }
a:hover { color: var(--violet); }
h1, h2, h3 { font-weight: 900; line-height: 1.15; margin: 0 0 16px; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 60px); }
h2 { font-size: clamp(30px, 4vw, 40px); }
h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 22px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 800; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--violet); }
.nav .btn { color: #fff; padding: 10px 18px; font-size: 14px; }
.nav .btn:hover { color: #fff; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 900; color: var(--violet); padding: 8px 14px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel { display: none; position: absolute; right: 0; top: 52px; flex-direction: column; gap: 4px; background: #fff; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 16px; padding: 10px; min-width: 200px; }
.menu-panel a { text-decoration: none; color: var(--ink); font-weight: 800; padding: 10px 12px; border-radius: 10px; }
.menu-panel a:hover { background: var(--violet-soft); }
@media (max-width: 820px) { .nav { display: none; } .menu { display: block; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 900; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; padding: 14px 24px; border-radius: 16px; border: 0; cursor: pointer; transition: transform 0.08s ease, box-shadow 0.08s ease; }
.btn:active { transform: translateY(3px); }
.btn-violet { background: var(--violet); color: #fff; box-shadow: 0 5px 0 var(--violet-lip); }
.btn-violet:hover { color: #fff; background: #8a61ff; }
.btn-violet:active { box-shadow: 0 2px 0 var(--violet-lip); }
.btn-white { background: #fff; color: var(--violet); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18); }
.btn-white:active { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }
.badge-link { display: inline-block; line-height: 0; border-radius: 10px; }
.badge-link img { height: 56px; width: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Hero */
.hero { background: var(--violet); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 70% 50%, rgba(255, 255, 255, 0.05) 0deg 7.5deg, transparent 7.5deg 15deg); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero .lead { color: #efe8ff; }
.hero .note { color: #d9ccff; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.hero-art .phone { width: 260px; position: relative; z-index: 2; }
.hero-art .phone.back { position: absolute; right: 2%; bottom: 60px; width: 210px; transform: rotate(7deg); z-index: 1; }
.hero-art .fen { position: absolute; left: 0; bottom: -10px; width: 220px; z-index: 3; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2)); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-art { min-height: 440px; }
  .hero-art .phone { width: 220px; }
  .hero-art .phone.back { width: 180px; right: 4%; }
  .hero-art .fen { width: 160px; }
}

/* Phone frame around real screenshots */
.phone { border-radius: 38px; padding: 8px; background: #111; box-shadow: 0 20px 50px rgba(11, 24, 76, 0.35); }
.phone img { border-radius: 30px; width: 100%; }

/* Sections */
section { padding: 88px 0; }
.alt { background: var(--polar); }
.soft { background: var(--violet-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { section { padding: 64px 0; } .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }

/* Cards */
.card { background: #fff; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: var(--radius); padding: 24px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.steps .card { position: relative; padding-top: 28px; }
.steps .num { position: absolute; top: -18px; left: 20px; width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-lip); display: grid; place-items: center; font-weight: 900; color: var(--navy); }
.steps p { margin: 0; color: var(--muted); }

.adventure { display: flex; gap: 14px; align-items: center; padding: 16px; }
.adventure img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.adventure h3 { font-size: 17px; margin: 0 0 2px; }
.adventure p { margin: 0; font-size: 15px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: 0.06em; color: #fff; background: var(--green); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }

.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.feature-list strong { display: block; font-weight: 900; }
.feature-list span { color: var(--muted); }

.shots { display: flex; gap: 20px; justify-content: center; }
.shots .phone { width: 240px; }
.shots .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 560px) { .shots .phone { width: 160px; } }

.ranks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.ranks img { width: 64px; height: 64px; }

.goals { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.goal { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 16px; padding: 10px 16px 10px 10px; font-weight: 800; }
.goal img { width: 40px; height: 40px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 40px auto 0; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan h3 { font-size: 24px; }
.plan ul { padding-left: 20px; margin: 0 0 8px; }
.plan li { margin-bottom: 6px; }
.plan.pro { background: var(--navy); color: #fff; border-color: var(--navy); border-bottom-color: #050d2e; position: relative; }
.plan.pro h3 { color: #fff; }
.plan.pro .price { color: var(--yellow); }
.plan .price { font-size: 28px; font-weight: 900; margin: 8px 0 4px; }
.plan .price small { font-size: 16px; font-weight: 800; opacity: 0.8; }
.plan.pro .ribbon { position: absolute; top: -14px; right: 20px; background: var(--yellow); color: var(--navy); font-size: 13px; font-weight: 900; letter-spacing: 0.06em; padding: 4px 12px; border-radius: 999px; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 14px; }
.faq details { background: #fff; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 900; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 24px; color: var(--violet); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Final CTA */
.final { background: var(--violet); color: #fff; text-align: center; }
.final h2 { color: #fff; }
.final .lead { color: #efe8ff; margin-left: auto; margin-right: auto; }
.final img.fen { width: 180px; margin: 0 auto 8px; }
.final .cta-row { justify-content: center; }

/* Prose pages (privacy, terms, contact, blog) */
.page-head { background: var(--violet-soft); padding: 64px 0 48px; }
.page-head h1 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 8px; }
.page-head p { color: var(--muted); margin: 0; }
.page-head .wrap { max-width: 760px; }
.prose { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose h3 { margin-top: 24px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; border-bottom: 2px solid var(--line); padding: 10px 8px; }
.prose th { font-weight: 900; }
.contact-card { display: flex; gap: 20px; align-items: center; margin: 8px 0 32px; }
.contact-card img { width: 120px; flex: none; }
.empty-state { text-align: center; padding: 72px 0 96px; }
.empty-state img { width: 200px; margin: 0 auto 16px; }

/* Footer */
.site-footer { background: var(--navy); color: #c8cde6; padding: 56px 0 40px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 800; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; font-size: 13px; color: #9aa3c7; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
