/* InvestiKid marketing site. Tokens mirror frontend/src/index.css. No JS, no third-party requests. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/lexend-latin-var.woff2") format("woff2");
}

:root {
  --brand-50: #f0f9ff;
  --brand-100: #e0f2fe;
  --brand-200: #bae6fd;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-900: #0c4a6e;
  --accent-100: #fef3c7;
  --success-100: #d1fae5;
  --success-700: #047857;
  --ink: #0f172a;
  --muted-fg: #475569;
  --line: #bae6fd;
  --card: #ffffff;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Lexend", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --radius: 1rem;
  --wrap: 68rem;
  --prose: 42rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--brand-50);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p, ul, ol, dl, table { margin: 0 0 1.1em; }
a { color: var(--brand-700); text-underline-offset: .15em; }
a:hover { color: var(--brand-900); }
:focus-visible { outline: 3px solid var(--brand-700); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 10;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: .5rem;
}
.skip-link:focus { top: .5rem; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand:hover { color: var(--brand-700); }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 .25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .65rem; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: .5rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-700); text-decoration: underline; }

/* Buttons and store badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none;
  background: var(--brand-700); color: #fff; border: 2px solid var(--brand-700);
}
.btn:hover { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 .75rem; padding: 0; list-style: none; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 11.5rem; min-height: 56px; padding: .45rem 1.1rem; border-radius: .75rem;
  background: #000; color: #fff; text-decoration: none; line-height: 1.2; border: 2px solid #000;
}
.store small { font-size: .78rem; font-weight: 500; }
.store strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
a.store:hover { background: #1f2937; border-color: #1f2937; color: #fff; }
.store.is-soon { background: #fff; color: var(--ink); border: 2px dashed var(--muted-fg); }

/* Hero */
.hero { padding: 2.5rem 0 3rem; background: linear-gradient(180deg, var(--brand-100), var(--brand-50)); }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.4fr 1fr; } .hero { padding: 4rem 0 4.5rem; } }
.eyebrow { font-weight: 700; color: var(--brand-700); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: .5rem; }
.lede { font-size: 1.2rem; color: #1e293b; max-width: 38rem; }
.fine { font-size: .9rem; color: var(--muted-fg); }
.hero-art { justify-self: center; width: min(14rem, 60%); }
@media (min-width: 52rem) { .hero-art { width: min(20rem, 100%); } }

/* Sections */
section { padding: 3rem 0; }
section.alt { background: #fff; border-block: 1px solid var(--line); }
.section-intro { max-width: 40rem; color: #1e293b; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; padding: 0; list-style: none; margin: 1.5rem 0 0; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
section.alt .card { background: var(--brand-50); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card.link { display: flex; flex-direction: column; }
.card.link a.more { margin-top: auto; font-weight: 700; display: inline-block; padding-top: .5rem; }
.tick { list-style: none; padding: 0; }
.tick li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.tick li::before { content: ""; position: absolute; left: 0; top: .4em; width: .9rem; height: .5rem; border-left: 3px solid var(--success-700); border-bottom: 3px solid var(--success-700); transform: rotate(-45deg) scale(.9); }

/* Pricing */
.plans { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 40rem) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.plan.featured { border-color: var(--brand-700); }
.plan .price { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; margin: .25rem 0; }
.badge { display: inline-block; background: var(--success-100); color: #064e3b; font-weight: 700; font-size: .85rem; padding: .15rem .65rem; border-radius: 999px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; }
caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
th, td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
thead th { background: var(--brand-100); }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: .75rem; margin-bottom: .75rem; }
summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; min-height: 44px; }
details[open] summary { border-bottom: 1px solid var(--line); }
details > div { padding: 1rem 1.1rem 0; }

/* Articles */
.article-head { background: linear-gradient(180deg, var(--brand-100), var(--brand-50)); padding: 2rem 0 1.5rem; }
.prose { max-width: var(--prose); }
.crumbs { font-size: .9rem; margin-bottom: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--muted-fg); }
.meta { color: var(--muted-fg); font-size: .95rem; }
.article-body { padding: 2rem 0 1rem; }
.article-body h2 { margin-top: 1.8em; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li { margin-bottom: .45em; }
.summary { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--brand-600); border-radius: .75rem; padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.summary p { margin: 0; }
.callout { background: var(--accent-100); border-radius: .75rem; padding: 1rem 1.25rem; color: #451a03; }
.callout p:last-child { margin-bottom: 0; }
.cta-box { background: #fff; border: 2px solid var(--brand-700); border-radius: var(--radius); padding: 1.5rem; margin: 2.5rem 0 1.5rem; }
.cta-box h2 { margin-top: 0; font-size: 1.4rem; }
.related { padding: 0 0 3rem; }
.disclaimer { font-size: .9rem; color: var(--muted-fg); border-top: 1px solid var(--line); padding-top: 1rem; }

/* Footer */
.site-footer { background: var(--brand-900); color: #e0f2fe; padding: 2.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand-200); }
.site-footer .cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: .35rem 0; min-height: 24px; }
.site-footer p { margin-bottom: .75rem; }
.legal { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #1e5a85; }
