/* The scroll walkthrough: one sticky stage holds the desk photo and the phone, and the
   steps scroll past it. flow.js moves the phone and swaps its screens from scroll position. */
:root {
  --qf-paper: #fbf7f2;
  --qf-surface: #fff;
  --qf-track: #f0ebe3;
  --qf-ink: #2b2724;
  --qf-muted: #8b8279;
  --qf-faint: #a79c88;
  --qf-dismiss: #b4aba0;
  --qf-accent: #c05621;
  --qf-accent-soft: #e08a5a;
  --qf-night: #120f0d;
  --qf-serif: "Quotd Serif", Georgia, serif;
  --qf-sans: "Quotd Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --qf-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Quotd Sans", sans-serif;
}

/* Night behind everything, so an overscroll at either end never shows a pale strip. */
html:has(body.flow-page), body.flow-page { background: var(--qf-night); }
body.flow-page #main-content { overflow: visible; }

/* Full bleed, even where the page's body stops at 1440px on a wide screen. */
.qf { position: relative; width: 100vw; margin-left: calc(50% - 50vw); overflow-x: clip; color: #fff; background: var(--qf-night); }

.qf-stage {
  /* The tallest the window gets, so the photo runs down under Safari's toolbar; flow.js keeps the
     phone and text inside the smallest window, above the toolbar. */
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; z-index: 1;
}
.qf-svh { position: absolute; top: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; }
.qf-fade, .qf-caps { display: none; }
.qf-bg, .qf-shade { position: absolute; inset: 0; }
/* A little larger than the stage, so the blur never softens the photo's own edges into view. */
.qf-bg { inset: -3%; }
.qf-bg img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.qf-shade {
  background:
    radial-gradient(120% 80% at 50% 110%, rgba(18, 15, 13, 0) 30%, rgba(18, 15, 13, .55) 100%),
    linear-gradient(rgba(18, 15, 13, .55), rgba(18, 15, 13, 0) 38%);
}
.qf-dim { position: absolute; inset: 0; background: #120f0d; opacity: 0; pointer-events: none; }

/* Nav and hero copy, centered over the photo the way the preview has them. */
/* The menu: one dark, slightly see-through pill fixed to the top for the whole page. */
.qf-nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 28px; padding: 7px 7px 7px 14px; border-radius: 999px;
  background: rgba(27, 24, 22, .72); border: 1px solid rgba(251, 247, 242, .1);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  font: 500 15px/1 var(--qf-sans); white-space: nowrap;
}
.qf-nav a { color: rgba(251, 247, 242, .78); text-decoration: none; transition: color .2s; }
.qf-nav a:hover { color: #fff; }
.qf-brand { display: flex; align-items: center; gap: 9px; color: #fff !important; font-weight: 600; font-size: 16px; }
.qf-brand img { width: 26px; height: 26px; border-radius: 7px; }
.qf-links { display: flex; gap: 24px; }
/* The section you're in: white, with a small terracotta dot beneath. */
.qf-links a { position: relative; }
.qf-links a[aria-current="true"] { color: #fff; }
.qf-links a[aria-current="true"]::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--qf-accent-soft); }
.qf-nav-cta { padding: 10px 16px; border-radius: 999px; background: var(--qf-accent); color: #fff !important; font-weight: 600; font-size: 14px; }
.qf-nav-cta:hover { background: #a8481a; }

.qf-hero { position: absolute; left: 0; right: 0; top: 10.5vh; text-align: center; z-index: 4; will-change: transform, opacity; }
.qf-title {
  margin: 0; font: 400 clamp(44px, 6.4vw, 92px)/1.02 var(--qf-serif); letter-spacing: -.035em;
  color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.qf-sub { margin: 6px 0 0; font: 400 clamp(17px, 1.6vw, 23px)/1.3 var(--qf-sans); color: rgba(255, 255, 255, .92); }
.qf-cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 16px 48px;
  border-radius: 16px; background: rgba(18, 15, 13, .92); color: #fff; text-decoration: none;
  font: 500 19px/1 var(--qf-sans); border: 1.5px solid rgba(224, 138, 90, .85);
  box-shadow: 0 0 0 4px rgba(192, 86, 33, .12), 0 0 34px rgba(224, 138, 90, .45);
  transition: transform .2s, box-shadow .2s;
}
.qf-cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(192, 86, 33, .18), 0 0 44px rgba(224, 138, 90, .6); }
.qf-cta--small { padding: 13px 26px; font-size: 16px; margin-top: 26px; }
.qf-meta { margin: 14px 0 0; font: 400 15px/1 var(--qf-sans); color: rgba(255, 255, 255, .85); }

.qf-kicker {
  display: block; margin-bottom: 14px; font: 600 12.5px/1 var(--qf-sans); letter-spacing: .16em;
  text-transform: uppercase; color: var(--qf-accent-soft);
}
/* Beside the zoomed phone, high up in the dark above the open book; flow.js sets its right edge and top. */
.qf-zoomcap {
  position: absolute; right: 70vw; top: 18vh; width: min(330px, 26vw); margin: 0; z-index: 4; opacity: 0; text-align: right;
  font: 400 clamp(20px, 1.8vw, 26px)/1.3 var(--qf-serif); color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

/* ── The phone. Built at the iPhone's own size (402×874 points) and scaled by flow.js. ── */
.qf-phone {
  position: absolute; left: 50%; top: 50%; width: 430px; height: 902px; margin: -451px 0 0 -215px;
  z-index: 3; transform-origin: 50% 50%;
}
.qf-frame {
  position: absolute; inset: 0; border-radius: 70px; background: #1b1918; padding: 14px;
  box-shadow:
    inset 0 0 0 2px #3a3633, inset 0 0 0 5px #0d0c0b,
    0 0 0 1.5px #5b544e,
    0 60px 120px -30px rgba(0, 0, 0, .75), 0 0 90px rgba(224, 138, 90, .28);
}
.qf-full .qf-bg, .qf-full .qf-shade, .qf-full .qf-dim { visibility: hidden; }
.qf-full .qf-frame { background: var(--qf-paper); box-shadow: none; }
.qf-full .qf-island { display: none; }
.qf-island { position: absolute; top: 25px; left: 50%; width: 124px; height: 36px; margin-left: -62px; background: #000; border-radius: 20px; z-index: 9; }
.qf-screen { position: relative; width: 402px; height: 874px; border-radius: 56px; overflow: hidden; background: var(--qf-paper); }

.qs { position: absolute; inset: 0; background: var(--qf-paper); color: var(--qf-ink); font-family: var(--qf-ui); visibility: hidden; box-shadow: -18px 0 40px rgba(43, 39, 36, .18); }
.qs[data-screen="camera"] { visibility: visible; }
.qs-shot img { width: 100%; height: 100%; display: block; }
.qs-status { display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 8px 39.5px 0 43px; font: 540 17px/1 var(--qf-ui); }
.qs-icons {
  /* Traced from the iOS 26 simulator's own status bar at 3x; a mask so the icons take the clock's color */
  width: 86.33px; height: 15.67px; display: block; background: currentColor;
  -webkit-mask: url("/assets/quotd/status-icons.png") no-repeat center/100% 100%; mask: url("/assets/quotd/status-icons.png") no-repeat center/100% 100%;
}
.qs-home { position: absolute; bottom: 8px; left: 50%; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: #1d1a17; }

/* Camera */
.cam-top, .ld-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 18px 8px; height: 50px; }
.cam-x { color: var(--qf-dismiss); font-size: 19px; }
.cam-title { text-align: center; line-height: 1.1; }
.cam-title b { display: block; font: 500 19px var(--qf-serif); letter-spacing: -.01em; }
.cam-title small { font-size: 11.5px; color: var(--qf-muted); }
.cam-help { width: 22px; height: 22px; border: 1.5px solid var(--qf-ink); border-radius: 50%; font: 600 13px/19px var(--qf-ui); text-align: center; }
.cam-view {
  position: relative; margin: 0 14px; height: 448px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 45%, #3b3128, #17140f 75%);
}
.cam-page {
  position: absolute; left: 34px; right: 30px; top: 30px; bottom: 34px; padding: 20px 20px 0;
  background: linear-gradient(100deg, #d9cdb8 0%, #ece3d2 14%, #f1e9da 60%, #e3d8c4 100%);
  transform: perspective(700px) rotateX(5deg) rotate(-.8deg); border-radius: 2px 4px 4px 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 10px 0 18px -10px rgba(80, 60, 30, .35);
  font: 400 11.2px/1.52 var(--qf-serif); color: #2f2a23; overflow: hidden;
}
.cam-page p { margin: 0 0 8px; text-indent: 1.2em; }
.cam-page .pg-head { display: flex; justify-content: space-between; text-indent: 0; font-size: 9.5px; font-style: italic; color: #6d6253; margin-bottom: 12px; }
/* Pen marks a reader adds: a hand-drawn underline and notes in the margin, in blue ink. */
.cam-page { padding-right: 58px; }
.cam-page u {
  text-decoration: none; padding-bottom: 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: repeat-x 0 100%/90px 5px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 5' preserveAspectRatio='none'%3E%3Cpath d='M0 2.6C12 1.9 22 3.3 34 2.5S58 1.8 70 2.9 84 2.4 90 2.6' fill='none' stroke='%232a4a8f' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.cam-page .mn {
  position: absolute; right: 6px; width: 50px; margin-top: -2px; text-indent: 0; text-align: center;
  font: 400 12px/1.05 "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; color: #2a4a8f; transform: rotate(-6deg);
}
.cam-page .mn-bar { position: absolute; right: 52px; width: 6px; border: 1.4px solid #2a4a8f; border-left: 0; border-radius: 0 6px 6px 0; opacity: .85; }
.cam-page mark { background: linear-gradient(transparent 12%, rgba(250, 200, 40, .72) 12%, rgba(250, 200, 40, .72) 92%, transparent 92%); color: inherit; padding: 0 1px; }
.cam-br { position: absolute; width: 26px; height: 26px; border: 2.5px solid #fff; opacity: .9; }
.cam-br.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.cam-br.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.cam-br.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.cam-br.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.cam-sweep {
  position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: #e0a21a;
  box-shadow: 0 0 14px 3px rgba(224, 162, 26, .55); animation: qf-sweep 3.2s ease-in-out infinite;
}
@keyframes qf-sweep { 0%, 100% { top: 22px; opacity: 0; } 10%, 90% { opacity: 1; } 50% { top: 420px; } }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.cam-tip {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 7px 14px; border-radius: 20px; background: rgba(255, 255, 255, .94); font-size: 11.5px; color: var(--qf-ink);
}
.cam-seg { display: flex; margin: 14px 14px 0; padding: 3px; border-radius: 11px; background: var(--qf-track); font-size: 13px; color: var(--qf-muted); }
.cam-seg span { flex: 1; text-align: center; padding: 8px 0; border-radius: 9px; }
.cam-seg .on { background: #fff; color: var(--qf-accent); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.cam-thumbs { display: flex; gap: 10px; align-items: center; margin: 12px 14px 0; padding: 10px 10px; border-radius: 12px; background: #f3efe7; }
.th { position: relative; width: 46px; height: 60px; border-radius: 6px; overflow: visible; }
.th i { position: absolute; inset: 0; border-radius: 6px; background: repeating-linear-gradient(#e7dccb 0 3px, #cfc2ac 3px 4px) 6px 8px/34px 44px no-repeat, linear-gradient(#3b3128, #17140f); }
.th b { position: absolute; left: 4px; bottom: 4px; width: 17px; height: 17px; border-radius: 50%; background: #1b1918; color: #fff; font: 600 10px/17px var(--qf-ui); text-align: center; }
.th em { position: absolute; right: -6px; top: -6px; width: 17px; height: 17px; border-radius: 50%; background: #3a3633; color: #fff; font: 600 11px/16px var(--qf-ui); font-style: normal; text-align: center; }
.th-add { width: 46px; height: 60px; border-radius: 6px; border: 1.5px dashed #c9bfb1; color: var(--qf-muted); font: 300 22px/57px var(--qf-ui); text-align: center; }
.cam-bar { display: flex; align-items: center; justify-content: space-between; margin: 16px 14px 0; }
.cam-smart { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-radius: 12px; background: #f3efe7; font: 600 14px var(--qf-ui); }
.cam-shutter { width: 66px; height: 66px; border-radius: 50%; border: 3.5px solid var(--qf-accent); display: grid; place-items: center; }
.cam-shutter i { width: 52px; height: 52px; border-radius: 50%; background: var(--qf-accent); display: block; }
.cam-review { padding: 13px 18px; border-radius: 12px; background: var(--qf-accent); color: #fff; font: 600 14px var(--qf-ui); }

/* Loading */
.ld-body { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; }
/* The app mark over the dots, as ProcessingView draws it: a 44pt frame in the accent. */
.ld-mark {
  display: block; width: 30px; height: 40px; margin: 0 auto 16px; background: var(--qf-accent);
  -webkit-mask: url(/assets/quotd/mark.png) center / contain no-repeat; mask: url(/assets/quotd/mark.png) center / contain no-repeat;
}
.ld-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
/* flow.js pulses the dots, so they keep moving even where CSS animation is switched off. */
.ld-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--qf-accent); transform: scale(.5); opacity: .4; }
.ld-body h3 { margin: 0 0 14px; font: 400 26px/1.15 var(--qf-serif); color: var(--qf-ink); }
.ld-body p { margin: 0 48px; font-size: 14px; line-height: 1.45; color: var(--qf-muted); }

/* Review */
.rv-scroll { position: absolute; top: 54px; left: 0; right: 0; bottom: 104px; overflow: hidden; }
.rv-in { padding: 0 18px 24px; will-change: transform; }
.rv-in .ld-top { padding: 0; }
.rv-title { margin: 6px 4px 6px; font: 400 26px/1.1 var(--qf-serif); }
.rv-sub { margin: 0 4px 14px; font-size: 14px; color: var(--qf-muted); }
.rv-sheet { background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 1px 2px rgba(43, 39, 36, .05), 0 6px 20px rgba(43, 39, 36, .05); }
.rv-ch { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #f0ebe3; }
.rv-ch b { display: block; font: 400 19px/1.25 var(--qf-serif); }
.rv-ch small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--qf-muted); }
.rv-edit { color: var(--qf-accent); font-weight: 600; font-size: 15px; }
.rv-toggle { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: 15px; }
.rv-toggle i { width: 50px; height: 30px; border-radius: 15px; background: var(--qf-accent); position: relative; }
.rv-toggle i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.rv-head { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 4px 10px; font-size: 13px; color: var(--qf-muted); }
.mono { font: 600 11px/1 var(--qf-ui); letter-spacing: .14em; text-transform: uppercase; color: #8b8172; }
.rv-card { position: relative; margin-bottom: 14px; padding: 14px 14px 8px 20px; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(43, 39, 36, .05), 0 6px 18px rgba(43, 39, 36, .05); }
.rv-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--spine); }
.rv-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--qf-faint); }
.star { font-size: 16px; line-height: 1; color: #d6cec3; }
.star.on { color: #c9971f; }
.rv-card p { margin: 6px 0 10px; font: 400 17px/1.4 var(--qf-serif); color: var(--qf-ink); }
.rv-tags { display: flex; gap: 6px; }
.tg { padding: 5px 11px; border-radius: 14px; font-size: 12.5px; }
.tg-g { color: #6f9174; background: #edf3ec; }
.tg-b { color: #6c93b8; background: #e8f0f7; }
.tg-r { color: #a8746a; background: #f6ebe8; }
.rv-acts { display: flex; gap: 18px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f5f1ea; font-size: 12.5px; color: var(--qf-muted); }
.rv-trash { margin-left: auto; color: #b0928a; }
.rv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 104px; padding: 14px 18px 0; background: linear-gradient(rgba(251, 247, 242, 0), var(--qf-paper) 18%); }
.rv-bar span { display: block; padding: 16px 0; border-radius: 14px; background: var(--qf-accent); color: #fff; text-align: center; font: 600 16px var(--qf-ui); }

/* ── Steps: an empty lead for the hero and zoom, then one screen-tall step per screen. ── */
.qf-steps { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100lvh; pointer-events: none; }
.qf-lead { height: 300vh; }
.qf-tail { height: 15vh; }
/* flow.js pads each step so its copy rests mid-screen, and sticks there while the step fills the screen. */
/* Every step is taller than the screen, so its copy holds mid-screen for a beat before moving on. */
.qf-step { height: 150vh; box-sizing: border-box; padding-right: 24px; }
.qf-copy { position: sticky; width: min(440px, 36vw); margin-left: auto; pointer-events: auto; opacity: 0; }
.qf-copy h2 { margin: 0 0 18px; font: 400 clamp(36px, 3.6vw, 54px)/1.04 var(--qf-serif); letter-spacing: -.03em; color: #fff; }
.qf-copy p { margin: 0; font: 400 18px/1.55 var(--qf-sans); color: rgba(255, 255, 255, .8); }
.qf-m { display: none; }
.qf-copy ul { margin: 22px 0 0; padding: 0; list-style: none; }
.qf-copy li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid rgba(255, 255, 255, .12); font: 400 15.5px/1.35 var(--qf-sans); color: rgba(255, 255, 255, .9); }
.qf-copy li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--qf-accent-soft); }

/* ── Phones: phone fills the screen under the nav, each step's text laid over its lower half. ── */
@media (max-width: 820px) {
  .qf-nav { top: 10px; left: 12px; right: 12px; transform: none; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 16px; font-size: 14px; }
  /* Clear of the pill's rounded end, so the icon can be bigger. */
  .qf-brand img { width: 32px; height: 32px; border-radius: 8px; }
  .qf-brand span { display: none; }
  .qf-links { gap: 16px; }
  .qf-nav-cta { padding: 9px 13px; font-size: 13px; }
  /* Safari paints the strip under its bottom toolbar in one flat color (the page's night), and no
     photo can show there, so the photo fades into that color just above it. */
  .qf-stage::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none; opacity: var(--qf-topfade, 1);
    height: calc(var(--qf-under, 0px) + 110px);
    background: linear-gradient(rgba(18, 15, 13, 0), rgba(18, 15, 13, .55) 55px, var(--qf-night) 110px);
  }
  /* Safari fills the strip behind its status bar with the page's night, so the phone, when it's
     big enough to reach the top, fades into that color instead of meeting it in a hard edge. */
  .qf-stage::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48px; z-index: 4; pointer-events: none; opacity: var(--qf-topfade, 1);
    background: linear-gradient(var(--qf-night), rgba(18, 15, 13, .6) 22px, rgba(18, 15, 13, 0));
  }
  .qf-hero { top: 78px; padding: 0 16px; }
  /* One line on every phone: the headline and the line under it scale with the screen. */
  .qf-title { font-size: clamp(28px, 9.6vw, 52px); white-space: nowrap; }
  .qf-sub { font-size: clamp(13px, 4vw, 16.5px); margin-top: 4px; white-space: nowrap; }
  .qf-cta { padding: 14px 30px; font-size: 17px; margin-top: 18px; }
  .qf-meta { font-size: 13.5px; }
  /* Step 1's caption sits where every other step's text does, on the same fade. */
  .qf-zoomcap { left: 22px; right: 22px; top: auto; bottom: var(--qf-under, 0px); width: auto; text-align: left; z-index: 21; font-size: 25px; line-height: 1.22; text-shadow: none; }
  .qf-zoomcap .qf-kicker { margin-bottom: 10px; }
  /* The cream section below tucks under the walkthrough's last pixel or two, so no sliver of night
     shows between the launch screen and it where the stage's height rounds. */
  .qf { margin-bottom: -2px; }
  .qf-step { padding-left: 16px; padding-right: 16px; }
  /* The text sits straight on a dark fade over the phone's lower half, no card. */
  .qf-fade {
    display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 20; opacity: 0; pointer-events: none; transition: height .45s ease;
    /* One even ramp (eased, so there's no visible step where it changes pace), never fully dark, so the app shows through. */
    background: linear-gradient(rgba(18, 15, 13, 0.00) 0%, rgba(18, 15, 13, 0.02) 5%, rgba(18, 15, 13, 0.08) 10%, rgba(18, 15, 13, 0.15) 15%, rgba(18, 15, 13, 0.25) 20%, rgba(18, 15, 13, 0.36) 25%, rgba(18, 15, 13, 0.48) 30%, rgba(18, 15, 13, 0.59) 35%, rgba(18, 15, 13, 0.69) 40%, rgba(18, 15, 13, 0.76) 45%, rgba(18, 15, 13, 0.82) 50%, rgba(18, 15, 13, 0.84) 55%, rgba(18, 15, 13, 0.84));
  }
  /* The text is shown from copies in the stage (flow.js), resting just above the bottom edge. */
  .qf-steps .qf-copy { visibility: hidden; }
  /* The text rests just above where Safari's full-size toolbar would come up (its top sits a little below
     the small viewport's bottom edge), so the smaller toolbar, as you scroll, leaves more phone above it. */
  .qf-caps { display: block; position: absolute; left: 16px; right: 16px; bottom: var(--qf-under, 0px); z-index: 21; pointer-events: none; }
  .qf-caps .qf-copy { position: absolute; left: 0; right: 0; bottom: 0; top: auto !important; opacity: 0; pointer-events: auto; }
  .qf-copy { width: 100%; padding: 0 6px; }
  .qf-copy h2 { font-size: 36px; line-height: 1.05; margin-bottom: 12px; }
  .qf-copy h2 br { display: none; }
  .qf-copy p { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
  .qf-copy ul { display: none; }
  /* On a phone each step says one short line, so most of the screen stays the phone. */
  .qf-copy p:not(.qf-m), .qf-copy .qf-cta { display: none; }
  .qf-copy .qf-cta--keep { display: inline-flex; }
  .qf-copy .qf-m { display: block; }
  .qf-caps .qf-copy { text-shadow: 0 1px 12px rgba(18, 15, 13, .6); }
  /* Step 1's text sits on Loading's cream itself, so it's in the app's ink. */
  .qf-zoomcap { color: var(--qf-ink); }
  .qf-kicker { margin-bottom: 10px; font-size: 12px; letter-spacing: .22em; }
  .qf-cta--small { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cam-sweep { animation: none; }
}

/* ── Screens added for steps 3–5 ── */
.qs-shot { overflow: hidden; }
.tap {
  position: absolute; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgba(43, 39, 36, .18); border: 2px solid rgba(255, 255, 255, .9); opacity: 0; transform: scale(.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

/* The quote page, as QuoteDetailView lays it out */
.qd { padding: 6px 18px 0; }
.qd-top { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 4px 14px; font-size: 15px; }
.qd-close { color: var(--qf-muted); }
.qd-right { display: flex; gap: 14px; align-items: center; }
.qd-pos { font: 500 11px var(--qf-ui); letter-spacing: .08em; color: var(--qf-faint); font-variant-numeric: tabular-nums; }
.qd-edit { color: var(--qf-accent); font-weight: 600; }
.qd-sheet { background: #fff; border-radius: 18px; padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(43, 39, 36, .05), 0 6px 20px rgba(43, 39, 36, .05); }
.qd-text { margin: 0; font: italic 300 23px/1.38 var(--qf-serif); color: var(--qf-ink); }
.qd-rule { display: block; width: 34px; height: 1px; background: #c0b7ac; margin-top: 22px; }
.qd-book { margin: 14px 0 0; font-size: 14px; color: var(--qf-muted); }
.qd-attr { margin: 3px 0 0; font-size: 12px; color: #9a9188; }
.qd-color { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: #9a9188; }
.qd-color i { width: 9px; height: 9px; border-radius: 50%; background: #86a98a; }
.qd-note p { margin: 8px 0 12px; font-size: 13.5px; line-height: 1.45; color: #6b6358; }
.tg-add { border: 1px dashed #ddd4c6; color: var(--qf-muted); }
.qd-foot { padding-top: 4px; }
.qd-cite { display: flex; align-items: center; gap: 9px; margin: 0 4px 12px; font-size: 12px; color: var(--qf-accent); }
.qd-cite i { width: 15px; height: 15px; border-radius: 3px; background: var(--qf-accent); color: #fff; font: 700 10px/15px var(--qf-ui); font-style: normal; text-align: center; }
.qd-btns { display: flex; gap: 10px; }
.qd-copy, .qd-share { padding: 15px 0; border-radius: 14px; text-align: center; font: 600 15px var(--qf-ui); }
.qd-copy { width: 92px; border: 1px solid #ddd4c6; color: #6b6358; }
.qd-share { flex: 1; background: var(--qf-ink); color: var(--qf-paper); }
.qd-del { margin: 14px 0 0; text-align: center; font-size: 14px; color: #b0928a; }

/* Smart Search: placed over the real screenshot, in its points */
.ss-field { position: absolute; left: 60px; top: 130px; width: 272px; height: 30px; background: #fff; overflow: hidden; display: flex; align-items: center; opacity: 0; }
.ss-type { flex: none; font: 400 16px/30px var(--qf-ui); color: var(--qf-ink); white-space: nowrap; will-change: transform; }
.ss-caret { flex: none; width: 2px; height: 20px; background: var(--qf-accent); margin-left: 1px; animation: qf-caret 1s steps(1) infinite; }
@keyframes qf-caret { 50% { opacity: 0; } }
.ss-send { position: absolute; left: 342px; top: 127px; width: 36px; height: 36px; border-radius: 50%; background: var(--qf-accent); color: #fff; font: 600 19px/36px var(--qf-ui); font-style: normal; text-align: center; opacity: 0; }
.ss-chat { position: absolute; left: 0; right: 0; top: 236px; bottom: 92px; padding: 8px 22px 0; background: var(--qf-paper); overflow: hidden; opacity: 0; font-family: var(--qf-ui); }
.ss-q { margin-left: 44px; padding: 11px 15px; border-radius: 12px; background: #f3efe7; font-size: 15px; line-height: 1.4; color: var(--qf-ink); }
.ss-wait { margin: 18px 0 0; font-size: 13px; color: #9a9188; }
.ss-a { margin-top: 16px; font-size: 15.5px; line-height: 1.5; color: var(--qf-ink); }
.ss-a p { margin: 0 0 9px; }
.ss-a b { font-weight: 600; }
.ss-a .ss-h { margin: 14px 0 8px; }
.ss-a .ss-li { display: flex; gap: 9px; margin: 0 0 7px 2px; font-size: 14.5px; line-height: 1.45; }
.ss-a .ss-li > span:first-child { color: #9a9188; }
.ss-a .cite { font-size: 11px; font-weight: 600; color: var(--qf-accent); white-space: nowrap; }
.ss-src { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--qf-accent); opacity: 0; }

.hm-tabbar { position: absolute; left: 0; bottom: 0; width: 402px; height: 96px; }

/* Longer steps where the phone has more to show */
.qf-step--long { height: 180vh; }
.qf-step--longer { height: 200vh; }

/* ── Light sections after the walkthrough, in the app's own paper and ink ── */
.qx-band { position: relative; width: 100vw; margin-left: calc(50% - 50vw); background: var(--qf-paper); color: var(--qf-ink); padding: 120px 0; }
.qx-wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.qx-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.qx-eyebrow { display: block; margin-bottom: 14px; font: 600 12.5px/1 var(--qf-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--qf-accent); }
.qx-h2 { margin: 0; font: 400 clamp(38px, 4.4vw, 60px)/1.04 var(--qf-serif); letter-spacing: -.03em; color: var(--qf-ink); }
.qx-lede { margin: 18px 0 0; font: 400 18px/1.55 var(--qf-sans); color: #6b6358; }
.qx-link { display: table; margin: 44px auto 0; font: 600 15px var(--qf-sans); color: var(--qf-accent); text-decoration: none; }
.qx-link:hover { text-decoration: underline; }

/* Every mark */
.qm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.qm-card { background: #fff; border-radius: 20px; padding: 14px 14px 26px; box-shadow: 0 1px 2px rgba(43, 39, 36, .05), 0 10px 30px rgba(43, 39, 36, .06); }
.qm-art { height: 220px; border-radius: 12px; background: #f7f3ec; padding: 18px; overflow: hidden; }
.qm-art img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.qm-card h3 { margin: 22px 12px 8px; font: 400 23px/1.2 var(--qf-serif); color: var(--qf-ink); }
.qm-card p { margin: 0 12px; font: 400 15.5px/1.55 var(--qf-sans); color: #6b6358; }

/* Time saved */
.qt { background: #f3efe7; }
.qt-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.qt-intro .qx-h2, .qt-intro .qx-lede { text-align: left; }
.qt-slider { display: block; margin-top: 40px; }
.qt-slider-top { display: flex; justify-content: space-between; align-items: baseline; font: 500 15px var(--qf-sans); color: #4a443b; }
.qt-slider-top b { font: 400 40px/1 var(--qf-serif); color: var(--qf-accent); }
.qt-slider input { width: 100%; margin: 16px 0 8px; accent-color: var(--qf-accent); height: 28px; cursor: pointer; }
.qt-per { display: block; margin-top: 14px; font: 400 14px var(--qf-sans); color: #6b6358; }
.qt-per b { font-weight: 600; color: var(--qf-ink); }
.qt-scale { display: flex; justify-content: space-between; font: 400 13px var(--qf-sans); color: #9a9188; }
.qt-card { background: #fff; border-radius: 22px; padding: 34px 34px 28px; box-shadow: 0 1px 2px rgba(43, 39, 36, .05), 0 14px 40px rgba(43, 39, 36, .08); }
.qt-big { margin: 0; font: 400 22px/1.2 var(--qf-serif); color: #4a443b; }
.qt-big b { display: block; font: 400 clamp(48px, 5vw, 68px)/1 var(--qf-serif); letter-spacing: -.03em; color: var(--qf-ink); margin-bottom: 6px; }
.qt-vs { margin: 8px 0 28px; font: 400 14.5px var(--qf-sans); color: #9a9188; }
.qt-rows { list-style: none; margin: 0; padding: 0; }
.qt-rows li { display: grid; grid-template-columns: 170px 1fr 74px; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid #f0ebe3; font: 400 14.5px var(--qf-sans); color: #4a443b; }
.qt-bar { height: 10px; border-radius: 5px; background: #f3efe7; overflow: hidden; }
.qt-bar i { display: block; height: 100%; border-radius: 5px; background: #d9cfc2; transition: width .25s ease; }
.qt-us .qt-name { font-weight: 600; color: var(--qf-accent); }
.qt-us .qt-bar i { background: var(--qf-accent); }
.qt-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--qf-ink); }
.qt-vs b { font-weight: 600; color: var(--qf-ink); }
/* What the rows below measure, said plainly above them: the headline is per year, the rows per month. */
.qt-head { margin: 0 0 6px; font: 600 12.5px/1 var(--qf-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--qf-accent); }
.qt-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #f0ebe3; font: 400 12.5px/1.55 var(--qf-sans); color: #9a9188; }

/* Pricing */
.qp-box { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.qp-detail { background: var(--qf-ink); color: var(--qf-paper); border-radius: 24px; padding: 40px 40px 36px; display: flex; flex-direction: column; }
.qp-pace { display: block; margin-top: 12px; font: 600 12.5px/1 var(--qf-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--qf-accent-soft); }
.qp-detail h3 { margin: 0; font: 400 44px/1.05 var(--qf-serif); letter-spacing: -.02em; color: #fff; }

.qp-list { list-style: none; margin: 26px 0 30px; padding: 0; }
.qp-list li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid rgba(251, 247, 242, .1); font: 400 15.5px/1.35 var(--qf-sans); color: rgba(251, 247, 242, .9); }
.qp-list li::before { content: "✓"; position: absolute; left: 2px; top: 9px; color: var(--qf-accent-soft); font-weight: 600; }
.qp-list b { color: #fff; font-weight: 600; }
.qp-list li.qp-out { color: rgba(251, 247, 242, .45); }
.qp-list li.qp-out::before { content: "✕"; color: rgba(251, 247, 242, .35); }
.qp-list small { display: block; margin-top: 3px; font: 400 13px/1.35 var(--qf-sans); color: rgba(251, 247, 242, .6); }
.qp-new { margin-left: 10px; padding: 3px 8px; border-radius: 10px; background: rgba(224, 138, 90, .22); color: var(--qf-accent-soft); font: 700 11px var(--qf-sans); font-style: normal; letter-spacing: .02em; vertical-align: 2px; }
.qp-fair { margin: -16px 0 22px; font: 400 13px/1 var(--qf-sans); color: rgba(251, 247, 242, .6); }
.qp-every-h { margin: 6px 0 4px; font: 600 12px/1 var(--qf-sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(251, 247, 242, .55); }
.qp-every { list-style: none; margin: 0 0 28px; padding: 0; }
.qp-every li { padding: 5px 0 5px 24px; position: relative; font: 400 14px/1.35 var(--qf-sans); color: rgba(251, 247, 242, .7); }
.qp-every li::before { content: "✓"; position: absolute; left: 2px; color: rgba(251, 247, 242, .45); }
.qp-cta { margin-top: auto; align-self: flex-start; padding: 15px 28px; border-radius: 14px; background: var(--qf-accent); color: #fff; text-decoration: none; font: 600 16px var(--qf-sans); }
.qp-cta:hover { background: #a8481a; }
.qp-plans { display: flex; flex-direction: column; gap: 14px; }
.qp-plan { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px 26px; border-radius: 20px; background: #fff; border: 1.5px solid #ede7dd; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.qp-plan:hover { border-color: #ddd4c6; }
.qp-plan input { position: absolute; opacity: 0; pointer-events: none; }
.qp-plan:has(input:checked) { border-color: var(--qf-accent); box-shadow: 0 0 0 4px rgba(192, 86, 33, .1), 0 10px 30px rgba(43, 39, 36, .08); }
.qp-plan:has(input:focus-visible) { outline: 2px solid var(--qf-accent); outline-offset: 3px; }
/* Two columns on a shared baseline: the name with the monthly price, then the allowance with the yearly price. */
.qp-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; align-content: center; column-gap: 20px; row-gap: 8px; }
.qp-name { display: flex; align-items: baseline; gap: 10px; }
.qp-name b { font: 400 28px/1 var(--qf-serif); color: var(--qf-ink); }
.qp-tag { align-self: center; padding: 4px 9px; border-radius: 10px; background: #f6e7d8; color: var(--qf-accent); font: 600 11.5px var(--qf-sans); }
.qp-price { justify-self: end; font: 600 22px/1 var(--qf-sans); color: var(--qf-ink); white-space: nowrap; }
.qp-price em { font-style: normal; font-weight: 400; font-size: 14px; color: #9a9188; }
.qp-year { justify-self: end; font: 400 13.5px var(--qf-sans); color: #9a9188; white-space: nowrap; }
.qp-plan-sub { font: 400 14.5px var(--qf-sans); color: #8b8279; }

@media (max-width: 900px) {
  .qx-band { padding: 80px 0; }
  .qx-wrap { width: calc(100% - 32px); }
  .qx-head { margin-bottom: 36px; }
  .qx-lede { font-size: 16.5px; }
  .qm-grid { grid-template-columns: 1fr; gap: 16px; }
  .qm-art { height: 190px; }
  .qt-wrap { grid-template-columns: 1fr; gap: 32px; }
  .qt-card { padding: 26px 20px 22px; }
  .qt-rows li { grid-template-columns: 1fr 64px; row-gap: 6px; }
  .qt-rows .qt-bar { grid-column: 1 / -1; grid-row: 2; }
  .qp-box { grid-template-columns: 1fr; }
  .qp-plans { order: -1; }
  .qp-detail { padding: 30px 24px 28px; }
  .qp-detail h3 { font-size: 36px; }
}
@media (min-width: 901px) and (max-width: 1100px) { .qm-grid { grid-template-columns: repeat(2, 1fr); } }

/* The old use-case wrapper still holds the FAQ; its rounded light top would show the dark page behind it. */
body.flow-page .sharing-chapter { background: var(--qf-paper); border-radius: 0; box-shadow: none; }

/* Footer: one flat dark band, logo and wordmark together. */
.qfoot { width: 100vw; margin-left: calc(50% - 50vw); background: #1b1816; color: #fbf7f2; padding: 40px 0 26px; font-family: var(--qf-sans); }
.qfoot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid rgba(251, 247, 242, .1); }
.qfoot-brand { display: inline-flex; align-items: center; gap: 10px; color: #fbf7f2; text-decoration: none; }
.qfoot-brand img { border-radius: 7px; }
.qfoot-word { font: 400 26px/1 var(--qf-serif); letter-spacing: -.01em; }
.qfoot-word span { color: var(--qf-accent-soft); }
.qfoot-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.qfoot a { color: rgba(251, 247, 242, .75); text-decoration: none; font-size: 14.5px; }
.qfoot a:hover { color: #fff; }
.qfoot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; font-size: 13px; color: rgba(251, 247, 242, .5); }
.qfoot-bottom p { margin: 0; }
.qfoot-bottom nav { display: flex; gap: 20px; }
.qfoot-bottom a { font-size: 13px; color: rgba(251, 247, 242, .55); }
@media (max-width: 700px) {
  .qfoot-top { flex-direction: column; align-items: flex-start; }
  .qfoot-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

.qf-step--review { height: 220vh; }

/* The pages slider gets its own card, so it reads as the thing to try. */
.qt-slider { background: #fff; border: 1px solid #ede7dd; border-radius: 20px; padding: 22px 24px 20px; box-shadow: 0 1px 2px rgba(43, 39, 36, .05), 0 12px 30px rgba(43, 39, 36, .07); }
.qt-slider input { margin-top: 14px; }
.qt-per { padding-top: 12px; border-top: 1px solid #f0ebe3; }

/* Time saved on the app's ink, to break up the run of cream sections; its two cards stay white. */
.qt { background: var(--qf-ink); }
.qt .qx-eyebrow { color: var(--qf-accent-soft); }
.qt .qx-h2 { color: var(--qf-paper); }
.qt .qx-lede { color: rgba(251, 247, 242, .72); }
.qt-slider, .qt-card { box-shadow: 0 18px 50px rgba(0, 0, 0, .35); border-color: transparent; }

/* Sections focused after a nav glide show no ring; only keyboard-focused controls do. */
[tabindex="-1"]:focus { outline: none; }

/* Keyword Search: the Smart Search screen after a tap on the tab bar's search key. Laid over the
   real screenshot in its points, keeping its status bar. */
.qf-step--smart { height: 300vh; }
.kw { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; background: #fbf8f2; opacity: 0; overflow: hidden; font-family: var(--qf-ui); }
.kw-title { margin: 14px 0 0 22px; font: 400 25px/1.1 var(--qf-serif); letter-spacing: -.01em; color: var(--qf-ink); }
.kw-field { display: flex; align-items: center; gap: 10px; margin: 20px 19px 0; height: 50px; padding: 0 18px; border-radius: 25px; background: #fff; border: 1px solid #ece6dc; overflow: hidden; }
.kw-field svg { flex: none; }
.kw-type { font: 400 16px var(--qf-ui); color: var(--qf-ink); white-space: nowrap; }
.kw-seg { display: flex; margin: 13px 19px 0; padding: 4px; border-radius: 12px; background: #f1ece3; font-size: 13.5px; color: var(--qf-muted); }
.kw-seg span { flex: 1; text-align: center; padding: 9px 0; border-radius: 9px; }
.kw-seg .on { background: #fff; color: var(--qf-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.kw-results { padding: 20px 19px 0; }
.kw-count { margin: 0 4px 20px; font-size: 12.5px; font-weight: 600; color: #8b8279; }
.kw-sec { margin: 0 0 11px 4px; }
.kw-card { position: relative; margin-bottom: 12px; padding: 14px 18px 14px 20px; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(43, 39, 36, .05), 0 6px 18px rgba(43, 39, 36, .05); }
.kw-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--spine, transparent); }
.kw-note { padding-left: 18px; }
.kw-card p { margin: 0; font: 400 15px/1.45 var(--qf-serif); color: var(--qf-ink); }
.kw-card small { display: block; margin-top: 7px; font-size: 11.5px; color: var(--qf-faint); }
.kw-results .kw-sec ~ .kw-sec { margin-top: 20px; }
.qs-shot .kw-bar { position: absolute; left: 0; top: 728px; width: 402px; height: 80px; }

/* ── Activity, as MeView lays it out (My Stats, then Friends) ── */
.qf-step--activity { height: 420vh; }
.qs-activity { overflow: hidden; }
.ac-in { position: relative; padding: 54px 20px 120px; }
.ac-status { position: absolute; left: 0; right: 0; top: 0; background: var(--qf-paper); z-index: 2; }
.ac-head { display: flex; justify-content: space-between; align-items: center; height: 50px; }
.ac-head h3 { margin: 0; font: 400 30px/1 var(--qf-serif); letter-spacing: -.01em; color: var(--qf-ink); }
.ac-help { width: 23px; height: 23px; border: 1.6px solid var(--qf-muted); border-radius: 50%; font: 500 14px/20px var(--qf-ui); font-style: normal; text-align: center; color: var(--qf-muted); }
.ac-seg { position: relative; display: flex; margin-top: 12px; height: 46px; padding: 4px; border-radius: 23px; background: #fff; font: 500 15.5px var(--qf-ui); color: var(--qf-muted); }
.ac-seg span { position: relative; flex: 1; display: grid; place-items: center; transition: color .2s; }
.ac-seg span.on { color: #fff; font-weight: 600; }
.ac-thumb { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 19px; background: var(--qf-accent); }
.ac-page { margin-top: 16px; }
.ac-friends { position: absolute; left: 20px; right: 20px; top: 178px; margin: 0; opacity: 0; }
.ac-streak { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px; border-radius: 22px; background: #f3eee6; }
.ac-streak b { flex: 1; font: 400 23px/1 var(--qf-serif); color: var(--qf-ink); }
.ac-streak em { font: 600 13px/30px var(--qf-ui); font-style: normal; padding: 0 12px; border-radius: 15px; background: #fff; color: var(--qf-muted); }
.ac-sec { display: flex; align-items: baseline; gap: 8px; margin: 26px 4px 12px; }
.ac-sec b { font: 400 24px/1 var(--qf-serif); color: var(--qf-ink); }
.ac-edit { font: 600 14px var(--qf-ui); color: var(--qf-accent); }
.ac-trail { margin-left: auto; font: 400 14px var(--qf-ui); color: var(--qf-muted); }
.ac-quick { margin-left: auto; padding: 7px 12px; border-radius: 16px; background: rgba(192, 86, 33, .12); font: 600 13px var(--qf-ui); color: var(--qf-accent); }
.ac-card { background: #fff; border-radius: 22px; padding: 18px; }
.ac-row { display: flex; justify-content: space-between; font: 400 20px/1 var(--qf-serif); color: var(--qf-ink); font-variant-numeric: tabular-nums; }
.ac-goal small { display: block; margin-top: 10px; font: 400 13px var(--qf-ui); color: var(--qf-muted); }
.ac-bar { height: 9px; margin-top: 12px; border-radius: 5px; background: #f6e6dc; overflow: hidden; }
.ac-bar i { display: block; height: 100%; border-radius: 5px; background: var(--qf-accent); }
.ac-grow { width: calc(var(--w) * var(--p, 1)); }
.ac-books-bar { display: flex; gap: 7px; margin-top: 12px; }
.ac-books-bar i { flex: 1; height: 9px; border-radius: 5px; background: #f8ecd6; overflow: hidden; position: relative; }
.ac-books-bar i.ac-grow { width: auto; background: linear-gradient(90deg, #e0a21a calc(var(--p, 1) * 100%), #f8ecd6 0); }
.ac-rule { display: block; height: 1px; margin: 18px 0; background: #f0ebe3; }
.ac-week { padding-top: 26px; }
.ac-chart { position: relative; display: flex; align-items: flex-end; gap: 9px; height: 112px; }
.ac-pace { position: absolute; left: 0; right: 0; bottom: calc(18 / 30 * 92px); border-top: 1.5px dashed #a9c3ad; }
.ac-chart span { position: relative; flex: 1; height: max(3px, calc(var(--h) / 30 * 92px * var(--p, 1))); border-radius: 7px; background: #efeae2; }
.ac-chart span.ok { background: #86a98a; }
.ac-chart span.today { background: var(--qf-accent); }
.ac-chart b { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 5px; text-align: center; font: 600 11.5px var(--qf-ui); color: var(--qf-muted); opacity: var(--p, 1); }
.ac-days { display: flex; gap: 9px; margin-top: 10px; font: 500 12px var(--qf-ui); color: var(--qf-muted); }
.ac-days span { flex: 1; text-align: center; }
.ac-days .today { color: var(--qf-accent); font-weight: 700; }
.ac-legend { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font: 400 11px var(--qf-ui); color: var(--qf-muted); }
.ac-legend i { width: 8px; height: 8px; border-radius: 50%; background: #86a98a; }
.ac-panel { padding: 22px 20px 20px; border-radius: 26px; background: #f3eee6; }
.ac-mono { display: flex; align-items: center; gap: 9px; margin: 0; font: 500 11.5px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--qf-accent); }
.ac-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.ac-tiles div { background: #fff; border-radius: 18px; padding: 14px 12px 14px; }
.ac-tiles b { display: block; margin-top: 8px; font: 400 32px/1 var(--qf-serif); color: var(--qf-ink); }
.ac-tiles small { display: block; margin-top: 8px; font: 400 12px/1.3 var(--qf-ui); color: var(--qf-muted); }
.ac-ico { display: block; height: 18px; font: 700 13px/18px var(--qf-ui); font-style: normal; letter-spacing: -2px; }
.ac-seal { width: 18px; border-radius: 50%; background: #86a98a; color: #fff; letter-spacing: 0; text-align: center; font-size: 11px; }
.ac-lately { margin: 18px 0 10px; font: 600 14px var(--qf-ui); color: var(--qf-muted); }
.ac-reading { display: flex; gap: 10px; width: 440px; }
.ac-reading div { position: relative; flex: 0 0 140px; padding: 11px 10px 11px 24px; border-radius: 14px; background: #fff; }
.ac-reading div::before { content: ""; position: absolute; left: 11px; top: 11px; bottom: 11px; width: 3px; border-radius: 2px; background: var(--spine); }
.ac-reading b { display: block; font: 400 15px/1.1 var(--qf-serif); color: var(--qf-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-reading small { display: block; margin-top: 4px; font: 400 12px var(--qf-ui); color: var(--qf-muted); }
.ac-panel { overflow: hidden; }
.ac-chhead { display: flex; align-items: center; margin: 24px 0 14px 4px; }
.ac-chhead .mono { font-size: 12px; }
.ac-invite { padding: 18px; border-radius: 22px; background: #f3eee6; }
.ac-inv-top, .ac-g-top { display: flex; align-items: center; gap: 12px; }
.ac-inv-top b { display: block; font: 600 15px/1.2 var(--qf-ui); color: var(--qf-ink); }
.ac-inv-top small { display: block; margin-top: 3px; font: 400 13px/1.35 var(--qf-ui); color: var(--qf-muted); }
.ac-flag { flex: 0 0 38px; height: 38px; border-radius: 50%; background: #f1dfd3; color: var(--qf-accent); display: grid; place-items: center; font: 600 17px var(--qf-ui); font-style: normal; }
.ac-inv-btns { display: flex; gap: 10px; margin-top: 14px; }
.ac-inv-btns span { flex: 1; height: 40px; border-radius: 20px; background: #fff; display: grid; place-items: center; font: 600 15px var(--qf-ui); color: var(--qf-muted); }
.ac-inv-btns .on { background: var(--qf-accent); color: #fff; }
.ac-group { margin-top: 14px; }
.ac-g-top div { flex: 1; }
.ac-g-top b { display: block; font: 400 21px/1.1 var(--qf-serif); color: var(--qf-ink); }
.ac-g-top small { display: block; margin-top: 2px; font: 400 13.5px var(--qf-ui); color: var(--qf-muted); }
.ac-people { font-size: 8px; letter-spacing: 1px; }
.ac-more { color: var(--qf-muted); letter-spacing: 1px; font-size: 11px; }
.ac-board { list-style: none; margin: 14px 0 0; padding: 0; }
.ac-board li { display: grid; grid-template-columns: 34px 1fr auto; grid-template-rows: auto 8px; row-gap: 7px; align-items: center; padding: 6px 0; font: 400 15px var(--qf-ui); color: var(--qf-ink); }
.ac-board em { grid-row: 1 / 3; width: 23px; height: 23px; border-radius: 50%; background: #f3eee6; display: grid; place-items: center; font: 600 11.5px var(--qf-ui); font-style: normal; color: var(--qf-muted); }
.ac-board em.first { background: var(--qf-accent); color: #fff; }
.ac-board small { font: 400 13.5px var(--qf-ui); color: var(--qf-muted); font-variant-numeric: tabular-nums; }
.ac-board li::after { content: ""; grid-column: 2 / 4; grid-row: 2; height: 6px; border-radius: 3px; background: #f3eee6; }
.ac-board li i { grid-column: 2 / 4; grid-row: 2; z-index: 1; height: 6px; border-radius: 3px; background: var(--c); justify-self: start; }
.ac-g-foot { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #f0ebe3; font: 400 13px var(--qf-ui); color: var(--qf-muted); }

/* ── Goal reached, as GoalCelebrationOverlay lays it over Activity ── */
.gc { position: absolute; inset: 0; z-index: 4; background: rgba(0, 0, 0, .32); opacity: 0; visibility: hidden; display: grid; place-items: center; }
.gc-card { width: 346px; padding: 30px 26px 24px; border-radius: 28px; background: #fff; border: 1px solid #ede7dd; text-align: center; transform: scale(calc(.9 + .1 * var(--p, 1))); }
.gc-badge { position: relative; width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background: rgba(192, 86, 33, .14); display: grid; place-items: center; transform: scale(calc(.6 + .4 * var(--p, 1))); }
.gc-badge i { width: 66px; height: 66px; border-radius: 50%; background: var(--qf-accent); display: grid; place-items: center; }
.gc h4 { margin: 0; font: 400 25px/1.15 var(--qf-serif); color: var(--qf-ink); }
.gc-num { display: block; margin-top: 10px; font: 400 64px/1 var(--qf-serif); color: var(--qf-accent); }
.gc-unit { display: block; margin-top: 6px; font: 600 15px var(--qf-ui); color: var(--qf-muted); }
.gc p { margin: 14px 8px 0; font: 400 13px/1.4 var(--qf-ui); color: #a79c88; }
.gc-btn { display: block; margin-top: 18px; padding: 13px; border-radius: 16px; border: 1px solid #ede7dd; font: 600 15px var(--qf-ui); color: var(--qf-accent); }
/* Over the congratulation, so the tap on Keep going shows. */
.tap-keep { z-index: 5; }
.gc-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gc-confetti i { position: absolute; top: -20px; border-radius: 2px; }

.qf-step--book { height: 200vh; }
.qs-splash { z-index: 6; }
.sp-tagcover { position: absolute; left: 84px; top: 550px; width: 234px; height: 30px; background: #fbf8f2; }
/* flow.js moves the typed letters into the b; the rest wait, unseen, in the i, so the line stays centered. */
.sp-tag { position: absolute; left: 0; right: 0; top: 556px; padding-left: .2em; text-align: center; white-space: nowrap; font: 500 12.5px/18px var(--qf-ui); letter-spacing: .2em; text-transform: uppercase; color: #75726c; }
.sp-tag b { font-weight: inherit; }
.sp-title { position: absolute; left: 24px; right: 24px; top: 196px; margin: 0; text-align: center; font: 400 31px/1.12 var(--qf-serif); letter-spacing: -.02em; color: var(--qf-ink); opacity: 0; }
.sp-cta {
  position: absolute; left: 50%; top: 640px; transform: translateX(-50%); padding: 15px 30px; border-radius: 16px;
  background: var(--qf-accent); color: #fff; font: 600 17px/1 var(--qf-ui); white-space: nowrap; cursor: pointer;
  box-shadow: 0 8px 22px rgba(192, 86, 33, .28); opacity: 0; visibility: hidden;
}
.sp-tag i { font-style: normal; visibility: hidden; }
.sp-cover { position: absolute; left: 172px; top: 776px; width: 58px; height: 14px; background: #fbf8f2; }
/* Two halves of the line; flow.js sets --m from 0 (the line) to 1 (a down arrow) and moves it with top. */
.sp-arrow { position: absolute; left: 50%; top: 783px; width: 45px; height: 2px; margin: -1px 0 0 -22.5px; }
.sp-arrow b { position: absolute; top: 0; width: 23.5px; height: 2px; border-radius: 1px; background: var(--qf-accent); }
.sp-arrow b:first-of-type { left: 0; transform-origin: 22.5px 1px; transform: rotate(calc(var(--m, 0) * 38deg)); }
.sp-arrow b:last-of-type { right: 0; transform-origin: 1px 1px; transform: rotate(calc(var(--m, 0) * -38deg)); }
/* "Learn more" comes up over the arrow as the line folds into it, in the arrow's color. */
.sp-arrow span {
  position: absolute; left: 50%; bottom: 26px; white-space: nowrap; font: 600 12px/1 var(--qf-ui); letter-spacing: .2em;
  text-transform: uppercase; color: var(--qf-accent);
  opacity: var(--m, 0); transform: translate(-50%, calc((1 - var(--m, 0)) * 6px));
}
.sp-arrow.bob { animation: sp-bob 1.6s ease-in-out infinite; }
@keyframes sp-bob { 50% { transform: translateY(7px); } }

/* Download buttons while the app isn't out: same look, nothing to click. */
[data-soon] { cursor: default; }
/* Phones: the menu is Features, Pricing and the early-access button; FAQ stays in the footer and the page. */
@media (max-width: 820px) {
  .qf-links { gap: 18px; }
  .qf-links a[data-section="faq"] { display: none; }
}

/* Friends, under the challenges: FriendCardView, one per friend */
.ac-fcard { margin-bottom: 14px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid #ede7dd; }
.ac-f-top { display: flex; align-items: center; gap: 14px; }
.ac-f-top div { flex: 1; }
.ac-f-top b { display: block; font: 400 21px/1.1 var(--qf-serif); color: var(--qf-ink); }
.ac-f-top small { display: block; margin-top: 2px; font: 400 12px var(--qf-ui); color: #b3a99d; }
.ac-av { flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 400 18px var(--qf-serif); font-style: normal; color: #fff; }
.ac-flame { display: flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 16px; background: rgba(192, 86, 33, .12); font: 700 15px var(--qf-ui); color: var(--qf-accent); }
.ac-f-stats { display: flex; gap: 8px; margin-top: 18px; text-align: center; }
.ac-f-stats div { flex: 1; }
.ac-f-stats i { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); font: 700 13px var(--qf-ui); font-style: normal; }
.ac-f-stats b { display: block; margin-top: 6px; font: 400 22px/1 var(--qf-serif); color: var(--qf-ink); }
.ac-f-stats small { display: block; margin-top: 6px; font: 400 11px var(--qf-ui); color: var(--qf-muted); }
.ac-f-goal { display: flex; justify-content: space-between; margin-top: 18px; font: 400 12px var(--qf-ui); color: var(--qf-muted); }
.ac-f-goal span:first-child { font-weight: 600; }
.ac-f-bar { height: 8px; margin-top: 6px; border-radius: 4px; background: rgba(192, 86, 33, .14); overflow: hidden; }
.ac-f-bar i { display: block; height: 100%; border-radius: 4px; }
.ac-f-line { margin: 16px 0 0; font: 400 14px var(--qf-serif); color: var(--qf-ink); }
.ac-f-line span { font: 600 13px var(--qf-ui); color: var(--qf-muted); }
/* The caret sits right after the typed word, not a flex gap away. */
.kw-field .ss-caret { margin-left: -9px; }
/* Smart Search's screenshot carries its own 09:41 clock; the same status bar as every other screen covers it. */
.ss-status { background: #fbf8f2; z-index: 5; }
/* Chapter and Home screenshots sit on a slightly darker paper */
.sh-status { background: #f3f0e8; }

/* Early access form */
[data-early-access] { cursor: pointer; }
.ea { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(43, 39, 36, .55); }
.ea[hidden] { display: none; }
.ea-card { position: relative; width: min(100%, 400px); background: #fbf7f2; color: #2b2724; border: 1px solid #ede7dd; border-radius: 20px; padding: 30px 26px 24px; box-shadow: 0 20px 60px rgba(43, 39, 36, .25); }
.ea-card h2 { margin: 0 0 6px; font: 400 28px/1.1 Georgia, serif; letter-spacing: -.02em; }
.ea-sub { margin: 0 0 18px; color: #665f56; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.ea-form { display: grid; gap: 10px; }
.ea-input { font: 16px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding: 14px; border: 1px solid #ede7dd; border-radius: 12px; background: #fff; color: #2b2724; }
.ea-input:focus { outline: 2px solid #c05621; outline-offset: 1px; }
.ea-send { font: 600 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #c05621; color: #fff; border: 0; border-radius: 12px; padding: 15px; cursor: pointer; }
.ea-send:disabled { opacity: .6; cursor: default; }
.ea-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ea-note { margin: 12px 0 0; min-height: 1.2em; font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.ea-bad { color: #b0402a; } .ea-good { color: #2f6b3c; }
.ea-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; background: none; font-size: 26px; line-height: 1; color: #8b8279; cursor: pointer; }
html.ea-open { overflow: hidden; }

/* ── Step 6: the library on an iPad and a laptop, the phone in front. Built at the devices' own
   sizes (iPad 1210×834 points, laptop 1440×900) and placed and scaled as one group by flow.js. ── */
.qf-step--devices { height: 200vh; }
.qf-devices { position: absolute; left: 0; top: 0; z-index: 2; transform-origin: 0 0; visibility: hidden; pointer-events: none; }
.qf-devices > div { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.dv-laptop { width: 1720px; height: 974px; }
.dv-lid {
  position: absolute; left: 120px; top: 0; width: 1480px; height: 940px; box-sizing: border-box; padding: 20px;
  border-radius: 38px 38px 8px 8px; background: #121110;
  box-shadow: 0 0 0 3px #8e8c8a, 0 0 0 5px #4a4744, 0 70px 120px -30px rgba(0, 0, 0, .7);
}
.dv-base {
  position: absolute; left: 0; top: 940px; width: 1720px; height: 34px; border-radius: 4px 4px 40px 40px / 4px 4px 34px 34px;
  background: linear-gradient(#e2e1df, #b7b5b2 55%, #85837f); box-shadow: 0 40px 70px -20px rgba(0, 0, 0, .7);
}
.dv-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 250px; height: 12px; margin-left: -125px; border-radius: 0 0 14px 14px; background: linear-gradient(#9d9b97, #c9c7c4); }
.dv-ipad {
  width: 1262px; height: 886px; box-sizing: border-box; padding: 26px; border-radius: 56px; background: #161413;
  box-shadow: inset 0 0 0 2px #3a3633, 0 0 0 3px #6b655f, 0 60px 110px -26px rgba(0, 0, 0, .75);
}
.dv-screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #f3efe7; color: var(--qf-ink); font-family: var(--qf-ui); }
.dv-ipad .dv-screen { border-radius: 30px; }
.dv-lid .dv-screen { border-radius: 14px 14px 2px 2px; }
.dv-status { display: flex; justify-content: space-between; align-items: center; height: 32px; padding: 0 26px; font: 600 15px var(--qf-ui); }
.dv-batt { width: 27px; height: 13px; border: 1.5px solid currentColor; border-radius: 4px; padding: 1.5px; box-sizing: border-box; }
.dv-batt i { display: block; width: 80%; height: 100%; border-radius: 1.5px; background: currentColor; }
.dv-menubar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 18px; background: #e8e2d8; font: 500 14px var(--qf-ui); color: #2b2724; }
.dv-menubar span { display: flex; align-items: center; gap: 20px; }
.dv-menubar b { font-weight: 700; }
.lib { position: absolute; left: 0; right: 0; top: 32px; bottom: 0; display: grid; grid-template-columns: 228px minmax(0, 1fr) 410px; padding: 4px 18px 16px 0; }
.dv-lid .lib { top: 30px; grid-template-columns: 250px minmax(0, 1fr) 440px; padding-top: 14px; }
.lib-side { position: relative; padding: 20px 16px 0 20px; }
.lib-brand { display: flex; align-items: center; gap: 12px; margin: 6px 0 34px 6px; }
.lib-mark { width: 28px; height: 36px; background: var(--qf-accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.lib-brand b { font: 400 44px/1 var(--qf-serif); letter-spacing: -.02em; }
.lib-brand b span { color: var(--qf-accent); }
.lib-side nav { display: grid; gap: 6px; }
.lib-side nav span, .lib-set { display: flex; align-items: center; gap: 14px; white-space: nowrap; height: 50px; padding: 0 16px; border-radius: 25px; font: 400 18px var(--qf-ui); color: #6f675e; }
.lib-side nav span.on { background: #fbf8f2; color: var(--qf-accent); font-weight: 500; }
.lib-side svg { width: 26px; height: 26px; flex: none; }
.lib-set { position: absolute; left: 20px; bottom: 22px; }
.lib-main { padding: 18px; border-radius: 30px; background: #fff; overflow: hidden; }
.lib-seg { display: flex; padding: 4px; border-radius: 16px; background: #f0ebe3; width: 92%; }
.lib-seg span { flex: 1; height: 48px; border-radius: 12px; text-align: center; font: 400 17px/48px var(--qf-ui); color: #7d746a; }
.lib-seg span.on { background: var(--qf-accent); color: #fff; font-weight: 500; }
.lib-find { display: flex; align-items: center; gap: 12px; height: 54px; margin-top: 30px; padding: 0 20px; border-radius: 16px; background: #f3efe7; font: 400 18px var(--qf-ui); color: #a79c88; }
.lib-find svg { width: 22px; height: 22px; }
.lib-head { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.lib-head b { font: 600 19px var(--qf-ui); }
.lib-gl { display: flex; padding: 3px; border-radius: 12px; background: #f3efe7; }
.lib-gl i { padding: 7px 16px; border-radius: 9px; font: 500 15px var(--qf-ui); font-style: normal; color: #a79c88; }
.lib-gl i.on { background: #fff; color: var(--qf-ink); font-weight: 600; }
.lib-total { margin: 8px 0 18px; font: 400 15px var(--qf-ui); color: var(--qf-muted); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, 150px); gap: 22px 28px; }
.lib-grid figure { margin: 0; }
.lib-grid figcaption { margin-top: 10px; font: 400 15px var(--qf-ui); color: var(--qf-muted); }
.cv { position: relative; height: 225px; border-radius: 9px; overflow: hidden; background: var(--c, #6b5a3c); box-sizing: border-box; padding: 92px 14px 0; color: #f4ecdc; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.cv small { display: block; font: 500 9.5px var(--qf-ui); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.cv b { display: block; margin-top: 6px; font: 400 21px/1.08 var(--qf-serif); }
.cv-img { padding: 0; background: #f4f1ec; }
.cv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-right { padding: 18px 4px 0 24px; overflow: hidden; }
.lib-fav-k { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 15px var(--qf-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--qf-accent); }
.lib-fav-k svg { width: 22px; height: 22px; }
.lib-fav-k span { margin-left: auto; font-weight: 400; letter-spacing: 0; text-transform: none; color: #a79c88; }
.lib-fav { margin: 14px 0 0; font: italic 400 25px/1.3 var(--qf-serif); color: #3a342e; }
.lib-src { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font: 400 16px var(--qf-ui); color: var(--qf-muted); }
.lib-src i { width: 4px; height: 20px; border-radius: 2px; background: var(--qf-accent); }
.lib-card { margin-top: 22px; padding: 24px 26px 20px; border-radius: 26px; background: #fff; }
.lib-card h5, .lib-l30 { margin: 0; font: 400 30px/1.1 var(--qf-serif); color: var(--qf-ink); }
.lib-streak { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.lib-streak svg { width: 38px; height: 38px; flex: none; }
.lib-streak b { display: block; font: 400 28px/1.1 var(--qf-serif); }
.lib-streak small { display: block; margin-top: 4px; font: 400 15px var(--qf-ui); color: var(--qf-muted); }
.lib-ped { margin: 22px 0 0; font: 600 16px var(--qf-ui); }
.lib-chart { display: flex; align-items: flex-end; gap: 16px; height: 140px; margin-top: 10px; }
.lib-chart span { position: relative; flex: 1; height: max(4px, calc(var(--h) / 30 * 110px)); border-radius: 8px; background: #efeae2; }
.lib-chart span.ok { background: #86a98a; }
.lib-chart span.today { background: var(--qf-accent); }
.lib-chart b { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 6px; text-align: center; font: 600 14px var(--qf-ui); color: var(--qf-muted); }
.lib-days { display: flex; gap: 16px; margin-top: 12px; }
.lib-days span { flex: 1; text-align: center; font: 500 15px var(--qf-ui); color: var(--qf-muted); }
.lib-days span.today { color: var(--qf-accent); font-weight: 700; }
.lib-view { margin: 22px 0 0; font: 600 18px var(--qf-ui); color: var(--qf-accent); }
.lib-l30 { margin-top: 30px; font-size: 28px; }
.lib-tiles { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border-radius: 22px; background: #fff; }
.lib-tiles div { padding: 18px 20px; }
.lib-tiles div:nth-child(-n+2) { border-bottom: 1px solid #f0ebe3; }
.lib-tiles i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font: 700 13px var(--qf-ui); font-style: normal; }
.lib-tiles b { display: block; margin-top: 10px; font: 400 36px/1 var(--qf-serif); }
.lib-tiles small { display: block; margin-top: 6px; font: 400 15px var(--qf-ui); color: var(--qf-muted); }
/* The Mac app's window controls, in the sidebar's corner. */
.lib-lights { position: absolute; left: 22px; top: 4px; display: flex; gap: 9px; }
.lib-lights i { width: 13px; height: 13px; border-radius: 50%; background: #ec6a5e; }
.lib-lights i + i { background: #f4bf4f; }
.lib-lights i + i + i { background: #61c554; }
.dv-lid .lib-brand { margin-top: 30px; }

/* Home on the phone: the app's own top and tab bar, with the six books between. */
.qs-lib { background: #fff; }
.hm-top { position: absolute; left: 0; top: 0; width: 402px; height: 395px; display: block; }
.hm-lib { position: absolute; left: 0; right: 0; top: 395px; bottom: 0; padding: 7px 22px 0; background: #fff; overflow: hidden; }
.hm-head { display: flex; justify-content: space-between; align-items: center; }
.hm-head b { font: 600 17px var(--qf-ui); color: var(--qf-ink); }
.hm-head .lib-gl i { padding: 6px 13px; font-size: 13.5px; }
.hm-total { margin: 6px 0 12px; font: 400 13.5px var(--qf-ui); color: var(--qf-muted); }
.hm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.hm-grid figure { margin: 0; }
.hm-grid .cv { height: 252px; padding-top: 104px; }
.hm-grid .cv-img { padding: 0; }
.hm-grid figcaption { margin-top: 8px; font: 400 13.5px var(--qf-ui); color: var(--qf-muted); }
.hm-tab { position: absolute; left: 0; bottom: 0; width: 402px; height: 94px; display: block; }
.lib-brand img { width: 128px; height: 38px; display: block; }

/* Phones: the name and both prices up top, the allowance across the whole card below. */
@media (max-width: 520px) {
  .qp-plan { grid-template-areas: "name price" ". year" "sub sub"; row-gap: 4px; padding: 20px 22px; }
  .qp-name { grid-area: name; } .qp-price { grid-area: price; } .qp-year { grid-area: year; }
  .qp-plan-sub { grid-area: sub; margin-top: 8px; font-size: 14px; }
}

/* The line under the plans: smaller, and centred. */
.qx-lede.qp-free { font-size: 14px; line-height: 1.5; text-align: center; margin-left: auto; margin-right: auto; }
