/* ==========================================================================
   AffiliateBlueprint — site.css

   Blocks marked "client design" come from the supplied index.html and are kept
   as supplied. Where this file changes them, a comment says exactly what and why.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  /* client design: brand palette */
  --navy: #07152e;
  --navy2: #0c2144;
  --blue: #356dff;
  --cyan: #55d6d1;
  --ink: #14213d;
  --paper: #f6f8fc;
  --line: #e4e9f2;
  --gold: #ffcb69;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(6, 20, 47, 0.13);
  /* additions: darker blue for text on light backgrounds (the brand blue is 4.4:1 on white) */
  --blue-ink: #2958d6;
  --muted: #5d6a83;
  --line-strong: #c9d3e6;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1140px, calc(100% - 40px)); margin: auto; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .offer :focus-visible, .sheet :focus-visible, footer :focus-visible { outline-color: var(--cyan); }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* --- top bar and header (client design, plus Log in and a mobile menu) --- */
.topbar { background: #050d1e; color: #dbe6ff; font-size: 13px; text-align: center; padding: 9px 16px; }
.topbar strong { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 233, 242, 0.85);
}
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Changed from the client design: the "AB" mark and text wordmark are replaced by the
   supplied logo, cut out of its black background (navy wordmark here, white in the footer). */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; height: 40px; width: auto; }
.navlinks { display: flex; align-items: center; gap: 27px; font-size: 14px; font-weight: 650; color: #4b5871; }
.navlinks a:hover, .nav-login:hover { color: var(--blue-ink); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-login { font-size: 14px; font-weight: 650; color: #4b5871; }

.menu { display: none; }
.menu-toggle {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; border: 1px solid var(--line-strong); background: #fff;
}
.menu-toggle::-webkit-details-marker { display: none; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu[open] .menu-bars { background: transparent; }
.menu[open] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu-bars::after { top: 0; transform: rotate(-45deg); }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(6, 20, 47, 0.08);
  padding: 8px 20px 22px; display: grid;
}
.menu-panel a:not(.btn) { padding: 14px 4px; font-weight: 650; border-bottom: 1px solid var(--line); }
.menu-panel .btn { margin-top: 16px; }

/* --- buttons (client design) --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px;
  padding: 14px 21px; font-size: 14px; font-weight: 800; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #356dff, #6248ef); box-shadow: 0 10px 24px #356dff3b; }
.btn-light { color: var(--navy); background: #fff; }

/* ==========================================================================
   HERO — client design, kept as supplied.
   Only the three agreed changes are made, each commented below:
   (1) the right-hand image becomes a video, (2) the original image sits below it,
   (3) the image keeps its natural proportions and the floating card is anchored to the video.
   The hero h1 is scoped to .hero so it does not affect headings elsewhere.
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 85% 12%, #24488c 0, transparent 30%), linear-gradient(125deg, #06132a 0%, #0b1f42 58%, #132b58 100%);
  padding: 82px 0 88px;
}
.hero:before {
  content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid #ffffff12; border-radius: 50%;
  right: -140px; bottom: -240px; box-shadow: 0 0 0 55px #ffffff06, 0 0 0 110px #ffffff04;
}
.hero-grid { display: grid; grid-template-columns: 1.03fr 0.97fr; align-items: center; gap: 58px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px;
  background: #ffffff12; border: 1px solid #ffffff20; color: #d7e4ff; font-size: 12px; font-weight: 800;
  letter-spacing: 1.1px; text-transform: uppercase;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px #55d6d126; }
.hero h1 { font-size: clamp(42px, 5.1vw, 66px); line-height: 1.05; letter-spacing: -2.8px; margin: 22px 0 20px; font-weight: 900; }
.hero h1 .accent { color: var(--cyan); }
.hero-copy { font-size: 18px; max-width: 570px; color: #d2ddf3; margin: 0 0 27px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.microproof { display: flex; align-items: center; gap: 11px; margin-top: 25px; font-size: 13px; color: #c4d1ea; }
.avatars { display: flex; padding-left: 5px; }
.avatars span {
  margin-left: -5px; width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center;
  background: #dbeafe; color: #17366e; border: 2px solid #0b1f42; font-size: 11px; font-weight: 900;
}
.hero-visual { position: relative; }
.visual-frame {
  padding: 12px; border: 1px solid #ffffff2b; border-radius: 25px; background: #ffffff0c;
  box-shadow: 0 30px 80px #0005; transform: rotate(1deg);
}
/* (3) was: height 330px + object-fit cover, which cropped the slide's text once the image moved. */
.visual-frame img { width: 100%; height: auto; border-radius: 16px; background: #000; display: block; }
.floating-card {
  position: absolute; left: -24px; bottom: -27px; background: #fff; color: var(--ink); padding: 15px 18px;
  border-radius: 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
}
.floating-icon { height: 42px; width: 42px; border-radius: 12px; background: #e9f9f8; display: grid; place-items: center; font-size: 21px; }
.floating-card strong { display: block; font-size: 14px; }
.floating-card small { display: block; color: var(--muted); font-size: 12px; }

/* (1) the video, inside the same frame the image used */
.intro-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; object-fit: contain; }
.intro-video--pending {
  display: grid; place-items: center; text-align: center; color: #c4d1ea; font-size: 15px;
  background: #050d1e; border: 1px dashed #ffffff30;
}
.intro-video--pending p { margin: 0; }
/* (2) the original image, below the video.
   (3) the floating card was anchored to the bottom-left of the frame. Over a video that would cover the
   progress bar, so it now sits on the seam between video and image: mostly in the gap, just touching the
   image's top-left corner. Same card, same styling. */
.image-wrap { position: relative; margin-top: 88px; }
.image-wrap .floating-card { top: -62px; bottom: auto; z-index: 1; }

/* --- shared section pieces --- */
.section { padding: 96px 0; }
.section--paper { background: var(--paper); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head--tight { margin-bottom: 28px; }
.kicker { display: block; font-size: 14px; font-weight: 650; color: var(--blue-ink); margin: 0 0 10px; }
h2 {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(32px, 4vw, 46px); line-height: 1.1;
  letter-spacing: -0.015em; margin: 0 0 16px; color: var(--navy);
}
.section-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 56ch; }

/* --- how it works: a route, because the three steps really are a sequence --- */
.route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0; padding: 0; list-style: none; }
.route-step { position: relative; }
.route-node {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--blue); background: #fff;
  color: var(--blue-ink); display: grid; place-items: center; position: relative; z-index: 1;
}
.route-node svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.route-step:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: 68px; right: -28px; border-top: 2px dashed var(--line-strong); }
.route-step h3 { font-family: var(--font-serif); font-weight: 500; font-size: 25px; line-height: 1.2; color: var(--navy); margin: 22px 0 8px; }
.route-step p { margin: 0; color: var(--muted); max-width: 34ch; }

/* --- what's inside: the one deliberate set piece, a blueprint sheet --- */
.inside { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.sheet {
  background-color: #0a1b39;
  background-image:
    linear-gradient(rgba(85, 214, 209, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 214, 209, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(85, 214, 209, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 214, 209, 0.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  border: 1px solid #1d3a6b; border-radius: 24px; padding: 32px; color: #fff;
}
.sheet-tag {
  display: inline-block; font-size: 13px; font-weight: 650; color: #bcd0f4;
  border: 1px solid #ffffff30; border-radius: 99px; padding: 5px 12px;
}
.sheet h3 { font-family: var(--font-serif); font-weight: 500; font-size: 32px; line-height: 1.15; margin: 16px 0 10px; color: #fff; }
.sheet p { color: #d1def5; font-size: 15px; margin: 0; max-width: 40ch; }
.sheet-drawing { display: block; width: 100%; height: auto; margin: 24px 0 6px; }
.sheet-labels text { font-family: var(--font-sans); font-size: 13px; }
.sheet .sheet-caption { font-size: 13px; color: #9fb4dc; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line-strong); }
.checklist li:last-child { border-bottom: 1px solid var(--line-strong); }
.tick { width: 28px; height: 28px; border-radius: 50%; background: #e6fbf5; color: #07896e; display: grid; place-items: center; }
.tick svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.checklist h3 { font-family: var(--font-serif); font-weight: 500; font-size: 21px; line-height: 1.25; margin: 0 0 4px; color: var(--navy); }
.checklist p { margin: 0; color: var(--muted); font-size: 15px; max-width: 52ch; }

/* --- get access (client design: navy panel with a white card) --- */
.offer {
  background: linear-gradient(130deg, #08152d, #102c5d); color: #fff; border-radius: 28px; padding: 52px;
  display: grid; grid-template-columns: 1fr 0.8fr; gap: 48px; align-items: center; box-shadow: var(--shadow);
}
.offer h2 { color: #fff; margin: 16px 0 14px; }
.offer p { color: #d1def5; margin: 0; max-width: 46ch; }
.offer-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: #edf4ff; font-size: 15px; }
.offer-list li:before { content: "✓"; color: var(--cyan); font-weight: 900; margin-right: 10px; }
.access-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 30px; text-align: center; }
.access-label { color: var(--blue-ink); font-size: 14px; font-weight: 650; }
.access-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 30px; line-height: 1.15; margin: 6px 0; color: var(--navy); }
.access-card p { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.access-card .btn { width: 100%; }
.access-card small { display: block; margin-top: 14px; color: var(--muted); font-size: 13px; }
.access-ask { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 650; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* --- FAQ --- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.faq-layout .section-head { margin: 0; }
.faq details { border-top: 1px solid var(--line-strong); padding: 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  font-weight: 650; font-size: 17px; color: var(--navy); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--blue-ink); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 60ch; }
.faq details a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* --- final call to action --- */
.final-cta { text-align: center; background: #eaf0ff; padding: 80px 20px; }
.final-cta p { color: var(--muted); margin: 0 auto 26px; max-width: 56ch; font-size: 18px; }

/* --- footer (client design) --- */
footer { background: #050d1e; color: #b8c6e0; padding: 33px 0; font-size: 13px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .brand-logo { height: 34px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.disclaimer { font-size: 12px; color: #8a9bbb; max-width: 700px; margin: 18px 0 0; }

/* --- legal and status pages --- */
.legal { padding: 80px 0 110px; }
.legal-wrap { width: min(760px, calc(100% - 40px)); }
.legal h1 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 22px; color: var(--navy); }
.legal p { max-width: 66ch; color: #34415c; font-size: 17px; }
.draft-note {
  border-left: 3px solid var(--gold); background: #fff8e8; padding: 12px 16px; border-radius: 0 10px 10px 0;
  font-weight: 650; color: #6b4b00 !important; font-size: 15px !important;
}
.back-link { color: var(--blue-ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   MEMBER PAGES — log in, register, package choice, account.
   Same palette and type as the landing page. Ruled lists and plain panels, no card grids.
   ========================================================================== */
.member { padding: 72px 0 110px; }
.member-wrap { width: min(1040px, calc(100% - 40px)); }
.member h1 {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 48px); line-height: 1.1;
  letter-spacing: -0.015em; margin: 0 0 14px; color: var(--navy);
}
.member h2 { font-size: 24px; line-height: 1.2; letter-spacing: normal; margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 54ch; margin: 0; }
.fine { font-size: 14px; color: var(--muted); margin: 10px 0; max-width: 60ch; }
.member a:not(.btn):not(.back-link) { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* header: Log out is a form button that must look like the links beside it */
.inline-form { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 650; color: #4b5871; cursor: pointer; }
.linklike:hover { color: var(--blue-ink); }
.menu-panel .inline-form { display: block; }
.menu-panel .linklike { width: 100%; text-align: left; padding: 14px 4px; font-size: inherit; border-bottom: 1px solid var(--line); }

/* buttons added for these pages */
.btn-block { width: 100%; }
.btn-quiet { background: #fff; color: var(--navy); border: 1px solid var(--line-strong); }
.btn-quiet:hover { border-color: var(--blue-ink); }

/* sign-in pages: intro, form panel, and the "what you can see" ladder (the panel stays first on phones) */
.auth-grid {
  width: min(1040px, calc(100% - 40px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  grid-template-areas: "intro panel" "ladder panel"; column-gap: 72px; row-gap: 40px; align-items: start;
}
.auth-intro { grid-area: intro; }
.auth-grid > .panel { grid-area: panel; }
.auth-grid > .ladder { grid-area: ladder; }
.panel { background: #fff; border: 1px solid var(--line-strong); border-radius: 20px; padding: 32px; }
.panel-foot { margin: 20px 0 0; font-size: 15px; color: var(--muted); }
.panel-foot + .panel-foot { margin-top: 8px; }

/* forms */
.field { margin: 0 0 22px; }
.field label { display: block; font-weight: 650; font-size: 15px; margin: 0 0 6px; color: var(--navy); }
.field input[type="text"], .field input[type="email"], .field input[type="password"] {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff;
}
.field input[aria-invalid="true"] { border-color: #b42318; }
.field-hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.field-error { font-size: 14px; font-weight: 650; color: #b42318; margin: 6px 0 0; }
.field--check { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-ink); }
.field--check label { margin: 0; font-weight: 500; color: var(--ink); }
.field--check .field-hint, .field--check .field-error { grid-column: 2; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 76px !important; }
.reveal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0;
  padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 700; color: var(--blue-ink); cursor: pointer; border-radius: 8px;
}

/* messages */
.notice {
  margin: 0 0 22px; padding: 12px 16px; border-left: 3px solid var(--blue-ink); background: #eef3ff;
  border-radius: 0 10px 10px 0; font-size: 15px; font-weight: 600; color: var(--navy);
}
.notice--good { border-left-color: #0a7a55; background: #e9f7f1; }
.notice--warn { border-left-color: var(--gold); background: #fff8e8; color: #6b4b00; }
.notice--error { border-left-color: #b42318; background: #fdeceb; color: #7a1d14; }

/* progress: three steps, state shown in words as well as colour */
.progress { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; }
.progress-step { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding-top: 16px; border-top: 3px solid var(--line-strong); align-items: start; }
.progress-step.is-done { border-top-color: var(--navy); }
.progress-step.is-current { border-top-color: var(--blue-ink); }
.progress-num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px;
  border: 1.5px solid var(--line-strong); color: var(--muted); background: #fff;
}
.is-done .progress-num { background: var(--navy); border-color: var(--navy); color: #fff; }
.is-current .progress-num { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.progress-text { display: grid; line-height: 1.35; }
.progress-text strong { font-size: 15px; color: var(--navy); }
.progress-text span { font-size: 14px; color: var(--muted); }

/* what is public, what needs an account, what needs a purchase */
.ladder h2 { font-size: 22px; margin: 0 0 8px; }
.ladder ol { list-style: none; margin: 0; padding: 0; }
.ladder li { padding: 18px 0 18px 16px; border-top: 1px solid var(--line-strong); border-left: 3px solid transparent; }
.ladder li:last-child { border-bottom: 1px solid var(--line-strong); }
.ladder li[aria-current] { border-left-color: var(--blue-ink); }
.ladder h3 { font-family: var(--font-serif); font-weight: 500; font-size: 19px; line-height: 1.25; margin: 0 0 4px; color: var(--navy); }
.ladder p { margin: 0; font-size: 15px; color: var(--muted); max-width: 52ch; }
.ladder-here, .pkg-tag {
  display: inline-block; font-family: var(--font-sans); font-size: 12px; font-weight: 750; line-height: 1.5;
  color: #fff; background: var(--blue-ink); padding: 1px 9px; border-radius: 999px; vertical-align: middle; margin-left: 8px;
}

/* package choice: a ruled list of radio rows */
.pkg-list { border: 0; padding: 0; margin: 0; }
.pkg-list legend { font-weight: 700; font-size: 16px; color: var(--navy); padding: 0; margin: 0 0 10px; }
.pkg {
  display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; padding: 22px 18px 22px 14px; cursor: pointer;
  border-top: 1px solid var(--line-strong); border-left: 3px solid transparent;
}
.pkg:last-of-type { border-bottom: 1px solid var(--line-strong); }
.pkg:hover, .pkg:has(input:checked) { background: var(--paper); }
.pkg:has(input:checked) { border-left-color: var(--blue-ink); }
.pkg input { width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--blue-ink); }
.pkg-body { display: grid; gap: 4px; }
.pkg-name { font-family: var(--font-serif); font-size: 26px; font-weight: 500; line-height: 1.15; color: var(--navy); }
.pkg-tag { background: var(--navy); }
.pkg-price { font-size: 15px; font-weight: 600; color: var(--muted); }
.pkg-summary { font-size: 15px; color: #34415c; max-width: 56ch; }
.pkg-benefits { display: grid; gap: 6px; margin-top: 8px; font-size: 15px; color: #34415c; }
.pkg-benefits span::before { content: "\2713"; color: var(--blue-ink); font-weight: 900; margin-right: 10px; }
.pkg-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 26px 0 0; }
.pkg-clear { margin: 18px 0 0; }

.plain-note { margin: 28px 0; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; max-width: 760px; }
.plain-note h2 { font-size: 20px; margin: 0 0 6px; }
.plain-note p { margin: 0 0 10px; font-size: 15px; color: #34415c; max-width: 64ch; }
.plain-note p:last-child { margin-bottom: 0; }
.plain-note--rule { background: none; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 24px 0 0; margin-top: 40px; }

/* account */
.member-head { margin: 0 0 28px; }
.member-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 64px; align-items: start; }
.member-side .ladder { position: sticky; top: 108px; }
.block { padding: 26px 0; border-top: 1px solid var(--line-strong); }
.block p { margin: 0 0 12px; max-width: 62ch; }
.facts { margin: 0 0 14px; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.status { display: inline-block; font-size: 14px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #fff8e8; color: #6b4b00; border: 1px solid #f0d9a0; }
.status--yes { background: #e9f7f1; color: #0a5a41; border-color: #b7e2d1; }
.plain-list { margin: 0 0 12px; padding-left: 20px; }
.logout-row { margin: 8px 0 0; padding-top: 26px; border-top: 1px solid var(--line-strong); }

/* --- responsive --- */
@media (max-width: 850px) {
  .navlinks, .nav-actions { display: none; }
  .menu { display: block; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  /* hero (client design, unchanged) */
  .hero { padding: 62px 0 74px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 650px; }
  .floating-card { left: 8px; }
  /* sections */
  .inside, .faq-layout, .offer { grid-template-columns: 1fr; }
  .inside { gap: 40px; }
  .faq-layout { gap: 32px; }
  .offer { padding: 32px; gap: 32px; }
  .route { grid-template-columns: 1fr; gap: 36px; }
  .route-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
  .route-step h3 { margin: 4px 0 6px; }
  .route-step:not(:last-child)::after { top: 64px; bottom: -30px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed var(--line-strong); }
  /* member pages */
  .member { padding: 52px 0 80px; }
  .auth-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "panel" "ladder"; row-gap: 32px; }
  .member-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .member-side .ladder { position: static; }
}
@media (max-width: 640px) {
  .progress { grid-template-columns: 1fr; row-gap: 0; }
  .progress-step { padding: 14px 0; border-top: 1px solid var(--line-strong); }
  .progress-step.is-done, .progress-step.is-current { border-top-color: var(--line-strong); }
  .facts div { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  .wrap { width: min(100% - 28px, 1140px); }
  .nav { height: 66px; }
  .brand-logo { height: 34px; }
  /* hero (client design, unchanged except the image gap) */
  .hero { padding: 48px 0 65px; }
  .hero h1 { letter-spacing: -1.8px; }
  .hero-copy { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .floating-card { padding: 11px; }
  .image-wrap { margin-top: 80px; }
  .image-wrap .floating-card { top: -54px; }
  /* sections */
  .section-head--tight { margin-bottom: 20px; }
  .offer { padding: 26px 22px; }
  .access-card { padding: 24px; }
  .sheet { padding: 24px; }
  .legal { padding: 56px 0 80px; }
  .panel { padding: 24px 20px; }
  .pkg { padding: 18px 10px 18px 10px; column-gap: 12px; }
  .pkg-name { font-size: 23px; }
  .pkg-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover { transform: none; }
}

/* ==========================================================================
   MEMBER DASHBOARD, LEARNING CENTRE, SETTINGS AND ADMINISTRATION (Phase 4).
   Built on the member-page language above: serif headings, ruled lists, plain panels.
   The one place that gets extra care is the lesson page, because reading is the product.
   ========================================================================== */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.member code { font-size: 0.92em; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* member area navigation: text links on a rule, the current page underlined */
.member-nav {
  display: flex; gap: 26px; margin: -24px 0 36px; border-bottom: 1px solid var(--line-strong);
  overflow-x: auto; scrollbar-width: none;
}
.member-nav::-webkit-scrollbar { display: none; }
.member .member-nav a:not(.btn) {
  flex: none; padding: 14px 0 12px; font-size: 15px; font-weight: 650; color: #4b5871; text-decoration: none;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.member .member-nav a:not(.btn):hover { color: var(--blue-ink); }
.member .member-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--blue-ink); }

.subnav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -14px 0 26px; }
.member .subnav a:not(.btn) { font-size: 14px; font-weight: 650; color: var(--muted); text-decoration: none; padding: 4px 0; }
.member .subnav a:not(.btn):hover { color: var(--blue-ink); }
.member .subnav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--blue-ink); }

.crumb { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.member .crumb a:not(.btn) { font-weight: 650; }

.member h3 { font-family: var(--font-serif); font-weight: 500; color: var(--navy); }

/* getting started: a real sequence, so a ruled, ordered list with the next step marked */
.steps { list-style: none; margin: 4px 0 0; padding: 0; }
.step {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center;
  padding: 18px 0 18px 16px; border-top: 1px solid var(--line-strong); border-left: 3px solid transparent;
}
.step:last-child { border-bottom: 1px solid var(--line-strong); }
.step.is-next { border-left-color: var(--blue-ink); background: var(--paper); }
.step h3 { font-size: 21px; line-height: 1.25; margin: 0 0 4px; }
.step p { margin: 0; font-size: 15px; color: #34415c; max-width: 56ch; }
.step-state, .step-flag {
  display: inline-block; font-family: var(--font-sans); font-size: 12px; font-weight: 750; line-height: 1.5;
  padding: 1px 9px; border-radius: 999px; vertical-align: middle; margin-left: 6px;
}
.step-state--done { background: #e9f7f1; color: #0a5a41; border: 1px solid #b7e2d1; }
.step-state--todo { background: #fff8e8; color: #6b4b00; border: 1px solid #f0d9a0; }
.step-state--wait { background: var(--paper); color: var(--muted); border: 1px solid var(--line-strong); }
.step-flag { background: var(--navy); color: #fff; }
.step-cta { white-space: nowrap; }

/* course lists and progress */
.course-list { list-style: none; margin: 0 0 18px; padding: 0; }
.course-list > li { padding: 18px 0; border-top: 1px solid var(--line-strong); }
.course-list > li:last-child { border-bottom: 1px solid var(--line-strong); }
.course-list h3 { font-size: 22px; line-height: 1.25; margin: 0 0 4px; }
.member .course-list h3 a:not(.btn) { color: var(--navy); text-decoration: none; }
.member .course-list h3 a:not(.btn):hover { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 4px; }
.course-list p { margin: 0 0 8px; max-width: 62ch; font-size: 15.5px; color: #34415c; }
.course-list p.fine { color: var(--muted); }
.course-list--quiet h3 { font-size: 19px; }
.course-notice, .draft-note + .course-progress { margin-top: 0; }
.course-notice { border-left: 3px solid var(--gold); background: #fff8e8; padding: 8px 12px; border-radius: 0 10px 10px 0; font-size: 14px !important; color: #6b4b00 !important; }
.course-progress { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; font-size: 14px; color: var(--muted); }
progress { appearance: none; -webkit-appearance: none; width: min(300px, 100%); height: 10px; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--blue-ink); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--blue-ink); border-radius: 999px; }
.sub-title { font-size: 20px; margin: 30px 0 4px; }

/* side column on the dashboard */
.side-block h2 { font-size: 22px; margin: 0 0 10px; }
.member-side .side-block { position: sticky; top: 108px; }
.facts--compact div { grid-template-columns: 1fr; gap: 2px; } /* label above value: long email addresses get the full width */
.facts--wide div { grid-template-columns: 230px 1fr; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { border-top: 1px solid var(--line); }
.member .side-links a:not(.btn) { display: block; padding: 11px 0; font-weight: 650; font-size: 15px; }

/* lessons in a course: numbered, because the order is the point */
.member-wrap { counter-reset: lesson; } /* lessons are numbered through the whole course, matching "Lesson 3 of 8" on the lesson page */
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li {
  counter-increment: lesson; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 13px 0 13px 40px; border-top: 1px solid var(--line); position: relative;
}
.lesson-list li::before { content: counter(lesson); position: absolute; left: 0; top: 13px; width: 26px; text-align: right; color: var(--muted); font-weight: 650; font-size: 15px; }
.lesson-list li:first-child { border-top: 0; }
.member .lesson-list a:not(.btn) { font-weight: 650; font-size: 17px; text-decoration: none; color: var(--navy); }
.member .lesson-list a:not(.btn):hover { color: var(--blue-ink); text-decoration: underline; }
.lesson-list .is-done::before { content: "\2713"; color: #0a7a55; }
.lesson-meta { font-size: 14px; color: var(--muted); }

/* a lesson: set for reading */
.lesson { max-width: 44rem; }
.lesson-head h1 { margin-bottom: 8px; }
.lesson-head .lesson-meta { margin: 0 0 14px; }
.lesson-body { font-family: var(--font-serif); font-size: 20px; line-height: 1.7; color: #17233d; margin: 28px 0 8px; max-width: 36em; }
.lesson-body p { margin: 0 0 1.1em; }
.lesson-body h2 { font-family: var(--font-serif); font-weight: 500; font-size: 28px; line-height: 1.2; color: var(--navy); margin: 1.9em 0 0.5em; }
.lesson-body ul, .lesson-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.lesson-body li { margin: 0.45em 0; padding-left: 0.2em; }
.lesson-body li::marker { color: var(--blue-ink); font-weight: 700; }
.lesson-body strong { font-weight: 650; color: var(--navy); }
.lesson-note {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: #34415c; background: var(--paper);
  border-left: 3px solid var(--blue-ink); border-radius: 0 12px 12px 0; padding: 14px 18px;
}
.lesson-video { display: block; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; margin: 18px 0 8px; }
.lesson-download { margin: 18px 0 8px; }
.lesson-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 38px 0 0; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.lesson-progress .step-state { margin: 0; }
.lesson-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px 0 0; }
.member .lesson-pager a:not(.btn) {
  display: block; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 14px; text-decoration: none;
  color: var(--navy); font-weight: 650; font-size: 16px; line-height: 1.35;
}
.member .lesson-pager a:not(.btn):hover { border-color: var(--blue-ink); background: var(--paper); }
.lesson-pager a span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.pager-next { text-align: right; grid-column: 2; }

/* settings forms */
.settings-block h2 { margin-bottom: 10px; }
.settings-form { max-width: 520px; }
.settings-form--wide { max-width: 760px; }
.field textarea, .field select, .field input[type="search"], .search-row input {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff;
}
.field textarea { line-height: 1.55; resize: vertical; }
.field textarea[rows="18"] { font-size: 15px; line-height: 1.6; }
.field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b42318; }
.choice { border: 0; padding: 0; margin: 0 0 24px; }
.choice legend { font-weight: 650; font-size: 15px; color: var(--navy); padding: 0; margin: 0 0 4px; }
.choice-row { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; padding: 8px 0; cursor: pointer; font-size: 15.5px; }
.choice-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-ink); }
.btn-danger { background: #b42318; color: #fff; border: 1px solid #b42318; }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }

/* administration */
.table-scroll { overflow-x: auto; margin: 18px 0 8px; }
.table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 16px 12px 0; border-top: 1px solid var(--line-strong); vertical-align: top; }
.table thead th { font-size: 13px; color: var(--muted); font-weight: 700; border-top: 0; border-bottom: 1px solid var(--line-strong); }
.table tbody tr:last-child > * { border-bottom: 1px solid var(--line-strong); }
.table tbody th { font-weight: 650; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.search-row { display: flex; gap: 10px; max-width: 520px; margin: 0 0 14px; }
.search-row input { flex: 1; min-width: 0; }
.pager-row { display: flex; align-items: center; gap: 22px; margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.outline-module { padding: 14px 0 6px; border-top: 1px solid var(--line-strong); }
.outline-module h3 { font-size: 20px; margin: 0 0 6px; }

@media (max-width: 850px) {
  .member-nav { margin-top: -10px; }
  .member-side .side-block { position: static; }
}
@media (max-width: 640px) {
  .member-nav { gap: 22px; margin-bottom: 28px; }
  .subnav { margin-top: -8px; }
  .step { grid-template-columns: 1fr; row-gap: 12px; padding-right: 0; }
  .step-cta { justify-self: start; }
  .facts--wide div, .facts--compact div { grid-template-columns: 1fr; gap: 0; }
  .lesson-body { font-size: 18.5px; line-height: 1.68; }
  .lesson-body h2 { font-size: 25px; }
  .lesson-pager { grid-template-columns: 1fr; }
  .pager-next { grid-column: auto; }
  .course-progress { flex-wrap: wrap; gap: 6px 12px; }
  .search-row { flex-wrap: wrap; }
  /* Administration tables become one card per row on a phone: each value carries its own label. */
  .table { min-width: 0; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; }
  .table tbody tr { padding: 12px 0; border-top: 1px solid var(--line-strong); }
  .table tbody tr:last-child { border-bottom: 1px solid var(--line-strong); }
  .table tbody tr > *, .table tbody tr:last-child > * { border: 0; padding: 3px 0; }
  .table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
  .table td { overflow-wrap: anywhere; }
  .settings-form .btn, .step-cta + .btn { width: 100%; }
}

/* ==========================================================================
   PRODUCT PAGE — where members land after registering or logging in.
   The product is sold on Selar; this page shows it and links there.
   Uses the hero's navy and the landing page's section pieces.
   ========================================================================== */
.product-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 80% 30%, #24488c 0, transparent 38%), linear-gradient(125deg, #06132a 0%, #0b1f42 58%, #132b58 100%);
  padding: 64px 0 84px;
}
.product-hero .notice { max-width: 640px; margin-bottom: 30px; }
.product-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: 56px; }
.product-hero h1 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -2.2px; margin: 22px 0 18px; font-weight: 900; }
.product-copy { font-size: 18px; color: #d2ddf3; max-width: 54ch; margin: 0 0 14px; }
.product-hero .hero-actions { margin-top: 26px; }
.btn-lg { padding: 17px 26px; font-size: 15.5px; }
.product-fine { margin: 14px 0 0; font-size: 13px; color: #9fb4dc; }
.product-hero :focus-visible { outline-color: var(--cyan); }

/* The kit photo has a white background. It sits on a pale card and is multiplied into it,
   so the white disappears and the kit looks lit from behind. */
.product-stage { position: relative; }
.product-stage::before {
  content: ""; position: absolute; inset: 8% 6%; border-radius: 50%;
  background: radial-gradient(closest-side, #55d6d155, #356dff33 60%, transparent); filter: blur(30px);
}
.product-card {
  position: relative; border-radius: 28px; padding: 30px 24px;
  background: radial-gradient(120% 90% at 50% 20%, #ffffff 0%, #eef4ff 55%, #dbe6fb 100%);
  box-shadow: 0 40px 90px #0007, inset 0 0 0 1px #ffffff;
}
.product-card img { width: 100%; height: auto; mix-blend-mode: multiply; }

.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center p { margin: 0 auto; }
.video-stage {
  max-width: 920px; margin: 0 auto; padding: 12px; border-radius: 26px;
  background: linear-gradient(130deg, #08152d, #102c5d); box-shadow: var(--shadow);
}
.yt-video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; }
.video-fallback { text-align: center; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.video-fallback a, .product-disclaimer a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

.kit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kit-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(6, 20, 47, 0.05); }
.kit-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #eaf0ff; color: var(--blue-ink); }
.kit-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kit-item h3 { font-family: var(--font-serif); font-weight: 500; font-size: 23px; line-height: 1.2; color: var(--navy); margin: 18px 0 6px; }
.kit-item p { margin: 0; color: var(--muted); font-size: 15px; }

.product-disclaimer { margin: 22px auto 0 !important; font-size: 13px !important; max-width: 60ch; }

/* the landing page's YouTube video, in the hero's existing video frame */
iframe.intro-video { border: 0; }

@media (max-width: 850px) {
  .product-hero { padding: 48px 0 64px; }
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-stage { max-width: 620px; }
  .kit-list { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 480px) {
  .product-hero h1 { letter-spacing: -1.4px; }
  .product-copy { font-size: 16px; }
  .product-hero .hero-actions .btn { width: 100%; }
  .product-card { padding: 18px 12px; border-radius: 22px; }
  .video-stage { padding: 6px; border-radius: 18px; }
  .yt-video { border-radius: 13px; }
  .kit-item { padding: 22px; }
}

/* legal pages: date, intro, section headings and lists */
.legal-updated { font-size: 14px !important; color: var(--muted) !important; margin: -10px 0 18px; }
.legal-intro { font-size: 18px !important; }
.legal h2 { font-size: 26px; margin: 38px 0 10px; }
.legal ul { max-width: 66ch; color: #34415c; font-size: 17px; padding-left: 22px; margin: 0 0 16px; }
.legal li { margin: 0 0 8px; }
.legal a:not(.back-link) { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
