/* Valerio's Bulls - public website layout (home, courses, products, contact,
   member-area introduction, 404). Loaded AFTER brand/site.css and only on the
   public pages; the house style (colours, fonts, buttons, cards, hover rule)
   comes from site.css and is not repeated here.
   Hover rule (site.css): a hovered or pressed element never gets transform or
   filter; lift is shown with box-shadow, colour and inner elements only. */

.vb-public { display: flex; flex-direction: column; min-height: 100vh; }
.vb-public main { flex: 1; }
.vb-public h1, .vb-public h2, .vb-public h3 { margin: 0; letter-spacing: -.01em; }
.vb-public p { margin: 0; }
.vb-public .lead { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.vb-public .eyebrow { display: inline-block; margin-bottom: 10px; }
.vb-public :focus-visible { outline: 3px solid rgba(201, 162, 39, .6); outline-offset: 3px; border-radius: 6px; }

.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-gold {
  background: linear-gradient(180deg, #e2c04a, var(--gold));
  color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(159, 127, 22, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-gold:hover { box-shadow: 0 12px 24px -10px rgba(159, 127, 22, .6), 0 0 0 1px var(--gold-deep), inset 0 0 0 999px rgba(255, 255, 255, .08); }
.pub-btn-static { cursor: default; opacity: .75; }
.pub-btn-static:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

/* ---------- header ---------- */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.pub-header-inner {
  padding-block: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  position: relative;
}
/* The logo takes the room the nav leaves, so it is as large - and "Options & Stock
   Trading" as legible - as the width allows, and it can never push the header wide
   enough to scroll sideways. */
.pub-header .brand { flex: 1 1 auto; }
.pub-nav { display: flex; align-items: center; gap: 22px; flex: none; }
.pub-nav-links { display: flex; align-items: center; gap: 4px; }
.pub-nav-links a, .pub-footer-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.pub-nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.pub-nav-links a[aria-current="page"] { color: var(--ink); background: var(--gold-soft); box-shadow: inset 0 -2px 0 var(--gold); }
.pub-nav-actions { display: flex; align-items: center; gap: 10px; }
.pub-nav-actions .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.pub-nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pub-nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.pub-nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.pub-nav-toggle:focus-visible + .pub-nav-burger { outline: 3px solid rgba(201, 162, 39, .6); outline-offset: 2px; }
@media (max-width: 899px) {
  .pub-nav-burger { display: flex; }
  .pub-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 0 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .pub-nav-toggle:checked ~ .pub-nav { display: flex; }
  .pub-nav-toggle:checked ~ .pub-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .pub-nav-toggle:checked ~ .pub-nav-burger span:nth-child(2) { opacity: 0; }
  .pub-nav-toggle:checked ~ .pub-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .pub-nav-links { flex-direction: column; align-items: stretch; }
  .pub-nav-links a { padding: 12px 14px; font-size: 16px; }
  .pub-nav-actions { flex-direction: column; align-items: stretch; }
  .pub-nav-actions .btn { min-height: 46px; }
}

/* ---------- home hero ---------- */
.pub-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: 72px 0 0;
  overflow: hidden;
  background: var(--ink);
}
@media (min-width: 900px) { .pub-hero { padding-top: 110px; } }
.pub-hero-photo, .pub-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.pub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 21, 38, .94) 0%, rgba(14, 21, 38, .82) 45%, rgba(14, 21, 38, .45) 100%),
    linear-gradient(180deg, rgba(14, 21, 38, 0) 60%, rgba(14, 21, 38, .85) 100%);
}
.pub-hero-inner { position: relative; }
.pub-hero-copy { max-width: 720px; }
.pub-hero-copy .ticker-chip { margin-bottom: 18px; text-transform: uppercase; }
.pub-hero-copy h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.05; font-weight: 800; color: #fff; }
.pub-hero-copy .lead { margin-top: 18px; color: rgba(255, 255, 255, .84); font-size: clamp(16px, 1.4vw, 19px); max-width: 620px; }
.pub-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pub-hero .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.pub-hero .btn-ghost:hover { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .25); }

/* ---------- generic sections ---------- */
.pub-section { padding-block: 56px; }
@media (min-width: 900px) { .pub-section { padding-block: 80px; } }
.pub-page-head { position: relative; padding: 44px 0 34px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--bg)); }
@media (min-width: 900px) { .pub-page-head { padding: 64px 0 44px; } }
.pub-page-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.pub-page-head .lead { margin-top: 12px; max-width: 720px; }
.pub-page-head--photo { color: #fff; isolation: isolate; overflow: hidden; background: var(--ink); border-bottom: 0; padding: 64px 0 54px; }
@media (min-width: 900px) { .pub-page-head--photo { padding: 96px 0 80px; } }
.pub-page-head-photo, .pub-page-head-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pub-page-head--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 21, 38, .92), rgba(14, 21, 38, .55)); }
.pub-page-head--photo .eyebrow { color: #f5d36b; }
.pub-page-head--photo .lead, .pub-page-head--photo p { color: rgba(255, 255, 255, .86); }
.pub-page-head--photo .ticker-chip { margin-bottom: 16px; text-transform: uppercase; }
.pub-page-head--photo .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.pub-page-head--photo p:not(.lead) { margin-top: 10px; max-width: 640px; }
.pub-inline-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pub-card:hover { box-shadow: var(--shadow-md); }
.pub-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.pub-frame img { display: block; width: 100%; height: auto; }
/* marked content gap (kept for any future gap) */
.pub-gap {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--gold);
  background: var(--gold-soft);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}
.pub-gap b { font-family: var(--mono); letter-spacing: .08em; color: var(--gold-text); }
.pub-band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- home: about + contact ---------- */
.pub-about { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .pub-about { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.pub-about h2, .pub-contact-copy h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.pub-about p { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.pub-about-visual .pub-frame { position: relative; }
.pub-about-visual .pub-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0) 60%, rgba(201, 162, 39, .18));
  pointer-events: none;
}
.pub-contact-home { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
@media (min-width: 900px) { .pub-contact-home { grid-template-columns: 1fr 1.1fr; gap: 56px; padding: 80px 0; align-items: start; } }
.pub-contact-copy p { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.pub-contact-lines { font-weight: 600; }
.pub-contact-lines .link { font-size: 16px; }

/* ---------- forms ---------- */
.pub-form .field { margin-top: 14px; }
.pub-form .field:first-child { margin-top: 0; }
.pub-form-name { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .pub-form-name { grid-template-columns: 1fr 1fr; } }
.pub-form-name legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pub-form-name .field { margin-top: 0; }
.pub-textarea { min-height: 130px; resize: vertical; padding-top: 12px; line-height: 1.5; font: inherit; }
.pub-form .btn[disabled] { opacity: .6; cursor: not-allowed; }
.pub-form .btn[disabled]:hover { box-shadow: 0 6px 16px -6px rgba(14, 21, 38, .55), inset 0 1px 0 rgba(255, 255, 255, .08); }

/* ---------- courses ---------- */
.pub-courses { display: grid; gap: 18px; max-width: 1000px; margin: 0 auto; }
.pub-course { display: flex; flex-direction: column; gap: 18px; padding: 28px 26px; }
@media (min-width: 860px) { .pub-course { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; } }
.pub-course h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.pub-course-sub { margin-top: 8px; color: var(--muted); font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pub-course-main > p:last-child { margin-top: 12px; color: var(--ink-2); line-height: 1.65; max-width: 62ch; }
.pub-price {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #f2d675);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
}
.pub-course-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.pub-course-actions .btn { white-space: nowrap; }

/* ---------- course detail ---------- */
.pub-detail-top { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 860px) { .pub-detail-top { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 28px; } }
.pub-detail-top .pub-course-sub { margin-top: 12px; }
.pub-detail { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.pub-acc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pub-acc[open] { border-color: var(--gold); box-shadow: var(--shadow-md); }
.pub-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 800;
  font-size: 17px;
  border-radius: 16px;
}
.pub-acc summary::-webkit-details-marker { display: none; }
.pub-acc summary:hover { background: var(--surface-2); }
.pub-acc-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; background: var(--surface); }
.pub-acc-icon::before, .pub-acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; transition: transform .2s var(--ease); }
.pub-acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.pub-acc[open] .pub-acc-icon { border-color: var(--gold); background: var(--gold-soft); }
.pub-acc[open] .pub-acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.pub-acc-body { padding: 0 22px 22px; }
.pub-acc-body p { margin-top: 12px; color: var(--ink-2); line-height: 1.7; }
.pub-acc-body p:first-child { margin-top: 0; }

/* ---------- products ---------- */
.pub-products-intro { max-width: 820px; }
.pub-products-intro p { margin-top: 14px; color: var(--ink-2); line-height: 1.65; }
.pub-products { display: grid; gap: 24px; }
.pub-product { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 28px 24px; }
.pub-product > * { min-width: 0; }
@media (min-width: 960px) { .pub-product { grid-template-columns: 1.15fr .85fr; gap: 40px; padding: 40px 38px; align-items: center; } .pub-product--flip { grid-template-columns: .85fr 1.15fr; } .pub-product--flip .pub-product-copy { order: 2; } }
.pub-product::before { display: none; }
/* these blocks reuse the members'-area card style but are NOT one big link:
   no card-wide ::after overlay, buttons keep their own width */
.pub-product .btn::after { content: none; }
.pub-product .btn { width: auto; }
.pub-product h2 { margin-top: 18px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.pub-product .tool-tag { position: absolute; top: 24px; right: 24px; margin: 0; }
.pub-product .lead { margin-top: 12px; }
.pub-product-copy > p { margin-top: 12px; color: var(--ink-2); line-height: 1.65; font-size: 15.5px; }
.pub-product-copy > p.lead { font-size: 17px; }
.pub-aspects { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pub-aspects li { position: relative; padding-left: 28px; color: var(--ink-2); line-height: 1.55; font-size: 15.5px; }
.pub-aspects li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.pub-aspects li::after {
  content: "";
  position: absolute; left: 6px; top: 8px;
  width: 5px; height: 9px;
  border: solid var(--accent-deep); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* the three screenshots share one 4:3 frame (files are cropped to 4:3, width and height set) */
.pub-product-shot { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface-2); }
.pub-product-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ---------- contact ---------- */
.pub-contact { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .pub-contact { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }
.pub-contact-photo { margin-top: 26px; }

/* ---------- 404 ---------- */
.pub-404 { text-align: center; max-width: 640px; }
.pub-404 .ticker-chip { background: var(--gold-soft); color: var(--gold-text); border-color: var(--gold); }
.pub-404 .ticker-chip b { color: var(--gold-text); }
.pub-404 h1 { margin-top: 18px; font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.pub-404 .lead { margin-top: 10px; }
.pub-404 code { font-family: var(--mono); font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.pub-404 .pub-hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.pub-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); }
.pub-footer-inner { display: grid; grid-template-columns: 1fr; gap: 26px; padding-block: 40px 26px; }
@media (min-width: 860px) { .pub-footer-inner { grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; } }
.pub-footer-brand .brand-lockup { max-width: 280px; }
.pub-footer-brand p { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 34ch; }
.pub-footer-nav { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.pub-footer-nav a { padding: 6px 8px; }
.pub-footer-nav a:hover { background: var(--surface-2); color: var(--ink); }
.pub-footer-contact { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.pub-footer-contact a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s var(--ease), color .15s var(--ease); }
.pub-footer-contact a:hover { color: var(--gold-text); border-bottom-color: var(--gold); }
.pub-footer-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 16px 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .pub-card, .pub-acc, .pub-nav-burger span, .pub-acc-icon::before, .pub-acc-icon::after { transition: none; }
}

/* ---------- contact form: validation, states, honeypot ---------- */
/* The honeypot. display:none, not an off-screen 1x1 box: Chromium leaves a field
   that is not focusable out of the form it parses, so autofill never offers to
   fill it. Off-screen it stayed fillable, and Edge did fill it (26 September
   2026). The element also carries style="display:none" inline, so it is hidden
   even if this stylesheet does not load. A display:none input is still posted. */
.pub-hp { display: none; }
.pub-form .field { position: relative; }
.pub-form .field-err { display: block; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--bad); }
.pub-form .field-err[hidden] { display: none; }
.pub-form .has-error .input { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(194, 65, 12, .12); }
.pub-form .has-error > span { color: var(--bad); }
.pub-form-state { margin-top: 14px; }
.pub-form-msg { margin: 0; }
.pub-form-msg:focus { outline: none; }
.pub-form-msg .link { font-size: inherit; }
.pub-form .btn[disabled] { opacity: .7; cursor: progress; }
.pub-form .btn[disabled]:hover { box-shadow: 0 6px 16px -6px rgba(14, 21, 38, .55), inset 0 1px 0 rgba(255, 255, 255, .08); }
.pub-form .btn-busy[hidden], .pub-form .btn-label[hidden] { display: none; }
.pub-form legend { font-size: 13px; }

/* ---------- page backgrounds (20 September 2026): /products, /courses,
   /stock-market-101, /stock-market-201 - built like the home hero: a real
   picture absolutely positioned inside the head (it scrolls with the page;
   nothing is fixed, nothing moves at its own rate), a light scrim over it,
   the text on top. Light throughout. The rest of each page is the paper
   from site.css, as on the home page. ---------- */
.pub-page-head--image { isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); }
.pub-page-head--image::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pub-page-head--image .container { position: relative; }
/* the text of the two course pages sits in a near-white panel so its contrast
   never depends on the picture */
.pub-head-panel {
  position: relative;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px -14px rgba(14, 21, 38, .22), 0 1px 2px rgba(14, 21, 38, .05);
  padding: 24px 22px;
}
@media (min-width: 720px) { .pub-head-panel { padding: 32px 36px; } }
.pub-head-panel .eyebrow { margin-bottom: 8px; }

/* /courses: Alberto's Bull_Bear illustration (white ground, the animals on the
   right); the title sits directly on its empty left side */
.pub-page-head--courses { padding: 36px 0 0; min-height: 440px; display: flex; align-items: flex-start; }
.pub-page-head--courses .pub-page-head-photo img { object-position: 62% 100%; }
.pub-page-head--courses::before { background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .6) 34%, rgba(255, 255, 255, 0) 60%); }
@media (min-width: 900px) {
  .pub-page-head--courses { padding: 0; min-height: 460px; align-items: center; }
  .pub-page-head--courses .pub-page-head-photo img { object-position: 50% 68%; }
  .pub-page-head--courses::before { background: linear-gradient(90deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55) 34%, rgba(255, 255, 255, 0) 52%); }
  .pub-page-head--courses .pub-head-copy { padding-top: 44px; padding-bottom: 44px; }
}
@media (min-width: 1200px) { .pub-page-head--courses { min-height: 500px; } }

/* /products: Alberto's commissioned trading-office picture (desk and monitors
   on the right, open bright space on the left); the text sits over the open
   side, under a left-to-right scrim. On narrow screens a tighter crop with the
   text at the top over the sky and the desk below it. */
/* narrow screens: the text at the top on the head's own light ground, the
   phone crop (desk and monitors) as a full-width band under it - shown whole,
   never stretched (object-fit: cover, capped at 480 px tall) */
.pub-page-head--products { padding: 36px 0 min(83.34vw, 480px); background: linear-gradient(180deg, #fff, var(--bg)); }
.pub-page-head--products .pub-page-head-photo { inset: auto 0 0 0; height: min(83.34vw, 480px); }
.pub-page-head--products .pub-page-head-photo img { object-position: 50% 60%; }
.pub-page-head--products .pub-head-copy { padding-bottom: 28px; }
.pub-page-head--products .pub-products-intro { max-width: 620px; }
@media (min-width: 900px) {
  .pub-page-head--products { padding: 0; min-height: 520px; display: flex; align-items: center; background: var(--bg); }
  .pub-page-head--products .pub-page-head-photo { inset: 0; height: 100%; }
  .pub-page-head--products .pub-head-copy { padding-top: 56px; padding-bottom: 56px; }
  .pub-page-head--products .pub-page-head-photo img { object-position: 50% 45%; }
  .pub-page-head--products::before { background: linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .84) 48%, rgba(255, 255, 255, .4) 62%, rgba(255, 255, 255, 0) 76%); }
  .pub-page-head--products .pub-products-intro { max-width: 470px; }
}
@media (min-width: 1200px) {
  .pub-page-head--products { min-height: 560px; }
  .pub-page-head--products::before { background: linear-gradient(90deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .84) 44%, rgba(255, 255, 255, .55) 60%, rgba(255, 255, 255, 0) 76%); }
  .pub-page-head--products .pub-products-intro { max-width: 560px; }
}
/* /stock-market-101: towers of a financial district; /stock-market-201: a
   candlestick chart on a tablet */
.pub-page-head--101, .pub-page-head--201 { padding: 36px 0 84px; }
.pub-page-head--101::before { background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .38) 50%, rgba(255, 255, 255, .3)); }
.pub-page-head--201::before { background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .34) 50%, rgba(255, 255, 255, .26)); }
.pub-page-head--101 .pub-page-head-photo img { object-position: 50% 50%; }
.pub-page-head--201 .pub-page-head-photo img { object-position: 50% 35%; }
@media (min-width: 900px) {
  .pub-page-head--101, .pub-page-head--201 { padding: 48px 0 120px; }
  .pub-page-head--101::before { background: linear-gradient(90deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .4) 55%, rgba(255, 255, 255, .26)); }
  .pub-page-head--201::before { background: linear-gradient(90deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .36) 55%, rgba(255, 255, 255, .22)); }
  .pub-page-head--101 .pub-head-panel, .pub-page-head--201 .pub-head-panel { max-width: 960px; }
}

/* ---------- home hero: the two offers (20 September 2026) - courses and
   tools side by side inside the first screenful, each with its button; the
   hero picture and scrim above are the approved ones and are untouched. On
   phones the hero's top padding is tighter so both offers start on screen. */
.pub-home .pub-hero { padding-top: 40px; }
@media (min-width: 900px) { .pub-home .pub-hero { padding-top: 72px; } }
.pub-home .pub-hero-copy h1 { font-size: clamp(32px, 4.6vw, 56px); }
.pub-home .pub-hero-copy .lead { margin-top: 14px; max-width: 640px; }
.pub-hero-offers { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; max-width: 980px; }
@media (min-width: 720px) { .pub-hero-offers { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; align-items: stretch; } }
.pub-offer {
  position: relative;
  display: flex; flex-direction: column;
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
@media (min-width: 720px) { .pub-offer { padding: 22px 24px 24px; } }
.pub-offer:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .38); }
.pub-offer-tag { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #f5d36b; }
.pub-offer h2 { margin-top: 6px; font-size: clamp(19px, 2vw, 24px); font-weight: 800; color: #fff; line-height: 1.2; }
.pub-offer p { margin-top: 8px; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.55; }
.pub-offer .pub-hero-actions { margin-top: auto; padding-top: 14px; gap: 10px; }
.pub-offer .btn-lg { min-height: 46px; padding: 0 18px; font-size: 15px; }
.pub-hero-login { display: inline-block; margin-top: 18px; padding: 7px 14px; border-radius: 999px; background: rgba(14, 21, 38, .68); border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .88); font-size: 14.5px; }
.pub-hero-login .link { color: #fff; font-size: inherit; border-bottom: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pub-hero-login .link:hover { color: #f5d36b; }
/* the three tools as their own row beneath the two offer cards (20 September 2026): a
   row with a video is a button that opens the shared video frame; the others are plain text */
.pub-offer-tools { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; max-width: 980px; }
@media (min-width: 720px) { .pub-offer-tools { gap: 10px; margin-top: 16px; } }
@media (min-width: 1024px) { .pub-offer-tools { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.pub-offer-tools li { display: flex; }
.pub-offer-tools li .pub-offer-tool { height: 100%; }
.pub-offer-tools li { --icon-fill: rgba(255, 255, 255, .18); --icon-accent: #f5d36b; }
.pub-offer-tools li.tool-card--tracker { --icon-accent: #6ee7b7; }
.pub-offer-tools li.tool-card--journal { --icon-accent: #93b4ff; }
.pub-offer-tool {
  display: flex; align-items: center; gap: 12px;
  width: 100%; margin: 0; padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff; font: inherit; text-align: left;
  -webkit-appearance: none; appearance: none;
}
button.pub-offer-tool { cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
button.pub-offer-tool:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .38); }
button.pub-offer-tool:focus-visible { outline: 3px solid rgba(201, 162, 39, .6); outline-offset: 3px; }
.pub-offer-tool .mini { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; }
.pub-offer-tool .mini svg { width: 26px; height: 26px; }
.pub-offer-tool-text { flex: 1; min-width: 0; }
.pub-offer-tool-text b { display: block; font-size: 14.5px; }
.pub-offer-tool-text span { display: block; font-size: 13px; color: rgba(255, 255, 255, .82); }
.pub-offer-play { flex: none; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.pub-offer-play svg { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); transition: background-color .2s var(--ease); }
.pub-offer-play em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: #f5d36b; }
button.pub-offer-tool:hover .pub-offer-play svg { background: var(--gold); }
/* the badge alone where the row is narrow: small phones, and the two-column hero between 720 and 1023 px */
@media (max-width: 479px) { .pub-offer-play em { display: none; } }
/* in the three-column row (720 px and up) each item is a small grid: icon | text | badge, the
   "Watch the video" label under the text, so the Journal item is the same shape as the others */
@media (min-width: 720px) {
  .pub-offer-tool { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-items: center; }
  .pub-offer-tool .mini { grid-row: 1 / 3; grid-column: 1; }
  .pub-offer-tool-text { grid-row: 1; grid-column: 2; }
  .pub-offer-play { display: contents; }
  .pub-offer-play svg { grid-row: 1 / 3; grid-column: 3; }
  .pub-offer-play em { grid-row: 2; grid-column: 2; }
}
.pub-offer-tool-text span, .pub-offer-tool-text b { overflow-wrap: anywhere; }
.pub-about-visual { position: relative; }

/* /courses: a one-line lead at the top of the courses list (on the paper, not on the picture) */
.pub-courses-intro { max-width: 62ch; }

/* /member-area (20 September 2026): the head only (Login / Get Access), built like
   /stock-market-101 - a real picture inside the head under a light scrim, the text
   in the near-white panel */
.pub-page-head--member { padding: 36px 0 84px; }
.pub-page-head--member::before { background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .4) 50%, rgba(255, 255, 255, .3)); }
.pub-page-head--member .pub-page-head-photo img { object-position: 50% 45%; }
.pub-member-panel { max-width: 720px; }
.pub-member-panel .lead { margin-top: 12px; }
.pub-member-panel p:not(.lead) { margin-top: 10px; color: var(--ink-2); line-height: 1.6; }
@media (min-width: 900px) {
  .pub-page-head--member { padding: 48px 0 120px; min-height: 480px; display: flex; align-items: center; }
  .pub-page-head--member::before { background: linear-gradient(90deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .42) 55%, rgba(255, 255, 255, .28)); }
}

/* ---------- product videos (20 September 2026): the screenshot frame of an
   item with a video is a button with a play badge; one shared frame (a fixed overlay) plays
   it over the page. The frame keeps the approved 4:3 treatment. The hover
   rule holds: the button itself never gets transform or filter. ---------- */
.pub-product--video { cursor: pointer; }
.pub-video-btn svg { width: 18px; height: 18px; }
button.pub-product-shot { display: block; width: 100%; padding: 0; margin: 0; position: relative; cursor: pointer; font: inherit; color: var(--ink); text-align: left; -webkit-appearance: none; appearance: none; }
button.pub-product-shot picture, button.pub-product-shot img { display: block; }
button.pub-product-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 21, 38, 0) 55%, rgba(14, 21, 38, .35)); pointer-events: none; transition: opacity .25s var(--ease); }
.pub-play {
  position: absolute; left: 50%; top: 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 12px 30px -8px rgba(14, 21, 38, .45), 0 0 0 8px rgba(255, 255, 255, .28);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pub-play svg { margin-left: 4px; }
.pub-play-label { position: absolute; left: 16px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(14, 21, 38, .78); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
button.pub-product-shot:hover .pub-play, button.pub-product-shot:focus-visible .pub-play { background: var(--gold); box-shadow: 0 14px 34px -8px rgba(14, 21, 38, .5), 0 0 0 10px rgba(201, 162, 39, .28); }
button.pub-product-shot:hover::after { opacity: .85; }
button.pub-product-shot:focus-visible { outline: 3px solid rgba(201, 162, 39, .6); outline-offset: 3px; }

.pub-video-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; color: var(--ink); }
.pub-video-modal[hidden] { display: none; }
.pub-video-backdrop { position: absolute; inset: 0; background: rgba(14, 21, 38, .82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pub-video-frame { position: relative; width: min(96vw, 1120px); background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
.pub-video-msg { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 14px; padding: 24px; text-align: center; background: rgba(14, 21, 38, .94); }
.pub-video-msg[hidden] { display: none; }
.pub-video-msg p { color: #fff; font-size: 16px; line-height: 1.5; max-width: 44ch; }
.pub-video-msg .btn { justify-self: center; }
.pub-video-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.pub-video-title { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.pub-video-close {
  flex: none; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.pub-video-close:hover { background: var(--surface-2); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .25); }
.pub-video-close:focus-visible { outline: 3px solid rgba(201, 162, 39, .6); outline-offset: 2px; }
.pub-video-stage { position: relative; aspect-ratio: 16 / 9; background: #0e1526; }
.pub-video { display: block; width: 100%; height: 100%; background: #0e1526; }
.pub-video-poster { position: absolute; inset: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.pub-video-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pub-video-modal.is-playing .pub-video-poster { opacity: 0; }
@media (max-width: 719px) { .pub-video-modal { padding: 8px; } .pub-video-frame { width: 100%; border-radius: 12px; } .pub-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; } .pub-play-label { left: 10px; bottom: 10px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .pub-video-poster, .pub-play, .pub-video-close, .pub-offer { transition: none; } }
/* small phones: the chip goes, the title and lead tighten, so the courses
   offer and its button sit inside the first screen at 320 x 568 */
@media (max-width: 479px) {
  .pub-home .pub-hero { padding-top: 10px; }
  .pub-home .pub-hero-copy .ticker-chip { display: none; }
  .pub-home .pub-hero-copy h1 { font-size: 24px; line-height: 1.08; }
  .pub-home .pub-hero-copy .lead { margin-top: 6px; font-size: 13.5px; line-height: 1.42; }
  .pub-hero-offers { margin-top: 10px; gap: 6px; }
  .pub-offer { padding: 8px 12px 10px; }
  .pub-offer-tag { font-size: 10.5px; }
  .pub-offer h2 { font-size: 17px; margin-top: 2px; line-height: 1.15; }
  .pub-offer p { font-size: 13px; line-height: 1.4; margin-top: 3px; }
  .pub-offer .pub-hero-actions { padding-top: 6px; }
  .pub-offer .btn-lg { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
  .pub-offer-tools { margin-top: 8px; gap: 6px; }
}
/* larger phones and small tablets (480-719 px): the cards stack; keep them tight too */
@media (min-width: 480px) and (max-width: 719px) {
  .pub-home .pub-hero { padding-top: 28px; }
  .pub-hero-offers { margin-top: 16px; gap: 10px; }
  .pub-offer { padding: 14px 18px 16px; }
  .pub-offer .pub-hero-actions { padding-top: 10px; }
}
