/* Wakeful — landing page. Light, calm, Apple-native feel. */

:root {
  --bg: #f6f9fc;
  --bg-2: #eaf1f8;
  --surface: #ffffff;
  --surface-2: #f3f7fb;
  --ink: #16202e;
  --ink-2: #33425a;
  --muted: #62718a;
  --line: #e4ebf3;
  --green: #5b5bd6;          /* repurposed: violet = haptics */
  --green-soft: #ecebfb;
  --amber: #e0589b;          /* repurposed: pink = beat / music */
  --amber-soft: #fce8f2;
  --red: #df5f4d;
  --red-soft: #fcebe7;
  --accent: #5b5bd6;
  --accent-ink: #4646b8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(22, 48, 92, 0.08);
  --shadow-lg: 0 26px 60px rgba(22, 48, 92, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(1200px 600px at 80% -10%, var(--bg-2), transparent 60%),
              radial-gradient(1000px 500px at -10% 0%, #eef5ef, transparent 55%),
              var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { width: min(1120px, 92vw); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(91, 91, 214, .28); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 10px 26px rgba(91, 91, 214, .34); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(246, 249, 252, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand .logo { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent-ink);
  background: var(--green-soft); padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
h1 .grad { background: linear-gradient(120deg, var(--green), #8b7bf0 50%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 36ch; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 20px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- Section scaffolding ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; font-weight: 800; margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.pillar .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.pillar.focus .ico { background: var(--green-soft); color: var(--green); }
.pillar.health .ico { background: var(--amber-soft); color: var(--amber); }
.pillar h3 { font-size: 22px; letter-spacing: -0.01em; }
.pillar p { margin-top: 10px; color: var(--muted); }
.pillar ul { margin-top: 16px; list-style: none; display: grid; gap: 9px; }
.pillar li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.pillar li svg { flex: none; margin-top: 3px; }

/* ---------- How it works ---------- */
.how { background: linear-gradient(180deg, transparent, #ffffff 12% 88%, transparent); }
.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.state {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.state::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; }
.state.s1::before { background: var(--green); }
.state.s2::before { background: var(--amber); }
.state.s3::before { background: var(--red); }
.state .badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 5px 11px; border-radius: 999px; }
.state.s1 .badge { background: var(--green-soft); color: var(--accent-ink); }
.state.s2 .badge { background: var(--amber-soft); color: #9a6418; }
.state.s3 .badge { background: var(--red-soft); color: #b23b2c; }
.state h3 { margin-top: 16px; font-size: 19px; }
.state p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Numbers band ---------- */
.numbers-band { padding: 22px 0 8px; }
.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow);
}
.num { text-align: center; }
.num b { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; color: var(--accent-ink); }
.num span { font-size: 14px; color: var(--muted); }

/* ---------- Flow infographic ---------- */
.flow { display: flex; align-items: stretch; gap: 6px; }
.flow .node {
  flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 18px; text-align: center; box-shadow: var(--shadow);
}
.flow .orb { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.node.s1 .orb { background: var(--green-soft); color: var(--green); }
.node.s2 .orb { background: var(--amber-soft); color: var(--amber); }
.node.s3 .orb { background: var(--red-soft); color: var(--red); }
.flow .node h3 { font-size: 18px; letter-spacing: -0.01em; }
.flow .node p { margin-top: 5px; color: var(--muted); font-size: 14px; }
.conn { align-self: center; flex: 0 0 42px; height: 2px; background: linear-gradient(90deg, var(--line), #c2d0e0); position: relative; }
.conn::after { content: "›"; position: absolute; right: -5px; top: -14px; color: #b3c0d2; font-size: 24px; }

@media (max-width: 560px) { .numbers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .flow { flex-direction: column; }
  .conn { flex-basis: 26px; width: 2px; height: 26px; margin: 0 auto; background: linear-gradient(180deg, var(--line), #c2d0e0); }
  .conn::after { content: "⌄"; right: -7px; top: auto; bottom: -9px; }
}

/* ---------- Features grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; box-shadow: var(--shadow); }
.feat .fi { width: 42px; height: 42px; border-radius: 11px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.feat h3 { font-size: 17px; letter-spacing: -0.01em; }
.feat p { margin-top: 7px; color: var(--muted); font-size: 14.5px; }

/* ---------- Privacy ---------- */
.privacy { text-align: center; }
.privacy-card {
  background: linear-gradient(160deg, #ffffff, #f2f1fd);
  border: 1px solid var(--line); border-radius: 24px; padding: 52px 40px; box-shadow: var(--shadow-lg);
}
.privacy .shield { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--green); }
.privacy h2 { max-width: 18ch; margin: 0 auto; }
.privacy p { max-width: 52ch; margin: 14px auto 0; color: var(--muted); font-size: 18px; }

/* ---------- Pricing ---------- */
.price-card {
  max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 40px; box-shadow: var(--shadow-lg); text-align: center;
}
.price-name { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.price { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 18px; font-weight: 600; color: var(--muted); }
.price-sub { color: var(--muted); margin-top: 6px; }
.price-tax { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 16px; }
.price-list { list-style: none; margin: 26px 0; display: grid; gap: 12px; text-align: left; }
.price-list li { display: flex; gap: 11px; color: var(--ink-2); }
.price-list li svg { flex: none; color: var(--green); margin-top: 3px; }
.price-actions { display: flex; flex-direction: column; gap: 10px; }
.price-actions .btn { width: 100%; justify-content: center; }
.price-soon { padding: 18px 0 4px; }
.price-soon .soon-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: #fff; background: var(--accent, #5b5bd6);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 10px;
}
.price-soon p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; box-shadow: var(--shadow);
}
summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; color: var(--muted); font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--muted); }

/* ---------- Download ---------- */
.download-card {
  text-align: center; background: linear-gradient(135deg, #5b5bd6, #4646b8);
  color: #fff; border-radius: 26px; padding: 56px 40px; box-shadow: var(--shadow-lg);
}
.download-card h2 { color: #fff; }
.download-card p { color: rgba(255,255,255,.85); margin: 14px auto 28px; max-width: 46ch; font-size: 18px; }
.download-card .btn-primary { background: #fff; color: var(--accent-ink); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.download-card .btn-primary:hover { background: #f3fbf7; }
.download-card .req { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.8); }
.soon-badge {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.18); color: #fff; font-weight: 600; font-size: 13px;
  letter-spacing: .02em; padding: 6px 14px; border-radius: 999px;
}
.soon-badge::first-letter { color: #c9f7e2; }
.notify { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 470px; margin: 6px auto 0; }
.notify input {
  flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255, 255, 255, 0.96); color: var(--ink); font-size: 15px; font-family: var(--font);
}
.notify input::placeholder { color: #93a0b3; }
.notify input:focus { outline: 3px solid rgba(255, 255, 255, 0.5); }
.notify .btn-primary { background: #fff; color: var(--accent-ink); box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.notify .btn-primary:hover { background: #f1fbf6; }
.notify-done { color: #fff; font-size: 16px; font-weight: 600; padding: 12px 0; }

/* ---------- Footer ---------- */
footer { padding: 48px 0; border-top: 1px solid var(--line); color: var(--muted); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }
.foot-legal a { color: inherit; text-decoration: underline; }
.foot-legal a:hover { color: var(--ink); }

/* ---------- App mockup (hero) ---------- */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(.4deg);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-bar .r { background: #ff5f57; } .mock-bar .y { background: #febc2e; } .mock-bar .g { background: #28c840; }
.mock-bar span { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.mrow { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; }
.mrow .mi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.mrow.s1 .mi { background: var(--green-soft); color: var(--green); } .mrow.s1 { border-color: #cdeaDc; }
.mrow.s2 .mi { background: var(--amber-soft); color: var(--amber); }
.mrow.s3 .mi { background: var(--red-soft); color: var(--red); }
.mrow b { font-size: 15px; } .mrow p { font-size: 13px; color: var(--muted); }
.mrow .pill { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars, .states, .features { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 6vw; gap: 16px;
  }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 20px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .foot-nav { align-items: flex-start; }
}
