/* Profit Lense website, version 2 (offline prototype).
   One idea runs through it: the lens shows you the truth about a product before you spend money.
   Colour rule: off-white and charcoal everywhere; orange only for what matters (the main button, profit
   figures, the eye's pupil); green / red only for profit / loss. */

:root {
  --bg: #f7f6f2;
  --paper: #ffffff;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #6b6b73;
  --line: #e6e3db;
  --soft: #efede7;
  --orange: #f8792b;
  --orange-ink: #b4500f;
  --orange-soft: #fff1e7;
  --pos: #0f8a5f;
  --pos-bg: #e8f6ef;
  --neg: #c2362b;
  --neg-bg: #fdecea;
  --radius: 6px;      /* the one corner: things you press or type into */
  --radius-sm: 4px;   /* a button inside a padded group (.seg, .zoom, the pricing switches) */
  --shadow: none;     /* no drop shadows: surfaces are flat paper with a 1px line */
  --wrap: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 72px; }   /* clear of the menu bar */
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange-ink); outline-offset: 3px; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
[hidden] { display: none !important; }   /* hidden things stay hidden, whatever display a class gives them */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.04; font-weight: 750; text-wrap: balance; }   /* no one-word last lines */
h1 { font-size: clamp(42px, 5.6vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 54px); }
h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 560px; }
.lead, .plx-lead { text-wrap: pretty; }   /* no one-word last lines in the intro paragraphs either */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* Buttons: one orange button per screen, everything else quiet. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: var(--radius); border: 0; font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--main { background: var(--orange); color: var(--ink); }
.btn--main:hover { background: #fa8a43; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2b2b30; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--paper); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn .arrow { opacity: .6; }

/* ── Menu: a solid bar across the top, ruled off from the page; its content lines up with .wrap ── */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 8px max(24px, calc((100% - var(--wrap)) / 2)); background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand .eye { width: 38px; }
.nav__links { display: flex; gap: 2px; margin-left: 18px; }
.nav__links a { padding: 8px 12px; font-size: 14.5px; font-weight: 550; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.nav__cta { margin-left: auto; display: flex; gap: 8px; }
.nav__cta .btn--ghost { border-color: transparent; padding: 0 10px; }   /* Sign in: a text link, not a second box */
.nav__cta .btn--ghost:hover { background: none; text-decoration: underline; text-underline-offset: 6px; }
.nav__menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; }
.nav__menu span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; }
@media (max-width: 860px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__menu { display: block; margin-left: 0; }
  .nav__cta { margin-left: auto; }
  .nav.open { flex-wrap: wrap; background: var(--paper); border-bottom-color: var(--ink); }   /* the open menu: white, with a dark rule where it ends */
  .nav.open .nav__links { display: flex; flex-direction: column; width: 100%; margin: 8px 0 4px; order: 3; }
  .nav.open .nav__links a { padding: 11px 0; }
}
@media (max-width: 420px) { .nav__cta .btn--main { display: none; } .nav__menu { margin-left: auto; } }

/* ── The eye (drawn from the logo's own shapes in the sprite) ── */
.eye { display: inline-block; line-height: 0; }
.eye svg { width: 100%; height: auto; overflow: visible; }
.eye .lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform .09s ease-in; }
.eye.is-blink .lid { transform: scaleY(1); }
.eye .pupil { transition: transform .25s ease-out; }

/* ── Sections ── */
section { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center .lead { margin: 0 auto; }

/* ── 1. Hero: the lens moment ── */
.hero { padding-top: clamp(120px, 14vw, 170px); padding-bottom: clamp(60px, 7vw, 90px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__copy h1 { font-size: clamp(40px, 4.3vw, 66px); }
.hero__copy h1 em { font-style: normal; color: var(--orange); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.hero__fine { font-size: 14px; color: var(--muted); }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } .hero__copy { justify-items: center; text-align: center; } .hero__copy .lead { margin: 0 auto; } .hero__actions { justify-content: center; } }

/* The stage: the same product listing twice. Underneath, blurred and grey (what you see without the lens);
   on top, sharp and with the Profit Lense numbers, shown only inside the lens. */
.stage { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); touch-action: pan-y; cursor: none; user-select: none; -webkit-user-select: none; }
.stage__layer { position: absolute; inset: 0; }
.stage__layer--blur { filter: blur(5px) grayscale(.5); opacity: .7; transform: scale(1.01); }
.stage__layer--sharp { clip-path: ellipse(var(--rx, 90px) var(--ry, 102px) at var(--lx, 50%) var(--ly, 50%)); }
.stage__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 12.5px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .9); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; pointer-events: none; transition: opacity .3s; white-space: nowrap; }
.stage.is-touched .stage__hint { opacity: 0; }
/* The lens: an eye-shaped opening with an orange rim (the logo eye's own proportions), a thin dark edge and a soft shadow. */
.lens-ring { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; border-radius: 50%; border: 3px solid var(--orange); box-shadow: 0 0 0 2px rgba(24, 24, 27, .85), 0 18px 40px -8px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .6); }
.lens-ring::after { content: ""; position: absolute; left: 50%; top: -14px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px var(--paper); }

/* The listing inside the stage (a generic store page: no store's name or logo). */
.listing { position: absolute; inset: 0; display: grid; grid-template-columns: 42% 1fr; gap: 4%; padding: 6% 5%; font-size: clamp(10px, 1.15vw, 14px); }
.listing__img { border-radius: 14px; background: #fbf7ee; display: grid; place-items: center; }
.listing__img img { width: 60%; height: auto; max-height: 88%; object-fit: contain; }
/* The lens follows the pointer or finger over the stage: no image drag, and no iPhone press-and-hold image menu. */
.stage img { pointer-events: none; -webkit-touch-callout: none; }
.listing__info { display: grid; align-content: start; gap: .7em; min-width: 0; }
.listing__crumb { color: var(--muted); font-size: .85em; }
.listing__title { font-size: 1.45em; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.listing__stars { color: #e3a008; letter-spacing: .1em; font-size: .95em; }
.listing__stars span { color: var(--muted); letter-spacing: 0; margin-left: .4em; }
.listing__price { font-size: 2.2em; font-weight: 700; letter-spacing: -.02em; }
.listing__ship { color: var(--muted); }
.listing__buy { margin-top: .4em; height: 2.6em; border-radius: 999px; background: #f2c94c; display: grid; place-items: center; font-weight: 600; width: 70%; }
.listing__bars { display: grid; gap: .45em; margin-top: .6em; }
.listing__bars i { display: block; height: .55em; border-radius: 6px; background: var(--soft); }
.listing__bars i:nth-child(2) { width: 82%; } .listing__bars i:nth-child(3) { width: 64%; }

/* The Profit Lense numbers, only in the sharp layer. */
.chip { position: absolute; display: grid; gap: 2px; padding: .7em .9em; border-radius: 12px; background: var(--ink); color: #fff; font-size: clamp(10px, 1.1vw, 13.5px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); white-space: nowrap; }
.chip small { font-size: .78em; opacity: .7; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.chip b { font-size: 1.5em; letter-spacing: -.02em; }
.chip--profit { background: var(--paper); color: var(--ink); border: 2px solid var(--orange); }
.chip--profit b { color: var(--pos); }
.chip--1 { left: 8%; top: 12%; }
.chip--2 { left: 30%; top: 62%; }
.chip--3 { right: 6%; top: 18%; }
.chip--4 { right: 9%; top: 66%; }

/* ── 2. Proof strip: facts, no invented numbers ── */
.proof { padding: 0 0 clamp(70px, 9vw, 120px); }
.proof__row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof__item { padding: 26px 22px; display: grid; gap: 4px; align-content: start; }
.proof__item + .proof__item { border-left: 1px solid var(--line); }
.proof__item b { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; }
.proof__item span { color: var(--muted); font-size: 14.5px; }
.flags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.flags i { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 6px; background: var(--paper); border: 1px solid var(--line); }
@media (max-width: 860px) { .proof__row { grid-template-columns: 1fr 1fr; } .proof__item:nth-child(3) { border-left: 0; } .proof__item:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ── 3. Buy or skip? ── */
.game { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px); }
.game .lead { color: #b9b9c0; }
.game .kicker { color: #b9b9c0; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }   /* the game keeps its own eyebrow, capitals and dot */
.game .kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.game__score { justify-self: center; font-size: 14.5px; color: #b9b9c0; min-height: 1.5em; }
.game__score b { color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pcard { background: #232329; border: 1px solid #34343c; border-radius: 22px; padding: 18px; display: grid; gap: 14px; align-content: start; transition: border-color .2s, transform .2s; }
.pcard__img { aspect-ratio: 4 / 3; border-radius: 14px; background: #fbf7ee; overflow: hidden; isolation: isolate; }
/* The photos are on white; multiply turns their white into the tile's warm off-white, like the hero's product tile. */
.pcard__img img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
/* High-contrast modes force the tile black, and multiplying by black would hide the photo: show it as it is. */
@media (forced-colors: active) { .pcard__img img { mix-blend-mode: normal; } }
.pcard__name { font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.pcard__facts { display: flex; justify-content: space-between; color: #b9b9c0; font-size: 14px; }
.pcard__facts b { color: #fff; font-weight: 650; }
.pcard__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcard__btns button { height: 46px; border-radius: 12px; border: 1px solid #45454e; background: transparent; color: #fff; font-weight: 650; cursor: pointer; transition: background .15s, border-color .15s; }
.pcard__btns button:hover { background: #2f2f37; }
.pcard__btns button[data-pick="buy"]:hover { border-color: var(--pos); }
.pcard__btns button[data-pick="skip"]:hover { border-color: var(--neg); }
.pcard__reveal { display: none; gap: 10px; }
.pcard.is-open .pcard__btns { display: none; }
.pcard.is-open .pcard__reveal { display: grid; animation: pop .45s cubic-bezier(.2, .8, .2, 1); }
.pcard.is-right { border-color: var(--pos); }
.pcard.is-wrong { border-color: var(--neg); }
.verdict { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.verdict b { font-size: 30px; letter-spacing: -.03em; }
.tag { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.tag--buy { background: rgba(15, 138, 95, .18); color: #4ade9b; }
.tag--skip { background: rgba(194, 54, 43, .2); color: #ff8b80; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini div { background: #2d2d34; border-radius: 10px; padding: 8px 10px; display: grid; }
.mini small { color: #9a9aa3; font-size: 11.5px; }
.mini b { font-size: 15px; }
.why { color: #b9b9c0; font-size: 13.5px; line-height: 1.45; }
.you { font-size: 13px; font-weight: 650; }
.you.is-right { color: #4ade9b; } .you.is-wrong { color: #ff8b80; }
.game__note { text-align: center; color: #8a8a93; font-size: 13px; margin-top: 22px; }
.game__end { display: none; }   /* wider screens keep the menu's orange button in view */
@media (max-width: 420px) { .game__end { display: block; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ── 4. Three jobs ── */
.job { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.job + .job { margin-top: clamp(80px, 10vw, 140px); }
.job--flip .job__text { order: 2; }
.job__text { display: grid; gap: 16px; align-content: center; }
.job__step { font-size: 14px; font-weight: 700; color: var(--orange-ink); }
.job__list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.job__list li { display: flex; gap: 10px; color: var(--ink-2); }
.job__list li::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin: .62em 6px 0 4px; border-radius: 50%; background: var(--ink-2); }
.card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
@media (max-width: 980px) { .job { grid-template-columns: 1fr; } .job--flip .job__text { order: 0; } }
/* High-contrast modes drop background colours: the list dots and the pricing switch keep a system colour, and every
   button keeps an edge. ":root" outranks the pages' own rules, which load after this file. */
@media (forced-colors: active) {
  :root .job__list li::before, :root .nope li::before, :root .plp-feat li::before, :root .plx-list li::before, :root .plp-switch span::before { forced-color-adjust: none; background: CanvasText; }
  :root .plp-switch span { border-color: CanvasText; }
  :root .plp-switch input:checked + span { forced-color-adjust: none; background: Highlight; border-color: Highlight; }
  :root .plp-switch input:checked + span::before { background: HighlightText; }
  .btn, .pl-btn, .plx-btn, .plp-cta { border: 1px solid ButtonText; }
}

/* The calculator demo */
.calc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.calc__product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.calc__product i { font-style: normal; width: 46px; height: 46px; background: #fbf7ee; display: grid; place-items: center; font-size: 26px; flex: 0 0 auto; }
.calc__product i img { width: auto; height: 38px; }
.calc__product b { display: block; font-size: 15.5px; }
.calc__product span { color: var(--muted); font-size: 13px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--soft); border-radius: var(--radius); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: var(--radius-sm); font-weight: 650; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.calc__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { height: 50px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); padding: 0 14px; font: 650 18px Inter, system-ui, sans-serif; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--orange); background: var(--paper); box-shadow: 0 0 0 3px var(--orange-soft); }
.calc__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.big { padding: 14px 16px; background: var(--bg); display: grid; gap: 2px; }
.big small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.big b { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; }
.big.is-pos { background: var(--pos-bg); } .big.is-pos b { color: var(--pos); }
.big.is-neg { background: var(--neg-bg); } .big.is-neg b { color: var(--neg); }
.calc__fees { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.calc__fees div { display: flex; justify-content: space-between; }
.calc__fees b { color: var(--ink); font-weight: 600; }
.calc__note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* The real chart demo (assets/panel-charts.js draws the extension's own chart into it) */
.chart-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.zoom { display: inline-flex; padding: 3px; gap: 2px; background: var(--soft); border-radius: var(--radius); }
.zoom button { border: 0; background: none; padding: 4px 10px; border-radius: var(--radius-sm); font-weight: 650; font-size: 13px; color: var(--muted); cursor: pointer; }
.zoom button:hover { color: var(--ink); background: var(--paper); }
.pl-demo-app { position: relative; background: #fff; font-family: Inter, system-ui, sans-serif; min-height: 300px; }
.pl-demo-app .profitlens-keepa-tabs { display: none !important; }
.pl-demo-app canvas { cursor: grab; }
#profitlens-page-charts.is-dragging canvas { cursor: grabbing; }
.pl-demo-app .profitlens-switch { position: relative; display: inline-block; width: 30px; height: 17px; }
.pl-demo-app .profitlens-switch input { opacity: 0; width: 0; height: 0; }
.pl-demo-app .profitlens-slider { position: absolute; inset: 0; border-radius: 999px; background: #d6d3cb; cursor: pointer; transition: background .15s; }
.pl-demo-app .profitlens-slider::before { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .15s; }
.pl-demo-app .profitlens-switch input:checked + .profitlens-slider { background: var(--orange); }
.pl-demo-app .profitlens-switch input:checked + .profitlens-slider::before { transform: translateX(13px); }
.chart-card__note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* The P&L dashboard demo */
.shots__tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.shots__tabs button { border: 0; background: none; padding: 7px 12px; border-radius: var(--radius); font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.shots__tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.shots__img { border: 1px solid var(--line); background: #fff; width: 100%; height: auto; aspect-ratio: 1920 / 1350; }
.shots__note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ── 5. Phone app ── */
.app { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.soon { justify-self: start; font-size: 14px; font-weight: 700; color: var(--orange-ink); }
.phone { justify-self: center; width: min(300px, 80vw); aspect-ratio: 9 / 19; border-radius: 44px; background: var(--ink); padding: 12px; }
.phone__screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #1c1c20; }
.phone__shelf { position: absolute; inset: 14% 10% 46%; background: #f4efe4; display: grid; place-items: center; }
.barcode { width: 64%; height: 46%; background: repeating-linear-gradient(90deg, #18181b 0 3px, transparent 3px 5px, #18181b 5px 6px, transparent 6px 9px, #18181b 9px 13px, transparent 13px 15px); }
.laser { position: absolute; left: 12%; right: 12%; top: 30%; height: 2px; background: var(--orange); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 22%; } 50% { top: 56%; } }
.phone__result { position: absolute; left: 6%; right: 6%; bottom: 5%; background: var(--paper); padding: 14px; display: grid; gap: 10px; animation: rise 4.8s ease-in-out infinite; }
.phone__result b { font-size: 14px; }
.phone__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.phone__row div { background: var(--bg); padding: 6px 8px; display: grid; }
.phone__row small { font-size: 9.5px; color: var(--muted); font-weight: 600; }
.phone__row strong { font-size: 14px; }
@keyframes rise { 0%, 30% { transform: translateY(115%); } 42%, 88% { transform: none; } 100% { transform: translateY(115%); } }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } }

/* ── 6. Pricing ── */
.billing { justify-self: center; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 16px; align-content: start; }
.plan--best { border: 2px solid var(--ink); box-shadow: var(--shadow); position: relative; }
.plan__badge { position: absolute; top: -13px; left: 28px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan__name { font-weight: 700; font-size: 18px; }
.plan__for { color: var(--muted); font-size: 14.5px; margin-top: -10px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font-size: 46px; letter-spacing: -.04em; }
.plan__price span { color: var(--muted); }
.plan__year { font-size: 13px; color: var(--muted); min-height: 1.3em; margin-top: -10px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--pos); font-weight: 700; }
.plan .btn { width: 100%; margin-top: 4px; }
.plan__trial { font-size: 13px; color: var(--muted); text-align: center; }
.singles { margin-top: 22px; text-align: center; color: var(--muted); font-size: 15px; }
.singles a { color: var(--ink); font-weight: 600; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ── 7. FAQ ── */
.faq { max-width: 820px; margin: 0 auto; display: grid; }
.faq details { border-top: 1px solid var(--line); padding: 0 4px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 650; font-size: 17px; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 680px; }
.faq details a { color: var(--orange-ink); font-weight: 600; }

/* ── 8. Final screen: the eye closes ── */
.final { text-align: center; padding-bottom: clamp(90px, 10vw, 140px); }
.final__eye { width: clamp(140px, 18vw, 220px); margin: 0 auto 28px; }
.final h2 { font-size: clamp(36px, 5vw, 64px); }
.final .lead { margin: 18px auto 30px; text-wrap: pretty; }
.final__eye .lid { transition: transform 1.6s cubic-bezier(.6, 0, .4, 1); }
.final__eye.is-closing .lid { transform: scaleY(1); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 64px 0 36px; font-size: 14.5px; color: var(--muted); background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer__brand { display: grid; gap: 14px; justify-items: start; align-content: start; }
.footer__brand p { max-width: 280px; }
.footer h4 { margin: 4px 0 12px; font-size: 14px; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a:not(.btn) { text-decoration: none; color: var(--muted); }
.footer a:not(.btn):hover { color: var(--ink); }
.footer .brand { color: var(--ink); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* Things that slide in as you reach them */
.rise { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.rise.in { opacity: 1; transform: none; }
html:not(.js) .rise { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .laser, .phone__result { animation: none; }
  .phone__result { transform: none; }
  .final__eye .lid { transition: none; }
}
.job__title { font-size: clamp(26px, 2.6vw, 36px); }
/* On the dark game panel, profit / loss need brighter shades to read. */
.game .pos { color: #4ade9b; }
.game .neg { color: #ff8b80; }
.job--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 980px) { .job--flip { grid-template-columns: 1fr; } }
/* Section links land below the floating menu. */
[id] { scroll-margin-top: 18px; }   /* plus html's 72px */
/* The homepage calculator on phones: fields stacked, results two across. */
@media (max-width: 560px) {
  .calc__head { flex-wrap: wrap; }
  .calc__inputs { grid-template-columns: 1fr; }
  .calc__out { grid-template-columns: 1fr 1fr; }
  .calc__out .big:last-child { grid-column: 1 / -1; }
  .field input { min-width: 0; width: 100%; }
}

/* ── Pricing: bundles / single tools, ways to pay less, savings ── */
.price-switches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.plans--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
.both-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--orange-soft); border: 1px solid #f6d3b8; border-radius: 20px; padding: 18px 22px; }
.both-tools div { display: grid; gap: 2px; }
.both-tools span { color: var(--ink-2); font-size: 15px; }
.both-tools span span { text-decoration: line-through; color: var(--muted); }
.pay-less__title { text-align: center; font-size: clamp(24px, 2.6vw, 32px); margin: clamp(48px, 6vw, 72px) 0 20px; }
.pay-less { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 40px); }
.pay-less div { border-top: 1px solid var(--line); padding: 18px 0 22px; display: grid; gap: 4px; align-content: start; }
.pay-less b { font-size: 16.5px; }
.pay-less span { color: var(--muted); font-size: 14.5px; }
.savings { margin-top: clamp(40px, 5vw, 64px); background: var(--ink); color: #fff; padding: clamp(24px, 4vw, 44px); }
.savings__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 18px; }
.savings__head h3 { font-size: clamp(24px, 2.6vw, 32px); }
.savings__head p { color: #9a9aa3; font-size: 14px; }
.table-wrap { overflow-x: auto; }
.savings__table { width: 100%; border-collapse: collapse; min-width: 640px; }
.savings__table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #9a9aa3; font-weight: 700; padding: 0 14px 12px 0; border-bottom: 1px solid #34343c; }
.savings__table td { padding: 16px 14px 16px 0; border-bottom: 1px solid #2c2c33; vertical-align: top; color: #d4d4d8; font-size: 14.5px; }
.savings__table td:first-child { color: #fff; font-weight: 600; width: 26%; }
.savings__table td b { display: block; color: #fff; font-size: 20px; margin-top: 4px; }
.savings__table td.save b { color: #4ade9b; margin-top: 0; }
.savings__table td.save span { color: #9a9aa3; font-size: 13px; }
.savings__table tr:last-child td { border-bottom: 0; }
.savings__note { margin-top: 16px; color: #8a8a93; font-size: 12.5px; }
@media (max-width: 980px) { .pay-less { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .plans--two, .pay-less { grid-template-columns: 1fr; } }

/* ── Loading skeleton (assets/js-on.js): placeholder blocks under the menu while the page loads ── */
.skeleton { display: none; }
html.js.is-loading .skeleton, html.js.is-loaded .skeleton { display: block; }
html.js.is-loading { overflow: hidden; }
.skeleton { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding-top: clamp(120px, 14vw, 170px); transition: opacity .35s ease, visibility .35s; }
html.is-loaded .skeleton { opacity: 0; visibility: hidden; pointer-events: none; }
.skeleton__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.skeleton__copy { display: grid; gap: 14px; }
.sk { display: block; border-radius: 12px; background: linear-gradient(90deg, #ebe8e1 25%, #f5f3ee 40%, #ebe8e1 60%); background-size: 400% 100%; animation: sk-shimmer 1.3s ease-in-out infinite; }
.sk--kicker { width: 34%; height: 14px; }
.sk--h1 { width: 92%; height: clamp(40px, 4.4vw, 62px); border-radius: 14px; }
.sk--short { width: 62%; }
.sk--p { width: 88%; height: 16px; border-radius: 8px; }
.sk--btn { width: 210px; height: 50px; border-radius: 14px; margin-top: 10px; }
.sk--card { aspect-ratio: 16 / 11; border-radius: 24px; }
@keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (max-width: 980px) { .skeleton__in { grid-template-columns: 1fr; } .skeleton__copy { justify-items: center; } .sk--card { display: none; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } .skeleton { transition: none; } }
html.is-ready .skeleton { display: none !important; }
/* "Buy or skip?" with real listings */
.pcard__real { justify-self: start; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fbd5bd; background: rgba(248, 121, 43, .16); padding: 4px 9px; border-radius: 999px; margin-bottom: -6px; }
.mini { grid-template-columns: repeat(4, 1fr); }
.mini b { font-size: 14px; }
@media (max-width: 420px) { .mini { grid-template-columns: 1fr 1fr; } }
/* Three cards side by side but narrow (tablets, small laptops): two facts per row, so a revealed card fits its column. */
@media (min-width: 901px) and (max-width: 1180px) { .mini { grid-template-columns: 1fr 1fr; } }

/* ── Homepage eye intro (tools/intro.html + assets/intro.js): the eye blinks, then the view flies in through it ── */
#pl-intro { position: fixed; inset: 0; z-index: 2147483000; pointer-events: auto; cursor: pointer; overflow: hidden; }
#pl-intro[hidden] { display: none; }
#pl-intro svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#pl-intro .pl-skip { position: absolute; right: 16px; bottom: 16px; font: 600 12px/1 Inter, system-ui, sans-serif; color: #77746d; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
html.pl-in { overflow: hidden; }
/* The zoomed page is wider than the screen; clip it so phones don't zoom out and push the eye off-centre. */
html.pl-in body { overflow-x: clip; }
html.pl-in body > *:not(#pl-intro) { transform: scale(var(--pl-s, 1)); filter: blur(var(--pl-b, 0px)); transform-origin: 50vw 50vh; }
/* The intro is the homepage's loading screen, so the skeleton stays out of it. */
html.pl-in .skeleton { display: none !important; }

/* Between the phone menu and wide screens the menu is short of room: "Done for you" stays in the footer (and the
   phone menu), and the links sit a little closer, so the sign-in and early-access buttons keep their place. */
@media (min-width: 861px) and (max-width: 1040px) {
  .nav__links a[href$="done-for-you"], .nav__links a[href$="done-for-you.html"] { display: none; }
  .nav__links a { padding: 8px 9px; }
}
