/* Liquid glass layer shared by the host page and the admin dashboard.
   Loaded after each page's own styles, so it only restyles surfaces, type and controls. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/onest-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/onest-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url(/assets/bricolage-grotesque-latin-standard-normal.woff2) format("woff2"); }

:root {
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage", "Onest", sans-serif;
  --bg: #E8EDF6;
  --ink: #142033;
  --ink-2: #536074;
  --ink-3: #8390A3;
  --line-soft: rgba(20, 32, 51, .07);
  --line: rgba(20, 32, 51, .12);
  --surface-2: rgba(20, 32, 51, .045);
  --blue: #0A66FF;
  --blue-press: #0052D6;
  --blue-soft: rgba(10, 102, 255, .12);
  --glass: rgba(255, 255, 255, .56);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-edge: rgba(255, 255, 255, .78);
  --glass-hi: rgba(255, 255, 255, .9);
  --glass-blur: blur(22px) saturate(185%);
  --glass-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(20,32,51,.05), 0 14px 34px -16px rgba(20,32,51,.22);
  --hero-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px rgba(255,255,255,.35), 0 2px 4px rgba(20,32,51,.05), 0 26px 56px -22px rgba(10,102,255,.45), 0 10px 22px -12px rgba(20,32,51,.2);
  --pop-shadow: inset 0 1px 0 var(--glass-hi), 0 24px 60px -18px rgba(20,32,51,.35), 0 4px 12px rgba(20,32,51,.08);
  --orb-a: rgba(64, 132, 255, .55);
  --orb-b: rgba(150, 110, 255, .40);
  --orb-c: rgba(40, 210, 225, .38);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F1C;
    --ink: #EDF1F8;
    --ink-2: #A9B3C4;
    --ink-3: #7A8598;
    --line-soft: rgba(255,255,255,.07);
    --line: rgba(255,255,255,.13);
    --surface-2: rgba(255,255,255,.06);
    --blue: #3D8BFF;
    --blue-press: #66A3FF;
    --blue-soft: rgba(61,139,255,.18);
    --glass: rgba(26, 33, 52, .52);
    --glass-strong: rgba(30, 38, 60, .78);
    --glass-edge: rgba(255,255,255,.12);
    --glass-hi: rgba(255,255,255,.14);
    --glass-shadow: inset 0 1px 0 var(--glass-hi), 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -18px rgba(0,0,0,.7);
    --hero-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.06), 0 28px 60px -22px rgba(61,139,255,.55), 0 12px 28px -14px rgba(0,0,0,.7);
    --pop-shadow: inset 0 1px 0 var(--glass-hi), 0 28px 70px -20px rgba(0,0,0,.8);
    --orb-a: rgba(40, 110, 255, .42);
    --orb-b: rgba(130, 90, 255, .30);
    --orb-c: rgba(20, 190, 210, .22);
  }
}

/* ---------- canvas ---------- */
html { background: var(--bg); }
body { background: transparent; font-family: var(--font); font-size: 14px; letter-spacing: -.003em; color: var(--ink); }
body::before {
  content: ""; position: fixed; inset: -10vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 34vmax at 12% 8%, var(--orb-a), transparent 70%),
    radial-gradient(34vmax 30vmax at 92% 22%, var(--orb-b), transparent 70%),
    radial-gradient(40vmax 34vmax at 60% 108%, var(--orb-c), transparent 70%),
    var(--bg);
}
.num, .big, .hero .big, .quad b, .hero-stats b, .pullstats b, .ring .c b, .prow .m b, .pins .pin { font-family: var(--display); font-stretch: 90%; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.hero .big { font-stretch: 86%; }

/* ---------- glass surfaces ---------- */
.glass, .panel, .tpanel, .card, .hero, details.about {
  position: relative;
  background: var(--glass) !important;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow) !important;
  border-radius: 20px;
}
.tpanel { overflow: hidden; }
.hero {
  background: linear-gradient(165deg, var(--glass-strong), var(--glass) 55%) !important;
  box-shadow: var(--hero-shadow) !important;
  border-radius: 24px; 
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.hero::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; inset-block-start: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), rgba(10,102,255,.6), rgba(255,255,255,.95), transparent) !important;
  border-radius: 1px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .panel, .tpanel, .card, .hero, details.about, .top, .drawer, .menu, .pop, .modal .box, .modal .sheet { background: var(--glass-strong) !important; }
}

/* ---------- top bar, side, overlays ---------- */
.top { background: color-mix(in srgb, var(--bg) 55%, transparent) !important; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 -1px 0 var(--line-soft) !important; }
.nav a { border-radius: 12px; font-weight: 550; font-size: 14px; }
.nav a:hover { background: var(--surface-2); }
.nav a.on { background: var(--glass); box-shadow: var(--glass-shadow); color: var(--blue); }
.menu, .pop, .modal .box, .modal .sheet, .drawer {
  background: var(--glass-strong) !important; -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid var(--glass-edge); box-shadow: var(--pop-shadow) !important;
}
.menu, .pop { border-radius: 16px; }
.modal .box { border-radius: 24px; }
.drawer { border-radius: 24px 0 0 24px; border-right: 0; }
.scrim, .modal { background: rgba(8, 14, 30, .22) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.demo-badge { background: var(--glass) !important; border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); border-radius: 14px; }
.dhead { border-bottom-color: var(--line-soft); }

/* ---------- type scale ---------- */
.head h1 { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.head p { font-size: 13.5px; }
.panel h3, .tools h3 { font-size: 15px !important; font-weight: 650; }
.card h2 { font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.card .sub, .pitch p { font-size: 14.5px; }
.pitch h1 { font-size: 34px; font-weight: 650; letter-spacing: -.03em; }
.login h1 { font-size: 27px; font-weight: 650; letter-spacing: -.03em; }
.hero .lbl { font-size: 13px; font-weight: 550; }
.hero .big { font-size: 46px; font-weight: 640; letter-spacing: -.015em; line-height: 1; margin: 8px 0 6px; }
.hero .big small { font-family: var(--font); font-stretch: 100%; font-size: 14px; font-weight: 550; }
.hero-stats b, .quad b { font-size: 22px; font-weight: 620; letter-spacing: -.005em; }
.hero-stats small, .quad small { font-size: 12.5px; }
th { font-size: 12px; font-weight: 600; color: var(--ink-3); }
td { font-size: 13.5px; }
.who-cell b { font-weight: 600; }
.ptitle h2 { font-size: 16px; font-weight: 650; }
.hello h1 { font-size: 19px; font-weight: 650; }
.field span { font-size: 12.5px; font-weight: 600; }

/* ---------- controls ---------- */
.btn { border-radius: 12px; font-weight: 600; font-size: 13.5px; height: 36px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi), 0 1px 2px rgba(20,32,51,.06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .12s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--glass-strong); }
.btn:active { transform: scale(.97); }
.btn-primary { color: #fff; border: 1px solid rgba(255,255,255,.25); background: linear-gradient(180deg, #4A8DFF, #0A66FF 60%, #0757E0) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(0,0,0,.12), 0 8px 20px -8px rgba(10,102,255,.75); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-lg { height: 46px; border-radius: 14px; font-size: 15px; }
.btn-text { background: none !important; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-sm { height: 30px; font-size: 12.5px; border-radius: 10px; }
.input, .otp input, .search input {
  background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(20,32,51,.06);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .input, :root:not([data-theme="light"]) .otp input, :root:not([data-theme="light"]) .search input { background: rgba(255,255,255,.05); } }
.input:focus, .otp input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft), inset 0 1px 2px rgba(20,32,51,.06); }
.search input { border-radius: 999px; }
.alert { border-radius: 14px; border-left-width: 3px; background: color-mix(in srgb, var(--danger, #E41E3F) 10%, var(--glass)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.alert.blue { background: color-mix(in srgb, var(--blue) 10%, var(--glass)); }
.alert.warn { background: color-mix(in srgb, #E8A400 14%, var(--glass)); }
.pill { border-radius: 999px; background: var(--surface-2); }
.info { background: var(--surface-2); }

/* segmented control: a glass thumb slides under the chosen option */
.seg { position: relative; isolation: isolate; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; box-shadow: inset 0 1px 2px rgba(20,32,51,.06); }
.seg button { position: relative; z-index: 1; border-radius: 999px; background: none !important; box-shadow: none !important; transition: color .2s; }
.seg button.on { color: var(--blue); }
.seg .seg-thumb {
  position: absolute; z-index: 0; top: 0; left: 0; border-radius: 999px; pointer-events: none;
  background: color-mix(in srgb, #fff 88%, transparent); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 3px 10px -3px rgba(20,32,51,.28), 0 0 0 .5px rgba(20,32,51,.06);
  transition: transform .38s cubic-bezier(.3,1.3,.5,1), width .38s cubic-bezier(.3,1.3,.5,1), height .2s;
}
.tools .seg { background: transparent; box-shadow: none; padding: 0; }

/* tables on glass */
tbody tr:hover td { background: rgba(255,255,255,.28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) tbody tr:hover td { background: rgba(255,255,255,.04); } }
th, td { border-bottom-color: var(--line-soft); }
.tools, .hostbar { border-bottom-color: var(--line-soft); }

/* host page bits */
.prow:active { transform: scale(.995); }
.track { background: var(--surface-2); box-shadow: inset 0 1px 2px rgba(20,32,51,.08); }
.track .you { background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--glass-hi), 0 4px 12px rgba(10,102,255,.45); }
.mark { border-radius: 11px; background: linear-gradient(160deg, #5C9BFF, #0A66FF 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 18px -8px rgba(10,102,255,.8); }
.avatar { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.stepper .fill { box-shadow: 0 0 10px rgba(10,102,255,.5); }
.step i { background: var(--glass-strong); }
.pullvis { background: var(--surface-2); border-radius: 16px; }
.syncpill { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ring .track { stroke: var(--line); }
.ring .left { filter: drop-shadow(0 0 6px rgba(10,102,255,.45)); }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg .seg-thumb { background: rgba(255,255,255,.12); } }
@media (prefers-reduced-motion: reduce) { .hero { transform: none !important; } .seg .seg-thumb { transition: none; } }
