/* He & Me — heandme.in. Palette mirrors mobile/lib/core/theme/app_theme.dart (dark). */
:root {
  --bg: #101014;
  --bg-alt: #15141b;
  --surface: #1c1b24;
  --surface-2: #242331;
  --border: #2a2934;
  --text: #f7f4ff;
  --muted: #a7a4ad;
  --primary: #7957ec;
  --primary-2: #a58bff;
  --pink: #ff5c8a;
  --teal: #10b7a6;
  --success: #31c77f;
  --radius: 18px;
  --wrap: 1140px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #c4b3ff; }
:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #cfcbd8; max-width: 38em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--primary-2); margin-bottom: 1em; }
.grad { background: linear-gradient(100deg, var(--primary-2) 0%, var(--pink) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Buttons & pills ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--primary); color: #fff; font: 650 1rem/1 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(121, 87, 236, .7);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: #8a6bf2; color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .9rem; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.pill {
  display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: 0 20px;
  border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
  font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(49, 199, 127, .18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(49, 199, 127, 0); } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }

/* ── Header ──────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16, 16, 20, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand .logo { width: 40px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: #d6d2df; text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 72% 40%, rgba(121, 87, 236, .35), transparent 70%),
    radial-gradient(30% 40% at 90% 70%, rgba(255, 92, 138, .18), transparent 70%),
    radial-gradient(30% 35% at 15% 10%, rgba(16, 183, 166, .10), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 610; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #2c2a38, #17161d);
  box-shadow: 0 0 0 1.5px #34323f, 0 40px 80px -20px rgba(0, 0, 0, .7), 0 30px 120px -30px rgba(121, 87, 236, .55);
  transform: rotate(2.5deg);
}
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0b0b0e; z-index: 2; }
.phone-screen { height: 100%; border-radius: 36px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; padding: 58px 12px 12px; }
.app-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 12px; }
.app-title { font-weight: 800; font-size: 1.15rem; }
.app-chip { font-size: .68rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: #d6d2df; }
.grid-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.tile { position: relative; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 9px; min-height: 0; }
.tile svg { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 82%; height: 82%; fill: rgba(255, 255, 255, .16); }
.tile b { position: relative; font-size: .72rem; font-weight: 700; line-height: 1.2; }
.tile i { position: relative; font-style: normal; font-size: .62rem; color: rgba(255, 255, 255, .7); }
.tile .on { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 2px rgba(0, 0, 0, .3); }
.t1 { background: linear-gradient(160deg, #6d4fe0, #2c2347); }
.t2 { background: linear-gradient(160deg, #d24a77, #3a1e2c); }
.t3 { background: linear-gradient(160deg, #0f9b8e, #15302e); }
.t4 { background: linear-gradient(160deg, #e0703f, #3a2318); }
.t5 { background: linear-gradient(160deg, #9b43bf, #2b1a33); }
.t6 { background: linear-gradient(160deg, #d79a1c, #3a2c12); }
.tabbar { display: flex; justify-content: space-around; padding: 14px 10px 4px; }
.tabbar span { width: 22px; height: 5px; border-radius: 3px; background: var(--surface-2); }
.tabbar .active { background: var(--primary); }

.float { position: absolute; background: rgba(28, 27, 36, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid #34323f; border-radius: 18px; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .7); }
.float-chat { left: -6%; bottom: 14%; padding: 12px; display: flex; flex-direction: column; gap: 6px; width: 228px; animation: bob 6s ease-in-out infinite; }
.bubble { font-size: .78rem; line-height: 1.35; padding: 8px 11px; border-radius: 14px; max-width: 92%; }
.bubble.in { background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble.out { background: var(--primary); align-self: flex-end; border-bottom-right-radius: 4px; }
.ticks { color: #8fd0ff; font-size: .7rem; margin-left: 4px; letter-spacing: -2px; }
.float-lock { right: -4%; top: 1%; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; animation: bob 6s ease-in-out -3s infinite; }
.float-lock b { display: block; font-size: .82rem; }
.lock-ic { width: 36px; height: 36px; border-radius: 11px; background: rgba(121, 87, 236, .22); display: grid; place-items: center; }
.lock-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--primary-2); stroke-width: 2; stroke-linecap: round; }
.pin { display: flex; gap: 5px; margin-top: 5px; }
.pin i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-2); }
.pin i:last-child { background: transparent; box-shadow: inset 0 0 0 1.5px var(--primary-2); }
@keyframes bob { 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { margin-top: 12px; }
  .float-chat { left: 0; }
  .float-lock { right: 0; }
}
@media (max-width: 480px) {
  .phone { width: 250px; }
  .float-chat { width: 196px; bottom: 8%; }
  .float-lock { top: 6%; }
  .cta-row .btn, .cta-row .pill { flex: 1 1 100%; }
}

/* ── Promise strip ───────────────────────────────────────────────── */
.strip { border-block: 1px solid var(--border); background: var(--bg-alt); }
.strip-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 22px; margin: 0 auto; gap: 16px; }
.strip-list li { display: flex; align-items: center; gap: 12px; color: #d6d2df; font-weight: 600; font-size: .95rem; }
.strip-list span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; background: var(--surface); color: var(--primary-2); font-weight: 800; }
@media (max-width: 820px) { .strip-list { grid-template-columns: 1fr 1fr; } }

/* ── Sections ────────────────────────────────────────────────────── */
.section { padding: 104px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 52px; }
@media (max-width: 720px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: #3d3a4c; transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(121, 87, 236, .16); }
.card-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--primary-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(3n+2) .card-ic { background: rgba(255, 92, 138, .14); }
.card:nth-child(3n+2) .card-ic svg { stroke: #ff86a8; }
.card:nth-child(3n+3) .card-ic { background: rgba(16, 183, 166, .14); }
.card:nth-child(3n+3) .card-ic svg { stroke: #3fd6c5; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: #d6d2df; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(49, 199, 127, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2331c77f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

.notif-demo { display: flex; justify-content: center; }
.lockscreen {
  width: min(100%, 400px); border-radius: 32px; padding: 44px 18px 120px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #3a2b6b, #191628 60%, #121117);
  border: 1px solid #2f2c3d; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.ls-time { font-size: 4.2rem; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.ls-date { color: #d6d2df; margin: 8px 0 40px; font-weight: 500; }
.notif { display: flex; gap: 12px; text-align: left; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.notif-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #101014; display: grid; place-items: center; padding: 6px; }
.notif-ic .logo { width: 100%; }
.notif > div:last-child { flex: 1; }
.notif-top { display: flex; justify-content: space-between; font-size: .9rem; }
.notif-top span { color: #bdb9c7; font-size: .8rem; }
.notif p { margin: 2px 0 0; color: #e7e3ee; font-size: .92rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 18px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--pink)); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.beta { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .beta { grid-template-columns: 1fr; gap: 32px; } }
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.roadmap li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.roadmap b { font-weight: 600; }
.roadmap span { flex: none; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.roadmap .done span { background: rgba(49, 199, 127, .14); color: var(--success); }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.faq details[open] { border-color: #3d3a4c; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

.final-cta { position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 70% at 50% 100%, rgba(121, 87, 236, .3), transparent 70%); }
.final-cta .wrap { position: relative; }
.final-cta .lead { margin-inline: auto; }
.final-cta .cta-row { justify-content: center; }

/* ── Waitlist form (only rendered when site.config.json enables it) ── */
.waitlist { margin: 28px 0 12px; }
.waitlist-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input[type="email"], .waitlist select {
  flex: 1 1 200px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 1rem;
}
.waitlist select { flex: 0 1 180px; appearance: none; -webkit-appearance: none; }
.waitlist input:focus, .waitlist select:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(165, 139, 255, .25); }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .88rem; color: var(--muted); text-align: left; }
.consent input { margin-top: 4px; accent-color: var(--primary); }
.form-status { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; }
.form-status.ok { color: var(--success); }
.form-status.err { color: #ff8a8a; }
.final-cta .waitlist { max-width: 640px; margin-inline: auto; }

/* ── Inner pages ─────────────────────────────────────────────────── */
.page-hero { padding: 72px 0 8px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .help-grid { grid-template-columns: 1fr; } }
.help-card { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .2s ease, transform .2s ease; }
.help-card:hover { color: var(--text); border-color: var(--primary); transform: translateY(-2px); }
.help-card h2 { font-size: 1.15rem; margin-bottom: .4em; }
.help-card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.help-link { color: var(--primary-2); font-weight: 600; font-size: .92rem; word-break: break-word; }
.callout { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: rgba(255, 92, 138, .09); border: 1px solid rgba(255, 92, 138, .3); }
.callout p { margin: 0; }

.legal main { padding: 64px 0 96px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: .2em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #d9d5e2; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 3px solid var(--primary); color: var(--muted); }
.prose a { word-break: break-word; }
.placeholder { background: rgba(255, 176, 32, .18); color: #ffcf6e; border: 1px dashed rgba(255, 176, 32, .6); border-radius: 6px; padding: 0 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }

.notfound { padding: 120px 24px; text-align: center; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 30em; margin-top: 14px; }
.footer-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list a { color: #d6d2df; text-decoration: none; word-break: break-word; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } .footer-base { flex-direction: column; } }
