/* Rankpin. A light, quiet page in the manner of a phone's own settings: white
   ground, soft grey and tinted cards, large plain type, black pills, and cards
   that sit slightly above photographs. Nothing moves unless it is touched. */

:root {
  --bg: #FFFFFF; --panel: #F5F5F7; --raised: #FFFFFF; --line: #E3E3E8; --line-strong: #8E8E93;
  --text: #1D1D1F; --mute: #6E6E73;
  --iris: #0071E3; --iris-deep: #0062C4; --iris-tint: rgba(0, 113, 227, .1); --on-iris: #FFFFFF; --pill: #0071E3;
  --cyan: #007D70; --cyan-tint: rgba(0, 125, 112, .1); --cyan-line: rgba(0, 125, 112, .45);
  --green: #1B873F; --green-tint: rgba(27, 135, 63, .1);
  --amber: #A85400; --amber-tint: rgba(255, 159, 10, .16);
  --red: #D70015; --red-tint: rgba(215, 0, 21, .07);
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --r: 20px; --r-sm: 12px; --bar: 48px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: light; scroll-padding-top: calc(var(--bar) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.47 var(--sans); letter-spacing: -0.011em; caret-color: var(--iris);
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* The bar at the top: dark frosted glass that stays put while the page moves under it. */
.topbar { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); background: rgba(255, 255, 255, .78); color: var(--text); border-bottom: 1px solid rgba(0, 0, 0, .07);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.topbar > div { max-width: 1024px; height: var(--bar); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar-brand { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: inherit; text-decoration: none; font: 800 1.22rem 'Inter', var(--sans); letter-spacing: -0.04em; }
.bar-brand::before { content: ''; width: 30px; height: 30px; background: url(logo.svg) center / contain no-repeat; }
.bar-cta { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 14px; border-radius: 980px; background: var(--pill); color: #fff; text-decoration: none; font-size: .82rem; font-weight: 600; position: relative; }
.bar-cta::after { content: ''; position: absolute; inset: -8px 0; }
/* A wash of soft colour behind the top of the page. */
body::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 900px; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 420px at 12% 0%, rgba(0, 113, 227, .13), transparent 70%), radial-gradient(44% 400px at 62% -4%, rgba(142, 92, 247, .13), transparent 70%),
    radial-gradient(40% 380px at 100% 8%, rgba(255, 122, 184, .13), transparent 70%); }
::selection { background: var(--iris); color: var(--on-iris); }
main { max-width: 1080px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) calc(72px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
p { margin: 0; }
a { color: var(--iris); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; }
#saved, #result, .foot, .doc > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hint { color: var(--mute); font-size: .94rem; margin-bottom: 14px; max-width: 64ch; }
.status { min-height: 1.5em; margin-top: 10px; color: var(--amber); }
.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Controls ---------------------------------------------------------- */
button, .btn { font: 600 1rem var(--sans); min-height: 48px; padding: 11px 22px; border-radius: 980px; border: 1px solid transparent;
  background: var(--pill); color: #fff; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease; }
button:active:not(:disabled), .btn:active { transform: scale(.97); }
button:disabled { background: var(--raised); color: var(--mute); border-color: var(--line); cursor: not-allowed; }
.ghost, .copy { background: transparent; color: var(--iris); border-color: var(--iris); }
.copy { min-height: 44px; padding: 8px 14px; font-size: .92rem; flex: none; }
.link { all: unset; cursor: pointer; color: var(--iris); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  button:hover:not(:disabled), .btn:hover { background: #0077ED; }
  .hero form button:hover:not(:disabled) { background: linear-gradient(120deg, #0A7BF0, #8A6CFF); }
  .bar-cta:hover { background: #0077ED; }
  .ghost:hover:not(:disabled), .copy:hover:not(:disabled), a.btn.ghost:hover { background: var(--iris-tint); border-color: var(--iris); }
  .link:hover { text-decoration-color: var(--iris); }
}
input, textarea, select { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 13px 14px; min-height: 52px; transition: border-color 160ms ease, box-shadow 160ms ease; }
textarea { resize: vertical; margin: 6px 0 14px; line-height: 1.5; }
::placeholder { color: var(--mute); opacity: 1; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--iris); box-shadow: 0 0 0 4px var(--iris-tint); }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 2px; }
label { font-weight: 500; }

/* ---- First screen ------------------------------------------------------ */
/* Named .hero, not .top: "top" is also the class of a first-three position plate.
   Words and the link field on one side; a photograph with cards resting on it on the other. */
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 6vw, 76px); align-items: center; padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 6vw, 64px); }
.hero h1 { font-size: clamp(2.9rem, 7vw, 4.8rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.hero h1 .grad { background: linear-gradient(90deg, #0071E3, #8E5CF7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { margin-bottom: 14px; font-size: .95rem; font-weight: 600; color: var(--iris); }
.lede { margin: 18px 0 26px; max-width: 46ch; color: var(--mute); font-size: clamp(1.08rem, 2.2vw, 1.22rem); line-height: 1.42; letter-spacing: -0.015em; }
/* The link field is the one thing on the first screen that asks to be touched:
   white, lifted off the page, with a lit rim and a gradient button. */
.hero form { position: relative; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; max-width: 580px; padding: 7px; border-radius: 34px; border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #0071E3, #8E5CF7 55%, #FF6FAE) border-box;
  box-shadow: 0 22px 44px -18px rgba(88, 86, 214, .55), 0 0 0 6px rgba(0, 113, 227, .08); transition: box-shadow 200ms ease, transform 200ms var(--ease-out); }
.hero form:focus-within { box-shadow: 0 26px 50px -18px rgba(88, 86, 214, .7), 0 0 0 6px rgba(0, 113, 227, .18); }
.hero form input { flex: 1 1 230px; border: 0; min-height: 54px; padding-left: 50px; font-size: 1.06rem; font-weight: 500; color: var(--text);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230071E3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.200 7-11.500a7 7 0 10-14 0C5 14.800 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.500' r='2.500'/%3E%3C/svg%3E") 16px 50% / 24px no-repeat; }
.hero form ::placeholder { color: #55555A; font-weight: 400; font-size: .97rem; }
.hero form input:focus-visible { box-shadow: none; }
.hero form button { flex: 0 0 auto; min-height: 54px; padding: 12px 26px; font-size: 1.06rem; font-weight: 600; gap: 8px;
  background: linear-gradient(120deg, #0071E3, #7A5CF5); box-shadow: 0 10px 22px -10px rgba(88, 86, 214, .9); }
.hero form button::after { content: ''; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23fff' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.500 9h11M10 4.500L14.500 9 10 13.500'/%3E%3C/svg%3E") center / contain no-repeat; }
.suggest { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 30; margin: 0; padding: 6px; list-style: none; text-align: left;
  background: #fff; border-radius: 22px; box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 0, 0, .07); }
.suggest li { padding: 10px 14px; border-radius: 16px; }
.suggest [role=option] { min-height: 48px; cursor: pointer; }
.suggest [role=option]:hover, .suggest [aria-selected=true] { background: #F0F0F3; }
.suggest b { display: block; font-weight: 600; color: var(--text); }
.suggest span { display: block; font-size: .88rem; color: #55555A; }
.suggest .hint { padding: 8px 14px 6px; font-size: .82rem; color: #6E6E73; }
.hero form.busy { opacity: .85; } .hero form.busy button::after { display: none; }
.hero .status { min-height: 1.2em; }
.points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.points li { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; color: var(--mute); }
.points svg { width: 15px; height: 15px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.doc .hero { display: block; padding-bottom: 8px; }

/* A photograph, or a soft tint until one is supplied, with cards resting on it. */
.hero-art { position: relative; isolation: isolate; aspect-ratio: 4 / 5; width: 100%; max-width: 460px; justify-self: center; }
.photo { position: absolute; inset: 0; border-radius: 36px; overflow: hidden; background: var(--tint, linear-gradient(160deg, #FFE8D4, #FFD6E4 55%, #DCE6FF)); }
.photo img, .pcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .5); background: linear-gradient(160deg, rgba(255, 255, 255, .16), transparent 34%); }
/* Cards on a photograph are frosted glass: the picture shows through, blurred,
   under a pale film with a bright rim. Their words are white. */
.pop { position: absolute; color: #fff; background: var(--glass, linear-gradient(140deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .14)));
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .42); border-radius: 20px; padding: 12px 14px; font-size: .9rem; z-index: 1;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .55); text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.pop .pos, .pop .pos.low { background: #fff; border-color: #fff; text-shadow: none; }
.pop svg, .psearch svg, .res small svg { width: 15px; height: 15px; flex: none; }
.pop-search svg, .pop-in svg, .psearch svg { fill: none; stroke: var(--mute); stroke-width: 1.8; stroke-linecap: round; }
.pop-search svg, .pop-in svg { stroke: #fff; stroke-width: 2; }
.res small svg { fill: #FFB400; width: 12px; height: 12px; }
.pop-search, .pop-in { display: inline-flex; align-items: center; gap: 8px; border-radius: 980px; padding: 10px 16px; font-weight: 500; }
.pop-search { top: 5%; left: 5%; }
.pop-list { right: 5%; top: 20%; display: grid; gap: 7px; }
.pop-list strong { font-size: .95rem; letter-spacing: -0.01em; margin-bottom: 2px; }
.pop-list span { display: flex; align-items: center; gap: 8px; }
.pop-list svg { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; background: #34C759; border-radius: 50%; padding: 3px; width: 18px; height: 18px; }
.pop-you { right: 5%; bottom: 6%; display: grid; gap: 0; }
.pop-you span { font-size: .82rem; opacity: .9; } .pop-you strong { font-size: 2.3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.pop-you small { font-size: .8rem; opacity: .9; }
.pop-in { left: 10px; bottom: 10px; font-size: .86rem; padding: 8px 14px; --glass: linear-gradient(140deg, rgba(20, 20, 30, .34), rgba(20, 20, 30, .2)); } .pop-in.you { gap: 10px; font-weight: 600; }
/* One search result: a rank, a name, and a line under it. */
.res { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; }
.res b { width: 24px; height: 24px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-size: .78rem; font-weight: 600; }
.res span { font-weight: 600; line-height: 1.25; min-width: 0; }
.res small { display: flex; align-items: center; gap: 4px; font-weight: 400; color: var(--mute); font-size: .78rem; }
.res.faint { opacity: .45; }
.res.you { background: var(--iris-tint); margin: 0 -8px; padding: 8px; border-radius: 14px; } .res.you b { background: var(--iris); color: #fff; }

/* ---- The story --------------------------------------------------------- */
/* Shown until a listing has been looked up, then it steps aside for the report. */
#result:not([hidden]) ~ #story { display: none; }
.chapter { margin-top: clamp(72px, 11vw, 132px); }
.kicker { font-weight: 600; color: var(--hue, var(--iris)); margin-bottom: 10px; }
/* Each chapter has a colour of its own: its label, the lit words in its heading,
   and a pale tint on its sheet. */
.c-blue { --hue: #0071E3; --hue2: #32ADE6; --wash: linear-gradient(150deg, #EAF3FF, #EEF0FF); }
.c-purple { --hue: #8E5CF7; --hue2: #BF5AF2; --wash: linear-gradient(150deg, #F2ECFF, #EAF0FF); }
.c-orange { --hue: #F56300; --hue2: #FF9F0A; --wash: linear-gradient(150deg, #FFF3E6, #FFEFEA); }
.c-pink { --hue: #E0338A; --hue2: #FF6482; --wash: linear-gradient(150deg, #FFECF4, #F6ECFF); }
.c-green { --hue: #1B873F; --hue2: #30B0C7; --wash: linear-gradient(150deg, #EAF8EE, #E8F6FA); }
.hue { background: linear-gradient(90deg, var(--hue, #0071E3), var(--hue2, #8E5CF7)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapter > h2, .hpin > h2 { font-size: clamp(2rem, 5.6vw, 3.3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.06; max-width: 19ch; }
.chapter > .sub, .hpin > .sub { color: var(--mute); font-size: clamp(1.05rem, 2.2vw, 1.2rem); max-width: 52ch; margin-top: 14px; line-height: 1.42; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.scard { background: var(--tint); border-radius: 30px; padding: 14px 14px 24px; display: grid; align-content: start; }
.scard .photo { position: relative; inset: auto; aspect-ratio: 4 / 3; border-radius: 20px; --tint: var(--ph, rgba(255, 255, 255, .7)); }
.scard .photo.plain { display: grid; place-items: center; padding: 14px; }
.mini { width: 100%; max-width: 250px; background: #fff; border-radius: 18px; padding: 14px; display: grid; gap: 10px; font-size: .86rem; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .3); }
.scard .n { margin: 18px 6px 0; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--hue), var(--hue2)); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.scard h3 { font-size: 1.32rem; letter-spacing: -0.025em; margin: 12px 6px 6px; }
.scard p { color: #4A4A4F; margin: 0 6px; font-size: 1rem; }

/* The listing you can fix yourself: a phone on one side, switches on the other. */
.lab { display: grid; grid-template-columns: minmax(0, 310px) minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: center; margin-top: 36px;
  background: var(--wash, var(--panel)); border-radius: 36px; padding: clamp(18px, 4.5vw, 48px); }
.phone { background: #fff; border: 9px solid #1D1D1F; border-radius: 44px; padding: 16px 14px 20px; min-height: 420px; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .5); }
.psearch { display: flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 980px; padding: 10px 14px; font-size: .9rem; font-weight: 500; margin-bottom: 14px; }
.plist { display: grid; gap: 12px; font-size: .9rem; }
.plist .gap { text-align: center; color: var(--mute); font-size: .8rem; padding: 6px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.switches { display: grid; gap: 10px; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border-radius: 18px; padding: 12px 16px; min-height: 64px; cursor: pointer; }
.sw span { display: grid; min-width: 0; } .sw b { font-weight: 600; }
.sw small { color: var(--red); font-size: .86rem; overflow-wrap: anywhere; } .sw small.on { color: var(--green); }
/* A switch as on a phone: grey when off, green when on. */
input.toggle { appearance: none; -webkit-appearance: none; flex: none; width: 51px; min-width: 51px; height: 31px; min-height: 31px; padding: 0; margin: 0; border: 0; border-radius: 31px;
  background: #E9E9EA; position: relative; cursor: pointer; transition: background-color 160ms ease; }
input.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform 160ms ease; }
input.toggle:checked { background: #34C759; } input.toggle:checked::after { transform: translateX(20px); }
input.toggle:focus-visible { outline: 2px solid var(--iris); outline-offset: 2px; box-shadow: none; }
.labstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.stat { background: #fff; border-radius: 18px; padding: 14px 16px; display: grid; gap: 2px; }
.stat span { color: var(--mute); font-size: .86rem; } .stat strong { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.note { color: var(--mute); font-size: .84rem; margin-top: 12px; }

/* What the report shows: a row of choices, one sample at a time. */
.tabs { display: flex; gap: 8px; margin-top: 30px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 6px 2px 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; scroll-snap-align: center; gap: 8px; min-height: 46px; padding: 9px 18px 9px 14px; background: #fff; color: var(--text); border: 1px solid var(--line);
  font-weight: 500; font-size: .98rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.tabs svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--hue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabs button[aria-selected=true] { background: linear-gradient(135deg, var(--hue), var(--hue2)); color: #fff; border-color: transparent; font-weight: 600; box-shadow: 0 10px 22px -10px var(--hue); }
.tabs button[aria-selected=true] svg { stroke: #fff; }
/* The sideways tour: while pinned, the section holds still under the bar and its
   samples travel sideways as the page is scrolled. */
.htrack { --hgap: 56px; }
.pinned .hpin { position: sticky; top: calc(var(--bar) + env(safe-area-inset-top, 0px)); padding: 14px 0 18px; }
.pinned .hpin > h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.04em; line-height: 1.06; font-weight: 700; max-width: none; }
.pinned .tabs { margin-top: 14px; padding-bottom: 12px; }
.pinned .hpin > .sub { margin-top: 8px; font-size: 1.02rem; } .pinned .lab { margin-top: 18px; padding: clamp(16px, 3vw, 30px); } .pinned .phone { min-height: 372px; }
.pinned .showcase { overflow: hidden; padding: clamp(16px, 2.6vw, 30px); }
.pinned .htrack { display: flex; gap: var(--hgap); align-items: center; will-change: transform; }
.pinned .tabpanel { flex: 0 0 100%; }
.pinned .tabpanel .say, .pinned .tabpanel .sample { animation: none; }
.showcase { margin-top: 4px; background: var(--wash, var(--panel)); border-radius: 36px; padding: clamp(20px, 4.5vw, 48px); }
.tabpanel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(20px, 5vw, 56px); align-items: center; }
.say h3 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.say p { color: var(--mute); margin-top: 12px; font-size: 1.08rem; max-width: 44ch; }
.sample { position: relative; background: #fff; border-radius: 24px; padding: 40px 18px 18px; display: grid; gap: 10px; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .4); font-size: .95rem; }
.tag { position: absolute; top: 14px; left: 18px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.sstep { color: var(--mute); font-size: .84rem; font-weight: 600; } .stitle { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; }
.srow { border-radius: 14px; padding: 10px 14px; display: grid; gap: 1px; font-weight: 500; } .srow small { font-size: .76rem; font-weight: 600; }
.srow.bad { background: var(--red-tint); color: var(--red); } .srow.good { background: var(--green-tint); color: var(--green); }
.fakebtn { justify-self: start; margin-top: 4px; padding: 9px 18px; border-radius: 980px; background: var(--pill); color: #fff; font-weight: 600; font-size: .9rem; }
.trow { display: grid; grid-template-columns: 1fr 4.6rem 5.6rem; gap: 8px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; } .trow > :not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.trow.head { color: var(--mute); font-size: .82rem; padding-top: 0; } .trow.two { grid-template-columns: 1fr auto; }
.trow.you { background: var(--iris-tint); border-radius: 12px; border-bottom: 0; font-weight: 600; }
.sgrid { max-width: none; margin: 0; }

/* Who it is for: tall photographs with a label resting on each. */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.pcard { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; background: var(--tint); }
.pcard figcaption { position: absolute; left: 0; right: 0; bottom: 0; top: 73%; display: grid; gap: 2px; align-content: center; padding: 8px 16px; font-size: .86rem; line-height: 1.3;
  color: rgba(255, 255, 255, .92); background: linear-gradient(rgba(20, 20, 30, .16), rgba(20, 20, 30, .3)); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border-top: 1px solid rgba(255, 255, 255, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.pcard::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); background: linear-gradient(160deg, rgba(255, 255, 255, .16), transparent 34%); }
.pcard b { color: #fff; font-size: 1rem; letter-spacing: -0.02em; }
.closer { text-align: center; display: grid; justify-items: center; padding: clamp(48px, 9vw, 104px) 18px; border-radius: 36px; color: #F5F5F7; --hue: #2997FF; --hue2: #FF7AB8;
  background: radial-gradient(60% 80% at 20% 0%, rgba(41, 151, 255, .35), transparent 70%), radial-gradient(60% 80% at 85% 100%, rgba(191, 90, 242, .35), transparent 70%), #000; }
.closer h2 { max-width: none; } .closer .sub { color: #A1A1A6; }
.closer .hue { background-image: linear-gradient(90deg, #2997FF, #A78BFA 55%, #FF7AB8); }
.closer .btn { margin-top: 26px; min-height: 52px; padding: 13px 28px; font-size: 1.05rem; background: #F5F5F7; color: #000; } .closer .btn:hover { background: #fff; }
@media (hover: hover) and (pointer: fine) {
  .scard, .pcard, .sw { transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
  .scard:hover, .pcard:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .35); }
  .tabs button:hover:not([aria-selected=true]) { background: #fff; border-color: var(--hue); }
  .tabs button[aria-selected=true]:hover { background: linear-gradient(135deg, var(--hue), var(--hue2)); }
}
@media (max-width: 820px) {
  /* On a phone the picture comes first, cropped a little shorter so the search box is still close. */
  .hero { grid-template-columns: 1fr; padding-top: 18px; gap: 26px; } .hero-art { order: -1; max-width: 420px; aspect-ratio: 1 / 1.06; }
  .hero-art .photo img { object-position: 50% 0; }
  .hero-art { aspect-ratio: 1 / .94; } .hero-art .pop-you { display: none; }
  .steps3 { grid-template-columns: 1fr; } .scard { max-width: 460px; }
  .lab { grid-template-columns: 1fr; } .phone { max-width: 310px; width: 100%; justify-self: center; min-height: 0; }
  .tabpanel { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pcard figcaption { padding: 6px 12px; font-size: .8rem; } .pcard b { font-size: .92rem; }
  .pinned .hpin { padding: 8px 0 10px; } .pinned .hpin > h2 { font-size: 1.55rem; } .pinned .hpin .kicker { margin-bottom: 4px; font-size: .9rem; }
  .pinned .tabs { margin-top: 10px; padding-top: 4px; padding-bottom: 10px; } .pinned .tabs button { min-height: 40px; padding: 7px 14px 7px 11px; font-size: .92rem; }
  .pinned .showcase { padding: 14px; border-radius: 26px; } .pinned .tabpanel { gap: 12px; } .pinned .say h3 { font-size: 1.25rem; } .pinned .say p { font-size: .93rem; margin-top: 6px; line-height: 1.4; }
  .pinned .sample { padding: 34px 14px 14px; gap: 8px; font-size: .9rem; } .pinned .sgrid { max-width: 232px; gap: 5px; } .pinned .stitle { font-size: 1.1rem; } .pinned .trow { padding: 8px 4px; }
  /* The switch demo, made compact enough to hold still on a phone screen. */
  #labtour.pinned .sub { display: none; }
  .pinned .lab { margin-top: 10px; padding: 10px; gap: 8px; border-radius: 26px; }
  .pinned .phone { border-width: 7px; border-radius: 32px; padding: 10px 10px 12px; min-height: 0; max-width: 290px; }
  .pinned .psearch { padding: 7px 12px; margin-bottom: 8px; font-size: .84rem; }
  .pinned .plist { gap: 6px; font-size: .84rem; } .pinned .plist .res { gap: 8px; } .pinned .plist .res b { width: 20px; height: 20px; font-size: .7rem; }
  .pinned .plist .res small { font-size: .72rem; } .pinned .plist .gap { padding: 3px 0; font-size: .74rem; } .pinned .plist .res.you { padding: 5px 8px; }
  .pinned .switches { gap: 6px; } .pinned .sw { min-height: 48px; padding: 6px 12px; border-radius: 14px; } .pinned .sw b { font-size: .92rem; }
  .pinned .sw small { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pinned .labstats { margin-top: 6px; gap: 6px; } .pinned .stat { padding: 7px 12px; border-radius: 14px; } .pinned .stat span { font-size: .76rem; } .pinned .stat strong { font-size: 1.55rem; }
  .pinned .note { margin-top: 6px; font-size: .74rem; }
  /* On a phone the choices are one row that slides sideways, running to the screen edges. */
  .tabs { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); }
}

/* ---- Panels ------------------------------------------------------------ */
.summary, .guide, .panel, .draft, .tile, .saved li, .lcard { background: var(--panel); border: 1px solid transparent; border-radius: var(--r); }
.demo { background: var(--amber-tint); border: 1px solid var(--amber); color: var(--amber); border-radius: var(--r-sm); padding: 10px 14px; margin-top: 24px; font-size: .94rem; }

.summary { display: flex; gap: 22px; align-items: flex-start; margin-top: 28px; padding: 24px; border-radius: 28px; background: linear-gradient(150deg, #EAF3FF, #F2ECFF 55%, #FFECF4); }
/* The score: a mono numeral over a bar whose length is the score. */
.ring { --p: 0; --c: var(--red); flex: none; width: 128px; padding: 12px 14px 14px; border: 0; border-radius: 16px; background: var(--bg); box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.ring[data-band=mid] { --c: var(--amber); } .ring[data-band=good] { --c: var(--green); }
.ring::before { content: 'Score'; display: block; font-size: .8rem; color: var(--mute); margin-bottom: 2px; }
.ring span { display: block; font: 700 3rem/1 var(--mono); color: var(--c); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ring::after { content: ''; display: block; height: 4px; margin-top: 10px; border-radius: 2px;
  background: linear-gradient(var(--c), var(--c)) left / calc(var(--p) * 1%) 100% no-repeat, var(--line); }
.place { min-width: 0; }
.place h2 { font-size: 1.35rem; overflow-wrap: anywhere; }
.place p { color: var(--mute); font-size: .94rem; margin-top: 6px; }
.place .counts { color: var(--text); font-weight: 500; }
.actions { margin-top: 12px; }

.headline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.tile { padding: 18px 20px; display: grid; gap: 4px; align-content: start; }
.tile strong { font: 700 2.4rem/1.05 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; width: fit-content;
  background: linear-gradient(90deg, var(--hue, #0071E3), var(--hue2, #8E5CF7)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile:nth-child(1) { background: linear-gradient(150deg, #EAF3FF, #EEF0FF); } .tile:nth-child(2) { background: linear-gradient(150deg, #F2ECFF, #EAF0FF); --hue: #8E5CF7; --hue2: #E0338A; }
.tile:nth-child(3) { background: linear-gradient(150deg, #FFF3E6, #FFEFEA); --hue: #F56300; --hue2: #FF9F0A; }
.tile span { color: var(--mute); font-size: .9rem; line-height: 1.35; }

/* Section headings: large and plain, with air above. */
.insight, section > h2, section > h3, .doc h2 { font-size: clamp(1.9rem, 6.4vw, 2.7rem); font-weight: 700; letter-spacing: -0.035em; margin: clamp(56px, 9vw, 88px) 0 12px; position: relative; }
.insight::before, section > h2::before, section > h3::before, .doc h2::before { content: none; }
.panel h3 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 1.15rem; } .panel h3::before { display: none; }
.guide > h2 { margin: 0; padding: 0; border: 0; } .guide > h2::before { display: none; }
#saved { margin-top: 28px; } #saved h2 { margin-top: 0; border-top: 0; padding-top: 0; font-size: 1.25rem; } #saved h2::before { display: none; }
.sub { font-size: 1.05rem; margin: 22px 0 8px; }

.printhead { display: none; }

/* ---- Report sections --------------------------------------------------- */
/* Each part of the report is a chapter like those on the first page: a small
   coloured label, a large heading, then a soft grey sheet holding white cards. */
#result .kicker { margin-top: clamp(64px, 10vw, 112px); }
#result .kicker + .insight { margin-top: 0; font-size: clamp(1.9rem, 5.2vw, 2.9rem); letter-spacing: -0.04em; line-height: 1.06; max-width: 20ch; }
#result .insight + .hint, #result .insight + .hint + .sheet { margin-top: 12px; } #result .insight + .hint { font-size: 1.05rem; margin-bottom: 0; }
.sheet { background: var(--wash, var(--panel)); border-radius: 36px; padding: clamp(12px, 4vw, 34px); margin-top: 22px; }
.sheet > :first-child { margin-top: 0; } .sheet > :last-child { margin-bottom: 0; }
.sheet table { background: #fff; border-radius: 22px; border-collapse: separate; border-spacing: 0; overflow: hidden; box-shadow: 0 22px 44px -34px rgba(0, 0, 0, .35); }
.sheet th { padding-top: 16px; } .sheet tbody tr:last-child td { border-bottom: 0; }
.sheet tr > :first-child { padding-left: 18px; } .sheet tr > :last-child { padding-right: 18px; }
.sheet .explain figure, .sheet .gsum { background: #fff; }
th .tagline { display: block; width: fit-content; }
.tagline { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 980px; background: #F6ECFF; color: #7A3FD0; font-size: .74rem; font-weight: 600; }
/* Reviews: a block and a colour for each business. */
#revsec .sheet { background: var(--panel); }
.rb { --c: #0071E3; margin-top: 14px; padding: clamp(14px, 3vw, 22px); border-radius: 24px; background: #EAF3FF; }
.rb:first-child { margin-top: 0; } .rb > :last-child { margin-bottom: 0; }
.rb.c1 { --c: #E0590B; background: #FFF1E4; } .rb.c2 { --c: #8E3FD8; background: #F4EAFF; }
.rb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; } .rb-top .tagline { margin: 0; background: #fff; }
.rb-name { display: inline-block; max-width: 100%; padding: 5px 14px; border-radius: 980px; background: var(--c); color: #fff; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.rb .rankhead { margin-top: 0; } .rb .sub:first-of-type { margin-top: 14px; }
.rb + .lockline { margin-top: 14px; }
.sheet .grid { background: #fff; padding: 14px; border-radius: 22px; max-width: 388px; }
.sheet .rankhead { margin-top: 2px; } .sheet table + .rankhead, .sheet table + .hint, .sheet table + .notes { margin-top: 18px; }
.sheet .reach li:first-child { border-top: 0; }
.summary, .guide { border-radius: 36px; } .tile, .panel { border-radius: 24px; }
#fullreport > summary { font-weight: 600; }
#fullreport section > h3 { font-size: 1.5rem; letter-spacing: -0.025em; margin: 44px 0 10px; }

/* ---- Guided fixes ------------------------------------------------------ */
.guide { padding: 26px 22px 26px; border-radius: 28px; }
.gcount { color: var(--iris); font: 700 .95rem var(--sans); letter-spacing: -0.01em; }
/* Every fix as a numbered dot: done, the one in hand, and those still to come. */
.gsteps { list-style: none; display: flex; gap: 6px; max-width: 460px; margin: 10px 0 22px; padding: 0; }
.gsteps li { display: flex; align-items: center; gap: 6px; }
/* The dots stay on one line however many fixes there are: the lines between them give way. */
.gsteps li + li { flex: 1 1 0; min-width: 0; }
.gsteps li + li::before { content: ''; flex: 1 1 0; min-width: 3px; height: 2px; border-radius: 2px; background: var(--line); }
.gsteps b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .86rem; font-weight: 600; background: #fff; color: var(--mute); box-shadow: inset 0 0 0 1.5px var(--line); }
.gsteps .now b { background: var(--iris); color: #fff; box-shadow: 0 0 0 4px var(--iris-tint); }
.gsteps .done b { background: var(--green); color: #fff; box-shadow: none; } .gsteps .passed b { color: var(--text); }
.gsteps .done + li::before, .gsteps .passed + li::before { background: var(--green); }
/* What is still to come, under the fix in hand. */
.gnext { margin-top: 22px; padding: 16px 18px; background: #fff; border-radius: 18px; }
.gnext-h { font-weight: 600; margin-bottom: 8px; } .gnext ol { margin: 0; padding-left: 1.5rem; display: grid; gap: 5px; color: var(--mute); font-size: .96rem; }
.gnext li::marker { font-weight: 600; color: var(--iris); }
#guidehint { font-size: 1.05rem; margin: 12px 0 0; } #guidehint:empty { display: none; } #guidehint + .guide { margin-top: 20px; }
/* The reminder that appears once the reader has scrolled past open fixes. */
.fixpill { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; min-height: 46px; padding: 10px 20px; white-space: nowrap;
  background: linear-gradient(120deg, #0071E3, #7A5CF5); box-shadow: 0 14px 30px -10px rgba(88, 86, 214, .8); font-size: .95rem; }
.fixpill:active:not(:disabled) { transform: translateX(-50%) scale(.97); }
.gbar { height: 4px; border-radius: 2px; background: var(--line); margin: 8px 0 20px; position: relative; overflow: hidden; }
.gbar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--iris); border-radius: 2px; transition: width 500ms var(--ease-out); }
.gtitle { font-size: clamp(1.7rem, 5.8vw, 2.4rem); font-weight: 700; letter-spacing: -0.035em; }
.gwhy { color: var(--mute); margin: 10px 0 18px; max-width: 62ch; }

/* The listing now and after: one line picked out on each. */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.lcard { margin: 0; padding: 12px 14px 14px; min-width: 0; background: var(--bg); }
.lcard figcaption { display: inline-block; font: 600 .76rem/1 var(--sans); padding: 5px 10px; border-radius: 980px; margin-bottom: 10px; border: 1px solid var(--line-strong); color: var(--mute); }
.lcard.after { border-color: var(--cyan-line); }
.lcard.after figcaption { background: var(--cyan); border-color: var(--cyan); color: var(--on-iris); }
.lrow { font-size: .92rem; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; color: var(--mute); overflow-wrap: anywhere; display: grid; gap: 1px; }
.lrow:first-of-type { color: var(--text); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.now .lrow:first-of-type { color: var(--mute); }
.llabel { font-size: .76rem; font-weight: 500; color: var(--mute); }
.lquote { font-style: italic; }
.lval { white-space: pre-wrap; }
.now .lrow.hot { background: var(--red-tint); color: var(--red); outline: 1px dashed var(--red); outline-offset: -1px; }
.now .lrow.hot .llabel { color: var(--red); }
.after .lrow.hot { background: var(--cyan-tint); color: var(--text); outline: 1px solid var(--cyan-line); outline-offset: -1px; font-weight: 500; }
.after .lrow.hot .llabel { color: var(--cyan); }

.ginput label, .days legend { display: block; font-size: .95rem; font-weight: 500; margin-bottom: 6px; padding: 0; }
.days { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.days legend { width: 100%; }
.day { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); cursor: pointer; font-weight: 400; transition: border-color 160ms ease, background-color 160ms ease; }
.day:has(input:checked) { background: var(--iris-tint); border-color: var(--iris); }
.picks .day { flex: 1 1 220px; }
.ginput label.day { display: inline-flex; margin: 0; padding: 8px 12px; }
.day input, .check input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--iris); flex: none; }
.times { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.times label { display: grid; gap: 4px; }
.times input { width: auto; }
.gactions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.gdo { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.gdo h4 { font-size: 1.1rem; margin: 0 0 4px; }
.taps { margin: 0 0 14px; padding-left: 1.5rem; display: grid; gap: 8px; }
.taps li::marker { font-family: var(--mono); color: var(--iris); font-weight: 600; }
.copybox { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px; margin-bottom: 14px; }
.draft-text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- Tables ------------------------------------------------------------ */
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th { text-align: left; color: var(--mute); font-weight: 500; font-size: .82rem; padding: 0 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rname span:first-child, .rname .link { display: block; overflow-wrap: anywhere; }
.bar { display: block; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--line-strong); width: var(--w); min-width: 2px; }
tr.you td { background: var(--iris-tint); } tr.you .rname span:first-child, tr.you .link { font-weight: 600; } tr.you .bar { background: var(--iris); }
tr.viewing .link { text-decoration-color: var(--iris); text-decoration-thickness: 2px; font-weight: 600; }
.notes { margin: 14px 0 0; padding-left: 1.2rem; display: grid; gap: 6px; color: var(--mute); font-size: .96rem; }
.notes li::marker { color: var(--iris); }
#kwtable td:first-child, #misstable td:first-child { overflow-wrap: anywhere; font-weight: 500; }
@media (min-width: 561px) { #kwtable td:first-child, #misstable td:first-child { width: 34%; } }
.leaders { color: var(--mute); font-size: .92rem; } .leaders strong { color: var(--text); }
.advice { font-size: .92rem; color: var(--mute); } .advice .copy { display: flex; margin-top: 8px; }
.rankhead { font-size: 1.25rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; margin: 6px 0 14px; text-wrap: balance; }
#kwsum { margin-top: 18px; } .misssum { margin-top: 12px; }
#kwform { margin-top: 10px; } #kwform label { display: block; font-size: .95rem; }
#rivalrows2 td { overflow-wrap: anywhere; font-size: .94rem; } #rivalrows2 td:first-child { color: var(--mute); }
td.ahead { font-weight: 600; color: var(--green); } td.ahead::before { content: 'Ahead: '; font-weight: 500; }
td.behind { color: var(--red); } td.behind::before { content: 'Behind: '; font-weight: 500; }

/* Position plates. Fill style differs as well as colour: solid, tinted, outlined, dashed. */
.pos, .grid span, .reach strong, .legend span { font: 600 .9rem var(--mono); font-variant-numeric: tabular-nums; border: 1px solid transparent; border-radius: 9px; }
.pos { display: inline-block; padding: 3px 9px; }
.pos.top, .grid .top, .reach .top strong, .legend .top { background: var(--green); color: var(--on-iris); }
.pos.mid, .grid .mid, .reach .mid strong, .legend .mid { background: var(--amber-tint); border-color: var(--amber); color: var(--amber); }
.pos.low, .grid .low, .reach .low strong, .legend .low { background: transparent; border-color: var(--red); color: var(--red); }
.pos.out, .grid .out, .reach .out strong, .legend .out { background: transparent; border: 1px dashed var(--red); color: var(--red); }
.pos.na, .grid .na { background: transparent; border: 1px dashed var(--line-strong); color: var(--mute); }
/* Columns are fixed fifths and squares take their height from their width only;
   letting either follow content made some squares grow and push others out. */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 7px; max-width: 360px; margin: 4px 0 12px; }
.grid span { border-radius: 14px; width: 100%; min-width: 0; aspect-ratio: 1; display: grid; place-items: center; font-size: .98rem; overflow: hidden; }
.grid .here { outline: 2px solid var(--text); outline-offset: 2px; }
.mapfor { margin: 18px 0 8px; }
.legend span { display: inline-block; padding: 1px 7px; margin: 0 4px 4px 10px; font-size: .82rem; } .legend span:first-child { margin-left: 0; }
.reach { list-style: none; margin: 16px 0 12px; padding: 0; }
.reach li { display: grid; grid-template-columns: 9.5rem auto 1fr; gap: 4px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.reach li:first-child { border-top: 1px solid var(--line); }
.reach .where { font-weight: 500; }
.reach strong { padding: 3px 9px; justify-self: start; font-family: var(--sans); }
.reach .detail { color: var(--mute); font-size: .94rem; }

/* ---- Checklist --------------------------------------------------------- */
.findings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.findings li { padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); position: relative; }
.findings li::before { content: ''; position: absolute; left: 0; top: 15px; width: 22px; height: 22px; border-radius: 6px; background: var(--mark, var(--line));
  -webkit-mask: var(--glyph) center / 14px no-repeat, linear-gradient(#000, #000); mask: var(--glyph) center / 14px no-repeat, linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.findings li.fail { --mark: var(--red); --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.findings li.warn { --mark: var(--amber); --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v6.5M8 12.6v.4' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.findings li.pass { --mark: var(--green); --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.findings li.empty { color: var(--mute); padding-left: 0; } .findings li.empty::before { display: none; }
.findings strong { font-weight: 600; }
.findings p { color: var(--mute); font-size: .95rem; margin-top: 4px; max-width: 66ch; }
.findings p.fix { color: var(--text); }
.findings p.fix::before { content: 'Fix: '; color: var(--iris); font-weight: 600; }
details { margin-top: 24px; }
summary { cursor: pointer; padding: 12px 0; min-height: 48px; font-weight: 500; color: var(--iris); }
details ul, details .hint { margin-top: 8px; }
#fullreport { margin-top: 56px; border-top: 1px solid var(--line); }

.panel { margin-top: 20px; padding: 18px; }
.panel label { display: block; font-size: .95rem; }
.panel label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; min-height: 44px; }
#postsbox { margin-top: 14px; }
#healthrow { border-top: 1px solid var(--line); padding-top: 14px; } #healthrow .hint { margin-bottom: 8px; }
.draft { padding: 16px; margin-bottom: 10px; }
.draft-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.flag { color: var(--amber); font-size: .92rem; margin-top: 8px; }
#themes p { color: var(--mute); font-size: .95rem; margin-top: 6px; }

.saved { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.saved li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; }
.sname { flex: 1 1 200px; min-width: 0; display: grid; }
.sname span { color: var(--mute); font-size: .92rem; }

/* ---- Locked parts ------------------------------------------------------ */
/* The unlock prompt: a panel with a lit edge that runs from iris to cyan. */
.paywall { position: relative; margin-top: 18px; padding: 26px 24px; border-radius: 28px; display: grid; gap: 8px; justify-items: start;
  background: linear-gradient(var(--raised), var(--raised)) padding-box, linear-gradient(var(--edge, 120deg), #2997FF, #A78BFA, #FF7AB8) border-box;
  border: 1.5px solid transparent; box-shadow: 0 24px 60px -28px rgba(0, 113, 227, .45); }
.paywall strong { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.paywall p { margin: 0; max-width: 54ch; color: var(--mute); }
.paywall .hint { font-size: .9rem; }
.paywall .status { min-height: 0; margin: 0; color: var(--amber); }
/* A compact unlock prompt, for sections that already show most of their content. */
.lockline { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-top: 14px; padding: 14px 18px;
  border-radius: var(--r); background: linear-gradient(var(--raised), var(--raised)) padding-box, linear-gradient(120deg, #2997FF, #A78BFA, #FF7AB8) border-box; border: 1.5px solid transparent; }
.lockline + .hint { margin-top: 10px; }
.lockline > span:first-child { flex: 1 1 240px; font-weight: 500; }
.lockline .status { flex: 1 1 100%; min-height: 0; margin: 0; } .lockline .status:empty { display: none; }
/* A price range drawn as a span on a shared scale. */
.money { font: 600 .98rem var(--mono); font-variant-numeric: tabular-nums; }
.span-bar { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: linear-gradient(90deg, transparent var(--from), var(--iris) var(--from), var(--iris) var(--to), transparent var(--to)), var(--line); }
tr.you .span-bar { background: linear-gradient(90deg, transparent var(--from), var(--cyan) var(--from), var(--cyan) var(--to), transparent var(--to)), var(--line); }
/* Google's own summary of a listing's reviews. */
.gsum { margin: 8px 0 12px; padding: 18px 20px; background: var(--panel); border-radius: var(--r); }
.gsum p { white-space: pre-line; } .gsum cite { display: block; margin-top: 8px; color: var(--mute); font-size: .84rem; font-style: normal; }
.quote { color: var(--mute); font-size: .9rem; }
#hourbody td, #hourbody th { font-size: .9rem; } #hourbody td:first-child { color: var(--mute); white-space: nowrap; }
#hourbody td.ahead::before, #hourbody td.behind::before { content: none; }
#revbody table td.behind::before { content: none; }
@media (max-width: 560px) { #revbody .quote, #revbody th:last-child { display: none; } }

/* A taste before payment: these parts of a section stay hidden. */
#areabody.teaser #rankrows, #areabody.teaser #areanote, #rivalbody.teaser .sub, #rivalbody.teaser #rivaltodo { display: none; }
.blur { filter: blur(5px); -webkit-user-select: none; user-select: none; pointer-events: none; }
.blurbox { display: grid; filter: blur(6px); -webkit-user-select: none; user-select: none; pointer-events: none; opacity: .7; margin-top: 4px; }
.blurrow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--mute); font-size: .95rem; }
.locklist { list-style: none; margin: 12px 0 4px; padding: 0; border-top: 1px solid var(--line); }
.locklist li { padding: 13px 0 13px 32px; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; }
.locklist li::before { content: ''; position: absolute; left: 2px; top: 50%; width: 15px; height: 17px; margin-top: -9px; background: var(--mute);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Crect x='2' y='8' width='12' height='9' rx='1.5'/%3E%3Cpath d='M4.5 8V5.5a3.5 3.5 0 017 0V8' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Crect x='2' y='8' width='12' height='9' rx='1.5'/%3E%3Cpath d='M4.5 8V5.5a3.5 3.5 0 017 0V8' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---- Foot and document pages ------------------------------------------- */
.fine { color: var(--mute); font-size: .86rem; margin-top: 48px; max-width: 70ch; }
.foot { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; }
.foot a { min-height: 44px; display: inline-flex; align-items: center; color: var(--mute); }
.doc .hero { padding-bottom: 48px; }
.doc .hero h1 { font-size: clamp(2.4rem, 7vw, 3.5rem); }
.doc .hero .lede { margin-bottom: 0; }
.doc p, .doc li { color: var(--mute); max-width: 68ch; } .doc p { margin-top: 8px; }
.doc ul { padding-left: 1.2rem; display: grid; gap: 8px; margin: 8px 0 0; } .doc strong { color: var(--text); font-weight: 600; }

@media (max-width: 560px) {
  /* On a phone the photo cards keep only their title. */
  .pcard figcaption { font-size: 0; } .pcard b { font-size: .92rem; }
  .ba { grid-template-columns: 1fr; }
  .headline { grid-template-columns: 1fr; }
  .tile { grid-template-columns: 7.6rem 1fr; align-items: baseline; gap: 12px; }
  .tile strong { white-space: nowrap; }
  .summary { flex-direction: column; }
  .hero form button { flex: 1 1 100%; } .hero form input { font-size: 1rem; padding-left: 46px; background-position: 14px 50%; }
  .reach li { grid-template-columns: 1fr auto; } .reach .detail { grid-column: 1 / -1; }
  #kwtable .leaders, #kwtable th:last-child { display: none; }
  .sheet tr > :first-child { padding-left: 14px; } .sheet tr > :last-child { padding-right: 14px; } .sheet .grid { padding: 10px; }
  /* Missing searches: the advice drops under the search and its position, full width. */
  #misstable thead { display: none; } #misstable tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 4px 0; }
  #misstable td { border: 0; padding: 8px 14px; } #misstable td:nth-child(3) { grid-column: 1 / -1; padding-top: 0; } #misstable tr:last-child { border-bottom: 0; }
  /* Column headings wrap on a phone, so a four-column table never runs off the screen. */
  th.num { white-space: normal; } th, td { padding-left: 6px; padding-right: 6px; }
  #areabody table { table-layout: fixed; } #areabody th.num { width: 24%; } #areabody th.num:last-child { width: 20%; } #areabody th:first-child { width: 32%; } #areabody td.num { font-size: .84rem; }
  /* Rival comparison: fixed shares of the width, and "Ahead" / "Behind" on a line of its own,
     so no word has to break in the middle. */
  #rivalbody table { table-layout: fixed; } #rivalbody th:first-child { width: 25%; } #rivalbody th:nth-child(2) { width: 33%; }
  #rivalrows2 td { overflow-wrap: break-word; } #rivalrows2 td.ahead::before, #rivalrows2 td.behind::before { display: block; }
  #rivalrows2 td:first-child { white-space: normal; overflow-wrap: normal; font-size: .88rem; }
  .copybox { flex-direction: column; }
}

/* ---- Emphasis and explanatory pictures ---------------------------------- */
/* Key words carry weight as well as colour, so they still read without colour. */
.k { font-weight: 600; }
.k-good { color: var(--green); } .k-bad { color: var(--red); } .k-warn { color: var(--amber); }
.k-rival { color: var(--iris); } .k-you { color: var(--cyan); }
.k-hl { color: var(--text); background: linear-gradient(transparent 64%, var(--iris-tint) 0); }
.hero .k-hl { background: none; color: var(--text); }
.paywall .k-hl, .rankhead .k-hl { background: linear-gradient(transparent 64%, var(--iris-tint) 0); }

/* How it works: three small drawings under the link bar. */
.how { list-style: none; margin: clamp(40px, 7vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; max-width: 720px; }
.how li { display: grid; gap: 10px; align-content: start; justify-items: center; color: var(--mute); font-size: .95rem; line-height: 1.4; }
.how svg { width: 44px; height: 44px; }
.how strong { display: block; color: var(--text); font-weight: 600; }
/* Section pictures: a drawing with one line saying what it shows. */
.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.explain figure { margin: 0; padding: 18px; background: var(--panel); border-radius: var(--r); display: grid; grid-template-columns: 156px 1fr; gap: 16px; align-items: center; }
.explain svg { width: 156px; height: auto; }
.explain figcaption { color: var(--mute); font-size: .94rem; line-height: 1.45; }
/* One drawing style: 2px rounded strokes in the page's own colours. */
svg [class^='i-'] { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-line { stroke: var(--mute); } .i-dim { stroke: var(--line-strong); } .i-accent { stroke: var(--iris); stroke-width: 2.5 !important; }
.i-fill { fill: var(--iris) !important; stroke: none; }
.i-dash { stroke: var(--line-strong); stroke-dasharray: 3 5; }
.i-dot { fill: var(--iris) !important; stroke: none; } .i-ping { fill: var(--iris) !important; stroke: none; opacity: .25; }
.i-you { fill: var(--cyan) !important; stroke: var(--bg); } .i-you-dot { fill: var(--cyan) !important; stroke: none; }
.i-grid circle { fill: var(--line-strong); }
.i-top { fill: var(--green) !important; stroke: none; } .i-mid { fill: var(--amber) !important; stroke: none; opacity: .75; } .i-low { fill: var(--red) !important; stroke: none; opacity: .45; }
.i-text { font: 600 14px var(--mono); fill: var(--mute) !important; stroke: none; }
.i-text.you { fill: var(--cyan) !important; } .i-text.good { fill: var(--green) !important; } .i-text.warn { fill: var(--amber) !important; } .i-text.bad { fill: var(--red) !important; }
@media (max-width: 560px) { .how { grid-template-columns: 1fr; gap: 14px; text-align: left; max-width: 340px; } .how li { grid-template-columns: 44px 1fr; align-items: center; justify-items: start; gap: 12px; } .explain { grid-template-columns: 1fr; } .explain figure { grid-template-columns: 124px 1fr; gap: 12px; } .explain svg { width: 124px; } }

/* ---- Motion ------------------------------------------------------------ */
/* The first page moves; the report stays still apart from the score bar. All of
   it is for screens and for visitors who have not asked for less motion. */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
@media screen and (prefers-reduced-motion: no-preference) {
  .ring { transition: --p 600ms var(--ease-out); }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes arrive { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
  @keyframes float { from { translate: 0 -5px; } to { translate: 0 6px; } }
  @keyframes drift { from { transform: translate(-6%, -4%) scale(1); } to { transform: translate(8%, 6%) scale(1.12); } }
  @keyframes bounce { 0% { scale: .8; } 60% { scale: 1.08; } 100% { scale: 1; } }
  @keyframes tick { from { opacity: 0; translate: -8px 0; } to { opacity: 1; translate: 0 0; } }

  /* First screen: the words arrive one after another, then the picture, then
     its glass cards, which keep floating gently. */
  .hero-text > * { animation: rise 760ms var(--ease-out) both; }
  .hero-text > :nth-child(2) { animation-delay: 80ms; } .hero-text > :nth-child(3) { animation-delay: 170ms; }
  .hero-text > :nth-child(4) { animation-delay: 260ms; } .hero-text > :nth-child(n+5) { animation-delay: 350ms; }
  @keyframes halo { 0%, 100% { box-shadow: 0 22px 44px -18px rgba(88, 86, 214, .55), 0 0 0 6px rgba(0, 113, 227, .08); } 50% { box-shadow: 0 22px 44px -18px rgba(88, 86, 214, .7), 0 0 0 11px rgba(142, 92, 247, .16); } }
  .hero form:not(:focus-within):not(.busy) { animation: rise 760ms var(--ease-out) 260ms both, halo 2.800s ease-in-out 1.400s infinite; }
  .hero-art::before { content: ''; position: absolute; inset: 8% 0 -6% 4%; z-index: -1; border-radius: 50%; filter: blur(48px);
    background: radial-gradient(closest-side, rgba(123, 82, 245, .5), rgba(255, 122, 184, .25) 60%, transparent); animation: drift 9s ease-in-out infinite alternate; }
  .hero-art .pop { animation: arrive 620ms var(--ease-out) both, float 5.5s ease-in-out infinite alternate; }
  .hero-art .pop-search { animation-delay: 620ms, 0s; }
  .hero-art .pop-list { animation-delay: 820ms, -1.8s; } .hero-art .pop-you { animation-delay: 1020ms, -3.4s; }
  .pop-list span { animation: tick 420ms var(--ease-out) both; }
  .pop-list span:nth-of-type(1) { animation-delay: 1250ms; } .pop-list span:nth-of-type(2) { animation-delay: 1400ms; }
  .pop-list span:nth-of-type(3) { animation-delay: 1550ms; } .pop-list span:nth-of-type(4) { animation-delay: 1700ms; }

  /* The story: each piece glides up as it is scrolled to, and its photograph settles. */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 360ms var(--ease-out) var(--d, 0ms), transform 460ms var(--ease-out) var(--d, 0ms); }
  .reveal.in { opacity: 1; transform: none; }
  .scard .pop-in { animation: float 5s ease-in-out infinite alternate; }
  .pcard img { transition: scale 500ms var(--ease-out); }

  /* The listing you fix: rows settle into their new order, and the position bounces. */
  .plist > * { animation: rise 320ms var(--ease-out) both; }
  .plist > :nth-child(2) { animation-delay: 40ms; } .plist > :nth-child(3) { animation-delay: 80ms; } .plist > :nth-child(n+4) { animation-delay: 120ms; }
  .plist .res.you { animation: rise 320ms var(--ease-out) 120ms both, bounce 520ms var(--ease-out) 120ms; }
  #labpos { display: inline-block; transform-origin: left center; animation: bounce 460ms var(--ease-out); }
  .sw small { transition: color 200ms ease; }

  /* Changing tab: the new sample slides in. */
  .tabpanel:not([hidden]) .say { animation: rise 380ms var(--ease-out) both; }
  .tabpanel:not([hidden]) .sample { animation: arrive 460ms var(--ease-out) 60ms both; }
  .sgrid span { animation: arrive 320ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 22ms); }
}
@media screen and (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .pcard:hover img { scale: 1.05; }
}

/* On a phone the picture fills the width, so its glow holds still and stays inside:
   a drifting one reached past the screen edge and let the page slide sideways. */
@media screen and (max-width: 820px) { .hero-art::before { animation: none !important; inset: 10% 6% -4% 6% !important; } }

/* On paper the report is plain black on white. */
@media print {
  body::before { display: none; } .summary, .tile { background: #fff !important; } .tile strong { color: #111; background: none; }
  .topbar, #story { display: none; } .sheet { background: none; padding: 0; } .sheet table, .sheet .grid { box-shadow: none; }
  /* Paper wants smaller headings, less air, and lines where the screen used shadows. */
  #result, #saved { max-width: none; }
  #result .kicker { margin-top: 22pt; } #result .kicker + .insight { font-size: 18pt; max-width: none; }
  #fullreport section > h3, section > h3 { font-size: 14pt; margin-top: 18pt; }
  .sheet { margin-top: 8pt; } .sheet table, .sheet .grid, .sheet .explain figure, .sheet .gsum { border: 1px solid var(--line); }
  .summary { padding: 12pt; margin-top: 0; } .tile strong { font-size: 18pt; } .ring span { font-size: 26pt; }
  .kicker, .insight, section > h3, .rankhead, .sub { break-after: avoid; } .sheet .grid, .explain figure, .gsum { break-inside: avoid; }
  :root { --bg: #fff; --panel: #fff; --raised: #fff; --line: #C9CED6; --line-strong: #8A93A3; --text: #111; --mute: #444;
    --iris: #2B3FC4; --iris-tint: #EEF0FF; --on-iris: #fff; --cyan: #0B7A6C; --green: #146C3A; --green-tint: #E2F3E8;
    --amber: #8A5A00; --amber-tint: #FFF3CC; --red: #B81D18; --red-tint: #FBE9E7; }
  html { color-scheme: light; } body { font-size: 11pt; } main { padding: 0; max-width: none; }
  .summary, .guide, .panel, .draft, .tile, .lcard, .explain figure { border-color: var(--line); }
  .hero, #saved, .noprint, .copy, .demo, summary, .foot { display: none !important; }
  details > :not(summary) { display: revert !important; }
  .printhead { display: block; font-size: 9pt; font-weight: 600; color: var(--mute); padding-bottom: 6pt; margin-bottom: 10pt; border-bottom: 1px solid var(--line); }
  #result .kicker.noprint + .insight.noprint + section + section .kicker { margin-top: 14pt; }
  .findings li, .draft, tr, .tile { break-inside: avoid; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
