/* === BatteryBae landing — light grey + pink === */

:root {
  --bg: #F4F4F6;
  --bg-soft: #ECECF1;
  --surface: #FFFFFF;
  --text: #1A1A1F;
  --text-muted: #6B6B75;
  --text-soft: #71717A;
  --border: #E3E3E8;
  --pink: #FF4D8D;
  --pink-soft: #FFB3CC;
  --pink-bg: #FFEBF2;
  --pink-dark: #E63D7D;
  --black: #0F0F12;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15,15,18,0.04), 0 8px 24px rgba(15,15,18,0.06);
  --shadow-lg: 0 4px 12px rgba(15,15,18,0.06), 0 24px 48px rgba(255,77,141,0.08);
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", "Hanken Grotesk", serif;
  --font-script: "Caveat", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--pink); }

img { max-width: 100%; display: block; }

/* === Type === */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--text);
}
.display em {
  font-style: italic;
  color: var(--pink);
  font-weight: 500;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 0.8em;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 36em;
  margin: 0 0 2em;
}
.sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 auto 2.4em;
  max-width: 38em;
}
.caveat { font-family: var(--font-script); font-weight: 500; }
.strike { text-decoration: line-through; opacity: 0.5; margin-right: 0.5em; }

/* === Layout helpers === */

main { display: block; }
section { padding: clamp(4rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 3rem); }
.section-head {
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 44rem;
}

/* === Nav === */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 5vw, 3rem);
  background: rgba(244,244,246,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-mark { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 120ms;
}
.nav-links a:hover { color: var(--pink); }

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms, color 120ms, box-shadow 200ms;
  white-space: nowrap;
}
.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1.02rem;
}
.btn-platform {
  gap: 0.55rem;
}
.btn-platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-soft {
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
}
.btn-soft:hover {
  background: var(--bg-soft);
  color: var(--text-muted);
  transform: none;
  box-shadow: none;
}
.btn-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--pink);
  border: 1px solid var(--pink-soft);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-left: 0.25rem;
}
.hero-platform-note {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-secondary {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}
.hero-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--pink-soft);
  text-underline-offset: 4px;
}
.hero-link:hover { color: var(--pink); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.9rem; }
.btn-primary {
  background: var(--pink);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255,77,141,0.28), 0 2px 4px rgba(255,77,141,0.18);
}
.btn-primary:hover {
  background: var(--pink-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,77,141,0.36);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--pink);
  color: var(--pink);
}

/* === Hero (two-column desktop, stacked mobile) === */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 76rem;
  margin: 0 auto;
  padding-top: clamp(3rem, 6vw, 5rem);
  text-align: left;
}
.hero-copy { max-width: 32rem; }
.hero-meta {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.hero-headline { margin: 0.25rem 0 0.6rem; }
.hero-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 30rem;
  margin: 0 0 1.6rem;
}
.hero-cta { justify-content: flex-start; }
.hero-note {
  margin: 1.4rem 0 0;
  font-size: 1.35rem;
  color: var(--pink);
}
.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero device */

.hero-device {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
}
.laptop {
  width: 100%;
  max-width: 460px;
  position: relative;
  filter: drop-shadow(0 24px 48px rgba(255,77,141,0.22));
}
.laptop-lid {
  background: linear-gradient(180deg, #FFB3CC, #FF7AAB);
  border-radius: 16px 16px 4px 4px;
  padding: 12px 12px 14px;
  position: relative;
}
.laptop-lid::before {
  content: "";
  position: absolute;
  top: 5px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 3px;
  background: rgba(255,255,255,0.55); border-radius: 999px;
}
.laptop-screen {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 14px;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.screen-dot { width: 10px; height: 10px; border-radius: 50%; background: #E5E5E7; }
.screen-bae {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
}
.screen-batt {
  margin-left: 0.4rem;
  width: 28px; height: 12px;
  border: 1.5px solid var(--text-muted);
  border-radius: 3px;
  position: relative;
  padding: 1px;
}
.screen-batt::after {
  content: ""; position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
  width: 2px; height: 6px; background: var(--text-muted); border-radius: 0 2px 2px 0;
}
.screen-batt-fill {
  display: block; width: 86%; height: 100%;
  background: var(--pink); border-radius: 1px;
}
.screen-pct { font-weight: 600; color: var(--text); }
/* Speech bubble floats OUTSIDE the laptop, pointing back at the heart icon
   in the status bar. Tail on the bottom-left = "this sound is coming from
   over there (the menubar)". Animated bars + italic text = audio, not UI. */
.laptop-speech {
  position: absolute;
  top: -56px;
  right: -78px;
  z-index: 3;
  background: var(--pink);
  color: #FFFFFF;
  border-radius: 26px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 12px 28px rgba(255,77,141,0.32), 0 2px 4px rgba(255,77,141,0.18);
  max-width: 260px;
  transform: rotate(3deg);
}
/* Two small dots trailing from the bottom-left of the bubble back toward
   the heart icon — the classic "thought bubble" tail but kept fully rounded
   so the whole bubble reads soft. */
.laptop-speech::before,
.laptop-speech::after {
  content: "";
  position: absolute;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(255,77,141,0.28);
}
.laptop-speech::before { bottom: -10px; left: 18px; width: 14px; height: 14px; }
.laptop-speech::after  { bottom: -22px; left: 8px;  width: 8px;  height: 8px;  }
@media (max-width: 1080px) {
  .laptop-speech { right: -20px; top: -68px; }
}
@media (max-width: 820px) {
  .laptop-speech { right: 0; top: -76px; transform: rotate(2deg); }
}
.laptop-speech-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  flex-shrink: 0;
}
.laptop-speech-bars span {
  width: 3px;
  background: rgba(255,255,255,0.95);
  border-radius: 2px;
  animation: speech-bar 900ms ease-in-out infinite;
}
.laptop-speech-bars span:nth-child(1) { height: 30%; animation-delay: 0ms; }
.laptop-speech-bars span:nth-child(2) { height: 70%; animation-delay: 120ms; }
.laptop-speech-bars span:nth-child(3) { height: 50%; animation-delay: 240ms; }
.laptop-speech-bars span:nth-child(4) { height: 85%; animation-delay: 360ms; }
.laptop-speech-bars span:nth-child(5) { height: 40%; animation-delay: 480ms; }
@keyframes speech-bar {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1.15); }
}
.laptop-speech-text {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
  transition: opacity 240ms ease;
}
/* Crossfade swap: when JS sets .is-changing, the text fades to 0 and the
   bubble does a tiny "breath" (subtle scale) so the new line feels alive,
   not just text-replaced. Audio bars keep pulsing the whole time. */
.laptop-speech {
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.laptop-speech.is-changing .laptop-speech-text { opacity: 0; }
.laptop-speech.is-changing { transform: rotate(3deg) scale(0.96); }
.screen-heart {
  position: absolute;
  bottom: 16px; right: 18px;
  color: var(--pink-soft);
  font-size: 4rem;
  line-height: 1;
  opacity: 0.6;
}
.laptop-base {
  height: 12px;
  background: linear-gradient(180deg, #FF7AAB 0%, #FF5C92 60%, #E63D7D 100%);
  border-radius: 2px 2px 14px 14px;
  margin: 0 -18px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
/* Hinge notch — the dark crescent at the front of every MacBook */
.laptop-base::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 22%; height: 5px;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0));
  border-radius: 0 0 12px 12px;
}
/* Soft floor shadow */
.laptop-base::after {
  content: "";
  position: absolute;
  bottom: -18px; left: 8%; right: 8%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(255,77,141,0.28), rgba(255,77,141,0) 70%);
  filter: blur(2px);
  z-index: -1;
}
.device-tag {
  align-self: flex-start;
  margin: 0 0 0.9rem 1rem;
  font-size: 1.35rem;
  color: var(--text-muted);
  transform: rotate(-2deg);
  white-space: nowrap;
}

/* Variety tags below the laptop — quick proof of breadth */
.device-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.6rem 0 0.5rem;
  max-width: 100%;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.32rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 120ms, color 120ms, transform 120ms;
}
.tag:hover {
  border-color: var(--pink-soft);
  color: var(--pink);
  transform: translateY(-1px);
}
.device-tags-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}
.device-tags-sub strong {
  color: var(--pink);
  font-weight: 600;
}

/* === Trust strip === */

.strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 2.6rem;
  padding: 1.3rem clamp(1.25rem, 5vw, 3rem);
}
.strip-item {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}
.strip-check { color: var(--pink); font-weight: 700; margin-right: 0.3rem; }

/* === Customise widget === */

.customise {
  background: var(--bg);
}
.widget-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 60rem;
  margin: 0 auto;
  align-items: start;
}
.widget-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.widget-row {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 1rem;
}
.widget-row-head {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}
.widget-col-head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.widget-row-split {
  display: flex;
  gap: 1.4rem;
}
.widget-col { flex: 1; }
.widget-volume {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.widget-vol-icon { font-size: 1rem; color: var(--text-muted); }
.widget-vol-track {
  flex: 1;
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
  position: relative;
}
.widget-vol-fill {
  position: absolute; inset: 0; right: 30%;
  background: var(--pink);
  border-radius: 999px;
}
.widget-vol-track::after {
  content: "";
  position: absolute;
  left: 70%; top: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Segmented control */
.widget-seg {
  display: flex;
  background: rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 2px;
  gap: 0;
  width: 100%;
}
.widget-seg-cell {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  transition: background 120ms, color 120ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.widget-seg-cell:hover { color: var(--pink); }
.widget-seg-cell.is-on {
  background: var(--pink);
  color: #FFF;
  box-shadow: 0 2px 6px rgba(255,77,141,0.3);
}
.widget-seg-cell .lock { font-size: 0.8em; opacity: 0.8; }

/* Menu dropdown */
.widget-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  user-select: none;
  width: 100%;
  font-weight: 500;
  font-size: 0.95rem;
  outline: none;
}
.widget-menu-chev { color: var(--text-muted); font-size: 0.8rem; }
.widget-menu-list {
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  list-style: none;
  margin: 0; padding: 4px;
  box-shadow: 0 12px 32px rgba(15,15,18,0.12);
  z-index: 5;
  display: none;
}
.widget-menu.is-open .widget-menu-list { display: block; }
.widget-menu-list li {
  padding: 0.5rem 0.7rem;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.widget-menu-list li:hover { background: var(--pink-bg); color: var(--pink); }
.widget-menu-list li .lock { color: var(--text-muted); font-size: 0.85em; }

/* Vibe note */
.widget-vibe-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  min-height: 1.2em;
}

/* Plus banner */
.widget-banner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(135deg, var(--pink-bg), #FFFFFF);
  border: 1px solid var(--pink-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  color: var(--text);
}
.widget-banner strong { display: block; font-weight: 600; }
.widget-banner span { font-size: 0.85rem; color: var(--text-muted); display: block; }
.widget-banner-price {
  margin-left: auto;
  color: var(--pink);
  font-weight: 600;
}

/* Right column of the Customise widget — Six Moments cards */
.widget-moments {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.widget-moments-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 0.2rem;
}
.widget-moments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  transition: border-color 120ms, transform 120ms;
}
.card:hover { border-color: var(--pink-soft); transform: translateY(-2px); }
.card-hot { background: var(--pink-bg); border-color: var(--pink-soft); }
.card-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 0.35rem;
}
.card p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* === Pricing === */

.pricing { background: var(--bg); }
.price-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px solid var(--border);
}
.price-card-plus {
  background: linear-gradient(180deg, #FFFFFF, var(--pink-bg));
  border-color: var(--pink-soft);
  box-shadow: var(--shadow-lg);
}
.price-tier {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--pink);
}
.price-sub { color: var(--text-muted); margin: 0; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.price-list li {
  font-size: 0.95rem;
  color: var(--text);
  padding-left: 1.4rem;
  position: relative;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 700;
}
.btn-buy { width: 100%; }
.price-foot { font-size: 0.85rem; color: var(--text-muted); margin: 0.6rem 0 0; text-align: center; }
.price-card .caveat { font-size: 1.2rem; color: var(--pink); }

/* === FAQ === */

.faq { background: var(--surface); }
.faq-grid {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.faq details {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  transition: border-color 120ms;
}
.faq details:hover { border-color: var(--pink-soft); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after {
  content: "+";
  color: var(--pink);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 200ms;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

/* === Footer === */

.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1.25rem, 5vw, 3rem);
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 1.5rem;
}
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-fine {
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
}

/* === Responsive === */

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 5rem;   /* room above for the bubble's negative offset */
  }
  .hero .hero-device { order: -1; max-width: 320px; margin: 0 auto 1.6rem; }
  .hero-copy { max-width: none; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .widget-shell { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.85rem; }
  /* Speech bubble: pull in so it doesn't overflow the smaller laptop */
  .laptop-speech { right: -8px; top: -52px; max-width: 220px; }
  .laptop-speech-text { font-size: 0.88rem; }
  /* Caption gets clipped by the bubble at narrow widths; the bubble +
     heart icon already communicate the menu-bar idea. */
  .device-tag { display: none; }
}

@media (max-width: 520px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; }
  .hero { padding-top: 4.5rem; }
  .hero .hero-device { max-width: 260px; }
  .laptop-speech { right: 4px; top: -48px; max-width: 180px; }
  .laptop-speech-text { font-size: 0.8rem; }
  .laptop-speech-bars { height: 16px; }
}
