/* StockFirst marketing site.
   Plain CSS, no build step, no external fonts or scripts. */

:root {
  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-tint: #eaf5f0;
  --stage: #d7ede5;
  --border: #d7e3de;
  --ink: #0e1f1a;
  --sub: #4b5f58;
  --faint: #6e8079;

  --brand: #0a7d63;
  --brand-dark: #075c49;
  --brand-soft: #d9f2ea;
  --brand-tint: #8ad3bf;
  --brand-ink: #ffffff;

  --warn-bg: #fdeecb;
  --warn-ink: #7a5300;
  --danger: #b3432f;

  --hue-1: 158 45% 40%;
  --hue-2: 22 70% 52%;
  --hue-3: 200 55% 42%;
  --hue-4: 275 35% 52%;
  --hue-5: 35 65% 45%;
  --hue-6: 340 45% 52%;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(14, 31, 26, 0.05), 0 8px 24px rgba(14, 31, 26, 0.06);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412;
    --surface: #161d1a;
    --surface-tint: #142521;
    --stage: #142520;
    --border: #223229;
    --ink: #eef4f1;
    --sub: #aebdb6;
    --faint: #82948c;

    --brand: #35c79a;
    --brand-dark: #2aa682;
    --brand-soft: #16352c;
    --brand-tint: #1e463a;
    --brand-ink: #06201a;

    --warn-bg: #3a2c0c;
    --warn-ink: #f0c869;
    --danger: #e08571;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Header & footer ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--brand); }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--sub);
  font-size: 15px;
  font-weight: 600;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  color: var(--faint);
  font-size: 14px;
}
.site-footer a { color: var(--sub); font-weight: 600; }
.site-footer a:hover { color: var(--brand); text-decoration: none; }

/* ---------- Buttons & small pieces ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.button:hover { background: var(--brand-dark); text-decoration: none; }
.text-link { font-weight: 600; }
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  vertical-align: middle;
}
@media (prefers-color-scheme: dark) { .tag { color: var(--brand); } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.hero-text h1 {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-text .lead {
  font-size: 18px;
  color: var(--sub);
  margin-bottom: 28px;
  max-width: 46ch;
}
.actions { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--faint); }

/* ---------- Shift diagram (before / after) ---------- */
.shift {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
}
.shift-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: start;
  column-gap: 0;
}
.shift-title {
  grid-row: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.shift-title-before { grid-column: 1; }
.shift-title-after { grid-column: 3; }
.rows { grid-row: 2; display: flex; flex-direction: column; gap: 8px; }
.rows-before { grid-column: 1; }
.rows-after { grid-column: 3; }
.shift-links { grid-row: 2; grid-column: 2; width: 44px; height: 100%; overflow: visible; }
.shift-links .link {
  fill: none;
  stroke: hsl(var(--hue-1) / 0.35);
  stroke-width: 1.6;
}
.shift-links .link-out { stroke: hsl(var(--hue-2) / 0.5); stroke-dasharray: 3 3; }

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid hsl(var(--hue, var(--hue-1)) / 0.65);
  background: var(--surface-tint);
}
.row.is-out { background: var(--warn-bg); border-left-color: var(--danger); }
.pos {
  flex: none;
  width: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  text-align: center;
}
.thumb {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsl(var(--hue, var(--hue-1)) / 0.16);
  color: hsl(var(--hue, var(--hue-1)));
}
.row.is-out .thumb { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.thumb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.row-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-name { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-stock { font-size: 12px; color: var(--faint); }
.row.is-out .row-stock { color: var(--danger); font-weight: 600; }
.shift figcaption { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* ---------- Section scaffolding ---------- */
.section { padding: 64px 0; }
.section-tint { background: var(--surface-tint); }
.section-head { max-width: 640px; margin-bottom: 40px; position: relative; }
.pos-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}
@media (prefers-color-scheme: dark) { .pos-head { color: var(--brand); } }
.section-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--sub); font-size: 16px; }

/* ---------- How it works (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.step-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--sub); font-size: 14.5px; }
.mock {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
  font-size: 13px;
}
.mock-label { color: var(--faint); font-size: 12px; margin-bottom: 8px; }
.mock-choice { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--sub); }
.mock-choice.is-on { color: var(--ink); font-weight: 700; }
.radio {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--faint);
  flex: none;
}
.mock-choice.is-on .radio { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 5px, transparent 6px); }
.mock-line { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--border); }
.mock-line:first-child { border-top: none; }
.mock-line.is-out span:first-child { color: var(--danger); }
.toggle { width: 30px; height: 17px; border-radius: 999px; background: var(--border); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); }
.toggle.is-on { background: var(--brand); }
.toggle.is-on::after { left: auto; right: 2px; }
.move { font-weight: 700; font-size: 12px; }
.move-up { color: var(--brand); }
.move-down { color: var(--danger); }
.mock-button {
  margin-top: 10px;
  text-align: center;
  padding: 8px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 12.5px;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.features li { padding-top: 2px; }
.features h3 { font-size: 16px; margin-bottom: 6px; }
.features p { color: var(--sub); font-size: 14.5px; }

/* ---------- Sold-out rules + cases ---------- */
.rule-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.rules { display: flex; flex-direction: column; gap: 20px; }
.rules dt { font-weight: 700; font-size: 15.5px; margin-bottom: 4px; }
.rules dd { margin: 0; color: var(--sub); font-size: 14.5px; }
.cases {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.cases .shift-title { text-transform: none; font-size: 13px; font-weight: 600; color: var(--sub); margin-bottom: 14px; }
.rows-cases { display: flex; flex-direction: column; gap: 8px; }
.rows-cases .row { justify-content: space-between; }
.rows-cases .row-text { flex: 1; }
.verdict { flex: none; font-size: 12px; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; }
.verdict-down { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
@media (prefers-color-scheme: dark) { .verdict { color: var(--brand); } }
.cases figcaption { margin-top: 14px; font-size: 12.5px; color: var(--faint); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.plan-head h3 { font-size: 17px; margin-bottom: 6px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price-amount { font-size: 28px; font-weight: 800; }
.price-unit { font-size: 13px; color: var(--faint); }
.price-year { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.plan-limit { font-size: 13.5px; font-weight: 700; color: var(--brand-dark); }
@media (prefers-color-scheme: dark) { .plan-limit { color: var(--brand); } }
.plan-list { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.plan-list li {
  font-size: 13.5px;
  color: var(--sub);
  padding-left: 18px;
  position: relative;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-tint);
}
.plans-foot {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.plans-foot p { color: var(--faint); font-size: 13.5px; max-width: 52ch; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.faq dt { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--sub); font-size: 14.5px; }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.support-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); margin-bottom: 8px; }
.support-email { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.support-card .fine { color: var(--faint); }

/* ---------- Portfolio root (subtle-marketing.com) ---------- */
.portfolio-hero { padding: 72px 0 56px; max-width: 640px; }
.portfolio-hero .eyebrow { margin-bottom: 14px; }
.portfolio-hero h1 { font-size: 38px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.portfolio-hero .lead { font-size: 17px; color: var(--sub); }
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding-bottom: 72px;
}
.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.app-icon { width: 44px; height: 44px; border-radius: 11px; }
.app-card h2 { font-size: 19px; font-weight: 800; }
.app-card p { color: var(--sub); font-size: 14.5px; }
.app-links { display: flex; gap: 18px; margin-top: auto; font-size: 14px; font-weight: 700; }
.app-card.is-placeholder { opacity: 0.55; border-style: dashed; box-shadow: none; }
.app-card.is-placeholder .app-icon { background: var(--surface-tint); border: 1px dashed var(--border); }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.legal .updated { color: var(--faint); font-size: 13.5px; margin-bottom: 28px; }
.legal h2 { font-size: 20px; font-weight: 800; margin: 40px 0 12px; }
.legal h3 { font-size: 16.5px; font-weight: 700; margin: 24px 0 8px; }
.legal p { color: var(--sub); font-size: 15px; margin: 12px 0; }
.legal ul, .legal ol { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.legal ol { list-style: decimal; }
.legal li { color: var(--sub); font-size: 15px; }
.legal a { font-weight: 600; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 13.5px;
}
.legal th, .legal td {
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.legal th { background: var(--surface-tint); font-weight: 700; }
.legal strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1 { font-size: 32px; }
  .shift-grid { grid-template-columns: 1fr 30px 1fr; }
  .row-name, .row-stock { white-space: normal; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .rule-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: 18px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .site-header { padding: 14px 18px; }
  .site-nav { width: 100%; justify-content: center; gap: 18px; order: 3; }
  .site-nav a { font-size: 13.5px; }
  .hero-text h1 { font-size: 27px; }
  .plans { grid-template-columns: 1fr; }
  .shift { padding: 16px 14px; }
  .shift-grid { grid-template-columns: 1fr 22px 1fr; }
  .row { padding: 7px 7px; gap: 7px; }
  .thumb { width: 26px; height: 26px; }
  .row-name { font-size: 12.5px; }
  .plans-foot { flex-direction: column; align-items: flex-start; }
}
