/* ============================================================
   maxhangtime.com — sales page

   Recreated from site/reference/design_handoff_max_hang_time_site/.
   The handoff is all inline styles; this is the same design as a
   token-driven stylesheet, matching how the books are built.

   Palette is locked — it was chosen so the books print correctly in
   mono/CMYK. See EDITORIAL-SYSTEM.md in the handoff before changing
   any colour. The binding rules, short version:

     - Red is accent only. Never a page-wide field.
     - Never red type on navy. On navy, type is white.
     - Red never carries unique information.
     - Max two solid fields per screenful, and they are navy.
     - Charts that mirror the books are pure black on white.
     - Square corners everywhere. Radius 0.
   ============================================================ */

/* 1. TOKENS
   ------------------------------------------------------------ */

:root {
  --navy:            #12233B;  /* structural base, all solid fields, body text */
  --navy-mid:        #274B72;  /* rules, type accents, links, FAQ questions */
  --red:             #D91E28;  /* accent only — CTAs, keylines, numerals */
  --red-press:       #B81820;  /* button hover — one step darker */
  --red-deep:        #8E1519;  /* small-caps labels */
  --tint:            #EDF0F4;  /* cool panel fill — research boxes */
  --grey:            #5E6773;  /* secondary body copy */
  --rule:            #C7CEDA;  /* hairlines, keylines, card borders */
  --footer-navy:     #0B1727;  /* footer ground only */

  --on-navy:         #D6DDE7;  /* paragraph text on navy */
  --on-navy-muted:   #93A1B5;  /* labels and meta on navy */
  --on-navy-bright:  #B9C4D4;  /* sticky-bar middle label */
  --on-navy-hair:    rgba(255, 255, 255, .28);
  --on-navy-hair-16: rgba(255, 255, 255, .16);
  --on-navy-hair-35: rgba(255, 255, 255, .35);

  --font-heading: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --font-body:    'Barlow', system-ui, -apple-system, sans-serif;

  --measure: 1120px;
  --gutter: 24px;
}

/* 2. RESET AND BASE
   ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--navy-mid); text-decoration: none; }
a:hover { color: var(--red); }

strong { font-weight: 600; }

p { margin: 0; }

table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

::selection { background: #D91E2833; }

/* Square corners are a hard constraint from the books. */
* { border-radius: 0; }

/* 3. LAYOUT
   ------------------------------------------------------------ */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding-top: 80px; }
.section--tight  { padding-top: 72px; }
.section--loose  { padding-top: 88px; }
.section--chapter { padding-top: 76px; }
.section--end { padding-bottom: 84px; }

/* Navy bands. Two solid fields per screenful is the ceiling, and they
   are always navy — never red. */
.band {
  background: var(--navy);
  color: #fff;
  margin-top: 80px;
}
.band .wrap { padding-top: 74px; padding-bottom: 74px; }

/* 4. TYPE
   ------------------------------------------------------------ */

.h1 {
  margin: 26px 0 0;
  font: 700 84px/0.9 var(--font-heading);
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.h2 {
  margin: 0;
  font: 700 40px/1 var(--font-heading);
  text-transform: uppercase;
}
.h2--lg      { font-size: 46px; }
.h2--agitate { font-size: 54px; line-height: .98; max-width: 22em; }
.h2--band    { font-size: 44px; }
.h2--cta     { font-size: 58px; line-height: .95; }

.h3 {
  margin: 12px 0 0;
  font: 700 32px/1.02 var(--font-heading);
  text-transform: uppercase;
}
.h3--block { font: 600 26px/1.05 var(--font-heading); margin: 12px 0 10px; }
.h3--panel { font: 600 27px/1.1 var(--font-heading); margin: 12px 0 12px; text-transform: uppercase; }

/* Small-caps label. Deep red on white or tint; never on navy. */
.kicker {
  font: 600 11px/1 var(--font-heading);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.kicker--wide  { font-size: 12px; letter-spacing: .28em; }
.kicker--label { font-size: 12px; letter-spacing: .22em; }
.kicker--grey  { color: var(--grey); }

/* On navy the same label goes muted or white — never red type. */
.kicker--on-navy       { color: var(--on-navy-muted); letter-spacing: .24em; font-size: 12px; }
.kicker--on-navy-bold  { color: #fff; font-weight: 700; letter-spacing: .24em; font-size: 12px; }

.lede   { font-size: 19px; line-height: 1.5; max-width: 30em; }
.body   { font-size: 16.5px; line-height: 1.6; }
.body--lg { font-size: 17.5px; line-height: 1.6; }
.body--sm { font-size: 16px; line-height: 1.55; }
.grey   { color: var(--grey); }
.on-navy { color: var(--on-navy); }

/* The one red rule under a display heading. 112 × 3. */
.rule-red {
  width: 112px;
  height: 3px;
  background: var(--red);
  margin: 26px 0 0;
}

/* Section header sitting on a 2pt navy top border, with a right-aligned
   deep-red label on the same baseline. */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 2px solid var(--navy);
  padding-top: 14px;
}

.sec-intro {
  margin: 16px 0 30px;
  max-width: 38em;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--grey);
}

/* 5. BUTTONS
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: var(--red);
  color: #fff;
  font: 700 19px/1 var(--font-heading);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 20px 34px;
  cursor: pointer;
}
.btn:hover  { background: var(--red-press); color: #fff; }
.btn:active { background: var(--red-deep); }

.btn--sm { font-weight: 600; font-size: 14px; padding: 12px 20px; }
.btn--lg { font-size: 20px; padding: 22px 38px; }

.btn--white {
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  padding: 15px 22px;
}
.btn--white:hover { background: var(--on-navy); color: var(--navy); }

/* 6. BLUEPRINT FRAME
   Four corner registration marks, lifted from the books'
   editorial-system.css. A framed element keeps its marks; the lighter
   block cards deliberately have none. The research box drops them too —
   that structural difference is what separates panel from frame when
   the page comes off a mono printer.
   ------------------------------------------------------------ */

.blueprint {
  position: relative;
  border: 1px solid var(--rule);
  padding: 30px;
}

.corner { position: absolute; width: 9px; height: 9px; color: var(--navy); }
.corner::before,
.corner::after { content: ''; position: absolute; background: currentColor; }
.corner::before { width: 9px; height: 1px; }
.corner::after  { width: 1px; height: 9px; }

.corner.tl { top: -1px; left: -1px; }
.corner.tl::before, .corner.tl::after { top: 0; left: 0; }

.corner.tr { top: -1px; right: -1px; }
.corner.tr::before, .corner.tr::after { top: 0; right: 0; }

.corner.bl { bottom: -1px; left: -1px; }
.corner.bl::before, .corner.bl::after { bottom: 0; left: 0; }

.corner.br { bottom: -1px; right: -1px; }
.corner.br::before, .corner.br::after { bottom: 0; right: 0; }

/* 7. BOXES
   Research and warning are told apart by structure, not colour: the
   research box is a tint panel with a navy bar, the warning box is a
   red keyline with no fill.
   ------------------------------------------------------------ */

.research {
  display: flex;
  border: 1px solid var(--rule);
  background: var(--tint);
}
.research__bar { flex: 0 0 auto; width: 5px; background: var(--navy); }
.research__body { padding: 26px 28px; }
.research__body > .kicker { display: block; margin-bottom: 14px; }
.research__body p + p { margin-top: 12px; }

.warning {
  border: 1px solid var(--red);
  background: #fff;
  padding: 22px;
}

/* 8. STICKY BAR
   ------------------------------------------------------------ */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid var(--on-navy-hair-16);
}
.bar .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 11px;
  padding-bottom: 11px;
}
.bar__brand {
  flex: 0 0 auto;
  font: 700 17px/1 var(--font-heading);
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* min-width:0 is load-bearing — without it the label pushes the button
   off-screen instead of ellipsing. */
.bar__note {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 12px/1.3 var(--font-heading);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-navy-bright);
}
.bar .btn { flex: 0 0 auto; }

/* 9. HERO
   ------------------------------------------------------------ */

.hero { background: var(--navy); color: #fff; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--on-navy-hair-35);
  padding: 8px 14px;
  font: 600 11px/1 var(--font-heading);
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__body { margin-top: 22px; max-width: 30em; color: var(--on-navy); }
.hero__body p { font-size: 18px; line-height: 1.5; }
.hero__body p + p { margin-top: 14px; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}
.hero__meta {
  font: 500 13px/1.5 var(--font-heading);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.hero__covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
}
.hero__cover--main { box-shadow: 0 24px 48px rgba(0, 0, 0, .45); }
/* Deliberate stagger — the prep book sits lower than the main book. */
.hero__cover--prep { box-shadow: 0 18px 36px rgba(0, 0, 0, .4); margin-bottom: 28px; }

/* 10. LOOK INSIDE — real book pages
   Letter-shaped frames holding pages rendered straight out of the built
   PDFs (the reader copies, so no apparatus boxes leak onto a sales page).

   Nothing here is interactive: no link, no lightbox, no hover state. The
   renders are 1275 × 1650 against a display width of about 354, so the
   browser's own zoom — ctrl-scroll, or pinch on a phone — has roughly 3.6×
   of real detail to draw on, and the type resolves into readable pages
   without anything opening. That also keeps the section inside the
   design's no-reveals rule.
   ------------------------------------------------------------ */

.pages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.page-item { margin: 0; }

.page {
  display: block;
  position: relative;
  aspect-ratio: 8.5 / 11;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: 0 6px 16px rgba(18, 35, 59, .1);
}
.page img { width: 100%; height: 100%; object-fit: cover; }

.page-caption {
  margin-top: 12px;
  font: 600 12px/1.4 var(--font-heading);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
}

/* 11. TWO-COLUMN TEXT SECTIONS
   ------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.split--agitate { margin-top: 34px; }
.split p + p { margin-top: 16px; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 36px;
}
/* Cards run to equal height and the meta rule is pinned to the bottom, so
   the two hairlines line up across the pair however long the copy runs. */
.cards > .blueprint { display: flex; flex-direction: column; }
.cards .card__meta { margin-top: auto; }
.card__body { margin-top: 16px; }
.card__meta {
  margin-top: 20px;
  width: 100%;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--grey);
}

/* 12. TABLE OF CONTENTS
   CSS columns, not a grid — a grid fills row-major and scrambles the
   reading order.
   ------------------------------------------------------------ */

.toc {
  columns: 2;
  column-gap: 44px;
  border-top: 1px solid var(--rule);
}
.toc__row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  break-inside: avoid;
}
.toc__n {
  flex: 0 0 62px;
  font: 600 11.5px/1.4 var(--font-heading);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.toc__t { flex: 1 1 auto; font-size: 16.5px; line-height: 1.4; }

/* 13. BLOCK CARDS AND THE TRAINING-DAY TABLE
   ------------------------------------------------------------ */

.blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* Lighter than the book cards on purpose — no corner marks here. */
.block { border: 1px solid var(--rule); padding: 24px; }
.block__label {
  font: 700 13px/1 var(--font-heading);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.table-frame { margin-top: 24px; border: 1px solid var(--rule); }

.table { font-size: 16px; }
.table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--navy);
  font: 600 12.5px/1 var(--font-heading);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.table tr:last-child td { border-bottom: 0; }
.table .slot { font-weight: 600; }

/* 14. PROSE
   The voice runs on very short paragraphs — one to three sentences,
   often one line. Spacing between them is what makes that read as
   deliberate rather than broken up.
   ------------------------------------------------------------ */

.prose { max-width: 34em; }
.prose p + p { margin-top: 14px; }
.prose--lg p { font-size: 17.5px; line-height: 1.6; }
.prose em { font-style: italic; }

/* Mid-page call to action. Sits on a hairline so it reads as a break in
   the argument rather than a banner. */
.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.cta-row--flush { margin-top: 0; border-top: 0; padding-top: 0; align-content: start; }
.cta-row__note {
  font: 500 13px/1.5 var(--font-heading);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
}

/* The closing note. First person, unsigned — no name, no pen name. */
.signoff { border-top: 2px solid var(--navy); padding-top: 28px; }
.signoff__ps {
  margin-top: 26px;
  max-width: 40em;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--grey);
}

/* 15. WITH AND WITHOUT
   ------------------------------------------------------------ */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.compare__col { border: 1px solid var(--on-navy-hair); padding: 28px; }
/* The one red keyline allowed on navy. No red type goes with it. */
.compare__col--with { border-color: var(--red); }
.compare__list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--on-navy);
}
.compare__col--with .compare__list { color: #fff; }

/* 16. WHO IT'S FOR
   ------------------------------------------------------------ */

.ruled-list { border-top: 1px solid var(--rule); margin-top: 18px; }
.ruled-list > li {
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
}
.plain { list-style: none; margin: 0; padding: 0; }

.disclaimer { background: var(--tint); }
.disclaimer p { margin-top: 16px; font-size: 16.5px; line-height: 1.6; }

/* 17. FAQ
   ------------------------------------------------------------ */

.faq { columns: 2; column-gap: 48px; }
.faq__item { break-inside: avoid; margin: 0 0 22px; }
.faq__q {
  margin: 0 0 6px;
  font: 600 21px/1.15 var(--font-heading);
  color: var(--navy-mid);
}
.faq__a { font-size: 16.5px; line-height: 1.55; }

/* 19. FINAL CTA
   ------------------------------------------------------------ */

.final .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 78px;
}
.final__lede { margin-top: 18px; max-width: 28em; font-size: 18px; line-height: 1.55; color: var(--on-navy); }
.final .btn { margin-top: 32px; }
.final .rule-red { margin-top: 22px; }

.capture { border: 1px solid var(--on-navy-hair); padding: 30px; }
.capture p { margin-bottom: 20px; font-size: 16px; line-height: 1.55; color: var(--on-navy); }
.capture__form { display: flex; gap: 10px; flex-wrap: wrap; }
.capture__input {
  flex: 1 1 180px;
  min-width: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px;
}
.capture__input::placeholder { color: var(--on-navy-muted); }
.capture__note { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--on-navy-muted); }

/* 20. FOOTER
   ------------------------------------------------------------ */

.footer { background: var(--footer-navy); color: var(--on-navy-muted); margin-top: 0; }
.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.footer__brand {
  font: 700 15px/1 var(--font-heading);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
}
.footer__note { font-size: 14.5px; line-height: 1.5; }

/* 21. RESPONSIVE
   None was authored in the handoff. Grids collapse, the hero drops to
   one column, and the sticky bar sheds its middle label before it sheds
   the price.
   ------------------------------------------------------------ */

@media (max-width: 1000px) {
  .h1 { font-size: 64px; }
  .h2--agitate { font-size: 44px; }
  .h2--cta { font-size: 46px; }
  .h2--lg, .h2--band { font-size: 40px; }

  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero__covers { max-width: 460px; }

  .final .wrap { grid-template-columns: 1fr; gap: 40px; }

  .pages, .blocks { grid-template-columns: 1fr 1fr; }
  .split, .cards, .compare { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .bar__note { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }

  .h1 { font-size: 48px; }
  .h2 { font-size: 32px; }
  .h2--lg, .h2--band { font-size: 34px; }
  .h2--agitate { font-size: 34px; }
  .h2--cta { font-size: 38px; }
  .h3 { font-size: 27px; }

  .section, .section--tight, .section--loose, .section--chapter { padding-top: 56px; }
  .section--end { padding-bottom: 56px; }
  .band { margin-top: 56px; }
  .band .wrap { padding-top: 54px; padding-bottom: 54px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; }
  .final .wrap { padding-top: 56px; padding-bottom: 56px; }

  .pages, .blocks { grid-template-columns: 1fr; }
  .pages { gap: 32px; }
  .toc, .faq { columns: 1; }

  .lede { font-size: 17.5px; }
  .body--lg { font-size: 16.5px; }

  .btn { font-size: 17px; padding: 18px 26px; }
  .btn--sm { font-size: 13px; padding: 11px 15px; letter-spacing: .1em; }
  .btn--lg { font-size: 18px; padding: 20px 28px; }

  .blueprint, .compare__col, .capture { padding: 24px; }
  .research__body { padding: 22px; }

  /* A wide table scrolls inside its own frame rather than pushing the
     page sideways. */
  .table-frame { overflow-x: auto; }
  .table { min-width: 520px; }
}

/* 22. PRINT
   Somebody will print this. Drop the solid fields, keep the type.
   ------------------------------------------------------------ */

@media print {
  .bar, .capture { display: none; }
  .band, .hero, .footer { background: #fff !important; color: var(--navy) !important; }
  .band .h2, .hero .h1, .footer__brand { color: var(--navy) !important; }
  .compare__list, .on-navy, .final__lede, .hero__lede { color: var(--navy) !important; }
  .compare__col { border-color: var(--rule) !important; }
  .btn { background: #fff !important; color: var(--navy) !important; border: 1px solid var(--navy); }
}
