/* TelMD landing v2: one palette, premium and quiet.
   ink #0E0E10 / ivory #F7F4EE / gold #C2A15B */
:root {
  --ink: #0E0E10;
  --ink-2: #1A1A1D;
  --ivory: #F7F4EE;
  --paper: #FFFDF9;
  --gold: #C2A15B;
  --gold-deep: #8A6E33;     /* gold for text on ivory (AA contrast) */
  --muted: #55524C;         /* body grey on ivory */
  --muted-dark: #B9B4AA;    /* body grey on ink */
  --rule: rgba(194, 161, 91, .45);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { .wrap { padding: 0 40px; } }

/* Labels: small caps in gold */
.label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.on-light .label, .label.dark { color: var(--gold-deep); }
.rule { width: 48px; height: 1px; background: var(--gold); border: 0; margin: 20px 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(42px, 9vw, 72px); }
h2 { font-size: clamp(34px, 6.5vw, 50px); }
h1 em, h2 em { font-style: italic; color: var(--gold); }
.on-light h2 em { color: var(--gold-deep); }

/* Header */
.topbar { background: var(--ink); border-bottom: 1px solid rgba(194,161,91,.25); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark {
  font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: .01em;
  color: var(--ivory); text-decoration: none;
}
.wordmark span { color: var(--gold); }
.topbar .tag { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); display: none; }
@media (min-width: 640px) { .topbar .tag { display: block; } }

/* Hero (dark) */
.hero { background: var(--ink); color: var(--ivory); padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 96px 0 112px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; }
}
.hero h1 { margin-top: 18px; }
.hero .sub { color: var(--muted-dark); font-size: 20px; margin: 22px 0 32px; max-width: 34em; }
.hero .sub strong { color: var(--ivory); font-weight: 500; }

/* Book mockup */
.book { position: relative; max-width: 260px; margin: 0 auto; perspective: 1400px; }
@media (min-width: 900px) { .book { max-width: 360px; } }
.book .cover {
  position: relative;
  transform: rotateY(-14deg) rotateX(2deg);
  transform-origin: left center;
  box-shadow: 24px 30px 50px rgba(0,0,0,.55), 2px 2px 0 rgba(255,255,255,.04);
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
}
.book .cover::before { /* spine */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.12) 60%, rgba(0,0,0,0));
  z-index: 1;
}
.book .cover::after { /* soft sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 35%);
}
.book .cover img { width: 100%; }
.book figcaption {
  margin-top: 26px; text-align: center; font-size: 14px; letter-spacing: .08em; color: var(--muted-dark);
}
.book figcaption em { font-family: var(--serif); font-size: 19px; letter-spacing: 0; color: var(--ivory); display: block; }

/* Form */
.signup { max-width: 520px; }
.signup .row { display: flex; flex-direction: column; gap: 12px; }
.signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup input[type=email] {
  flex: none; width: 100%; min-width: 0; height: 60px; padding: 0 18px;
  font: inherit; font-size: 18px;
  color: var(--ink); background: var(--paper);
  border: 1px solid rgba(194,161,91,.6); border-radius: 2px;
}
@media (min-width: 560px) { .signup .row { flex-direction: row; } .signup input[type=email] { flex: 1 1 auto; width: auto; } }
.signup input[type=email]:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 60px; padding: 0 30px; border: 0; border-radius: 2px; cursor: pointer;
  font: 600 15px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  background: var(--gold); color: var(--ink); text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  transition: background .2s ease;
}
.btn:hover { background: #D1B373; }
.btn:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.btn[disabled] { opacity: .65; cursor: wait; }
.on-light .btn { background: var(--ink); color: var(--ivory); }
.on-light .btn:hover { background: #2A2A2E; }
.on-light .btn:focus-visible { outline-color: var(--gold-deep); }
.on-light .signup input[type=email] { border-color: rgba(14,14,16,.25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 15px; color: var(--muted-dark); margin: 14px 0 0; }
.on-light .form-note { color: var(--muted); }
.form-msg { min-height: 0; font-size: 16px; margin: 12px 0 0; color: #F0D9A6; }
.on-light .form-msg { color: #7A2E1E; }
.form-msg:empty { display: none; }

/* Hero byline: puts Dr. Tel's face next to the offer */
.byline { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(194,161,91,.25); max-width: 520px; }
.byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 1px solid var(--gold); flex: none; }
.byline p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted-dark); }
.byline strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ivory); }
.quote cite .book-title { text-transform: none; letter-spacing: .02em; font-style: italic; }

/* Sections on ivory */
section.block { padding: 72px 0; }
@media (min-width: 900px) { section.block { padding: 112px 0; } }

.inside { display: grid; gap: 40px; }
@media (min-width: 900px) { .inside { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; } }
.inside p.lead { color: var(--muted); font-size: 20px; margin: 20px 0 0; }
.points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.points li { padding: 26px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 44px 1fr; gap: 8px; }
.points .n { font-family: var(--serif); font-size: 26px; color: var(--gold-deep); line-height: 1.2; }
.points h3 { font-size: 26px; margin-bottom: 6px; }
.points p { margin: 0; color: var(--muted); }

/* About */
.about { background: var(--paper); border-top: 1px solid rgba(14,14,16,.06); border-bottom: 1px solid rgba(14,14,16,.06); }
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 420px 1fr; gap: 88px; } }
.portrait { position: relative; max-width: 420px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.portrait::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold); z-index: -1; }
.portrait { z-index: 0; margin-right: 14px; }
.about h2 { margin-top: 14px; }
.about p { color: var(--muted); margin: 18px 0 0; max-width: 36em; }
.creds { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.creds li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 18px; }
.creds li small { display: block; color: var(--muted); font-size: 15px; }

/* Quote (dark) */
.quote { background: var(--ink); color: var(--ivory); text-align: center; padding: 88px 0; }
@media (min-width: 900px) { .quote { padding: 128px 0; } }
.quote blockquote { margin: 0 auto; max-width: 820px; }
.quote .mark { font-family: var(--serif); font-size: 72px; line-height: .6; color: var(--gold); display: block; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 6vw, 52px); line-height: 1.18; margin: 18px 0 26px; }
.quote cite { font-style: normal; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* Final CTA */
.final { text-align: center; }
.final .signup { margin: 32px auto 0; }
.final p.lead { color: var(--muted); font-size: 20px; margin: 18px auto 0; max-width: 32em; }

/* Footer */
footer { background: var(--ink); color: var(--muted-dark); padding: 48px 0 40px; font-size: 15px; }
footer .wordmark { font-size: 24px; }
footer .slogan { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ivory); margin: 10px 0 24px; }
footer .disclaimer { border-top: 1px solid rgba(194,161,91,.25); padding-top: 20px; margin: 0; }
footer .legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
footer .legal a { color: var(--gold); text-underline-offset: 3px; }

/* Simple pages (thank-you, privacy) */
.page { padding: 64px 0 88px; }
@media (min-width: 900px) { .page { padding: 104px 0 128px; } }
.narrow { max-width: 720px; }
.ty { text-align: center; }
.ty .book { max-width: 220px; margin: 0 auto 44px; }
.ty p.lead { font-size: 21px; color: var(--muted); margin: 20px auto 34px; max-width: 30em; }
.ty .btn { height: 64px; padding: 0 36px; }
.ty .note { margin-top: 24px; color: var(--muted); }
.preview-banner { background: #EFE7D5; color: var(--ink); font-size: 15px; text-align: center; padding: 10px var(--gutter); }

.prose h1 { font-size: clamp(40px, 8vw, 60px); margin: 14px 0 8px; }
.prose .eff { color: var(--muted); margin: 0 0 32px; }
.prose h2 { font-size: 30px; margin: 40px 0 10px; }
.prose p, .prose li { color: #2B2925; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--gold-deep); text-underline-offset: 3px; }

/* v2b: Jonathan 2026-11-11 mobile-first hero: H1, H2, big book, form */
.hero { padding: 36px 0 56px; }
.hero-grid { display: grid; gap: 28px; grid-template-areas: "text" "book" "form"; }
.hero-text { grid-area: text; } .hero .book { grid-area: book; max-width: 300px; } .hero .signup { grid-area: form; width: 100%; max-width: 520px; margin: 0 auto; }
.hero h1 { margin-top: 0; font-size: clamp(40px, 10vw, 68px); }
.hero h2.sub { font-family: var(--sans, Inter, sans-serif); font-weight: 400; line-height: 1.5; font-size: 20px; margin: 18px 0 0; color: var(--muted-dark); }
.signup .row { flex-direction: column !important; }
.signup input[type=email] { width: 100% !important; min-height: 60px; font-size: 18px; }
.signup .btn { width: 100%; min-height: 60px; font-size: 16px; }
.form-note { text-align: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; grid-template-areas: "text book" "form book"; column-gap: 72px; row-gap: 32px; align-items: start; }
  .hero .book { max-width: 380px; align-self: center; }
  .hero .signup { margin: 0; }
}
.inside { display: block; max-width: 760px; }
.simple { list-style: none; padding: 0; margin: 28px 0 0; }
.simple li { font-size: 21px; line-height: 1.5; padding: 18px 0 18px 34px; border-top: 1px solid rgba(194,161,91,.35); position: relative; }
.simple li:last-child { border-bottom: 1px solid rgba(194,161,91,.35); }
.simple li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 600; }
.about h2 { margin-bottom: 16px; }
.creds li { font-size: 18px; }
.final { text-align: center; background: var(--ink); padding: 72px 0 !important; }
.btn-big { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 44px; text-decoration: none; font-size: 17px; width: 100%; max-width: 420px; }
