/* Chargeberry — website styles. Plain CSS, no framework. */

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #fbfbfd;
  --line: #e5e5ea;
  --line-2: #d2d2d7;
  --berry: #6c2fa6;
  --berry-deep: #3d0f66;
  --berry-soft: #f3ecfb;
  --pink: #d9468f;
  --charge: #2fbf5b;
  --charge-soft: #e8f8ee;
  --heat: #f08a24;
  --heat-soft: #fff3e6;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(30, 10, 60, 0.08);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.05), 0 24px 70px rgba(40, 10, 80, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--berry); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(108, 47, 166, 0.45); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink); font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink); font-size: 14px; opacity: 0.85; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a.btn-dark { color: #fff; opacity: 1; }
.nav-buy { margin-left: 4px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7d34c4 0%, #b23fa8 55%, #e0508a 100%);
  box-shadow: 0 6px 18px rgba(150, 50, 160, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(150, 50, 160, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-dark { height: 36px; padding: 0 16px; font-size: 14px; background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 36px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--bg-2);
  font-size: 14px; color: var(--ink); margin-bottom: 26px;
}
.pill:hover { text-decoration: none; background: #eeeef1; }
.pill b { background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
h1 {
  font-size: clamp(42px, 7.2vw, 72px); line-height: 1.02; letter-spacing: -0.045em;
  font-weight: 700; margin: 0 auto 22px; max-width: 900px;
}
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 760px; margin: 0 auto 30px; line-height: 1.45; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.grad-text { background: linear-gradient(120deg, #6c2fa6, #c2409a 60%, #e0508a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Demo: the Mac ---------- */
.demo { padding: 22px 0 10px; }
.stage { position: relative; margin: 0 auto; max-width: 1060px; }
.stage-inner { width: 1000px; transform-origin: top left; }
.stage.phone { overflow: hidden; border-radius: 16px; box-shadow: var(--shadow-lg); }
.stage.phone .mac { border-radius: 0; box-shadow: none; }
@media (max-width: 700px) { #cDetails { display: none; } }
.mac {
  position: relative; width: 1000px; height: 600px; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 196, 160, 0.85), transparent 46%),
    radial-gradient(circle at 82% 18%, rgba(196, 160, 255, 0.85), transparent 44%),
    radial-gradient(circle at 60% 90%, rgba(255, 150, 200, 0.75), transparent 50%),
    linear-gradient(135deg, #f6e1ff, #ffe6ee 50%, #e7e3ff);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.06);
  font-family: var(--font); color: var(--ink); user-select: none; -webkit-user-select: none;
}
.menubar {
  position: absolute; inset: 0 0 auto 0; height: 26px; display: flex; align-items: center; gap: 18px;
  padding: 0 12px; font-size: 13px; background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); z-index: 5;
}
.menubar .apple { width: 14px; height: 14px; }
.menubar .app { font-weight: 700; }
.menubar .spacer { flex: 1; }
.menubar .mb { display: flex; align-items: center; gap: 4px; padding: 0 6px; height: 22px; border-radius: 5px; border: 0; background: none; cursor: default; font-size: 13px; font-variant-numeric: tabular-nums; }
.menubar .mb svg { height: 16px; width: auto; }
#mbItem { cursor: pointer; }
#mbItem.open, #mbItem:hover { background: rgba(0, 0, 0, 0.12); }
.menubar .clock { font-variant-numeric: tabular-nums; min-width: 128px; text-align: right; }

/* The Chargeberry menu (a copy of the app's popover). */
.popover {
  position: absolute; top: 34px; width: 300px; z-index: 6;
  background: rgba(246, 246, 248, 0.92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border-radius: 12px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 12px 40px rgba(0, 0, 0, 0.22);
  padding: 16px; font-size: 13px; transition: opacity 0.15s ease, transform 0.15s ease;
}
.popover.hidden { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.popover::before { content: ""; position: absolute; top: -7px; left: var(--arrow, 150px); width: 14px; height: 14px; background: rgba(246, 246, 248, 0.96); transform: rotate(45deg); box-shadow: -0.5px -0.5px 0 rgba(0, 0, 0, 0.15); }
.pct { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.state { color: var(--ink-2); margin-top: 2px; }
.why { font-weight: 600; margin-top: 4px; min-height: 18px; }
.hr { height: 1px; background: rgba(0, 0, 0, 0.1); margin: 12px 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-title { font-weight: 700; font-size: 14px; }
.toggle { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #d1d1d6; border: 0; cursor: pointer; transition: background 0.2s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.toggle[aria-checked="true"] { background: var(--charge); }
.toggle[aria-checked="true"]::after { transform: translateX(16px); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 8px; }
.tile { border: 0; border-radius: 8px; padding: 7px 2px; background: rgba(0, 0, 0, 0.06); cursor: pointer; text-align: center; line-height: 1.25; }
.tile b { display: block; font-size: 12px; }
.tile span { font-size: 13px; font-variant-numeric: tabular-nums; }
.tile.on { background: #0a84ff; color: #fff; }
.tile:disabled { cursor: default; opacity: 0.5; }
.caption { font-size: 11px; color: var(--ink-2); margin-bottom: 8px; }
.check { display: flex; gap: 6px; align-items: center; margin: 6px 0; cursor: pointer; }
.check input { margin: 0; accent-color: #0a84ff; }
.mini { border: 0; background: #fff; border-radius: 6px; padding: 3px 10px; font-size: 12px; cursor: pointer; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18), 0 1px 1px rgba(0, 0, 0, 0.06); }
.mini:hover { background: #fafafa; }
.mini:disabled { opacity: 0.45; cursor: default; }
.btnrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.fullby { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 12px; }
.fullby-pick { display: none; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fullby-pick.open { display: flex; }
.facts { display: grid; grid-template-columns: 92px 1fr; row-gap: 3px; font-size: 13px; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.foot { display: flex; justify-content: space-between; font-size: 13px; }
.foot button { border: 0; background: none; padding: 2px 0; cursor: pointer; color: var(--ink); }
.foot button:hover { color: #0a84ff; }
.mini-range { width: 100%; margin: 4px 0 8px; accent-color: #0a84ff; }

/* Windows on the desktop. */
.window {
  position: absolute; z-index: 4; background: rgba(250, 250, 252, 0.97); border-radius: 12px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 18px 50px rgba(0, 0, 0, 0.22); overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.window.hidden { opacity: 0; transform: scale(0.97); pointer-events: none; }
.titlebar { height: 30px; display: flex; align-items: center; padding: 0 12px; position: relative; font-size: 13px; font-weight: 600; color: #4a4a4f; background: rgba(236, 236, 240, 0.9); border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
.titlebar .lights { display: flex; gap: 7px; }
.titlebar .lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; display: block; }
.titlebar .lights i:nth-child(2) { background: #febc2e; }
.titlebar .lights i:nth-child(3) { background: #28c840; }
.titlebar .lights button { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: #ff5f57; cursor: pointer; }
.titlebar span { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
.window .body { padding: 14px 16px; font-size: 13px; }
.section-label { font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 2px 0 8px; }
.group { background: #fff; border-radius: 9px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12); padding: 4px 12px; margin-bottom: 12px; }
.group .row { padding: 7px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.group .row:last-child { border-bottom: 0; }
.stepper { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.stepper button { width: 20px; height: 20px; border-radius: 5px; border: 0; background: rgba(0, 0, 0, 0.07); cursor: pointer; line-height: 1; }
.note { font-size: 11px; color: var(--ink-2); margin: -4px 2px 10px; }

/* Power flow diagram. */
.flow { position: relative; width: 318px; max-width: 100%; height: 160px; margin: 0 auto; }
.flow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.node { position: absolute; width: 112px; height: 52px; margin-left: -56px; margin-top: -26px; background: #fff; border-radius: 9px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.node em { font-style: normal; font-weight: 400; font-size: 14px; font-variant-numeric: tabular-nums; }
.node.dim { color: var(--ink-3); }
.flow-cap { font-size: 12px; margin-top: 8px; }
.flow-sub { font-size: 11px; color: var(--ink-2); }
.edge-label { font: 600 11px var(--font); }

/* Notifications. */
.toasts { position: absolute; top: 34px; right: 10px; width: 330px; z-index: 8; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  display: flex; gap: 10px; padding: 11px 12px; border-radius: 14px; background: rgba(246, 246, 248, 0.88);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 12.5px; line-height: 1.35; animation: toast-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast img { width: 34px; height: 34px; flex: none; }
.toast b { display: block; font-size: 13px; }
.toast small { color: var(--ink-2); font-size: 11px; float: right; margin-left: 8px; }
.toast.out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }
.hint-bubble {
  position: absolute; z-index: 7; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px;
  white-space: nowrap; pointer-events: none; animation: bob 1.6s ease-in-out infinite;
}
.hint-bubble::before { content: ""; position: absolute; top: -5px; right: 18px; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
@keyframes bob { 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .hint-bubble { animation: none; } .toast { animation: none; } }

/* The demo's controls, under the Mac. */
.controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px auto 10px; max-width: 1060px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 6px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); cursor: pointer; font-size: 14px; font-weight: 500;
}
.chip:hover { border-color: var(--line-2); }
.chip kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px;
  border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); font: 600 13px var(--font);
}
.chip.on { background: var(--berry-soft); border-color: #d9c4f2; }
.chip.on kbd { background: #fff; }
.chip.hot.on { background: var(--heat-soft); border-color: #ffd2a6; }
.demo-cap { text-align: center; color: var(--ink-2); font-size: 14px; max-width: 760px; margin: 6px auto 0; }
.readout { text-align: center; font: 500 13px var(--mono); color: var(--ink-2); margin-top: 6px; }

/* ---------- Trust badges ---------- */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 44px 0 20px; font-size: 14px; color: var(--ink-2); }
.badges span { display: inline-flex; align-items: center; gap: 8px; }
.badges svg { width: 16px; height: 16px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 70px; }
.section { padding: 110px 0; }
.section.alt { background: var(--bg-2); }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 700; }
h2 .soft { color: var(--ink-3); }
.intro { font-size: 19px; color: var(--ink-2); max-width: 760px; margin: 0 0 44px; }
.intro b { color: var(--ink); font-weight: 600; }
h3 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.2; }
.kicker { font-size: 14px; font-weight: 600; color: var(--berry); letter-spacing: 0.02em; margin-bottom: 10px; text-transform: none; }

/* Workday comparison. */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vs-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 0 0 1px var(--line); }
.section.alt .vs-card { box-shadow: none; }
.vs-card h4 { margin: 0 0 4px; font-size: 18px; }
.vs-card p { margin: 0 0 20px; color: var(--ink-2); font-size: 15px; }
.vs-body { display: flex; gap: 24px; align-items: center; }
.cell { position: relative; width: 96px; height: 170px; flex: none; }
.cell .shell { position: absolute; inset: 14px 0 0 0; border: 7px solid #1d1d1f; border-radius: 20px; overflow: hidden; background: #fff; }
.cell .nub { position: absolute; top: 2px; left: 50%; width: 34px; height: 14px; margin-left: -17px; background: #1d1d1f; border-radius: 5px 5px 0 0; }
.cell .level { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#56d37b, #2fbf5b); transition: height 0.12s linear; }
.cell .level.full { background: linear-gradient(#ff8b6b, #f05a3c); }
.cell .mark { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--berry); }
.cell .mark span { position: absolute; right: 6px; top: -17px; font-size: 11px; color: var(--berry); font-weight: 700; }
.stat { font-size: 15px; color: var(--ink-2); }
.stat b { display: block; font-size: 34px; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .bad { color: #e2482c; }
.stat .good { color: var(--charge); }
.stat .idle { color: var(--ink-3); }
.vs-actions { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.vs-actions p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 640px; }
.vs-actions b { color: var(--ink); }
.clock-chip { font: 600 15px var(--mono); background: var(--bg-2); padding: 6px 12px; border-radius: 10px; }

/* Feature rows with live mini demos. */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 46px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip .feature-demo { order: -1; }
.feature p { color: var(--ink-2); font-size: 17px; margin: 0 0 14px; }
.feature p b { color: var(--ink); font-weight: 600; }
.feature-demo { background: var(--bg-2); border-radius: 22px; padding: 28px; min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
.section.alt .feature-demo { background: #fff; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; cursor: pointer; text-align: left; min-width: 96px; }
.seg button b { display: block; font-size: 14px; }
.seg button span { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.seg button small { display: block; color: var(--ink-2); font-size: 12px; }
.seg button.on { background: var(--berry); border-color: var(--berry); color: #fff; }
.seg button.on small { color: rgba(255, 255, 255, 0.8); }
.hbar { position: relative; height: 54px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px #1d1d1f; margin: 22px 26px 8px 0; }
.hbar::after { content: ""; position: absolute; right: -14px; top: 15px; width: 9px; height: 24px; border-radius: 0 6px 6px 0; background: #1d1d1f; }
.hbar .fill { position: absolute; left: 6px; top: 6px; bottom: 6px; border-radius: 9px; background: linear-gradient(90deg, #6fdc8c, #2fbf5b); transition: width 0.5s cubic-bezier(0.3, 0.8, 0.3, 1); }
.hbar .resume { position: absolute; top: -8px; bottom: -8px; border-left: 2px dashed var(--ink-3); transition: left 0.5s cubic-bezier(0.3, 0.8, 0.3, 1); }
.mini-note { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.mini-note b { color: var(--ink); }
.range-row { display: flex; align-items: center; gap: 14px; margin: 16px 0 6px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--heat); }
.temp { font: 700 34px var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; min-width: 120px; }
.status-line { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; background: var(--charge-soft); color: #1b7b3a; }
.status-line.hot { background: var(--heat-soft); color: #b35c00; }
.status-line.berry { background: var(--berry-soft); color: var(--berry); }
.status-line i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.timeline { position: relative; height: 66px; margin: 22px 0 12px; }
.timeline .track { position: absolute; left: 0; right: 0; top: 30px; height: 8px; border-radius: 4px; background: #e2e2e8; }
.timeline .hold { position: absolute; top: 30px; height: 8px; border-radius: 4px; background: #c9b6ea; }
.timeline .charge { position: absolute; top: 30px; height: 8px; border-radius: 4px; background: var(--charge); }
.timeline .tick { position: absolute; top: 0; font-size: 12px; color: var(--ink-2); transform: translateX(-50%); white-space: nowrap; }
.timeline .tick.end { top: 46px; }
.timeline .pin { position: absolute; top: 24px; width: 2px; height: 20px; background: var(--ink); }
.picker { display: flex; gap: 8px; flex-wrap: wrap; }
.picker button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 12px; cursor: pointer; font-weight: 600; font-size: 14px; }
.picker button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.drain-demo { display: flex; align-items: center; gap: 26px; }
.drain-demo .cell { transform: scale(0.9); }
.chart { width: 100%; height: auto; }
.advice { border-radius: 12px; padding: 12px 14px; background: #fff7e0; box-shadow: inset 0 0 0 1px #f3dfa4; margin-bottom: 10px; font-size: 14px; }
.advice b { display: block; margin-bottom: 2px; }
.advice span { color: var(--ink-2); font-size: 13px; }
.advice.ok { background: var(--charge-soft); box-shadow: inset 0 0 0 1px #bfe8cc; }
.sleep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sleep-grid button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; font-size: 14px; }
.sleep-grid button.on { border-color: var(--berry); box-shadow: inset 0 0 0 1px var(--berry); }
.sleep-grid b { display: block; }
.sleep-out { margin-top: 14px; font-size: 15px; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); }

/* Battery Wrapped. */
.wrapped-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.card-scale { width: 100%; aspect-ratio: 1200 / 675; position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.wcard { position: absolute; top: 0; left: 0; width: 1200px; height: 675px; transform-origin: top left; padding: 56px; display: flex; flex-direction: column; font-family: var(--rounded); color: #fff;
  background: linear-gradient(135deg, #3d0d66, #8c1f8c 50%, #e0457b); }
.wcard.cream { background: linear-gradient(135deg, #fff8ee, #fde6f0); color: #381452; }
.wcard.midnight { background: linear-gradient(135deg, #0d0f21, #26143d); }
.wcard .top { display: flex; justify-content: space-between; }
.wcard .eyebrow { font-size: 22px; font-weight: 800; letter-spacing: 4px; color: #ffc7e0; }
.wcard.cream .eyebrow { color: #9e2a7a; }
.wcard.midnight .eyebrow { color: #b3a0ff; }
.wcard .title { font-size: 64px; font-weight: 700; margin-top: 10px; letter-spacing: -0.01em; }
.wcard .sub { font-size: 26px; font-weight: 500; opacity: 0.72; margin-top: 6px; }
.wcard .mood { width: 260px; text-align: center; }
.wcard .mood .emoji { font-size: 112px; line-height: 1.1; }
.wcard .mood b { font-size: 26px; }
.wcard .tiles4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: auto; margin-bottom: auto; }
.wcard .t { background: rgba(255, 255, 255, 0.11); border-radius: 22px; padding: 20px 22px; }
.wcard.cream .t { background: rgba(255, 255, 255, 0.75); }
.wcard .t b { display: block; font-size: 56px; letter-spacing: -0.01em; line-height: 1.1; }
.wcard .t span { display: block; font-size: 22px; font-weight: 600; margin-top: 4px; }
.wcard .t small { display: block; font-size: 19px; opacity: 0.72; margin-top: 4px; }
.wcard .bottom { display: flex; justify-content: space-between; align-items: center; font-size: 25px; font-weight: 500; }
.wcard .brandline { display: flex; gap: 10px; align-items: center; font-size: 22px; font-weight: 600; opacity: 0.75; }
.wcard .brandline img { width: 38px; height: 38px; }
.swatches { display: flex; gap: 10px; margin: 18px 0; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: 0 0 0 1px var(--line-2); }
.swatches button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--berry); }
.moods { display: flex; flex-wrap: wrap; gap: 8px; }
.moods button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.moods button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.x-post { margin-top: 18px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); padding: 14px 16px; font-size: 15px; white-space: pre-line; }
.x-post b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }

/* Everything else. */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.item { border-top: 1px solid var(--line-2); padding: 20px 0 24px; }
.item h4 { margin: 0 0 6px; font-size: 17px; display: flex; gap: 10px; align-items: center; }
.item h4::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #7d34c4, #e0508a); flex: none; }
.item p { margin: 0; color: var(--ink-2); font-size: 15px; }
code { font: 13px var(--mono); background: rgba(0, 0, 0, 0.05); padding: 1px 6px; border-radius: 6px; }

/* Tech and specs. */
.tech { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
.specs { margin: 0; border-top: 1px solid var(--line-2); }
.specs div { display: grid; grid-template-columns: 140px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; font-weight: 500; }

/* Pricing. */
.price-card { max-width: 520px; margin: 0 auto; background: #fff; border-radius: 26px; padding: 36px; box-shadow: var(--shadow-lg); text-align: center; position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, #7d34c4, #e0508a); }
.price-card .label { font-weight: 600; color: var(--ink-2); font-size: 15px; }
.price-card .amount { font-size: 64px; font-weight: 700; letter-spacing: -0.04em; margin: 6px 0 2px; }
.price-card ul { text-align: left; padding: 0; margin: 22px 0 26px; list-style: none; }
.price-card li { padding: 8px 0 8px 30px; position: relative; font-size: 15px; border-top: 1px solid var(--line); }
.price-card li::before { content: "✓"; position: absolute; left: 4px; color: var(--charge); font-weight: 700; }
.price-card .btn { width: 100%; }
.small-print { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 16px; }

/* FAQ. */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-size: 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 300; color: var(--ink-2); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); font-size: 16px; }

/* Final call to action and footer. */
.final { text-align: center; padding: 120px 0; background: radial-gradient(ellipse 60% 70% at 50% 45%, #f3e8ff, rgba(255, 255, 255, 0) 70%); }
.final img { width: 104px; height: 104px; margin: 0 auto 24px; }
.final h2 { margin-bottom: 26px; }
.footer { background: var(--bg-2); padding: 56px 0 30px; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.footer h5 { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.footer a { display: block; color: var(--ink); opacity: 0.85; padding: 4px 0; }
.footer a.brand { display: inline-flex; opacity: 1; padding: 0; }
.footer p { color: var(--ink-2); margin: 10px 0 0; max-width: 300px; }
.footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; color: var(--ink-3); font-size: 13px; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feature, .wrapped-wrap, .tech { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-demo { order: 0; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 16px; }
  .nav-buy { margin: 8px 0 0; }
  .menu-btn { display: block; }
  .hero { padding: 48px 0 24px; }
  .section { padding: 76px 0; }
  .versus { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .specs div { grid-template-columns: 110px 1fr; }
  .feature-demo { padding: 20px; }
  .chip { font-size: 13px; }
}

/* ---------- Launch pricing (like Shelfy's) ---------- */
.nav-note { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.nav-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--charge); box-shadow: 0 0 0 3px rgba(47, 191, 91, 0.18); }
.launch { font-size: 15px; color: var(--ink-2); margin: 18px 0 0; }
.launch b { color: var(--ink); }
.price-card .amount { display: flex; align-items: baseline; justify-content: center; gap: 14px; }
.price-card .amount s { font-size: 28px; font-weight: 600; color: var(--ink-3); letter-spacing: -0.02em; }
.price-left { display: inline-block; margin: 2px 0 18px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #1b7b3a; background: var(--charge-soft); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.tier { position: relative; border-radius: 14px; padding: 14px 10px 12px; background: var(--bg-2); color: var(--ink-2); }
.tier b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.tier span { font-size: 13px; }
.tier.now { background: var(--berry-soft); box-shadow: inset 0 0 0 2px var(--berry); }
.tier em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--berry); padding: 2px 9px; border-radius: 999px; }
.trial-link { display: block; margin-top: 14px; font-size: 14px; color: var(--berry); }
.site-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; border-radius: 14px; background: rgba(29, 29, 31, 0.94); color: #fff;
  font-size: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transition: opacity 0.25s ease, transform 0.25s ease;
}
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 980px) { .nav-note { display: none; } }

/* A single link on the right of the bar (privacy, success pages): stays put on phones. */
.nav-side { margin-left: auto; }
.nav-side a { font-size: 14px; color: var(--ink); opacity: 0.85; }
