:root {
  --ink: #16213a;
  --ink-2: #47526b;
  --ink-3: #7a8499;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f3efe7;
  --line: #e6e0d4;
  --brand: #1e8f6e;
  --brand-ink: #0f5c46;
  --brand-soft: #def3ea;
  --sun: #ffb84d;
  --coral: #ff7a59;
  --coral-soft: #ffe7df;
  --sky: #5b8def;
  --sky-soft: #e4ecfd;
  --danger: #d64545;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(22, 33, 58, 0.06), 0 8px 24px rgba(22, 33, 58, 0.06);
  --shadow-lg: 0 2px 4px rgba(22, 33, 58, 0.06), 0 24px 60px rgba(22, 33, 58, 0.12);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.006em;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 0.5em; }
h1 { font-weight: 700; letter-spacing: -0.05em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--font);
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(30, 143, 110, .28); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 89, .3); }
.btn-coral:hover { background: #f0603c; }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-ink); cursor: pointer; text-decoration: underline; }
.link-danger { color: var(--danger); }

label.field, div.field { display: block; margin-bottom: 18px; font-weight: 600; font-size: 14px; }
label.field span.hint { font-weight: 400; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password] {
  width: 100%; margin-top: 6px; padding: 13px 14px; font: 16px var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- switch ---------- */
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: #d7d2c7; transition: background .18s; }
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s cubic-bezier(.3,.7,.4,1.3);
}
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:focus-visible + .track { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 243, .85); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 19px var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.04em; }
.logo-mark { width: 34px; height: 34px; }
.logo b { font-weight: 400; color: var(--brand); margin-left: .1em; letter-spacing: -.01em; }
.auth-side .logo b, .cta-band .logo b { color: #5fd3a8; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { white-space: nowrap; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 12px; } }
/* very narrow phones: keep the logo whole; "Log in" moves to the footer */
.nav .logo { flex: none; }
@media (max-width: 350px) { .nav-links a[href="/login"]:not(.btn) { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 14px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; background: var(--sun); opacity: .45; z-index: -1; border-radius: 4px; }
.hero .lead { font-size: 20px; color: var(--ink-2); max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--brand); font-weight: 700; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 36px; } }

/* hero mock card */
.mock { position: relative; padding: 72px 0 84px; }
.mock-card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 22px; border: 1px solid var(--line); }
.mock-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 18px var(--display); color: #fff; flex: none; }
.mock-head h3 { margin: 0; font-size: 20px; }
.mock-head .status { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 5px 10px; border-radius: 999px; }
.toggle-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line); }
.toggle-row .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }
.toggle-row .txt { flex: 1; min-width: 0; }
.toggle-row .txt strong { display: block; font-size: 16px; }
.toggle-row .txt small { color: var(--ink-3); font-size: 13px; display: block; }
.mock-float { position: absolute; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 14px 16px; font-size: 14px; max-width: 250px; }
.mock-float.f1 { right: -14px; bottom: 0; }
.mock-float.f2 { left: -24px; top: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mock-float .big { font: 700 24px var(--display); color: var(--coral); }
@media (max-width: 900px) { .mock-float.f1 { right: 8px; } .mock-float.f2 { left: 8px; } }
@media (max-width: 560px) { .mock .mock-float { display: none; } .mock { padding: 0; } }

/* ---------- sections ---------- */
section.band { padding: 88px 0; }
section.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { font-size: 18px; color: var(--ink-2); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 18px var(--display); margin-bottom: 16px; }
.step h3 { font-size: 21px; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.cat .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }
.cat h3 { font-size: 19px; margin-bottom: 6px; }
.cat p { color: var(--ink-2); margin: 0; font-size: 15px; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); }
.split .lead { font-size: 18px; color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231e8f6e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* report card (used on landing + dashboard) */
.report-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-lg); }
.report-card .kicker { font: 600 13px var(--font); letter-spacing: -0.005em; text-transform: none; color: var(--ink-3); margin-bottom: 10px; }
.report-summary { font: 500 19px/1.5 var(--font); color: var(--ink); margin-bottom: 20px; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 130px; margin-bottom: 8px; }
.bar { position: relative; background: var(--surface-2); border-radius: 8px 8px 4px 4px; min-height: 6px; overflow: hidden; }
.bar .blk { position: absolute; left: 0; right: 0; bottom: 0; background: var(--coral); opacity: .85; }
.bar-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; font-size: 12px; color: var(--ink-3); text-align: center; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.plan { background: var(--surface); border: 1.5px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: 0 20px 50px rgba(30, 143, 110, .15); position: relative; }
.plan.featured .tag { position: absolute; top: -13px; left: 32px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .price { font: 700 44px var(--display); letter-spacing: -0.03em; margin: 12px 0 2px; }
.plan .price small { font: 500 16px var(--font); color: var(--ink-3); letter-spacing: 0; }
.plan .checks { flex: 1; margin-bottom: 24px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--font); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); }

.cta-band { background: var(--ink); color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); }
.cta-band p { color: #c3cadb; font-size: 18px; margin-bottom: 28px; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; }
.cta-band::before { width: 220px; height: 220px; background: var(--brand); left: -60px; top: -80px; }
.cta-band::after { width: 180px; height: 180px; background: var(--coral); right: -40px; bottom: -70px; }
.cta-band > * { position: relative; }

footer.site { padding: 48px 0; color: var(--ink-3); font-size: 14px; }
footer.site .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--ink-2); text-decoration: none; margin-left: 18px; }
footer.site .foot-brand .logo { margin-left: 0; }
footer.site .foot-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; white-space: nowrap; }
footer.site .foot-links a { margin: 0; }
footer.site .foot-links .copy { margin-right: 6px; }
@media (max-width: 760px) {
  footer.site .container { flex-direction: column; align-items: flex-start; gap: 14px; }
  footer.site .foot-links { gap: 10px 22px; font-size: 15px; }
  footer.site .foot-links a { padding: 4px 0; }
  footer.site .foot-links .copy { order: 99; flex-basis: 100%; margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
}

/* ---------- auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side .logo { color: #fff; }
.auth-side h2 { font-size: 38px; max-width: 420px; }
.auth-side p { color: #c3cadb; max-width: 420px; font-size: 18px; }
.auth-card .auth-pal { display: none; margin: 0 0 12px -10px; }
/* Desktop: the sheepdog or sheep stands big at the foot of the dark side panel */
.side-pal { position: absolute; right: 2%; bottom: -6px; pointer-events: none; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
.side-pal .pal { pointer-events: auto; --pal-h: min(440px, 44vh) !important; }
.auth-side > div:not(.side-pal) { position: relative; z-index: 1; }
.auth-ticks { list-style: none; padding: 0; margin: 28px 0 0; max-width: 420px; border-top: 1px solid rgba(255,255,255,.14); }
.auth-ticks li { padding: 12px 0 12px 30px; border-bottom: 1px solid rgba(255,255,255,.14); color: #dfe4ef; position: relative; }
.auth-ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid #5fd3a8; border-bottom: 2px solid #5fd3a8; transform: rotate(-45deg); }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 34px; }
.auth-card .sub { color: var(--ink-2); margin-bottom: 28px; }
.auth-card .ref-note { margin: 0 0 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.auth-card .ref-note b { color: var(--ink); }
.form-error { background: #fdecec; color: #9b2c2c; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }
.auth-mobile-logo { display: none; margin-bottom: 32px; }
@media (max-width: 860px) { .auth-mobile-logo { display: inline-flex; } }

/* ---------- dashboard ---------- */
.app-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.app-top .container { display: flex; align-items: center; height: 64px; gap: 16px; }
.app-top .spacer { flex: 1; }
.usage-pill { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.meter { width: 120px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter > div { height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s; }
.meter.warn > div { background: var(--sun); }
.meter.over > div { background: var(--coral); }
@media (max-width: 640px) { .usage-pill .lbl { display: none; } }

.app-main { padding: 28px 0 80px; }
.banner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.banner p { margin: 0; flex: 1; min-width: 220px; }
.banner.coral { background: var(--coral-soft); color: #7a2c17; }
.banner.green { background: var(--brand-soft); color: var(--brand-ink); }
.banner.sky { background: var(--sky-soft); color: #20407e; }

.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.tab { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: 600 15px var(--font); color: var(--ink); cursor: pointer; }
.tab .avatar { width: 30px; height: 30px; font-size: 14px; }
.tab[aria-selected="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tab.add { padding: 8px 16px; color: var(--ink-2); border-style: dashed; }

.grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.card h2 { font-size: 22px; margin-bottom: 4px; }
.card .card-sub { color: var(--ink-3); font-size: 14px; margin-bottom: 12px; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.card-head .avatar { width: 52px; height: 52px; font-size: 22px; }
.card-head h2 { margin: 0; font-size: 26px; }
.card-head .grow { flex: 1; min-width: 0; }
.status-line { font-size: 14px; font-weight: 600; }
.status-line.on { color: var(--brand-ink); }
.status-line.off { color: #b4561d; }

.pause-box { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface-2); margin: 16px 0 6px; }
.pause-box .txt { flex: 1; }
.pause-box strong { display: block; }
.pause-box small { color: var(--ink-2); }

.device { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.device:first-of-type { border-top: 0; }
.device .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--sky-soft); display: grid; place-items: center; font-size: 20px; flex: none; }
.device .txt { flex: 1; min-width: 0; }
.device .txt strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device .txt small { color: var(--ink-3); }
.device .seen { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c9c3b6; margin-right: 6px; }
.device .seen.live { background: var(--brand); }
.add-row { display: flex; gap: 10px; margin-top: 14px; }
.add-row input { margin-top: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.chip button { border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; color: var(--ink-3); padding: 0 4px; }
.chip button:hover { color: var(--danger); }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .lists { grid-template-columns: 1fr; } }
.lists h3 { font-size: 16px; font-family: var(--font); letter-spacing: 0; margin-bottom: 2px; }

/* always allow / always block */
.lists-card .lists { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.lc .seg { margin: 4px 0 12px; }
.lc .seg[hidden] { display: none; }
.lc-text { width: 100%; padding: 13px 14px; font: 16px var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; outline: none; resize: vertical; min-height: 52px; transition: border-color .15s, box-shadow .15s; }
.lc-text:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.lc-preview:empty { display: none; }
.lc-preview { margin-top: 10px; }
.lc-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lc-rows li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); }
.lc-rows li > div { min-width: 0; overflow-wrap: anywhere; }
.lc-rows li strong { font-size: 15px; }
.lc-rows li small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.lc-rows li.lc-ok.block { background: var(--coral-soft); }
.lc-rows li.lc-bad { background: var(--surface-2); }
.lc-picks .day input:checked + span::before { content: "✓ "; }
.lc-picks .day input:not(:checked) + span { color: var(--ink-3); text-decoration: line-through; }
.lc-rows li.lc-warn { background: #fff1d6; }
.lc-ico { flex: none; line-height: 1.4; }
.lc-from { color: var(--ink-3); font-size: 13px; font-weight: 400; }
.lc-comp { margin-top: 10px; padding: 12px; border-radius: 12px; border: 1.5px dashed var(--line); }
.lc-comp p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.lc-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-all { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.lc-all input { width: 18px; height: 18px; accent-color: var(--brand); }
.lc-save { margin-top: 12px; width: 100%; }
.lc-save:disabled { opacity: .5; cursor: default; box-shadow: none; }
.lc-count { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.lc-narrow { margin: 12px 0 0; }
.an-row .an-act { flex: none; margin-left: 10px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 12px; font: 600 13px var(--font); cursor: pointer; color: var(--ink); }
.an-row .an-act.allow:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.an-row .an-act.block:hover { border-color: var(--coral); color: #a83a1e; background: var(--coral-soft); }
.an-row { align-items: center; }
.an-row .cnt { margin-left: auto; }
.an-row .an-listed { flex: none; margin-left: 10px; font-size: 12px; color: var(--ink-3); font-weight: 600; }

.top-list { list-style: none; padding: 0; margin: 16px 0 0; }
.top-list li { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.top-list li span:last-child { color: var(--ink-3); font-variant-numeric: tabular-nums; }

.plan-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.plan-box .grow { flex: 1; min-width: 200px; }
.plan-badge { font: 600 13px var(--font); letter-spacing: -0.005em; text-transform: none; display: inline-block; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.plan-badge.pro { background: var(--brand-soft); color: var(--brand-ink); }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(22, 33, 58, .45); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 24px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; padding: 28px; box-shadow: var(--shadow-lg); animation: pop .18s cubic-bezier(.3,.7,.4,1.2); }
.modal h2 { font-size: 26px; }
.modal .close { float: right; border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.seg { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 14px; margin: 18px 0; flex-wrap: wrap; }
.seg button { flex: 1; border: 0; background: none; padding: 9px 10px; border-radius: 10px; font: 600 14px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.how ol { padding-left: 20px; }
.how li { margin-bottom: 10px; }
.copy-field { display: flex; gap: 8px; align-items: center; background: var(--surface-2); padding: 8px 8px 8px 14px; border-radius: 12px; font: 13.5px var(--mono); word-break: normal; overflow-wrap: anywhere; margin: 8px 0 14px; transition: box-shadow .25s ease, background-color .25s ease; }
.copy-field [data-copy] { flex-shrink: 0; min-width: 92px; justify-content: center; }
.copy-field.big [data-copy] { min-width: 112px; }
.copy-field.just-copied { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.copy-field code { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 60; box-shadow: var(--shadow-lg); animation: pop .2s; }
.toast.err { background: var(--danger); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), #fff, var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toast { transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* schedules & quick actions */
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick.small { gap: 14px; margin-top: 8px; font-weight: 500; }
.pause-box.night { background: #e9eefc; }
.pause-box .quick { flex: none; }
@media (max-width: 560px) { .pause-box { flex-wrap: wrap; } }
.live-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; font: 600 13px var(--font); letter-spacing: -0.005em; text-transform: none; color: #20407e; background: var(--sky-soft); padding: 3px 8px; border-radius: 999px; }
.day-picks, .cat-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-weight: 500; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day span { display: inline-block; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; transition: background .12s, border-color .12s; }
.day input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.day input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.cat-picks { margin: 8px 0 4px 26px; }
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type=time] { width: 100%; margin-top: 6px; padding: 12px 14px; font: 16px var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; }
label.radio { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-top: 10px; cursor: pointer; }
label.radio input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
label.radio .hint { color: var(--ink-3); font-weight: 400; font-size: 14px; }

/* Activity (analytics) view */
:root { --series-ok: #3f72d9; --series-blk: #e8603f; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Dashboard sections: one row of tabs; scrolls sideways on small phones instead of wrapping. */
.view-switch { display: flex; gap: 4px; background: var(--surface-2); padding: 5px; border-radius: 14px; margin: -8px 0 24px; overflow-x: auto; scrollbar-width: none; scroll-margin-top: 12px; }
.view-switch::-webkit-scrollbar { display: none; }
.view-switch button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: none; padding: 10px 14px; border-radius: 10px; font: 600 14.5px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.view-switch button:hover { color: var(--ink); }
.view-switch button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.view-switch button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
/* Phones: all five tabs stay visible, icon above a short label. */
@media (max-width: 640px) {
  .view-switch { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 4px; overflow: visible; }
  .view-switch button { flex-direction: column; gap: 2px; padding: 8px 2px; font-size: 12px; line-height: 1.2; white-space: normal; text-align: center; }
  .view-switch button span { font-size: 18px; }
  .device { flex-wrap: wrap; row-gap: 10px; }
  .device .txt { flex-basis: calc(100% - 54px); }
  .device .btn-primary, .device .btn-ghost:not([data-act="device-menu"]) { margin-left: 54px; }
}
.narrow { max-width: 820px; margin: 0 auto; }
.age-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0 14px; }
.age-row .lbl { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.age-row .btn.picked { background: var(--ink); color: #fff; border-color: var(--ink); }
.app-group { padding-top: 14px; }
.app-group + .app-group { border-top: 1px solid var(--line); margin-top: 16px; }
.app-group h3 { font: 600 16px var(--font); letter-spacing: 0; margin: 0 0 2px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.app-group h3 .count { font-weight: 500; font-size: 13px; color: var(--ink-3); }
.app-group .apps { margin-top: 8px; }
.an-toolbar { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.an-select select { appearance: none; -webkit-appearance: none; font: 600 15px var(--font); color: var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2347526b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 40px 10px 14px; box-shadow: var(--shadow); cursor: pointer; max-width: 100%; }
.an-select select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.an-summary { background: var(--brand-soft); border-color: transparent; box-shadow: none; }
.an-summary .kicker { font: 600 13px var(--font); letter-spacing: -0.005em; text-transform: none; color: var(--brand-ink); margin-bottom: 8px; }
.an-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.an-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 16px; text-align: center; box-shadow: var(--shadow); }
.an-tile .num { font-size: clamp(26px, 4.4vw, 38px); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.an-tile .num.blk { color: #c9472a; }
.an-tile .num.muted-num { color: var(--ink-2); }
.an-tile .lbl { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
@media (max-width: 560px) { .an-tiles { gap: 8px; } .an-tile { padding: 16px 6px; border-radius: 16px; } .an-tile .lbl { font-size: 12px; } }
.an-chart { position: relative; }
.an-chart svg { width: 100%; height: auto; overflow: visible; }
.an-chart .grid { stroke: var(--line); stroke-width: 1; }
.an-chart .base { stroke: var(--ink-3); stroke-width: 1; }
.an-chart .ax { fill: var(--ink-3); font: 11px var(--font); font-variant-numeric: tabular-nums; }
.an-chart .s-ok { fill: var(--series-ok); }
.an-chart .s-blk { fill: var(--series-blk); }
.an-chart .hit { fill: transparent; }
.an-chart .hit.on { fill: rgba(22, 33, 58, 0.06); }
.an-tip { position: absolute; top: 0; transform: translate(-50%, -8px); background: var(--ink); color: #fff; font-size: 13px; line-height: 1.45; padding: 8px 12px; border-radius: 10px; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow-lg); }
.an-tip strong { display: block; margin-bottom: 2px; }
.an-tip .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.an-tip .sw.ok { background: var(--series-ok); }
.an-tip .sw.blk { background: var(--series-blk); }
.an-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .an-lists { grid-template-columns: 1fr; gap: 0; } }
.an-list { list-style: none; padding: 0; margin: 0; }
.an-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.an-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.an-row .dom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.an-row .cnt { color: var(--ink-2); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.an-list .why { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.an-list .chip { background: var(--coral-soft); color: #a83a1e; font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.an-list .an-meter { height: 4px; background: var(--surface-2); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.an-list .an-meter i { display: block; height: 100%; background: var(--series-ok); border-radius: 4px; }
.an-list.blocked .an-meter i { background: var(--series-blk); }
.an-empty { color: var(--ink-3); background: var(--surface-2); border-radius: 14px; padding: 28px 16px; text-align: center; font-size: 15px; }
@media (max-width: 560px) { .an-summary .report-summary { font-size: 16px; } .an-toolbar { gap: 8px; } .an-select { flex: 1; } .an-select select { width: 100%; } }

/* "Is this device protected?" + setup guides */
.check-strip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.check-strip p { margin: 0; flex: 1; min-width: 200px; }
.check-strip .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); flex: none; }
.check-strip.ok { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.check-strip.ok .dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(30, 143, 110, .2); }
.check-strip.warn { background: var(--coral-soft); border-color: transparent; color: #7a2c17; }
.check-strip.warn .dot { background: var(--coral); }
.check-strip.big { padding: 20px 22px; font-size: 17px; }
.how h3 { font-size: 16px; margin: 18px 0 6px; }
.how ol.guide-steps { counter-reset: s; list-style: none; padding: 0; }
.how ol.guide-steps > li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 16px; }
.how ol.guide-steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 14px/28px var(--font); text-align: center; }
.how .step-action { margin-top: 10px; }
.how .tip { border-left: 2px solid var(--line); padding: 2px 0 2px 14px; font-size: 14px; color: var(--ink-2); }
.seg button span { margin-right: 2px; }
.seg button > span { display: inline-flex; vertical-align: -3px; margin-right: 4px; }
.seg button svg.i { display: inline-block; width: 15px; height: 15px; }
.device-sheet { padding: 8px 0 28px; }
.device-sheet .device-title { margin-top: 8px; }
.advanced { margin-top: 16px; font-size: 14px; }
.advanced summary { cursor: pointer; color: var(--ink-3); font-weight: 600; }
.advanced .kv { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.advanced .kv span { color: var(--ink-2); min-width: 170px; }
.advanced .kv code { flex: 1; font: 13px var(--mono); word-break: break-all; }
.device-page { max-width: 680px; }
.device-title { font-size: 30px; margin-bottom: 4px; }
.copy-field.big { font: 600 22px var(--mono); padding: 12px 12px 12px 18px; letter-spacing: .02em; }
.copy-field.big.long { font-size: 16px; letter-spacing: 0; }
.copy-field.big .btn { padding: 12px 22px; font-size: 16px; }
.brands { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.brands details { border-bottom: 1px solid var(--line); padding: 0 14px; }
.brands details:last-child { border-bottom: 0; }
.brands summary { cursor: pointer; font-weight: 600; padding: 11px 0; }
.brands details p { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-2); }

/* Always-on protection (collapsed list of the strong defaults) */
details.protect { border-top: 1px solid var(--line, #eee); }
details.protect > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 0; cursor: pointer; }
details.protect > summary::-webkit-details-marker { display: none; }
details.protect > summary .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
details.protect > summary .more { font-size: 14px; font-weight: 600; color: var(--brand, #1a7f5a); }
details.protect[open] > summary .more { visibility: hidden; }
details.protect .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }

/* Block apps and games */
.apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.app-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 7px; border-radius: 999px; border: 1px solid var(--line, #e5e1d8); background: var(--surface, #fff); font: inherit; font-size: 14px; cursor: pointer; color: inherit; }
.app-chip img { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.app-chip em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--danger, #c0392b); }
.app-chip.on { background: #ffe7df; border-color: #f3b9a6; }
.age-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }
.stuck { margin-top: 14px; font-size: 14px; }
.stuck summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.stuck textarea { width: 100%; margin: 8px 0; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); font: 15px var(--font); resize: vertical; box-sizing: border-box; }
.share-row { display: flex; gap: 16px; align-items: center; margin: 8px 0 14px; }
.share-row .copy-field { flex: 1; margin: 0; }
.share-row img { width: 112px; height: 112px; border-radius: 12px; border: 1px solid var(--line); flex: none; }
@media (max-width: 520px) { .share-row { flex-direction: column; align-items: stretch; } .share-row img { align-self: center; width: 160px; height: 160px; } }
.wizard .types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 18px; }
.wizard .types button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 6px; font: 600 14px var(--font); cursor: pointer; color: var(--ink); }
.wizard .types button span { display: block; font-size: 26px; margin-bottom: 4px; }
.wizard .types button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- "Protect something" guided setup (funnel.js) ---------- */
.funnel-back { position: fixed; inset: 0; background: var(--bg); z-index: 60; overflow: auto; animation: fade .15s; }
.funnel { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
.funnel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 20px; }
.funnel-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.funnel-nav:hover { color: var(--ink); border-color: var(--ink-3); }
.funnel-nav[hidden] { visibility: hidden; display: block; }
.funnel-dots { display: flex; gap: 6px; }
.funnel-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.funnel-dots i.on { background: var(--brand); width: 22px; border-radius: 999px; }
.funnel-body h1 { font: 700 clamp(26px, 6vw, 34px)/1.15 var(--display); letter-spacing: -.02em; margin: 8px 0 10px; }
.funnel-body .lead { color: var(--ink-2); font-size: 17px; margin: 0 0 22px; }
.choices { display: grid; margin: 0 0 16px; border-top: 1px solid var(--line); }
.choice { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 18px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; font: inherit; color: var(--ink); transition: background .12s; }
.choice:hover, .choice:focus-visible { background: var(--surface); outline: none; }
.choice:focus-visible { box-shadow: inset 3px 0 0 var(--brand); }
.choice .ic { width: 28px; color: var(--ink-2); display: grid; place-items: center; flex: none; }
.choice .ic svg { width: 24px; height: 24px; stroke-width: 1.75; }
.choice .tx { flex: 1; display: grid; gap: 3px; }
.choice .tx strong { font-size: 18px; }
.choice .tx small { color: var(--ink-3); font-size: 14px; }
.choice .go { color: var(--ink-3); display: grid; }
.choice .go svg { width: 20px; height: 20px; }
.choices.compact .choice { padding: 13px 6px; }
.choices.compact .choice .ic svg { width: 20px; height: 20px; }
.choices.compact .choice .tx strong { font-size: 16px; }
.avatar-sm { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font: 700 18px var(--display); }
.funnel .or { text-align: center; color: var(--ink-3); margin: 8px 0 12px; }
.funnel-form { display: grid; gap: 6px; }
.funnel-form .field { display: grid; gap: 8px; font-weight: 600; }
.funnel-form input[name=name] { font-size: 18px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); width: 100%; }
.funnel-form input[name=name]:focus { border-color: var(--brand); outline: none; }
.field-label { font-weight: 600; margin-top: 10px; }
.funnel .chips .chip { padding: 0; background: none; }
.funnel .chips .chip input { position: absolute; opacity: 0; pointer-events: none; }
.funnel .chips .chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 15px; }
.funnel .chips .chip input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.funnel .chips .chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-lg { padding: 16px 22px; font-size: 17px; border-radius: 14px; margin-top: 14px; }
.send-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 4px 0 18px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.send-row img { width: 180px; height: 180px; border-radius: 12px; background: #fff; flex: none; }
.send-row > div { flex: 1; min-width: 200px; }
.check-strip.waiting .dot { background: var(--sun); }
.dot.pulse { animation: cpw-pulse 1.4s ease-in-out infinite; }
@keyframes cpw-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 184, 77, .6); } 50% { box-shadow: 0 0 0 8px rgba(255, 184, 77, 0); } }
.done { text-align: center; }
.done .choices { text-align: left; }
.guide-tip { border-left: 2px solid var(--line); padding: 2px 0 2px 14px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2, #3d4a63); }
.guide-tip p { margin: 0; }
.guide-tip p + p { margin-top: 6px; }
.funnel-tip { margin: 0 0 18px; }
.funnel-pal { display: block; margin: 0 0 12px -8px; }
/* After a device is protected: the calm "home Wi‑Fi backup" suggestion. Flat, hairline-ruled, left-aligned. */
.backup-next { text-align: left; margin: 26px 0 6px; padding: 22px 0 6px; border-top: 1px solid var(--line); position: relative; animation: backup-in .5s cubic-bezier(.2, .8, .2, 1) .45s both; }
.backup-next::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 56px; background: var(--brand); transform-origin: left; animation: backup-rule .6s cubic-bezier(.2, .8, .2, 1) .7s both; }
.backup-next .kicker { margin: 0 0 6px; font: 600 13px var(--font); letter-spacing: -0.005em; text-transform: none; color: var(--brand-ink); }
.backup-next h2 { font: 700 22px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 8px; }
.backup-next > p:not(.kicker) { color: var(--ink-2); margin: 0; }
.backup-next .btn-lg { display: flex; align-items: center; justify-content: center; gap: 10px; }
.backup-next .btn-lg svg { width: 20px; height: 20px; }
.backup-next .small { margin-top: 10px; }
@keyframes backup-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes backup-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .backup-next, .backup-next::before { animation: none; } }
.done-pals { position: relative; display: inline-flex; align-items: flex-end; margin: 4px auto 6px; }
.done-icon { position: relative; display: inline-block; margin: 4px auto 6px; }
.big-check { position: absolute; right: -10px; bottom: 6px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; border: 3px solid var(--bg); animation: pop .35s .2s cubic-bezier(.3,.7,.4,1.4) both; }
.big-check svg { width: 24px; height: 24px; stroke-width: 3; }
@media (max-width: 480px) { .send-row { justify-content: center; text-align: center; } }
.choice .tag { margin-left: 8px; color: var(--brand); font-size: 13px; font-weight: 600; }
.setup-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line); }
.setup-row .mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-3); border: 1.5px dashed var(--line); }
.setup-row .mark svg { width: 16px; height: 16px; }
.setup-row.done .mark { background: var(--brand); color: #fff; border: 0; }
.setup-row .txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.setup-row .txt small { color: var(--ink-3); }
.setup-row.done strong { color: var(--ink-2); }

/* Sign in with Google */
.btn-google { background: #fff; color: #1f1f1f; border-color: var(--line); gap: 10px; }
.btn-google:hover { background: var(--surface-2); }
/* "Last used" marker on /login: a small tag, sitting on the Google button's top edge or beside the Email label. */
.last-used { display: inline-block; font: 600 11px/1 var(--font); letter-spacing: .02em; color: var(--brand-ink); background: var(--bg); border: 1px solid rgba(30, 143, 110, .45); border-radius: 999px; padding: 4px 8px 4px 19px; position: relative; animation: last-used-in .45s cubic-bezier(.2, .8, .2, 1) .25s both; }
.last-used::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(30, 143, 110, .5); animation: last-used-ping 1.6s ease-out .7s 2; }
.btn-google { position: relative; }
.btn-google .last-used { position: absolute; top: -10px; right: 18px; background: #fff; }
label.field .last-used { margin-left: 8px; vertical-align: 1px; }
@keyframes last-used-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes last-used-ping { to { box-shadow: 0 0 0 6px rgba(30, 143, 110, 0); } }
@media (prefers-reduced-motion: reduce) { .last-used, .last-used::before { animation: none; } }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; margin: 20px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dns-boxes { margin: 8px 0 6px; padding-left: 18px; }
.dns-boxes li { margin-bottom: 6px; }
.status-panel { border-top: 1px solid var(--line); margin-bottom: 24px; }
.status-line { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.status-line .mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: var(--ink-3); }
.status-line .mark svg { width: 16px; height: 16px; stroke-width: 2.5; }
.status-line.ok .mark { background: var(--brand); }
.status-line.bad .mark { background: var(--coral); }
.status-line.wait .mark { background: var(--sun); }
/* A suggestion, not a problem: outlined brand mark, no alarm colour. */
.status-line.tip .mark { background: none; color: var(--brand); border: 1.5px solid var(--brand); }
.status-line.tip .mark svg { stroke-width: 2; }
.tag-rec { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--brand-ink); white-space: nowrap; }
.tag-rec::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 5px; vertical-align: 1px; }
.status-line .txt { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.status-line .txt strong { font-size: 16px; }
.status-line .txt small { color: var(--ink-2); font-size: 14px; }
.status-head { display: flex; align-items: center; gap: 16px; padding: 18px 2px; border-bottom: 1px solid var(--line); }
.status-head .mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.status-head .mark svg { width: 24px; height: 24px; stroke-width: 3; }
.status-head.ok .mark { background: var(--brand); }
.status-head.bad .mark { background: var(--coral); }
.status-head.wait .mark { background: var(--sun); }
.status-head strong { display: block; font: 700 24px/1.2 var(--display); letter-spacing: -.01em; }
.status-head small { color: var(--ink-2); font-size: 15px; }

/* Device setup dialog: one screen at a time */
.modal .setup-back { margin: -4px 0 10px; font-size: 14px; }
.modal .lead { margin: 0 0 14px; }
.send-block { display: flex; gap: 22px; align-items: center; margin: 14px 0 18px; flex-wrap: wrap; }
.send-block img { border: 1px solid var(--line, #e6e2d8); border-radius: 14px; padding: 8px; background: #fff; }
.send-actions { display: grid; gap: 10px; flex: 1; min-width: 180px; }
.other-device { margin-top: 16px; }
.other-device summary { cursor: pointer; color: var(--muted, #667); font-size: 14px; }
.other-device .seg { margin-top: 10px; }
#setup-screen > * { animation: setup-in .22s ease-out both; }
@keyframes setup-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #setup-screen > * { animation: none; } }

.status-line .line-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.status-line small code { font: 600 13px var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; word-break: break-all; }

.phone-handoff { display: flex; gap: 16px; align-items: center; padding: 14px 0; margin: 4px 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.phone-handoff img { border-radius: 10px; background: #fff; padding: 4px; flex: none; }
.phone-handoff p { margin: 0; font-size: 14.5px; }

.status-line .v6-copy { display: flex; max-width: 460px; margin: 8px 0 2px; font-size: 13px; }
.status-line .v6-copy code { white-space: nowrap; overflow-x: auto; }
.v6-alt { margin-top: 10px; }
.v6-alt summary { cursor: pointer; color: var(--brand-ink); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.v6-alt[open] summary { margin-bottom: 6px; }

.rules-caption { margin: -4px 0 14px; color: var(--ink-2); font-size: 14px; max-width: 780px; }
.rules-caption strong { color: var(--ink); }

.seen.quiet { background: #d98a1e; }
.quiet-note { color: #b4561d; font-weight: 600; }

.show-here { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.show-here p { margin: 0 0 10px; }
.show-here .seg { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .auth-mobile-logo { margin-bottom: 20px; } .auth-card .auth-pal { display: block; --pal-h: 150px !important; margin: -6px 0 6px -14px; } }
/* Family Link Chromebook: one-tap Connect, shown only once the Sheepdog Filter extension is on this Chrome. */
.ext-connect { display: none; margin: 10px 0 4px; }
html[data-cpw-extension] .ext-connect { display: block; animation: ext-in .35s ease both; }
.ext-status { margin: 8px 0 0; font-weight: 600; min-height: 1.4em; }
.ext-status[data-state="connected"] { color: var(--brand, #1e8f6e); }
.ext-status[data-state="error"], .ext-status[data-state="other"] { color: var(--warn, #c2410c); }
@keyframes ext-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html[data-cpw-extension] .ext-connect { animation: none; } }

/* ---------- "Get the app" (install.js) ---------- */
.get-app .app-hero { display: flex; gap: 16px; align-items: center; margin: 4px 0 18px; }
.get-app .app-hero h1 { margin: 0 0 6px; }
.get-app .app-hero .lead { margin: 0; }
.app-icon { border-radius: 22%; flex: none; box-shadow: 0 1px 2px rgba(22, 33, 58, .08), 0 8px 22px rgba(22, 33, 58, .12); animation: app-rise .5s cubic-bezier(.2, .8, .3, 1.2) both; }
.app-icon.big { display: block; margin: 0 auto; }
@keyframes app-rise { from { opacity: 0; transform: translateY(10px) scale(.86); } to { opacity: 1; transform: none; } }
.app-perks { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.app-perks li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid var(--line); animation: app-in .4s ease both; }
.app-perks li:nth-child(2) { animation-delay: .08s; }
.app-perks li:nth-child(3) { animation-delay: .16s; }
@keyframes app-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.app-perks svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 1px; }
.app-perks span { display: grid; gap: 2px; }
.app-perks small { color: var(--ink-3); font-size: 14px; }
.app-install svg { width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; }
.app-free { margin: 10px 0 0; }
.app-steps { list-style: none; margin: 0 0 6px; padding: 0; counter-reset: s; }
.app-steps li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.app-steps li:first-child { border-top: 1px solid var(--line); }
.app-steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; flex: none; }
.app-steps p { margin: 0; font-size: 16px; }
.ui-btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: #2f6fe4; vertical-align: middle; white-space: nowrap; }
.ui-btn svg { width: 18px; height: 18px; }
.ui-btn b { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.app-phone { display: flex; gap: 16px; align-items: center; margin: 22px 0 4px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.app-phone img { border-radius: 10px; background: #fff; padding: 4px; flex: none; }
.app-phone p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); }
.app-later { margin: 18px 0 0; }
.get-app .done .lead { margin-bottom: 8px; }
@media (max-width: 420px) { .get-app .app-hero { align-items: flex-start; } .get-app .app-hero .app-icon { width: 56px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { .app-icon, .app-perks li { animation: none; } }
/* Header "Get the app" button: icon-only on small phones. */
.get-app-btn svg { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
@media (max-width: 520px) { .get-app-btn span { display: none; } .get-app-btn svg { margin: 0; } }
.get-app-btn[hidden] { display: none; }
@media (max-width: 720px) {
  .get-app .app-perks { margin-top: 22px; }
  .get-app .app-perks li { padding: 11px 4px; }
}
.get-app .app-perks + .app-steps li:first-child, .get-app .app-perks + .app-steps { border-top: 0; }

/* "Who it's for" menu in the top bar: families, churches, schools. Opens on hover or tap (focus). */
.who { position: relative; }
.who-btn { font: inherit; font-weight: 500; color: var(--ink-2); background: none; border: 0; padding: 10px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.who-btn svg { width: 15px; height: 15px; transition: transform .2s ease; }
.who:hover .who-btn, .who:focus-within .who-btn { color: var(--ink); }
.who:hover .who-btn svg, .who:focus-within .who-btn svg { transform: rotate(180deg); }
.who-menu { position: absolute; top: 100%; left: -20px; width: 300px; padding: 6px 0; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 24px 48px -24px rgba(22, 33, 58, .35); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.who:hover .who-menu, .who:focus-within .who-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-links .who-menu a { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 14px; padding: 11px 20px 11px 16px; white-space: normal; color: var(--ink); font-weight: 600; transition: background-color .2s ease; }
.nav-links .who-menu a + a { border-top: 1px solid var(--line); }
.nav-links .who-menu a:hover, .nav-links .who-menu a:focus-visible { background: var(--bg, #fbf8f3); }
.who-menu small { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.nav-links .who-menu a[aria-current] { color: var(--brand); }
.who-menu { width: 318px; }

/* Animated audience icons (pattern from Owl Test Prep's menu): a tinted square
   that fills with its colour on hover while the icon plays a small motion. */
.who-ic { --c: var(--brand); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 85%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.who-ic svg { width: 20px; height: 20px; overflow: visible; }
.who-ic .fx { transform-box: fill-box; }
.who-fam { --c: #1e8f6e; }
.who-acc { --c: #4f6bd8; }
.who-chu { --c: #c7772a; }
.who-sch { --c: #7a5bc9; }
.who-biz { --c: #d9573a; }
.who-tx { min-width: 0; }
.who-menu a:hover .who-ic, .who-menu a:focus-visible .who-ic, .who-menu a[aria-current] .who-ic {
  background: var(--c); color: #fff; box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--c) 70%, transparent); }
.who-menu a:hover .who-ic, .who-menu a:focus-visible .who-ic { transform: translateY(-1px) rotate(-4deg); }

/* opening: rows rise in one after another, icons pop and draw themselves */
.who:hover .who-menu a, .who:focus-within .who-menu a { animation: who-row .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 30ms); }
.who:hover .who-ic, .who:focus-within .who-ic { animation: who-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
.who:hover .who-ic svg > :not(.fx), .who:focus-within .who-ic svg > :not(.fx) { stroke-dasharray: 130; animation: who-draw .8s ease both; animation-delay: calc(var(--i, 0) * 45ms + 90ms); }
@keyframes who-row { from { opacity: 0; transform: translateY(-6px); } }
@keyframes who-pop { from { transform: scale(.55) rotate(-12deg); opacity: 0; } }
@keyframes who-draw { from { stroke-dashoffset: 130; } to { stroke-dashoffset: 0; } }

/* hover motions, one per audience */
.who-fam .fx { transform-origin: 50% 60%; }
:is(a:hover, a:focus-visible, .ic-hot:hover) .who-fam .fx { animation: who-beat 1s ease-in-out infinite; }
@keyframes who-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.28); } 30% { transform: scale(.95); } 45% { transform: scale(1.18); } 60% { transform: scale(1); } }
:is(a:hover, a:focus-visible, .ic-hot:hover) .who-acc .fx { animation: who-nudge .9s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes who-nudge { 0% { transform: translateX(4px); opacity: .3; } 100% { transform: none; opacity: 1; } }
.who-chu .fx { transform-origin: 50% 100%; }
:is(a:hover, a:focus-visible, .ic-hot:hover) .who-chu .fx { animation: who-swing 1.1s ease-in-out both; }
@keyframes who-swing { 0% { transform: rotate(0); } 25% { transform: rotate(14deg); } 50% { transform: rotate(-10deg); } 75% { transform: rotate(5deg); } 100% { transform: rotate(0); } }
.who-sch .fx { transform-origin: 0% 50%; fill: currentColor; fill-opacity: .18; }
:is(a:hover, a:focus-visible, .ic-hot:hover) .who-sch .fx { animation: who-page .9s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes who-page { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(-1); fill-opacity: 0; } }
:is(a:hover, a:focus-visible, .ic-hot:hover) .who-biz .fx > * { animation: who-wave 1.2s ease-in-out infinite; }
:is(a:hover, a:focus-visible, .ic-hot:hover) .who-biz .w2 { animation-delay: .15s; }
:is(a:hover, a:focus-visible, .ic-hot:hover) .who-biz .w3 { animation-delay: .3s; }
@keyframes who-wave { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* The same icon tiles elsewhere on the site.
   .ic-sm: footer links. .ic-lg: audience page heroes. .ic-draw: lines draw
   themselves when the row scrolls in (.rv / .reveal get .in from page JS). */
.who-ic.ic-sm { width: 24px; height: 24px; border-radius: 7px; }
.who-ic.ic-sm svg { width: 15px; height: 15px; }
.who-ic.ic-lg { width: 46px; height: 46px; border-radius: 13px; }
.who-ic.ic-lg svg { width: 26px; height: 26px; }
.ic-start { --c: #1e8f6e; } .ic-dev { --c: #4f6bd8; } .ic-game { --c: #7a5bc9; } .ic-router { --c: #0c8599; }
.ic-apps { --c: #d9573a; } .ic-worry { --c: #c2456a; } .ic-compare { --c: #4a5874; }
footer.site .foot-links a.f-aud { display: inline-flex; align-items: center; gap: 8px; align-self: center; }
footer.site .foot-links a.f-aud:hover .who-ic, footer.site .foot-links a.f-aud:focus-visible .who-ic { background: var(--c); color: #fff; transform: translateY(-1px) rotate(-6deg); }
.ic-hot { cursor: default; }
.ic-hot:hover { background: var(--c); color: #fff; transform: translateY(-2px) rotate(-5deg); box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--c) 75%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .ic-draw svg * { stroke-dasharray: 130; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.6, 0, .2, 1) var(--dd, .15s); }
  .ic-draw .fx { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) calc(var(--dd, .15s) + .7s), opacity .3s ease calc(var(--dd, .15s) + .7s); }
  .js :is(.rv, .reveal):not(.in) .ic-draw svg * { stroke-dashoffset: 130; }
  .js :is(.rv, .reveal):not(.in) .ic-draw .fx { transform: scale(.2); opacity: 0; }
  .ic-draw { transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), scale .6s cubic-bezier(.34, 1.56, .64, 1); }
  .js :is(.rv, .reveal):not(.in) .ic-draw { scale: .6; }
}

/* Guides hub section icons */
.who-ic .fx-tilt { transform-origin: 50% 0%; }
:is(.ic-hot:hover) .ic-compare .fx, .ic-compare.ic-hot:hover .fx { animation: who-swing 1.2s ease-in-out both; }
.ic-start.ic-hot:hover .fx { animation: ic-spin 1s cubic-bezier(.34, 1.56, .64, 1) both; }
.ic-start .fx { transform-origin: 50% 50%; }
@keyframes ic-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.ic-dev.ic-hot:hover .fx, .ic-apps.ic-hot:hover .fx { animation: ic-hop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes ic-hop { 0% { transform: none; } 40% { transform: translateY(-3px); } 100% { transform: none; } }
.ic-game.ic-hot:hover .fx { animation: who-wave .5s ease-in-out 2; }
.ic-router.ic-hot:hover .fx > * { animation: who-wave 1.2s ease-in-out infinite; }
.ic-router.ic-hot:hover .fx > :nth-child(2) { animation-delay: .2s; }
.ic-worry .fx { transform-origin: 50% 50%; }
.ic-worry.ic-hot:hover .fx { animation: who-beat 1s ease-in-out both; }
.ic-hot.who-fam:hover .fx { animation: who-beat 1s ease-in-out infinite; }
.ic-hot.who-acc:hover .fx { animation: who-nudge .9s cubic-bezier(.34, 1.56, .64, 1) both; }
.ic-hot.who-chu:hover .fx { animation: who-swing 1.1s ease-in-out both; }
.ic-hot.who-sch:hover .fx { animation: who-page .9s cubic-bezier(.5, 0, .3, 1) both; }
.ic-hot.who-biz:hover .fx > * { animation: who-wave 1.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .who-ic, .who-ic * { animation: none !important; transition: none !important; }
  .ic-hot:hover, footer.site .foot-links a.f-aud:hover .who-ic { transform: none; }
  .who-menu, .who-btn svg, .who-ic { transition: none; }
  .who-menu a, .who-menu .who-ic, .who-menu .who-ic svg *, .who-menu a:hover .who-ic { animation: none !important; transform: none !important; stroke-dasharray: none !important; }
}

/* Signup forms with a second group (accountability: "Your partner"). */
.field-group-label { margin: 20px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.field-group-label .hint { font-weight: 400; color: var(--ink-3); }
/* Sign-in pages: a massive mascot fills the dark side (desktop); on phones it sits centred above the form, sized so the page fits one screen */
@media (min-width: 861px) {
  .auth-side:has(.side-pal) { justify-content: flex-start; gap: 5vh; }
  .auth-side:has(.side-pal) > span:empty { display: none; }
  .side-pal { position: relative; right: auto; bottom: auto; flex: 1 1 0; min-height: 240px; container-type: size; margin: 0 -48px -48px; display: flex; justify-content: center; align-items: flex-end; }
  .side-pal .pal { --pal-h: min(calc(100cqh * 1.06), calc(100cqw * 0.9), 900px) !important; translate: 0 6%; }
}
@media (max-width: 860px) {
  .auth-main:has(.auth-pal) { padding-top: 16px; padding-bottom: 16px; }
  .auth-card .auth-pal { --pal-h: clamp(140px, calc(100svh - 505px), 320px) !important; margin: 0 auto 4px; }
}

/* ---------- Phone menu (mobile-menu.js): full-screen "Who it's for" sheet ---------- */
.mm-btn { display: none; }
@media (max-width: 760px) {
  .mm-btn { display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin: 0 -8px 0 -2px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
  .mm-btn span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: width .3s cubic-bezier(.34, 1.56, .64, 1); }
  .mm-btn span + span { width: 15px; justify-self: end; }
  .mm-btn:hover span + span, .mm-btn:focus-visible span + span { width: 22px; }
  .mm-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; }
  /* "Log in" moves into the sheet so the header stays uncluttered */
  .has-mm .nav-links a[href="/login"]:not(.btn) { display: none; }
}
.mm-lock, .mm-lock body { overflow: hidden; }
.mm { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  padding: env(safe-area-inset-top, 0px) 0 0; opacity: 0; transform: translateY(-14px); transition: opacity .28s ease, transform .4s cubic-bezier(.2, .8, .2, 1); }
.mm.open { opacity: 1; transform: none; }
.mm[hidden] { display: none; }
.mm-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px 20px; min-height: 64px; }
.mm-top .logo { text-decoration: none; }
.mm-x { position: relative; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mm-x span { position: absolute; left: 11px; top: 21px; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1) .05s; }
.mm-x span:first-child { transform: rotate(0); } .mm-x span:last-child { transform: rotate(0); }
.mm.open .mm-x span:first-child { transform: rotate(45deg); } .mm.open .mm-x span:last-child { transform: rotate(-45deg); }
.mm-x:focus-visible { outline: 2px solid var(--brand); }
.mm-body { flex: 1; padding: 12px 20px 8px; }
.mm-kick { margin: 0 0 6px; font-weight: 600; font-size: 14px; color: var(--brand-ink); }
.mm-h { margin: 0 0 16px; font-family: var(--display); font-size: 27px; line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); }
.mm-list { border-top: 1px solid var(--line); }
.mm-row { display: grid; grid-template-columns: 46px 1fr 20px; align-items: center; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mm-tx b { display: block; font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; }
.mm-tx span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.mm-row[aria-current] b { color: var(--brand); }
.mm-go { width: 20px; height: 20px; color: var(--ink-3); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), color .2s ease; }
.mm-row:hover .mm-go, .mm-row:focus-visible .mm-go, .mm-row:active .mm-go { transform: translateX(4px); color: var(--ink); }
.mm-row:hover .who-ic, .mm-row:focus-visible .who-ic, .mm-row:active .who-ic, .mm-row[aria-current] .who-ic { background: var(--c); color: #fff; box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--c) 75%, transparent); }
.mm-row:hover .who-ic, .mm-row:focus-visible .who-ic, .mm-row:active .who-ic { transform: translateY(-2px) rotate(-5deg); }
.mm-row:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.mm-more { display: flex; gap: 22px; padding: 20px 2px 4px; }
.mm-more a { color: var(--ink-2); font-weight: 500; text-decoration: none; }
.mm-cta { position: sticky; bottom: 0; padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 22%); text-align: center; }
.mm-cta .btn { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 15px 18px; font-size: 17px; }
.mm-cta .btn .mm-go { color: currentColor; width: 18px; height: 18px; }
.mm-cta small { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
/* opening: rows rise in one by one, icons pop and draw themselves */
.mm.open .mm-kick, .mm.open .mm-h { animation: who-row .5s cubic-bezier(.2, .8, .2, 1) both; }
.mm.open .mm-h { animation-delay: .05s; }
.mm.open .mm-row { animation: who-row .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 100ms); }
.mm.open .mm-row .who-ic { animation: who-pop .55s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 140ms); }
.mm.open .mm-row .who-ic svg > :not(.fx) { stroke-dasharray: 130; animation: who-draw .9s ease both; animation-delay: calc(var(--i, 0) * 55ms + 180ms); }
.mm.open .mm-more, .mm.open .mm-cta { animation: who-row .5s cubic-bezier(.2, .8, .2, 1) .4s both; }
@media (prefers-reduced-motion: reduce) {
  .mm, .mm-x span, .mm-go, .mm-btn span { transition: none; }
  .mm.open *, .mm-row .who-ic { animation: none !important; }
  .mm-row .who-ic svg * { stroke-dasharray: none !important; }
  .mm-row:hover .who-ic, .mm-row:active .who-ic { transform: none; }
}
/* narrow phones: make room for the menu button without squeezing the logo */
@media (max-width: 400px) {
  html.has-mm .nav-links { gap: 8px; }
  html.has-mm .nav-links a.btn { padding: 8px 12px; font-size: 14.5px; }
  .mm-btn { width: 40px; margin-right: -10px; }
}
@media (max-width: 360px) {
  html.has-mm .nav-links { gap: 4px; }
  html.has-mm .nav-links a.btn { padding: 8px 10px; font-size: 14px; }
  html.has-mm body .nav .logo { font-size: 17px; gap: 7px; }
  html.has-mm body .nav .logo .logo-mark { width: 28px; height: 28px; }
  html.has-mm .nav .container { padding-left: 16px; padding-right: 16px; }
}

/* Signup step 1, "Who is this for?": one list, one tap. Same animated icon tiles as the Who it's for menu. */
.signup-step[hidden] { display: none; }
.pick-list { display: block; border-top: 1px solid var(--line); margin: 4px 0 8px; }
.pick { display: grid; grid-template-columns: 44px 1fr 18px; align-items: center; gap: 16px; padding: 15px 6px 15px 2px; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; position: relative; transition: padding .3s cubic-bezier(.2, .8, .2, 1), background-color .2s ease; }
.pick small { display: block; margin-top: 3px; font-weight: 400; font-size: 14px; line-height: 1.35; color: var(--ink-3); }
.pick .who-ic { width: 44px; height: 44px; border-radius: 12px; }
.pick .who-ic svg { width: 23px; height: 23px; }
.pick-go { width: 18px; height: 18px; color: var(--ink-3); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), color .2s ease; }
.pick:hover, .pick:focus-visible { padding-left: 8px; }
.pick:hover .pick-go, .pick:focus-visible .pick-go, .pick.chosen .pick-go { transform: translateX(4px); color: var(--c, var(--ink)); }
.pick:hover .who-ic, .pick:focus-visible .who-ic, .pick.chosen .who-ic {
  background: var(--c); color: #fff; transform: translateY(-1px) rotate(-5deg); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--c) 75%, transparent); }
.pick:has(.who-fam) { --c: #1e8f6e; } .pick:has(.who-acc) { --c: #4f6bd8; } .pick:has(.who-chu) { --c: #c7772a; } .pick:has(.who-sch) { --c: #7a5bc9; } .pick:has(.who-biz) { --c: #d9573a; }
.pick::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.pick:hover::after, .pick:focus-visible::after, .pick.chosen::after { transform: scaleX(1); }
.pick.chosen .who-fam .fx { animation: who-beat 1s ease-in-out infinite; }
.pick.chosen .who-acc .fx { animation: who-nudge .9s cubic-bezier(.34, 1.56, .64, 1) both; }
.pick.chosen .who-chu .fx { animation: who-swing 1.1s ease-in-out both; }
.pick.chosen .who-sch .fx { animation: who-page .9s cubic-bezier(.5, 0, .3, 1) both; }
.pick.chosen .who-biz .fx > * { animation: who-wave 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: no-preference) {
  .signup-step:not([hidden]) { animation: step-in .45s cubic-bezier(.2, .8, .2, 1) both; }
  #step-who:not([hidden]) .pick { animation: who-row .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
  #step-who:not([hidden]) .pick .who-ic { animation: who-pop .55s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 140ms); }
  #step-who:not([hidden]) .pick .who-ic svg > :not(.fx) { stroke-dasharray: 130; animation: who-draw .9s ease both; animation-delay: calc(var(--i, 0) * 60ms + 200ms); }
}
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }
/* Step 2: a quiet line saying who it's for, with a way back. */
.pick-login { margin: 18px 0 0; }
.picked { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14.5px; color: var(--ink-2); }
.picked b { color: var(--ink); font-weight: 600; }
.picked a { margin-left: auto; font-weight: 600; font-size: 14px; }
.picked a[hidden] { display: none; }
.picked .who-ic { background: var(--c); color: #fff; }
.auth-card [data-show][hidden] { display: none; }
@media (max-width: 860px) {
  /* The question fits one phone screen: a smaller sheep above it. */
  .auth-card:has(#step-who:not([hidden])) .auth-pal { --pal-h: clamp(84px, calc(100svh - 660px), 160px) !important; }
  .auth-card:has(#step-who:not([hidden])) .auth-mobile-logo { margin-bottom: 8px; }
  #step-who h1 { font-size: 30px; margin-bottom: 6px; }
  #step-who .sub { margin-bottom: 18px; }
  .pick { grid-template-columns: 40px 1fr 16px; padding: 12px 2px 12px 0; gap: 14px; font-size: 16px; }
  .pick .who-ic { width: 40px; height: 40px; border-radius: 11px; }
  .pick small { font-size: 13.5px; }
}
