/* The Drive viewers' start page (2026-11-10), loaded after frame.css by build.py only. frame.css stays as it was because the STL
   browser extension shares it (stl-extension/tools/sync_viewer.py) and keeps its own start page; the first rules here undo
   what frame.css gives the old start page. */
#landing { max-width: none; margin: 0; padding: 0; }
#landing section { margin-top: 0; }
#landing #dropzone { text-align: left; }
#landing .features { padding-left: 20px; }

/* ---- the start page (2026-11-10): a hero band in the viewer's own colours (theme.css: --hero-a1/-a2/-a3, --gold), then cards, plans,
   the Drive card and the honest limits. Dark whatever the system says: the band and the cards are drawn for dark. ---- */
body[data-state="landing"] {
  --l-bg: #111318; --l-card: #181b22; --l-line: #272b34; --l-fg: #d9dde4; --l-muted: #a5abb8; --l-head: #fff;
  background: var(--l-bg); color: var(--l-fg); color-scheme: dark;
}
/* back to the start page from an open file (2026-11-10, as in the STL extension); hidden on the start page itself */
#back-btn { font-size: 18px; line-height: 1; padding: 4px 10px; margin-right: 4px; }
body[data-state="landing"] #back-btn { display: none; }
body[data-state="landing"] #bar { position: absolute; left: 0; right: 0; top: 0; z-index: 2; background: transparent; border-bottom: 0; padding: 12px 24px; color: #fff; }
body[data-state="landing"] #bar .brand img { width: 28px; height: 28px; border-radius: 7px; }
body[data-state="landing"] #bar button { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); color: #fff; border-radius: 99px; padding: 6px 14px; }
body[data-state="landing"] #bar button:hover { background: rgba(255,255,255,.14); }

#landing { flex: 1 0 auto; width: 100%; }
#landing h1, #landing h2, #landing h3 { color: var(--l-head); }
#landing h2 { font-size: 20px; margin: 0 0 10px; }
#landing .wrap { max-width: 1168px; margin: 0 auto; padding: 0 24px; }
#landing .wrap-narrow { max-width: 868px; margin: 0 auto; padding: 0 24px; }
#landing button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

#landing .hero { background: radial-gradient(1200px 520px at 15% -10%, var(--hero-a1), transparent 60%), linear-gradient(160deg, var(--hero-a3), var(--hero-a2)); padding: 92px 0 60px; color: #eef1f4; }
#landing .hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
#landing .hero-grid.solo { grid-template-columns: minmax(0, 720px); }
#landing .hero-text { min-width: 0; }
#landing .badge { display: inline-flex; align-items: center; gap: 10px; margin: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 99px; padding: 5px 14px 5px 5px; font-size: 13px; }
#landing .badge img { width: 26px; height: 26px; border-radius: 7px; }
#landing h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -.4px; margin: 16px 0 12px; }
#landing .lead { font-size: 17.5px; line-height: 1.55; color: rgba(255,255,255,.86); margin: 0 0 24px; max-width: 560px; }
#landing #dropzone { display: flex; align-items: center; gap: 18px; padding: 20px; border: 2px dashed rgba(255,255,255,.35); border-radius: 16px; background: rgba(0,0,0,.18); }
body.dragging #landing #dropzone { border-color: var(--gold); background: rgba(0,0,0,.3); }
#landing .drop-title { font-size: 17px; color: #fff; margin: 0; }
#landing .drop-note { font-size: 13px; color: rgba(255,255,255,.75); margin: 2px 0 0; }
#landing button.gold, #landing .gold { background: var(--gold); border: 1px solid var(--gold); color: #1b1b1b; font-weight: 700; }
#landing button.gold:hover { filter: brightness(1.06); }
#landing #dropzone button.gold { font-size: 16px; padding: 11px 20px; border-radius: 10px; white-space: nowrap; flex: none; }
#landing #samples { margin-top: 16px; }
#landing #samples p { margin: 0 0 8px; font-size: 14px; }
#landing .sample-row { display: flex; flex-wrap: wrap; gap: 10px; }
#landing button.sample { display: flex; flex-direction: column; align-items: center; gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 8px 14px; color: #fff; text-align: center; line-height: 1.3; }
#landing button.sample:hover { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.4); }
#landing button.sample b { font-size: 14px; }
#landing button.sample span { font-size: 12px; opacity: .82; }
#landing .trust { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 22px 0 0; padding: 0; font-size: 13.5px; color: rgba(255,255,255,.85); }
#landing .trust li::before { content: '\2713'; color: var(--gold); font-weight: 700; margin-right: 6px; }
#landing .shot { margin: 0; min-width: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.14); transform: perspective(1400px) rotateY(-6deg); }
#landing .shot img { display: block; width: 100%; height: auto; }

#landing .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 56px; padding-bottom: 8px; }
#landing .card { background: var(--l-card); border: 1px solid var(--l-line); border-radius: 16px; padding: 22px; }
#landing .card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, var(--hero-a1), var(--hero-a2)); margin-bottom: 14px; }
#landing .card h3 { margin: 0 0 6px; font-size: 18px; }
#landing .card p { margin: 0; font-size: 15px; color: var(--l-muted); }
#landing .what { padding-top: 48px; }

#landing .plans-sec { padding-top: 56px; }
#landing .plans-sec h2 { font-size: 28px; text-align: center; margin-bottom: 22px; }
#landing .plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 820px; margin: 0 auto; }
#landing .plans.solo { grid-template-columns: minmax(0, 400px); justify-content: center; }
#landing .plan { position: relative; display: flex; flex-direction: column; background: var(--l-card); border: 1px solid var(--l-line); border-radius: 18px; padding: 24px; }
#landing .plan-pro { background: linear-gradient(170deg, var(--hero-a3), var(--l-card) 75%); border-color: var(--hero-a1); }
#landing .plan h3 { margin: 0; font-size: 20px; }
#landing .price { font-size: 34px; font-weight: 700; color: #fff; margin: 6px 0 4px; }
#landing .price small { font-size: 14px; font-weight: 400; color: var(--l-muted); margin-left: 4px; }
#landing .tag { position: absolute; top: -11px; right: 18px; background: var(--gold); color: #1b1b1b; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; }
#landing .ticks { list-style: none; padding: 0; margin: 12px 0 20px; flex: 1 0 auto; }
#landing .ticks li { position: relative; padding: 5px 0 5px 26px; font-size: 15px; }
#landing .ticks li::before { content: '\2713'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
#landing .plan-pitch { flex: 1 0 auto; font-size: 15px; color: var(--l-muted); }
#landing .plan-btn { width: 100%; font-size: 15px; font-weight: 700; padding: 11px; border-radius: 10px; background: transparent; border: 1px solid #3a3f4a; color: #fff; }
#landing .plan-btn:hover { border-color: #5a606c; }
#landing .plan-btn.gold { background: var(--gold); border-color: var(--gold); color: #1b1b1b; }

#landing .drive-card { display: flex; align-items: center; gap: 18px; width: calc(100% - 48px); max-width: 820px; margin: 56px auto 0; padding: 20px 24px;
  background: var(--l-card); border: 1px solid var(--l-line); border-radius: 16px; }
#landing .drive-card > img { width: 48px; height: 48px; border-radius: 11px; flex: none; }
#landing .drive-text { flex: 1 1 auto; min-width: 0; }
#landing .drive-text h2 { font-size: 17px; margin: 0 0 4px; }
#landing .drive-text p { margin: 0; font-size: 14.5px; color: var(--l-muted); }
#landing .drive-text p.ok { margin-top: 6px; color: #7ad6a3; }
#landing #drive-connect { flex: none; border-radius: 99px; padding: 7px 14px; background: transparent; border: 1px solid #3a3f4a; color: #fff; white-space: nowrap; }
#landing #drive-connect:hover { border-color: #5a606c; }

#landing .truths { padding-top: 48px; padding-bottom: 56px; }
#landing .truths ul { margin: 0; padding-left: 20px; color: var(--l-muted); font-size: 15px; }
#landing .truths li { margin: 5px 0; }
#landing .what ul { margin: 0; padding-left: 20px; color: var(--l-muted); }

body[data-state="landing"] #foot { border-top-color: #23262e; color: #8b919d; padding: 22px 16px; }
body[data-state="landing"] #foot a { color: #b9bfca; }

@media (max-width: 760px) {
  #landing .wrap, #landing .wrap-narrow { padding: 0 16px; }
  body[data-state="landing"] #bar { padding: 10px 16px; }
  #landing .hero { padding: 72px 0 40px; }
  #landing .hero-grid, #landing .cards, #landing .plans { grid-template-columns: minmax(0, 1fr); }
  #landing .hero-grid { gap: 32px; }
  #landing .shot { transform: none; }
  #landing #dropzone { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  #landing .sample-row { gap: 8px; }
  #landing button.sample { padding: 8px 10px; }
  #landing .cards { padding-top: 40px; }
  #landing .plans-sec { padding-top: 44px; }
  #landing .plans-sec h2 { font-size: 24px; }
  #landing .drive-card { flex-direction: column; align-items: flex-start; width: calc(100% - 32px); margin-top: 44px; padding: 20px; }
  #landing .truths { padding-top: 40px; padding-bottom: 40px; }
}
@media (max-width: 640px) {
  body[data-state="landing"] .bar-end [data-choose-file] { display: none; }
}
