/* =========================================================
   PropFirmTools.ai — shared site stylesheet
   Same visual language across all tool pages: warm-neutral
   paper, deep-green profit accent, gold highlight accent,
   IBM Plex type pairing. Theme-aware (light/dark).
   ========================================================= */

:root {
  --paper: #F4F6F5;
  --ink: #151B1E;
  --ink-soft: #4B565C;
  --ink-faint: #7C8A88;
  --line: #D7DDDB;
  --surface: #FFFFFF;
  --surface-sunk: #ECEFEE;
  --accent: #96701F;
  --accent-soft: #F1E4C9;
  --accent-ink: #3D2C0C;
  --profit: #187A50;
  --profit-soft: #DCEFE5;
  --profit-ink: #F4FBF7;
  --loss: #B33A3A;
  --loss-soft: #F6E1DF;
  --warn: #9C6A16;
  --warn-soft: #F3E7CB;
  --navy: #101820;
  --navy-soft: #1B252E;
  --shadow: 0 1px 2px rgba(20, 24, 26, 0.06), 0 8px 24px -12px rgba(20, 24, 26, 0.18);
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C1113;
    --ink: #E9EDEC;
    --ink-soft: #A9B4B1;
    --ink-faint: #71807D;
    --line: #232C2E;
    --surface: #131A1D;
    --surface-sunk: #0F1518;
    --accent: #E0AE55;
    --accent-soft: #362A11;
    --accent-ink: #F3DCA3;
    --profit: #49C08B;
    --profit-soft: #12281F;
    --profit-ink: #0B2117;
    --loss: #E27268;
    --loss-soft: #2E1917;
    --warn: #E0A23F;
    --warn-soft: #2E2210;
    --navy: #060A0D;
    --navy-soft: #0D1418;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  --paper: #0C1113;
  --ink: #E9EDEC;
  --ink-soft: #A9B4B1;
  --ink-faint: #71807D;
  --line: #232C2E;
  --surface: #131A1D;
  --surface-sunk: #0F1518;
  --accent: #E0AE55;
  --accent-soft: #362A11;
  --accent-ink: #F3DCA3;
  --profit: #49C08B;
  --profit-soft: #12281F;
  --profit-ink: #0B2117;
  --loss: #E27268;
  --loss-soft: #2E1917;
  --warn: #E0A23F;
  --warn-soft: #2E2210;
  --navy: #060A0D;
  --navy-soft: #0D1418;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.num {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- site header ---------------- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 16px;
  color: #F4F6F5;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--profit), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: none;
}

.brand .brand-sub {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-size: 11.5px;
  color: #8FA0A6;
  letter-spacing: 0.02em;
  margin-left: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: #C4CDCF;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover, .site-nav a.active { color: #FFFFFF; }

.site-nav .nav-cta {
  background: var(--profit);
  color: #F4FBF7;
  padding: 8px 14px;
  border-radius: 7px;
  font-weight: 700;
}

.site-nav .nav-cta:hover { filter: brightness(1.1); color: #F4FBF7; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .site-nav { display: none; }
}

/* ---------------- hero ---------------- */
.hero {
  background: var(--navy);
  color: #F4F6F5;
  padding: 64px 20px 76px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 320px at 85% -10%, color-mix(in srgb, var(--profit) 22%, transparent), transparent),
              radial-gradient(600px 280px at 10% 110%, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  pointer-events: none;
}

.hero .wrap { position: relative; padding: 0 20px; text-align: center; max-width: 820px; }

.hero .eyebrow {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(224,174,85,0.1);
  border: 1px solid rgba(224,174,85,0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  text-wrap: balance;
  line-height: 1.12;
}

.hero h1 .hl { color: var(--profit); }

.hero .subhead {
  color: #B7C2C4;
  font-size: 16.5px;
  max-width: 62ch;
  margin: 0 auto 30px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------------- buttons ---------------- */
.btn {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-sunk);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, filter 0.15s ease, transform 0.1s ease;
}

.btn:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--profit);
  border-color: var(--profit);
  color: #F4FBF7;
}
.btn.primary:hover { filter: brightness(1.08); color: #F4FBF7; }

.btn.on-dark {
  background: transparent;
  border-color: rgba(244,246,245,0.35);
  color: #F4F6F5;
}
.btn.on-dark:hover { background: rgba(244,246,245,0.08); border-color: rgba(244,246,245,0.6); color: #F4F6F5; }

.btn.green {
  background: color-mix(in srgb, var(--profit) 50%, white 50%);
  border-color: color-mix(in srgb, var(--profit) 65%, white 35%);
  color: #0B2117;
  font-weight: 700;
}
.btn.green:hover { filter: brightness(1.05); }

.btn.green-dark {
  background: color-mix(in srgb, var(--profit) 78%, black 22%);
  border-color: color-mix(in srgb, var(--profit) 78%, black 22%);
  color: #F4FBF7;
  font-weight: 700;
}
.btn.green-dark:hover { filter: brightness(1.15); }

.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }

/* ---------------- sections ---------------- */
main { padding: 64px 0 20px; }

.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }

.section-head .eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.section-head p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.benefit-card .icon {
  font-size: 22px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--profit-soft);
  margin-bottom: 14px;
}

.benefit-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 6px;
}

.benefit-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* tool card (landing page tools grid) */
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-card .tool-status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.tool-status.live { background: var(--profit-soft); color: var(--profit); }
.tool-status.soon { background: var(--surface-sunk); color: var(--ink-faint); border: 1px solid var(--line); }

.tool-card h3 { font-size: 17px; margin: 0; font-weight: 700; }
.tool-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; flex: 1; line-height: 1.55; }
.tool-card .btn { align-self: flex-start; margin-top: 4px; }

/* education content */
.prose { max-width: 760px; margin: 0 auto; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; }
.prose h3:first-child { margin-top: 0; }
.prose p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; margin: 0 0 14px; }
.prose strong { color: var(--ink); }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 6px; }

.firm-table-wrap { overflow-x: auto; margin: 18px 0 26px; }

table.firm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 620px;
}

table.firm-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 9px 12px;
  border-bottom: 2px solid var(--line);
  background: var(--surface-sunk);
}

table.firm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

table.firm-table tr:last-child td { border-bottom: none; }
table.firm-table td.firm-name { color: var(--ink); font-weight: 600; }

.callout {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0;
}

.callout p { color: var(--accent-ink); margin: 0; font-size: 13.5px; line-height: 1.65; }
.callout strong { color: var(--accent-ink); }

.example-box {
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0;
}

.example-box h4 {
  margin: 0 0 10px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  font-weight: 700;
}

.example-box .num-line {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.example-box .num-line:last-child { border-bottom: none; font-weight: 700; }
.example-box .num-line span:last-child { font-family: "IBM Plex Mono", monospace; }

/* testimonial-style FAQ / notes */
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 700; }
.faq-item p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

/* footer */
footer.site-footer {
  background: var(--navy);
  color: #A9B4B1;
  margin-top: 40px;
}

footer.site-footer .wrap {
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

@media (max-width: 760px) {
  footer.site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  footer.site-footer .wrap { grid-template-columns: 1fr; }
}

footer.site-footer .brand { margin-bottom: 10px; }
footer.site-footer .foot-desc { font-size: 12.5px; line-height: 1.6; max-width: 32ch; color: #8FA0A6; }

footer.site-footer h5 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6F8084;
  margin: 0 0 12px;
}

footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 9px; }
footer.site-footer a { color: #C4CDCF; text-decoration: none; font-size: 13px; }
footer.site-footer a:hover { color: #FFFFFF; }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 20px 24px;
  text-align: center;
  font-size: 11.5px;
  color: #6F8084;
}

.disclaimer-note {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.65;
  max-width: 72ch;
  margin: 24px auto 0;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
