/* =============================================================================
   MyMentorFX.com — Stylesheet
   Aesthetic: calm, premium, dark, mature, evidence-led. No hype imagery.
   ============================================================================= */

:root {
  /* Palette — deep ink navy with muted gold + slate-blue accents */
  --ink:        #0B1220;   /* page background */
  --ink-2:      #0E1626;   /* alt section */
  --panel:      #111C2F;   /* cards / panels */
  --panel-2:    #16233A;   /* raised */
  --line:       #26344C;   /* hairlines / borders */
  --line-soft:  #1B2942;

  --text:       #E9ECF3;   /* body */
  --text-soft:  #A7B2C7;   /* secondary */
  --text-mute:  #74829B;   /* captions */

  --gold:       #C6A15B;   /* primary accent */
  --gold-soft:  #D8BC85;
  --blue:       #6E93C8;   /* secondary accent */

  --danger-bg:  #2A1B10;
  --danger-br:  #6E4A1E;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

::selection { background: rgba(198,161,91,.28); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* --- Typography ------------------------------------------------------------ */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.lede { font-size: 1.12rem; color: var(--text-soft); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.section { padding-block: clamp(56px, 9vw, 104px); }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line-soft); }
.section__head { max-width: 640px; margin-bottom: 2.6rem; }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .92em 1.5em; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn--primary {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #17120A;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 30px -14px rgba(198,161,91,.6);
}
.btn--primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 14px 36px -14px rgba(198,161,91,.75); }

.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn--block { width: 100%; justify-content: center; }
.btn__ext { font-size: .82em; opacity: .7; }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* CTA microcopy under buttons */
.micro {
  font-size: .82rem; color: var(--text-mute); margin-top: .9rem; max-width: 46ch;
}

/* --- Top disclosure bar ---------------------------------------------------- */
.disclosure-bar {
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-size: .84rem; color: var(--text-soft);
}
.disclosure-bar .wrap { padding-block: .7rem; }
.disclosure-bar strong { color: var(--gold-soft); font-weight: 600; }

/* --- Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,18,32,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand b { font-weight: 600; letter-spacing: -.01em; }
.brand span { color: var(--gold); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-soft); font-size: .93rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: .5rem .6rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem;
  }
  .nav-links.open a { padding: .7rem 0; border-top: 1px solid var(--line-soft); }
  .nav-links.open .nav-cta { margin-top: .6rem; }
  .nav-toggle { display: inline-flex; }
}

/* --- Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(52px, 9vw, 96px); }
.hero__grid { max-width: 760px; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .lede { max-width: 60ch; margin-bottom: 1.4rem; }
.hero .cta-row { margin-top: 1.7rem; }

/* Signature: abstract calm market-grid + single thin line, drawn in SVG */
.hero__art {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}
.hero__art .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.hero__art .chart-line {
  fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(198,161,91,.35));
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: draw 2.6s ease forwards .3s;
}
.hero__art .chart-area { fill: url(#goldFade); opacity: .5; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero__art .chart-line { stroke-dashoffset: 0; animation: none; }
}

/* Proof strip */
.proofstrip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 2.4rem;
}
.proofstrip div { background: var(--panel); padding: 1.1rem 1.2rem; }
.proofstrip .num { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-soft); line-height: 1; }
.proofstrip .lab { font-size: .8rem; color: var(--text-soft); margin-top: .4rem; }
.asof { font-size: .78rem; color: var(--text-mute); margin-top: .9rem; }
@media (max-width: 680px) {
  .proofstrip { grid-template-columns: repeat(2, 1fr); }
}

/* --- Risk / disclosure callouts -------------------------------------------- */
.notice {
  border: 1px solid var(--line); background: var(--panel);
  border-radius: var(--radius); padding: 1.15rem 1.25rem;
  font-size: .9rem; color: var(--text-soft);
}
.notice strong { color: var(--gold-soft); font-weight: 600; }
.notice--risk { border-left: 3px solid var(--gold); }
.notice--inline { margin-top: 1.6rem; }

/* --- Problem / story prose ------------------------------------------------- */
.prose { max-width: 62ch; }
.prose p { color: var(--text-soft); }
.prose .signature { font-family: var(--serif); font-style: italic; color: var(--gold-soft); margin-top: 1.4rem; }

.cycle {
  list-style: none; padding: 0; margin: 0 0 1.6rem;
  display: grid; gap: .55rem; max-width: 60ch;
}
.cycle li {
  padding-left: 1.6rem; position: relative; color: var(--text-soft); font-size: .96rem;
}
.cycle li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border: 1px solid var(--gold); border-radius: 50%;
}

/* --- Feature cards --------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card__ico { width: 30px; height: 30px; color: var(--gold); margin-bottom: .9rem; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .92rem; color: var(--text-soft); }

/* --- Validation stats ------------------------------------------------------ */
.valgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0 1.4rem; }
@media (max-width: 680px) { .valgrid { grid-template-columns: repeat(2, 1fr); } }
.valgrid .stat {
  text-align: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1rem;
}
.valgrid .num { font-family: var(--serif); font-size: 2rem; color: var(--gold-soft); }
.valgrid .lab { font-size: .82rem; color: var(--text-soft); margin-top: .3rem; }

/* --- Support / bonuses list ------------------------------------------------ */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0; }
.tags span {
  font-size: .84rem; color: var(--text-soft);
  border: 1px solid var(--line); background: var(--panel);
  padding: .45em .8em; border-radius: 999px;
}
.tags span::before { content: "◇ "; color: var(--gold); }

/* --- Form ------------------------------------------------------------------ */
.formwrap { max-width: 680px; }
.formcard {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.3rem, 4vw, 2.1rem);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .88rem; color: var(--text); margin-bottom: .4rem; font-weight: 500; }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .75rem .85rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.consent { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1rem; }
.consent input { margin-top: .25rem; width: 18px; height: 18px; flex: none; accent-color: var(--gold); }
.consent label { font-size: .84rem; color: var(--text-soft); line-height: 1.5; }

.field-error { color: #E0A34A; font-size: .8rem; margin-top: .35rem; display: none; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #E0A34A; }

.form-confirm {
  display: none; text-align: center; padding: 1.4rem 0;
}
.form-confirm.show { display: block; }

/* Legacy iframe embed styles retained for compatibility */
.formcard--embed { padding: 10px; overflow: hidden; }
.hl-embed {
  width: 100%;
  height: 751px;      /* matches the form's data-height; adjust if the form length changes */
  border: none;
  border-radius: var(--radius-sm);
  display: block;
  background: transparent;
  color-scheme: normal; /* prevents some browsers forcing a light/dark shift on the frame */
}
@media (max-width: 560px) {
  .formcard--embed { padding: 6px; }
  .hl-embed { height: 860px; } /* legacy embeds may get taller when fields stack on mobile */
}
.form-confirm .check { width: 46px; height: 46px; color: var(--gold); margin: 0 auto 1rem; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --- FAQ ------------------------------------------------------------------- */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--line-soft); padding: .3rem 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0;
  position: relative; font-weight: 500; color: var(--text); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--gold); font-family: var(--mono);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-soft); font-size: .95rem; padding: 0 1.5rem 1.1rem 0; margin: 0; }

/* --- Final CTA band -------------------------------------------------------- */
.finalcta { text-align: center; }
.finalcta .wrap { max-width: 720px; }
.finalcta h2 { margin-bottom: 1rem; }
.finalcta .cta-row { justify-content: center; margin-top: 1.6rem; }

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--ink-2); border-top: 1px solid var(--line);
  padding-block: 3rem; font-size: .88rem; color: var(--text-mute);
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--text-soft); }
.footer-disclaimer { font-size: .82rem; line-height: 1.6; max-width: 90ch; color: var(--text-mute); }
.footer-disclaimer + .footer-disclaimer { margin-top: .8rem; }

/* --- Sticky mobile CTA (includes compact disclosure) ----------------------- */
.sticky-cta {
  display: none; position: fixed; inset: auto 0 0 0; z-index: 45;
  background: rgba(14,22,38,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
}
.sticky-cta .disc { font-size: .72rem; color: var(--text-mute); margin: 0 0 .5rem; text-align: center; }
.sticky-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 860px) { .sticky-cta { display: block; } }

/* --- Legal / content pages ------------------------------------------------- */
.legal { padding-block: clamp(40px, 7vw, 72px); }
.legal .wrap { max-width: 820px; }
.legal h1 { margin-bottom: .5rem; }
.legal .meta { font-family: var(--mono); font-size: .8rem; color: var(--text-mute); margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .8rem; }
.legal h3 { font-size: 1.05rem; margin: 1.6rem 0 .6rem; color: var(--gold-soft); }
.legal p, .legal li { color: var(--text-soft); font-size: .96rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }
.legal .caps { font-size: .86rem; }
.legal .backlink { display: inline-block; margin-bottom: 1.5rem; font-size: .9rem; }

/* --- Build warning banner (placeholders present) --------------------------- */
.build-warning {
  background: var(--danger-bg); border-bottom: 1px solid var(--danger-br);
  color: #E7C79A; font-size: .82rem;
}
.build-warning .wrap { padding-block: .6rem; }
.build-warning strong { color: #F0D9B0; }

/* --- 404 ------------------------------------------------------------------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.notfound .code { font-family: var(--mono); color: var(--gold); letter-spacing: .3em; font-size: .9rem; }
.notfound h1 { margin: 1rem 0; }

/* --- Reveal on scroll ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
