/* Forex Growth Hub — theme (light, warm). Cream paper, warm ink and saffron,
   picked to sit against the teal of the mentor's portrait. Bricolage Grotesque
   for headings, Figtree for text. Read by assets/css/style.css, which loads first.

   Below the tokens are this site's layout overrides. They are mobile-first:
   on a phone the mentor's portrait leads the hero, the seven classes become a
   compact playlist, and the Fxfolder Premium band is a dark block. */
:root {
  --bg:        #FBF7F0;
  --bg-2:      #F4EEE3;
  --card:      #FFFFFF;
  --card-2:    #F7F1E6;
  --surface:   #FFFFFF;
  --line:      #ECE4D6;
  --line-2:    #DCD2C1;

  --ink:       #17150F;
  --ink-2:     #575247;
  --ink-3:     #8A8476;

  --accent:      #F5A524;   /* saffron: buttons, dots, step numbers (ink text on it) */
  --on-accent:   #17150F;
  --accent-ink:  #A35F00;   /* saffron text and links on cream (4.8:1) */
  --accent-deep: #7A4600;
  --accent-soft: #FDF0D8;
  --accent-line: #F1D7A4;
  --accent-hl:   #F9C766;   /* the highlighter stroke behind accent words */
  --grad-a:      #A35F00;
  --grad-b:      #C77700;

  --wash-1:    #FCE4B4;
  --wash-2:    #F5ECDD;
  --deep:      #17150F;
  --shadow-c:  #3A2A10;
  --coral:     #E5484D;
  --error-ink: #B42318;

  --field:      #FFFDF9;
  --field-line: #E2D8C6;

  --night:      #17150F;    /* the dark band */
  --night-2:    #221F18;
  --night-ink:  #FBF7F0;
  --night-ink-2:#C9C0AF;

  --radius:    20px;
  --radius-lg: 28px;
  --radius-sm: 14px;
  --shadow:    0 1px 2px rgba(58, 42, 16, .05), 0 14px 34px -16px rgba(58, 42, 16, .20);
  --shadow-lg: 0 2px 4px rgba(58, 42, 16, .05), 0 40px 80px -32px rgba(58, 42, 16, .38);
  --ease:      cubic-bezier(.2, .7, .2, 1);

  --font-body:    'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --h-track:  -.02em;
  --h1-track: -.03em;

  --logo-w: 38px;  --logo-h: 38px;
  --logo-w-sm: 34px; --logo-h-sm: 34px;
  --logo-track: -.01em;
  --mentor-focus: 50% 16%;

  --header-h:  66px;
  --mbar-h:    0px;

  color-scheme: light;
}

/* ---- Type ------------------------------------------------------------- */

body { font-size: 16px; line-height: 1.6; }
h1, h2, h3, .display { font-weight: 800; }
h1 { font-size: clamp(2.35rem, 9.2vw, 4.3rem); line-height: 1; }
h2 { font-size: clamp(1.8rem, 6.6vw, 2.8rem); line-height: 1.04; }
h3 { font-weight: 700; letter-spacing: -.015em; }
.lead { color: var(--ink-2); }

/* Accent words get a saffron highlighter stroke; the word itself stays ink, so it reads at any size. */
.accent {
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
  background: linear-gradient(180deg, transparent 60%, var(--accent-hl) 60%, var(--accent-hl) 92%, transparent 92%);
  -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .06em;
}

.kicker { font-weight: 800; letter-spacing: .16em; }
.pill { font-weight: 800; letter-spacing: .08em; border-color: var(--accent-line); }
.pill .dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(245, 165, 36, .25); }
.hero .pill .dot { animation: gh-pulse 2.4s ease-out infinite; }
@keyframes gh-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 165, 36, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(245, 165, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); }
}

/* ---- Buttons and logo -------------------------------------------------- */

.btn { font-weight: 700; letter-spacing: .005em; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 -2px 0 rgba(23, 21, 15, .14); }
.btn-primary:hover { background: #F0980F; box-shadow: 0 12px 28px -12px rgba(199, 119, 0, .75), inset 0 -2px 0 rgba(23, 21, 15, .14); }
.btn-ghost { background: var(--card); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }

.logo { gap: 11px; }
.logo-text small { color: var(--accent-ink); letter-spacing: .34em; font-size: .6rem; margin-bottom: 3px; }
.logo-text strong { font-size: 1.14rem; font-weight: 800; }

.site-header { background: color-mix(in srgb, var(--bg) 84%, transparent); }

/* ---- Hero -------------------------------------------------------------- */

.hero { padding: 56px 0 64px; }
.hero-bg {
  background:
    radial-gradient(55% 60% at 88% 8%, var(--wash-1) 0%, transparent 70%),
    radial-gradient(45% 45% at 0% 0%, var(--wash-2) 0%, transparent 70%);
}
.hero-bg::before { opacity: .55; }

.hero-visual.hero-portrait { border-radius: var(--radius-lg); border: 0; box-shadow: var(--shadow-lg); background: #2D6259; }
/* A round "free" sticker on the portrait */
.hero-portrait::after {
  content: '100%\A FREE';
  white-space: pre;
  position: absolute; top: 16px; right: 16px;
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--accent); color: var(--on-accent);
  font: 800 .78rem/1.05 var(--font-display); letter-spacing: .02em;
  box-shadow: 0 10px 24px -10px rgba(23, 21, 15, .5);
  transform: rotate(-12deg);
}
.hero-portrait .badge {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-color: rgba(255, 255, 255, .6);
  border-radius: 18px;
}
.hero-portrait .badge b { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.01em; }
.hero-portrait .badge .live { background: var(--accent); box-shadow: 0 0 0 4px rgba(245, 165, 36, .3); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  padding: 16px 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 520px;
}
.hero-stats div { align-items: center; text-align: center; padding: 0 8px; }
.hero-stats div + div { border-left: 1px solid var(--line); }
.hero-stats strong { font-size: 1.6rem; letter-spacing: -.035em; }
.hero-stats span { font-size: .68rem; letter-spacing: .07em; line-height: 1.3; }

/* Phones and tablets: portrait first, then the words, then the buttons. */
@media (max-width: 960px) {
  .hero { padding: 16px 0 36px; }
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { display: contents; }
  .hero-visual.hero-portrait {
    order: 0; width: 100%; max-width: none; justify-self: auto;
    aspect-ratio: 1 / 1; max-height: min(52vh, 460px);
  }
  .hero-copy .pill { order: 1; align-self: flex-start; margin-top: 24px; }
  .hero h1 { order: 2; margin: 14px 0 12px; }
  .hero .lead { order: 3; margin: 0; }
  .hero-ctas { order: 4; margin-top: 24px; }
  .hero-stats { order: 5; margin-top: 26px; max-width: none; }
}
@media (max-width: 520px) {
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; }
  .hero-portrait::after { width: 64px; height: 64px; font-size: .7rem; top: 12px; right: 12px; }
  .hero-portrait .badge { left: 12px; right: auto; bottom: 12px; padding: 10px 14px 10px 12px; }
  .hero-stats strong { font-size: 1.4rem; }
  .hero-stats span { font-size: .62rem; letter-spacing: .05em; }
}

/* ---- Sections ---------------------------------------------------------- */

@media (max-width: 760px) {
  section { padding: 44px 0; }
  .section-head { margin-bottom: 18px; }
}

/* ---- Class cards ------------------------------------------------------- */

.class-grid { gap: 16px; }
.class-card { border-radius: var(--radius); }
.class-card:hover { border-color: var(--accent-line); }
.class-card .num { color: rgba(245, 165, 36, .14); letter-spacing: -.04em; }
.class-card .topics li { color: var(--accent-deep); border-color: var(--accent-line); }

/* Phones: a compact playlist — number, title and line, play button. */
@media (max-width: 620px) {
  .class-grid { gap: 10px; }
  .class-card {
    display: grid; align-items: center;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "num title play" "num tag play";
    column-gap: 14px;
    padding: 14px 14px 14px 14px;
    border-radius: 18px;
  }
  .class-card:hover { transform: none; }
  .class-card .num {
    grid-area: num; position: static;
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center;
    font-size: 1.05rem; letter-spacing: -.02em;
    color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-line);
  }
  .class-card.is-viewed .num { background: var(--accent); color: var(--on-accent); border-color: transparent; }
  .class-card .kicker, .class-card .topics, .class-card .meta, .class-card .viewed-badge { display: none !important; }
  .class-card h3 { grid-area: title; align-self: end; margin: 0; padding: 0; font-size: 1.04rem; }
  .class-card p {
    grid-area: tag; align-self: start; margin: 3px 0 0; font-size: .86rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .class-card .foot { grid-area: play; margin: 0; }
  .class-card .watch, .class-card .soon { font-size: 0; gap: 0; }
  .class-card .watch svg { width: 38px; height: 38px; }
  .class-card .soon svg { width: 22px; height: 22px; }
}

/* ---- Free Fxfolder Premium band: dark ---------------------------------- */

.ic-band {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(245, 165, 36, .26), transparent 58%),
    radial-gradient(60% 80% at 0% 100%, rgba(45, 98, 89, .35), transparent 70%),
    var(--night);
  border-color: #2C2820;
  color: var(--night-ink);
}
.ic-band h2 { color: var(--night-ink); }
.ic-band .accent { color: var(--accent); background: none; padding: 0; }
.ic-band .lead { color: var(--night-ink-2); }
.ic-band .pill { background: rgba(245, 165, 36, .12); border-color: rgba(245, 165, 36, .32); color: var(--accent-hl); }
.ic-band .btn-ghost { background: transparent; color: var(--night-ink); border-color: rgba(251, 247, 240, .3); }
.ic-band .btn-ghost:hover { border-color: var(--night-ink); }
.ic-band .steps li { background: rgba(251, 247, 240, .05); border-color: rgba(251, 247, 240, .1); }
.ic-band .steps b { color: var(--night-ink); }
.ic-band .steps span { color: #B9B09F; }
@media (max-width: 860px) { .ic-band { padding: 30px 20px; border-radius: 24px; } }
@media (max-width: 520px) {
  .ic-band .ctas { flex-direction: column; }
  .ic-band .ctas .btn { width: 100%; }
}

/* ---- Footer, class page, mentorship page ------------------------------- */

.site-footer { background: var(--bg-2); }
.footer-cta { border-radius: var(--radius); }
.footer-by b { color: var(--ink); }
.side-list a[aria-current="page"] .n, .step-label .n, .steps li::before { font-family: var(--font-display); }
.slide-stage { background: #FFFFFF; }

@media (max-width: 760px) {
  .enroll-hero { padding: 32px 0 16px; }
  .step-card, .form-card { padding: 22px 18px; }
  .footer-cta { padding: 22px 20px; }
  .footer-cta .ctas { width: 100%; }
  .footer-cta .ctas .btn { flex: 1; }
  .class-layout { padding-top: 20px; }
  .panel { padding: 14px; }
}
