/* Stella homepage. Generated by build_site.py from the approved homepage design
   (Stella-brand/source/home_options.py, Midnight). Edit the generator, not this file. */
:root {
  --ink: #16181D; --muted: #5E6168; --paper: #FAFAF9; --surface: #FFFFFF; --line: #E6E6E2; --strong: #8A8D93;
  --font: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif; --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: #FFFFFF; }
/* ---------------- the homepage (re-themed by data-option) ---------------- */
.site { --white: #FFFFFF; background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.6; overflow: hidden;
  --star: var(--brand); --star-face: #FFFFFF; --logo-star: var(--brand); --logo-word: var(--brand); --logo-sub: var(--brand); --logo-face: #FFFFFF; }
.on-dark { --star: var(--glow); --star-face: var(--face-on-glow); --logo-star: var(--glow); --logo-word: #FFFFFF; --logo-sub: var(--glow); --logo-face: var(--face-on-glow); }
.lk-star { fill: var(--logo-star); } .lk-word { fill: var(--logo-word); } .lk-sub { fill: var(--logo-sub); }
.lk-face { fill: var(--logo-face); } .lk-face-s { stroke: var(--logo-face); }
.st-star { display: block; flex: none; --st-face: var(--star-face); } .st-star .st-body { fill: var(--star); }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.btn.lg { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn.glow { background: var(--glow); color: var(--face-on-glow); }
.btn.ghost-light { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.45); }
.btn.solid { background: var(--brand); color: #FFFFFF; }
.hero { position: relative; background: var(--hero); color: #FFFFFF; overflow: hidden; }
.hero .sky, .cta .sky { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--glow); pointer-events: none; }
.nav { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 22px clamp(20px, 4vw, 48px); display: flex; align-items: center; gap: 28px; }
.nav-logo svg { display: block; }
.nav-links { display: flex; gap: 24px; margin-left: 12px; font-size: 15px; }
.nav-links a { color: var(--hero-muted); text-decoration: none; } .nav-links a:hover { color: #FFFFFF; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.link-quiet { color: var(--hero-muted); text-decoration: none; }
.hero-in { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 48px clamp(20px, 4vw, 48px) 88px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--hero-muted); font-size: 14px; font-weight: 500; }
.eyebrow svg { color: var(--glow); }
.hero h1 { margin: 22px 0 18px; font-size: 64px; line-height: 1.04; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.sub { margin: 0; max-width: 34em; font-size: 19px; line-height: 1.55; color: var(--hero-muted); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--hero-muted); }
.hero-art { position: relative; min-height: 560px; }
.hero-star { position: absolute; top: -8px; right: 8px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35)); }
.mock-chat { position: absolute; top: 36px; left: 0; width: 340px; background: #FFFFFF; color: var(--ink); border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); overflow: hidden; font-size: 14px; line-height: 20px; }
.mc-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); --star: var(--brand); --star-face: #FFFFFF; }
.mc-head b { font-size: 14px; } .mc-head small { display: block; font-size: 12px; color: var(--muted); }
.tag { margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--ai); color: var(--ai-text); border: 1px solid var(--ai-line); }
.mc-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; --star: var(--brand); --star-face: #FFFFFF; }
.b { max-width: 84%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 20px; }
.b.ai { background: var(--ai); color: var(--ink); border-bottom-left-radius: 4px; }
.b.me { align-self: flex-end; background: var(--brand); color: #FFFFFF; border-bottom-right-radius: 4px; }
.b.human { background: #FFFFFF; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.b.human b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.mc-sys { display: flex; align-items: center; gap: 6px; align-self: center; font-size: 12px; color: var(--muted); --star: var(--brand); --star-face: #FFFFFF; }
.mc-status { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--ai-line); font-size: 13px; }
.mc-status small { display: block; font-size: 11px; color: var(--muted); }
.steps { display: flex; gap: 3px; margin: 6px 0 4px; } .steps i { flex: 1; height: 5px; border-radius: 99px; background: #E6E6E2; } .steps i.on { background: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chips span { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--strong); font-size: 13px; background: #FFFFFF; }
.mock-draft { position: absolute; left: 49%; bottom: -46px; width: 300px; padding: 14px 16px; border-radius: 16px; background: #FFFFFF; color: var(--ink); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28); border: 1px solid var(--ai-line); }
.md-lbl { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ai-text); }
.md-lbl span { font-weight: 500; color: var(--muted); }
.mock-draft p, .vig-draft p { margin: 6px 0 10px; font-size: 14px; line-height: 21px; }
.md-btns { display: flex; gap: 6px; }
.btn-p, .btn-s { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; }
.btn-p { background: var(--brand); color: #FFFFFF; } .btn-s { border: 1px solid var(--strong); }
.band { padding-block: 96px; }
.band.tint { background: var(--tint); border-block: 1px solid var(--tint-line); }
.band h2 { margin: 0 0 40px; max-width: 18em; font-size: 42px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card h3, .steps-3 h3, .list-3 h3 { margin: 6px 0 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.card p, .steps-3 p, .list-3 p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.vig { min-height: 150px; border-radius: 14px; background: var(--tint); border: 1px solid var(--tint-line); padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.vig-draft { background: var(--ai); border: 1px solid var(--ai-line); border-radius: 12px; padding: 12px 14px; }
.vig-draft p { margin-bottom: 0; }
.steps-3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps-3 li { background: #FFFFFF; border: 1px solid var(--tint-line); border-radius: 20px; padding: 24px; }
.n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #FFFFFF; font-weight: 600; font-size: 18px; }
.meet { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 48px; align-items: center; }
.meet h2 { margin-bottom: 16px; }
.meet-copy p { margin: 0; max-width: 32em; font-size: 18px; color: var(--muted); }
.meet-faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.meet-faces figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 6px; border-radius: 18px; background: var(--tint); border: 1px solid var(--tint-line); }
.meet-faces figcaption { font-size: 14px; font-weight: 600; text-align: center; }
.list-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.list-3 .tile { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--tint-line); }
.list-3 .ic { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 56px; border-radius: 28px; background: var(--hero); color: #FFFFFF; }
.cta-copy { position: relative; } .cta h2 { margin: 0 0 8px; color: #FFFFFF; font-size: 40px; }
.cta p { margin: 0; color: var(--hero-muted); }
.cta-side { position: relative; display: flex; align-items: center; gap: 24px; }
.foot { background: #FFFFFF; border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: 15px; }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand p { margin: 10px 0 0; color: var(--muted); }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-cols div { display: flex; flex-direction: column; gap: 8px; }
.foot-cols b { font-size: 14px; } .foot-cols a { color: var(--muted); text-decoration: none; } .foot-cols a:hover { color: var(--link); text-decoration: underline; }
.foot-legal { margin-top: 40px; font-size: 13px; color: var(--muted); }


.app { display: grid; grid-template-columns: 210px 330px minmax(0, 1fr); min-height: 420px; border-radius: 20px; overflow: hidden; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(22, 24, 29, 0.08); font-size: 14px; line-height: 20px; }
.app-nav { background: var(--hero); color: #FFFFFF; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.app-logo { padding: 4px 8px 16px; } .app-logo svg { display: block; }
.an { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; border-radius: 8px; color: rgba(255, 255, 255, 0.92); }
.an .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.an em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--hero-muted); }
.an.on { background: rgba(255, 255, 255, 0.14); font-weight: 600; }
.app-list { border-right: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 14px; border-bottom: 1px solid #EFEFEC; }
.row b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.unread b { font-weight: 600; }
.row small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row > div { min-width: 0; }
.row .dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--brand); }
.row.sel { background: #EFEEEA; box-shadow: inset 2px 0 0 var(--brand); }
.side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bd { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.bd.ai { background: var(--ai); color: var(--ai-text); box-shadow: inset 0 0 0 1px var(--ai-line); }
.bd.open { background: #E8F0FD; color: #1D4FC4; } .bd.wait { background: #FCF1D8; color: #7A5200; } .bd.urgent { background: #B42318; color: #FFFFFF; }
.app-thread { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.app-thread h3 { margin: 0 0 4px; font-size: 18px; line-height: 24px; font-weight: 600; }
.msg { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.msg b { font-size: 13px; } .msg small { margin-left: 6px; font-size: 12px; color: var(--muted); }
.msg p { margin: 4px 0 0; }
.msg.ai-msg { background: var(--ai); border-color: var(--ai-line); }
.msg.ai-msg p { margin: 6px 0 10px; }
.msg.note { background: #FFF7DB; border-color: #EFD994; } .msg.note b { color: #6E5200; font-size: 12px; }
.btn-g { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; font-size: 12.5px; font-weight: 600; }

@media screen and (max-width: 1000px) {
  .hero-in, .meet { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 560px; }
  .cards, .steps-3, .list-3, .cmp-grid, .g-lists { grid-template-columns: minmax(0, 1fr); }
  .app { grid-template-columns: minmax(0, 1fr); } .app-nav { flex-direction: row; flex-wrap: wrap; } .app-logo { width: 100%; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .g-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .hero h1 { font-size: 46px; }
  .band h2 { font-size: 34px; }
}
@media screen and (max-width: 560px) {
  .nav-cta .link-quiet { display: none; }
  .hero-art { min-height: 0; display: flex; flex-direction: column; gap: 16px; }
  .hero-star { position: static; align-self: flex-end; }
  .mock-chat, .mock-draft { position: static; width: 100%; }
  .meet-faces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta { padding: 32px 24px; }
  .cta h2 { font-size: 30px; }
  .g-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

[data-option="midnight"] { --brand: #1E1B66; --brand-hover: #2E2B81; --glow: #BCBBED; --hero: #1E1B66; --hero-muted: #C9C8F4; --face-on-glow: #1E1B66; --tint: #F5F5FC; --tint-line: #E4E4F4; --ai: #F3F2FC; --ai-line: #D3D4F5; --ai-text: #1E1B66; --link: #2E2A8A; }
@keyframes st-once-0{0%{opacity:1}16.00%{opacity:1}20.00%{opacity:0}96.00%{opacity:0}100%{opacity:1}}.st-once .st-c0{animation:st-once-0 5.0s linear 1 both}@keyframes st-once-1{0%{opacity:0}16.00%{opacity:0}20.00%{opacity:1}36.00%{opacity:1}40.00%{opacity:0}100%{opacity:0}}.st-once .st-c1{animation:st-once-1 5.0s linear 1 both}@keyframes st-once-2{0%{opacity:0}36.00%{opacity:0}40.00%{opacity:1}56.00%{opacity:1}60.00%{opacity:0}100%{opacity:0}}.st-once .st-c2{animation:st-once-2 5.0s linear 1 both}@keyframes st-once-3{0%{opacity:0}56.00%{opacity:0}60.00%{opacity:1}76.00%{opacity:1}80.00%{opacity:0}100%{opacity:0}}.st-once .st-c3{animation:st-once-3 5.0s linear 1 both}@keyframes st-once-4{0%{opacity:0}76.00%{opacity:0}80.00%{opacity:1}96.00%{opacity:1}100%{opacity:0}}.st-once .st-c4{animation:st-once-4 5.0s linear 1 both}@media (prefers-reduced-motion: reduce){.st-once [class*="st-c"]{animation:none;opacity:0}.st-once .st-c0{opacity:1}}

/* Additions for the app (not in the design file) */
.nav-logo, .foot-logo { display: inline-flex; text-decoration: none; }
.foot-by { margin: 6px 0 0 !important; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--brand) !important; }
.foot-soon { color: var(--muted); }
.btn.glow:hover { filter: brightness(1.05); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, 0.08); }
.nav-cta .link-quiet:hover { color: #FFFFFF; }
html { scroll-behavior: smooth; }
@media screen and (min-width: 1001px) and (max-width: 1240px) { .mock-draft { left: auto; right: 0; } }
/* Returning users sign in from a phone too: keep the link (the design hid it). */
@media screen and (max-width: 560px) {
  .nav { gap: 12px; } .nav-cta { gap: 14px; }
  .nav-cta .link-quiet { display: inline; }
  .nav-cta .btn { height: 38px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
