/* ============================================================================
   landing.css — OmniCharting marketing + content pages (landing, about, …).
   Self-contained (no theme switcher): a fixed dark "Midnight" brand palette
   matching the app, so the site and tool feel like one product.
   ============================================================================ */
:root {
  --bg:        #060608;
  --bg-2:      #0d0d12;
  --bg-card:   #14141b;
  --bg-card-2: #1a1a23;
  --border:    #26262f;
  --border-2:  #34343f;
  --text:      #ececf0;
  --text-2:    #9a9aa8;
  --text-3:    #62626f;
  --gold:      #f0a832;
  --gold-2:    #f8c060;
  --green:     #22c55e;
  --blue:      #3b82f6;
  --red:       #ef4444;
  --radius:    12px;
  --maxw:      1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---- Buttons ---- */
.btn-cta, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn-cta { background: var(--gold); color: #1a1205; border: 1px solid var(--gold); }
.btn-cta:hover { filter: brightness(1.07); transform: translateY(-1px); color: #1a1205; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---- Shared site nav ---- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; max-width: var(--maxw); margin: 0 auto;
  background: rgba(6,6,8,0.82); backdrop-filter: blur(10px);
}
.site-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.18rem; color: var(--text); letter-spacing: -0.3px; }
.site-brand:hover { color: var(--text); }
.site-brand-mark { color: var(--gold); font-size: 1.25rem; }
.site-nav-links { display: flex; align-items: center; gap: 22px; }
.site-nav-links > a { color: var(--text-2); font-weight: 600; font-size: 0.93rem; }
.site-nav-links > a:hover { color: var(--text); }
.site-nav-signin { opacity: 0.7; }
.site-nav-cta { background: var(--gold); color: #1a1205 !important; padding: 8px 16px; border-radius: 999px; }
.site-nav-cta:hover { filter: brightness(1.08); }

/* ---- Hero ---- */
.hero { text-align: center; padding: 64px 0 28px; }
.hero-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-2); background: rgba(240,168,50,0.1); border: 1px solid rgba(240,168,50,0.25); padding: 5px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -1px; margin: 20px auto 14px; max-width: 16ch; }
.hero h1 .accent { color: var(--gold); }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--text-2); max-width: 62ch; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.85rem; color: var(--text-3); }
/* Layered hero: main = a backtested strategy (pane hidden); inset = indicators (pane shown). */
.hero-shot { position: relative; margin: 50px auto 44px; max-width: 940px; }
.hero-shot img { display: block; height: auto; }
.hero-shot .shot-main { width: 100%; border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(240,168,50,0.06); }
.hero-shot .shot-inset { position: absolute; right: -22px; bottom: -30px; width: 42%; border: 1px solid var(--border-2); border-radius: 10px; box-shadow: 0 22px 55px -18px rgba(0,0,0,0.95); }
.hero-shot .shot-mobile { display: none; }

/* ---- Trust strip ---- */
.trust-strip { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; padding: 26px 0; color: var(--text-2); font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.trust-strip b { color: var(--text); }

/* ---- Sections ---- */
section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.5px; margin: 0 0 10px; }
.section-head p { color: var(--text-2); max-width: 56ch; margin: 0 auto; font-size: 1.05rem; }

/* ---- Features grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .15s ease, transform .15s ease; }
.feature-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feature-ico { font-size: 1.6rem; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.feature-card p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(240,168,50,0.12); color: var(--gold); font-weight: 800; border: 1px solid rgba(240,168,50,0.3); margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* ---- Showcase ---- */
.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.showcase-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.showcase-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.showcase-card p { margin: 0; color: var(--text-2); font-size: 0.9rem; }
.showcase-try { white-space: nowrap; color: var(--gold-2); font-weight: 700; }

/* ---- Accounts CTA band ---- */
.cta-band { background: linear-gradient(180deg, var(--bg-card), var(--bg-2)); border: 1px solid var(--border); border-radius: 16px; padding: 44px 28px; text-align: center; }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: var(--text-2); max-width: 56ch; margin: 0 auto 22px; }
.soon-pill { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); padding: 3px 10px; border-radius: 999px; margin-left: 6px; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--text-2); }

/* ---- Shared footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 34px 22px; max-width: var(--maxw); margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; color: var(--text-2); font-size: 0.9rem; }
.site-footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.site-footer-links a { color: var(--text-2); }
.site-footer-links a:hover { color: var(--gold-2); }
.site-footer-disclaimer { color: var(--text-3); font-size: 0.82rem; }

/* ---- Content/doc pages (about/privacy/terms/contact) ---- */
.doc-page { max-width: 760px; margin: 0 auto; padding: 48px 0; }
.doc-page h1 { font-size: 2rem; letter-spacing: -0.5px; }
.doc-page h2 { margin-top: 32px; font-size: 1.25rem; }
.doc-page p, .doc-page li { color: var(--text-2); }
.doc-page .updated { color: var(--text-3); font-size: 0.85rem; }
.doc-page a { text-decoration: underline; }

/* ---- Flash messages (auth feedback; rendered by base.html) ---- */
.flash {
  border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-size: 0.95rem;
  background: var(--bg-card); border: 1px solid var(--border-2); color: var(--text);
}
.flash-error { border-color: rgba(239,68,68,0.45); color: #fca5a5; background: rgba(239,68,68,0.08); }
.flash-info  { border-color: rgba(59,130,246,0.4);  color: #93c5fd; background: rgba(59,130,246,0.08); }

/* ---- Auth forms (login / signup) ---- */
.auth-card {
  max-width: 420px; margin: 0 auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px;
}
.auth-card h1 { margin: 0 0 18px; font-size: 1.6rem; }
.auth-blurb { color: var(--text-2); font-size: 0.92rem; margin: -8px 0 18px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--text-2); }
.auth-field input {
  width: 100%; padding: 11px 13px; border-radius: 9px; font-size: 1rem;
  background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text);
}
.auth-field input:focus { outline: none; border-color: var(--gold); }
.auth-error { color: var(--red); font-size: 0.85rem; margin: 6px 0 0; }
.auth-remember { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.9rem; margin: 4px 0 18px; cursor: pointer; }
.auth-submit { width: 100%; justify-content: center; border: 0; }
.auth-alt { margin-top: 18px; text-align: center; color: var(--text-2); font-size: 0.92rem; }

/* ---- "Sign in with Google" (slice 4) ---- */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 13px; border-radius: 9px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  background: #fff; color: #1f1f1f; border: 1px solid var(--border-2);
}
.btn-google:hover { background: #f1f3f4; color: #1f1f1f; }
.btn-google svg { width: 18px; height: 18px; flex: none; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-2); font-size: 0.85rem; margin: 16px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border-2);
}

/* ---- Nav signed-in state ---- */
.site-nav-user { color: var(--text-2); font-weight: 600; font-size: 0.93rem; }
.site-nav-signout-form { display: inline-flex; margin: 0; }
.site-nav-signout {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--text-2); font: inherit; font-weight: 600; font-size: 0.93rem;
}
.site-nav-signout:hover { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .feature-grid, .steps, .showcase-grid { grid-template-columns: 1fr; }
  .site-nav-links { gap: 14px; }
  /* Hide secondary links on small screens but KEEP Sign in (auth entry point)
     and the CTA. The signed-in span/sign-out form aren't `> a`, so they stay. */
  .site-nav-links > a:not(.site-nav-cta):not(.site-nav-signin) { display: none; }
  .hero { padding-top: 40px; }
  .hero-shot { max-width: 90vw; }
  .hero-shot .shot-inset { right: 0; bottom: -18px; width: 46%; }
}
/* Very narrow phones: drop the signed-in email (Sign out + CTA still fit). */
@media (max-width: 480px) {
  .site-nav-user { display: none; }
}
/* On phones, drop the two desktop shots and show the single portrait app screenshot. */
@media (max-width: 700px) {
  .hero-shot { max-width: 300px; margin: 34px auto 24px; }
  .hero-shot .shot-main, .hero-shot .shot-inset { display: none; }
  .hero-shot .shot-mobile { display: block; width: 100%; border: 1px solid var(--border-2); border-radius: 18px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9); }
}
