@charset "UTF-8";
/* Threshold dashboard, "quiet luxury" layer. Loads last and adds back what the flat layers removed, with restraint:
   a slow ambient background (two soft fields of light that drift over minutes, plus a faint paper grain),
   frosted cards with real but quiet depth, a translucent masthead, and a little more air in the type.
   Every surface rule is scoped to #app so it outranks theme.css's broad resets. Honors reduced motion. */

/* Type, matched to the website: Cormorant Garamond for headings and big numbers, Hanken Grotesk for everything else,
   and small spaced capitals for labels. The fonts are already loaded by app/index.html. */
:root, html[data-accent], #app, #modal-root { --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; --serif: var(--head); --caps: 'Montserrat', 'Hanken Grotesk', sans-serif; }
:is(#app, #modal-root) h1, :is(#app, #modal-root) h2, :is(#app, #modal-root) h3 { font-family: var(--head) !important; font-weight: 600 !important; letter-spacing: -0.01em !important; }
#app .hello h1 { font-size: clamp(40px, 4.2vw, 54px) !important; line-height: 1 !important; }
/* The name inside the greeting and any emphasis inside a heading stay in the serif, in its italic */
#app h1 i, #app h1 em, #app h2 i, #app h3 i, #app .ai-say h1 i, #app .masthead h1 i { font-family: inherit !important; font-weight: inherit !important; font-style: italic !important; color: inherit !important; }
/* Cormorant's figures are old-style by default; numbers on a dashboard need lining, tabular figures */
#app .bt-kpi b, #app .bt-kpi .num, #app .bt-kpi > div:nth-child(2), #app .bt-ai-num, #app .bt-when, #app .stat b, #app .fact b, #app .proof-num, #app .dhead b, #app .month-nav b, #app .day-num { font-feature-settings: "lnum" 1, "tnum" 1; font-variant-numeric: lining-nums tabular-nums; }
#app .page-head h1 { font-size: clamp(36px, 3.6vw, 46px) !important; line-height: 1.05 !important; }
:is(#app, #modal-root) h2 { font-size: 28px !important; }
:is(#app, #modal-root) h3 { font-size: 23px !important; }
/* Card titles (the ones with the dot in front, "Deadlines", "Your deals", "Day wrapped"): bold and true black */
:is(#app, #modal-root) h2, :is(#app, #modal-root) h3, #app .needs-head h3, #app .bt h2, #app .bt h3, #app .box h2, #app .box h3 { font-weight: 700 !important; color: #0A0A0A !important; }
#app .needs-head h3, #app .bt h2, #app .bt h3, #app .box h2, #app .box h3, #app .cgroup h3, #app .ai-next h2, #app .ai-next h3, #app .ai-saved h2, #app .ai-saved h3, #app .sched-title, #app .cr h2, #app .ap-head h3, #app .ap-head h2 { font-size: 25px !important; line-height: 1.15 !important; font-weight: 700 !important; color: #0A0A0A !important; }
#app .ai-next .bt-when, #app .bt-when { font-family: var(--head) !important; font-weight: 700 !important; font-size: 32px !important; color: #0A0A0A !important; }
#app .bt li b, #app .box li b, #app .ai-next li b, #app .bt p b, #app .box p b { color: #0A0A0A !important; font-weight: 700 !important; }
#app .hello .sub, #app p.sub { font-size: 15.5px !important; }
#app .bt-kpi b, #app .bt-kpi .num, #app .bt-kpi > div:nth-child(2), #app .bt-ai-num, #app .bt-when, #app .stat b, #app .fact b, #app .proof-num, #app .month-nav b, #app .dhead b { font-family: var(--head) !important; font-weight: 600 !important; letter-spacing: -0.01em !important; }
#app .bt-kpi b, #app .bt-kpi .num, #app .bt-kpi > div:nth-child(2) { font-size: 58px !important; line-height: .95 !important; }
#app .bt-ai-num { font-size: 44px !important; }
/* Labels: small spaced capitals, like the website's "EVERY CLIENT, KEPT CLOSE" */
#app .eyebrow, #app .hello .eyebrow, #app .bt-kpi small:first-child, #app .bt-label, #app .stat small, #app .fact small, #app .dow, #app .a-live, #app .start-eyebrow, #app .ctag { font-family: var(--caps) !important; font-size: 11px !important; font-weight: 500 !important; letter-spacing: .18em !important; text-transform: uppercase !important; }
/* The wordmark in the masthead, like the site's logo */
#app .brand b, #app .masthead .brand b { font-family: var(--head) !important; font-weight: 600 !important; font-size: 22px !important; letter-spacing: .22em !important; text-transform: uppercase !important; }
#app .btn, #app .tab { font-family: var(--sans) !important; font-weight: 600 !important; letter-spacing: .01em !important; }
#app .tab { font-size: 14.5px !important; }

/* Default accent is black. An agent who picks a color in Settings keeps it (data-accent). */
html:not([data-accent]) { --accent: #1C1C1C; --p-green-soft: #EDEDED; }
:root {
  --lux-bg: #F5F6F8;
  --lux-card: rgba(255, 255, 255, .78);
  --lux-card-solid: #FFFFFF;
  --lux-line: rgba(28, 28, 28, .08);
  --lux-line-strong: rgba(28, 28, 28, .14);
  --lux-shadow: 0 1px 1px rgba(28, 24, 18, .03), 0 2px 6px rgba(28, 24, 18, .035), 0 18px 44px -24px rgba(28, 24, 18, .22);
  --lux-shadow-hover: 0 1px 2px rgba(28, 24, 18, .04), 0 6px 14px rgba(28, 24, 18, .05), 0 30px 60px -24px rgba(28, 24, 18, .28);
  --lux-a: var(--accent, #1C1C1C);
  --lux-glow-1: #DFE6EF;
  --lux-glow-2: #E9ECF1;
  --lux-glow-3: #E3E9F1;
}

/* ---------- the ambient background ---------- */
/* Two fixed layers behind the app. Each holds two large, blurred fields of light and drifts on its own slow loop,
   so the page never looks the same twice but nothing ever moves fast enough to notice directly. */
html:not([data-bgart]):not([data-backdrop]):not([data-theme="dark"]) body { background: var(--lux-bg) !important; }
body::before, body::after {
  content: ""; position: fixed; inset: -20vmax; z-index: 0; pointer-events: none;
  will-change: transform; opacity: .95;
}
body::before {
  background:
    radial-gradient(46vmax 38vmax at 22% 18%, var(--lux-glow-1) 0%, color-mix(in srgb, var(--lux-glow-1) 40%, transparent) 35%, transparent 72%),
    radial-gradient(42vmax 34vmax at 82% 78%, var(--lux-glow-2) 0%, color-mix(in srgb, var(--lux-glow-2) 40%, transparent) 35%, transparent 72%);
  animation: lux-drift-a 52s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(38vmax 32vmax at 76% 22%, var(--lux-glow-3) 0%, color-mix(in srgb, var(--lux-glow-3) 40%, transparent) 35%, transparent 72%),
    radial-gradient(34vmax 30vmax at 18% 84%, #FFFFFF 0%, rgba(255, 255, 255, .5) 35%, transparent 72%);
  animation: lux-drift-b 73s ease-in-out infinite alternate;
  opacity: .8;
}
@keyframes lux-drift-a { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2.5%, 0) scale(1.06); } }
/* A wide, faint band of light that crosses the page about once a minute: the one motion you can catch if you look. */
#app::after {
  content: ""; position: fixed; top: -30vh; bottom: -30vh; left: -60vw; width: 70vw; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  transform: skewX(-12deg); will-change: transform; animation: lux-sweep 58s linear infinite; mix-blend-mode: soft-light;
}
@keyframes lux-sweep { 0% { transform: translate3d(0, 0, 0) skewX(-12deg); } 100% { transform: translate3d(230vw, 0, 0) skewX(-12deg); } }
@keyframes lux-drift-b { from { transform: translate3d(2%, 1%, 0) rotate(0deg); } to { transform: translate3d(-3%, -2%, 0) rotate(3deg); } }
/* A faint paper grain over the light, so flat areas don't look like a screen. */
html:not([data-theme="dark"]) #app::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
#app { position: relative; z-index: 1; }
#app > * { position: relative; z-index: 1; }
#modal-root { position: relative; z-index: 2; }

/* ---------- masthead: frosted, floating ---------- */
#app .masthead { background: rgba(255, 255, 255, .62) !important; border-bottom: 1px solid var(--lux-line) !important; backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
#app .tabs { border-bottom: 0 !important; gap: 4px !important; }
#app .tab, html[data-accent] #app .tab { border-radius: 999px !important; padding: 8px 14px !important; margin-bottom: 0 !important; border-bottom: 0 !important; transition: background .2s, color .2s; }
#app .tab:hover { background: rgba(28, 28, 28, .05) !important; }
#app .tab.on, html[data-accent] #app .tab.on { background: #1C1C1C !important; color: #FFFFFF !important; }
#app .tab .badge { background: var(--lux-a) !important; color: #fff !important; }
#app .brand .mark { border-radius: 50% !important; }

/* ---------- greeting ---------- */
#app .hello h1 { font-size: clamp(34px, 3.6vw, 44px) !important; font-weight: 600 !important; letter-spacing: -0.025em !important; line-height: 1.05 !important; }
#app .hello .eyebrow, #app .hello small, #app .hello .date { letter-spacing: .06em !important; text-transform: uppercase !important; font-size: 11.5px !important; }

/* ---------- surfaces: frosted glass with quiet depth ---------- */
#app .bt, #app .box, #app .start, #app .needs, #app .start-mini, #app .stat, #app .fact, #app .card, #app .pcard, #app .cgroup, #app .cal, #app .tgrid-wrap, #app .bt-kpi, #app .ai-saved, #app .ai-next, #app .cr, #app .sc {
  background: var(--lux-card) !important; border: 1px solid var(--lux-line) !important; border-radius: 14px !important;
  box-shadow: var(--lux-shadow) !important; backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s !important;
}
#app .card { border-radius: 16px !important; overflow: hidden; }
#app button.bt:hover, #app .bt-list:hover, #app .card:hover, #app .bt-kpi:hover { transform: translateY(-2px) !important; box-shadow: var(--lux-shadow-hover) !important; border-color: var(--lux-line-strong) !important; }
#app button.bt:active { transform: translateY(0) !important; }
#app .dialog { border-radius: 16px !important; box-shadow: 0 30px 80px -20px rgba(28, 24, 18, .35), 0 2px 8px rgba(28, 24, 18, .06) !important; border: 1px solid var(--lux-line) !important; }

/* The "needs you" card carries the only strong color on the page: a hairline of accent down its left edge. */
#app .needs { border-left: 1px solid var(--lux-line) !important; }
#app .needs::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--lux-a), color-mix(in srgb, var(--lux-a) 30%, transparent)) !important; }
#app .needs-head .dot { background: var(--lux-a) !important; box-shadow: 0 0 0 0 color-mix(in srgb, var(--lux-a) 45%, transparent) !important; animation: lux-ping 2.6s infinite !important; }
@keyframes lux-ping { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* KPI tiles: a quieter label, a larger number, a soft accent wash on hover */
#app .bt-kpi small:first-child { letter-spacing: .05em !important; text-transform: uppercase !important; font-size: 11.5px !important; }
#app .bt-kpi b, #app .bt-kpi .num, #app .bt-kpi > div:nth-child(2) { font-size: 40px !important; letter-spacing: -0.03em !important; font-variant-numeric: tabular-nums; }
#app .bt-kpi::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(60% 60% at 100% 0%, color-mix(in srgb, var(--lux-a) 10%, transparent), transparent 70%) !important; }
#app .bt-kpi:hover::after { opacity: 1; }

/* Set-up meter */
#app .start-mini-meter { background: rgba(28, 28, 28, .08) !important; border-radius: 99px; overflow: hidden; }
#app .start-mini-meter i { background: var(--lux-a) !important; border-radius: 99px; }

/* Buttons */
#app .btn:not(.ghost):not(.link):not(.data-del), #app .sc-cta { border-radius: 10px !important; box-shadow: 0 1px 2px rgba(28, 24, 18, .14), inset 0 1px 0 rgba(255, 255, 255, .14) !important; }
#app .btn.ghost { background: rgba(255, 255, 255, .7) !important; border-color: var(--lux-line-strong) !important; border-radius: 10px !important; backdrop-filter: blur(10px); }
#app .btn:hover { filter: none; transform: translateY(-1px); }
#app .ask-fab { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .2) !important; }

/* Hard-coded greens in the base styles follow the accent (black by default) */
#app .cr-msg.me .cr-bub, #app .add-guide .ag-now .ag-n, #app .add-guide .ag-done .ag-n, #app .side-btn.on, #app .ical-step .num, #app .step-num { background: var(--lux-a) !important; border-color: var(--lux-a) !important; color: #fff !important; }
#app .cr-facts small, #app .cr-done, #app .bt-link, #app .linkish, #app .sc-folder { color: var(--lux-a) !important; }

/* Inputs */
#app input:not([type=checkbox]):not([type=radio]):not([type=color]), #app select, #app textarea, #modal-root input:not([type=checkbox]):not([type=radio]):not([type=color]), #modal-root select, #modal-root textarea { border-radius: 10px !important; background: rgba(255, 255, 255, .85) !important; border-color: var(--lux-line-strong) !important; transition: border-color .2s, box-shadow .2s; }
#app input:focus, #app select:focus, #app textarea:focus, #modal-root input:focus, #modal-root select:focus, #modal-root textarea:focus { border-color: var(--lux-a) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lux-a) 18%, transparent) !important; outline: 0; }

/* Calendar and tables keep crisp inner lines on the frosted surface */
#app .cal .dow { background: transparent !important; }
#app .cal .day, #app .tgrid-wrap td { background: transparent !important; }

/* First paint: the page rises in once, then holds still (boot.js adds the class for a moment). */
html.lux-enter #app .masthead { animation: lux-in .6s cubic-bezier(.2, .7, .2, 1) both; }
html.lux-enter #app .body-wrap > * { animation: lux-in .7s cubic-bezier(.2, .7, .2, 1) both; }
html.lux-enter #app .body-wrap > :nth-child(2) { animation-delay: .06s; }
html.lux-enter #app .body-wrap > :nth-child(3) { animation-delay: .12s; }
html.lux-enter #app .body-wrap > :nth-child(4) { animation-delay: .18s; }
html.lux-enter #app .body-wrap > :nth-child(n+5) { animation-delay: .24s; }
@keyframes lux-in { from { opacity: 0; transform: translateY(10px); } }

/* Dark mode is an inversion filter in styles.css; the light fields invert to dark ones on their own. Keep them quieter there. */
html[data-theme="dark"] body::before, html[data-theme="dark"] body::after { opacity: .45; }
html[data-theme="dark"] #app .masthead { background: rgba(255, 255, 255, .8) !important; }

/* Reduced motion, or an agent-chosen page art: hold the background still and skip the entrance. */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, #app::after { animation: none !important; }
  html.lux-enter #app * { animation: none !important; }
  #app .needs-head .dot { animation: none !important; }
}
html[data-bgart] body::before, html[data-bgart] body::after, html[data-bgart] #app::after, html[data-backdrop] body::before, html[data-backdrop] body::after, html[data-backdrop] #app::after { display: none; }
/* Phones: blur is costly on small GPUs; keep the look without the filter work. */
@media (max-width: 720px) {
  #app .brand b, #app .masthead .brand b { font-size: 15px !important; letter-spacing: .12em !important; }
  #app .top { flex-wrap: nowrap !important; } #app .brand { min-width: 0; flex: 1 1 auto; overflow: hidden; } #app .brand b { white-space: nowrap; }
  #app .who .btn { padding: 8px 12px !important; font-size: 13px !important; }
  #app .bt, #app .box, #app .card, #app .bt-kpi, #app .stat, #app .masthead { backdrop-filter: none; -webkit-backdrop-filter: none; }
  #app .bt, #app .box, #app .card, #app .bt-kpi, #app .stat { background: rgba(255, 255, 255, .92) !important; }
}
