:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --tone: #eceef2;
  --text: #17181b;
  --muted: #5b5f68;
  --line: rgb(0 0 0 / 0.09);
  --accent: #4263eb;
  --button: #17181b;
  --button-text: #ffffff;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18191c; /* the extension's own dark background */
    --surface: #1f2125;
    --tone: #26282d;
    --text: #e8e9ec;
    --muted: #a3a6ae;
    --line: rgb(255 255 255 / 0.1);
    --accent: #7b93ff;
    --button: #e8e9ec;
    --button-text: #131417;
  }
}

/* Type: h1, h2, lead, body, small. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); font-weight: 760; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 720; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 680; line-height: 1.25; }
p { margin: 0; color: var(--muted); max-width: 58ch; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.gh { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 600; }
.gh svg { width: 20px; height: 20px; fill: currentColor; }
.gh:hover { color: var(--text); }

/* Arriving: things rise into place as they come into view (the hero on load). Without scripts, they're just there. */
.js .reveal, .rise { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.rise { animation: rise 0.8s var(--ease) forwards; }
.rise:nth-child(2) { animation-delay: 0.08s; }
.rise:nth-child(3) { animation-delay: 0.16s; }
.rise:nth-child(4) { animation-delay: 0.26s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Hero and closing: the centred moments. One button; a line of small print under it. */
.hero { text-align: center; padding-top: clamp(40px, 8vw, 96px); }
.hero h1 { max-width: 20ch; margin-inline: auto; }
.lede { margin: 20px auto 32px; font-size: clamp(1.125rem, 1.8vw, 1.3rem); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta .alt { flex-basis: 100%; max-width: none; font-size: 0.9375rem; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px 0 20px; border-radius: 999px;
  background: var(--button); color: var(--button-text); font-weight: 650; font-size: 1.0625rem; text-decoration: none;
  transition: transform 0.15s var(--ease), filter 0.15s;
}
.store[hidden] { display: none; }
.store:hover { transform: translateY(-2px); filter: brightness(1.1); }
.store:active { transform: scale(0.98); }
.store-logo { width: 24px; height: 24px; fill: currentColor; }
.hero-shot { margin-top: 56px; }
.hero-shot img, .screen, .frame { border-radius: 18px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }

section.how, section.looks, section.promise { padding-top: clamp(96px, 13vw, 160px); }
.how h2, .looks h2, .promise h2 { text-align: center; }

/* The steps, as in the welcome: points on a line; the line fills and each point ticks in turn. */
.steps { --n: 3; position: relative; list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 32px; }
.steps::before, .steps::after { content: ''; position: absolute; top: 13px; left: calc(100% / 6); right: calc(100% / 6); height: 4px; border-radius: 2px; background: var(--line); }
.steps::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) 0.2s; }
.steps.go::after { transform: scaleX(1); }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.dot { position: relative; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 3px var(--line); transition: background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.dot svg { width: 16px; height: 16px; fill: none; stroke: var(--button-text); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.35s ease-out; }
.steps.go .dot { background: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); transform: scale(1.08); }
.steps.go .dot svg { stroke-dashoffset: 0; }
.steps.go .step:nth-child(1) .dot, .steps.go .step:nth-child(1) .dot svg { transition-delay: 0.2s, 0.2s, 0.2s, 0.45s; }
.steps.go .step:nth-child(2) .dot, .steps.go .step:nth-child(2) .dot svg { transition-delay: 0.95s, 0.95s, 0.95s, 1.2s; }
.steps.go .step:nth-child(3) .dot, .steps.go .step:nth-child(3) .dot svg { transition-delay: 1.7s, 1.7s, 1.7s, 1.95s; }
.step .frame { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 14px; background: var(--tone); display: grid; place-items: center; }
.step .frame > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.2s; }

/* Adding sites: the empty dial (on its own page colour), and its tiles dropping into the places. */
.fill { background: #f5f6f8; }
.board { position: relative; width: 100%; }
.fill .tile { position: absolute; height: auto; border-radius: 4px; opacity: 0; transform: translateY(-14px) scale(0.92);
  transition: opacity 0.35s ease-out, transform 0.45s var(--ease); }
.fill .tile.on { opacity: 1; transform: none; }

/* The looks: one screen, a pill to switch, a crossfade between. */
.looks > p { margin: 14px auto 0; text-align: center; font-size: 1.125rem; }
.seg { display: flex; flex-wrap: wrap; justify-content: center; width: fit-content; max-width: 100%; margin: 28px auto 24px; padding: 4px; gap: 2px;
  border-radius: 24px; background: var(--tone); }
.seg button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 0.9375rem;
  font-weight: 550; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-checked='true'] { background: var(--surface); color: var(--text); font-weight: 650; box-shadow: 0 1px 4px rgb(0 0 0 / 0.16); }
.screen { position: relative; aspect-ratio: 2000 / 833; background: var(--tone); }
.look { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity 0.6s ease, transform 1.2s var(--ease); }
.look.on { opacity: 1; transform: none; }

/* The promises: three plain lines, large. */
.promise ul { list-style: none; width: fit-content; max-width: 100%; margin: 40px auto 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.promise li { display: flex; align-items: flex-start; gap: 16px; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.4; color: var(--muted); }
.promise li b { color: var(--text); font-weight: 680; }
.promise li svg { flex: none; width: 28px; height: 28px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.promise li:nth-child(2) { transition-delay: 0.1s; }
.promise li:nth-child(3) { transition-delay: 0.2s; }

.closing { padding-bottom: 120px; padding-top: clamp(96px, 13vw, 160px); }
.closing h2 { margin-bottom: 32px; }

footer { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
footer a { color: var(--muted); }

/* Privacy page */
.doc { max-width: 720px; padding: 24px 0 64px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 16px; }
.doc h2 { font-size: 1.5rem; margin: 1.6em 0 0.5em; }
.doc p { margin-bottom: 12px; }
.doc p, .doc li { color: var(--muted); }
.doc li { margin-bottom: 0.4em; }

/* Narrow screens: the steps run down a line on the left. */
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; padding-left: 46px; }
  .steps::before, .steps::after { top: 15px; bottom: 30px; left: 13px; right: auto; width: 4px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .steps.go::after { transform: scaleY(1); }
  .step { align-items: flex-start; text-align: left; }
  .dot { position: absolute; left: -46px; margin: 0; }
  .step { position: relative; }
  .seg button { padding: 0 13px; min-height: 36px; font-size: 0.875rem; }
  .screen { aspect-ratio: 4 / 3; }
}
/* Phones: the headline in two lines. */
@media (max-width: 560px) {
  h1 { font-size: 2rem; }
  .hero h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .rise { opacity: 1; transform: none; transition: none; animation: none; }
  .steps::after, .dot, .dot svg, .fill .tile, .look, .store { transition: none; }
}
