/* eAgent landing page (static/landing.html). Shares tokens and components with style.css. */
html:has(body.landing) { height: auto; overflow: auto; overscroll-behavior: auto; scroll-behavior: smooth; scroll-padding-top: 90px; }
body.landing { height: auto; overflow: visible; }
.landing .l-body { outline: none; }
.hero-scene { padding: 0; overflow: hidden; }
.frames-pad { padding: 18px; }
.frame-text { color: var(--sc-muted); font-size: 15px; }
.l-lead { color: var(--sc-muted); font-size: 16px; line-height: 1.6; }
.l-split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.l-col { flex: 1 1 320px; min-width: 0; }
.l-col-wide { flex: 1 1 420px; min-width: 0; }
.dot-amber { background: var(--amber); }
.no-anim { animation: none; }
.bar-60 { width: 60%; animation: none; }
.nact-static { display: inline-flex; align-items: center; }
.delay-05 { animation-delay: .5s; } .delay-1 { animation-delay: 1s; }
.l-drop.busy, .btn.busy { opacity: .6; cursor: progress; }

/* ---------- hero, journey, promises ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 40px clamp(20px, 4vw, 48px); }
.hero-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-text h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.04; }
.hero-text p { font-size: 18px; line-height: 1.55; color: var(--sc-muted); max-width: 30em; }
.hero-art { flex: 1 1 520px; min-width: 0; }
.hero-art svg, .frame svg { width: 100%; height: auto; display: block; }
.pill-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--sc-border); font-size: 13px; color: var(--sc-soft); }
.frames { display: flex; flex-wrap: wrap; gap: 18px; }
.frame { flex: 1 1 230px; min-width: 0; background: var(--sc-card); border: 1px solid var(--sc-line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.frame-title { display: flex; align-items: center; gap: 12px; font-size: 22px; }
.num { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; font-family: -apple-system, sans-serif;
  background: var(--sc-accent); color: var(--sc-on-accent); }
.num.amber { background: var(--amber); color: #0B1026; }
.promises { display: flex; flex-wrap: wrap; gap: 20px; }
.promise { flex: 1 1 240px; min-width: 0; display: flex; gap: 14px; align-items: flex-start; }
.promise svg { width: 52px; height: 52px; fill: none; stroke: var(--sc-link); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promise b { display: block; font-size: 17px; margin-bottom: 4px; }

/* ---------- landing (standalone, no sidebar) ---------- */
.landing { min-height: 100vh; background: var(--bg); }
.l-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.l-nav .brand { color: var(--text); padding: 0; }
.l-links { display: flex; align-items: center; gap: 22px; flex-direction: row; }
.l-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.l-links a:hover { color: var(--text); }
.l-body { max-width: 1240px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 64px; display: flex; flex-direction: column; gap: 32px; }
.l-dock { background: var(--sc-card); border: 1px solid var(--sc-line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.l-task { display: flex; align-items: center; gap: 12px; min-width: 0; }
.l-task .dock-text b { color: var(--sc-text); }
.l-task .bar { background: var(--sc-line); }
.l-cta { border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.l-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(100%, 520px); padding: 32px 20px; border-radius: 20px;
  border: 2px dashed var(--inv-muted); background: transparent; color: var(--inv-text); font: inherit; cursor: pointer; }
.l-drop:hover { border-color: var(--amber); }
.l-drop svg { width: 36px; height: 36px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.l-drop span { font-size: 20px; font-weight: 600; }
.l-drop small { color: var(--inv-muted); }
@media (max-width: 860px) { .l-links { gap: 12px; } }

/* hero: second call to action into the app */
.hero-open { background: var(--sc-card); color: var(--sc-text); border-color: var(--sc-accent); }
.hero-open:hover { color: var(--sc-text); background: var(--sc-card2); }
.hero-text .btn.ghost { color: var(--sc-link); }

/* The public page uses the same visual language as the workspace. */
.l-nav { background: var(--surface); padding-block: 18px; }
.l-body { gap: 52px; padding-top: 40px; padding-bottom: 56px; }
.hero { padding-block: 54px; }
.hero-text h1 { font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
.hero-text p { font-size: 17px; }
.pill-tag { background: var(--sc-card); font-size: 12px; }
.dot-amber { background: #34a853; animation: none; }
.frame { border-radius: 12px; box-shadow: 0 2px 4px var(--shadow); }
.frame-title { font-size: 19px; }
.l-cta { border: 1px solid var(--indigo-line); }
.l-drop { border-width: 1px; border-radius: 12px; }
.l-drop svg { stroke: var(--indigo); }
.l-drop:hover { border-color: var(--indigo); background: var(--surface); }
.landing .float, .landing .float2, .landing .fall, .landing .flow, .landing .orbit { animation: none; }
.landing .h-34, .landing .h-36, .landing .h-40 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; }
@media (max-width: 860px) {
  .l-body { gap: 32px; padding-top: 24px; }
  .hero { padding: 30px 24px; gap: 24px; }
  .hero-text { flex-basis: 100%; }
  .hero-art { flex-basis: 100%; }
  .hero-art svg { max-height: 340px; }
  .l-nav .brand span { font-size: 23px; }
  .l-links { gap: 16px; font-size: 12px; }
}
@media (max-width: 480px) {
  .l-nav { gap: 10px; padding: 14px 16px; }
  .l-links > a:not(.btn) { display: none; }
  .hero-text h1 { font-size: 38px; }
  .hero-text p { font-size: 15px; }
  .hero-text .row { gap: 10px; }
  .hero-text .row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { html:has(body.landing) { scroll-behavior: auto; } }

/* Upload error: fixed so it is visible from either drop area */
.l-error { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  width: min(640px, calc(100% - 32px)); align-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.l-error > span { flex: 1; min-width: 0; }

/* ---------- accounts: nav, hero fine print, FAQ, sign-up form, footer ---------- */
.landing [hidden] { display: none !important; }
.l-auth { display: inline-flex; align-items: center; gap: 18px; }
.l-links a.l-signin { color: var(--text); font-weight: 600; }
.hero-fine { font-size: 14px !important; color: var(--sc-muted); margin: -8px 0 0; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 14px 4px; font-size: 17px; font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 6px; }
.faq details p { margin: 0 4px 18px; max-width: 46em; color: var(--muted); line-height: 1.6; }
.l-join { width: min(100%, 760px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.l-join-fields { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: left; }
.l-join-fields label { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.l-join-fields input { width: 100%; }
.l-join .banner { width: 100%; text-align: left; }
.l-join .btn { min-width: 240px; justify-content: center; }
.l-join-alt { color: var(--muted); margin: 0; }
.l-join-alt a { color: var(--indigo-text); font-weight: 600; }
.l-foot { border-top: 1px solid var(--line); background: var(--surface); }
.l-foot-inner { max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.l-foot .brand { color: var(--text); padding: 0; }
.l-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; flex: 1; }
.l-foot nav a { color: var(--muted); text-decoration: none; }
.l-foot nav a:hover { color: var(--text); }
.l-foot p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .l-join-fields { grid-template-columns: 1fr; } .l-join .btn { width: 100%; } }
@media (max-width: 480px) {
  .l-auth { gap: 10px; }
  .l-links a.l-signin { display: inline; font-size: 13px; }
}
