/* WebCounter - design 16 "Observatory". Tokens match design/d16.html. Font self-hosted (no third-party requests). */
@font-face{font-family:"Public Sans";font-style:normal;font-weight:400 800;font-display:swap;src:url(/fonts/public-sans-latin.woff2) format("woff2")}
:root{--page:#eef1f5;--surface:#fff;--ink:#1b2430;--ink-2:#4f5b6b;--muted:#7b8696;--grid:#e3e7ec;
  --human:#2f6fde;--bot:#b4bcc7;--seq1:#e4edfc;--seq2:#b3cbf5;--seq3:#6f9be8;--seq4:#2f6fde;--seq5:#1a4596;--bad:#b42318;
  --font:"Public Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
@media (prefers-color-scheme:dark){:root{--page:#121820;--surface:#1b232e;--ink:#eef2f7;--ink-2:#b3bdca;--muted:#8a95a5;--grid:#2a3440;
  --human:#6c9cf0;--bot:#5b6675;--seq1:#1f2c40;--seq2:#24447a;--seq3:#3566bd;--seq4:#6c9cf0;--seq5:#b6cdf7;--bad:#f97066}}
*{box-sizing:border-box;margin:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--page);color:var(--ink);font:400 17px/1.55 var(--font);overflow-wrap:anywhere}
img,svg{max-width:100%}
a{color:var(--ink)}
a:focus-visible,.btn:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--human);outline-offset:2px}
.wrap{max-width:1200px;margin:0 auto;padding:0 28px}

/* chrome */
.site-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 0}
.brand{font:800 20px/1 var(--font);letter-spacing:-.01em;text-decoration:none;display:flex;align-items:center;gap:10px;flex:none}
.brand svg{width:28px;height:28px}
.site-head nav{display:flex;gap:22px;align-items:center;font-weight:500;flex-wrap:wrap;justify-content:flex-end}
.site-head nav a{text-decoration:none}
.site-head nav a:not(.btn):hover{text-decoration:underline}
.site-head form{display:inline}
.who{color:var(--muted);font-size:14px;max-width:22ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.linkish{background:none;border:0;padding:0;font:inherit;color:var(--ink);cursor:pointer}
.linkish:hover{text-decoration:underline}
main{min-height:50vh}
.site-foot{border-top:1px solid var(--grid);margin-top:70px;padding:22px 0 50px;font-size:14px;color:var(--ink-2)}

/* type + buttons */
h1{font:800 clamp(30px,4vw,54px)/1.04 var(--font);letter-spacing:-.03em}
h2{font:700 20px/1.25 var(--font)}
.lede{color:var(--ink-2);margin:18px 0 26px;max-width:40ch}
.meta{color:var(--muted);font-size:14px}
.btn{display:inline-block;background:var(--human);color:#fff;padding:15px 24px;border:0;border-radius:8px;font:700 17px/1.2 var(--font);text-decoration:none;cursor:pointer}
.btn:hover{filter:brightness(1.08)}
.btn-sm{padding:9px 16px;font-size:15px}
.site-head nav a.btn{color:#fff}
.btn-ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 2px var(--grid)}

/* landing */
.hero{display:grid;grid-template-columns:.8fr 1.4fr;gap:44px;padding:36px 0 70px;align-items:start}
.hero .actions{display:flex;gap:12px;flex-wrap:wrap}
.trust{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:26px;padding:0;list-style:none;font-size:14px;color:var(--ink-2)}
.trust li::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--human);margin-right:8px;vertical-align:1px}
.panel{background:var(--surface);border-radius:14px;padding:24px 24px 18px;min-width:0}
.panel h2{font-size:17px}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--grid);margin:18px 0 22px;border-radius:10px;overflow:hidden}
.tile{background:var(--surface);padding:14px 16px;min-width:0}
.tile b{display:block;font:800 30px/1.1 var(--font);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.tile span{font-size:14px;color:var(--ink-2)}
.legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;color:var(--ink-2);margin-bottom:6px}
.legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}
#chart{width:100%;height:auto;display:block;overflow:visible}
#chart text{font:400 11px var(--font);fill:var(--muted)}
#chart .hit{fill:transparent;cursor:crosshair}
#chart .hit:hover{fill:var(--grid);fill-opacity:.6}
.tip{position:fixed;pointer-events:none;background:var(--ink);color:var(--surface);padding:8px 11px;border-radius:8px;font-size:13px;line-height:1.45;opacity:0;transform:translate(-50%,-110%);white-space:nowrap;z-index:60}
details{margin-top:10px;font-size:14px;color:var(--ink-2)}
details .scroll{max-height:240px;overflow:auto}
details table{border-collapse:collapse;margin-top:8px;font-variant-numeric:tabular-nums}
details td,details th{padding:3px 14px 3px 0;text-align:right}
details th{text-align:left;font-weight:500}
section.ws{padding:20px 0 70px}
section.ws>h2{font:800 34px/1.1 var(--font);letter-spacing:-.02em}
section.ws>p{color:var(--ink-2);margin:10px 0 36px;max-width:56ch}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.w{background:var(--surface);border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:14px;min-width:0}
.w h3{font:700 17px/1.2 var(--font)}
.w p{font-size:15px;color:var(--ink-2)}
.w .demo{min-height:96px;display:flex;align-items:center}
/* hero image is not generated yet (design/Prompts/d16-hero.txt): a data-styled band stands in */
.band{position:relative;overflow:hidden;border-radius:14px;padding:44px 40px;color:#fff;
  background:radial-gradient(600px 300px at 85% 20%,rgba(255,255,255,.14),transparent 60%),linear-gradient(135deg,#1a4596,#2f6fde 70%,#6f9be8)}
.band::after{content:"";position:absolute;right:-20px;bottom:-30px;width:46%;height:120%;opacity:.22;
  background:repeating-linear-gradient(90deg,#fff 0 14px,transparent 14px 26px);-webkit-mask:linear-gradient(180deg,transparent,#000);mask:linear-gradient(180deg,transparent,#000)}
.band h2{font:800 clamp(24px,3vw,36px)/1.1 var(--font);letter-spacing:-.02em;max-width:22ch;position:relative}
.band p{margin:12px 0 22px;max-width:52ch;opacity:.9;position:relative}
.band .btn{background:#fff;color:#1a4596;position:relative}

/* app pages */
.narrow{max-width:460px;margin:20px auto 0}
.page-head{margin:10px 0 24px}
.page-head h1{font-size:clamp(28px,3.4vw,40px)}
.page-head p{color:var(--ink-2);margin-top:10px;max-width:70ch}
.crumbs{font-size:14px;color:var(--muted);margin-bottom:6px}
main .panel{margin-bottom:22px}
main .panel>h2+.meta{margin:4px 0 16px}
.notice{background:var(--seq1);color:var(--ink);border-radius:10px;padding:12px 16px;margin-bottom:22px}
.links{display:flex;gap:18px;flex-wrap:wrap}
form p{margin:0 0 16px}
label{display:block;font-weight:500;font-size:15px}
input[type=email],input[type=password],input[type=text],input:not([type]),textarea{display:block;width:100%;margin-top:6px;padding:12px 14px;
  font:400 16px/1.4 var(--font);color:var(--ink);background:var(--page);border:1px solid var(--grid);border-radius:8px}
textarea{font:400 13px/1.5 ui-monospace,Consolas,monospace;resize:vertical}
label.check{display:flex;gap:10px;align-items:flex-start;font-weight:400;margin:18px 0}
label.check input{margin-top:5px;flex:none;width:18px;height:18px;accent-color:var(--human)}
.inline-form{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.inline-form label{flex:1 1 240px}
.error ul{padding-left:18px}
.error,.field-validation-error{color:var(--bad);font-size:15px}
.validation-summary-valid{display:none}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -4px;padding:0 4px}
table.data{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;font-size:15px}
table.data th,table.data td{padding:10px 12px;text-align:right;border-bottom:1px solid var(--grid);white-space:nowrap}
table.data th:first-child,table.data td:first-child{text-align:left;padding-left:0}
table.data thead th{font-size:13px;font-weight:500;color:var(--muted)}
table.data tfoot th{font-weight:800;border-bottom:0}
table.data td a{margin-right:12px}
.num-human{color:var(--human);font-weight:700}

/* widget gallery */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.style-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:14px;border:2px solid var(--grid);border-radius:12px;cursor:pointer;font-weight:400}
.style-card:has(input:checked){border-color:var(--human);box-shadow:0 0 0 3px color-mix(in srgb,var(--human) 18%,transparent)}
.style-card input{position:absolute;top:14px;right:14px;width:18px;height:18px;accent-color:var(--human)}
.style-card input:focus-visible{outline:3px solid var(--human);outline-offset:2px}
.style-demo{display:flex;align-items:center;min-height:104px;padding:12px;border-radius:8px;background:#f5f7fa;color:#1b2430;overflow:hidden}
.style-demo.on-dark{background:#0f141b;color:#eef2f7}
.style-name{font-weight:700;text-transform:capitalize;margin-top:4px}
.style-note{font-size:14px;color:var(--ink-2)}
.preview{padding:18px;background:#f5f7fa;border-radius:8px;color:#1b2430}

@media (max-width:900px){
  .hero,.grid3{grid-template-columns:1fr}
  .hero{gap:28px;padding:16px 0 50px}
  .tile b{font-size:22px}
}
@media (max-width:560px){
  body{font-size:16px}
  .wrap{padding:0 16px}
  .site-head{padding:16px 0}
  .site-head nav{gap:14px;font-size:15px}
  .who{display:none}
  .brand{font-size:18px}
  .brand svg{width:24px;height:24px}
  .btn-sm{padding:8px 12px}
  .panel{padding:18px 16px 14px}
  .tiles{grid-template-columns:1fr 1fr 1fr}
  .tile{padding:10px}
  .tile b{font-size:19px}
  .tile span{font-size:12px;line-height:1.3;display:block}
  #chart text{font-size:18px}
  section.ws>h2{font-size:26px}
  .w{padding:18px}
  .band{padding:30px 22px}
  .band::after{width:60%;opacity:.14}
  .gallery{grid-template-columns:1fr}
  .site-foot{margin-top:40px}
}

/* Widget wizard (task 795): sticky preview + settings beside the 50+ style gallery */
.wiz{display:grid;grid-template-columns:340px 1fr;gap:22px;align-items:start;margin-bottom:22px}
.wiz-side{position:sticky;top:16px}
.wiz-side h3{font-size:15px;margin:20px 0 4px}
.wiz-side label.check{margin:10px 0}
.stage{display:flex;align-items:center;justify-content:center;min-height:150px;padding:22px;border-radius:10px;background:#f5f7fa;color:#1b2430;margin:12px 0 8px;overflow:hidden}
.stage[data-stage=dark]{background:#0f141b;color:#eef2f7}
.seg{display:inline-flex;border:1px solid var(--grid);border-radius:8px;overflow:hidden}
.seg button{background:none;border:0;padding:6px 12px;font:inherit;font-size:14px;color:var(--ink-2);cursor:pointer}
.seg button.on{background:var(--seq1);color:var(--ink);font-weight:600}
.pickers{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin-top:8px}
.picker{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:400}
.picker input[type=color]{width:34px;height:28px;padding:0 2px;border:1px solid var(--grid);border-radius:6px;background:var(--surface);cursor:pointer;flex:none}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 16px}
.chips button{background:none;border:1px solid var(--grid);border-radius:999px;padding:5px 12px;font:inherit;font-size:14px;color:var(--ink-2);cursor:pointer}
.chips button.on{border-color:var(--human);color:var(--human);font-weight:600}
.wiz .gallery{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.wiz .style-card{padding:10px}
.wiz .style-demo{min-height:130px;justify-content:center}
.style-card[hidden]{display:none}
@media (max-width:900px){.wiz{grid-template-columns:1fr}.wiz-side{position:static}}

/* Reports: 4 tiles, 30-day bars, two-column places */
.tiles.tiles4{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.bars{display:flex;align-items:flex-end;gap:3px;height:120px;margin:4px 0 10px}
.bars span{position:relative;flex:1;height:100%;display:flex;align-items:flex-end}
.bars i{position:absolute;left:0;right:0;bottom:0;border-radius:3px 3px 0 0;background:var(--seq2);min-height:1px}
.bars i.u{left:22%;right:22%;background:var(--human)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:22px 0}
.grid2 h2,.panel > h2 + .table-wrap{margin-bottom:8px}
@media (max-width:760px){.grid2{grid-template-columns:1fr}}

/* Landing hero, task 802: three steps with small product mocks, the style gallery is the payoff */
.hero-steps{padding:36px 0 60px}
.hero-copy{max-width:760px}
.hero-copy .lede{max-width:56ch}
.steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:40px}
.step{position:relative;background:var(--surface);border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:10px;min-width:0}
.step h2{font:700 20px/1.2 var(--font)}
.step p{font-size:15px;color:var(--ink-2)}
.step-n{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--human);color:#fff;font:800 17px/1 var(--font)}
.mock{margin-top:auto;display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:10px;background:var(--page);border:1px solid var(--grid);font-size:14px;min-height:150px;justify-content:center}
.mock-label{font-size:12px;font-weight:600;color:var(--muted)}
.mock-field{display:block;padding:8px 10px;border-radius:6px;background:var(--surface);border:1px solid var(--grid);color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.mock-row{display:flex;gap:8px;align-items:center}
.mock-row .mock-field{flex:1}
.mock-btn{display:inline-block;align-self:flex-start;padding:8px 14px;border-radius:6px;background:var(--human);color:#fff;font-weight:700;white-space:nowrap}
.mock-ok{color:var(--human);font-weight:600;font-size:13px}
.mock-ok::before{content:"\2713  "}
.mock-code{display:block;padding:10px;border-radius:6px;background:#0f141b;color:#cfe0ff;font:400 12px/1.5 ui-monospace,Consolas,monospace;overflow-wrap:anywhere}
.mock-live{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px;color:#1b2430}
.ws-more{margin-top:22px;font-weight:600}
.report-hero{padding-top:10px}
.h2-big{font:800 clamp(26px,3vw,38px)/1.1 var(--font);letter-spacing:-.02em}
@media (max-width:900px){.steps{grid-template-columns:1fr}.mock{min-height:0}}

/* Owner report, task 803: top pages and referrers under the 30-day graph */
.sources{margin:22px 0 6px;padding-top:18px;border-top:1px solid var(--grid)}
.sources-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.sources h3{font:700 17px/1.25 var(--font);margin-bottom:8px}
.sources .grid2{margin:14px 0}
.seg a{padding:6px 12px;font-size:14px;color:var(--ink-2);text-decoration:none}
.seg a.on{background:var(--seq1);color:var(--ink);font-weight:600}
table.data td.url{white-space:normal;overflow-wrap:anywhere;text-align:left}
table.data tr.sel td{background:var(--seq1)}
.ref-urls{margin-top:18px}
.ref-urls h3 a{font-weight:400;margin-left:8px}

/* Legal pages and footer links (task 802) */
.legal{max-width:72ch}
.legal h1{font-size:clamp(28px,3.4vw,40px);margin-bottom:8px}
.legal h2{margin:30px 0 8px}
.legal p,.legal ul{margin:0 0 12px;color:var(--ink-2)}
.legal ul{padding-left:20px}
.legal li{margin-bottom:6px}
.legal strong{color:var(--ink)}
.foot-links{display:flex;gap:18px;margin:10px 0 4px}
