/* The 21 Laws of the Male Mind - mobile first */
:root {
  --bg: #0b0b0c;
  --bg2: #121214;
  --card: #18181b;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --line: #2a2a2e;
  --gold: #e8c49a;
  --gold2: #f0d9b5;
  --btn: #f5f5f4;
  --btnText: #0b0b0c;
  --pad: 16px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --safeB: env(safe-area-inset-bottom, 0px);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  min-width: 0;
  padding-bottom: calc(72px + var(--safeB));
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold2); }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.container-wide {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* TOP BAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.97);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  max-width: 960px;
  margin: 0 auto;
  padding: 8px var(--pad);
}
.logo {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo b { color: var(--gold); font-weight: 500; }
.btn-sm {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btnText);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm:hover { text-decoration: none; opacity: 0.92; }

/* BUTTONS */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btnText);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; color: var(--btnText); opacity: 0.94; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-outline:hover { color: var(--text); border-color: var(--muted); }
.btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0 0 12px;
}
.note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* HERO */
.hero {
  padding: 24px 0 28px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(232,196,154,0.1), transparent 55%);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 8.5vw, 48px);
  line-height: 1.1;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold2);
  display: block;
}
.hero p.lead {
  color: var(--muted);
  font-size: 15px;
  max-width: 34em;
  margin: 0 auto 18px;
  line-height: 1.5;
}

/* book mock */
.book {
  width: 148px;
  aspect-ratio: 2 / 3;
  margin: 0 auto 20px;
  border-radius: 3px 8px 8px 3px;
  background: linear-gradient(160deg, #2a2520, #0e0c0b 55%);
  border: 1px solid #3f3f46;
  box-shadow: 0 16px 36px rgba(0,0,0,0.55);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
}
.book::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 7px;
  background: linear-gradient(90deg, #050505, #2a2520);
  border-radius: 3px 0 0 3px;
}
.book .bk {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.book .bt {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.15;
  margin-top: 6px;
}
.book .bt span {
  display: block;
  font-style: italic;
  color: var(--gold2);
  font-size: 16px;
}
.book .ba {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.book .bp {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold2);
  margin-top: 6px;
}

/* SECTIONS */
.section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.section.alt { background: var(--bg2); }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 6vw, 32px);
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 12px;
}
.section .sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 16px;
}
.prose p {
  color: #e7e5e4;
  margin: 0 0 12px;
  font-size: 15px;
}
.prose p.pull {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--gold2);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  margin: 16px 0;
}
.prose strong { color: #fff; }

/* cards */
.cards { display: grid; gap: 10px; margin-top: 8px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.card .num {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.card h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 6px;
}
.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 8px;
}
.card ul {
  margin: 0 0 0 16px;
  color: #d6d3d1;
  font-size: 13px;
}
.card li { margin-bottom: 4px; }

.list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.list .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(232,196,154,0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.list b {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 2px;
}
.list span {
  color: var(--muted);
  font-size: 13px;
}

/* laws */
.laws {
  display: grid;
  gap: 0;
  margin-top: 8px;
}
.law {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.35;
}
.law i {
  font-style: normal;
  font-family: var(--serif);
  color: var(--gold);
  min-width: 22px;
  flex-shrink: 0;
}

/* author */
.author {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}
.author img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(232,196,154,0.35);
}
.author .bio { text-align: left; width: 100%; }
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.stat {
  flex: 1 1 90px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  text-align: left;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--gold2);
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}

/* quotes */
.quotes { display: grid; gap: 10px; }
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.quote p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.quote .who {
  font-size: 12px;
  color: var(--muted);
}

/* box */
.box {
  border: 1px solid rgba(232,196,154,0.35);
  border-radius: 14px;
  padding: 16px;
  background: var(--card);
}
.box ul {
  margin: 10px 0 0 16px;
  color: #d6d3d1;
  font-size: 14px;
}
.box li { margin-bottom: 4px; }

/* faq */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary {
  list-style: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* final */
.final {
  text-align: center;
  padding: 36px 0 28px;
  background: radial-gradient(ellipse 90% 50% at 50% 100%, rgba(232,196,154,0.08), transparent 55%);
}
.final .price {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--gold2);
  margin: 8px 0 16px;
}
.final .price small {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.final .btn-row {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* footer */
footer {
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
footer p { margin: 0 0 8px; word-break: break-word; }

/* sticky bottom CTA */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 10px var(--pad) calc(10px + var(--safeB));
  background: rgba(11, 11, 12, 0.98);
  border-top: 1px solid var(--line);
}
.sticky-buy .btn { min-height: 48px; font-size: 15px; }

/* sample */
.sample {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px var(--pad) 28px;
}
.sample h1 {
  font-family: var(--serif);
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1.2;
  margin: 0 0 8px;
}
.sample .meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
}
.sample h2 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--gold2);
  margin: 20px 0 8px;
}
.sample p {
  color: #e7e5e4;
  font-size: 15px;
  margin: 0 0 12px;
}
.lock {
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(232,196,154,0.35);
  background: var(--card);
  text-align: center;
}
.lock h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 8px;
}

/* thanks */
.thanks {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px var(--pad) calc(32px + var(--safeB));
}
.thanks h1 {
  font-family: var(--serif);
  font-size: 32px;
  margin: 0 0 10px;
}
.thanks p {
  color: var(--muted);
  max-width: 28em;
  margin: 0 auto 14px;
  font-size: 15px;
}
.thanks .btn-row {
  max-width: 300px;
  margin: 16px auto 0;
}

/* tablet */
@media (min-width: 640px) {
  :root { --pad: 20px; }
  body { font-size: 17px; }
  .book { width: 200px; }
  .btn-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .btn { width: auto; min-width: 200px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .laws { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .author img { width: 160px; height: 160px; }
}

/* desktop */
@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .sticky-buy { display: none; }
  .hero {
    padding: 48px 0 40px;
    text-align: left;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
  }
  .hero-copy { order: 1; text-align: left; }
  .hero-visual { order: 2; }
  .hero p.lead { margin-left: 0; font-size: 17px; }
  .btn-row { justify-content: flex-start; }
  .book { width: 240px; margin: 0 auto; }
  .section { padding: 48px 0; }
  .author {
    grid-template-columns: 180px 1fr;
    text-align: left;
    justify-items: start;
  }
  .author img { width: 180px; height: 180px; }
}
