/* Brand layer, loaded last on every page (landing, trial, dashboard).
   One headline face everywhere: Inter Tight, extra bold, tight tracking. This matches the
   "Sleep ping" logo lockup. Everything else stays Instrument Sans. */
:root {
  --display: "Inter Tight", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--display);
  --wide: var(--display);
  --mono: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Headlines and big numbers */
h1, h2, .h2, .wm, .bigprice__n, .pl .pr, .roi__big b, .sheet2__head b, .meter__n b, .view h1, .head__biz b, .livebox__sum b {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em; font-variation-settings: normal;
}
h3, .quote dd, .trade__body h3, .trade__pic .best b, .slide output, .roi__inputs output, .specs dt, .kpi b, .plan .price, .scan h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.025em; font-variation-settings: normal;
}
h1 em, h2 em { font-style: normal; }

/* One size scale */
h1, .hero3 h1 { font-size: clamp(40px, 5.6vw, 74px); line-height: 1.02; }
.tr h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; }
.auto h2, .price h2, .faq3 h2, .roi h2, .est2 h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; }
.wake h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; }
.card h2 { font-size: 26px; line-height: 1.12; }
.view h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.08; }

/* Price: back to the earlier size, same face as the headlines */
.bigprice { gap: 8px; }
.bigprice__n { font-size: clamp(56px, 6.4vw, 72px); line-height: 1; letter-spacing: -.045em; }
.pl .pr { font-size: 48px; }
.roi__big b { font-size: clamp(52px, 6.6vw, 76px); letter-spacing: -.04em; }
.sheet2__head b { font-size: 26px; }
.specs dt { font-size: 24px; }

/* Numbers line up in tables, timers and counters */
.bigprice__n, .specs dt, .roi__big b, .kpi b, .meter__n b, .sheet2 { font-variant-numeric: tabular-nums; }

/* Wordmark: lowercase, one color, next to the eye mark */
.wm { font-size: 25px; line-height: 1; color: currentColor; letter-spacing: -.045em; }
.brand { color: #F7F2EA; }
.brand svg { filter: none; }
@media (max-width: 520px) { .wm { font-size: 22px; } }
.head .brand { color: #0B1020; }

/* ---- New customer offer: $99 slashed to $49.50 ---- */
.deal { display: grid; gap: 14px; justify-items: start; }
.deal__tag { display: inline-flex; align-items: center; gap: 8px; background: var(--go); color: #1A0E06; font: 700 13px var(--sans); letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 6px 12px 6px 10px; }
.deal__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1A0E06; animation: dealPulse 1.6s ease-in-out infinite; }
@keyframes dealPulse { 50% { opacity: .25; } }
.deal__row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 18px; }
.deal__was { position: relative; font: 800 clamp(36px, 4.2vw, 48px)/1 var(--display); letter-spacing: -.04em; color: #9AA0AB; text-decoration: none; padding-bottom: 6px; }
.deal__was i { position: absolute; left: -8%; right: -8%; top: 46%; height: 6px; border-radius: 4px; background: var(--go); transform: rotate(-16deg); transform-origin: left center; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.deal__now { font: 800 clamp(64px, 7.4vw, 84px)/.9 var(--display); letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.deal__now sup { font-size: .46em; vertical-align: .9em; letter-spacing: -.02em; margin-left: 2px; }
.deal__for { font: 700 15px/1.2 var(--sans); color: var(--ink-2); padding-bottom: 10px; }
.deal__for em { display: block; font-style: normal; font-weight: 600; color: var(--yes-ink); }
/* plays once when the price scrolls into view */
.deal.pre .deal__was i { transform: rotate(-16deg) scaleX(0); }
.deal.pre .deal__now, .deal.pre .deal__for { opacity: 0; transform: translateY(12px); }
.deal.on .deal__was i { transform: rotate(-16deg) scaleX(1); transition: transform 550ms cubic-bezier(.7,0,.2,1) 250ms; }
.deal.on .deal__was { color: #B4B9C2; transition: color 400ms 500ms; }
.deal.on .deal__now, .deal.on .deal__for { opacity: 1; transform: none; transition: opacity 450ms 800ms, transform 550ms cubic-bezier(.2,.8,.2,1) 800ms; }
.deal.on .deal__for { transition-delay: 1000ms; }
.was { text-decoration: line-through; text-decoration-color: var(--go); text-decoration-thickness: 2px; opacity: .7; }

/* ---- Trial form: price summary above the button ---- */
.psum { border: 1.5px solid var(--ink, #121418); border-radius: 16px; padding: 14px 16px; display: grid; gap: 9px; background: #FFFBF3; color: #121418; }
.psum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.psum__row span { color: #4A505C; }
.psum__row b { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 17px; text-align: right; }
.psum__row b em { font: 600 13px var(--sans); color: #1E6B45; margin-left: 4px; }
.psum__row--hot { border-block: 1px dashed #E2D9C8; padding-block: 9px; }
.psum__row--hot b { font-size: 24px; }
.psum__row--hot s { font-size: 16px; color: #9AA0AB; text-decoration-color: var(--go); text-decoration-thickness: 2px; margin-right: 6px; }
.psum__tag { display: inline-block; margin-left: 6px; background: var(--go); color: #1A0E06; font: 700 11px var(--sans); letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 3px 8px; vertical-align: 1px; }
.psum small { color: #5F6573; font-size: 13px; line-height: 1.4; }

/* The estimate receipt keeps its serif heading (it reads like a real paper estimate) */
.sheet2__head b { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 34px; letter-spacing: -.01em; }

/* ---- Lock-screen notifications sized like a real iPhone ---- */
.phone .lock { gap: 8px; }
.phone .lock__t { font-size: 52px; font-weight: 600; letter-spacing: -.03em; }
.phone .lock__d { font-size: 13px; margin-bottom: 10px; }
.phone .n { grid-template-columns: 30px minmax(0, 1fr); gap: 0 9px; padding: 9px 11px 10px; border-radius: 16px; background: rgba(242,242,245,.86); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset; font-family: -apple-system, "SF Pro Text", "Instrument Sans", system-ui, sans-serif; color: #000; }
.phone .n__ic { width: 30px; height: 30px; border-radius: 7px; grid-row: span 3; align-self: start; margin-top: 1px; }
.phone .n__ic .i { width: 17px; height: 17px; }
.phone .n__top { font-size: 13px; line-height: 1.25; align-items: baseline; }
.phone .n__top b { font-weight: 600; }
.phone .n__top time { font-size: 12px; color: #6E6E73; }
.phone .n__sub { font-size: 13px; font-weight: 400; line-height: 1.25; }
.phone .n p { font-size: 13px; line-height: 1.28; color: #1C1C1E; margin: 0; -webkit-line-clamp: 2; max-width: none; }

/* Two plans: Standard (you make the call) and Premium (we email them for you). Same half-off first month. */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
@media (max-width: 560px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.tier { position: relative; text-align: left; display: grid; gap: 8px; align-content: start; background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; font: inherit; }
button.tier { cursor: pointer; transition: border-color 160ms, box-shadow 160ms; }
button.tier:hover { border-color: #BFB6A6; }
.tier[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #FFFBF3; }
.tier__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 800 19px/1.1 var(--display); letter-spacing: -.02em; }
.tier__badge { font: 700 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--mark); border-radius: 999px; padding: 3px 8px; }
.tier__p { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tier__p s { font: 700 16px var(--display); color: #9AA0AB; text-decoration-color: var(--go); text-decoration-thickness: 2px; }
.tier__p b { font: 800 30px/1 var(--display); letter-spacing: -.03em; }
.tier__p small { font: 600 13px var(--sans); color: var(--muted); }
.tier__then { font-size: 13.5px; color: var(--muted); }
.tier__line { font-weight: 600; font-size: 15px; color: var(--ink-2); line-height: 1.35; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.tier li { padding-left: 18px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--go); }
.tier--prem li::before { background: var(--ink); }
.tier__tick { position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; }
.tier[aria-pressed="true"] .tier__tick { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px #FFFBF3; }
