/* Shared look for the three main pages: home, Family Stories, Audiobooks.
   Each page sets a colour theme on <body>: theme-home, theme-stories (purple)
   or theme-books (blue). Everything else is shared. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #7B5EA7;
  --purple-light: #9B7EC8;
  --purple-pale: #F2EEF9;
  --purple-mid: #D5C8EF;
  --purple-deep: #2E1A4A;
  --blue: #5B8DB8;
  --blue-dark: #3D6E96;
  --blue-deep: #1E3A52;
  --blue-pale: #EDF4FA;
  --blue-mid: #C8DFF0;
  --ink: #2A1F3D;
  --text: #4A4A4A;
  --muted: #6b6474;
  --green: #2FA866;
  --accent: var(--purple);
  --accent-pale: var(--purple-pale);
  --accent-mid: var(--purple-mid);
  --final-bg: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
}
.theme-stories { --final-bg: linear-gradient(135deg, var(--purple) 0%, #5f4590 100%); }
.theme-books {
  --accent: var(--blue-dark); --accent-pale: var(--blue-pale); --accent-mid: var(--blue-mid);
  --final-bg: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-deep) 100%);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Nunito', sans-serif; color: var(--text); background: #fff; overflow-x: hidden; }
img, video { max-width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 40px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(123,94,167,0.08);
}
.logo { font-size: 1.25rem; font-weight: 900; color: var(--purple); text-decoration: none; letter-spacing: -0.5px; margin-right: auto; }
.logo span { color: var(--blue); }
.theme-books .logo { color: var(--blue-dark); }
.theme-books .logo span { color: var(--purple); }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 0.93rem; color: var(--text); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff; text-decoration: none; white-space: nowrap;
  font-weight: 800; font-size: 0.9rem; padding: 9px 18px; border-radius: 50px;
}
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- SMALL SHARED PIECES ---------- */
.live-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: var(--ink);
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 14px 6px 12px; border-radius: 50px;
  border: 1px solid rgba(47,168,102,0.35); box-shadow: 0 2px 12px rgba(47,168,102,0.12);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: livePulse 2s infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(47,168,102,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(47,168,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,168,102,0); }
}

/* The download block: Apple's official badge (loaded from Apple), big, with a
   note under it. If the badge can't load, a plain black button shows instead. */
.get { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.appstore {
  display: inline-flex; align-items: center; line-height: 0; text-decoration: none;
  border-radius: 12px; box-shadow: 0 10px 26px rgba(0,0,0,0.18); transition: transform 0.15s;
}
.appstore:hover { transform: translateY(-2px); }
.appstore img { height: 66px; width: auto; display: block; }
.appstore-text { display: none; }
.appstore.no-badge { background: #000; color: #fff; padding: 22px 32px; font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.appstore.no-badge img { display: none; }
.appstore.no-badge .appstore-text { display: inline; }
.get-note { font-size: 0.88rem; font-weight: 700; color: var(--muted); }
/* Only shown to visitors on an Android phone (the script at the bottom of each page adds the class). */
.android-msg {
  display: none; max-width: 360px; text-align: left;
  font-size: 0.86rem; font-weight: 700; line-height: 1.45; color: var(--ink);
  background: #fff; border: 1.5px solid var(--accent-mid); border-radius: 14px; padding: 10px 14px;
}
.android-msg a { color: var(--accent); font-weight: 900; }
.is-android .android-msg { display: block; }

/* Drawn iPhone. Set --w to change its size; everything else scales with it. */
.phone {
  --w: 250px;
  position: relative; width: var(--w); aspect-ratio: 9 / 19.5; flex-shrink: 0;
  background: #17121F; border-radius: calc(var(--w) * 0.168); padding: calc(var(--w) * 0.036);
  box-shadow: 0 0 0 1.5px #3b3346, 0 24px 48px rgba(46,26,74,0.24), 0 8px 18px rgba(46,26,74,0.14);
}
.phone::before {
  content: ''; position: absolute; z-index: 2; left: 50%; transform: translateX(-50%);
  top: calc(var(--w) * 0.076); width: calc(var(--w) * 0.28); height: calc(var(--w) * 0.08);
  background: #17121F; border-radius: 99px;
}
.phone > img, .phone > video {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center;
  border-radius: calc(var(--w) * 0.132); background: var(--accent-pale);
}

/* ---------- HERO ---------- */
.hero { padding: 48px 40px 56px; background: linear-gradient(165deg, var(--accent-pale) 0%, #fff 72%); overflow: hidden; }
.theme-home .hero { background: linear-gradient(165deg, var(--purple-pale) 0%, #fff 55%, var(--blue-pale) 100%); }
.hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.05;
  color: var(--ink); letter-spacing: -1.2px; margin: 18px 0 14px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.theme-home .hero h1 em {
  background: linear-gradient(90deg, var(--purple), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-family: 'Lora', serif; font-size: clamp(1rem, 1.9vw, 1.16rem); line-height: 1.6; color: #5f5868; max-width: 500px; margin-bottom: 24px; }
.lead b { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--ink); }

/* Home: the two halves of the app, side by side, each with its own video. */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile {
  --t: var(--purple); --t-mid: var(--purple-mid);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  text-decoration: none; color: inherit; background: #fff;
  border-radius: 26px; padding: 18px 14px; border: 1.5px solid var(--t-mid);
  box-shadow: 0 10px 30px rgba(46,26,74,0.08); transition: transform 0.2s, box-shadow 0.2s;
}
.tile.books { --t: var(--blue-dark); --t-mid: var(--blue-mid); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(46,26,74,0.14); }
.tile .tag { font-size: 0.74rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; color: var(--t); }
.tile .phone { --w: 200px; transform: rotate(-2.5deg); }
.tile.books .phone { transform: rotate(2.5deg); }
.tile.books .phone > video { background: var(--blue-pale); }
.tile b { font-size: 1.1rem; font-weight: 900; color: var(--ink); line-height: 1.2; margin-top: 4px; }
.tile .sub { font-size: 0.88rem; font-weight: 600; color: var(--muted); line-height: 1.35; }
.tile .go { font-size: 0.88rem; font-weight: 900; color: var(--t); margin-top: auto; }

/* Story and audiobook pages: one phone with notes floating beside it. */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; text-align: left;
  background: #fff; border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 14px 36px rgba(46,26,74,0.18); animation: float 4s ease-in-out infinite;
}
.float b { display: block; font-size: 0.85rem; color: var(--ink); line-height: 1.25; }
.float small { display: block; font-size: 0.72rem; color: #888; font-weight: 700; }
.float .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float .e { font-size: 1.3rem; line-height: 1; }
/* The phone sits on the right and the notes sit to its left, so they never
   cover the screen. --pw is the phone's width, --side the room for the notes. */
.pair { --pw: 262px; --side: 248px; position: relative; display: flex; justify-content: flex-end; width: calc(var(--pw) + var(--side)); max-width: 100%; }
.pair .phone { --w: var(--pw); transform: rotate(3deg); }
.pair .float { left: 0; max-width: calc(var(--side) - 8px); }
.float-a { top: 44px; }
.float-b { bottom: 70px; animation-delay: 1.8s; }
/* The text message Grandma gets (drawn, not a screenshot). */
.bubble { display: block; width: 230px; padding: 12px 14px; border-radius: 20px 20px 20px 6px; }
.bubble .from { font-size: 0.66rem; font-weight: 800; color: #888; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.bubble .msg { font-size: 0.88rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.bubble .link { margin-top: 8px; display: flex; align-items: center; gap: 8px; background: #F8F7FA; border-radius: 12px; padding: 7px; }
.bubble .link img { width: 32px; height: 32px; border-radius: 8px; }
.bubble .link b { font-size: 0.76rem; }
.bubble .link small { font-size: 0.68rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- BANDS (the sections under the hero) ---------- */
.band { padding: 48px 40px; }
.band.soft { background: #F8F7FA; }
.band-title { text-align: center; font-size: clamp(1.45rem, 3.2vw, 2.1rem); font-weight: 900; color: var(--ink); letter-spacing: -0.6px; line-height: 1.12; margin-bottom: 24px; text-wrap: balance; }
.band-title em { font-style: normal; color: var(--accent); }
.band-note { text-align: center; font-size: 0.9rem; font-weight: 700; color: var(--muted); margin-top: 20px; }

/* Home: four short reasons, two for each half. */
.hooks { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hook { border-radius: 20px; padding: 18px 16px; background: var(--purple-pale); }
.hook.books { background: var(--blue-pale); }
.hook .e { display: block; font-size: 1.5rem; line-height: 1; margin-bottom: 10px; }
.hook b { display: block; font-size: 1rem; font-weight: 900; color: var(--ink); line-height: 1.22; margin-bottom: 4px; }
.hook span { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); line-height: 1.4; }

/* Three phones in a row, captioned. Stays three across on a phone. */
.trio { display: flex; justify-content: center; gap: 36px; max-width: 900px; margin: 0 auto; }
.trio figure { margin: 0; text-align: center; }
.trio .phone { --w: 210px; margin: 0 auto; }
.trio figcaption { margin-top: 14px; font-size: 1rem; font-weight: 900; color: var(--ink); line-height: 1.25; }
.trio figcaption span { display: block; font-weight: 600; color: #7a7383; font-size: 0.86rem; margin-top: 2px; }
.trio .n { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 900; align-items: center; justify-content: center; margin-right: 6px; vertical-align: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 900px; margin: 0 auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--accent-mid); color: var(--ink); font-weight: 800; font-size: 0.88rem; padding: 8px 14px; border-radius: 50px; white-space: nowrap; }
/* "What will you record?": one idea at a time, fading. All of them stay in
   the page, so screen readers and search engines get the full list. */
.rotator { display: grid; justify-items: center; max-width: 520px; margin: 0 auto; }
.rotator > .chip { grid-area: 1 / 1; white-space: normal; text-align: center; justify-content: center; opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.5s; }
.rotator > .chip.on { opacity: 1; transform: none; }
.rotator.all { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rotator.all > .chip { opacity: 1; transform: none; }
.chips-label { text-align: center; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 34px 0 12px; }

/* Audiobooks: free vs Premium, with play buttons. */
.hear {
  max-width: 900px; margin: 0 auto; color: #fff; border-radius: 28px; padding: 30px;
  background: linear-gradient(135deg, var(--purple-deep) 0%, #4a3172 100%);
}
.hear .k { font-size: 0.74rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #CDBAF0; }
.hear h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.4px; margin: 6px 0 10px; text-wrap: balance; }
.hear h2 em { font-style: normal; color: #CDBAF0; }
.hear-text { font-size: 0.95rem; line-height: 1.55; color: rgba(255,255,255,0.84); margin-bottom: 20px; max-width: 620px; }
.hear-body { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.hear .phone { --w: 170px; box-shadow: 0 0 0 1.5px #5b4a76, 0 20px 40px rgba(0,0,0,0.3); }
.demos { display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.demo-label { font-size: 0.86rem; font-weight: 900; margin-bottom: 8px; }
.demo-label span { font-weight: 600; color: rgba(255,255,255,0.65); }
.demo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-family: 'Nunito', sans-serif; font-size: 0.92rem; font-weight: 800;
  padding: 11px 10px; border-radius: 12px; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.28); background: transparent; color: #fff;
}
.demo-btn.premium { background: #fff; color: var(--purple-deep); border-color: #fff; }
.demo-btn[aria-pressed="true"] { box-shadow: 0 0 0 3px #CDBAF0; }
.demo-btn .ico-pause { display: none; }
.demo-btn[aria-pressed="true"] .ico-play { display: none; }
.demo-btn[aria-pressed="true"] .ico-pause { display: inline; }
.demo-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.15); margin-top: 8px; overflow: hidden; }
.demo-bar span { display: block; height: 100%; width: 0; background: #CDBAF0; border-radius: 3px; transition: width 0.2s linear; }

/* Audiobooks: one long file becomes several cards. */
.own { max-width: 900px; margin: 22px auto 0; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; background: var(--blue-pale); border-radius: 24px; padding: 22px 26px; }
.own-art { display: flex; align-items: center; gap: 12px; }
.own-file { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 76px; border-radius: 10px; background: #fff; border: 1.5px solid var(--blue-mid); font-size: 0.7rem; font-weight: 900; color: var(--blue-dark); line-height: 1.2; text-align: center; }
.own-file small { font-size: 0.6rem; color: #889; font-weight: 700; }
.own-arrow { color: var(--blue); font-weight: 900; font-size: 1.2rem; }
.own-cards { display: flex; gap: 6px; }
.own-cards i { display: flex; align-items: center; justify-content: center; width: 34px; height: 52px; border-radius: 6px; font-style: normal; font-size: 0.72rem; font-weight: 900; color: #fff; box-shadow: 0 4px 10px rgba(30,58,82,0.2); }
.own-cards i:nth-child(1) { background: #E8735A; }
.own-cards i:nth-child(2) { background: #5BAF8E; }
.own-cards i:nth-child(3) { background: #8B6DB8; }
.own b { display: block; font-size: 1.05rem; font-weight: 900; color: var(--blue-deep); margin-bottom: 3px; }
.own p { font-size: 0.9rem; font-weight: 600; color: #566676; line-height: 1.45; }
.own a { color: var(--blue-dark); font-weight: 800; }

/* Audiobooks: a closed "More about..." panel. The words are on the page for
   search engines either way; people open it only if they want the detail. */
.more { max-width: 900px; margin: 16px auto 0; border: 1.5px solid var(--accent-mid); border-radius: 18px; background: #fff; }
.more summary { cursor: pointer; list-style: none; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.more summary::-webkit-details-marker { display: none; }
.more summary h2 { font-size: 1rem; font-weight: 900; color: var(--ink); }
.more summary::after { content: '+'; font-size: 1.4rem; font-weight: 900; color: var(--accent); line-height: 1; }
.more[open] summary::after { content: '\2212'; }
.more-body { padding: 0 18px 18px; }
.more-body h3 { font-size: 0.95rem; font-weight: 900; color: var(--ink); margin: 14px 0 4px; }
.more-body h3:first-child { margin-top: 0; }
.more-body p { font-size: 0.9rem; line-height: 1.55; color: #555; }
.more-body a { color: var(--accent); font-weight: 800; }

/* ---------- FINAL DOWNLOAD BLOCK ---------- */
.final { background: var(--final-bg); color: #fff; padding: 52px 40px; }
.final-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.final-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 26px rgba(0,0,0,0.25); display: block; margin-bottom: 16px; }
.final h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.6px; line-height: 1.08; margin-bottom: 8px; text-wrap: balance; }
.final-sub { font-family: 'Lora', serif; font-size: 1.02rem; line-height: 1.55; opacity: 0.92; margin-bottom: 22px; max-width: 460px; }
.final-sub a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); text-underline-offset: 3px; }
.final .appstore { box-shadow: 0 14px 34px rgba(0,0,0,0.28); }
.final .get-note { color: rgba(255,255,255,0.82); }
.final .android-msg { color: var(--ink); }
.also { display: inline-block; margin-top: 18px; color: #fff; font-weight: 800; font-size: 0.92rem; text-decoration: none; border-bottom: 1.5px solid rgba(255,255,255,0.4); }
.qr-card { flex-shrink: 0; background: #fff; border-radius: 22px; padding: 18px 18px 14px; text-align: center; color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.qr-card img { width: 150px; height: 150px; display: block; margin: 0 auto 8px; }
.qr-card b { display: block; font-size: 0.9rem; }
.qr-card small { font-size: 0.76rem; color: #7a7383; font-weight: 700; }

/* ---------- FOOTER ---------- */
footer { background: #1E1530; color: rgba(255,255,255,0.55); padding: 24px 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; font-size: 0.84rem; }
.footer-logo { font-size: 1.05rem; font-weight: 900; color: #fff; }
.footer-logo span { color: #7AADD4; }
footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: #fff; }

/* ---------- MOTION ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: fadeUp 0.5s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(n+4) { animation-delay: 0.18s; }
.duo, .hero-visual { animation: fadeUp 0.6s 0.15s ease both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- TABLET ---------- */
@media (max-width: 900px) {
  .hero { padding: 26px 16px 34px; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .hero h1 { margin: 14px 0 12px; }
  .lead { margin: 0 auto 20px; }
  .get { align-items: center; }
  .hooks { grid-template-columns: repeat(2, 1fr); }
  .final-inner { flex-direction: column; text-align: center; gap: 0; }
  .final-icon { margin: 0 auto 14px; }
  .final-sub { margin-left: auto; margin-right: auto; }
  .final .get { align-items: center; }
}

/* ---------- PHONE ---------- */
@media (max-width: 720px) {
  .nav { padding: 10px 16px; gap: 12px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; padding: 6px 20px 14px;
    background: rgba(255,255,255,0.98); box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open li { padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .nav-links.open li:last-child { border-bottom: none; }
  .nav-burger { display: flex; }
  .nav-cta { padding: 8px 15px; font-size: 0.85rem; }

  .band { padding: 32px 16px; }
  .band-title { margin-bottom: 18px; }

  /* Two tiles side by side, sized to the screen. */
  .duo { gap: 10px; margin: 0 -4px; }
  .tile { padding: 14px 8px 14px; gap: 8px; border-radius: 22px; }
  .tile .phone { --w: min(146px, calc(50vw - 46px)); }
  .tile .tag { font-size: 0.66rem; }
  .tile b { font-size: 0.98rem; margin-top: 2px; }
  .tile .sub { font-size: 0.8rem; }
  .tile .go { font-size: 0.82rem; }

  .hero-visual { padding: 4px 0 0; }
  .float { padding: 8px 10px; gap: 8px; border-radius: 14px; }
  .float b { font-size: 0.74rem; }
  .float small { font-size: 0.64rem; }
  .float .tick { width: 22px; height: 22px; }
  .float .tick svg { width: 13px; height: 13px; }
  .float .e { font-size: 1.05rem; }
  .pair { --pw: 164px; --side: 180px; }
  .float-a { top: 22px; }
  .float-b { bottom: 40px; }
  .bubble { width: 168px; padding: 9px 10px; }
  .bubble .from { font-size: 0.56rem; }
  .bubble .msg { font-size: 0.76rem; }
  .bubble .link { padding: 5px; gap: 6px; margin-top: 6px; }
  .bubble .link img { width: 24px; height: 24px; border-radius: 6px; }
  .bubble .link b { font-size: 0.66rem; }
  .bubble .link small { font-size: 0.58rem; }

  .hooks { gap: 10px; }
  .hook { padding: 14px 12px; border-radius: 16px; }
  .hook .e { font-size: 1.25rem; margin-bottom: 7px; }
  .hook b { font-size: 0.9rem; }
  .hook span { font-size: 0.78rem; }
  .band-note { font-size: 0.82rem; margin-top: 14px; }

  .trio { gap: 10px; }
  .trio .phone { --w: calc((100vw - 52px) / 3); }
  .trio figcaption { font-size: 0.8rem; margin-top: 10px; }
  .trio figcaption span { font-size: 0.7rem; }
  .trio .n { display: flex; margin: 0 auto 4px; width: 20px; height: 20px; font-size: 0.66rem; }

  .chip { font-size: 0.8rem; padding: 7px 12px; }
  .chips-label { margin: 24px 0 10px; font-size: 0.72rem; }

  .hear { padding: 20px 16px; border-radius: 22px; }
  .hear-text { font-size: 0.86rem; margin-bottom: 16px; }
  .hear-body { gap: 14px; }
  .hear .phone { --w: 104px; }
  .demos { gap: 14px; }
  .demo-label { font-size: 0.78rem; margin-bottom: 6px; }
  .demo-label span { display: block; }
  .demo-btns { gap: 6px; }
  .demo-btn { font-size: 0.8rem; padding: 9px 6px; gap: 5px; }

  /* On a phone the drawing shrinks to just the three cards, beside the words. */
  .own { gap: 14px; padding: 14px; margin-top: 14px; border-radius: 20px; }
  .own-file, .own-arrow { display: none; }
  .own-cards { gap: 4px; }
  .own-cards i { width: 24px; height: 40px; font-size: 0.66rem; }
  .own b { font-size: 0.96rem; }
  .more { margin-top: 12px; }
  .more summary { padding: 12px 14px; }
  .more summary h2 { font-size: 0.92rem; }
  .more-body { padding: 0 14px 14px; }
  .more-body p { font-size: 0.84rem; }
  .own p { font-size: 0.82rem; }

  .final { padding: 34px 16px 36px; }
  .final-icon { display: none; }
  .final-sub { font-size: 0.94rem; margin-bottom: 18px; }
  .also { margin-top: 14px; font-size: 0.86rem; }

  footer { padding: 18px 16px 22px; justify-content: center; text-align: center; font-size: 0.78rem; }
  footer ul { justify-content: center; gap: 6px 14px; }
}

/* A QR code is no use to someone already holding their phone. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) { .qr-card { display: none; } }
