/* Heartpad website. Same look as the apps: white, one rose accent, rounded heavy type. */
@font-face { font-family: Nunito; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/nunito-latin.woff2") format("woff2"); }

:root {
  --ink: #1B1216;
  --muted: #5E5357;
  --muted-2: #6E6266;
  --rose: #D42A50;
  --rose-dark: #B91F43;
  --rose-light: #FF6F8E;
  --rose-soft: #FFF1F4;
  --rose-tint: #FFF7F9;
  --line: #EFE4E7;
  --soft: #F7F2F3;
  --night: #140C10;
  --night-2: #1B1216;
  --night-card: #241820;
  --night-line: #3A2830;
  --night-muted: #C9BBC0;
  --font: ui-rounded, "SF Pro Rounded", Nunito, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--rose); }
a:hover { color: #A81E3E; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 8px; }
.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: 16px; top: -60px; z-index: 100; background: var(--ink); color: #FFFFFF; padding: 12px 18px; border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; color: #FFFFFF; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 920px; }
.stack { display: flex; flex-direction: column; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.g5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
section { position: relative; }
.section { padding: 120px 0; }
.section-tail { padding: 0 0 120px; }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 780px; }

.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin: 0; }
.h1 { margin: 0; font-size: clamp(52px, 8.4vw, 124px); line-height: .95; font-weight: 900; letter-spacing: -.035em; max-width: 1000px; }
.h2 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; font-weight: 900; letter-spacing: -.02em; margin: 0; }
.h3 { margin: 0; font-size: 24px; font-weight: 900; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); margin: 0; }
.body { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.dark .eyebrow { color: #FF8FA8; }
.dark .lead { color: var(--night-muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-rose { background: var(--rose); color: #FFFFFF; }
.btn-rose:hover { background: var(--rose-dark); color: #FFFFFF; }
.btn-ghost { background: var(--soft); color: var(--ink); }
.btn-ghost:hover { background: #EFE6E8; color: var(--ink); }
.btn-white { background: #FFFFFF; color: var(--ink); }
.btn-white:hover { background: #FFE3E8; color: var(--ink); }
.btn-muted { background: var(--night-line); color: #FFFFFF; cursor: default; }
.btn-muted:hover { transform: none; color: #FFFFFF; }

.card { background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 28px; }
.soon { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #FFE3E8; color: #8E1838; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.dark .soon, .soon-dark { background: #3A2028; color: #FFB3C2; }
.dot { width: 10px; height: 10px; border-radius: 99px; background: var(--rose); flex-shrink: 0; }
.heart-btn { border-radius: 999px; background: linear-gradient(160deg, var(--rose-light), var(--rose)); display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 30px -12px rgba(212, 42, 80, .6); }
.mascot { display: block; }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #F3EAEC; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.navlinks { display: flex; align-items: center; gap: 22px; }
.navlink { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 6px; }
.navlink:hover { color: var(--rose); }

/* hero */
.hero { padding: 72px 0 40px; overflow: hidden; background: radial-gradient(1200px 500px at 50% 0%, var(--rose-soft) 0%, #FFFFFF 70%); }
.hero .wrap { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.badge { margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #FFFFFF; border: 1.5px solid #F6D3DB; font-size: 14px; font-weight: 700; color: var(--muted); }
.ecg { display: block; width: 100%; height: 110px; margin: 64px 0 40px; }
.stage { position: relative; height: 540px; max-width: 1040px; margin: 0 auto; }
.deck { position: absolute; left: 50%; top: 20px; width: 620px; margin-left: -310px; height: 420px; border-radius: 38px; background: linear-gradient(180deg, #F3F0F4 0%, #DCD7DE 100%); box-shadow: 0 50px 80px -40px rgba(80, 30, 45, .45), inset 0 1px 0 #FFFFFF; padding: 30px 34px; }
.keyboard { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; padding: 14px; border-radius: 16px; background: #CFC9D1; }
.key { display: block; height: 26px; border-radius: 6px; background: #2C2529; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35); }
.trackpad { position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(180deg, #E9E5EB, #DEDAE0); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .12), inset 0 -1px 0 #FFFFFF; }
.deck .trackpad { width: 300px; height: 176px; margin: 26px auto 0; }
.deck-caption { margin: 14px 0 0; text-align: center; font-size: 13px; font-weight: 800; color: var(--muted-2); letter-spacing: .04em; }
.ripple { position: absolute; left: 50%; top: 50%; border-radius: 999px; border: 3px solid var(--rose); opacity: 0; }
.fingertip { position: absolute; left: 50%; top: 50%; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 40% 35%, #FFFFFF, #F4DCE3 60%, #E8BFCB); box-shadow: 0 8px 18px rgba(120, 40, 60, .28); }
.hero-mascot { position: absolute; left: 50%; margin-left: -330px; top: 300px; }
.phone { border-radius: 44px; background: #0E090B; padding: 10px; box-shadow: 0 40px 70px -30px rgba(40, 10, 20, .6); }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; display: flex; flex-direction: column; }
.phone-dark { background: #170F12; color: #FFFFFF; align-items: center; justify-content: center; gap: 12px; padding: 20px; }
.stage-phone { position: absolute; left: 50%; margin-left: 300px; top: 70px; width: 210px; height: 430px; transform: rotate(8deg); }
.stage-watch { position: absolute; left: 50%; margin-left: -500px; top: 90px; width: 140px; transform: rotate(-10deg); }
.band { width: 92px; height: 70px; margin: 0 auto; background: #E9E4EA; }
.watch-case { width: 140px; height: 160px; border-radius: 44px; background: #0E090B; padding: 10px; box-shadow: 0 30px 50px -24px rgba(40, 10, 20, .6); }
.watch-screen { width: 100%; height: 100%; border-radius: 34px; background: #170F12; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.float { position: absolute; opacity: 0; }

/* marquee */
.marquee { background: var(--ink); color: #FFFFFF; overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; gap: 48px; font-size: 26px; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; }
.marquee-track .h { color: var(--rose-light); }

/* steps */
.step { padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.step-visual { height: 170px; padding: 0 22px; container-type: inline-size; border-radius: 20px; background: var(--rose-tint); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; gap: 8px; }
.step-num { font-size: 14px; font-weight: 900; color: var(--rose); }
.codebox { flex: 0 1 44px; min-width: 0; aspect-ratio: 44 / 58; border-radius: min(12px, 3.6cqw); background: #FFFFFF; border: 2px solid #F3C3CF; display: flex; align-items: center; justify-content: center; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: min(26px, 8.4cqw); font-weight: 800; color: var(--ink); }
.tapfinger { position: absolute; left: 57%; top: 55%; width: 27px; height: 27px; border-radius: 999px; background: rgba(255, 255, 255, .75); border: 2px solid #FFFFFF; box-shadow: 0 6px 14px rgba(80, 20, 40, .25); }

/* while you work */
.feature-band { background: var(--rose-soft); border-radius: 40px; padding: clamp(28px, 5vw, 64px); }
.work-visual { position: relative; height: 360px; border-radius: 30px; background: #FFFFFF; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.work-visual .trackpad { width: 340px; max-width: 86%; height: 210px; }
.check-list li { display: flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 700; }

/* demo */
.dark { background: var(--night); color: #FFFFFF; }
.demo-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.demo-controls { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.scn { width: 100%; text-align: left; padding: 16px 18px; border-radius: 18px; font-family: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; background: transparent; border: 2px solid var(--night-line); color: #FFFFFF; }
.scn[aria-pressed="true"] { background: #2A1A20; border-color: var(--rose); }
.scn strong { font-size: 17px; }
.scn span { font-size: 14px; color: var(--night-muted); }
.demo-stage { flex: 999 1 560px; min-width: 0; border-radius: 32px; background: #1C1216; border: 1px solid #2F2026; padding: 18px; }
.demo-stage svg { display: block; width: 100%; height: auto; }
.demo-caption { margin: 10px 8px 4px; font-size: 17px; font-weight: 700; }
.demo-note { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: #A8999F; }

/* sync */
.sync-wrap { position: relative; }
.sync-line-svg { position: absolute; left: 0; top: 34px; width: 100%; height: 60px; }
.sync-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; position: relative; }
.sync-num { width: 72px; height: 72px; border-radius: 999px; background: #FFFFFF; border: 3px solid var(--rose); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; color: var(--rose); box-shadow: 0 10px 24px -12px rgba(212, 42, 80, .6); }
.sync-step h3 { margin: 4px 0 0; font-size: 19px; font-weight: 900; }
.sync-step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.status-row { display: flex; flex-wrap: wrap; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 700; background: var(--soft); }
.status i { width: 9px; height: 9px; border-radius: 99px; background: #9A8D92; }
.status.on { background: #F2FAF5; } .status.on i { background: #2E9E5B; }
.status.push { background: var(--rose-tint); } .status.push i { background: var(--rose); }

/* devices */
.devices { background: linear-gradient(180deg, var(--rose-tint), #FFFFFF); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tab[aria-selected="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.panel[hidden] { display: none; }
.menu-mock { width: 360px; max-width: 100%; border-radius: 22px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(80, 30, 45, .45); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #F2FAF5; font-size: 12px; font-weight: 800; color: #1F6B3F; }
.live i { width: 7px; height: 7px; border-radius: 99px; background: #2E9E5B; }
.person { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--line); }
.person.sel { background: var(--rose-tint); border-color: var(--rose); }
.avatar { width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; }
.person-text { flex-grow: 1; display: flex; flex-direction: column; }
.person-text b { font-size: 14px; } .person-text small { font-size: 12px; color: var(--muted-2); }
.hotkey { font-size: 11px; font-weight: 800; color: var(--muted-2); padding: 2px 6px; border-radius: 6px; background: #F3EEEF; }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 52px; padding: 0 12px; border-radius: 12px; background: #FFFFFF; border: 1.5px solid #E6DADE; box-shadow: 0 4px 0 #E6DADE; font-weight: 900; font-size: 20px; color: var(--ink); }
.mini-pad { position: relative; width: 150px; height: 96px; border-radius: 14px; background: linear-gradient(180deg, #ECE8EE, #DCD8DE); flex-shrink: 0; }
.finger { position: absolute; width: 16px; height: 16px; border-radius: 99px; background: var(--rose); opacity: 0; }
.detail-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.5; color: #3B3135; }
.detail-list li.has-soon { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.phone-light { background: #FFFFFF; padding: 40px 16px 16px; gap: 14px; }
.mini-person { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 12px; font-weight: 800; }
.mini-person.sel { border-color: var(--rose); background: var(--rose-tint); }
.mini-person span { width: 24px; height: 24px; border-radius: 99px; display: flex; align-items: center; justify-content: center; }
.big-watch-case { width: 220px; height: 260px; border-radius: 64px; background: #0E090B; padding: 14px; box-shadow: 0 40px 70px -40px rgba(40, 10, 20, .6); }
.big-watch-case .watch-screen { border-radius: 52px; gap: 12px; color: #FFFFFF; }
.big-band { width: 140px; height: 90px; margin: 0 auto; background: #F1D9E0; }

/* patterns */
.pattern { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.pattern-row { height: 120px; border-radius: 20px; background: var(--rose-tint); display: flex; align-items: center; justify-content: center; }
.beat-dot { border-radius: 999px; background: var(--rose); }
.beat-dot.strong { width: 26px; height: 26px; }
.beat-dot.soft { width: 16px; height: 16px; opacity: .6; }

/* who */
.who { padding: 26px; display: flex; flex-direction: column; gap: 14px; border: 0; }
.who h3 { margin: 0; font-size: 21px; font-weight: 900; }
.who p { margin: 0; font-size: 15px; line-height: 1.55; color: #4E4347; }

/* pricing */
.price-card { border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.price-main { background: #FFFFFF; color: var(--ink); box-shadow: 0 0 0 4px var(--rose); }
.price-other { background: var(--night-card); border: 1px solid var(--night-line); }
.price-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price b { font-size: 64px; font-weight: 900; letter-spacing: -.03em; }
.price-other .price b { font-size: 52px; }
.price s { font-size: 22px; font-weight: 800; color: #9A8D92; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.price-card li::before { content: "♥"; color: var(--rose); margin-right: 8px; }
.price-other li { color: #E9DDE1; }
.price-other p { color: var(--night-muted); }
.price-card .btn { margin-top: auto; }

/* privacy */
.priv { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.priv-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--rose-soft); display: flex; align-items: center; justify-content: center; }
.priv h3 { margin: 0; font-size: 19px; font-weight: 900; }

/* faq: native details/summary */
.faq { border-top: 1.5px solid var(--line); }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-size: 19px; font-weight: 800; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; transition: transform .25s ease; }
.faq details[open] summary::after { content: "−"; background: var(--rose); color: #FFFFFF; }
.faq details p { margin: 0; padding: 0 60px 24px 4px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* final cta */
.cta { position: relative; overflow: hidden; border-radius: 44px; background: linear-gradient(160deg, var(--rose-light), var(--rose) 70%); color: #FFFFFF; padding: clamp(40px, 7vw, 90px) 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.cta > * { position: relative; }
.cta .ripple { border: 2px solid rgba(255, 255, 255, .6); top: 40%; position: absolute; }
.cta .lead { color: #FFE8EE; max-width: 560px; }
.btn-glass { background: rgba(255, 255, 255, .16); color: #FFFFFF; }
.btn-glass:hover { background: rgba(255, 255, 255, .26); color: #FFFFFF; }

/* footer */
.footer { border-top: 1px solid #F3EAEC; padding: 48px 0 56px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer nav { display: flex; flex-wrap: wrap; gap: 40px; }
.footer nav div { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer small { display: block; margin-top: 36px; font-size: 13px; color: var(--muted-2); }

/* simple pages (legal, join, support) */
.page { padding: 72px 0 120px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; font-weight: 900; letter-spacing: -.02em; margin: 0 0 12px; }
.prose h2 { font-size: 24px; font-weight: 900; margin: 40px 0 10px; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: #3B3135; }
.prose .note { padding: 16px 18px; border-radius: 16px; background: var(--rose-tint); border: 1.5px solid #F6D3DB; font-size: 15px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1.5px solid var(--line); font-size: 16px; line-height: 1.55; color: #3B3135; }
.prose th { font-weight: 900; color: var(--ink); }
.prose td:first-child { font-weight: 800; white-space: nowrap; padding-right: 20px; }
.prose kbd { display: inline-block; min-width: 26px; padding: 1px 7px; margin: 0 2px; border-radius: 7px; background: #FFFFFF; border: 1.5px solid #E6DADE; box-shadow: 0 2px 0 #E6DADE; font: 800 14px/1.5 inherit; text-align: center; }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--soft); font-size: .92em; }
.prose .soon { vertical-align: middle; margin-left: 4px; }
.prose .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.navlink[aria-current="page"] { color: var(--rose); }
@media (max-width: 760px) { .prose td:first-child { white-space: normal; } .prose td:has(kbd) { white-space: nowrap; } }

/* responsive */
@media (max-width: 1100px) { .stage { transform: scale(.8); transform-origin: top center; height: 440px; } }
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .g2 { grid-template-columns: 1fr; }
  .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-sm { display: none !important; }
}
@media (max-width: 760px) {
  .ecg { margin: 40px 0 24px; height: 80px; }
  .stage { transform: scale(.52); height: 290px; }
  .navlinks { display: none; }
  .section { padding: 80px 0; } .section-tail { padding: 0 0 80px; }
  .faq details p { padding-right: 4px; }
}
@media (max-width: 560px) { .g4, .g5 { grid-template-columns: 1fr; } .wrap { padding: 0 18px; } }

/* No motion: everything shows in its final state. */
@media (prefers-reduced-motion: reduce) {
  .ripple, .float { display: none; }
  .finger { opacity: 1; }
  .btn { transition: none; }
}

/* Launch video in How it works: nothing downloads until play is pressed */
.launch-video { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: #FFF4F6; box-shadow: 0 30px 70px rgba(138, 36, 64, .18); }
.launch-video video { display: block; width: 100%; height: 100%; }
@media (max-width: 760px) { .launch-video { border-radius: 18px; } }
