/* uselios.ai — shared styles for the public site.
   Builds on ds/counsel-tokens.css; adds only what the site needs. */

:root{
  --mk-accent:var(--counsel-green-600);
  --cta-bg:var(--counsel-green-700);
  --cta-bg-hover:var(--counsel-green-800);
  --cta-fg:#FFFFFF;
  --accent-text:var(--counsel-green-700);
}
[data-theme="dark"]{
  --mk-accent:var(--counsel-green-400);
  --cta-bg:var(--counsel-green-400);
  --cta-bg-hover:var(--counsel-green-200);
  --cta-fg:var(--counsel-green-900);
  --accent-text:var(--counsel-green-400);
}

*{box-sizing:border-box}
html{background:var(--bg)}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;font-size:16px;line-height:var(--lh-body);color:var(--fg-1);transition:background var(--dur-base) var(--ease-out),color var(--dur-base) var(--ease-out)}
.mk{display:block;width:100%;height:100%}
.st-wrap{width:100%;max-width:1080px;margin:0 auto;padding:0 28px}

/* Header */
.st-head{display:flex;align-items:center;justify-content:space-between;gap:24px;height:72px}
.st-wm{display:inline-block;font-family:var(--font-display);font-weight:700;font-size:22px;line-height:1;letter-spacing:.04em;color:var(--fg);text-decoration:none;white-space:nowrap}
.st-wm:hover{color:var(--fg);text-decoration:none}
.st-wm span{display:inline-block;width:.76em;height:.76em;width:1.06cap;height:1.06cap;margin:0 .06em 0 .02em;vertical-align:-.02em;vertical-align:-.03cap}
.st-nav{display:flex;align-items:center;gap:20px}
.st-nav a{font-size:14px;font-weight:var(--fw-medium);color:var(--fg-2);text-decoration:none;padding:12px 4px}
.st-nav a:hover,.st-nav a[aria-current="page"]{color:var(--fg);text-decoration:none}
.st-theme{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:var(--hairline) solid var(--border-strong);background:transparent;color:var(--fg);cursor:pointer;transition:background var(--dur-base) var(--ease-out)}
.st-theme:hover{background:var(--surface)}
.st-theme:focus-visible,.st-btn:focus-visible,.st-nav a:focus-visible,.st-wm:focus-visible,.st-mail:focus-visible{outline:2px solid var(--mk-accent);outline-offset:3px}
.st-theme svg{width:18px;height:18px}
.st-theme .i-sun{display:none}
[data-theme="dark"] .st-theme .i-sun{display:block}
[data-theme="dark"] .st-theme .i-moon{display:none}

/* Shared type */
.st-eyebrow{font-family:var(--font-mono);font-size:12px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-2)}
.st-chip{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;height:28px;padding:0 12px;border-radius:var(--radius-pill);border:1px solid var(--mk-accent);font-family:var(--font-mono);font-size:12px;font-weight:600;color:var(--accent-text)}
.st-chip i{width:7px;height:7px;border-radius:50%;background:var(--mk-accent)}
.st-btn{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 24px;border-radius:var(--radius-button);background:var(--cta-bg);color:var(--cta-fg);font-size:15px;font-weight:var(--fw-medium);text-decoration:none;text-transform:lowercase;transition:background var(--dur-base) var(--ease-out)}
.st-btn:hover{background:var(--cta-bg-hover);color:var(--cta-fg);text-decoration:none}
[data-theme="dark"] a.st-btn,[data-theme="dark"] a.st-btn:hover{color:var(--cta-fg)}
[data-theme="dark"] .st-nav a{color:var(--fg-2)}
[data-theme="dark"] .st-nav a:hover,[data-theme="dark"] .st-nav a[aria-current="page"],[data-theme="dark"] a.st-wm{color:var(--fg)}

/* Hero */
.st-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);align-items:center;gap:56px;min-height:560px;padding-top:56px;padding-bottom:88px}
.st-hero-copy{display:flex;flex-direction:column;gap:28px}
.st-hero-copy .st-btn{align-self:flex-start}
.st-h1{margin:0;font-size:clamp(34px,5.2vw,58px);font-weight:400;line-height:1.08;letter-spacing:-.022em;color:var(--fg);text-wrap:balance}
.st-lede{margin:0;max-width:54ch;font-size:18px;line-height:1.55;color:var(--fg-2);text-wrap:pretty}
.st-hero-mark{justify-self:center;width:min(300px,100%);aspect-ratio:1;color:var(--fg)}
.st-hero-mark .mk-core{transform-origin:50px 50px}
.st-hero-mark.play .mk-seg{stroke-dasharray:0 100;animation:st-seg .7s cubic-bezier(.2,.8,.2,1) forwards;animation-delay:calc(.15s + var(--i)*.12s)}
.st-hero-mark.play .mk-core{transform:scale(0);animation:st-core .6s cubic-bezier(.3,1.6,.5,1) .85s forwards,st-breathe 3.6s ease-in-out 2.2s infinite}
.st-hero-mark.play svg{animation:st-spin 1.6s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes st-seg{to{stroke-dasharray:20 80}}
@keyframes st-core{to{transform:scale(1)}}
@keyframes st-spin{from{transform:rotate(-120deg)}to{transform:rotate(0)}}
@keyframes st-breathe{50%{transform:scale(.74)}}

/* Sections */
.st-sec{display:flex;flex-direction:column;gap:32px;padding-top:72px;padding-bottom:72px;border-top:var(--hairline) solid var(--border-strong)}
.st-h2{margin:0;max-width:22ch;font-size:clamp(26px,3.4vw,36px);font-weight:400;line-height:1.15;letter-spacing:-.015em;color:var(--fg);text-wrap:balance}
.st-sec-head{display:flex;flex-direction:column;gap:14px}

.st-shot{width:100%;aspect-ratio:16/9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;border-radius:var(--radius-card);border:1px dashed var(--border-strong);background:var(--surface);text-align:center}
.st-shot div{width:44px;height:44px;color:var(--fg-4)}
.st-shot p{margin:0;max-width:44ch;font-family:var(--font-mono);font-size:13px;color:var(--fg-2)}

.st-video{display:block;width:100%;height:auto;aspect-ratio:1600/1136;border-radius:var(--radius-card);border:1px solid var(--border-strong);background:var(--counsel-light-surface);box-shadow:var(--shadow-modal)}
.st-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:40px;margin:0;padding:0;list-style:none}
.st-steps-2{grid-template-columns:repeat(auto-fit,minmax(min(400px,100%),1fr))}
.st-step{display:flex;flex-direction:column;gap:10px}
.st-step b{font-family:var(--font-mono);font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-text)}
.st-core{display:flex;align-items:center;gap:28px;padding:32px;border-radius:var(--radius-card);border:1px solid var(--mk-accent);background:var(--surface)}
.st-core-mark{flex-shrink:0;width:72px;height:72px;color:var(--fg)}
.st-core-copy{display:flex;flex-direction:column;gap:8px}
.st-core h3{margin:0;font-size:26px;font-weight:400;letter-spacing:-.01em;color:var(--fg)}
.st-core p{margin:0;font-size:17px;line-height:1.55;color:var(--fg-2);text-wrap:pretty}
.st-states{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.st-state{display:inline-flex;align-items:center;gap:8px;height:26px;padding:0 10px;border-radius:var(--radius-pill);border:1px solid var(--border-strong);font-family:var(--font-mono);font-size:12px;font-weight:500}
.st-state i{width:7px;height:7px;border-radius:50%}
.st-state.is-aligned{color:var(--live-aligned-text)}.st-state.is-aligned i{background:var(--live-aligned)}
.st-state.is-drift{color:var(--live-drift-text)}.st-state.is-drift i{background:var(--live-drift)}
.st-state.is-conflict{color:var(--live-conflict-text)}.st-state.is-conflict i{background:var(--live-conflict)}
@media (max-width:560px){.st-core{flex-direction:column;align-items:flex-start;padding:24px}.st-core-mark{width:48px;height:48px}}
.st-step h3{margin:0;font-size:20px;font-weight:var(--fw-medium);color:var(--fg)}
.st-step p{margin:0;font-size:16px;line-height:1.55;color:var(--fg-2);text-wrap:pretty}

.st-beta{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));align-items:end;gap:32px}
.st-beta p{margin:0;max-width:48ch;font-size:17px;line-height:1.55;color:var(--fg-2)}
.st-beta code{font-family:var(--font-mono);font-size:15px;color:var(--fg)}
.st-beta .st-btn{justify-self:start}

/* Overview */
.st-page-hero{display:flex;flex-direction:column;gap:24px;padding-top:72px;padding-bottom:88px}
.st-page-hero .st-h1{max-width:20ch}
.st-statement{margin:0;font-size:clamp(30px,4.6vw,52px);font-weight:400;line-height:1.1;letter-spacing:-.02em;color:var(--fg);text-wrap:balance}
.st-nots{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.st-nots li{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:8px 40px;padding:22px 0;border-top:var(--hairline) solid var(--border-strong)}
.st-nots li:last-child{border-bottom:var(--hairline) solid var(--border-strong)}
.st-nots h3{margin:0;font-size:20px;font-weight:var(--fw-medium);color:var(--fg)}
.st-nots p{margin:0;font-size:16px;line-height:1.55;color:var(--fg-2);text-wrap:pretty}

/* Contact */
.st-contact{flex:1;display:flex;flex-direction:column;justify-content:center;gap:28px;padding-top:72px;padding-bottom:120px}
.st-mail{align-self:flex-start;font-family:var(--font-mono);font-size:clamp(20px,3.4vw,32px);font-weight:500;color:var(--accent-text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px;overflow-wrap:anywhere}

/* Footer */
.st-foot{margin-top:auto;border-top:var(--hairline) solid var(--border-strong)}
.st-foot .st-wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding-top:24px;padding-bottom:32px;font-size:13px;color:var(--fg-2)}
.st-foot a{padding:12px 0}

@media (max-width:820px){
  .st-hero{grid-template-columns:minmax(0,1fr);gap:36px;min-height:0;padding-top:32px;padding-bottom:64px}
  .st-hero-mark{order:-1;justify-self:start;width:112px}
  .st-sec{padding-top:56px;padding-bottom:56px}
}
@media (prefers-reduced-motion:reduce){
  .st-hero-mark.play .mk-seg,.st-hero-mark.play .mk-core,.st-hero-mark.play svg{animation:none;stroke-dasharray:20 80;transform:none}
  body{transition:none}
}
