/* ═══════════════════════════════════════════════════════════════
   Iron Muse Golf Starter Kit — Web/Mobile Edition
   Phone-first long-scroll, optimized for WebView embed
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,700&family=Poppins:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;1,400;1,500&display=swap');

:root {
  --sage-900: #2F3A2C;
  --sage-700: #4A5A45;
  --sage-500: #7C8C75;
  --sage-300: #A9B7A2;
  --sage-100: #D5DCCF;
  --sage-50:  #EAEEE6;

  --cream:    #F6F1E6;
  --cream-2:  #EEE8DA;
  --ivory:    #FBF8F1;

  --gold:     #B8935A;
  --gold-dk:  #9A7A47;

  --ink:      #1E231B;
  --ink-soft: #3A4237;
  --mute:     #6B7365;

  --playfair: 'Playfair Display', Georgia, serif;
  --poppins:  'Poppins', system-ui, sans-serif;
  --lora:     'Lora', Georgia, serif;

  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 680px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--lora);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* ═══════════ Progress bar ═══════════ */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sage-700), var(--gold));
  transition: width 0.1s linear;
}

/* ═══════════ Top header ═══════════ */
.top-header {
  position: sticky;
  top: 0;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(74, 90, 69, 0.08);
  z-index: 50;
  padding: 12px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-header .title-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.top-header .eyebrow-mini {
  font-family: var(--poppins);
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--sage-700);
  text-transform: uppercase;
  font-weight: 600;
}
.top-header .title-mini {
  font-family: var(--playfair);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-header .mark {
  width: 28px; height: 28px;
  background: var(--sage-900);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.top-header .mark img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* ═══════════ Hero ═══════════ */
.hero {
  position: relative;
  padding: 48px 24px 56px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 100%);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/api/guides/assets/images/coastal-course.jpg') center/cover;
  opacity: 0.18;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero .brand-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--poppins);
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--sage-700);
  margin-bottom: 28px;
}
.hero .brand-line .rule {
  width: 28px; height: 1px;
  background: var(--sage-500);
}
.hero h1 {
  font-family: var(--playfair);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -1px;
  color: var(--sage-900);
  margin: 0 0 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.hero .lede {
  font-family: var(--lora);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 380px;
  margin: 0 auto 28px;
}
.hero .meta {
  font-family: var(--poppins);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.hero .meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold);
}

/* ═══════════ Main content ═══════════ */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════ Section headers ═══════════ */
.section {
  padding: 56px 0 12px;
}
.section:first-of-type { padding-top: 48px; }

.section-head {
  text-align: left;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(74, 90, 69, 0.12);
}
.section-head .sect-num {
  font-family: var(--poppins);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head .sect-num::before {
  content: '';
  width: 20px; height: 1px; background: var(--gold);
}
.section-head h2 {
  font-family: var(--playfair);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--sage-900);
  margin: 0 0 12px;
}
.section-head h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.section-head .sub {
  font-family: var(--lora);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ═══════════ Typography ═══════════ */
h3 {
  font-family: var(--playfair);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--sage-900);
  margin: 32px 0 12px;
  letter-spacing: -0.2px;
}
h4 {
  font-family: var(--playfair);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 6px;
}
p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}
strong { color: var(--ink); font-weight: 600; }
em { color: var(--sage-700); }

/* ═══════════ Rachelle intro card ═══════════ */
.rachelle-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid rgba(74, 90, 69, 0.1);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0 28px;
}
.rachelle-card .photo {
  width: 72px; height: 88px;
  border-radius: 10px;
  background-image: url('/api/guides/assets/images/rachelle-selfie.jpg');
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 2px solid var(--ivory);
  box-shadow: 0 2px 10px rgba(47, 58, 44, 0.18);
}
.rachelle-card .text {
  min-width: 0;
}
.rachelle-card .name {
  font-family: var(--playfair);
  font-weight: 600;
  font-size: 15px;
  color: var(--sage-900);
  margin: 0 0 2px;
}
.rachelle-card .role {
  font-family: var(--poppins);
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.rachelle-card .quote {
  font-family: var(--lora);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* ═══════════ Pullquote ═══════════ */
.pullquote {
  position: relative;
  margin: 28px -4px;
  padding: 24px 24px 24px 28px;
  background: var(--sage-50);
  color: var(--sage-900);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.pullquote::before {
  content: '';
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 3px;
  background: var(--gold);
}
.pullquote .body {
  font-family: var(--playfair);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  color: var(--sage-900);
  display: block;
}
.pullquote .byline {
  display: block;
  margin-top: 10px;
  font-family: var(--poppins);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dk);
  font-weight: 600;
  font-style: normal;
}

/* ═══════════ Essentials grid ═══════════ */
.essentials {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 24px;
}
.essential {
  background: var(--cream);
  border: 1px solid rgba(74, 90, 69, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.essential .tag {
  display: inline-block;
  font-family: var(--poppins);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage-700);
  font-weight: 600;
  margin-bottom: 8px;
  padding: 3px 10px;
  background: var(--sage-50);
  border-radius: 20px;
}
.essential h4 {
  font-size: 17px;
  margin-bottom: 6px;
}
.essential p {
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}

/* ═══════════ Fancy bulleted list ═══════════ */
.fancy-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
}
.fancy-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px dotted rgba(74, 90, 69, 0.18);
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.5;
}
.fancy-list li:last-child { border-bottom: none; }
.fancy-list li::before {
  content: '';
  position: absolute;
  left: 4px; top: 18px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ═══════════ Numbered list ═══════════ */
.numbered-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  counter-reset: step;
}
.numbered-list li {
  position: relative;
  padding: 10px 0 10px 40px;
  counter-increment: step;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.5;
  border-bottom: 1px dotted rgba(74, 90, 69, 0.12);
}
.numbered-list li:last-child { border-bottom: none; }
.numbered-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 10px;
  font-family: var(--playfair);
  font-style: italic;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
}

/* ═══════════ Checklist ═══════════ */
.checklist {
  list-style: none;
  padding: 20px;
  margin: 20px 0;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px dashed var(--sage-300);
  display: grid;
  gap: 10px;
}
.checklist li {
  position: relative;
  padding: 6px 0 6px 30px;
  color: var(--ink-soft);
  font-family: var(--poppins);
  font-weight: 500;
  font-size: 14.5px;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border: 1.5px solid var(--sage-500);
  border-radius: 4px;
  background: var(--ivory);
}

/* ═══════════ Inline quote ═══════════ */
.inline-quote {
  background: var(--sage-50);
  border-left: 3px solid var(--sage-500);
  padding: 14px 18px;
  margin: 16px 0;
  font-family: var(--lora);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--sage-900);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ═══════════ Rule items (etiquette) ═══════════ */
.rule-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(74, 90, 69, 0.12);
}
.rule-item:last-of-type { border-bottom: none; }
.rule-item .num {
  font-family: var(--playfair);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
  width: 36px;
}
.rule-item .body h4 {
  margin-bottom: 4px;
}
.rule-item .body p {
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}

/* ═══════════ In-app callout ═══════════ */
.in-app {
  background: linear-gradient(135deg, var(--sage-900) 0%, var(--sage-700) 100%);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  margin: 28px -4px;
  position: relative;
  overflow: hidden;
}
.in-app::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(184, 147, 90, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.in-app .eyebrow {
  font-family: var(--poppins);
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.in-app .eyebrow::before {
  content: '';
  width: 18px; height: 18px;
  background: var(--gold);
  mask: url('/api/guides/assets/images/golfer-mark.png') center/contain no-repeat;
  -webkit-mask: url('/api/guides/assets/images/golfer-mark.png') center/contain no-repeat;
}
.in-app h4 {
  font-family: var(--playfair);
  font-weight: 600;
  font-size: 19px;
  color: var(--ivory);
  margin: 0 0 8px;
  line-height: 1.25;
}
.in-app p {
  font-family: var(--lora);
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(251, 248, 241, 0.82);
  margin: 0 0 14px;
}
.in-app .path {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(184, 147, 90, 0.35);
  border-radius: 20px;
  font-family: var(--poppins);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--gold);
}
.in-app .path .sep {
  opacity: 0.5;
  font-size: 9px;
}

/* ═══════════ Next section CTA ═══════════ */
.next-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 22px;
  margin: 40px 0 8px;
  background: var(--cream);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.next-section:active {
  transform: scale(0.98);
  box-shadow: 0 4px 14px rgba(47, 58, 44, 0.08);
}
.next-section .label {
  font-family: var(--poppins);
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage-700);
  font-weight: 600;
  margin-bottom: 4px;
}
.next-section .title {
  font-family: var(--playfair);
  font-weight: 600;
  font-size: 19px;
  color: var(--sage-900);
  line-height: 1.2;
}
.next-section .arrow {
  font-family: var(--playfair);
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}

/* ═══════════ Back cover / final CTA ═══════════ */
.final-cta {
  margin: 48px 0 0;
  padding: 56px 24px 48px;
  background: linear-gradient(180deg, var(--sage-900) 0%, #242d22 100%);
  color: var(--ivory);
  text-align: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/api/guides/assets/images/hero-bg.png') center/cover;
  opacity: 0.25;
  mix-blend-mode: overlay;
}
.final-cta > * { position: relative; }
.final-cta .brand-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--poppins);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.final-cta .brand-line .rule {
  width: 22px; height: 1px;
  background: var(--gold);
}
.final-cta h2 {
  font-family: var(--playfair);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--ivory);
  margin: 0 0 16px;
}
.final-cta h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.final-cta .lede {
  font-family: var(--lora);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(251, 248, 241, 0.82);
  max-width: 380px;
  margin: 0 auto 32px;
}

.signoff {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(184, 147, 90, 0.3);
  font-family: var(--lora);
  font-style: italic;
  font-size: 15px;
  color: rgba(251, 248, 241, 0.7);
  text-align: center;
}
.signoff .rachelle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-style: normal;
}
.signoff .rachelle .photo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background-image: url('/api/guides/assets/images/rachelle-cart.jpeg');
  background-size: cover;
  background-position: center;
  border: 2px solid var(--gold);
}
.signoff .rachelle .name {
  font-family: var(--poppins);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--ivory);
  display: block;
  line-height: 1.2;
}
.signoff .rachelle .role {
  font-family: var(--poppins);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: rgba(184, 147, 90, 0.8);
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* ═══════════ Floating TOC button ═══════════ */
.toc-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage-900);
  color: var(--ivory);
  border: none;
  box-shadow: 0 6px 20px rgba(47, 58, 44, 0.35), 0 2px 6px rgba(47, 58, 44, 0.2);
  z-index: 60;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.toc-fab:active { transform: scale(0.94); }
.toc-fab svg { width: 22px; height: 22px; stroke: var(--gold); }
.toc-fab[data-open="true"] { background: var(--gold); }
.toc-fab[data-open="true"] svg { stroke: var(--sage-900); }

/* TOC sheet */
.toc-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--ivory);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -8px 32px rgba(47, 58, 44, 0.2);
  z-index: 55;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0.28, 1);
  max-height: 75vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.toc-sheet[data-open="true"] {
  transform: translateY(0);
}
.toc-sheet .handle {
  display: block;
  width: 38px; height: 4px;
  background: var(--sage-300);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}
.toc-sheet .toc-head {
  padding: 14px 24px 8px;
  flex-shrink: 0;
}
.toc-sheet .toc-head .eyebrow {
  font-family: var(--poppins);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.toc-sheet .toc-head h3 {
  font-family: var(--playfair);
  font-weight: 600;
  font-size: 22px;
  color: var(--sage-900);
  margin: 4px 0 0;
}
.toc-list {
  list-style: none;
  padding: 8px 12px 24px;
  margin: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.toc-list li a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
}
.toc-list li a:active {
  background: var(--cream);
}
.toc-list li a[data-active="true"] {
  background: var(--sage-50);
}
.toc-list li a .num {
  font-family: var(--playfair);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
  width: 22px;
}
.toc-list li a .label {
  font-family: var(--playfair);
  font-weight: 500;
  font-size: 16px;
  color: var(--sage-900);
  line-height: 1.3;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(47, 58, 44, 0.4);
  backdrop-filter: blur(2px);
  z-index: 54;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.backdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════ Footer ═══════════ */
.page-footer {
  padding: 28px 24px 40px;
  text-align: center;
  background: var(--ivory);
  border-top: 1px solid var(--sage-100);
}
.page-footer .brand {
  font-family: var(--poppins);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--sage-700);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.page-footer .copy {
  font-family: var(--poppins);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.5px;
}

/* ═══════════ Tablet+ ═══════════ */
@media (min-width: 700px) {
  body { font-size: 18px; }
  .hero { padding: 72px 32px 80px; }
  .hero h1 { font-size: 56px; }
  .hero .lede { font-size: 19px; max-width: 460px; }
  main { padding: 0 40px; }
  .section-head h2 { font-size: 42px; }
  h3 { font-size: 26px; margin-top: 40px; }
  .final-cta { padding: 72px 40px 64px; }
  .final-cta h2 { font-size: 56px; }
  .rachelle-card .photo { width: 92px; height: 112px; }
  .rachelle-card .quote { font-size: 16px; }
}
