/* ==========================================================================
   Welcome to the Bottom — Landing Page Stylesheet
   Design system: charcoal + brushed gold, sourced from the book cover.
   Typography: Anton (display) / Oswald (structural) / Lora (body serif)
   ========================================================================== */

:root {
  /* Color */
  --bg: #0a0a0a;
  --bg-raised: #121210;
  --surface: #141310;
  --text: #f3efe6;
  --text-soft: rgba(243, 239, 230, 0.78);
  --text-muted: rgba(243, 239, 230, 0.5);
  --gold: #c9a227;
  --gold-bright: #e9c65b;
  --gold-soft: #8a7024;
  --border: rgba(201, 162, 39, 0.22);
  --border-strong: rgba(201, 162, 39, 0.42);
  --grain: repeating-linear-gradient(
    115deg,
    rgba(201, 162, 39, 0.95) 0px,
    rgba(201, 162, 39, 0.95) 2px,
    rgba(158, 124, 28, 0.95) 2px,
    rgba(158, 124, 28, 0.95) 3px
  );

  /* Type */
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-label: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;

  /* Layout */
  --max-width: 1180px;
  --section-pad-y: clamp(64px, 10vw, 140px);
  --gutter: clamp(20px, 5vw, 32px);
  --radius-sm: 4px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #16130a;
  padding: 12px 20px;
  z-index: 200;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}

/* Eyebrow label — the Oswald "structural" voice */
.eyebrow {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 18px;
}

.rule-grain {
  height: 3px;
  width: 56px;
  border-radius: 2px;
  background-image: var(--grain);
  margin-top: 10px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 72px);
}

.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-soft);
  font-size: clamp(16px, 1.6vw, 19px);
  margin-top: 16px;
}

/* ---------- Hinge divider ---------- */
.hinge {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.hinge::before,
.hinge::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.hinge__mark {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.btn-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.btn-price {
  font-family: var(--font-label);
  letter-spacing: 0.02em;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.btn-group--secondary .btn-price {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

.btn {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  padding: 17px 30px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 44px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--gold);
  color: #16130a;
  border: 1px solid var(--gold);
}

.btn--primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-note {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--border);
  padding-block: 14px;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__mark {
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
}

.site-nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

.site-nav__links a {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-soft);
}

.site-nav__links a:hover {
  color: var(--gold-bright);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav .btn {
  padding: 11px 20px;
  font-size: 12px;
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 7, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
}

.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
}

@media (min-width: 860px) {
  .site-nav__links {
    display: flex;
  }
  .site-nav .btn {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 110px);
}

.hero__copy {
  order: 1;
}

.hero__cover {
  order: 2;
  display: flex;
  justify-content: center;
  max-width: 340px;
  margin-inline: auto;
}

.hero__cover picture,
.hero__cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
}

.hero__cover picture {
  display: block;
}

.hero__cover img {
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

.hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: 0.005em;
}

.hero__subhead {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-soft);
  margin-top: 22px;
  max-width: 46ch;
}

.hero__definition {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 26px;
}

.hero__support {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--text-soft);
}

.hero__trust {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  max-width: 52ch;
}

.hero__trust-mark {
  width: 3px;
  min-width: 3px;
  height: 34px;
  background-image: var(--grain);
  margin-top: 3px;
}

.hero__trust p {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
  .hero__copy {
    order: 1;
  }
  .hero__cover {
    order: 2;
    max-width: 400px;
  }
}

/* ---------- Conversation (editorial two-column: coaching photos + copy) ---------- */
.conversation .container {
  max-width: 700px;
}

.conversation__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.conversation__portrait {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.conversation__portrait img {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
  display: block;
}

.conversation__portrait picture:last-of-type img {
  -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
}

.conversation p {
  color: var(--text-soft);
  margin-bottom: 1.4em;
  font-size: clamp(17px, 1.7vw, 19px);
}

.conversation p:last-of-type {
  margin-bottom: 0;
}

.conversation__signoff {
  font-style: italic;
  color: var(--text) !important;
}

@media (min-width: 860px) {
  .conversation .container {
    max-width: 1080px;
  }
  .conversation__layout {
    grid-template-columns: 0.82fr 1fr;
    gap: 72px;
    align-items: start;
  }
  .conversation__portrait {
    position: sticky;
    top: 112px;
  }
  .conversation__text {
    max-width: 620px;
  }
}

/* ---------- Problem (short lines, staggered reveal, one moody image) ---------- */
.problem {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(201, 162, 39, 0.06), transparent 60%),
    var(--bg);
  /* Replace with a licensed photograph when available:
     background-image: linear-gradient(rgba(6,6,5,.82), rgba(6,6,5,.9)), url('assets/images/problem-bg.jpg');
     background-size: cover; background-position: center; */
}

.problem .container {
  max-width: 760px;
  text-align: center;
}

.problem__lines {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 27px);
  line-height: 1.5;
}

.problem__lines span {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.problem__lines span.is-visible {
  opacity: 1;
  transform: none;
}

.problem__lines .is-quiet {
  color: var(--text-muted);
  font-size: 0.72em;
}

.problem__closing {
  margin-top: 40px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: var(--gold);
}

/* ---------- What's Inside — locker plate numerals ---------- */
.truths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 760px) {
  .truths {
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
  }
}

.truth {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 4px;
  border-bottom: 1px solid var(--border);
}

.truth__plate {
  flex-shrink: 0;
  border: 1px solid var(--gold);
  padding: 2px;
}

.truth__plate-inner {
  border: 1px solid var(--border-strong);
  padding: 8px 13px;
  min-width: 44px;
  text-align: center;
}

.truth__num {
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 20px;
  color: var(--gold-bright);
}

.truth__body {
  display: flex;
  flex-direction: column;
  padding-top: 3px;
}

.truth__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(18px, 2.3vw, 21px);
  line-height: 1.22;
  letter-spacing: 0.012em;
  color: var(--text);
}

.truth__rule {
  height: 2px;
  width: 26px;
  border-radius: 1px;
  background-image: var(--grain);
  margin: 13px 0 11px;
}

.truth__hook {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 1.55;
  max-width: 36ch;
}

/* ---------- Who This Book Is For ---------- */
.audience {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.audience li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--text-soft);
}

.audience__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.audience__check svg {
  width: 12px;
  height: 12px;
  stroke: var(--gold-bright);
}

/* ---------- Bulk Orders (framed aside — different audience) ---------- */
.bulk {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bulk .container {
  max-width: 720px;
  text-align: center;
}

.bulk p {
  color: var(--text-soft);
  margin-top: 18px;
}

.bulk .btn-row {
  justify-content: center;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
}

.final-cta .container {
  max-width: 760px;
}

.final-cta h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(32px, 5.5vw, 58px);
  line-height: 1.08;
}

.final-cta p {
  margin-top: 20px;
  color: var(--text-soft);
  font-style: italic;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 19px);
}

.final-cta .btn-row {
  justify-content: center;
}

.final-cta .btn-group {
  align-items: center;
}


/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.site-footer__mark {
  font-family: var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
}

.site-footer__legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-footer__legal a {
  text-decoration: none;
  color: var(--text-muted);
}

.site-footer__legal a:hover {
  color: var(--gold-bright);
}

.site-footer__copyright {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Scroll reveal (generic) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Legal pages (Privacy, Terms, Refunds) ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding-block: clamp(56px, 8vw, 100px) clamp(64px, 9vw, 120px);
}

.legal h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.12;
  margin-top: 16px;
}

.legal__updated {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 16px;
}

.legal__intro {
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--text-soft);
  margin-top: 26px;
  max-width: 58ch;
}

.legal__section {
  margin-top: clamp(48px, 7vw, 64px);
  padding-top: clamp(48px, 7vw, 64px);
  border-top: 1px solid var(--border);
}

.legal__section:first-of-type {
  margin-top: 56px;
}

.legal h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(19px, 2.3vw, 23px);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.legal p {
  color: var(--text-soft);
  margin-top: 16px;
  font-size: clamp(16px, 1.6vw, 17px);
  line-height: 1.75;
}

.legal p:first-of-type {
  margin-top: 16px;
}

.legal ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal li {
  color: var(--text-soft);
  font-size: clamp(16px, 1.6vw, 17px);
  line-height: 1.6;
  padding-left: 22px;
  position: relative;
}

.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 1px;
  background: var(--gold);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--gold-bright);
}

.legal__back {
  display: inline-block;
  margin-top: clamp(56px, 8vw, 72px);
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
}

.legal__back:hover {
  color: var(--gold-bright);
}
