
:root {
    --bg: #F4F7F5;
    --surface: #FFFFFF;
    --mist: #E8EFEA;
    --ink: #14201B;
    --muted: #54635B;
    --line: #D8E0DA;
    --line-strong: #B4C1B8;
    --green: #1E6B45;
    --green-ink: #FFFFFF;
    --gold: #F0B429;
    --gold-tint: rgba(240, 180, 41, 0.28);
    --up: #1B7A4B;
    --down: #C4342A;
    --up-tint: rgba(27, 122, 75, 0.16);
    --down-tint: rgba(196, 52, 42, 0.14);
    --header-bg: #FFFFFF;
    --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --body: "Literata", Georgia, "Times New Roman", serif;
    --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0F1712;
      --surface: #16211A;
      --mist: #1D2B22;
      --ink: #E8F0EA;
      --muted: #9DB0A5;
      --line: #263429;
      --line-strong: #3A4C3F;
      --green: #4CC38A;
      --green-ink: #0F1712;
      --gold: #F5C04A;
      --gold-tint: rgba(245, 192, 74, 0.22);
      --up: #4CC38A;
      --down: #FF7B72;
      --up-tint: rgba(76, 195, 138, 0.2);
      --down-tint: rgba(255, 123, 114, 0.2);
      --header-bg: #16211A;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0F1712;
    --surface: #16211A;
    --mist: #1D2B22;
    --ink: #E8F0EA;
    --muted: #9DB0A5;
    --line: #263429;
    --line-strong: #3A4C3F;
    --green: #4CC38A;
    --green-ink: #0F1712;
    --gold: #F5C04A;
    --gold-tint: rgba(245, 192, 74, 0.22);
    --up: #4CC38A;
    --down: #FF7B72;
    --up-tint: rgba(76, 195, 138, 0.2);
    --down-tint: rgba(255, 123, 114, 0.2);
    --header-bg: #16211A;
  }

  html {
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 76px);
    scroll-behavior: smooth;
    height: 100%;
  }
  *, *::before, *::after { box-sizing: inherit; }
  body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.65 var(--body);
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4, p, dl, dd, ol, ul, blockquote, figure { margin: 0; }
  a { color: var(--green); }
  :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
  .wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

  /* Header */
  .site-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 30;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
  }
  .bar { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
  .brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--display); font-stretch: 112%; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
  .site-nav { display: flex; align-items: center; gap: 28px; }
  .site-nav a.link { font: 600 15px var(--display); color: var(--ink); text-decoration: none; }
  .site-nav a.link:hover { color: var(--green); }

  .btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 6px; border: 2px solid transparent; font: 700 15px var(--display); text-decoration: none; cursor: pointer; white-space: nowrap; }
  .btn-sm { height: 40px; padding: 0 18px; }
  .btn-green { background: var(--green); color: var(--green-ink); }
  .btn-green:hover { filter: brightness(1.1); }
  .btn-gold { background: #F5C04A; color: #14201B; }
  .btn-gold:hover { background: #FFD066; }
  .btn-line { background: transparent; color: #F3F8F5; border-color: rgba(243, 248, 245, 0.55); }
  .btn-line:hover { border-color: #F3F8F5; }

  /* Hero */
  .hero { --h-ink: #F3F8F5; --h-muted: #B7CFC2; background: #0E3B29; color: var(--h-ink); padding: 72px 0 80px; overflow: hidden; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .hero h1 { font: 800 clamp(2.5rem, 5.2vw, 4.3rem)/1.02 var(--display); font-stretch: 118%; letter-spacing: -0.02em; text-wrap: balance; }
  .hero .lede { margin-top: 24px; max-width: 46ch; font-size: 19px; color: var(--h-muted); }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
  .hero .fine { margin-top: 18px; font-size: 15px; color: var(--h-muted); }
  .chart-fig svg { width: 100%; height: auto; display: block; }
  .chart-fig figcaption { margin-top: 6px; font: 500 13px var(--display); color: var(--h-muted); }
  .chart-fig .g { stroke: rgba(243, 248, 245, 0.1); stroke-width: 1; }
  .chart-fig .price { fill: none; stroke: #FFFFFF; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; animation: draw 2.6s cubic-bezier(.3, .6, .3, 1) both; }
  .chart-fig .lv { animation: fade .8s ease 1.9s both; }
  .chart-fig .lv text { font: 700 13px var(--display); fill: #F3F8F5; }
  .chart-fig .end { fill: #F5C04A; animation: fade .4s ease 2.5s both; }
  @keyframes draw { from { stroke-dashoffset: 1; } }
  @keyframes fade { from { opacity: 0; } }

  /* Sections */
  .section { padding: 96px 0; }
  .section-head { max-width: 660px; margin-bottom: 44px; }
  .section-head h2 { font: 800 clamp(1.9rem, 3.6vw, 2.8rem)/1.08 var(--display); font-stretch: 112%; letter-spacing: -0.02em; text-wrap: balance; }
  .section-head p { margin-top: 14px; color: var(--muted); }

  /* Approach */
  .ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
  .idea { border-left: 4px solid var(--green); padding-left: 24px; }
  .idea h3 { font: 700 24px/1.2 var(--display); letter-spacing: -0.01em; }
  .idea p { margin-top: 10px; color: var(--muted); max-width: 46ch; }

  /* Tools */
  .tools { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line-strong); }
  .tab { flex: none; background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -1px; padding: 12px 18px; cursor: pointer; color: var(--muted); font: 700 16px var(--display); }
  .tab:hover { color: var(--ink); }
  .tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--green); }
  .sheet-desc { margin: 20px 0 20px; max-width: 64ch; color: var(--muted); min-height: 3.3em; }
  .xl {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--mist);
  height: 500px;
}
.xl-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 760px) {
  .xl {
    height: 290px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .xl-screenshot {
    max-width: none;
    height: 100%;
    width: auto;
  }
}
  .xl-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #1E6B45; color: #FFFFFF; font: 600 14px var(--display); }
  .xl-title .badge { font: 600 12px var(--display); padding: 2px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
  .xl-scroll { overflow-x: auto; }
  table.xl-t { width: 100%; border-collapse: collapse; font: 500 14px var(--mono); }
  .xl-t th, .xl-t td { border: 1px solid var(--line); padding: 9px 14px; text-align: right; white-space: nowrap; }
  .xl-t tr.letters th { background: var(--mist); color: var(--muted); font-weight: 500; text-align: center; padding: 4px 10px; font-size: 12px; }
  .xl-t tr.heads th { background: var(--mist); color: var(--ink); font: 700 13px var(--display); }
  .xl-t th.rn { background: var(--mist); color: var(--muted); text-align: center; width: 44px; font: 500 12px var(--mono); }
  .xl-t td.l, .xl-t tr.heads th.l { text-align: left; }
  .xl-t td { background: var(--surface); }
  .xl-t td.up { color: var(--up); }
  .xl-t td.down { color: var(--down); }
  .xl-t td.bar-up { background: linear-gradient(90deg, var(--up-tint) var(--w), var(--surface) var(--w)); }
  .xl-t td.bar-dn { background: linear-gradient(90deg, var(--down-tint) var(--w), var(--surface) var(--w)); }
  .xl-t tr.hl td { background: var(--gold-tint); font-weight: 600; }
  .xl-t td.strong { font-weight: 600; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
  .fact { border-top: 2px solid var(--ink); padding-top: 14px; }
  .fact h3 { font: 700 18px var(--display); }
  .fact p { margin-top: 6px; font-size: 16px; color: var(--muted); }

  /* Courses */
  .courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .course { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; }
  .lvl-wrap { display: flex; align-items: flex-end; gap: 10px; font: 700 14px var(--display); color: var(--muted); }
  .lvl { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
  .lvl i { display: block; width: 5px; border-radius: 1px; background: var(--line-strong); }
  .lvl i:nth-child(1) { height: 7px; }
  .lvl i:nth-child(2) { height: 12px; }
  .lvl i:nth-child(3) { height: 18px; }
  .lvl i.on { background: var(--green); }
  .course h3 { margin-top: 16px; font: 800 28px/1.12 var(--display); font-stretch: 108%; letter-spacing: -0.015em; }
  .course .sub { margin-top: 10px; color: var(--muted); }
  .course h4 { margin-top: 24px; font: 700 15px var(--display); }
  .course ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
  .course li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 16px; }
  .course li svg { margin-top: 5px; color: var(--green); }
  .course .cta-row { margin-top: auto; padding-top: 28px; }

  /* Reviews */
  .reviews { --h-ink: #F3F8F5; --h-muted: #B7CFC2; background: #0E3B29; color: var(--h-ink); }
  .reviews .section-head p { color: var(--h-muted); }
  .quote-box { max-width: 820px; }
  .quote-box blockquote { font: 500 clamp(1.3rem, 2.6vw, 1.85rem)/1.45 var(--body); min-height: 6.5em; }
  .who { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font: 600 16px var(--display); }
  .sample { font: 600 12px var(--display); padding: 3px 9px; border-radius: 4px; background: rgba(245, 192, 74, 0.2); color: #F5C04A; }
  .q-controls { margin-top: 28px; display: flex; align-items: center; gap: 10px; }
  .q-btn { width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 6px; border: 2px solid rgba(243, 248, 245, 0.5); background: transparent; color: #F3F8F5; cursor: pointer; }
  .q-btn:hover { border-color: #F3F8F5; }
  .q-count { margin-left: 8px; font: 600 15px var(--mono); color: var(--h-muted); }

  /* Contact */
  .contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
  .contact-list { margin-top: 28px; display: grid; gap: 14px; }
  .contact-list div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; font-size: 16px; }
  .contact-list dt { font: 700 14px var(--display); color: var(--muted); padding-top: 2px; }
  .form-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 28px; display: grid; gap: 16px; }
  .field { display: grid; gap: 6px; font: 700 14px/1.2 var(--display); }
  .field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg); color: var(--ink); font: 400 16px var(--body); }
  .field input, .field select { height: 46px; padding-top: 0; padding-bottom: 0; }
  .field textarea { min-height: 96px; resize: vertical; }
  .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .form-msg { min-height: 1.6em; font: 600 15px var(--display); }
  .form-msg.err { color: var(--down); }
  .form-msg.ok { color: var(--up); }

  /* Footer */
  .site-footer { padding: 44px 0 56px; border-top: 1px solid var(--line-strong); }
  .foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
  .foot p { font-size: 14.5px; color: var(--muted); max-width: 72ch; }
  .foot p + p { margin-top: 8px; }

  @media (max-width: 980px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .chart-fig { max-width: 560px; }
    .contact { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  }
  @media (max-width: 760px) {
    .site-nav a.link { display: none; }
    .ideas, .courses, .facts { grid-template-columns: minmax(0, 1fr); }
    .facts { gap: 24px; }
    .section { padding: 68px 0; }
    .hero { padding: 48px 0 56px; }
    .foot { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 560px) {
    .wrap { padding: 0 18px; }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .course { padding: 24px; }
    .form-card { padding: 20px; }
    .contact-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
  }

  /* Testimonial carousel */
.carousel-section { margin-top: 8px; }
.carousel-wrapper { display: flex; align-items: center; gap: 14px; }
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 14px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
  flex: 0 0 min(380px, 86vw);
  scroll-snap-align: start;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.carousel-card .quote { font: 800 40px/1 var(--display); color: var(--gold); }
.carousel-card .learner-text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  display: grid;
  gap: 10px;
  max-height: 230px;
  overflow-y: auto;
}
.carousel-card .learner-text p { margin: 0; }
.carousel-card .user { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.carousel-card .user img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; background: var(--mist);
}
.carousel-card .user h4 { font: 700 15px var(--display); color: var(--ink); margin: 0; }
.nav {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(243, 248, 245, 0.55);
  background: transparent; color: #F3F8F5;
  font-size: 18px; cursor: pointer;
}
.nav:hover { border-color: #F3F8F5; }
@media (max-width: 560px) {
  .nav { display: none; }
}





/* Calculator toolkit */
.calc-bench { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.calc-tabs { display: flex; flex-direction: column; border-left: 1px solid var(--line-strong); }
.calc-tab { text-align: left; background: none; border: 0; border-left: 3px solid transparent; margin-left: -1px; padding: 14px 18px; cursor: pointer; color: var(--ink); font: inherit; }
.calc-tab:hover { background: var(--surface); }
.calc-tab[aria-selected="true"] { border-left-color: var(--green); background: var(--surface); }
.calc-tab .ct-name { display: block; font: 700 17px var(--display); }
.calc-tab .ct-desc { display: block; margin-top: 2px; font: 400 14.5px/1.45 var(--body); color: var(--muted); }
.calc-panel { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 26px; min-width: 0; }
.calc-panel h3 { font: 700 22px/1.2 var(--display); letter-spacing: -0.015em; }
.calc-panel .blurb { margin-top: 6px; color: var(--muted); font-size: 16px; }
.calc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 22px 0; }
.calc-field { display: grid; gap: 6px; font: 600 13px/1.2 var(--display); color: var(--muted); }
.calc-field input, .calc-field select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg); color: var(--ink); font: 500 15px var(--mono); }
.calc-field select { font-family: var(--display); font-weight: 500; }
.calc-out .err { font: 500 15px/1.5 var(--display); color: var(--down); padding: 14px 0; }
.calc-out .note { margin-top: 16px; font-size: 15.5px; color: var(--muted); max-width: 62ch; }
.calc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.calc-stat { background: var(--surface); padding: 14px 16px; min-width: 0; }
.calc-stat dt { font: 500 13px/1.3 var(--display); color: var(--muted); }
.calc-stat dd { margin: 4px 0 0; font: 600 18px/1.25 var(--mono); overflow-wrap: anywhere; }
.calc-stat.primary dd { font-size: 24px; color: var(--green); }
.calc-stat.up dd { color: var(--up); }
.calc-stat.down dd { color: var(--down); }
.calc-extra { margin-top: 22px; }
.calc-extra h4 { margin: 0 0 10px; font: 700 14px var(--display); color: var(--muted); }
.dd-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 72px; align-items: center; gap: 12px; padding: 5px 0; font: 500 14px var(--display); }
.dd-row .bar { height: 10px; border-radius: 3px; background: var(--line); overflow: hidden; }
.dd-row .bar i { display: block; height: 100%; background: var(--down); }
.dd-row .v { font-family: var(--mono); text-align: right; }
.dd-row.you { color: var(--green); font-weight: 700; }
.dd-row.you .bar i { background: var(--green); }
.calc-spark svg { width: 100%; height: auto; display: block; }
.calc-spark .legend { display: flex; gap: 18px; margin-top: 8px; font: 500 13px var(--display); color: var(--muted); }
.calc-spark .legend b { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--green); vertical-align: middle; margin-right: 6px; }
.calc-spark .legend b.dash { border-top: 2px dashed var(--muted); }
@media (max-width: 980px) {
  .calc-bench { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .calc-tabs { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line-strong); }
  .calc-tab { border-left: 0; border-bottom: 3px solid transparent; margin: 0 0 -1px; white-space: nowrap; padding: 12px 16px; }
  .calc-tab[aria-selected="true"] { border-bottom-color: var(--green); border-left-color: transparent; }
  .calc-tab .ct-desc { display: none; }
}
@media (max-width: 600px) {
  .calc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-panel { padding: 18px; }
}



/* Course carousel */
.course-carousel-wrap { display: flex; align-items: center; gap: 14px; }
.course-carousel-wrap .nav { background: var(--green); color: #FFFFFF; border-color: transparent; }
.course-carousel-wrap .nav:hover { filter: brightness(1.1); }
.course-carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 14px;
}
.course-carousel::-webkit-scrollbar { display: none; }
.course-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.course-card:hover { border-color: var(--green); }
.course-card img {
  width: 100%;
  height: 190px;
  object-fit: fill;
  object-position: center;
  background: #FFFFFF;
  display: block;
  padding: 6px;
}
.course-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.course-tags span { font: 700 10.5px var(--display); letter-spacing: 0.02em; padding: 3px 8px; border-radius: 4px; background: var(--mist); color: var(--muted); }
.course-card h3 { margin-top: 10px; font: 700 16px/1.35 var(--display); letter-spacing: -0.005em; min-height: 2.7em; }
.course-card hr { margin: 12px 0; border: 0; border-top: 1px solid var(--line); }
.course-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font: 700 16px var(--display); }
.course-price .old-price { font: 500 13px var(--display); color: var(--muted); text-decoration: line-through; }
.course-price .discount { font: 700 12px var(--display); color: var(--down); }
.course-card .buy-btn {
  margin-top: 14px;
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  background: var(--green);
  color: #FFFFFF;
  font: 700 14px var(--display);
}
@media (max-width: 560px) {
  .course-carousel-wrap .nav { display: none; }
  .course-card { flex-basis: 78vw; }
}


/* See All link (courses heading row) */
.courses-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.courses-head .section-head { flex: 1; min-width: 0; }
.see-all-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font: 700 17px var(--display);
  color: var(--down);
}
a.see-all-link { text-decoration: none; }
a.see-all-link:hover { text-decoration: underline; }

/* All courses page (/courses/) */
.courses-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.courses-bar .bar { height: 76px; gap: 14px; }
.back-link { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); text-decoration: none; }
.back-link:hover { background: var(--mist); }
.course-search { position: relative; flex: 1; min-width: 0; }
.course-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.course-search input { width: 100%; height: 48px; padding: 0 16px 0 48px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: 400 16px var(--body); }
.page-title { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--display); letter-spacing: -0.02em; margin: 40px 0 8px; }
.search-status { min-height: 1.5em; margin: 0 0 16px; font: 500 14px var(--display); color: var(--muted); }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; padding-bottom: 72px; }
.courses-grid .course-card { flex: none; }
.courses-grid .course-card[hidden] { display: none; }
.courses-grid .course-card h3 { padding-bottom: 12px; }
.courses-grid .course-card hr { margin-top: auto; }
.no-results { padding: 40px 0 80px; color: var(--muted); }
.no-results[hidden] { display: none; }



/* Mobile header: keep every nav button in the row and fit them */
@media (max-width: 760px) {
  .bar { gap: 8px; height: 60px; }
  .brand { font-size: 18px; gap: 8px; min-width: 0; }
  .brand svg { width: 26px; height: 26px; }
  .site-nav { gap: 6px; margin-left: auto; flex: none; }
  .site-nav a.link { display: none; }
  .site-nav .btn { display: inline-flex !important; height: 36px; padding: 0 10px; font-size: 13px; }
  #mobile-cta { display: none !important; }
}
@media (max-width: 360px) {
  .brand { font-size: 16px; }
  .site-nav .btn { padding: 0 8px; font-size: 12px; }
}


.contact-quick-links {
    display: flex;
    gap: 18px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.contact-btn {
    position: relative;
    min-width: 250px;
    padding: 18px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
}

.contact-btn strong {
    display: block;
    font-size: 16px;
    line-height: 1.3;
}

.contact-btn small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.7;
}

.contact-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-btn-arrow {
    margin-left: auto;
    font-size: 22px;
    transition: transform 0.25s ease;
}

.contact-btn:hover {
    transform: translateY(-4px);
}

.contact-btn:hover .contact-btn-arrow {
    transform: translateX(5px);
}

/* Contact Us */
.contact-btn-primary {
    background: linear-gradient(
        135deg,
        rgba(0, 200, 130, 0.16),
        rgba(0, 200, 130, 0.05)
    );
    color: inherit;
}

.contact-btn-primary .contact-btn-icon {
    background: rgba(0, 200, 130, 0.18);
}

/* WhatsApp */
.contact-btn-whatsapp {
    background: linear-gradient(
        135deg,
        rgba(37, 211, 102, 0.18),
        rgba(37, 211, 102, 0.05)
    );
    color: inherit;
}

.contact-btn-whatsapp .contact-btn-icon {
    background: rgba(37, 211, 102, 0.20);
}

/* Mobile */
@media (max-width: 600px) {
    .contact-quick-links {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
        min-width: 0;
    }
}


/* Calculator collapse button, mobile only */
.calc-collapse-btn { display: none; }
@media (max-width: 980px) {
  .calc-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 16px;
    padding: 14px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font: 700 15px var(--display);
    cursor: pointer;
  }
  .calc-collapse-btn svg { transition: transform 0.2s ease; }
  .calc-collapse-btn[aria-expanded="false"] svg { transform: rotate(-90deg); }
  .calc-panel { margin-top: 10px; }
  .calc-panel[hidden] { display: none; }
}



/* Approach cards: stylish collapse, mobile only */
.idea-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  cursor: default;
  text-align: left;
}
.idea-toggle h3 { margin: 0; }
.idea-chevron { display: none; }
.idea-body { margin-top: 10px; }

@media (max-width: 760px) {
  .idea {
    border-left-width: 3px;
    border-left-color: var(--line-strong);
    padding: 14px 0 14px 20px;
    transition: border-color 0.2s ease;
  }
  .idea.is-open { border-left-color: var(--green); }
  .idea-toggle { cursor: pointer; padding: 2px 0; }
  .idea-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    color: var(--muted);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  .idea.is-open .idea-chevron {
    transform: rotate(180deg);
    background: var(--green);
    border-color: var(--green);
    color: #FFFFFF;
  }
  .idea-body {
    overflow: hidden;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
  }
  .idea.is-open .idea-body {
    max-height: 200px;
    margin-top: 10px;
    opacity: 1;
  }
}/* =========================================================
   TABLET NAV FIX for Trade On Level
   PASTE AT THE VERY END of marketpath/static/marketpath/css/style.css
   (below everything else, including tablet-laptop-additions.css)
   ========================================================= */

/* Never allow the page to scroll sideways.
   "clip" is used instead of "hidden" so the sticky header keeps working. */
html, body { max-width: 100%; }
body { overflow-x: clip; }

/* ---------- Tablets and small laptops: 761px to 1100px ----------
   Row 1: logo.  Row 2: all menu links + buttons, wrapping if needed. */
@media (min-width: 761px) and (max-width: 1100px) {
  .site-header .bar,
  .courses-bar .bar {
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .bar > * { min-width: 0; }

  .brand {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* The menu moves to its own full-width row under the logo */
  .site-header .site-nav {
    flex: 1 1 100%;
    order: 3;
    display: flex;
    flex-wrap: wrap;                 /* wraps instead of overflowing */
    align-items: center;
    justify-content: space-between;  /* spreads items across the row */
    gap: 6px 14px;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .site-header .site-nav a.link {
    display: inline-block;           /* make sure links stay visible on tablets */
    font-size: 15px;
    padding: 8px 2px;                /* bigger touch target */
    white-space: nowrap;
  }

  .site-header .site-nav .btn,
  .site-header .site-nav .btn-sm {
    display: inline-flex !important;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  /* The extra mobile-only button is not needed on tablets */
  #mobile-cta { display: none !important; }

  /* Header is taller now, so anchor links must stop below it */
  html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 118px); }
}

/* ---------- Wider laptops: 1101px to 1279px ----------
   One row, but a little tighter so nothing is cut off. */
@media (min-width: 1101px) and (max-width: 1279px) {
  .site-nav { gap: 16px; }
  .site-nav a.link { font-size: 14px; white-space: nowrap; }
  .site-nav .btn-sm { padding: 0 14px; font-size: 14px; }
  .brand { white-space: nowrap; }
}

/* ---------- Tablet landscape with short screens ----------
   Do not let the two-row sticky header take up half the screen. */
@media (min-width: 761px) and (max-width: 1100px) and (max-height: 600px) {
  .site-header { position: static; }
  html { scroll-padding-top: 0; }
}

