/*
 * Site Scrub. Light, quiet, and Apple-native, in the same language as the extension:
 * system fonts, one ink, one blue, red only on the destructive button, and a
 * working browser as the hero.
 */
:root {
  --ground: #fbfbfd;
  --band: #f2f2f5;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --hair: #e8e8ed;
  --rule: #d2d2d7;
  --accent: #0071e3;
  --accent-ink: #0066cc;
  --link: #0066cc;
  --danger: #d70015;
  --field: #eeeef1;
  --track: #d1d1d6;
  --desk-a: #e9eef5;
  --desk-b: #dce5ef;
  --display: -apple-system, "SF Pro Display", BlinkMacSystemFont, Inter, "Helvetica Neue", system-ui, sans-serif;
  --text: -apple-system, "SF Pro Text", BlinkMacSystemFont, Inter, "Helvetica Neue", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--text); letter-spacing: -0.012em; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(0,113,227,.45); outline-offset: 2px; border-radius: 8px; }
section[id] { scroll-margin-top: 56px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.display { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.07; letter-spacing: -0.037em; font-weight: 600; }
.sub { font-size: clamp(18px, 2vw, 21px); line-height: 1.4; color: var(--ink-3); margin-top: 14px; max-width: 34em; }
.label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--ink-3); }

/* Bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(251,251,253,.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.07); }
.bar .wrap { height: 48px; display: flex; align-items: center; gap: 4px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 15px; padding-right: 12px; }
.brand:hover { text-decoration: none; }
.brand i { font-style: normal; font-size: 18px; }
.spacer { flex: 1; }
.barlink { color: var(--ink-2); font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.barlink:hover { text-decoration: none; background: rgba(0,0,0,.05); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px; }
.pill:hover { text-decoration: none; background: #0077ed; }
@media (max-width: 720px) { .barlink { display: none; } }

/* Hero */
.hero { padding: 44px 0 40px; text-align: center; }
.tile { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 18px; background: linear-gradient(160deg,#FFF6C7,#FFE27A); display: flex; align-items: center; justify-content: center; font-size: 42px; line-height: 1; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 14px 36px rgba(180,140,0,.22); }
.eyebrow { font-size: 19px; font-weight: 600; color: var(--ink-3); }
h1 { font-size: clamp(40px, 7.2vw, 80px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; margin-top: 10px; }
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.35; color: var(--ink-3); margin: 16px auto 0; max-width: 28em; }
.cta { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dl { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; font-size: 18px; font-weight: 600; padding: 12px 26px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,113,227,.28); }
.dl:hover { text-decoration: none; background: #0077ed; }
.meta { font-size: 14px; color: var(--ink-3); }
@media (max-width: 480px) { .dl { font-size: 16px; padding: 12px 20px; white-space: nowrap; } }

/* Demo: a browser on a soft desk */
.desk { margin: 36px auto 0; max-width: 1040px; padding: clamp(14px, 4vw, 44px); border-radius: clamp(18px, 3vw, 32px); background: linear-gradient(180deg, var(--desk-a), var(--desk-b)); text-align: left; position: relative; overflow: hidden; }
.win { position: relative; max-width: 900px; margin: 0 auto; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 28px 70px rgba(20,30,60,.22), 0 0 0 1px rgba(0,0,0,.08); }
.chrome { background: #ececf0; padding: 10px 14px 0; }
.lights { display: flex; gap: 8px; padding: 2px 0 10px; }
.lights span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights span:nth-child(2) { background: #febc2e; }
.lights span:nth-child(3) { background: #28c840; }
.tab { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px 10px 0 0; padding: 8px 16px; font-size: 12px; color: var(--ink-2); }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--hair); }
.nav { display: flex; gap: 6px; color: var(--ink-3); }
.nav svg { display: block; }
.addr { flex: 1; min-width: 0; background: var(--field); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext { display: flex; align-items: center; gap: 4px; color: var(--ink-3); }
.xbtn { width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; display: flex; align-items: center; justify-content: center; font-size: 19px; cursor: pointer; color: inherit; position: relative; }
.xbtn:hover { background: rgba(0,0,0,.06); }
#sponge { color: var(--ink); }
#sponge.ping::after { content: ""; position: absolute; inset: -4px; border-radius: 12px; border: 2px solid var(--accent); opacity: 0; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(.85); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
.pg { position: relative; padding: 24px 28px 8px; min-height: 410px; }
.pg h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pgtop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hist { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.hrow { display: grid; grid-template-columns: 64px 28px 1fr; align-items: center; gap: 12px; padding: 0; height: 44px; border-bottom: 1px solid var(--hair); overflow: hidden; transition: height .35s ease, opacity .25s ease, border-color .35s; }
.hrow .t { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hrow .fav { width: 20px; height: 20px; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hrow .name { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .name small { color: var(--ink-3); font-size: 12px; margin-left: 8px; }
.hrow.gone { height: 0; opacity: 0; border-bottom-color: transparent; }
@media (max-width: 560px) { .hrow { grid-template-columns: 28px 1fr; } .hrow .t { display: none; } .pg { padding: 18px 16px 6px; } .ext .xbtn.hide { display: none; } }
.statusline { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); padding: 6px 0 14px; }
.statusline button { border: 0; background: none; color: var(--accent-ink); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.hint { margin-top: 18px; text-align: center; font-size: 15px; color: var(--ink-2); font-weight: 500; }

/* The real dialog, inside the page area */
.scrim { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 16px; animation: fade .16s ease; }
@keyframes fade { from { opacity: 0; } }
.dialog { width: 340px; max-width: 100%; background: #fff; color: var(--ink); border-radius: 14px; padding: 24px 20px 20px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.25); animation: pop .16s ease; }
@keyframes pop { from { transform: scale(.96); } }
.dtile { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 13px; background: linear-gradient(160deg,#FFF6C7,#FFE27A); display: flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; }
.dtitle { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.016em; margin-bottom: 6px; }
.dmsg { color: var(--ink-3); font-size: 14px; line-height: 20px; margin-bottom: 20px; }
.dbtns { display: flex; gap: 10px; }
.dbtns button { flex: 1; border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; background: var(--field); color: var(--ink); }
.dbtns button.danger { background: var(--danger); color: #fff; }
.dbtns button:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(0,113,227,.45); }
.splash { position: absolute; top: 14px; right: 16px; z-index: 6; font-size: 40px; line-height: 1; filter: drop-shadow(0 3px 8px rgba(0,0,0,.3)); pointer-events: none; animation: splash 1.5s ease forwards; }
@keyframes splash { 0% { opacity: 0; transform: translateY(-8px) scale(.9); } 18%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px) scale(.9); } }

/* How */
.how { background: var(--band); padding: 112px 0; margin-top: 96px; }
.how-head { max-width: 760px; }
.strip { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr; } }
figure { margin: 0; }
.frame { height: 250px; background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px rgba(0,0,0,.04); display: flex; align-items: center; justify-content: center; padding: 18px; overflow: hidden; }
figcaption { margin-top: 18px; font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.card { background: var(--card); border-radius: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,.04); overflow: hidden; width: 100%; }
.srow { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 52px; border-top: 1px solid var(--hair); }
.srow:first-child { border-top: 0; }
.srow .g { flex: 1; min-width: 0; }
.srow .tt { font-size: 15px; line-height: 20px; letter-spacing: -0.016em; }
.srow .ss { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.srow .nn { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.srow.sub { background: rgba(120,120,128,.06); padding-left: 36px; }
.sw { width: 40px; height: 24px; border-radius: 999px; background: var(--track); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.sw.on { background: var(--accent); }
.sw.on::after { transform: translateX(16px); }
.sw.sm { width: 34px; height: 21px; }
.sw.sm::after { width: 17px; height: 17px; }
.sw.sm.on::after { transform: translateX(13px); }
.search { margin: 10px; background: var(--field); border-radius: 9px; padding: 7px 10px; font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.bigbtn { width: 56px; height: 56px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 3px rgba(0,113,227,.45), 0 8px 24px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.mini-toolbar { width: 100%; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.mini-toolbar .addr { font-size: 12px; }
.cursor { position: absolute; margin: 34px 0 0 30px; }

/* Split sections */
.split { padding: 120px 0 0; }
.split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip .wrap > :first-child { order: 2; }
@media (max-width: 860px) { .split .wrap { grid-template-columns: 1fr; } .split.flip .wrap > :first-child { order: 0; } }
.split p.body { font-size: 19px; line-height: 1.45; color: var(--ink-2); margin-top: 18px; }
.note { margin-top: 14px; font-size: 15px; color: var(--ink-3); }
.shot { background: var(--band); border-radius: 24px; padding: clamp(18px, 3vw, 36px); }
.shot .card { box-shadow: 0 14px 40px rgba(20,30,60,.12), 0 0 0 1px rgba(0,0,0,.04); }
.seg { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--field); margin: 12px; }
.seg span { flex: 1; text-align: center; padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.seg span.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.kept-note { font-size: 12px; color: var(--ink-3); }
.cardlbl { padding: 12px 16px 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }

/* Facts, asks, install, faq */
.facts { padding: 120px 0 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--rule); padding-top: 32px; }
@media (max-width: 860px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts-grid { grid-template-columns: 1fr; } }
.facts h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.facts p { margin-top: 6px; font-size: 16px; color: var(--ink-3); }

.asks { background: var(--band); padding: 112px 0; margin-top: 120px; }
.asks-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .asks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .asks-grid { grid-template-columns: 1fr; } }
.ask { background: var(--card); border-radius: 18px; padding: 24px; box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.ask h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.ask p { margin-top: 6px; font-size: 16px; color: var(--ink-3); }
.ask.opt h3::after { content: "Optional"; margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--field); padding: 3px 8px; border-radius: 999px; vertical-align: 3px; letter-spacing: 0; }

.install { padding: 120px 0 0; }
.install-card { margin-top: 48px; background: var(--card); border-radius: 24px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 20px 60px rgba(20,30,60,.08); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .install-card { grid-template-columns: 1fr; } }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: baseline; padding: 12px 0; font-size: 18px; color: var(--ink); border-top: 1px solid var(--hair); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--field); color: var(--ink-2); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; transform: translateY(5px); }
.dlbox { text-align: center; }
.dlbox .tile { width: 72px; height: 72px; font-size: 42px; border-radius: 18px; margin-bottom: 20px; }
.dlbox .dl { font-size: 17px; padding: 12px 24px; }
.dlbox .meta { margin-top: 14px; }

.faq { padding: 120px 0 0; }
.faq-list { margin-top: 40px; max-width: 760px; border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 0 22px; font-size: 17px; color: var(--ink-3); max-width: 40em; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hrow, .scrim, .dialog, .splash { transition: none; animation: none; }
  .splash { opacity: 1; }
  #sponge.ping::after { animation: none; }
}

/* ---- Legal pages ---- */

.doc-head { padding: 96px 0 48px; text-align: center; }
.doc-head .eyebrow { margin: 28px 0 10px; }

.doc-head h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.doc-head .date { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }

.doc { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.doc.body { padding-bottom: 96px; }

.doc h2 {
    margin: 56px 0 14px;
    font-family: var(--text);
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.doc p, .doc li { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin: 0 0 8px; }
.doc b { color: var(--ink); font-weight: 600; }

.panel { background: var(--card); border: 1px solid var(--hair); border-radius: 20px; padding: 32px 32px 16px; }
.panel h2 { margin: 0 0 6px; font-family: var(--display); font-size: 28px; }
.panel .lead { margin: 0 0 20px; color: var(--ink-3); }

.row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--hair);
    font-size: 17px;
    line-height: 1.45;
}

.row b { text-align: right; }

.toc-panel { padding: 28px 32px; }
.toc-panel .title { margin: 0 0 12px; font-weight: 600; color: var(--ink); }
.toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 32px; margin: 0; padding: 0; list-style: none; }
.doc .toc li { margin: 0; }
.toc a { color: var(--ink); font-size: 15px; line-height: 2; }

/* ---- Footer ---- */

footer { border-top: 1px solid var(--hair); padding: 32px 0 48px; }

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--ink-3);
}

footer a { color: var(--ink-2); }
footer nav { display: flex; gap: 22px; }


.landing footer { margin-top: 140px; }
.landing footer .wrap { padding-top: 0; }
.fnote { width: 100%; font-size: 15px; color: var(--ink-2); margin: 0 0 4px; }

/* ---- Phones (legal pages) ---- */

@media (max-width: 820px) {
    .toc { grid-template-columns: minmax(0, 1fr); }
    .row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
