/* ── CONARTIST — SIGN-IN / LANDING PAGE ──
   The page people see before they sign in (#login-screen in index.html). Everything here is
   prefixed .ld- so none of it can leak into the app. The pictures are REAL screenshots of the
   app filled with a demo store (assets/landing/, regenerated by .claude/tools/landing-shots.sh)
   shown in drawn device frames — never hand-drawn copies of app screens, which go stale. */

#login-screen {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.ld { font-family: var(--font-body); color: var(--text-primary); background: var(--bg); min-height: 100%; }
.ld-wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.ld h1, .ld h2, .ld h3 { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; }
.ld p { margin: 0; text-wrap: pretty; }

/* Header */
.ld-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.ld-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.ld-brand svg { color: var(--accent); }
.ld-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ld-nav a { font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none; padding: 12px; border-radius: var(--radius-sm); }
.ld-nav a:hover { color: var(--text-primary); }

/* Buttons */
.ld-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-family: var(--font-body); font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.ld-btn-google { border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.ld-btn-google:hover { box-shadow: var(--shadow-md); }
.ld-btn:disabled { cursor: default; opacity: .7; }
.ld-btn-accent { border: 0; background: var(--accent); color: var(--accent-fg); }
.ld-btn-accent:hover { background: var(--accent-dark); }
.ld-btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; border-radius: var(--radius-md); }

/* Hero */
.ld-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-top: 40px; padding-bottom: 32px; }
.ld-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ld-badge { font-size: 12px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--accent-light); color: var(--text-primary); }
.ld-badge-plain { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); padding: 5px 12px; }
.ld-hero h1 { font-size: clamp(32px, 6vw, 60px); line-height: 1.06; max-width: 880px; }
.ld-lead { font-size: 18px; line-height: 1.6; color: var(--text-secondary); max-width: 640px; }
.ld-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.ld-note { font-size: 13px; color: var(--text-secondary); }
#login-error { display: none; font-size: 13px; color: var(--danger); padding: 10px 14px; background: var(--danger-bg); border-radius: var(--radius-sm); border: 1px solid var(--danger-border); max-width: 480px; }

/* Device frames around the screenshots */
.ld-shot { display: block; width: 100%; height: auto; background: var(--bg); }
.ld-ipad { width: 100%; max-width: 1000px; margin: 0 auto; padding: 16px; border-radius: 40px; background: var(--text-primary); box-shadow: 0 30px 70px color-mix(in oklab, var(--text-primary) 20%, transparent); }
.ld-ipad .ld-shot { border-radius: 22px; aspect-ratio: 1180 / 820; }
.ld-phone { width: 100%; max-width: 280px; margin: 0 auto; padding: 10px; border-radius: 42px; background: var(--text-primary); box-shadow: 0 24px 50px color-mix(in oklab, var(--text-primary) 18%, transparent); }
.ld-phone .ld-shot { border-radius: 32px; aspect-ratio: 390 / 844; }
.ld-window { width: 100%; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); box-shadow: 0 16px 40px color-mix(in oklab, var(--text-primary) 10%, transparent); }
.ld-window-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-sidebar); }
.ld-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.ld-window .ld-shot { aspect-ratio: 1280 / 800; }
.ld-caption { font-size: 14px; color: var(--text-secondary); text-align: center; }
.ld-demo { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; padding-bottom: 72px; }

/* Sections */
.ld-band { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ld-section { padding-top: 80px; padding-bottom: 80px; }
.ld-section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 40px; }
.ld-section-head h2 { font-size: clamp(30px, 4vw, 40px); }
.ld-kicker { font-size: 12px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; color: var(--accent-dark); }
.ld-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 32px; align-items: flex-start; }
.ld-phones > * { flex: 1 1 280px; max-width: 340px; }
.ld-phone-item { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ld-phone-item h3 { font-size: 24px; }
.ld-phone-item p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); max-width: 320px; }

.ld-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.ld-split-reverse { flex-wrap: wrap-reverse; }
.ld-split-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ld-split-text h2 { font-size: clamp(28px, 3.4vw, 36px); }
.ld-split-text p { font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
.ld-split-media { flex: 1.6 1 520px; min-width: 0; }

/* Helpers — the one dark band. It is drawn in the text colour, so its overlays mix from
   --bg (not fixed white) and stay legible if a custom theme flips light and dark. */
.ld-dark { background: var(--text-primary); color: var(--bg); }
.ld-dark .ld-kicker { color: var(--accent-light); }
.ld-dark h2, .ld-dark h3 { color: var(--bg-card); }
.ld-dark .ld-split-text p, .ld-dark .ld-card p { color: color-mix(in oklab, var(--bg) 78%, transparent); }
.ld-helper-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 8px; }
.ld-dark .ld-card { background: color-mix(in oklab, var(--bg) 6%, transparent); border: 1px solid color-mix(in oklab, var(--bg) 14%, transparent); }
.ld-card { border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ld-card h3 { font-size: 20px; }
.ld-card p { font-size: 15px; line-height: 1.6; }
.ld-helper-phones { display: flex; gap: 20px; justify-content: center; flex: 1 1 460px; min-width: 0; }
.ld-helper-phones .ld-phone { max-width: 240px; }
/* On the dark band the black frame would vanish — outline it. */
.ld-dark .ld-phone { box-shadow: 0 0 0 1px color-mix(in oklab, var(--bg) 22%, transparent), 0 24px 50px color-mix(in oklab, var(--text-primary) 35%, transparent); }

/* Everything in ConArtist */
.ld-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ld-feature { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.ld-feature h3 { font-size: 22px; margin-bottom: 4px; }
.ld-feature > p { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; }
.ld-feature ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ld-feature li { display: flex; gap: 8px; font-size: 14px; line-height: 1.45; }
.ld-feature li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); }

.ld-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; max-width: 720px; padding-top: 80px; padding-bottom: 88px; }
.ld-cta h2 { font-size: 40px; }
.ld-cta p { font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
.ld-footer { border-top: 1px solid var(--border); padding: 24px 32px calc(24px + env(safe-area-inset-bottom)); text-align: center; font-size: 13px; color: var(--text-secondary); }

@media (max-width: 640px) {
  .ld-wrap { padding: 0 16px; }
  .ld-nav a { display: none; }
  .ld-hero { padding-top: 16px; }
  .ld-lead { font-size: 16px; }
  .ld-actions { width: 100%; flex-direction: column; }
  .ld-actions .ld-btn { width: 100%; }
  .ld-ipad { padding: 8px; border-radius: 22px; }
  .ld-ipad .ld-shot { border-radius: 14px; }
  .ld-section { padding-top: 56px; padding-bottom: 56px; }
  .ld-phones .ld-phone { max-width: 230px; }
  .ld-helper-phones .ld-phone { max-width: 46%; padding: 6px; border-radius: 28px; }
  .ld-helper-phones .ld-phone .ld-shot { border-radius: 22px; }
  .ld-cta h2 { font-size: 32px; }
}
