/* Public site: the app's Refined palette and simple, consistent controls. */
:root {
  --base:#19151f; --panel:#241d30; --panel-2:#32273f;
  --site-surface:#241d30; --site-inset:#20192b;
  --ink:#f6f1fc; --ink-2:#d3c8df; --ink-3:#b0a0c3;
  --accent:#c4a4ff; --accent-soft:#dfcaff; --accent-deep:#ac88ed;
  --btn:#8050e6; --btn-end:#7441d8;
  --line:#3b3049; --line-2:#534061;
  --glass-1:#241d30; --glass-2:rgba(32,25,43,.95); --glass-3:#241d30; --glass-4:#32273f;
  --veil:rgba(25,21,31,.95); --veil-2:#20192b; --veil-3:#19151f;
  --aurora-top:#38294b; --shadow:rgba(13,8,20,.48);
  --focus:#c4a4ff; --selected:#38294b;
}
:root[data-theme="light"] {
  --base:#faf9fd; --panel:#fff; --panel-2:#f0eaf7;
  --site-surface:#fff; --site-inset:#f8f5fc;
  --ink:#302440; --ink-2:#635570; --ink-3:#786987;
  --accent:#6a3bc2; --accent-soft:#7141dc; --accent-deep:#6233ca;
  --btn:#7141dc; --btn-end:#6233ca;
  --line:#e8e2ee; --line-2:#d8cce6;
  --glass-1:#fff; --glass-2:rgba(255,255,255,.95); --glass-3:#fff; --glass-4:#f8f5fc;
  --veil:rgba(250,249,253,.95); --veil-2:#f5f1fa; --veil-3:#faf9fd;
  --aurora-top:#eee7f9; --shadow:rgba(64,39,92,.14);
  --focus:#7141dc; --selected:#eee7f9;
}
:focus-visible { outline:2px solid var(--focus); outline-offset:4px; }
.site-arrow { width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.nav .wrap { border-color:var(--line); border-radius:13px; padding-block:10px; }
.nav nav a:not(.btn) { padding:10px 8px; border-radius:8px; }
.nav nav a:not(.btn):hover { color:var(--accent); background:var(--selected); }
.draft .wrap { font-size:12px; color:var(--ink-2); }
.btn,.hero .btn,.nav .btn { border-radius:8px; min-height:44px; font-weight:650; }
.btn--glow { background:var(--btn); box-shadow:0 3px 12px -6px var(--shadow); border-color:transparent; }
.btn--glow:hover { background:var(--btn-end); }
.btn--ghost { background:var(--panel); border-color:var(--line-2); }
.btn:hover { transform:translateY(-1px); box-shadow:0 6px 18px -10px var(--shadow); }
/* Keep the long fabric fade behind every section it reaches. */
#main-content { isolation:isolate; }
.hero { isolation:auto; padding-top:clamp(38px,5vw,70px); }
.hero .big { font-weight:650; font-size:clamp(2.7rem,6.2vw,5.2rem); line-height:1.08; }
.hero .lede { max-width:600px; font-size:17px; line-height:1.75; }
.hero .facts { font-size:12px; }
.woven-field { opacity:.65; }
html[data-background="glenplaid"] .woven-field {
  --cloth-opacity:.74;
  height:2000px;
  opacity:1;
}
.hero::before { opacity:.35; }
/* The Glen cloth supplies its own light and blends directly into --base. */
html[data-background="glenplaid"] .hero::before { opacity:0; }
.demo-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:end; gap:20px 28px; margin-top:64px; padding-bottom:24px; text-align:left; }
.demo-intro { flex:1 1 480px; }
.demo-actions { display:flex; flex-shrink:0; align-items:center; gap:10px; margin-left:auto; }
.demo-heading h2 { font-size:clamp(1.7rem,3vw,2.35rem); font-weight:650; letter-spacing:-.045em; margin:7px 0 9px; }
.demo-heading p:not(.kicker) { font-size:14px; color:var(--ink-2); max-width:60ch; }
.demo-open { display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:12px 14px; min-height:44px; border:1px solid var(--line-2); background:var(--panel); border-radius:8px; color:var(--accent); text-decoration:none; font-size:13px; line-height:18px; font-weight:650; white-space:nowrap; }
.demo-open:hover { background:var(--selected); }
.live-section { margin-top:0; }
.demo-actions .live-toggle { position:static; min-width:140px; padding:12px 14px; background:var(--panel); color:var(--ink); border:1px solid var(--line-2); box-shadow:none; backdrop-filter:none; border-radius:8px; font-size:13px; line-height:18px; font-weight:650; white-space:nowrap; }
.demo-actions .live-toggle:hover { background:var(--selected); }
.live-window { border-radius:13px; border-color:var(--line-2); box-shadow:0 30px 70px -38px var(--shadow); }
.live-bar { background:var(--site-inset); height:38px; }
.live-persp::before { opacity:.35; }
.live-title { background:none; }
.demo-caption { min-height:42px; padding:15px 6px 0; font-size:13px; line-height:1.65; color:var(--ink-2); }
.role-grid { border:0; gap:14px; }
.role-card,.role-card:first-child,.role-card:last-child { display:flex; flex-direction:column; padding:26px 22px; border:1px solid var(--line); border-radius:13px; background:var(--panel); }
.role-card:hover { background:var(--selected); border-color:var(--line-2); }
.role-card h3 { font-weight:650; font-size:20px; }
.role-card p,.feature-notes p,.thread-copy > p:not(.kicker) { font-size:14px; line-height:1.8; }
.role-card .role-link { margin-top:auto; padding-top:24px; font-size:13px; font-weight:600; }
.role-number { font:600 10px/1.5 var(--font); letter-spacing:.1em; }
.feature-notes h3 { font-size:17px; }
.thread-story { background:var(--panel); border-color:var(--line); border-radius:13px; }
.thread-copy > a { font-size:14px; }
.faq details,.close .wrap { border-radius:13px; }
.faq details { background:var(--panel); }
.faq summary { font-size:16px; font-weight:600; }
.tour-tabs button { background:transparent; border-color:transparent; }
.tour-tabs button[aria-selected="true"] { background:var(--selected); color:var(--accent); border-color:var(--line-2); }
.setup-intro { padding-top:0; }
.setup-path { list-style:none; padding:0; margin:30px 0 0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.setup-path li { padding:22px 20px; background:var(--panel); border:1px solid var(--line); border-radius:13px; }
.setup-path span { width:30px; height:30px; display:grid; place-items:center; margin-bottom:22px; background:var(--selected); border:1px solid var(--line-2); color:var(--accent); border-radius:50%; font-size:12px; font-weight:650; }
.setup-path h3 { font-size:16px; font-weight:650; margin-bottom:9px; }
.setup-path p { font-size:13px; color:var(--ink-2); line-height:1.7; }
.setup-texting { display:flex; align-items:center; gap:24px; margin-top:16px; padding:26px; border:1px solid var(--line); border-radius:13px; background:var(--panel); }
.setup-texting > div { flex:1; }
.setup-texting .kicker { font-size:10px; }
.setup-texting h3 { font-size:21px; font-weight:650; letter-spacing:-.03em; margin:7px 0; }
.setup-texting p:not(.kicker) { color:var(--ink-2); font-size:14px; max-width:70ch; }
@media (min-width:761px) { .demo-heading { width:min(1282px,calc(100vw - 48px)); margin-left:calc((100% - min(1282px,calc(100vw - 48px))) / 2); } }
@media (max-width:1000px) { .setup-path { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:760px) {
  html[data-background="glenplaid"] .woven-field { --cloth-opacity:.45; height:1400px; }
  .demo-heading { flex-direction:column; align-items:flex-start; margin-top:35px; gap:16px; }
  .demo-intro { flex:auto; }
  .demo-actions { margin-left:0; }
  .demo-actions .live-toggle { display:none; }
  .demo-heading .kicker { font-size:10px; }
  .screen-tour { margin-top:0; border-radius:13px; }
  .tour-heading { display:none; }
  .tour-tabs { margin-top:0; padding-top:0; }
  .setup-texting { flex-direction:column; align-items:flex-start; }
}
@media (max-width:620px) {
  .draft .wrap { font-size:11px; }
  .hero .big { font-size:clamp(2.25rem,8.5vw,3.3rem); }
  .hero .lede { font-size:15px; padding-inline:0; }
  .hero .btn { font-size:13px; padding:14px 16px; }
  .hero .facts { font-size:11px; }
  .role-grid { grid-template-columns:1fr; }
  .role-card,.role-card:first-child { padding:24px; }
  .role-card h3 { font-size:20px; margin-top:16px; }
  .setup-path { grid-template-columns:1fr; gap:10px; }
  .setup-path li { position:relative; padding:19px 20px 19px 66px; }
  .setup-path span { position:absolute; left:20px; top:19px; margin:0; }
  .setup-path h3 { margin-bottom:5px; }
  .setup-path p { font-size:14px; }
}
