/* Vincere Investor — vincereinvestor.com
   Palette mirrors the iOS app (AppColors.swift) */
:root {
  --navy: #1B2A4A;
  --navy-deep: #131F38;
  --steel: #2E6DA4;
  --steel-light: #4A8BC2;
  --gold: #C8973A;
  --teal: #2A7B6F;
  --off-white: #F5F6F8;
  --light-gray: #E8ECF0;
  --mid-gray: #8A96A3;
  --charcoal: #1E2328;

  --bg: var(--off-white);
  --surface: #FFFFFF;
  --border: var(--light-gray);
  --text: var(--charcoal);
  --text-muted: #5A6470;
  --accent: var(--steel);
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(27,42,74,.06), 0 8px 24px rgba(27,42,74,.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10182B;
    --surface: #17223C;
    --border: #243254;
    --text: #E9EDF4;
    --text-muted: #A8B4C6;
    --accent: var(--steel-light);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #10182B;
  --surface: #17223C;
  --border: #243254;
  --text: #E9EDF4;
  --text-muted: #A8B4C6;
  --accent: var(--steel-light);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; white-space: nowrap; flex: none; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--navy), var(--steel));
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.nav nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.nav nav a { color: var(--text-muted); font-size: .95rem; font-weight: 550; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--accent); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--steel); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(46,109,164,.16), transparent 60%),
    radial-gradient(700px 360px at 90% 0%, rgba(200,151,58,.12), transparent 60%);
}
.hero .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--border); background: var(--surface);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero p.lede { font-size: 1.2rem; color: var(--text-muted); max-width: 46rem; }
.hero .note { font-size: .9rem; color: var(--text-muted); margin-top: 18px; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 44rem; margin-bottom: 36px; }
.section-head p { color: var(--text-muted); margin: 0; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
section.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin: 0; font-size: .97rem; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--steel) 12%, transparent);
  color: var(--accent); margin-bottom: 14px;
}
.card .icon svg { width: 21px; height: 21px; }

/* Numbered steps */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
ol.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
section.alt ol.steps li { background: var(--bg); }
ol.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px; margin-bottom: 12px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .9rem;
}
ol.steps h3 { margin-bottom: 6px; }
ol.steps p { color: var(--text-muted); margin: 0; font-size: .97rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  font-size: .87rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
}
section.alt .chip { background: var(--bg); }

/* ---------- Disclaimer callouts ---------- */
.notice {
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--border));
  background: color-mix(in srgb, var(--gold) 9%, var(--surface));
  border-radius: var(--radius); padding: 22px 24px;
}
.notice.strong { border-width: 2px; }
.notice h2, .notice h3 { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }
.notice .label {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}

/* ---------- Legal / doc pages ---------- */
.doc { padding: 48px 16px 24px; max-width: calc(46rem + 32px); }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 8px; }
.doc .updated { color: var(--text-muted); font-size: .92rem; margin-bottom: 32px; }
.doc h2 { font-size: 1.3rem; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--border); }
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc h3 { margin-top: 1.6em; font-size: 1.05rem; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .45em; }
.doc .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 24px; margin-bottom: 32px; }
.doc .toc ol { margin: 0; }
.doc .toc li { margin-bottom: .2em; }

/* FAQ */
details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px;
}
section.alt details { background: var(--bg); }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "\2013"; }
details > *:not(summary) { margin-top: 12px; color: var(--text-muted); font-size: .97rem; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--navy-deep), var(--steel));
  color: #fff; border-radius: 20px; padding: 48px 32px; text-align: center; margin: 56px 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.86); max-width: 40rem; margin: 0 auto 24px; }
.cta .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.cta .btn-primary { background: #fff; color: var(--navy); }
.cta .btn-primary:hover { background: var(--off-white); color: var(--navy); }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border); background: var(--surface);
  padding: 40px 0 56px; font-size: .92rem; color: var(--text-muted);
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; margin-bottom: 28px; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site .fine { border-top: 1px solid var(--border); padding-top: 20px; font-size: .85rem; line-height: 1.6; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--surface);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; top: 12px; }


/* ---------- Hero meta line (platform / pricing) ---------- */
.meta-line {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin: 20px 0 0; padding: 0;
  font-size: .9rem; color: var(--text-muted);
}
.meta-line span { display: inline-flex; align-items: center; }
.meta-line span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); margin-right: 8px; flex: none;
}

/* ---------- Contact form ---------- */
form.contact { margin: 0 0 8px; display: grid; gap: 6px; }
form.contact label { font-weight: 600; font-size: .92rem; margin-top: 10px; }
form.contact input[type="email"],
form.contact select,
form.contact textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .97rem;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
}
form.contact textarea { resize: vertical; min-height: 120px; }
form.contact input:focus-visible,
form.contact select:focus-visible,
form.contact textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
form.contact input[name="_gotcha"] {
  position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0;
}
form.contact button { margin-top: 16px; justify-self: start; }
form.contact .form-note { font-size: .86rem; color: var(--text-muted); margin: 12px 0 0; }


/* ---------- Sample export ---------- */
.sample-row { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 36px; align-items: start; }
.sample-shot {
  display: block; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); background: #fff; line-height: 0;
}
.sample-shot:hover { border-color: var(--accent); }
.sample-shot img { width: 100%; height: auto; display: block; }
.sample-copy h3 { margin-top: 0; }
.sample-copy p { color: var(--text-muted); }
.sample-note { font-size: .86rem; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
@media (max-width: 900px) { .sample-row { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Tablet / small-laptop range ---------- */
@media (min-width: 641px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  ol.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: .9rem; }
  .hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.6rem); }
}

/* Narrow tablets: never strand a lone card on its own row */
@media (min-width: 641px) and (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 40px; }
  section { padding: 44px 0; }
  .nav { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 10px; }
  .nav nav { gap: 6px 14px; }
  .nav nav a { font-size: .88rem; }
  .meta-line { gap: 6px 14px; font-size: .85rem; }
  .cta { padding: 36px 20px; }
}

/* ---------- Utilities (replacing inline styles; CSP is style-src 'self') ---------- */
.mb0 { margin-bottom: 0 !important; }
.mb6 { margin-bottom: 6px; }
.mt20 { margin-top: 20px; }
.mt28 { margin-top: 28px; }
.doc-links { margin-top: 2.5em; }
.foot-tag { margin-top: 10px; max-width: 24rem; }
.foot-entity { margin-top: 6px; max-width: 24rem; font-size: .85rem; }
.center-pad { text-align: center; padding-top: 80px; }
.tight-list { margin: 0 0 12px 1.1em; padding: 0; }
.btn-row-center { justify-content: center; margin-top: 24px; }
.notice-h { font-size: 1.35rem; }
.lead-muted { font-size: 1.15rem; color: var(--text-muted); }
