.hero__copy { max-width: 520px; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; text-align: left; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1.04; margin: 0; letter-spacing: -0.01em; }
.hero__sub { font-size: 18px; line-height: 1.55; color: var(--text-2); margin: 0; max-width: 40ch; font-weight: 400; }
.hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-start; margin-top: 4px; }
.hero__note { font-size: 13.5px; color: var(--text-3); font-weight: 500; }

.hero-devices {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin: 0;
  padding: 12px 0 0;
}
.hero-devices img { display: block; height: auto; pointer-events: none; position: relative; }
.hero-devices__iphone {
  width: 28%;
  max-width: 210px;
  flex: 0 0 auto;
  margin-right: -14%;
  z-index: 3;
  transform: translate3d(0, var(--py, 0px), 0);
  filter: drop-shadow(0 28px 48px rgba(33,68,77,0.24));
  will-change: transform;
}
.hero-devices__ipad {
  width: 68%;
  max-width: 500px;
  flex: 0 0 auto;
  margin-right: -12%;
  transform: rotate(-3.5deg) translate3d(0, var(--py, 0px), 0);
  z-index: 1;
  filter: drop-shadow(0 22px 40px rgba(33,68,77,0.18));
  will-change: transform;
}
.hero-devices__watch {
  width: 20%;
  max-width: 132px;
  flex: 0 0 auto;
  margin-left: -2%;
  transform: rotate(7deg) translate3d(0, calc(-8px + var(--py, 0px)), 0);
  z-index: 4;
  filter: drop-shadow(0 20px 32px rgba(0,0,0,0.28));
  will-change: transform;
}

/* ── Day-wave ── */
.daywave {
  position: relative; height: 240px; margin-top: 8px; z-index: 1;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.daywave__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pin {
  position: absolute; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: var(--paper); border-radius: 999px; padding: 8px 14px;
  box-shadow: 0 10px 26px rgba(33,68,77,0.14); white-space: nowrap;
  font-size: 13px; font-weight: 600;
}
.pin .dot { width: 9px; height: 9px; border-radius: 999px; }
.daywave__axis {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px;
  display: flex; gap: 28px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--text-3);
}

/* ── At a glance ── */
.glance { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.glance .wrap { padding: 44px 32px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.tabbar {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: var(--paper); border: 1px solid var(--border); border-radius: 22px; padding: 10px 12px;
  box-shadow: 0 12px 30px rgba(33,68,77,0.08);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; border-radius: 14px; font-size: 11px; font-weight: 600; color: var(--text-3); transition: background .3s, color .3s; position: relative; }
.tab svg { width: 22px; height: 22px; stroke: currentColor; }
.tab--on { color: var(--steady-teal); background: rgba(62,110,121,0.08); }
.tab--pick { color: var(--deep-water); }
.tab--pick .tab__lbl { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.tab--pick.is-swapping .tab__lbl, .tab--pick.is-swapping svg { opacity: 0; transform: translateY(6px); }
.tab--pick svg { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.tab--pick::after { content: ''; position: absolute; top: 6px; right: 8px; width: 6px; height: 6px; border-radius: 99px; background: var(--warm-sand); }
.glance__caption { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fact { background: var(--mist); border-radius: var(--r-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.fact__num { font-size: 30px; }
.fact__lbl { font-size: 13px; color: var(--text-2); line-height: 1.4; }

/* ── Feature row ── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature--flip .feature__copy { order: 2; }
.feature__copy { display: flex; flex-direction: column; gap: 18px; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.45; }
.ticks svg { flex-shrink: 0; margin-top: 1px; stroke: var(--accent, var(--steady-teal)); }
.feature__demo { display: flex; justify-content: center; position: relative; }

/* ── Cards ── */
.card { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-card); border: 1px solid var(--border); position: relative; }
/* Pointer-tracked tilt + sheen on demo cards (hover devices only; set up in JS) */
.card.is-tilt {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  transform-style: preserve-3d;
}
.card.is-tilt.is-hover { transition: transform .12s ease-out, box-shadow .5s var(--ease); box-shadow: var(--shadow-elevate); }
.card.is-tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.28), transparent 60%);
  opacity: var(--sheen, 0); transition: opacity .4s var(--ease);
}
.card__title { font-size: 17px; font-weight: 700; }
.card--flat { box-shadow: none; }

/* Stressors */
.card--stressors { width: 400px; max-width: 100%; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.stressors__head { display: flex; align-items: center; justify-content: space-between; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--mist); color: var(--deep-water); display: inline-flex; align-items: center; gap: 7px; }
.chip--ink { background: var(--deep-water); color: var(--paper); }
.chip--mist { background: var(--mist); color: var(--deep-water); }
.chip--accent { background: color-mix(in srgb, var(--accent, var(--steady-teal)) 12%, transparent); color: var(--accent, var(--steady-teal)); }
.chip--outline { background: transparent; border: 1px solid var(--border); color: var(--text-2); }
.chip .dot { width: 8px; height: 8px; border-radius: 99px; background: currentColor; }
.loglist { display: flex; flex-direction: column; gap: 8px; }
.logrow { display: flex; align-items: center; justify-content: space-between; background: var(--mist); border-radius: 14px; padding: 12px 14px; }
.logrow__l { display: flex; align-items: center; gap: 10px; }
.logrow__name { font-size: 14px; font-weight: 600; }
.logrow__time { font-size: 12.5px; color: var(--text-2); }
.sq { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.insight { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid rgba(232,203,164,0.7); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.45; }
.insight svg { flex-shrink: 0; }

/* History / heatmap */
.card--history {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  overflow-x: clip;
}
.history__head { display: flex; align-items: center; justify-content: space-between; }
.heatmap {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  grid-auto-flow: column;
  grid-auto-columns: 12px;
  gap: 4px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.heatmap div { border-radius: 3px; }
.legend { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--text-2); }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; }

/* Stat grid */
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; max-width: 920px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stat--ink { background: var(--deep-water); border-color: transparent; }
.stat__num { font-size: 30px; }
.stat__up { font-size: 12.5px; color: var(--steady-teal); font-weight: 600; }
.mixbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.mix__label { font-size: 12.5px; color: var(--text-light); margin-top: 4px; }

/* ── Health dashboard ── */
.card--dash { width: 420px; max-width: 100%; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.dash__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash__greet { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.ring .ring__track { stroke: var(--mist); }
.ring .ring__val { stroke: var(--accent, var(--steady-teal)); stroke-dasharray: 163.4; stroke-dashoffset: 163.4; transition: stroke-dashoffset 1.4s var(--ease); }
.is-in .ring .ring__val, .card.is-in .ring__val { stroke-dashoffset: calc(163.4 - 163.4 * var(--pct, 0.78)); }
.ring .ring__num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; }
.dash__rows { display: flex; flex-direction: column; gap: 8px; }
.drow { display: grid; grid-template-columns: 36px 1fr 84px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--border); }
.drow__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--a) 14%, transparent); color: var(--a); }
.drow__ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drow__name { font-size: 14px; font-weight: 600; }
.drow__sub { font-size: 12px; color: var(--text-2); }
.spark { width: 84px; height: 28px; overflow: visible; }
.spark path { fill: none; stroke: var(--a); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.6s var(--ease); }
.is-in .spark path { stroke-dashoffset: 0; }
.dash__widgets { display: flex; gap: 8px; }
.wshort { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; font-size: 12px; font-weight: 600; background: var(--mist); }
.wshort .dot { width: 8px; height: 8px; border-radius: 99px; }

.metrics { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 960px; margin: 0 auto; }
.metric { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--deep-water); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.metric:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(33,68,77,0.10); border-color: color-mix(in srgb, var(--m) 40%, transparent); }
.metric .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--m); box-shadow: 0 0 0 3px color-mix(in srgb, var(--m) 18%, transparent); }

/* Trends trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
.tcard { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tcard__head { display: flex; align-items: center; justify-content: space-between; }
.changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.changes li { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; padding: 8px 10px; border-radius: 10px; background: var(--paper); }
.changes .delta { font-family: var(--rounded); font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 99px; }
.delta--up { background: rgba(62,110,121,0.12); color: var(--steady-teal); }
.delta--down { background: rgba(232,203,164,0.45); color: #8A5A3A; }
.chart { width: 100%; height: 110px; }
.chart .line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .dash { fill: none; stroke-width: 2; stroke-dasharray: 4 6; stroke-linecap: round; }
.chart .goal { stroke: var(--seaglass); stroke-width: 1.5; stroke-dasharray: 2 6; }
.chart .band { opacity: .18; }
.chart .lbl { font-family: var(--sans); font-size: 10px; font-weight: 600; fill: var(--text-3); letter-spacing: .06em; }
.chart .grid { stroke: var(--mist); stroke-width: 1; }

/* ── Sleep ── */
.card--sleep { width: 100%; max-width: 560px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.sleep__head { display: flex; align-items: center; justify-content: space-between; }
.hypno { width: 100%; height: 150px; }
.hypno rect { transform-origin: left center; transform: scaleX(0); transition: transform .9s var(--ease); }
.is-in .hypno rect { transform: scaleX(1); }
.hypno .axis { font-family: var(--sans); font-size: 10px; font-weight: 600; fill: var(--text-3); letter-spacing: .06em; }
.stagelegend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--text-2); }
.stagelegend span { display: inline-flex; align-items: center; gap: 6px; }
.stagelegend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sched { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; background: var(--mist); border-radius: 14px; padding: 12px 14px; }
.sched__cell { display: flex; flex-direction: column; gap: 2px; }
.sched__cell .num { font-size: 20px; }
.sched__lbl { font-size: 11px; color: var(--text-2); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.sched__arrow { color: var(--text-3); }
