/* Pulse website, in the apple.com design language: system type set large and
   tight, a slim frosted nav, centered statements, generous space, alternating
   white and light-grey sections, rounded tiles, pill buttons and "Learn more ›"
   links. Pulse's own orange is the only accent. Fonts are bundled (fonts/) so
   the site looks the same on every computer: Plus Jakarta Sans for headlines,
   DM Sans (the app's font) for text. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url(fonts/dm-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url(fonts/dm-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url(fonts/dm-sans-latin-600-normal.woff2) format("woff2"); }
:root {
  --bg: #ffffff;
  --alt: #f5f5f7;
  --tile: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --accent: #e8590c;          /* buttons and links */
  --accent-hover: #f0701f;
  --accent-ink: #c2410c;      /* link text on light grounds */
  --night: #000000;
  --night-tile: #161617;
  --on-night: #f5f5f7;
  --on-night-muted: #a1a1a6;
  --ok: #248a3d;
  --err: #d70015;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Plus Jakarta Sans", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --alt: #101010; --tile: #1d1d1f; --ink: #f5f5f7; --muted: #a1a1a6; --faint: #86868b; --line: #424245;
    --accent: #ff7a2f; --accent-hover: #ff8f4f; --accent-ink: #ff9a5c; --night-tile: #1d1d1f;
    --ok: #30d158; --err: #ff453a; --nav-bg: rgba(22, 22, 23, 0.8); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 var(--font); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1024px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }

/* Slim frosted navigation */
.nav {
  position: sticky; top: 0; z-index: 20; height: 52px;
  background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.nav { transition: background-color .3s, border-color .3s; }
/* Over a dark section the bar turns dark too, like apple.com. */
.nav.on-dark { background: rgba(22, 22, 23, .8); border-bottom-color: transparent; }
.nav.on-dark .name, .nav.on-dark .links a:not(.pill) { color: #f5f5f7; }
.nav.on-dark .links a.pill:hover { background: #fff; color: #1d1d1f; }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav .name { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 600; letter-spacing: .011em; color: var(--ink); }
.nav .name img { width: 26px; height: 26px; border-radius: 7px; }
.nav .name:hover { text-decoration: none; }
.nav .links { display: flex; align-items: center; gap: 24px; font-size: 12px; letter-spacing: -0.01em; }
.nav .links a { color: var(--ink); opacity: .85; }
.nav .links a:hover { opacity: 1; text-decoration: none; color: var(--accent-ink); }
/* The nav button keeps white text on hover; only its fill changes. */
.nav .links a.pill, .nav .links a.pill:hover { color: #fff; opacity: 1; }
.nav .links a.pill:hover { background: var(--ink); }
.pill:active { transform: scale(.97); }
@media (max-width: 640px) { .nav .links a.opt { display: none; } }

/* Buttons and links */
.pill {
  display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; border-radius: 980px;
  font: 500 17px/1 var(--font); letter-spacing: -0.01em; padding: 12px 24px; min-height: 46px; transition: background-color .2s, transform .2s;
}
.pill:hover { background: var(--accent-hover); text-decoration: none; }
.pill.small { font-size: 13px; padding: 6px 14px; min-height: 0; line-height: 1.33; }
.pill.ghost { background: transparent; color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.pill.ghost:hover { background: var(--accent); color: #fff; }
.more { font-size: 17px; color: var(--accent-ink); }
.more::after { content: " ›"; }
.ctas { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* Sections: centered statements */
section { padding-block: 96px; text-align: center; overflow: hidden; }
section.alt { background: var(--alt); }
section.night { background: var(--night); color: var(--on-night); }
section.night .muted, section.night .sub { color: var(--on-night-muted); }
.eyebrow { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--accent-ink); margin: 0 0 6px; }
section.night .eyebrow { color: var(--accent); }
h1, h2, h3, .stat .big, .plan .price, .nav .name { font-family: var(--display); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 7.6vw, 80px); line-height: 1.04; font-weight: 800; letter-spacing: -0.026em; }
h2 { font-size: clamp(34px, 5.6vw, 56px); line-height: 1.07; font-weight: 800; letter-spacing: -0.022em; }
h3 { font-size: 28px; line-height: 1.16; font-weight: 700; letter-spacing: -0.02em; }
.sub { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.2; font-weight: 400; letter-spacing: .007em; color: var(--muted); margin: 14px auto 0; max-width: 720px; text-wrap: balance; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding-top: 64px; padding-bottom: 0; }
.hero .ctas { margin-top: 28px; }
.devices { position: relative; margin: 56px auto 0; height: clamp(360px, 62vw, 620px); max-width: 980px; }
.device {
  position: absolute; bottom: -40px; width: clamp(180px, 26vw, 290px); aspect-ratio: 393 / 852;
  border-radius: clamp(30px, 4.6vw, 50px); overflow: hidden; background: #000;
  padding: clamp(5px, .7vw, 8px);
  box-shadow: 0 0 0 1.5px #3a3a3c inset, 0 50px 90px -40px rgba(0, 0, 0, .5);
  will-change: transform;
}
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: clamp(25px, 3.9vw, 42px); }
.device.center { left: 50%; transform: translateX(-50%); z-index: 2; bottom: -20px; }
.device.left { left: 50%; transform: translateX(calc(-50% - var(--fan, 58%))) scale(.86); transform-origin: bottom center; }
.device.right { left: 50%; transform: translateX(calc(-50% + var(--fan, 58%))) scale(.86); transform-origin: bottom center; }

/* Highlights: a row of big numbers */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 40px 24px; margin-top: 64px; }
.stat .big { font-size: clamp(46px, 6vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.01em; background: linear-gradient(135deg, #ff9a3d, #e8590c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { margin: 10px auto 0; max-width: 220px; color: var(--muted); font-size: 17px; }
.stat p strong { color: var(--ink); font-weight: 600; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; text-align: left; }
.tile { background: var(--tile); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
section.alt .tile { background: var(--tile); }
section:not(.alt):not(.night) .tile { background: var(--alt); }
.tile .copy { padding: 40px 40px 0; }
.tile .copy p { color: var(--muted); margin: 10px 0 0; font-size: 19px; line-height: 1.42; }
.tile .copy p strong { color: var(--ink); font-weight: 600; }
.tile .shot { margin: 36px auto 0; width: 72%; max-width: 300px; aspect-ratio: 4 / 5; border-radius: 34px 34px 0 0; overflow: hidden; background: #000; padding: 7px 7px 0; box-shadow: 0 0 0 1.5px #3a3a3c inset; }
.tile .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px 28px 0 0; }
.tile.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: stretch; }
.tile.wide .copy { padding: 56px; flex: 1; align-self: center; }
.tile.wide .shot { margin: 40px 56px 0 0; width: 260px; flex: none; }
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tile .copy, .tile.wide .copy { padding: 32px 28px 0; }
  .tile.wide { flex-direction: column; }
  .tile.wide .shot { margin: 32px auto 0; width: 64%; }
}

/* Coach: the dark showcase */
.coach-mark { width: 104px; height: 104px; margin: 0 auto 22px; }
.split-show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 64px; text-align: left; }
.split-show .device-flat { width: min(300px, 100%); margin: 0 auto; aspect-ratio: 393 / 852; border-radius: 48px; overflow: hidden; background: #000; padding: 8px; box-shadow: 0 0 0 1.5px #48484a inset, 0 40px 80px -30px rgba(232, 89, 12, .35); will-change: transform; }
.split-show .device-flat img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 40px; transform: scale(var(--z, 1)); transform-origin: top center; }
.points { display: grid; gap: 28px; }
.points h3 { font-size: 21px; letter-spacing: .011em; }
.points p { margin: 6px 0 0; color: var(--on-night-muted); font-size: 17px; }
@media (max-width: 760px) { .split-show { grid-template-columns: 1fr; } }

/* Pricing: compare columns */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 56px auto 0; max-width: 820px; }
.plan { background: var(--alt); border-radius: 28px; padding: 44px 36px; display: grid; gap: 6px; align-content: start; }
section.alt .plan { background: var(--tile); }
.plan.plus { box-shadow: inset 0 0 0 2px var(--accent); }
.plan h3 { font-size: 32px; }
.plan .price { font-size: 21px; font-weight: 600; margin-top: 4px; }
.plan .fine { font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; text-align: left; }
.plan li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 17px; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

/* Waitlist form */
.join { display: grid; gap: 12px; max-width: 520px; margin: 32px auto 0; text-align: left; }
.join .row { display: flex; gap: 10px; flex-wrap: wrap; }
.join input[type=email] {
  flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 17px var(--font); letter-spacing: -0.022em;
}
section.night .join input[type=email] { background: var(--night-tile); border-color: #424245; color: var(--on-night); }
.join input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.join .pill { min-height: 52px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.43; color: var(--muted); letter-spacing: -0.016em; }
section.night .consent { color: var(--on-night-muted); }
.consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.msg { min-height: 22px; font-size: 15px; text-align: center; }
.msg.ok { color: var(--ok); } .msg.err { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Legal and support pages */
.doc { max-width: 692px; margin: 0 auto; padding-block: 64px 96px; text-align: left; }
.doc .eyebrow { font-size: 17px; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.08; }
.doc h2 { font-size: 28px; line-height: 1.14; margin-top: 48px; }
.doc h3 { font-size: 21px; margin: 28px 0 6px; }
.doc p, .doc li { font-size: 17px; }
.doc .meta { color: var(--muted); margin-top: 8px; }
.doc .lede { font-size: 21px; line-height: 1.38; color: var(--muted); }
.doc .lede strong { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; }
.callout { background: var(--alt); border-radius: 18px; padding: 20px 24px; margin: 22px 0; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 300; font-size: 26px; line-height: .8; color: var(--accent-ink); }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer, small grey type */
footer.site { background: var(--alt); color: var(--faint); font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; padding-block: 18px 32px; text-align: left; }
footer.site .fine { padding-bottom: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
footer.site .fine p { margin: 0; }
footer.site .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 14px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 0; }
footer.site nav a { color: var(--muted); padding: 0 10px; border-left: 1px solid var(--line); }
footer.site nav a:first-child { padding-left: 0; border-left: 0; }

/* Scroll animations. Content is visible by default; site.js adds .motion to
   <html> only when the visitor hasn't asked for reduced motion. */
.motion .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .reveal.zoom { transform: translateY(36px) scale(.94); }
.motion .reveal.zoom.in { transform: none; }
.motion .hero .devices .device { transition: transform .1s linear; }
@media (prefers-reduced-motion: reduce) { .pill { transition: none; } }
