/* Peter Leeds – redesign demo, version 2.
   Idea: the financial pages. Banknote navy, Leeds red, "stock up" green.
   One bold element (the navy hero with its rising chart line); everything else quiet.
   Readers are mostly 60+: large type, strong contrast, nothing moves by itself. */

:root {
  --navy: #15233F;
  --navy-2: #22355C;
  --red: #B3122E;
  --red-dark: #8E0E24;
  --green: #1D6B43;
  --green-dark: #14512F;
  --paper: #FFFFFF;
  --paper-2: #F2F5F9;
  --rule: #C8CFD9;
  --ink: #15233F;
  --ink-soft: #3E4A60;
  --max: 1200px;
  --base: 20px;
}

html { font-size: var(--base); }
html[data-size="large"]  { font-size: 23px; }
html[data-size="xlarge"] { font-size: 26px; }
* { box-sizing: border-box; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Public Sans", "Segoe UI", Arial, sans-serif; line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: 3.1rem; margin: 0 0 .35em; }
h2 { font-size: 2.2rem; margin: 0 0 .45em; }
h3 { font-size: 1.45rem; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 4px solid #F2B705; outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Text size strip ---------- */
.utility { background: var(--paper-2); border-bottom: 1px solid var(--rule); font-size: .8rem; }
.utility .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-height: 44px; }
.utility span { margin-right: 4px; color: var(--ink-soft); }
.utility button {
  font: inherit; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--rule);
  border-radius: 4px; min-width: 44px; min-height: 36px; cursor: pointer; padding: 0 10px;
}
.utility button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.utility button:nth-of-type(2) { font-size: 1.15em; }
.utility button:nth-of-type(3) { font-size: 1.3em; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 4px solid var(--red); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.logo img { width: 180px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px;
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9rem; cursor: pointer; list-style: none;
  border-bottom: 3px solid transparent;
}
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg) translateY(-3px); margin-left: 4px; }
.nav > a:hover, .nav summary:hover, .nav details[open] summary { border-bottom-color: var(--red); }
.nav details { position: relative; }
.nav details ul {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; margin: 0; padding: 6px 0;
  list-style: none; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--navy);
  box-shadow: 0 14px 28px rgba(21,35,63,.14);
}
.nav details ul a { display: block; padding: 11px 18px; color: var(--navy); text-decoration: none; font-size: .9rem; }
.nav details ul a:hover { background: var(--paper-2); color: var(--red); }
.nav .btn { margin-left: 12px; min-height: 48px; padding: 8px 22px; font-size: .9rem; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 58px; padding: 12px 30px; border: 0; border-radius: 4px;
  font-family: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  background: var(--green); color: #fff;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-red { background: var(--red); }
.btn-red:hover { background: var(--red-dark); }
.btn-lg { min-height: 66px; font-size: 1.15rem; padding: 14px 40px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Hero: the one bold element ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 64px 0 72px; }
.hero-chart { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: 3.2rem; }
.hero-sub { font-size: 1.45rem; font-weight: 600; color: #DCE4F0; margin-bottom: 1.4em; }
.hero-portrait { width: 132px; height: 132px; border-radius: 50%; border: 4px solid var(--red); margin-bottom: 26px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border: 8px solid #fff; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Bands ---------- */
.band { padding: 80px 0; }
.band-alt { background: var(--paper-2); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy a { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.35rem; font-weight: 600; color: var(--ink-soft); }
.red { color: var(--red); }

/* ---------- Three offers: unequal on purpose, the newsletter leads ---------- */
.offers { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 0; margin-top: 48px; align-items: start; border: 1px solid var(--rule); background: #fff; }
.offer { padding: 32px 30px 34px; display: flex; flex-direction: column; height: 100%; }
.offer + .offer { border-left: 1px solid var(--rule); }
.offer-kicker { font-weight: 700; color: var(--ink-soft); margin-bottom: 10px; font-size: .95rem; }
.offer h3 { color: var(--red); }
.offer ul { padding-left: 1.15em; margin: 0 0 1em; }
.offer li { margin-bottom: .35em; }
.offer .fine { border-top: 1px dashed var(--rule); padding-top: 12px; font-weight: 600; }
.offer .price { margin-top: auto; padding-top: 18px; }
.offer .price strong { display: block; font-family: "Source Serif 4", Georgia, serif; font-size: 1.5rem; line-height: 1.25; margin-bottom: 4px; }
.offer .price p { margin-bottom: 14px; }
.offer-main { background: var(--navy); color: #fff; margin: -18px 0; padding: 50px 38px 52px; box-shadow: 0 18px 40px rgba(21,35,63,.25); position: relative; }
.offer-main .offer-kicker { color: #fff; background: var(--red); align-self: flex-start; padding: 4px 14px; border-radius: 3px; }
.offer-main h3 { color: #fff; font-size: 1.8rem; }
.offer-main .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.offer-main .fine { border-color: #4A5C82; }
.offer-main .price strong { font-size: 1.75rem; }

/* ---------- Feature rows ---------- */
.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: center; }
.split-rev { grid-template-columns: 1fr 1.55fr; }
.split-media { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.big-list { font-size: 1.35rem; padding-left: 1.2em; margin: 0 0 1em; }
.big-list li { margin-bottom: .35em; }
.big-text { font-size: 1.35rem; }
.band-navy h2 { color: #fff; font-size: 2.5rem; }

/* ---------- Testimonials: large quotes, no boxes ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; margin-top: 40px; }
.quote { margin: 0; padding: 30px 0; border-top: 2px solid var(--navy); }
.quote blockquote { margin: 0 0 14px; font-family: "Source Serif 4", Georgia, serif; font-size: 1.4rem; line-height: 1.45; }
.quote blockquote::before { content: "\201C"; color: var(--red); font-size: 1.6em; line-height: 0; vertical-align: -.3em; margin-right: 4px; }
.quote figcaption { font-weight: 600; color: var(--ink-soft); }

/* ---------- How it works ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 64px 0 72px; }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero .hero-sub { font-size: 1.3rem; }
.page-hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 64px; align-items: center; }
.included { list-style: none; padding: 0; margin: 30px 0 0; }
.included li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid #3A4C72; }
.included li:last-child { border-bottom: 1px solid #3A4C72; }
.included .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; margin-top: 3px; }
.included strong { display: block; font-family: "Source Serif 4", Georgia, serif; font-size: 1.3rem; margin-bottom: 2px; }
.included span.d { color: #DCE4F0; }
.screen { background: #fff; padding: 20px; }

.content-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 72px; }
.content-grid .body { max-width: 38em; font-size: 1.05rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.6em; border-top: 1px solid var(--rule); }
.check-list li { position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--rule); font-size: 1.1rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 13px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .8rem; }
.aside-block { padding: 26px 0; border-top: 2px solid var(--navy); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gift img { margin: 6px auto 0; box-shadow: 0 10px 24px rgba(21,35,63,.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #DCE4F0; padding: 60px 0 28px; font-size: .9rem; border-top: 6px solid var(--red); }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.site-footer h4 { margin: 0 0 12px; color: #fff; font-size: 1rem; font-family: "Source Serif 4", Georgia, serif; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #DCE4F0; text-decoration-thickness: 1px; }
.site-footer a:hover { color: #fff; }
.copyright { text-align: center; border-top: 1px solid #3A4C72; margin-top: 44px; padding-top: 24px; }

/* Grid children may shrink below their content (no sideways scroll on phones) */
.hero-grid > *, .page-hero-grid > *, .split > *, .content-grid > *, .offers > *, .quotes > * { min-width: 0; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle summary {
    list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px;
    border: 2px solid var(--navy); border-radius: 4px; font-weight: 700; cursor: pointer; color: var(--navy);
  }
  .menu-toggle summary::-webkit-details-marker { display: none; }
  .menu-toggle summary::before { content: "\2630"; font-size: 1.2em; }
  .menu-toggle[open] summary::before { content: "\2715"; }
  .menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 4px solid var(--red);
    padding: 12px 24px 28px; box-shadow: 0 12px 24px rgba(21,35,63,.15); max-height: 80vh; overflow-y: auto; }
  .menu-panel h4 { margin: 18px 0 6px; color: var(--red); font-size: 1rem; font-family: "Source Serif 4", Georgia, serif; }
  .menu-panel ul { list-style: none; margin: 0; padding: 0; }
  .menu-panel a { display: block; padding: 10px 0; color: var(--navy); text-decoration: none; border-bottom: 1px solid #E6EAF0; }
  .menu-panel .btn { margin-top: 20px; color: #fff; border: 0; }

  .hero-grid, .page-hero-grid, .split, .split-rev, .content-grid { grid-template-columns: 1fr; gap: 36px; }
  .split-rev .split-media { order: 2; }
  .offers { grid-template-columns: 1fr; border: 0; background: none; gap: 24px; max-width: 640px; margin-left: auto; margin-right: auto; }
  .offer { border: 1px solid var(--rule); background: #fff; }
  .offer + .offer { border-left: 1px solid var(--rule); }
  .offer-main { order: -1; margin: 0; border: 0; }
  .quotes { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: repeat(2, 1fr); }
  .split-media img { max-width: min(420px, 100%); }
}

@media (max-width: 600px) {
  :root { --base: 18px; }
  html[data-size="large"]  { font-size: 21px; }
  html[data-size="xlarge"] { font-size: 24px; }
  .wrap { padding: 0 16px; }
  .band { padding: 52px 0; }
  .hero, .page-hero { padding: 40px 0 48px; }
  .site-header .wrap { min-height: 78px; }
  .logo img { width: 145px; }
  h1, .hero h1 { font-size: 2.1rem; }
  h2, .band-navy h2 { font-size: 1.7rem; }
  .hero-sub { font-size: 1.2rem; }
  .big-list, .big-text { font-size: 1.15rem; }
  .btn-lg { width: 100%; }
  .offer-main { padding: 34px 22px 36px; }
  .offer-main .cols { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .utility .wrap { justify-content: center; }
}

/* Fixes after the first look */
.nav > a.btn { color: #fff; border-bottom: 0; }
.nav > a.btn:hover { color: #fff; }
.offer-main .cols { grid-template-columns: 1fr; }
.offers { grid-template-columns: 1fr 1.3fr 1fr; }
@media (max-width: 1020px) { .offers { grid-template-columns: 1fr; } }

/* ---------- Version 3: one $20/month offer ---------- */
.hero-price { font-size: 1.25rem; color: #fff; margin-bottom: 1.1em; }
.hero-price strong { color: #fff; font-size: 1.35em; font-family: "Source Serif 4", Georgia, serif; }
.hero-small { margin: 14px 0 0; color: #DCE4F0; }
.hero-small a { color: #fff; }

.all-in { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; margin-top: 44px; background: #fff; border: 1px solid var(--rule); align-items: stretch; }
.all-in-list { padding: 40px 44px; }
.all-in-list h3 { font-size: 1.6rem; margin-bottom: .8em; }
.included-list { list-style: none; margin: 0; padding: 0; }
.included-list li { position: relative; padding: 16px 0 16px 48px; border-top: 1px solid var(--rule); }
.included-list li:last-child { border-bottom: 1px solid var(--rule); }
.included-list li::before { content: "\2713"; position: absolute; left: 0; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; }
.included-list strong { display: block; font-family: "Source Serif 4", Georgia, serif; font-size: 1.25rem; color: var(--navy); }
.price-card { background: var(--navy); color: #fff; padding: 44px 36px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.price-card-label { font-size: 1.1rem; color: #DCE4F0; font-weight: 600; }
.price-big { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 5.2rem; line-height: 1; margin: 10px 0 6px; }
.price-big span { font-size: .3em; font-weight: 600; margin-left: 4px; }
.price-day { color: #DCE4F0; margin-bottom: 24px; }
.price-note { margin: 14px 0 0; font-weight: 600; }
.price-value { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #3A4C72; color: #DCE4F0; font-size: .9rem; }
.preview-note { margin-top: 18px; padding: 18px; border: 2px dashed #6B7FA6; color: #DCE4F0; }

.courses { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 44px; }
.course { border-top: 4px solid var(--navy); padding-top: 28px; }
.course img { width: 100%; max-width: 440px; height: 190px; object-fit: contain; object-position: left center; margin-bottom: 22px; }
.course h3 { color: var(--red); }
.courses-note { margin-top: 28px; font-weight: 600; color: var(--ink-soft); }

.closing-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; }
.closing h2 { color: #fff; }
.call { border-left: 1px solid #3A4C72; padding-left: 40px; }
.call h3 { color: #fff; }
.call .phone { font-family: "Source Serif 4", Georgia, serif; font-size: 2rem; font-weight: 700; margin: 0 0 6px; }
.call .phone a { text-decoration: none; }

.aside-price { background: var(--navy); color: #fff; padding: 26px; margin-bottom: 32px; text-align: center; }
.aside-price .price-big { font-size: 3.6rem; }

.all-in > *, .courses > *, .closing-grid > * { min-width: 0; }
@media (max-width: 1020px) {
  .all-in, .courses, .closing-grid { grid-template-columns: 1fr; }
  .call { border-left: 0; border-top: 1px solid #3A4C72; padding: 28px 0 0; }
}
@media (max-width: 600px) {
  .all-in-list { padding: 28px 20px; }
  .price-card { padding: 32px 20px; }
  .price-big { font-size: 4rem; }
  .course img { height: 150px; }
}

/* Portrait: hidden on desktop (the video already shows Peter); on tablets and phones it floats right of the headline */
@media (min-width: 1021px) { .hero-portrait { display: none; } }
@media (max-width: 1020px) {
  .hero-portrait { float: right; width: 110px; height: 110px; margin: 4px 0 12px 16px; shape-outside: circle(50%); }
  .hero-grid > div:first-child { display: flow-root; }
}
@media (max-width: 600px) { .hero-portrait { width: 92px; height: 92px; } }

/* Courses: two equal columns, bonus boxes pinned to the bottom so they line up */
.course { display: flex; flex-direction: column; }
.course .check-list { margin-bottom: 24px; }
.course .bonus { margin-top: auto; background: var(--paper-2); border-left: 5px solid var(--red); padding: 18px 22px; font-weight: 600; min-height: 96px; display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.bonus-tag { color: var(--red); font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1.15em; margin-right: 8px; }
@media (max-width: 1020px) { .course .bonus { min-height: 0; } }
.course .bonus { display: block; min-height: 140px; }
.course .bonus .bonus-tag { display: block; margin: 0 0 4px; }

/* ---------- Version 4: the whole site ---------- */
.page-hero a { color: #fff; }
.page-hero-slim { padding: 52px 0 56px; }
.page-hero-slim h1 { max-width: 22em; }
.page-hero-slim .hero-sub { max-width: 40em; margin-bottom: 0; }
.page-hero .btn { color: #fff; }
.hero-ticks { list-style: none; padding: 0; margin: 0 0 1.2em; font-size: 1.15rem; }
.hero-ticks li { position: relative; padding: 6px 0 6px 40px; }
.hero-ticks li::before { content: "\2713"; position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .8rem; }
.included-badge { display: inline-block; margin: 8px 0 0; padding: 12px 20px; background: #fff; color: var(--navy); border-left: 6px solid var(--green); font-weight: 600; }
.included-badge strong { color: var(--green); }
.course-logo { max-width: 340px; margin-bottom: 18px; background: #fff; padding: 14px 18px; }
.course-logo-wide { max-width: 440px; }
.book-cover { max-width: 300px; box-shadow: 0 20px 40px rgba(0,0,0,.35); }

/* Articles: long text pages */
.article h2 { margin-top: 1.4em; }
.article h3 { margin-top: 1.3em; color: var(--navy); }
.article > h2:first-child, .article > h3:first-child, .article > *:first-child { margin-top: 0; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .4em; }
.article ul.check-list { padding-left: 0; }
.article img, .figure { margin: 10px 0 28px; }
.article iframe { max-width: 100%; }
.article .video, .video-plain { margin: 8px 0 28px; }
.video-plain { border: 0; box-shadow: none; }
.big-text { font-size: 1.25rem; }
.signature { font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: 1.5rem; }
.contact-lines { font-size: 1.15rem; font-weight: 600; }
.narrow { max-width: 46em; }
.course-more { margin: 16px 0 0; font-weight: 700; }
.course h3 a { color: inherit; text-decoration: none; }
.course h3 a:hover { text-decoration: underline; }
h2.step { display: flex; gap: 14px; align-items: baseline; font-size: 1.75rem; padding-top: 1.1em; border-top: 2px solid var(--navy); }
h2.step span { flex: none; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--red); color: #fff; font-size: .8em; transform: translateY(-.1em); }
.aside-block h3 { color: var(--navy); }
.aside-price .btn { color: #fff; }
.aside-price .price-note { margin-bottom: 0; }

/* FAQ lists on the course pages */
.faq dt { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1.3rem; margin: 1.2em 0 .3em; color: var(--navy); }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 0 0 .8em; padding-bottom: 1em; border-bottom: 1px solid var(--rule); }

/* Quotes and letters */
.quote-lead { border-top: 0; padding-top: 0; }
.letters { columns: 2; column-gap: 40px; }
.letter { break-inside: avoid; margin: 0 0 40px; padding: 30px 32px; background: var(--paper-2); border-top: 4px solid var(--navy); }
.letter-text p:last-child { margin-bottom: 0; }
.letter figcaption { margin-top: 18px; font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1.2rem; color: var(--red); }

/* In the media */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 44px; }
.logo-wall img { width: 100%; height: 64px; object-fit: contain; border: 1px solid var(--rule); padding: 8px; background: #fff; }
.outlets { columns: 4; column-gap: 32px; list-style: none; padding: 0; margin: 0 0 1em; }
.outlets li { padding: 6px 0; border-bottom: 1px solid #E6EAF0; break-inside: avoid; }
.audio-list { list-style: none; padding: 0; margin: 0; }
.audio-list li { padding: 16px 0; border-top: 1px solid var(--rule); }
.audio-list span { display: block; font-weight: 600; margin-bottom: 8px; }
.audio-list audio { width: 100%; }
.link-list { list-style: none; padding: 0; }
.link-list li { padding: 10px 0; border-top: 1px solid var(--rule); }
.tv-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 20px; }
.tv-row img { margin: 0; max-width: 260px; }

/* Infographics */
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.ig-grid[hidden], .ig-detail[hidden] { display: none; }
.ig-card { display: block; background: #fff; border: 1px solid var(--rule); text-decoration: none; color: var(--navy); }
.ig-card img { width: 100%; height: 220px; object-fit: cover; object-position: top; }
.ig-card span { display: block; padding: 16px 18px; font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1.2rem; border-top: 3px solid var(--red); }
.ig-card:hover span { color: var(--red); }
.ig-detail { max-width: 900px; }
textarea.embed { width: 100%; font: .8rem/1.4 Consolas, monospace; padding: 12px; border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink); }

/* Books */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.book { text-align: center; display: flex; flex-direction: column; align-items: center; }
.book img { height: 340px; width: auto; object-fit: contain; margin-bottom: 18px; box-shadow: 0 12px 28px rgba(21,35,63,.2); }
.book h3 { margin-bottom: 16px; }
.book .btn { margin-top: auto; max-width: 280px; }
.nine { list-style: none; padding: 0; counter-reset: nine; }
.nine li { counter-increment: nine; position: relative; padding: 18px 0 6px 64px; border-top: 1px solid var(--rule); }
.nine li::before { content: counter(nine); position: absolute; left: 0; top: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff;
  font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; }
.nine h3 { margin: 4px 0 6px; }
.book-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.choice { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--navy); padding: 28px; display: flex; flex-direction: column; }
.choice .check-list { margin-bottom: 18px; }
.choice-price { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 2rem; margin: auto 0 14px; }
.choice-off { opacity: .7; }
.btn[disabled] { background: #8A93A3; cursor: default; }

/* Navy bands: lists and buttons on dark */
.band-navy .hero-ticks li { color: #fff; }
.band-navy .btn { color: #fff; }
.band-navy .call .btn { margin-top: 10px; }

.page-hero-grid > *, .logo-wall > *, .ig-grid > *, .books > *, .book-choices > * { min-width: 0; }
@media (max-width: 1020px) {
  .letters { columns: 1; }
  .outlets { columns: 2; }
  .books, .book-choices { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 600px) {
  .outlets { columns: 1; }
  .letter { padding: 22px 18px; }
  h2.step { font-size: 1.4rem; }
  .book img { height: 280px; }
  .course-logo, .course-logo-wide { max-width: 100%; }
}

/* Picture at the top of a side column (Peter's Message ladder) */
.aside-art { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 28px; }
@media (max-width: 1020px) { .aside-art { display: none; } }

/* Subscribe page: what you get on the left, the order form on the right */
.sub-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.sub-grid > * { min-width: 0; }
.sub-what h2 { margin-top: 0; }
.sub-what h3 { color: var(--navy); }
.sub-part { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; margin: 8px 0 18px; }
.sub-part-pic { width: 100%; height: auto; }
.sub-part h3 { margin: 0 0 6px; color: var(--red); }
.sub-part p { margin: 0; }
.order { position: sticky; top: 24px; border: 1px solid var(--rule); background: #fff; }
.order-head { background: var(--navy); color: #fff; text-align: center; padding: 28px 28px 8px; }
.order-head .price-day { margin-bottom: 16px; }
.order-form { padding: 26px 28px 8px; }
.order-form label { display: block; font-weight: 600; margin-bottom: 16px; }
.order-form input { display: block; width: 100%; margin-top: 6px; min-height: 52px; padding: 10px 14px; font: inherit; font-weight: 400; color: var(--ink); border: 2px solid var(--rule); border-radius: 4px; background: #fff; }
.order-form input:focus { outline: none; border-color: var(--navy); }
.order-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order-row > * { min-width: 0; }
.order-small { font-size: .9rem; color: var(--ink-soft); margin: 14px 0 0; }
.order-msg { margin: 14px 0 0; padding: 14px 16px; border-left: 5px solid var(--red); background: var(--paper-2); font-weight: 600; }
.order-help { margin: 0; padding: 18px 28px 26px; border-top: 1px solid var(--rule); font-size: .95rem; }
.free-tag { text-align: center; margin: 0 0 10px; }
.free-tag span { display: inline-block; background: var(--red); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 6px 16px; font-size: .9rem; }
.next-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.next-steps > * { min-width: 0; }
.next-steps li { counter-increment: step; border-top: 4px solid var(--navy); padding-top: 22px; }
.next-steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.next-steps h3 { margin: 0 0 8px; }
.next-steps p { margin: 0; }
@media (max-width: 1020px) {
  .sub-grid { grid-template-columns: 1fr; gap: 48px; }
  .order { position: static; max-width: 560px; }
  .next-steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .sub-part { grid-template-columns: 1fr; }
  .sub-part-pic { max-width: 260px; }
}
.sub-bonus { margin-top: 36px; padding: 28px; background: var(--paper-2); border-top: 4px solid var(--red); }
.sub-bonus .free-tag { text-align: left; }
.sub-bonus h3 { margin: 0 0 18px; color: var(--navy); }
.sub-bonus-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.sub-bonus-logos > * { min-width: 0; }
.sub-bonus-logos a { display: flex; align-items: center; justify-content: center; background: #fff; padding: 14px; height: 130px; }
.sub-bonus-logos img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sub-bonus p:last-child { margin: 0; }
@media (max-width: 600px) { .sub-bonus { padding: 22px 18px; } .sub-bonus-logos { gap: 12px; } .sub-bonus-logos a { height: 96px; padding: 8px; } }
/* Subscribe: secure checkout line and accepted cards, under the form */
.order-trust { margin: 18px 28px 0; padding: 20px 0 22px; border-top: 1px solid var(--rule); text-align: center; }
.secure-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 16px; font-weight: 700; color: var(--green); }
.cards { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 86px; height: 54px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(21,35,63,.08); line-height: 1; }
.card-visa { color: #1A1F71; font: italic 800 1.35rem/1 "Public Sans", Arial, sans-serif; letter-spacing: .02em; }
.card-mc small { font: 600 .62rem/1 "Public Sans", Arial, sans-serif; color: #231F20; margin-top: 3px; }
.card-disc { flex-direction: row; font: 800 .82rem/1 "Public Sans", Arial, sans-serif; color: #231F20; letter-spacing: .01em; }
.card-disc i { display: inline-block; width: .82em; height: .82em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFB14A, #E55C20 70%); margin: 0 1px; }
.trust-note { margin: 0; font-size: .88rem; color: var(--ink-soft); }
/* Free bonus box on white, so the white course logos sit cleanly on it */
.sub-bonus { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--red); }
.sub-bonus-logos { gap: 0; margin: 4px 0 20px; }
.sub-bonus-logos a { background: none; padding: 6px 18px; height: 120px; }
.sub-bonus-logos a + a { border-left: 1px solid var(--rule); }
.sub-bonus-logos a:first-child { padding-left: 0; }
.sub-bonus-logos a:last-child { padding-right: 0; }
@media (max-width: 600px) { .sub-bonus-logos a { height: 84px; padding: 4px 10px; } }
.call-email { font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }

/* Text size buttons in the header, at the far right of the menu (no strip above the header).
   Sizes in px so the buttons stay put when the text grows. */
.nav { margin-left: auto; }
.text-size { display: flex; align-items: center; gap: 4px; flex: none; }
.site-header .wrap > .text-size { padding-left: 16px; border-left: 1px solid var(--rule); margin-left: -8px; }
.text-size button {
  font: 700 14px/1 "Public Sans", Arial, sans-serif; color: var(--navy); background: #fff; border: 1px solid var(--rule);
  border-radius: 4px; width: 34px; height: 34px; padding: 0; cursor: pointer;
}
.text-size button:nth-of-type(2) { font-size: 17px; }
.text-size button:nth-of-type(3) { font-size: 20px; }
.text-size button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.text-size-panel { display: none; }
.text-size-panel span { font: 600 14px/1 "Public Sans", Arial, sans-serif; color: var(--ink-soft); margin-right: 8px; }
@media (max-width: 1020px) {
  .site-header .wrap > .text-size { margin-left: auto; border-left: 0; padding-left: 0; }
  .site-header .wrap { gap: 14px; }
}
@media (max-width: 600px) {
  .site-header .wrap > .text-size { display: none; }
  .text-size-panel { display: flex; padding: 6px 0 12px; border-bottom: 1px solid #E6EAF0; }
  .menu-panel .text-size-panel button { display: inline-block; }
}
/* The top menu labels keep one size (the text-size buttons enlarge the page, the dropdowns and the phone menu),
   so the menu never wraps; below 1180px the Menu button takes over. */
.nav > a, .nav summary { font-size: 17px; }
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle summary {
    list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px;
    border: 2px solid var(--navy); border-radius: 4px; font-weight: 700; cursor: pointer; color: var(--navy);
  }
  .menu-toggle summary::-webkit-details-marker { display: none; }
  .menu-toggle summary::before { content: "\2630"; font-size: 1.2em; }
  .menu-toggle[open] summary::before { content: "\2715"; }
  .menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 4px solid var(--red);
    padding: 12px 24px 28px; box-shadow: 0 12px 24px rgba(21,35,63,.15); max-height: 80vh; overflow-y: auto; }
  .menu-panel h4 { margin: 18px 0 6px; color: var(--red); font-size: 1rem; font-family: "Source Serif 4", Georgia, serif; }
  .menu-panel ul { list-style: none; margin: 0; padding: 0; }
  .menu-panel a { display: block; padding: 10px 0; color: var(--navy); text-decoration: none; border-bottom: 1px solid #E6EAF0; }
  .menu-panel .btn { margin-top: 20px; color: #fff; border: 0; }
  .site-header .wrap > .text-size { margin-left: auto; border-left: 0; padding-left: 0; }
  .site-header .wrap { gap: 14px; }
}
.nav .btn { font-size: 17px; }
/* Card badges are pictures: fixed px, so larger text sizes don't spill out of them */
.card { width: 86px; height: 54px; flex: none; }
.card-visa { font-size: 23px; }
.card-mc small { font-size: 11px; }
.card-disc { font-size: 14px; }
.card-disc i { width: 13px; height: 13px; flex: none; }
/* Padlock stays with its words when the line wraps */
.secure-line { display: block; text-wrap: balance; }
.secure-line svg { display: inline-block; vertical-align: -4px; margin-right: 8px; }
/* Wide screens: the text-size buttons sit at the very right of the window, level with the menu */
@media (min-width: 1480px) {
  .site-header .wrap > .text-size { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); margin: 0; padding-left: 0; border-left: 0; }
}
/* Footer links: plain, underlined on hover */
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* App page: phone-framed screenshots beside the text */
.phone { margin: 0; width: 100%; max-width: 290px; border: 10px solid #0E1830; border-radius: 34px; overflow: hidden; background: #0E1830; box-shadow: 0 24px 48px rgba(21,35,63,.28); }
.phone img { display: block; width: 100%; height: auto; }
.app-hero { align-items: center; }
.app-hero-phone { display: flex; justify-content: center; }
.app-hero-phone .phone { max-width: 300px; border-color: #0B1428; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.app-lead { max-width: 46em; margin: 0 auto; font-weight: 400; }
.app-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.app-row > * { min-width: 0; }
.app-row-rev .app-shots { order: 2; }
.app-shots { display: flex; justify-content: center; gap: 0; }
.app-shots .phone + .phone { margin-left: -60px; margin-top: 70px; }
.phone-back { position: relative; z-index: 0; }
.app-shots .phone:first-child { position: relative; z-index: 1; }
.app-text h2 { margin-top: 0; }
.app-h2-gap { margin-top: 1.4em !important; }
.app-note { font-size: .9rem; color: var(--ink-soft); font-style: italic; }
.app-sections { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; border-top: 1px solid var(--rule); }
.app-sections dt, .app-sections dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.app-sections dt { font-weight: 700; color: var(--navy); padding-right: 24px; }
@media (max-width: 1020px) {
  .app-row { grid-template-columns: 1fr; gap: 40px; }
  .app-row-rev .app-shots { order: 0; }
  .app-hero-phone .phone { max-width: 260px; }
}
@media (max-width: 600px) {
  .phone { max-width: 230px; border-width: 8px; border-radius: 28px; }
  .app-shots .phone + .phone { margin-left: -70px; margin-top: 50px; }
  .app-shots .phone { max-width: 200px; }
  .app-sections { grid-template-columns: 1fr; }
  .app-sections dt { border-bottom: 0; padding-bottom: 0; }
}
.app-shots { align-items: flex-start; }
/* App page: the desktop screenshot in a simple browser window */
.browser { margin: 40px auto 0; max-width: 980px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--rule); box-shadow: 0 24px 48px rgba(21,35,63,.22); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #E4E9F0; border-bottom: 1px solid var(--rule); }
.browser-bar i { width: 12px; height: 12px; border-radius: 50%; background: #C3CBD6; flex: none; }
.browser-bar span { margin-left: 14px; flex: 1; max-width: 360px; background: #fff; border-radius: 6px; padding: 4px 12px; font: 13px/1.3 "Public Sans", Arial, sans-serif; color: var(--ink-soft); }
.browser img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .browser { margin-top: 28px; border-radius: 6px; } .browser-bar { padding: 7px 10px; } .browser-bar span { font-size: 11px; margin-left: 8px; } }
.app-lead { max-width: 34em; }
.trust-badges { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 14px; }
.trust-badges img:first-child { width: 96px; height: auto; }
.trust-badges img:last-child { width: 170px; max-width: calc(100% - 118px); height: auto; }
/* Payment forms: captcha, select, answers */
.captcha { margin: 2px 0 18px; min-height: 78px; }
.order-form select { display: block; width: 100%; margin-top: 6px; min-height: 52px; padding: 10px 14px; font: inherit; font-weight: 400; color: var(--ink); border: 2px solid var(--rule); border-radius: 4px; background: #fff; }
.order-form select:focus { outline: none; border-color: var(--navy); }
.order-msg ul { margin: 0; padding-left: 20px; }
.order-done { padding: 26px 28px 8px; }
.thanks-card { max-width: 640px; margin: 0 auto; text-align: center; font-size: 1.1rem; }
.thanks-tick { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: 48px; line-height: 84px; font-weight: 700; }
.thanks-card h2 { color: var(--green); margin: 0 0 22px; }
.thanks-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; text-align: left; max-width: 460px; margin: 0 auto 26px; padding: 20px 24px; background: #f3f6fa; border-radius: 6px; }
.thanks-facts dt { color: #5b6573; }
.thanks-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.thanks-home { margin-top: 30px; }
.order-done h3 { margin-top: 0; color: var(--green); }
.order-done .token { font-size: 1.2em; letter-spacing: .04em; }
.order-form.busy button { opacity: .6; pointer-events: none; }
.support-grid { align-items: start; }
.support-grid h2 { font-size: 2.5rem; margin-top: 0; }
.order-in-band { position: static; box-shadow: 0 10px 30px rgba(21,35,63,.12); }
.order-in-band .order-form { padding-top: 28px; }
@media (max-width: 400px) { .captcha { transform: scale(.9); transform-origin: 0 0; } }
.included-two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.included-two > * { min-width: 0; }
@media (max-width: 860px) { .included-two { grid-template-columns: 1fr; } }
.support-letter { margin-top: 28px; background: #fff; padding: 26px 28px; }
.support-letter img { max-width: 100%; height: auto; }
@media (min-width: 861px) { .included-two li:nth-last-child(2) { border-bottom: 1px solid var(--rule); } }
@media (min-width: 861px) { .support-grid { align-items: stretch; } .support-grid > div:first-child { display: flex; flex-direction: column; } .support-letter { flex: 1; } }

/* The welcome after a subscription: the App token and both course logins, each with a Copy button. */
.welcome { max-width: 1080px; margin: 0 auto; }
.welcome h2 { margin: 0 0 10px; color: var(--green); }
.welcome-lead { font-size: 1.05em; max-width: 780px; margin: 0 0 24px; }
.welcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.wc-card { background: #fff; border: 1px solid #dfe3ea; border-top: 4px solid var(--red, #b3122e); border-radius: 8px; padding: 20px 22px; }
.wc-card h3 { margin: 0 0 4px; font-size: 1.15em; }
.wc-card h3 a { color: inherit; text-decoration: none; }
.wc-link { margin: 0 0 14px; font-size: .9em; }
.wc-card dl { margin: 0; }
.wc-card dt { font-size: .82em; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 3px; }
.wc-card dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wc-val { font-family: Consolas, Menlo, 'Courier New', monospace; font-size: 1.1em; font-weight: 700; background: #f4f5f7; border: 1px solid #e3e6eb; border-radius: 5px; padding: 4px 10px; word-break: break-all; }
.wc-plain { font-weight: 600; overflow-wrap: anywhere; }
.wc-copy { font: inherit; font-size: .85em; padding: 4px 12px; border: 1px solid #c9ced6; border-radius: 5px; background: #fff; cursor: pointer; }
.wc-copy:hover { border-color: #8a93a0; }
.wc-copy.done { background: var(--green); border-color: var(--green); color: #fff; }
.wc-steps { margin: 14px 0 0; padding-left: 20px; font-size: .9em; }
.wc-steps li { margin: 0 0 6px; }
.wc-note { margin: 12px 0 0; font-size: .9em; color: #555; }
.welcome-dl { margin: 0 0 24px; }
.btn-download { font: inherit; font-size: 1.15em; font-weight: 600; color: var(--green); background: #eef6f1; border: 2px solid #b9d9c6; border-radius: 10px; padding: 14px 28px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.btn-download:hover { background: #e2f0e8; border-color: var(--green); }
.btn-download .dl-icon { font-size: 1.3em; line-height: 1; }
.welcome-foot { margin: 22px 0 0; font-size: .95em; color: #444; }
@media (max-width: 900px) { .welcome-grid { grid-template-columns: 1fr; } }
