/* Product pages: a screenshot hero, a piece of the product to try, and the facts.
   Loaded only on the product pages, after site.css. */

:root {
  --app-bg: #f4f5f1;
  --app-line: #dfe3dc;
  --app-ink: #1a221e;
  --app-muted: #66706a;
  --app-amber: #b8882f;
  --app-red: #a3372b;
}

/* ---------- Hero with the real screens ---------- */
.phero { padding: 2.5rem 0 0; overflow: hidden; }
.phero-grid { display: grid; gap: 2rem; }
.phero-copy { padding-bottom: 2.5rem; }
.phero-copy h1 { max-width: 16ch; }
/* An app's own icon beside its name, the way a store lists it */
.app-title { display: flex; align-items: center; gap: 0.8rem; }
.app-mark { flex: none; width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.12); }
@media (min-width: 880px) { .app-mark { width: 64px; height: 64px; border-radius: 15px; } }
.phero-copy .lede { max-width: 54ch; }
.phero-copy .product-hero-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.phero-shots { position: relative; align-self: end; padding-right: 10%; }
.frame { border-radius: 10px 10px 0 0; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.frame img { display: block; width: 100%; height: auto; }
.frame-phone { position: absolute; right: 0; bottom: 0; width: 24%; min-width: 96px; border-radius: 14px; border: 4px solid #10151b; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45); background: #fff; }
@media (min-width: 880px) {
  .phero { padding-top: 3.5rem; }
  .phero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; align-items: end; }
  .phero-copy { padding-bottom: 3.5rem; }
  .phero-shots { padding-right: 12%; }
}
.phero.band-dark::after { display: none; }
.phero-rule { height: 3px; background: linear-gradient(90deg, var(--sky-500), var(--sky-300) 40%, var(--sky-500)); }

/* ---------- The video ---------- */
.watch { padding-bottom: 0; }
.watch .section-head { max-width: 58ch; }
.watch-frame { border-radius: 12px; overflow: hidden; background: #1d0f34; box-shadow: 0 24px 60px rgba(10, 16, 24, 0.28), 0 0 0 1px rgba(10, 16, 24, 0.08); }
.watch-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.watch-frame.watch-safe { background: #061a2b; }

/* ---------- Try a piece of it ---------- */
.try-section { padding: 3rem 0; }
@media (min-width: 880px) { .try-section { padding: 4rem 0; } }
.demo { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .demo { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3rem; align-items: start; } }
.demo-copy .eyebrow { margin-bottom: 0.4rem; }
.demo-copy h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 0.6rem; }
.demo-copy p { color: var(--ink-2); max-width: 46ch; }
.demo-copy .actions { margin-top: 1.1rem; }

.panel { background: var(--surface); border: 1px solid var(--stone-200); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 1rem; background: var(--steel-900); color: var(--text-on-dark); font-size: 0.85rem; font-weight: 600; }
.panel-head .muted { color: var(--muted-on-dark); font-weight: 500; }
.panel-body { padding: 1rem 1.1rem 1.2rem; }

/* Light sliders */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue-600) var(--fill, 0%), var(--stone-300) var(--fill, 0%)); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--stone-300); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--blue-600); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--blue-600); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--blue-600); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--blue-600); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--blue-600); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(42, 120, 194, 0.35); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(42, 120, 194, 0.35); }

/* Slider panel for the demos */
.demo-controls { display: grid; gap: 0.9rem; }
.demo-controls label { display: block; font-size: 0.85rem; font-weight: 600; }
.demo-controls .val { float: right; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* IntelliSafe before and after */
.compare { position: relative; aspect-ratio: 16 / 10; min-height: 300px; background: var(--stone-100); user-select: none; overflow: hidden; }
.compare > .pane { position: absolute; inset: 0; overflow: hidden; }
.compare > .pane.after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.compare .pane-label { position: absolute; top: 10px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25em 0.6em; border-radius: 999px; z-index: 2; }
.compare .pane.before .pane-label { left: 10px; background: #e9e4d6; color: #5e5340; }
.compare .pane.after .pane-label { right: 10px; background: var(--blue-700); color: #fff; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; background: var(--sky-400); transform: translateX(-1px); pointer-events: none; z-index: 3; }
.compare .handle::after {
  content: "\2039\00a0\203a"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--sky-400); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.compare .cut { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.compare .cut:focus-visible + .handle { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.compare-ends { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.82rem; color: var(--muted); padding: 0.6rem 1rem 0.8rem; }
.compare-ends span:last-child { text-align: right; }
.binder { position: absolute; inset: 0; background: #d9d3c4; display: flex; align-items: center; justify-content: center; }
.binder svg { width: 86%; max-height: 92%; height: auto; }
.matrix { position: absolute; inset: 0; background: var(--app-bg); padding: 40px 14px 14px; font-family: var(--font-body); font-size: 11px; color: var(--app-ink); }
.matrix .w { height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: #fff; border: 1px solid var(--app-line); border-radius: 8px; padding: 8px 9px; min-width: 0; }
.matrix .w h3 { font-family: var(--font-body); font-size: 11px; font-weight: 600; margin: 0 0 6px; display: flex; justify-content: space-between; gap: 6px; }
.matrix .w h3 small { font-weight: 500; color: var(--app-muted); }
.matrix table { width: 100%; border-collapse: collapse; font-size: 11px; background: transparent; }
.matrix th, .matrix td { padding: 4px 3px; border-bottom: 1px solid var(--app-line); text-align: center; }
.matrix th { background: transparent; font-size: 10px; color: var(--app-muted); font-weight: 600; }
.matrix th:first-child, .matrix td:first-child { text-align: left; white-space: nowrap; }
.matrix td i { display: inline-block; width: 16px; height: 16px; border-radius: 3px; background: #dff0e6; }
.matrix td i.due { background: #f7efdc; }
.matrix td i.late { background: #f6e1de; }
.matrix .foot { display: flex; gap: 0.5rem; align-items: center; font-size: 10px; color: var(--app-muted); padding-top: 6px; flex-wrap: wrap; }
.matrix .pill { font-size: 9px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--stone-100); color: var(--app-muted); }
.matrix .pill.ok { background: #dff0e6; color: var(--ok-ink); }
.matrix .pill.warn { background: #f7efdc; color: var(--warn-ink); }
.matrix .pill.bad { background: #f6e1de; color: var(--app-red); }
@media (max-width: 560px) {
  .matrix { padding: 40px 8px 8px; }
  .matrix th:nth-child(n+5), .matrix td:nth-child(n+5) { display: none; }
  .matrix .foot span:last-child { display: none; }
}

/* Part 107 demo */
.q-grid { display: grid; gap: 1.25rem; }
@media (min-width: 680px) { .q-grid { grid-template-columns: minmax(0, 1fr) 150px; } }
.q-cat { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 0.4rem; }
.q-text { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin: 0 0 0.9rem; }
.q-opts { display: grid; gap: 0.5rem; }
.q-opt { font: inherit; text-align: left; padding: 0.7em 0.9em; border-radius: var(--radius); border: 1.5px solid var(--stone-300); background: var(--surface); cursor: pointer; color: var(--ink); transition: border-color 0.15s ease, background-color 0.15s ease; }
.q-opt:hover { border-color: var(--blue-500); }
.q-opt[disabled] { cursor: default; }
.q-opt.right { border-color: var(--ok); background: #dff0e6; }
.q-opt.wrong { border-color: var(--app-red); background: #f6e1de; }
.q-explain { margin-top: 0.9rem; padding: 0.8rem 0.95rem; background: var(--stone-100); border-left: 3px solid var(--sky-500); border-radius: 4px; font-size: 0.92rem; }
.q-explain .ref { display: block; margin-top: 0.3rem; font-size: 0.8rem; color: var(--muted); }
.q-next { margin-top: 0.8rem; }
.goal { text-align: center; }
.goal svg { width: 120px; height: 120px; }
.goal .n { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.goal .l { font-size: 0.8rem; color: var(--muted); }
.goal .streak { margin-top: 0.4rem; font-size: 0.82rem; }

/* ---------- What it does ---------- */
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.feat-grid li { margin: 0; background: var(--surface); border: 1px solid var(--stone-200); border-top: 3px solid var(--blue-600); border-radius: var(--radius); padding: 1rem 1.1rem; }
.feat-grid strong { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem; }
.feat-grid span { color: var(--ink-2); font-size: 0.97rem; }
/* On phones the feature cards swipe sideways (class swipe swipe-640; row styles in site.css) */
@media (max-width: 639px) { .feat-grid.swipe + .swipe-dots { margin-top: 0; } }
.more { margin-top: 1.75rem; border-top: 1px solid var(--stone-300); }
.more summary { cursor: pointer; font-weight: 600; padding: 0.9rem 0; color: var(--blue-700); list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1.5px solid var(--blue-600); font-size: 1rem; line-height: 1; }
.more[open] summary::before { content: "\2212"; }
.more .prose { padding-bottom: 1rem; }
.more .prose h3 { margin-top: 1.5rem; }
.more .prose h3:first-child { margin-top: 0.5rem; }

/* ---------- Screens ---------- */
.screens-grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .screens-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.screens-grid figure { margin: 0; display: grid; gap: 0.5rem; align-content: start; }
.screens-grid img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--stone-300); box-shadow: var(--shadow); background: #fff; }
.screens-grid figure.tall img { max-width: 220px; margin: 0 auto; border-radius: 18px; border: 4px solid #10151b; }
.screens-grid figcaption { font-size: 0.9rem; color: var(--ink-2); }

/* ---------- Facts strip ---------- */
.facts { background: var(--blue-50); border-top: 1px solid #cfdcd4; border-bottom: 1px solid #cfdcd4; padding: 2rem 0; }
.facts dl { display: grid; gap: 1rem 2rem; margin: 0; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.facts dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 0.2rem; }
.facts dd { margin: 0; color: var(--ink); font-size: 0.97rem; }

/* ---------- Closing band ---------- */
.cta { padding: 3rem 0; }
.cta .wrap { display: grid; gap: 1rem; }
.cta h2 { margin: 0 0 0.5rem; max-width: 24ch; }
.cta p { color: var(--muted-on-dark); margin: 0; max-width: 56ch; }
.cta .actions { margin: 0; }
@media (min-width: 880px) { .cta .wrap { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; } }

/* ---------- Witch Card (formerly Which Card): an app for phones, shown only on phones ---------- */
.phero-phones { position: relative; align-self: end; width: 100%; max-width: 540px; height: clamp(330px, 88vw, 420px); margin: 0 auto; overflow: hidden; }
.phero-phones img { position: absolute; display: block; height: auto; border-radius: 28px; border: 6px solid #10151b; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.phero-phones .ph-front { left: 4%; top: 22px; width: 50%; rotate: -3deg; z-index: 2; }
.phero-phones .ph-back { right: 4%; top: 64px; width: 45%; rotate: 4deg; }
@media (min-width: 880px) { .phero-phones { height: 540px; } .phero-phones .ph-front { top: 34px; } .phero-phones .ph-back { top: 84px; } }

.wc-qr { display: none; }
@media (min-width: 880px) and (hover: hover) {
  .wc-qr { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.75rem; max-width: 27rem; }
  .wc-qr svg { flex: none; display: block; width: 116px; height: 116px; padding: 12px; background: #fff; border-radius: 10px; shape-rendering: crispEdges; }
  .wc-qr p { margin: 0; font-size: 0.93rem; color: var(--muted-on-dark); }
  .wc-qr strong { display: block; color: var(--text-on-dark); }
}

/* The demo: the app's answer screen in a phone, with the wallet beside it */
.demo.wc-demo { align-items: start; }
@media (min-width: 900px) {
  .demo.wc-demo { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); grid-template-rows: auto 1fr; column-gap: 4rem; row-gap: 1.5rem; }
  .wc-demo .demo-copy { grid-column: 1; grid-row: 1; }
  .wc-demo .wc-side { grid-column: 1; grid-row: 2; }
  .wc-demo .wc-device { grid-column: 2; grid-row: 1 / span 2; }
}
.wc-wallet { border: 0; margin: 0; padding: 0; display: grid; gap: 0.45rem; min-width: 0; }
@media (min-width: 560px) and (max-width: 899px) { .wc-wallet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wc-wallet legend { font-weight: 600; font-size: 0.92rem; padding: 0; margin-bottom: 0.55rem; }
.wc-card { display: flex; align-items: center; gap: 0.7rem; min-height: 48px; padding: 0.4rem 0.75rem; background: var(--surface); border: 1px solid var(--stone-200); border-radius: var(--radius); cursor: pointer; font-size: 0.95rem; transition: opacity 0.2s ease, border-color 0.2s ease; }
.wc-card:hover { border-color: var(--blue-500); }
.wc-card input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--blue-600); }
.wc-card .wc-art { flex: none; }
.wc-card .wc-art svg { display: block; }
.wc-card.off { opacity: 0.55; }
.wc-prime { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.9rem; font-size: 0.95rem; cursor: pointer; }
.wc-prime input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--blue-600); }
.wc-side .actions { margin-top: 1.2rem; }

/* The phone in the demo wears the app's own look: Mist, Ink, Plum, the plum pocket and
   Marigold, set in Archivo (wide for names, condensed for numbers). The font is only
   downloaded on the page that shows the demo. */
@font-face {
  font-family: "Archivo WC";
  src: url("../fonts/Archivo-wdth.woff2") format("woff2-variations"), url("../fonts/Archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
.wc-device { justify-self: center; width: 100%; max-width: 380px; padding: 10px; border-radius: 46px; background: #1B1222; box-shadow: 0 30px 60px rgba(42, 22, 64, 0.28), inset 0 0 0 2px #3A2D47; }
.wc-screen { position: relative; border-radius: 36px; background: #F5F2F8; color: #1E1328; padding: 12px 14px 18px; font-family: "Archivo WC", var(--font-body); font-size: 15px; font-weight: 430; line-height: 1.4; overflow: hidden; }
.wc-notch { display: block; width: 92px; height: 24px; margin: 0 auto 8px; border-radius: 999px; background: #1B1222; }
.wc-bar { display: flex; align-items: center; gap: 10px; padding: 2px 2px 14px; font-weight: 820; font-stretch: 112%; font-size: 18px; letter-spacing: -0.015em; }
.wc-bar .wc-mark { flex: none; width: 30px; height: 30px; margin: -3px 0 -3px -1px; border-radius: 7px; filter: drop-shadow(0 2px 3px rgba(42, 22, 64, 0.3)); }

/* "You're at": the store the phone is standing in, with its category's icon */
.wc-here { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 16px; }
.wc-here-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--tint, #E0801B); background: color-mix(in srgb, var(--tint, #E0801B) 15%, #fff); }
.wc-here-ic svg { display: block; width: 24px; height: 24px; }
.wc-here-t { display: flex; flex-direction: column; min-width: 0; }
.wc-here-t small { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 640; color: #5B2E86; }
.wc-here-t small svg { display: block; width: 13px; height: 13px; }
.wc-here-t b { font-size: 24px; font-weight: 790; font-stretch: 104%; line-height: 1.12; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-here-t span { font-size: 13.5px; color: #6B5F7D; }
.wc-here.found b { animation: wc-found 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes wc-found { from { opacity: 0; transform: translateY(6px); } }

.wc-label { display: block; margin: 0 2px 7px; font-size: 12.5px; font-weight: 620; color: #6B5F7D; }
.wc-stores { display: flex; flex-wrap: wrap; gap: 6px; }
.wc-chip { font: inherit; font-size: 13px; font-weight: 620; line-height: 1; padding: 9px 12px; border-radius: 999px; border: 1px solid #E3DBEC; background: #fff; color: #1E1328; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.wc-chip:hover { border-color: #5B2E86; }
.wc-chip[aria-pressed="true"] { background: #1E1328; border-color: #1E1328; color: #F5F2F8; }
.wc-chip:focus-visible { outline: 3px solid #5B2E86; outline-offset: 2px; }

/* The amount: a big condensed number on a line */
.wc-amount { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 16px; padding: 0 2px 4px; border-bottom: 2px solid #E3DBEC; cursor: text; transition: border-color 0.15s ease; }
.wc-amount:focus-within { border-bottom-color: #5B2E86; }
.wc-amount .cur { font-size: 28px; font-weight: 720; font-stretch: 75%; color: #6B5F7D; }
.wc-screen .wc-amount input { flex: 1; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font: inherit; font-size: 44px; font-weight: 820; font-stretch: 72%; line-height: 1.1; letter-spacing: -0.01em; color: #1E1328; font-variant-numeric: tabular-nums; }
.wc-screen .wc-amount input:focus { box-shadow: none; outline: none; }
.wc-amount .opt { font-size: 12.5px; color: #6B5F7D; white-space: nowrap; }

/* The answer: the card to use, drawn big as if just pulled out of the wallet */
.wc-winner { display: flex; flex-direction: column; gap: 8px; }
.wc-wlabel { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: #5B2E86; }
.wc-wlabel svg { display: block; width: 15px; height: 15px; }
.wc-big { position: relative; align-self: flex-start; width: min(100%, 250px); margin: 0 0 4px 4px; }
/* The witch hat lands on the card to use, as in the app */
.wc-hat { position: absolute; right: -5%; top: 0; width: 25%; transform: translate(0, -56%) rotate(16deg); transform-origin: 50% 85%; pointer-events: none; }
.wc-hat svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 6px rgba(42, 22, 64, 0.28)); }
.wc-winner.reveal .wc-hat { animation: wc-hatdrop 0.5s 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
@keyframes wc-hatdrop { from { opacity: 0; transform: translate(-10%, -150%) rotate(-12deg); } to { opacity: 1; transform: translate(0, -56%) rotate(16deg); } }
.wc-big .wc-art svg { display: block; width: 100%; height: auto; rotate: -2deg; filter: drop-shadow(0 16px 14px rgba(42, 22, 64, 0.3)) drop-shadow(0 3px 4px rgba(42, 22, 64, 0.2)); }
.wc-winner.reveal .wc-big { animation: wc-pull 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.12) both; }
@keyframes wc-pull { from { opacity: 0; transform: translateY(40px) rotate(4deg) scale(0.95); } to { opacity: 1; transform: none; } }
.wc-name { font-size: 20px; font-weight: 790; font-stretch: 106%; line-height: 1.12; letter-spacing: -0.015em; }
.wc-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; }
.wc-rate { font-size: 56px; font-weight: 830; font-stretch: 70%; line-height: 0.86; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.wc-value { text-align: right; font-size: 36px; font-weight: 800; font-stretch: 72%; line-height: 0.9; font-variant-numeric: tabular-nums; }
.wc-rate small, .wc-value small { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; color: #6B5F7D; }
.wc-flag { align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: #FFEFCC; color: #7A4B00; font-size: 12px; font-weight: 620; }
.wc-edge { align-self: flex-start; padding: 0 2px; font-size: 13.5px; font-weight: 680; background: linear-gradient(transparent 58%, rgba(246, 166, 35, 0.32) 58%); }
.wc-none { padding: 16px; border-radius: 18px; background: #fff; border: 1.5px dashed #D9CFE6; font-size: 14px; color: #6B5F7D; }
.wc-none b { display: block; margin-bottom: 4px; color: #1E1328; }

/* The rest of the wallet, best first, in a stitched plum pocket */
.wc-pocket { position: relative; margin-top: 18px; padding: 12px 9px 10px; border-radius: 24px; background: #2A1640; color: #F6EFFC; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.06), inset 0 -10px 24px rgba(0, 0, 0, 0.25); }
.wc-pocket::before { content: ""; position: absolute; inset: 5px; border-radius: 20px; border: 1.5px dashed rgba(246, 166, 35, 0.42); pointer-events: none; }
.wc-pocket[hidden] { display: none; }
.wc-pocket-label { position: relative; margin: 2px 10px 10px; font-size: 12.5px; font-weight: 600; color: rgba(246, 239, 252, 0.78); }
.wc-others { position: relative; list-style: none; margin: 0; padding: 0; }
.wc-others li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; margin: 0; padding: 10px 13px 22px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--c1, #6B5F7D), var(--c2, #4A3F5C) 55%, var(--c3, #2D2538)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 -6px 14px rgba(0, 0, 0, 0.28); }
.wc-others li + li { margin-top: -12px; }
.wc-others li:last-child { padding-bottom: 12px; }
.wc-others .n { min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.25; }
.wc-others .n small { display: block; margin-top: 1px; font-size: 12px; font-weight: 500; opacity: 0.85; }
.wc-others .n .warn, .wc-others .n .bad { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; opacity: 1; background: rgba(255, 255, 255, 0.92); color: #7A4B00; }
.wc-others .n .bad { color: #B42318; }
.wc-others .r { text-align: right; font-size: 22px; font-weight: 820; font-stretch: 74%; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wc-others .r small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 620; font-stretch: 100%; opacity: 0.9; }
.wc-others li.off { filter: saturate(0.2); opacity: 0.78; }
.wc-asof { margin: 14px 2px 0; font-size: 11.5px; color: #6B5F7D; }
@media (max-width: 380px) {
  .wc-device { padding: 7px; border-radius: 38px; }
  .wc-screen { border-radius: 31px; padding: 10px 10px 14px; }
  .wc-rate { font-size: 48px; }
  .wc-name { font-size: 18px; }
}

/* Four phone screens in a row */
@media (min-width: 560px) { .screens-grid.phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .screens-grid.phones { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.screens-grid.phones figcaption { text-align: center; max-width: 24ch; margin: 0 auto; }
/* On phones the screens swipe sideways (class swipe swipe-720; row styles in site.css); phone screens are narrower so one fits the screen */
@media (max-width: 719px) {
  .screens-grid.swipe { gap: 1rem; }
  .screens-grid.phones.swipe > figure { flex-basis: 54%; }
  .screens-grid.phones.swipe img { max-width: none; }
}

/* Billhead: what a year of invoicing costs */
.bh-from { display: inline-block; margin: 0 0 0.6rem; padding: 0.35em 0.75em; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: var(--sky-300); font-size: 0.88rem; font-weight: 600; }
.bh-never { font-weight: 600; color: var(--ink); }
.bh-grid { display: grid; gap: 1.25rem; }
@media (min-width: 680px) { .bh-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.5rem; } }
.bh-grid .demo-controls { align-content: start; }
.bh-what { margin: 0; font-size: 0.85rem; color: var(--muted); }
.bh-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.bh-opts li { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; align-items: baseline; padding: 0.65rem 0.85rem; border: 1px solid var(--stone-200); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s ease, background-color 0.2s ease; }
.bh-opts li span { font-weight: 600; }
.bh-opts li b { font-variant-numeric: tabular-nums; font-weight: 600; }
.bh-opts li small { grid-column: 1 / -1; color: var(--muted); font-size: 0.82rem; }
.bh-opts li.best { border-color: var(--blue-600); background: #dff0e6; }
.bh-opts li.best span::after { content: "Cheapest"; margin-left: 0.5rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-700); vertical-align: 0.1em; }
.bh-best { margin: 0.8rem 0 0; font-size: 0.93rem; color: var(--ink); }
.bh-ref { margin: 1.5rem 0 0; max-width: 72ch; font-size: 0.88rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .wc-winner.reveal .wc-big, .wc-winner.reveal .wc-hat, .wc-here.found b { animation: none; }
}

/* ---------- Phones: one section per screen, and a short swipe moves to the next ----------
   The same rule as the home page: only on touch screens held upright, because a mouse wheel cannot
   cross a full-screen mandatory snap. Each section is at least one screen tall and trimmed so it
   fits one: the hero keeps its copy and a cropped screen, section heads keep their label and
   heading, the demos keep the piece you can use, and the facts sit in two columns. */
@media (max-width: 879px) and (orientation: portrait) and (min-height: 560px) and (hover: none) and (pointer: coarse) {
  html:has(body.prod) { scroll-snap-type: y mandatory; scroll-padding-top: 67px; scroll-behavior: auto; }
  body.prod main > section[id] { scroll-margin-top: 0; }   /* the page's own padding places the snap; no second offset */
  body.prod main > section { scroll-snap-align: start; scroll-snap-stop: always; min-height: calc(100svh - 67px); display: flex; flex-direction: column; justify-content: center; padding-block: 0.9rem 1rem; }
  body.prod main > section > .wrap { width: 100%; }
  body.prod main > .phero-rule { display: none; }
  body.prod .site-footer { scroll-snap-align: end; }

  /* The hero: copy at the top, the screen along the bottom edge */
  body.prod .phero { padding-bottom: 0; }
  body.prod .phero > .wrap { flex: 1; display: grid; align-content: space-between; row-gap: 1rem; }
  body.prod .phero-copy { padding-bottom: 0; }
  body.prod .phero-copy h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  body.prod .phero-copy .lede { font-size: 1rem; }
  body.prod .product-hero-meta { display: none; }
  body.prod .phero-copy .actions { margin-top: 1rem; }
  body.prod .phero-shots .frame img { aspect-ratio: 2.2 / 1; object-fit: cover; object-position: top; }
  body.prod .frame-phone { display: none; }
  body.prod .phero-phones { height: clamp(200px, 36svh, 300px); }

  /* Section heads keep the label and the heading; the demos keep the piece you can use */
  body.prod .section-head { margin-bottom: 1rem; }
  body.prod .section-head p, body.prod .demo-copy p, body.prod .compare-ends, body.prod .bh-ref, body.prod .bh-what { display: none; }
  body.prod .demo-copy .actions { margin-top: 0.6rem; }
  body.prod .demo { gap: 1rem; }
  body.prod .compare { aspect-ratio: 1 / 1; min-height: 0; }
  body.prod .feat-grid li { padding: 0.9rem 1rem; }
  body.prod .more { margin-top: 1rem; }
  body.prod .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
  body.prod .feat-grid span { font-size: 0.93rem; }
  /* Part 107's question: tighter, the goal ring beside its numbers */
  body.prod .q-grid { gap: 0.8rem; }
  body.prod .goal { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 0.8rem; align-items: center; text-align: left; }
  body.prod .goal svg { grid-row: 1 / span 3; width: 72px; height: 72px; }
  body.prod .goal .n { font-size: 1.3rem; }
  body.prod .goal .streak { margin-top: 0; }
  body.prod .q-text { font-size: 1.1rem; margin-bottom: 0.7rem; }
  body.prod .q-opt { padding: 0.55em 0.8em; }
  /* Billhead's calculator: tighter rows */
  body.prod .bh-grid { gap: 0.9rem; }
  body.prod .bh-grid .demo-controls { gap: 0.5rem; }
  body.prod .bh-opts { gap: 0.4rem; }
  body.prod .bh-opts li { padding: 0.45rem 0.75rem; }
  body.prod .bh-opts li small { display: none; }
  body.prod .bh-best { margin-top: 0.6rem; font-size: 0.88rem; }
  body.prod .panel-body { padding: 0.8rem 0.9rem 0.9rem; }
  /* A phone screen among the screens stands no taller than half the screen */
  body.prod .screens-grid.swipe figure.tall img { max-width: none; width: auto; height: clamp(220px, 44svh, 400px); }
}
/* Taller phones have room for the hero's badges and a deeper screen */
@media (max-width: 879px) and (orientation: portrait) and (min-height: 740px) and (hover: none) and (pointer: coarse) {
  body.prod .product-hero-meta { display: flex; }
  body.prod .phero-shots .frame img { aspect-ratio: 1.75 / 1; }
}
/* Short phones: IntelliSafe's hero drops its description, and the compare piece is a little shorter */
@media (max-width: 879px) and (orientation: portrait) and (min-height: 560px) and (max-height: 700px) and (hover: none) and (pointer: coarse) {
  body.prod .safe-hero .lede { display: none; }
  body.prod .compare { aspect-ratio: 4 / 3; }
  body.prod .matrix tbody tr:nth-child(6) { display: none; }
}
