/* stockyapp.ai: one stylesheet for all pages. Manrope is served from this site (no Google Fonts request). */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f6f5fc;
  --surface: #ffffff;
  --fg: #17151f;
  --muted: #5f5a72;
  --line: #e2dfee;
  --accent: #7950df;
  --accent-ink: #ffffff;
  --accent-soft: #eee8fc;
  --glow: #3d8bff;
  --glow-soft: rgba(61, 139, 255, 0.18);
  --spark: #7950df;
  --spark-glow: rgba(121, 80, 223, 0.45);
  --note: #fff7e8;
  --note-line: #f0d9a8;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e15; --surface: #191724; --fg: #efedf7; --muted: #a6a1ba; --line: #2b2839;
    --accent: #b195fa; --accent-ink: #160f2b; --accent-soft: #2a2240; --glow: #64a8ff; --glow-soft: rgba(100, 168, 255, 0.16);
    --spark: #a9d4ff; --spark-glow: rgba(100, 168, 255, 0.9);
    --note: #2a2214; --note-line: #4f3f1f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0e15; --surface: #191724; --fg: #efedf7; --muted: #a6a1ba; --line: #2b2839;
  --accent: #b195fa; --accent-ink: #160f2b; --accent-soft: #2a2240; --glow: #64a8ff; --glow-soft: rgba(100, 168, 255, 0.16);
  --spark: #a9d4ff; --spark-glow: rgba(100, 168, 255, 0.9);
  --note: #2a2214; --note-line: #4f3f1f; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }

/* Header and footer */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; font-weight: 700; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

.site-foot { border-top: 1px solid var(--line); margin-top: 72px; padding-block: 32px 40px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--muted); }

/* Home */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 32px; padding-block: 56px 40px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 0; text-wrap: balance; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 20px 0 0; max-width: 34em; }
.store-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 10px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); font-weight: 700; font-size: 15px; }
.store-note::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px var(--glow-soft); }
.hero-figure { position: relative; justify-self: center; width: min(320px, 100%); }
.hero-figure::before { content: ""; position: absolute; inset: 12% 4% 2%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-soft), transparent); }
.hero-figure img { position: relative; width: 100%; }

.section { padding-top: 56px; }
h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 8px; text-wrap: balance; }
.section > .wrap > p.sub { color: var(--muted); margin: 0 0 28px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.feature img { width: 96px; height: 120px; object-fit: contain; }
.feature h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }

.trust { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; align-items: center; }
.trust img { width: 140px; }
.trust ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.trust li { margin-top: 6px; }

.notice { background: var(--note); border: 1px solid var(--note-line); border-radius: 14px; padding: 16px 20px; font-size: 14px; color: var(--fg); margin-top: 56px; }

/* Legal pages */
.doc { max-width: 760px; padding-block: 48px 0; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc .updated { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.doc h2 { font-size: 22px; margin: 40px 0 8px; }
.doc h3 { font-size: 17px; margin: 24px 0 4px; font-weight: 800; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc address { font-style: normal; }
.doc .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-top: 16px; }
.doc .toc { columns: 2; column-gap: 32px; padding-left: 20px; font-size: 15px; }
.doc .head-figure { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.doc .head-figure img { width: 110px; flex: none; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }

.not-found { text-align: center; padding-top: 56px; }
.not-found img { width: 220px; margin: 0 auto 24px; }
.not-found .lead { margin-inline: auto; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 36px 8px; }
  .hero-figure { width: min(240px, 70%); grid-row: 1; }
  .features { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust img { width: 110px; }
  .nav { gap: 14px; font-size: 14px; }
  .doc .toc { columns: 1; }
  .doc .head-figure img { width: 80px; }
}
@media (max-width: 420px) {
  .nav a.nav-optional { display: none; }
  .feature { grid-template-columns: 72px minmax(0, 1fr); padding: 16px; }
  .feature img { width: 72px; height: 96px; }
}
