/* page.css - the rebuilt pages (home, features, pricing, downloads), 2026-10-24.
   Reads its colours from theme.css. One centred column of big product
   frames, a headline and a line each, one dark band per page at most. */

* { box-sizing: border-box; }
/* nothing may widen the page past the screen. The home demo's glow (.stage::before) reaches
   8% past the frame and its drift scales and turns it further; on a phone that made the page
   wider than the screen, so it panned sideways and the fixed header stretched past the right
   edge (2026-11-01). html's value goes to the viewport; body's clips at its own edge. */
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; margin: 0; font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: inherit; text-decoration: none; }
video, img { display: block; width: 100%; max-width: 100%; height: auto; }
.shell { max-width: 1120px; margin-inline: auto; }
main { padding-top: var(--global-header-height, 76px); }
.skip-link { position: fixed; z-index: 3000; top: 12px; left: 12px; padding: 10px 14px; border-radius: 999px; background: var(--raised); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* type */
h1 { margin: 0 auto; font-size: clamp(36px, min(5.4vw, 7.4vh), 80px); font-weight: 700; letter-spacing: -.055em; line-height: .95; text-wrap: balance; max-width: 18ch; }
h2 { margin: 0; font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--coral); }
.sub { margin: clamp(10px, 1.8vh, 20px) auto 0; color: var(--mid); font-size: clamp(16px, 1.6vw, 19px); max-width: 52ch; }
.k { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mid); }

/* buttons */
.cta { margin-top: clamp(16px, 3vh, 30px); display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding-inline: 26px; border: 0; border-radius: 999px;
  background: var(--fg); color: var(--bg); font: 700 15px var(--sans); cursor: pointer; transition: transform .2s var(--ease), opacity .2s; }
.pill:hover { opacity: .88; transform: translateY(-1px); }
.pill.line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--rule); }
.pill[href*="chromewebstore.google.com"]:not(.line) { background: var(--cta); color: var(--cta-ink); box-shadow: 0 12px 30px -12px var(--cta-glow); }
.pill[href*="chromewebstore.google.com"]:not(.line):hover { opacity: 1; background: var(--cta-hover); }
.ghost { font-size: 14px; font-weight: 700; color: var(--mid); }
.ghost:hover { color: var(--fg); }

/* sections */
.hero { text-align: center; padding-block: clamp(16px, 4vh, 48px) clamp(18px, 3vh, 32px); }
section { padding-block: clamp(56px, 12vw, 150px); }
.head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.head p { margin: 14px auto 0; color: var(--mid); max-width: 44ch; text-wrap: balance; }

/* entrance */
.rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* product frames */
.stage { position: relative; }
.stage::before { content: ""; position: absolute; inset: -12% -8% -18%; z-index: -1; filter: blur(60px); opacity: .75;
  background: radial-gradient(40% 50% at 30% 45%, var(--glow-a), transparent 70%), radial-gradient(38% 46% at 72% 60%, var(--glow-b), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(3%, -3%) scale(1.06) rotate(4deg); } }
.frame { border-radius: 18px; overflow: hidden; background: var(--screen); box-shadow: 0 1px 0 var(--rule), 0 40px 100px -40px rgb(0 0 0 / .4); }
/* the home demo is as wide as the sections below it, unless that would push its bottom
   edge off the screen left under the hero (home.js sets --above); then it fits the screen */
#demo { width: min(100%, max(320px, calc((100svh - var(--above, 330px) - 16px) * 16 / 9))); margin-inline: auto; }

/* before / after */
.ba { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.2fr); gap: 24px; align-items: center; }
.card { position: relative; background: var(--raised); border: 1px solid var(--rule); border-radius: 16px; padding: 24px; min-width: 0; }
.card p { margin: 12px 0 0; font-size: 17px; }
.card.out p { font-size: 15px; line-height: 1.65; }
.card.out { border-color: color-mix(in srgb, var(--coral) 40%, var(--rule)); }
.card.out .k { color: var(--coral); }
.arrow { font-size: 28px; color: var(--coral); transition: transform .5s var(--ease); }
.arrow.go { transform: translateX(6px) scale(1.15); }
.taps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.taps span { position: relative; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--rule); color: var(--mid); transition: all .3s var(--ease); }
.taps span.on { border-color: var(--coral); color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, transparent); }
.ba.play .ch, .ba.play .w { opacity: 0; }
.ba .ch.in, .ba .w.in { opacity: 1; transition: opacity .25s; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--coral); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 820px) { .ba { grid-template-columns: minmax(0, 1fr); } .arrow { rotate: 90deg; justify-self: center; } }

/* three clips: hover one, the others step back */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trio figure { margin: 0; display: grid; gap: 14px; transition: transform .45s var(--ease), opacity .45s; }
.trio video { aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; background: var(--screen); box-shadow: 0 24px 60px -30px rgb(0 0 0 / .35); }
.trio b { font-size: 17px; letter-spacing: -.02em; }
.trio figcaption span { display: block; color: var(--mid); font-size: 14px; margin-top: 2px; }
@media (hover: hover) {
  .trio:hover figure { opacity: .5; transform: scale(.98); }
  .trio figure:hover { opacity: 1; transform: scale(1.04); z-index: 1; }
}
@media (max-width: 820px) { .trio { grid-template-columns: minmax(0, 1fr); } }

/* the one dark band */
.band { background: var(--deep); color: var(--deep-fg); margin-inline: calc(50% - 50vw); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.band .head p { color: var(--deep-mid); }
.band .frame { box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 40px 120px -30px rgb(0 0 0 / .8); }

/* three short promises */
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.promise div { padding: 28px 24px 0 0; }
.promise b { display: block; font-size: 19px; letter-spacing: -.02em; }
.promise span { color: var(--mid); font-size: 14.5px; }
@media (max-width: 720px) { .promise { grid-template-columns: minmax(0, 1fr); } }

.final { text-align: center; }

/* features: every tool with its rail icon, each group in its own hue */
.tools { --coral-h: var(--coral); --sky-h: #4f86c6; --sage-h: #4c9a6e; --amber-h: #c98a1b;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
:root[data-theme="dark"] .tools { --sky-h: #7fb0ea; --sage-h: #7cc79b; --amber-h: #e7b04f; }
.tools div { --h: var(--coral-h); position: relative; background: var(--raised); padding: 22px 20px 24px; min-width: 0; transition: background-color .3s var(--ease); }
.tools div[data-hue="sky"] { --h: var(--sky-h); }
.tools div[data-hue="sage"] { --h: var(--sage-h); }
.tools div[data-hue="amber"] { --h: var(--amber-h); }
.tools .k { display: flex; align-items: center; gap: 8px; min-height: 14px; margin-bottom: 16px; color: var(--h); letter-spacing: normal; font: 700 12px var(--sans); }
.tools .k:not([aria-hidden])::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--h); }
.tools .ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 13px;
  background: color-mix(in srgb, var(--h) 13%, var(--raised)); color: var(--h);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 22%, transparent); transition: transform .35s var(--ease), background-color .3s; }
.tools .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tools b { display: block; font-size: 16px; letter-spacing: -.01em; }
.tools div > span:last-child { color: var(--mid); font-size: 13.5px; }
@media (hover: hover) {
  .tools div:hover { background: color-mix(in srgb, var(--h) 6%, var(--raised)); }
  .tools div:hover .ic { transform: translateY(-3px) rotate(-4deg); background: var(--h); color: var(--raised); }
}
@media (max-width: 720px) { .tools { grid-template-columns: minmax(0, 1fr); } .tools .k[aria-hidden] { display: none; } .tools .k { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .tools .ic, .tools div { transition: none; } }
.hosts { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hosts span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--rule); font-weight: 700; font-size: 14px; }

/* pricing */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sunk); }
.seg button { border: 0; background: transparent; color: var(--mid); font: 700 14px var(--sans); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--fg); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-top: clamp(28px, 4vw, 48px); }
.tier { display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--rule); border-radius: 20px; padding: 30px 28px; min-width: 0; }
.tier.featured { background: var(--deep); color: var(--deep-fg); border-color: var(--deep); position: relative; }
.tier.featured .pill { background: var(--deep-fg); color: var(--deep); }
.tier h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--mid); }
.tier.featured h3 { color: var(--coral); }
.tier-price { margin: 14px 0 0; font-size: 48px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.tier-price small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--mid); }
.tier.featured .tier-price small, .tier.featured .tier-cycle, .tier.featured .tier-foot { color: var(--deep-mid); }
.price-was { margin-right: 8px; font-size: .5em; color: var(--mid); }
.tier.featured .price-was { color: var(--deep-mid); }
.tier-cycle { margin: 8px 0 0; font-size: 13px; color: var(--mid); min-height: 18px; }
.tier-list { margin: 22px 0 26px; padding: 18px 0 0; border-top: 1px solid var(--rule); list-style: none; display: grid; gap: 10px; font-size: 14.5px; flex: 1; }
.tier.featured .tier-list { border-top-color: rgb(255 255 255 / .12); }
.tier-list li::before { content: "✓"; margin-right: 10px; color: var(--coral); font-weight: 800; }
.tier .pill { width: 100%; }
.tier-foot { margin: 12px 0 0; min-height: 34px; font-size: 12px; color: var(--mid); text-align: center; }
.tier-foot-error { color: #b23c2a; font-weight: 700; }
.tier.featured .tier-foot-error { color: #ffb4a2; }
.tier .pill[aria-busy="true"] { opacity: .7; pointer-events: none; }
/* already subscribed (checkout.js readOwned): a status, not a buy button */
.tier .pill[data-owned], .tier.featured .pill[data-owned] { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.fine { margin: 22px auto 0; text-align: center; color: var(--mid); font-size: 13px; max-width: 60ch; }
.price-swap { animation: priceSwap .3s ease; }
@keyframes priceSwap { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 900px) { .tiers { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; } }
/* Sticker price, the free week and the comparison (2026-11-04). Ticks green, crosses red, as asked:
   #2f7a4b and #b8452f are 4.9:1 and 5.0:1 on --raised; #7fcf98 and #f0a08f 9.6:1 and 8.6:1 on the dark one. */
.seg-save { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #2f7a4b; color: #fff; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.trial-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 11px 14px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .16); font-size: 14px; font-weight: 700; cursor: pointer; }
.trial-opt input { appearance: none; -webkit-appearance: none; order: 2; position: relative; flex: none; width: 42px; height: 24px; margin: 0; border-radius: 999px; background: rgb(255 255 255 / .22); cursor: pointer; transition: background .16s; }
.trial-opt input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s cubic-bezier(.22, 1, .36, 1); }
.trial-opt input:checked { background: #3d9a60; }
.trial-opt input:checked::after { transform: translateX(18px); }
.trial-opt input:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.compare-wrap, .road-wrap { margin-top: clamp(48px, 7vw, 88px); }
.compare { width: 100%; max-width: 720px; margin: 0 auto; border-collapse: separate; border-spacing: 0; background: var(--raised); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 15px 18px; vertical-align: middle; }
.compare tbody th, .compare tbody td { border-top: 1px solid var(--rule); }
.compare thead th { font-size: 13px; font-weight: 700; color: var(--mid); width: 22%; text-align: center; }
.compare thead th:first-child { width: auto; }
.compare tbody th { text-align: left; font-weight: 600; }
.compare td { text-align: center; font-size: 18px; font-weight: 800; }
.compare td small { display: block; font-size: 12px; font-weight: 600; color: var(--mid); }
.compare .yes { color: #2f7a4b; }
.compare .no { color: #b8452f; }
:root[data-theme="dark"] .compare .yes { color: #7fcf98; }
:root[data-theme="dark"] .compare .no { color: #f0a08f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .compare .yes { color: #7fcf98; } :root:not([data-theme]) .compare .no { color: #f0a08f; } }
.road { list-style: none; max-width: 720px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.road li { display: grid; gap: 6px; align-content: start; padding: 20px 22px; border-radius: 18px; background: var(--raised); border: 1px solid var(--rule); font-size: 14px; color: var(--mid); }
.road b { color: var(--fg); font-size: 17px; }
.road li:first-child { border-top: 3px solid #2f7a4b; }
.road li:nth-child(2) { border-top: 3px solid var(--coral); }
.road li:last-child { border-top: 3px solid var(--mid); }
@media (max-width: 720px) { .road { grid-template-columns: minmax(0, 1fr); } .compare th, .compare td { padding: 12px 10px; } .compare { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .trial-opt input, .trial-opt input::after { transition: none; } }

/* questions */
.qa { max-width: 720px; margin-inline: auto; border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--coral); font-size: 22px; font-weight: 400; transition: transform .25s; }
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { margin: 0 0 22px; color: var(--mid); max-width: 60ch; }

/* downloads */
.soon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.soon div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 16px; background: var(--raised); min-width: 0; }
.soon b { display: block; font-size: 16px; }
.soon span { color: var(--mid); font-size: 13px; }
.soon a { flex: none; font-size: 13px; font-weight: 700; color: var(--coral); }
@media (max-width: 820px) { .soon { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 28px; padding-block: 32px 44px; border-top: 1px solid var(--rule); color: var(--mid); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a:hover { color: var(--fg); }
.foot .mark { display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 800; letter-spacing: -.03em; }
.foot .mark svg { width: 20px; fill: currentColor; }
.foot .mark i { color: var(--coral); font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .stage::before, .caret, .price-swap { animation: none; }
  .trio figure, .arrow { transition: none; }
}

/* checkout.js's renewal dialog uses the older button classes */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 999px; font: 700 14.5px var(--sans); cursor: pointer; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--rule); }

/* Make it yours: three backgrounds as a still slideshow that crossfades on its own (home.js) */
.looks { max-width: 920px; margin-inline: auto; }
.looks-frame { position: relative; aspect-ratio: 1400 / 1051; max-width: 100%; }
.looks-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .9s var(--ease), transform 4.5s linear; }
.looks-frame img.is-on { opacity: 1; transform: scale(1); }
.looks-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.looks-tabs button { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 999px;
  background: rgb(255 255 255 / .06); color: var(--deep-mid); font: 700 14px var(--sans); cursor: pointer; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.looks-tabs button[aria-pressed="true"] { color: var(--deep-fg); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
.looks-tabs i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--coral); }
.looks-tabs button[aria-pressed="true"] i { animation: lookTimer var(--dwell, 4s) linear forwards; }
@keyframes lookTimer { to { width: 100%; } }
.looks.paused .looks-tabs i { animation: none; }
/* the band behind it takes the background on show, from the extension's own definitions
   (lab/extension/home/widgets/aesthetics.js) under a dark wash, as dark mode shows them */
.looks-band { position: relative; isolation: isolate; overflow: hidden; }
.looks-bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .9s var(--ease); }
.looks-bg.is-on { opacity: 1; }
.looks-bg[data-bg="inferno"] { background: linear-gradient(rgb(0 0 0 / .5), rgb(0 0 0 / .5)), radial-gradient(95% 95% at 55% 25%, #e0602a 0%, #8f2216 45%, #1c0d10 95%); }
.looks-bg[data-bg="aurora"] { background: linear-gradient(rgb(0 0 0 / .2), rgb(0 0 0 / .2)), radial-gradient(48% 16% at 37% 30%, rgb(63 191 143 / .42), transparent), radial-gradient(42% 14% at 69% 44%, rgb(122 92 201 / .38), transparent), linear-gradient(#0c1a2a, #132a38); }
.looks-bg[data-bg="fern"] { background: linear-gradient(rgb(0 0 0 / .55), rgb(0 0 0 / .55)), linear-gradient(#7f9a80, #5c745f); }
@media (prefers-reduced-motion: reduce) { .looks-frame img, .looks-bg { transition: none; transform: none; } .looks-tabs i { display: none; } }

/* downloads: the Chrome button first, then what is coming */
.dl-chrome { gap: 10px; height: 58px; padding-inline: 28px; font-size: 16px; }
.dl-chrome .chrome { width: 22px; height: 22px; }
.dl-next { padding-block: clamp(36px, 6vw, 64px) clamp(80px, 12vw, 140px); }
.dl-next > .k { display: block; margin: 0 0 16px; text-align: center; }
.dl-next .soon { margin-top: 0; }
.soon b { color: var(--fg); }
