/* Signal. Plain CSS, taken from the canvas mockups (design/project/*.dc.html). */
:root {
  --accent: #1F4FD8; --ink: #1F1F1F; --mid: #4B4B4B; --muted: #6B6B6B; --faint: #9A9A9A;
  --line: #E3E3E3; --line-soft: #F0F0F0; --panel: #F7F7F7; --green: #1A7F4B; --orange: #EA580C; --red: #B42318; --amber: #9A4708;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --surface: #FFFFFF; --page: #F6F6F7; --soft: #F6F7F9; --soft2: #EEF0F3; --edge: #E6E8EC; --edge2: #DCE0E6; --slate: #5B6475; --quiet: #8A919E; --dot: #C9CED6; --strip: #ECEEF3;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--surface); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--ink); } a:hover { color: var(--accent); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 28px; height: 28px; background: var(--accent); border-radius: 4px; }
.brand .name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.brand .what { font-size: 13px; color: var(--faint); margin-left: 8px; }
/* the Dark switch and, to its right, the menu button; the menu drops down from the button */
.topacts { display: flex; align-items: center; gap: 8px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 36px; height: 36px; box-sizing: border-box; border: 1px solid var(--edge2); border-radius: 999px; background: var(--surface); color: var(--slate); display: inline-flex; align-items: center; justify-content: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 16px; height: 16px; }
.menu summary .x, .menu[open] summary .bars { display: none; } .menu[open] summary .x { display: block; }  /* open: the three bars become a cross */
.menu summary:hover, .menu[open] summary { border-color: var(--accent); color: var(--ink); }
.menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu nav { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; min-width: 220px; padding: 6px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--edge); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,0.06), 0 14px 32px rgba(16,24,40,0.14); }
.menu a { font-size: 14px; font-weight: 500; color: var(--mid); text-decoration: none; padding: 10px 12px; border-radius: 9px; min-height: 44px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; white-space: nowrap; }
.menu a:hover { color: var(--ink); background: var(--soft); }
.menu a.on { color: var(--ink); font-weight: 600; background: var(--soft2); }
.menu .fav-count { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); }
.menu .fav-count[hidden] { display: none; }
/* With scripts on, signal.js lifts the menu's links out into a panel that slides in from the right, under the
   header, and pushes the page below the header across with it. The header itself stays where it is, and its menu
   button turns into a cross. Without scripts the links stay in the small drop-down above. */
:root { --drawer-w: min(300px, 82vw); }
html.js body > main, html.js body > footer { transition: transform 0.36s cubic-bezier(0.3, 0.1, 0.2, 1); }
html.menu-open body > main, html.menu-open body > footer { transform: translateX(calc(-1 * var(--drawer-w))); }
html.menu-open body > main, html.menu-open body > footer { pointer-events: none; }  /* a click on the page behind closes the menu */
.drawer { position: fixed; z-index: 40; top: var(--menu-top, 0px); right: 0; bottom: 0; width: var(--drawer-w); box-sizing: border-box; padding: 14px 14px 24px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
          background: var(--surface); border-left: 1px solid var(--edge); transform: translateX(100%); visibility: hidden; transition: transform 0.36s cubic-bezier(0.3, 0.1, 0.2, 1), visibility 0s 0.36s; }
html.menu-open .drawer { transform: none; visibility: visible; transition-delay: 0s; }
.drawer a { font-size: 16px; font-weight: 500; color: var(--mid); text-decoration: none; padding: 12px 12px; border-radius: 10px; min-height: 48px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer a:hover { color: var(--ink); background: var(--soft); }
.drawer a.on { color: var(--ink); font-weight: 600; background: var(--soft2); }
.drawer .fav-count { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); } .drawer .fav-count[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  html.js body > main, html.js body > footer, .drawer, .panel, .panel-in, .grid, .viewsw .thumb { transition: none !important; }
}
.updated { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; color: var(--muted); text-align: right; }
.updated strong { font-weight: 600; color: var(--ink); }
main { flex: 1 0 auto; }
.bottom { border-top: 1px solid var(--line); background: var(--surface); }
.bottom .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }
.maker { display: inline-flex; align-items: center; gap: 10px; } .maker svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.bottom nav { display: flex; gap: 20px; }
.bottom a { color: var(--muted); text-decoration: none; } .bottom a:hover { color: var(--accent); }

.wrap { max-width: 1328px; margin: 0 auto; padding-left: 56px; padding-right: 56px; }

/* filters */
.filters { padding-top: 0; padding-bottom: 28px; display: flex; flex-direction: column; gap: 22px; }
/* the count and "last updated" sit on a strip of their own colour, running the full width under the header */
.summary, .toprow { background: var(--strip); box-shadow: 0 0 0 100vmax var(--strip); clip-path: inset(0 -100vmax); }
.summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.summary .viewsw { background: var(--edge2); }
/* the number, then beside it what it counts and, under that in smaller type, what it is out of */
.count { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--mid); }
.count .cw { display: flex; flex-direction: column; gap: 3px; line-height: 1.25; }  /* both lines in the same small type */
.count small { font-size: inherit; }
/* the number is set like the score on a card: same size, weight, spacing and blue */
.count strong { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--accent); }
.tools { display: none; align-items: center; gap: 8px; }
.panel-in { display: flex; flex-direction: column; gap: 16px; }
.viewsw { position: relative; display: inline-flex; background: var(--soft2); border-radius: 999px; padding: 3px; gap: 2px; }
/* the white pill behind the chosen layout slides from one button to the other (signal.js places it) */
.viewsw .thumb { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.viewsw.ready .thumb { transition: transform 0.3s cubic-bezier(0.3, 0.1, 0.2, 1), width 0.3s cubic-bezier(0.3, 0.1, 0.2, 1); }
.viewsw.slides button { position: relative; z-index: 1; transition: color 0.2s; } .viewsw.slides button.on { background: none; box-shadow: none; }
/* switching layout: the cards dip out, change shape, and come back */
.grid { transition: opacity 0.26s ease, transform 0.26s ease; }
.grid.swapping { opacity: 0; transform: translateY(10px); transition-duration: 0.14s; }
.viewsw button { font-family: inherit; font-size: 13px; font-weight: 500; color: var(--slate); background: none; border: 0; border-radius: 999px; padding: 7px 12px; min-height: 34px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.viewsw button.on { font-weight: 600; color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.viewsw svg, #filter-toggle svg { width: 14px; height: 14px; fill: currentColor; }
#filter-toggle { background: var(--surface); }
.filters form, .filters .bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.select { position: relative; display: inline-flex; }
.select select { appearance: none; -webkit-appearance: none; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink); padding: 13px 48px 13px 20px; border: 1px solid var(--edge2); border-radius: 12px; background: var(--surface); min-height: 48px; min-width: 200px; }
.select svg { position: absolute; right: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px; pointer-events: none; }
.seg { display: inline-flex; align-self: flex-start; background: var(--soft2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg button { font-family: inherit; border: 0; background: none; cursor: pointer; }
.seg a, .seg button { font-size: 14px; font-weight: 500; color: var(--slate); padding: 6px 14px; border-radius: 8px; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.seg a.on, .seg button.on { font-weight: 600; color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.btn { font-family: inherit; font-size: 13px; font-weight: 600; padding: 10px 14px; border: 1px solid var(--ink); border-radius: 4px; background: var(--surface); color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.btn.round { border-radius: 8px; padding: 10px 18px; }
.btn.dark { background: var(--ink); color: #FFFFFF; }
.btn.quiet { border-color: var(--edge2); color: var(--mid); font-weight: 500; }
.btn.dark:hover { color: #FFFFFF; }

.snapshot { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 720px; }

/* card grid */
.card[hidden] { display: none; }
.grid { padding-top: 8px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.empty { padding: 40px 0 120px; font-size: 15px; line-height: 1.5; color: var(--mid); max-width: 640px; }
.card { background: var(--surface); border: 1px solid var(--edge); border-radius: 22px; --px: 24px; padding: 0 var(--px) 28px; display: flex; flex-direction: column; gap: 24px; min-width: 0; box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 14px 32px rgba(16,24,40,0.06); position: relative; overflow: hidden; }
/* the bar along the top says what state the company is in: watching, in an offer period, called, missed */
.st-watching { --c: var(--accent); --c-tint: #E9EEFC; --c-band: #F4F7FE; }
.st-offer { --c: var(--orange); --c-tint: #FFEDD5; --c-band: #FFF7EC; }
.st-called { --c: var(--green); --c-tint: #E3F3EA; --c-band: #F2FAF5; }
.st-missed { --c: var(--red); --c-tint: #FDE7E4; --c-band: #FEF4F2; }
.st-dismissed, .st-none { --c: var(--slate); --c-tint: var(--soft2); --c-band: var(--soft); }
.card::before, .title::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--c, var(--accent)); }
.card.called, .card.missed { background: var(--surface); }
/* a block in the card's own colour behind the status and the score */
.band { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 calc(-1 * var(--px)); padding: 22px var(--px) 16px; background: var(--c-band, var(--soft)); }
.band .status { margin-bottom: 0; } .band .status .ico { background: var(--surface); }
/* a long badge beside the status (Advisor's pick) drops to a line of its own before it can push the score off the card */
.card .band .status { flex-wrap: wrap; row-gap: 6px; min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--c, var(--slate)); margin-bottom: 4px; }
.status .ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c-tint, #E9EEFC); color: var(--c, var(--accent)); }
.status .ico svg { width: 16px; height: 16px; }
.badge { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #FFFFFF; background: var(--accent); padding: 4px 8px; border-radius: 3px; margin-bottom: 4px; }
.badge.warm { background: var(--mid); } .badge.called { background: var(--green); } .badge.missed { background: var(--amber); } .badge.offer { background: var(--ink); } .badge.dismissed { background: var(--faint); }
.named { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--edge); background: var(--surface); object-fit: contain; padding: 5px; }
.logo.none { display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--c, var(--accent)); background: var(--c-tint, var(--soft2)); border-color: transparent; }
.card h2 a { color: inherit; text-decoration: none; } .card h2 a:hover { color: var(--c, var(--accent)); }
.trend { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c-tint, var(--soft2)); color: var(--c, var(--accent)); }
.trend svg { width: 17px; height: 17px; }
.trend.up, .trend.down { background: var(--surface); color: var(--c, var(--accent)); }
/* favourites: a heart that fills when pressed; kept in the reader's own browser */
.fav { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--edge2); background: var(--surface); color: var(--slate); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fav svg, .favbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.fav:hover { border-color: #F3A6B5; color: #E11D48; }
.fav[aria-pressed=true], .favbtn[aria-pressed=true] { color: #E11D48; border-color: #F9C6D1; background: #FFF1F3; } .fav[aria-pressed=true] svg, .favbtn[aria-pressed=true] svg { fill: currentColor; }
/* long-form pages: privacy */
.prose { max-width: 760px; gap: 14px; font-size: 15px; line-height: 1.6; color: var(--mid); }
.prose h1 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.prose h2 { margin: 18px 0 0; font-size: 20px; color: var(--ink); } .prose h3 { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.prose p { margin: 0; } .prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; } .prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--accent); }
.todo { background: #FFE08A; color: #6B4A00; border-radius: 5px; padding: 1px 6px; font-weight: 600; }
/* the adviser's named investors, picked out wherever they appear on a profile */
.nm { background: #FFF1C2; border-radius: 5px; padding: 1px 5px; margin: 0 -2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
table.t tr.nm-row td { background: #FFF8E1; } table.t tr.nm-row td:first-child { box-shadow: inset 3px 0 0 #E8A80C; padding-left: 12px; }
/* rival companies on the register: the same treatment in teal, so the two lists can be told apart */
.nm.rv { background: #D5F2EC; } table.t tr.nm-row.rv td { background: #EDF9F6; } table.t tr.nm-row.rv td:first-child { box-shadow: inset 3px 0 0 #0E9384; }
.nm-tag.rv { background: #BDE8E0; color: #0A5148; }
.nm-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #FFE08A; color: #6B4A00; font-size: 11px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
/* on the Favourites page: what has moved since the heart was pressed */
.since { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: -10px; padding: 10px 12px; border-radius: 14px; background: var(--soft); font-size: 12px; color: var(--muted); }
.since[hidden] { display: none; }
.since .when { flex: 1 0 100%; }
.since .chg { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--edge); font-weight: 600; color: var(--ink); white-space: nowrap; }
.since .chg small { font-size: 11px; font-weight: 500; color: var(--muted); }
.since .chg.up { color: var(--green); } .since .chg.down { color: var(--red); }
/* under a card's three figures, on one line: the % rise or fall in the share price since it was flagged, in the card's own colour */
.sflag { display: flex; align-items: center; gap: 10px; margin-top: -12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--c-tint, #E9EEFC); container-type: inline-size; }
.sflag .fl { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--c, var(--accent)); }
.sflag .fl svg { width: 13px; height: 13px; }
.sflag .l { flex: 1; min-width: 0; font-size: 11.5px; color: var(--mid); } .sflag .l::first-letter { text-transform: uppercase; }
/* on a narrow card the label shortens to "Since flagged" so it and the figure stay on one line */
@container (max-width: 258px) { .sflag .sp { display: none; } }
.sflag .v { flex: none; display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; color: var(--c, var(--accent)); }
.sflag .v svg { width: 14px; height: 14px; }
/* Check a company: a search box, the matching companies, then the chosen company's score and the working behind it */
.page.check { padding-top: 28px; }
.checkbox h1 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; }
.checkbox .lede { margin: 0; font-size: 15px; line-height: 1.55; color: var(--mid); max-width: 680px; }
.find { position: relative; display: block; max-width: 560px; }
.find svg { position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--slate); pointer-events: none; }
.find input { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 16px; font-weight: 500; color: var(--ink); padding: 14px 18px 14px 46px; min-height: 52px; border: 1px solid var(--edge2); border-radius: 12px; background: var(--surface); -webkit-appearance: none; appearance: none; }
.find input::placeholder { color: var(--quiet); font-weight: 400; }
.find input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hits { list-style: none; margin: -10px 0 0; padding: 6px; max-width: 560px; box-sizing: border-box; border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.hits[hidden], .nohit[hidden], .result[hidden] { display: none; }
.hits button { width: 100%; font-family: inherit; text-align: left; border: 0; background: none; cursor: pointer; padding: 10px 12px; border-radius: 8px; display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); }
.hits button:hover, .hits button:focus-visible, .hits li.first button { background: var(--soft); }
.hits .nm2 { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hits .nm2 b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hits .nm2 span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hits .sc { flex: none; font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--slate); }
.hits .sc.list { color: var(--accent); }
.hits .more { padding: 8px 12px 6px; font-size: 12px; color: var(--muted); }
/* the companies this reader has looked up before, newest first; kept in their own browser */
.recent { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.recent[hidden] { display: none; }
.recent .rh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.box .recent h2 { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.recent .clear { font-family: inherit; font-size: 12px; font-weight: 500; color: var(--muted); background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.recent .clear:hover { color: var(--ink); }
.recent .hits { margin: 0; max-width: none; }
.nohit { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mid); max-width: 560px; }
.result { position: relative; overflow: hidden; }
.result::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--c, var(--slate)); }
.result .rhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.result .who { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.result .tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--c-tint, var(--soft2)); color: var(--c, var(--slate)); }
.box.result h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.result .meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.result .big { display: flex; align-items: baseline; gap: 8px; }
.result .big .n { font-size: 64px; line-height: 0.95; font-weight: 600; letter-spacing: -0.04em; color: var(--c, var(--slate)); }
.result .big .l { font-size: 13px; color: var(--muted); }
.result .verdict { margin: 0; font-size: 15px; line-height: 1.55; color: var(--mid); max-width: 680px; }
.result .verdict strong { color: var(--ink); font-weight: 600; }
/* the score against the flag line, both on a 0 to 100 track */
.meter { position: relative; height: 10px; border-radius: 999px; background: var(--soft2); margin: 18px 0 22px; }
.meter .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--c, var(--slate)); min-width: 4px; }
.meter .line { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--ink); }
.meter .line span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.meter .ends { position: absolute; left: 0; right: 0; top: 16px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.result .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.footacts { display: flex; align-items: center; gap: 8px; flex: none; }
.favbtn { justify-content: center; gap: 8px; }
.namecol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.inlist { display: none; } .card .named .meta { margin-top: 0; }
.scrub { touch-action: pan-y; cursor: crosshair; -webkit-user-select: none; user-select: none; } .scrub .marks { transition: opacity 0.15s; } .scrubbing .marks { opacity: 0.15; }
.chart[hidden] { display: none; }
/* cards rise into view; with no script, or for anyone who prefers less motion, they are simply there */
html.js .card { opacity: 0; transform: translateY(14px); }
html.js .card.in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { html.js .card, html.js .card.in { opacity: 1; transform: none; transition: none; } }
.card h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
/* the ticker · sector · country line runs the full width of the card so it stays on one line */
.card .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: -16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .score { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.card .score .n { display: inline-flex; align-items: center; gap: 8px; font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--c, var(--accent)); }
.card .score .l { font-size: 11px; color: var(--muted); white-space: nowrap; }
.spark { width: 100%; height: auto; display: block; font-family: Inter, system-ui, sans-serif; }
.figs { border: 1px solid var(--edge); border-radius: 16px; background: var(--surface); }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figs > div { padding: 16px 10px 16px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.figs > div + div { border-left: 1px solid var(--edge); }
.figs .l, dl.pairs dt { display: block; font-size: 11px; color: var(--muted); }
.figs .v { font-family: var(--mono); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin-top: auto; }
dl.pairs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; font-size: 13px; border: 1px solid var(--edge); border-radius: 16px; padding: 14px 16px; }
dl.pairs dd { margin: 0; font-weight: 600; }
.whybox { display: flex; flex-direction: column; gap: 14px; }
.whybox h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.45; color: var(--quiet); }
.why li { display: flex; gap: 10px; }
.why .dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); margin-top: 6px; }
.why strong { font-weight: 600; color: var(--ink); }  /* the sign's name, as dark as the "Why" heading; its detail stays grey */
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.card .foot > div { min-width: 0; }
.card .foot .l { display: block; font-size: 11px; color: var(--muted); }
.card .foot .v { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.pill { flex: none; border-radius: 999px; border-color: var(--edge2); padding: 9px 14px 9px 16px; min-height: 40px; gap: 6px; font-weight: 600; }
.btn.pill svg { width: 13px; height: 13px; }
.btn.pill:hover { border-color: var(--accent); }
.btn.pill.dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; padding: 9px 18px; }
.btn.pill.dark:hover { background: #000000; border-color: #000000; color: #FFFFFF; }
body.on-watchlist, body.on-profile { background: var(--page); }
body.on-watchlist .top, body.on-profile .top { background: var(--surface); }

/* profile */
.page { padding-top: 0; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.back { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; align-self: flex-start; }
.back svg { width: 14px; height: 14px; }
.title, .box { background: var(--surface); border: 1px solid var(--edge); border-radius: 22px; box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 14px 32px rgba(16,24,40,0.06); }
.title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding: 52px 32px 44px; position: relative; overflow: hidden; }
.title .status { margin-bottom: 0; }
/* the advisor's pick (top_pick in the data): the adviser's own shortlist, shown as a pink star */
.pick { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; background: #FDF0F9; border: 1px solid #F3BFE3; color: #C2188B; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pick svg, .pickbtn svg { width: 13px; height: 13px; fill: currentColor; stroke: none; } .status .pick { margin-left: 2px; }
.pick svg, .pickbtn[aria-pressed=true] svg { color: inherit; }  /* star and words in the same pink */
.bandacts { display: inline-flex; align-items: center; gap: 10px; }
/* on the profile the top pick badge matches the favourites button beside it */
.bandacts .pick { box-sizing: border-box; min-height: 36px; padding: 6px 14px; gap: 8px; font-size: 13px; } .bandacts .pick svg { width: 13px; height: 13px; }
.band .favbtn { min-height: 36px; padding: 6px 14px; background: var(--surface); }
.bruno form { margin: 0; display: flex; } aside .bruno form .btn { flex: 1; align-self: stretch; justify-content: center; gap: 8px; }
.pickbtn[aria-pressed=true] { background: #FDF0F9; border-color: #F3BFE3; color: #C2188B; }
/* the band runs edge to edge across the top of the panel, cancelling the panel's own padding */
.title .band { flex: none; box-sizing: border-box; width: calc(100% + 64px); margin: -52px -32px -4px; padding: 22px 32px 16px; justify-content: space-between; }
.title .who { display: flex; flex-direction: column; gap: 14px; flex: 1 1 520px; min-width: 0; }
.title .named { gap: 18px; } .title .logo { width: 60px; height: 60px; border-radius: 14px; padding: 7px; } .title .logo.none { padding: 0; font-size: 19px; }
.title h1 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.title .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.title .desc { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--mid); max-width: 680px; }
.title .side { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.title .big { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.title .big .n { display: block; font-size: 88px; line-height: 0.95; font-weight: 600; letter-spacing: -0.04em; color: var(--c, var(--accent)); }
.title .big .l { font-size: 12px; color: var(--muted); }
.title .acts { display: flex; flex-direction: column; gap: 8px; }
.title .acts form { margin: 0; display: flex; } .title .acts .btn { flex: 1; justify-content: center; }
.cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cols .main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.cols aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.box { padding: 32px 28px; display: flex; flex-direction: column; gap: 22px; }
aside .box { padding: 30px 24px; gap: 16px; }
.box .h { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.ranges { align-self: center; } .ranges button { min-width: 44px; justify-content: center; }
.box h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.box .h span, .box .sub { font-size: 12px; color: var(--muted); line-height: 1.4; margin: 0; }
.chart { width: 100%; height: auto; display: block; font-family: Inter, system-ui, sans-serif; }
/* profile: why the score last moved, one line per sign with the points it added or took away */
.moves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--mid); }
.moves li { display: flex; gap: 12px; align-items: baseline; }
.moves .d { flex: none; min-width: 34px; text-align: right; font-family: var(--mono); font-weight: 500; color: var(--red); }
.moves .d.up { color: var(--green); }
.moves strong { font-weight: 600; color: var(--ink); }
.title .big .l a { color: inherit; text-decoration: underline; text-underline-offset: 3px; } .title .big .l a:hover { color: var(--ink); }
/* the panel is a block of the bold blue with white text, the same in the light and dark views and whatever
   state the company is in (the lighter blue used for accents in the dark view would not carry white text) */
#why { scroll-margin-top: 16px; background: #1F4FD8; border-color: transparent; box-shadow: none; color: #FFFFFF; }
#why h2, #why .moves strong, #why .moves .d, #why .moves .d.up { color: #FFFFFF; }
#why .moves, #why .sub { color: rgba(255, 255, 255, 0.88); }
.events { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; font-size: 13px; line-height: 1.45; }
.events li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--edge); }
/* a light rule between the points; the first row has none above it */
.events li:nth-child(-n+2) { border-top: 0; padding-top: 4px; } .events li > span:last-child { padding-top: 5px; }
.events .k { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c, var(--accent)); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.events strong { font-weight: 600; }
.scroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
table.t th { text-align: left; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 12px 12px; border-bottom: 1px solid var(--line); }
table.t td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.45; }
table.t th:first-child, table.t td:first-child { padding-left: 0; } table.t th:last-child, table.t td:last-child { padding-right: 0; }
table.t .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
table.t td.name { font-weight: 500; } table.t td.ev { color: var(--mid); }
table.t tr.off td { color: var(--quiet); font-weight: 400; }
table.t .pts { font-weight: 500; color: var(--c, var(--accent)); }
table.t tfoot td { border-bottom: 0; padding-top: 16px; padding-bottom: 4px; font-weight: 600; }
table.t tfoot td.ev { font-weight: 400; color: var(--muted); }
table.t .hot { color: var(--c, var(--accent)); font-weight: 600; }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.list li.row { display: flex; justify-content: space-between; gap: 12px; } .list li.row span:first-child { color: var(--mid); }
.list .v { font-family: var(--mono); font-weight: 500; } .list .v.hot { color: var(--c, var(--accent)); }
.list.src { gap: 14px; } .list.src a { text-decoration: none; font-weight: 500; } .list.src span { display: block; font-size: 11px; color: var(--muted); }
.note { font-size: 13px; line-height: 1.5; color: var(--mid); padding: 12px 14px; background: var(--page); border-radius: 14px; white-space: pre-wrap; }
.note .when { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
aside form { display: flex; flex-direction: column; gap: 12px; margin: 0; } aside form .btn { align-self: flex-start; }
aside label { font-size: 12px; color: var(--muted); }
textarea, input[type=text] { font-family: inherit; font-size: 13px; padding: 10px 12px; border: 1px solid var(--edge2); border-radius: 14px; resize: vertical; width: 100%; }

/* ---- header switch, and "last updated" level with the top of the content ---- */
.themesw { font-family: inherit; font-size: 13px; font-weight: 500; color: var(--slate); background: var(--surface); border: 1px solid var(--edge2); border-radius: 999px; padding: 7px 14px 7px 11px; min-height: 36px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.themesw svg { width: 15px; height: 15px; } .themesw .sun { display: none; }
.themesw:hover { border-color: var(--accent); color: var(--ink); }
.toprow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.snap { white-space: nowrap; }

/* ---- profile: figure boxes, the arrow beside the score, the range switch ---- */
.figs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 600px; margin-top: 8px; }
.title .big .n { display: inline-flex; align-items: center; gap: 14px; }
.title .trend { width: 40px; height: 40px; background: var(--c-tint, var(--soft2)); } .title .trend svg { width: 24px; height: 24px; }
.ranges { border-radius: 999px; padding: 4px; gap: 2px; } .ranges button { border-radius: 999px; min-width: 50px; padding: 6px 14px; }
.ranges button.on { background: var(--accent); color: #FFFFFF; box-shadow: none; }
/* with the script running, the blue pill is one sliding piece and the chart animates in */
.ranges.slides { position: relative; } .ranges.slides button { position: relative; z-index: 1; transition: color 0.25s ease; }
.ranges.slides button.on { background: none; }
.ranges .thumb { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--accent); }
.ranges.ready .thumb { transition: transform 0.32s cubic-bezier(0.3, 0.1, 0.2, 1), width 0.32s cubic-bezier(0.3, 0.1, 0.2, 1); }
@keyframes chart-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes chart-detail { from { opacity: 0; } to { opacity: 1; } }
.chart.enter { animation: chart-in 0.4s ease both; }
.chart.enter path[fill^="url"], .chart.enter .marks, .chart.enter circle { animation: chart-detail 0.5s ease 0.35s both; }  /* the fill and markers follow the line */
@media (prefers-reduced-motion: reduce) { .ranges .thumb, .ranges.slides button { transition: none; } .chart.enter, .chart.enter * { animation: none; } }
.chart.narrow { display: none; }

/* ---- graphs take their colours from the page, so they follow the status colour and the dark view ---- */
.spark [stroke="#1F4FD8"], .chart [stroke="#1F4FD8"] { stroke: var(--c, #1F4FD8); } .spark [fill="#1F4FD8"], .chart [fill="#1F4FD8"] { fill: var(--c, #1F4FD8); } .spark [stop-color="#1F4FD8"], .chart [stop-color="#1F4FD8"] { stop-color: var(--c, #1F4FD8); }
.spark [stroke="#EA580C"], .chart [stroke="#EA580C"] { stroke: var(--c, #EA580C); } .spark [fill="#EA580C"], .chart [fill="#EA580C"] { fill: var(--c, #EA580C); } .spark [stop-color="#EA580C"], .chart [stop-color="#EA580C"] { stop-color: var(--c, #EA580C); }
.spark [stroke="#1A7F4B"], .chart [stroke="#1A7F4B"] { stroke: var(--c, #1A7F4B); } .spark [fill="#1A7F4B"], .chart [fill="#1A7F4B"] { fill: var(--c, #1A7F4B); } .spark [stop-color="#1A7F4B"], .chart [stop-color="#1A7F4B"] { stop-color: var(--c, #1A7F4B); }
.spark [stroke="#B42318"], .chart [stroke="#B42318"] { stroke: var(--c, #B42318); } .spark [fill="#B42318"], .chart [fill="#B42318"] { fill: var(--c, #B42318); } .spark [stop-color="#B42318"], .chart [stop-color="#B42318"] { stop-color: var(--c, #B42318); }
.spark [stroke="#5B6475"], .chart [stroke="#5B6475"] { stroke: var(--c, #5B6475); } .spark [fill="#5B6475"], .chart [fill="#5B6475"] { fill: var(--c, #5B6475); } .spark [stop-color="#5B6475"], .chart [stop-color="#5B6475"] { stop-color: var(--c, #5B6475); }
.spark [fill="#FFFFFF"], .chart [fill="#FFFFFF"] { fill: var(--surface); } .spark [stroke="#FFFFFF"], .chart [stroke="#FFFFFF"] { stroke: var(--surface); }
.spark [fill="#1F1F1F"], .chart [fill="#1F1F1F"] { fill: var(--ink); }
.spark [fill="#6B7280"], .spark [fill="#6B6B6B"], .chart [fill="#6B6B6B"], .chart [fill="#9A9A9A"] { fill: var(--muted); }
.spark [stroke="#E3E5EA"], .chart [stroke="#E3E5EA"], .chart [stroke="#EEF0F3"] { stroke: var(--edge); }
textarea, input[type=text] { background: var(--surface); color: var(--ink); }
.logo { background: #FFFFFF; }  /* logos are drawn for a white ground, in either view */

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* profile on a narrower screen: the two columns become one. Their boxes are laid out as a single stack (the columns
   themselves dissolve) so the panel that explains the last score move, which lives in the side column, can sit just
   under the share price instead of at the foot of the page */
@media (max-width: 1120px) {
  .cols { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .cols .main, .cols aside { display: contents; }
  .cols .main > *, .cols aside > * { order: 3; min-width: 0; }
  .cols .main > :first-child { order: 1; }
  .cols #why { order: 2; }
}
@media (max-width: 720px) {
  .wrap { padding-left: 28px; padding-right: 28px; }
  .grid, .events { grid-template-columns: minmax(0, 1fr); } .title h1 { font-size: 30px; }
  .updated span + span { display: none; }

  /* the filters fold into a menu, and every control runs the full width */
  .filters { padding-top: 0; padding-bottom: 20px; gap: 16px; }
  .summary { padding: 16px 0; }
  .summary { flex-wrap: wrap; row-gap: 14px; } .tools { display: flex; width: 100%; justify-content: space-between; }
  /* the filters open out from under the strip that holds the Filters button, as a band in the grey of the Cards / List switch.
     The row the band sits in grows from nothing (0fr to 1fr), which is what lets its height animate */
  .panel { display: grid; grid-template-rows: 0fr; visibility: hidden; margin-top: -16px; background: var(--edge2); box-shadow: 0 0 0 100vmax var(--edge2); clip-path: inset(0 -100vmax);
           transition: grid-template-rows 0.32s cubic-bezier(0.3, 0.1, 0.2, 1), visibility 0s 0.32s; }
  .panel-in { overflow: hidden; min-height: 0; gap: 12px; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.32s cubic-bezier(0.3, 0.1, 0.2, 1); }
  .panel-in > :first-child { margin-top: 18px; } .panel-in > :last-child { margin-bottom: 20px; }
  .filters.open .panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
  .filters.open .panel-in { opacity: 1; transform: none; transition-delay: 0.06s; }
  .filters.open #filter-toggle { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
  .filters form, .filters .bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .select { display: flex; } .select select { width: 100%; min-width: 0; }
  .seg { align-self: stretch; flex-wrap: wrap; } .seg a { flex: 1 1 auto; justify-content: center; padding-left: 4px; padding-right: 4px; font-size: 12.5px; white-space: nowrap; }

  /* list view: one slim row per company; the whole row opens its profile */
  .grid.as-list { gap: 14px; }
  .grid.as-list .card { --px: 16px; padding: 0 var(--px) 20px; gap: 18px; border-radius: 16px; }
  .grid.as-list .card::before { height: 4px; }
  .grid.as-list .band { padding: 18px var(--px) 12px; }
  .grid.as-list .status { font-size: 12px; gap: 7px; margin-bottom: 0; } .grid.as-list .status .ico { width: 22px; height: 22px; } .grid.as-list .status .ico svg { width: 12px; height: 12px; }
  .grid.as-list .score .n { font-size: 28px; gap: 6px; } .grid.as-list .score .l { display: none; } .grid.as-list .trend { width: 22px; height: 22px; } .grid.as-list .trend svg { width: 14px; height: 14px; }
  .grid.as-list .named { gap: 12px; align-items: center; } .grid.as-list .logo { width: 44px; height: 44px; border-radius: 11px; padding: 5px; } .grid.as-list .logo.none { font-size: 14px; padding: 0; }
  .grid.as-list h2 { font-size: 17px; }
  .grid.as-list h2 a::after { content: ""; position: absolute; inset: 0; }  /* the link covers the row */
  .grid.as-list .meta.inlist { display: block; font-size: 11.5px; } .grid.as-list .namecol { gap: 6px; } .grid.as-list .fav.inlist { display: inline-flex; position: relative; z-index: 2; width: 38px; height: 38px; }
  .grid.as-list .card > .meta, .grid.as-list .figs, .grid.as-list .sflag, .grid.as-list .whybox, .grid.as-list .pairs, .grid.as-list .foot { display: none; }
  .grid.as-list .spark { position: relative; z-index: 2; margin-top: -4px; }  /* above the row's link, so a finger can read prices off it */
  .grid.as-list .since { margin-top: 0; position: relative; z-index: 2; }

  /* profile: the first panel reads top to bottom, everything on the left */
  .title { flex-direction: column; align-items: flex-start; gap: 22px; padding: 34px 20px 24px; }
  .title .band { width: calc(100% + 40px); margin: -34px -20px 0; padding: 22px 20px 14px; }
  .bandacts { gap: 8px; } .bandacts .pick { min-height: 38px; padding: 6px 10px; gap: 6px; }
  .band .favbtn span { display: none; } .band .favbtn { width: 38px; min-height: 38px; padding: 0; justify-content: center; }  /* on a phone the heart alone, so the status stays on one line */
  /* the score comes straight after the name and details, above the four figures: the name's block is dissolved
     (display: contents) so its parts and the score can be put in that order */
  .title .who { display: contents; }
  .title .named, .title .who > .meta, .title .figs, .title .desc { width: 100%; }
  .title .band { order: 0; } .title .named { order: 1; } .title .who > .meta { order: 2; margin-top: -10px; }
  .title .side { order: 3; } .title .figs { order: 4; } .title .desc { order: 5; margin-top: -6px; }
  /* if the status and the buttons don't fit on one line, the buttons go under it */
  .title .band { flex-wrap: wrap; row-gap: 12px; }
  .title .named { gap: 12px; } .title .logo { width: 44px; height: 44px; border-radius: 11px; padding: 5px; } .title .logo.none { font-size: 15px; }
  .title .side { flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; }
  .title .big { text-align: left; align-items: flex-start; gap: 8px; } .title .big .n { font-size: 104px; }
  .title .acts { flex-direction: row; flex-wrap: wrap; width: 100%; } .title .acts form { flex: 1 1 140px; }
  .box { padding: 24px 18px; } aside .box { padding: 24px 18px; }
  .checkbox h1 { font-size: 26px; } .box.result h2 { font-size: 22px; } .result .big .n { font-size: 52px; }
  /* "last updated" sits beside the count; the footer drops its snapshot note */
  .summary .updated { margin-left: auto; } .snap { display: none; }
  .toprow .updated strong, .summary .updated strong { display: none; }  /* the date alone, so it fits beside the count */
  /* profile: the phone gets its own narrower chart, so its labels are a readable size */
  .chart.wide { display: none; } .chart.narrow:not([hidden]) { display: block; }
  .figs.four { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .figs.four > div:nth-child(3) { border-left: 0; } .figs.four > div:nth-child(n+3) { border-top: 1px solid var(--edge); }
  .title .big .n { gap: 12px; } .title .trend { width: 40px; height: 40px; } .title .trend svg { width: 24px; height: 24px; }
  .box .h { align-items: center; } .events { gap: 0; }
  .events li:nth-child(2) { border-top: 1px solid var(--edge); padding-top: 16px; }  /* one column: only the first point has no rule */
}


/* ---- dark view: the same page with its colours swapped; chosen with the switch in the header ---- */
html[data-theme="dark"] {
  color-scheme: dark;
  --accent: #7C9BFF; --ink: #F2F4F8; --mid: #C9CFDA; --muted: #9AA3B2; --faint: #6F7888;
  --line: #2A3140; --line-soft: #232A37; --panel: #1B212C; --green: #3FCF8E; --orange: #FB923C; --red: #F87171; --amber: #F0A35C;
  --surface: #171C26; --page: #0F131A; --soft: #1D2330; --soft2: #232A38; --edge: #2A3140; --edge2: #374052; --slate: #A7B0C0; --quiet: #8C95A6; --dot: #4A5468; --strip: #141922;
}
html[data-theme="dark"] body { background: var(--page); }
html[data-theme="dark"] .st-watching { --c-tint: #1D2A52; --c-band: #161F3D; }
html[data-theme="dark"] #why { box-shadow: none; }
html[data-theme="dark"] .st-offer { --c-tint: #4A2A12; --c-band: #2B1B10; }
html[data-theme="dark"] .st-called { --c-tint: #143524; --c-band: #10261B; }
html[data-theme="dark"] .st-missed { --c-tint: #4A1D1A; --c-band: #2C1513; }
html[data-theme="dark"] .st-dismissed, html[data-theme="dark"] .st-none { --c: #A7B0C0; --c-tint: #232A38; --c-band: #1D2330; }
html[data-theme="dark"] .card, html[data-theme="dark"] .title, html[data-theme="dark"] .box { box-shadow: 0 1px 2px rgba(0,0,0,0.5); }
html[data-theme="dark"] .btn.dark, html[data-theme="dark"] .btn.pill.dark, html[data-theme="dark"] .filters.open #filter-toggle,
html[data-theme="dark"] .ranges button.on, html[data-theme="dark"] .events .k { color: #0F131A; }
html[data-theme="dark"] .btn.pill.dark:hover { background: #FFFFFF; border-color: #FFFFFF; color: #0F131A; }
html[data-theme="dark"] .seg a.on, html[data-theme="dark"] .seg button.on, html[data-theme="dark"] .viewsw button.on { background: #37415A; box-shadow: none; }
html[data-theme="dark"] .ranges button.on { background: var(--accent); }
html[data-theme="dark"] .fav[aria-pressed=true], html[data-theme="dark"] .favbtn[aria-pressed=true] { color: #FB7185; border-color: #6B2233; background: #3A1420; }
html[data-theme="dark"] .nm { background: #5A4A12; } html[data-theme="dark"] table.t tr.nm-row td { background: #2B2510; }
html[data-theme="dark"] .nm.rv { background: #0F4A43; } html[data-theme="dark"] table.t tr.nm-row.rv td { background: #0E2A27; }
html[data-theme="dark"] .nm-tag.rv { background: #12564E; color: #B9F0E6; }
html[data-theme="dark"] .nm-tag, html[data-theme="dark"] .todo { background: #6B5512; color: #FFE9A6; }
html[data-theme="dark"] .themesw .moon { display: none; } html[data-theme="dark"] .themesw .sun { display: block; }
html[data-theme="dark"] .brand .mark { background: var(--accent); }
html[data-theme="dark"] .prose a { color: var(--accent); }
html[data-theme="dark"] .ranges.slides button.on { background: none; }  /* the sliding pill supplies the colour */
html[data-theme="dark"] .pick, html[data-theme="dark"] .pickbtn[aria-pressed=true] { background: #2E1029; border-color: #6E2262; color: #F56FD0; }

/* ---- accounts and plans: the front page, signing in, the plans table, and what a plan leaves out ---- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn.pill.login { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.page.plain { padding-top: 40px; gap: 40px; }
.pagehead { display: flex; flex-direction: column; gap: 10px; }
.pagehead h1, .pagehead h2 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
.pagehead h1 { font-size: 34px; } .pagehead h2 { font-size: 26px; }
.lede { margin: 0; font-size: 15px; line-height: 1.55; color: var(--mid); max-width: 680px; }
.lede strong { font-weight: 600; color: var(--ink); }
.small { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); } .small a { color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--c-tint, #EEF3FF); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.chip svg { width: 11px; height: 11px; }
.localnote { margin: 0; font-size: 12px; line-height: 1.5; color: #6B4A00; background: #FFF4CF; border-radius: 12px; padding: 12px 14px; }
.localnote p { margin: 0; } .localnote > * + * { margin-top: 10px; } .localnote .mono { font-size: 11px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.samples, #plans { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 24px; }
.home .grid { padding: 0; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* a plan's card, in two parts: a tinted panel inset at the top (name, price, what it is for, the button), and
   under it the list of what the plan includes. The highlighted plan's panel is coloured instead of grey. */
.plan { padding: 10px; gap: 0; border-radius: 28px; }
.plan.mine { border-color: var(--accent); }
.plan .ptop { border-radius: 20px; padding: 22px 22px 22px; background: var(--p-top, #EEEFF2); display: flex; flex-direction: column; gap: 10px; }
.plan .ptop.glow { background: radial-gradient(90% 80% at 100% 0%, rgba(110, 142, 255, 0.62) 0%, rgba(110, 142, 255, 0) 62%), radial-gradient(60% 55% at 100% 100%, rgba(31, 79, 216, 0.3) 0%, rgba(31, 79, 216, 0) 72%), radial-gradient(60% 60% at 62% 0%, rgba(168, 139, 250, 0.34) 0%, rgba(168, 139, 250, 0) 70%), var(--p-glow, #E4EBFD); }
html[data-theme="dark"] .plan { --p-top: #222834; --p-glow: #1B2647; }
.plan .ph { display: flex; align-items: center; gap: 12px; }
.plan h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.plan .ph .chip { margin-left: auto; background: var(--surface); }
.plan .ptop .ichip { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, 0.78); }
.plan .ptop .ichip svg { width: 19px; height: 19px; }
html[data-theme="dark"] .plan .ptop .ichip { background: rgba(255, 255, 255, 0.1); }
.plan .price { margin: 28px 0 0; min-height: 50px; display: flex; align-items: baseline; gap: 8px; font-size: 46px; line-height: 1; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.plan .price small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--mid); }
.plan .price .todo { align-self: center; font-size: 15px; line-height: 1.3; letter-spacing: 0; padding: 4px 10px; border-radius: 8px; }
.plan .ptop > .sub { font-size: 16px; line-height: 1.45; color: var(--mid); min-height: 2.9em; }
.plan .pact { margin-top: 18px; }
.plan .pact form { display: block; }
.plan .pact .btn { width: 100%; justify-content: center; min-height: 52px; font-size: 16px; font-weight: 500; }
.plan .pact .sub { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--mid); background: rgba(255, 255, 255, 0.62); }
html[data-theme="dark"] .plan .pact .sub { background: rgba(255, 255, 255, 0.08); }
.plan .can { list-style: none; margin: 0; padding: 26px 14px 18px; display: flex; flex-direction: column; gap: 15px; flex: 1; }
.plan .can li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.35; color: var(--ink); }
.plan .can svg { width: 22px; height: 22px; flex: none; margin-top: 0; color: var(--accent); }
.plan .can li.no { color: var(--quiet); } .plan .can li.no svg { color: var(--dot); }

.signin { max-width: 460px; width: 100%; margin: 0 auto; gap: 18px; }
.signin h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; }
.signin form, .stack { display: flex; flex-direction: column; gap: 12px; }
.btn.wide { width: 100%; justify-content: center; min-height: 48px; font-size: 14px; }
.btn.off { color: var(--quiet); cursor: default; } .btn.pill.off:hover { border-color: var(--edge2); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--mid); }
.field input { font-family: inherit; font-size: 16px; color: var(--ink); padding: 13px 16px; min-height: 50px; border: 1px solid var(--edge2); border-radius: 12px; background: var(--surface); -webkit-appearance: none; appearance: none; }
.field input::placeholder { color: var(--quiet); }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.or { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.error { margin: 0; font-size: 13px; line-height: 1.45; color: var(--red); background: #FDECEA; border-radius: 12px; padding: 12px 14px; }
.quietlink { font-size: 13px; color: var(--muted); align-self: center; }
.facts { margin: 0; display: flex; flex-direction: column; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--edge); font-size: 14px; }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; } .facts a { color: var(--accent); }

.lockbox { gap: 14px; align-items: flex-start; background: var(--soft); box-shadow: none; }
.lockbox .h { width: 100%; } .lockbox .sub { font-size: 14px; line-height: 1.5; color: var(--mid); max-width: 560px; }
.result .acts { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1100px) { .plans, .plans.two { grid-template-columns: 1fr; } .plan .ptop > .sub { min-height: 0; } }
@media (max-width: 720px) { .plan { border-radius: 24px; padding: 8px; } .plan .ptop { border-radius: 18px; padding: 18px; } .plan .price { font-size: 40px; margin-top: 20px; } .plan .can { padding: 22px 10px 14px; gap: 13px; } .plan .can li { font-size: 15px; } }
@media (max-width: 720px) {
  .page.plain { padding-top: 24px; gap: 32px; }
  .pagehead h1 { font-size: 28px; } .pagehead h2 { font-size: 22px; }
  .signin h1 { font-size: 24px; }
  .btn.pill.login { padding: 6px 12px; }
}
html[data-theme="dark"] .localnote { background: #3A2F0B; color: #F2D98A; }
html[data-theme="dark"] .error { background: #3B1512; color: #FFB4AB; }
html[data-theme="dark"] .chip { background: rgba(92, 132, 255, 0.16); }

/* ---- the front page: an opening panel with a picture drawn in SVG, big headings set against a paragraph,
   one light and two dark tiles, a strip of sources, and a showcase card. Colours come from --h-* so the dark view
   only has to change those. ---- */
:root { --h-navy: #121C3B; --h-sky-a: #EEF2FD; --h-sky-b: #C9D6F8; --h-far-a: #8FA8F0; --h-far-b: #4E74E4; --h-near-a: #2C55D6; --h-near-b: #121C3B; --h-line: #FFFFFF; --h-text: #121C3B; }
html[data-theme="dark"] { --h-navy: #1B2647; --h-sky-a: #172042; --h-sky-b: #1B2A5C; --h-far-a: #2A3F86; --h-far-b: #1B2A5C; --h-near-a: #4466DC; --h-near-b: #0F131A; --h-line: #C9D6FF; --h-text: #EEF2FD; }
.homenav { display: flex; align-items: center; gap: 28px; }
.homenav a { font-size: 13px; font-weight: 500; color: var(--mid); text-decoration: none; } .homenav a:hover { color: var(--accent); }
.on-home .btn.pill.login { background: var(--h-navy); border-color: var(--h-navy); color: #FFFFFF; padding: 6px 18px; }
.on-home .top { border-bottom-color: transparent; }
.page.plain.home { padding-top: 28px; gap: 72px; }
.home h1, .home h2, .home h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
.home section[id] { scroll-margin-top: 24px; }
/* a link to a section of the front page (the buttons in the opening panel, the links in the header) glides there
   instead of jumping; left off for anyone who has asked their device for less motion */
@media (prefers-reduced-motion: no-preference) { html:has(body.on-home) { scroll-behavior: smooth; } }

/* The opening panel. .hpanel is only the frame, so that everything inside can be sized from its width (cqw);
   .hin carries the colours: the first colour down to where the graph begins, deepening to the second by the foot of
   the graph, which the ground under the line repeats exactly, so the ground reads as the panel itself.
   --bt is where the graph's band starts, --bh how tall it is, and --pad the space at the panel's sides. */
.hpanel { container-type: inline-size; position: relative; overflow: hidden; border-radius: 28px; --h-pan-a: #FFFFFF; --h-pan-b: #DDE6FB; }
html[data-theme="dark"] .hpanel { --h-pan-a: #171C26; --h-pan-b: #1B2A5C; }
.hin { position: relative; --pad: 40px; --bt: 2cqw; --bh: 42cqw; padding-top: calc(var(--bt) + var(--bh)); background: linear-gradient(180deg, var(--h-pan-a) var(--bt), var(--h-pan-b) calc(var(--bt) + var(--bh))); }
/* the name: left-aligned with the headline below it (the 0.06em takes up the space the S carries on its left) */
.hword { position: absolute; left: calc(var(--pad) - 0.06em); top: 4.4cqw; margin: 0; font-size: 24cqw; font-weight: 500; line-height: 0.74; letter-spacing: -0.055em; white-space: nowrap; color: var(--h-ink, #0D1226); user-select: none; }
html[data-theme="dark"] .hword { --h-ink: #EEF2FD; }
/* "Introducing" sits over the g, level with the top of the S: --s is its size as a share of the name's, and dividing by it turns the name's ems into its own */
.hword span { --s: 0.08; position: absolute; left: calc(0.83em / var(--s)); top: calc(0.012em / var(--s)); font-size: calc(var(--s) * 1em); line-height: 1; letter-spacing: -0.03em; }
.hfoot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: -22px; padding: 0 var(--pad) 40px; }
.hcopy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.hcopy h1 { font-size: 34px; line-height: 1.02; color: var(--h-text); max-width: 330px; }
.hticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; font-weight: 500; color: var(--h-text); }
.hticks li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; } .hticks svg { width: 13px; height: 13px; flex: none; }
.hacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.home .hacts .btn.pill { padding: 9px 22px; }
.home .btn.pill.blue { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
html[data-theme="dark"] .home .btn.pill.blue { color: #10141C; }
.hcopy .soon { font-size: 13px; font-weight: 600; color: var(--h-text); background: rgba(255,255,255,0.6); border-radius: 999px; padding: 9px 18px; }
html[data-theme="dark"] .hcopy .soon { background: rgba(255,255,255,0.12); }
.hstats { margin: 0; display: flex; align-items: stretch; }
.hstats div { display: flex; flex-direction: column; gap: 6px; padding: 2px 30px; border-left: 1px solid rgba(18, 28, 59, 0.16); }
.hstats div:first-child { border-left: 0; padding-left: 0; } .hstats div:last-child { padding-right: 0; }
html[data-theme="dark"] .hstats div { border-left-color: rgba(255, 255, 255, 0.18); }
.hstats dt { font-size: 11px; color: var(--h-text); opacity: 0.66; white-space: nowrap; }
.hstats dd { margin: 0; font-size: 25px; font-weight: 500; letter-spacing: -0.025em; line-height: 1; color: var(--h-text); white-space: nowrap; }

/* a small label on the left, set against a large paragraph on the right */
.habout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: start; }
.habout .big { margin: 0; font-size: 27px; font-weight: 500; line-height: 1.22; letter-spacing: -0.02em; color: var(--ink); max-width: 560px; }
.habout h2 { font-size: 42px; }
/* a centred heading over a section, with a line of explanation under it */
.hhead { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.hhead h2 { font-size: 38px; } .hhead p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--mid); max-width: 560px; text-wrap: balance; }
.hhead .eyebrow { margin-bottom: -4px; }

.hsplit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.hsplit.start { align-items: start; }
.hsplit > div { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.hsplit h2 { font-size: 42px; }
.hsplit .big { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); max-width: 440px; justify-self: end; }
.hsplit .lede { max-width: 420px; } .hsplit .small { max-width: 420px; }
/* the small label over a heading, in a white lozenge */
/* the small label over a heading: plain text in the accent colour */
.eyebrow { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--accent); margin-bottom: -10px; }
.home .btn.pill.dark { background: var(--h-navy); border-color: var(--h-navy); color: #FFFFFF; padding: 9px 22px; }

.tiles { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: -24px; }
.tile { position: relative; overflow: hidden; border-radius: 24px; padding: 26px 26px 28px; min-height: 264px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: var(--h-navy); color: #FFFFFF; }
.tile h3 { font-size: 25px; line-height: 1.15; letter-spacing: -0.02em; position: relative; }
.tile p { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.86); position: relative; }
.tile.light { background: linear-gradient(120deg, var(--h-sky-a) 0%, var(--h-sky-b) 100%); color: var(--h-text); }
.tile.light p { color: var(--h-text); max-width: 300px; } .tile.light p strong { font-weight: 600; }
.tile .num { position: absolute; right: 24px; bottom: 18px; font-size: 210px; line-height: 0.74; font-weight: 600; letter-spacing: -0.06em; color: var(--h-near-a); opacity: 0.9; }

/* a white card, the same as the "32 of 92" card below it: same white, same corners, same side padding */
.srcs { display: flex; align-items: center; justify-content: space-between; gap: 16px 48px; flex-wrap: wrap; margin: -56px 0 0; padding: 28px 32px; background: var(--surface); border-radius: 24px; }  /* sits 16px under the tiles: the same as the gap between them (the page's 72px gap less 56) */
.srcs p { margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.srcs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 44px; }
.srcs li { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--quiet); white-space: nowrap; }

.showcase { background: var(--surface); border-radius: 24px; padding: 34px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.hsplit .showcase { align-items: stretch; }
.showcase h3 { font-size: 34px; }
.showcase p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--mid); max-width: 440px; }
.dots { display: grid; grid-template-columns: repeat(23, minmax(0, 1fr)); gap: 7px; margin-top: 18px; padding: 22px; border-radius: 18px; background: linear-gradient(180deg, var(--h-sky-a) 0%, var(--h-sky-b) 100%); }
.dots i, .key i { display: block; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,0.75); }
html[data-theme="dark"] .dots i { background: rgba(255,255,255,0.14); }
.dots i.on, .key i.on, html[data-theme="dark"] .dots i.on { background: var(--h-near-a); }
.key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; color: var(--muted); }
.key span { display: inline-flex; align-items: center; gap: 7px; } .key i { width: 10px; background: var(--h-sky-b); }
.home .samples, .home #plans { gap: 32px; }
/* the sample cards sit on a dark blue band, the colour of the two dark boxes above, that runs the full width of the
   window: the colour is carried out past the page's margins by a shadow, clipped top and bottom, so nothing scrolls sideways */
.home .samples { position: relative; background: var(--h-navy); box-shadow: 0 0 0 100vmax var(--h-navy); clip-path: inset(0 -100vmax); padding: 124px 0 104px; gap: 40px; }
.home .samples .hhead h2 { color: #FFFFFF; } .home .samples .hhead p { color: rgba(255, 255, 255, 0.78); }
/* the label sits in a notch cut out of the top of the band: a tab in the page's own colour, rounded underneath, with a
   small curve either side (--r) where it meets the band's top edge, so it reads as a bite taken out of the blue */
.home .samples .eyebrow { --r: 16px; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); margin: 0; padding: 12px 26px 14px; border-radius: 0 0 var(--r) var(--r); background: var(--page); color: var(--accent); font-size: 16px; white-space: nowrap; }
.home .samples .eyebrow::before, .home .samples .eyebrow::after { content: ""; position: absolute; top: 0; width: var(--r); height: var(--r); }
.home .samples .eyebrow::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--r) - 0.5px), var(--page) var(--r)); }
.home .samples .eyebrow::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(var(--r) - 0.5px), var(--page) var(--r)); }
@media (max-width: 720px) { .home .samples { padding: 88px 0 64px; gap: 28px; } .home .samples .eyebrow { --r: 14px; padding: 10px 20px 12px; font-size: 15px; } }

@media (max-width: 1100px) { .tiles { grid-template-columns: 1fr 1fr; } .tile.light { grid-column: 1 / -1; } .hsplit h2 { font-size: 36px; } .hfoot { flex-direction: column; align-items: flex-start; } }
@media (max-width: 900px) { .homenav { display: none; } }
@media (max-width: 720px) {
  .page.plain.home { padding-top: 16px; gap: 52px; }
  .hpanel { border-radius: 22px; } .hin { --pad: 22px; --bt: 9.4cqw; --bh: 46cqw; } .hword { font-size: 27cqw; top: 11cqw; } .hfoot { margin-top: 0; padding-top: 14px; padding-bottom: 24px; gap: 26px; } .hcopy h1 { font-size: 30px; max-width: 290px; }
  .hword span { --s: 0.11; } .hacts { display: none; }  /* no buttons in the panel on a phone: the sections are a short scroll away */
  .hstats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 0; width: 100%; } .hstats div, .hstats div:last-child { padding: 2px 16px; } .hstats div:nth-child(odd) { border-left: 0; padding-left: 0; } .hstats dt { font-size: 12px; } .hstats dd { font-size: min(31px, 9.7cqw); }  /* eases down on the narrowest phones so "32 of 92" stays inside the panel */
  .habout { grid-template-columns: 1fr; } .habout .big { font-size: 21px; } .habout h2 { font-size: 34px; } .hhead h2 { font-size: 30px; } .hhead { align-items: flex-start; text-align: left; }
  .hsplit { grid-template-columns: 1fr; gap: 20px; } .hsplit h2 { font-size: 34px; } .hsplit .big { font-size: 19px; justify-self: start; max-width: none; }
  .hsplit > div { gap: 16px; } .eyebrow { font-size: 16px; margin-bottom: -6px; } .hhead .eyebrow { margin-bottom: -4px; }
  .tiles { grid-template-columns: 1fr; margin-top: -20px; gap: 12px; } .tile { min-height: 200px; border-radius: 20px; padding: 22px; } .tile.light { min-height: 230px; }
  .tile .num { font-size: 120px; bottom: 18px; right: 18px; } .tile.light p { max-width: 158px; }
  .srcs { margin: -40px 0 0; padding: 22px 20px; border-radius: 20px; } .srcs p br { display: none; } .srcs ul { gap: 8px 22px; } .srcs li { font-size: 14px; }
  .showcase { padding: 24px 20px; border-radius: 20px; } .showcase h3 { font-size: 28px; } .dots { padding: 16px; gap: 5px; grid-template-columns: repeat(16, minmax(0, 1fr)); }
}
/* dark view: the front page's dark pills would vanish into the page, so they turn light */
html[data-theme="dark"] .home .btn.pill.dark, html[data-theme="dark"] .on-home .btn.pill.login { background: #EEF2FD; border-color: #EEF2FD; color: #0D1226; }

/* The opening panel's picture: the cards' own graph, larger. One drawing stretched to the panel's width (the stroke
   keeps its thickness), with the two pins laid over it: --at is how far across (0 to 1), --y and --top how far down
   the dot and the label sit on the 300-high drawing, as a share of the band's height.
   It draws itself: the line and its ground are uncovered from the left, and each pin appears as the line reaches it. */
.hart { position: absolute; left: 0; right: 0; top: var(--bt); height: var(--bh); --draw: 2.6s; --wait: 0.35s; }
.hart > svg { display: block; width: 100%; height: 100%; animation: h-draw var(--draw) linear var(--wait) both; }
.hart .ground-a { stop-color: var(--h-pan-a); } .hart .ground-b { stop-color: var(--h-pan-b); }
.hart .fade-a { stop-color: var(--accent); stop-opacity: 0.22; } .hart .fade-b { stop-color: var(--accent); stop-opacity: 0; }
.hart .hline { stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.hnote { position: absolute; right: var(--pad); bottom: 6px; font-size: 11px; color: var(--muted); }
.hpin { position: absolute; top: 0; bottom: 0; left: calc(var(--at) * 100%); width: 0; animation: h-pin 0.5s ease-out calc(var(--at) * var(--draw) + var(--wait)) both; }
.hpin .stem { position: absolute; left: -0.5px; top: calc(var(--top) / 300 * 100% + 15px); height: calc((var(--y) - var(--top)) / 300 * 100% - 15px); border-left: 1px dashed #B4BBC8; }
.hpin .dot { position: absolute; left: -8px; top: calc(var(--y) / 300 * 100% - 8px); width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: var(--accent); border: 3px solid #FFFFFF; box-shadow: 0 1px 3px rgba(16,24,40,0.18); animation: h-dot 0.5s cubic-bezier(0.3, 1.5, 0.6, 1) calc(var(--at) * var(--draw) + var(--wait)) both; }
.hpin.bid .dot { background: var(--orange); }
.hpin .pill { position: absolute; left: 0; top: calc(var(--top) / 300 * 100%); transform: translateX(-50%); height: 30px; padding: 0 14px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E3E5EA; box-shadow: 0 1px 2px rgba(16,24,40,0.05); display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: #1F1F1F; white-space: nowrap; }
.hpin.bid .pill { color: #C2410C; }
.hpin .pill svg { width: 10px; height: 13px; color: #1F4FD8; }
.hpin.bid .pill svg { width: 14px; height: 14px; color: inherit; }
@keyframes h-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes h-pin { from { opacity: 0; } to { opacity: 1; } }
@keyframes h-dot { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hart > svg, .hpin, .hpin .dot { animation: none; } }
@media (max-width: 720px) { .hpin .pill { font-size: min(14px, 4.4cqw); height: 2em; padding: 0 0.8em; gap: 0.4em; } .hpin .pill svg { width: 0.7em; height: 0.95em; } .hpin.bid .pill svg { width: 1em; height: 1em; } .hpin .dot { left: -6px; width: 12px; height: 12px; border-width: 2px; top: calc(var(--y) / 300 * 100% - 6px); } .hnote { bottom: 2px; font-size: 10px; } .hpin .pill { top: calc(var(--y) / 300 * 100% + 13px); } .hpin .stem { display: none; } .hpin .pill .lg { display: none; } .hpin.bid .pill { transform: translateX(-14%); } }  /* on a phone each label hangs under its dot, and the bid's is cut to one word and set to the right, clear of the name */

/* icons: a line drawing in a small rounded square, at the top of each front-page box and each plan */
.ichip { width: 44px; height: 44px; border-radius: 14px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: #E9EEFC; color: var(--accent); }
.ichip svg { width: 22px; height: 22px; }
html[data-theme="dark"] .ichip { background: rgba(124, 155, 255, 0.16); }
.tile .thead { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.tile .ichip { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.tile.light .ichip { background: rgba(255, 255, 255, 0.72); color: var(--h-near-a); }
html[data-theme="dark"] .tile.light .ichip { background: rgba(255, 255, 255, 0.12); color: #C9D6FF; }
@media (max-width: 720px) { .ichip { width: 40px; height: 40px; border-radius: 12px; } .ichip svg { width: 20px; height: 20px; } .tile .thead { gap: 14px; } }

/* what Signal is and is not: a white panel like the cards, with an alert icon */
.notice { display: flex; align-items: center; gap: 18px; background: var(--surface); border-radius: 24px; padding: 24px 32px; }
.notice p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--mid); }
@media (max-width: 720px) { .notice { border-radius: 20px; padding: 20px; gap: 14px; align-items: flex-start; } .notice p { font-size: 14px; } }
