/* Anxiety Series guide template - Craig Gibson / The Architect Method.
   Shared by the Money guide and the Routine guide. Long-form, branded, ungated. */

:root {
  --black: #0A0A0A;
  --charcoal: #2A2A2A;
  --gold: #C9A961;
  --gold-soft: rgba(201, 169, 97, 0.12);
  --gold-mid: rgba(201, 169, 97, 0.30);
  --off-white: #F5F2EC;
  --white: #FFFFFF;
  --text: #0A0A0A;
  --text-muted: rgba(10, 10, 10, 0.62);
  --text-on-dark: #F5F2EC;
  --text-muted-on-dark: rgba(245, 242, 236, 0.66);
  --border: rgba(10, 10, 10, 0.10);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.hide { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--black);
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  padding: 0.95rem 2rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--ease) 0.2s, box-shadow var(--ease) 0.2s, background 0.2s;
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201, 169, 97, 0.36); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-gold { background: var(--gold); }
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border);
  box-shadow: none;
  font-weight: 500;
}
.btn-outline:hover { border-color: var(--gold); box-shadow: none; transform: translateY(-1px); }

/* ---------- Header ---------- */
.header { border-bottom: 1px solid var(--border); background: var(--white); position: sticky; top: 0; z-index: 10; }
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { height: 30px; width: auto; }
.header-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.header-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.75rem;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  color: var(--text-on-dark);
  text-align: center;
  padding: 4.5rem 1.5rem 4rem;
}
.hero-inner { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.07;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted-on-dark);
  max-width: 580px;
  margin: 0 auto 2.2rem;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; align-items: center; }
.hero-readtime { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--text-muted-on-dark); text-transform: uppercase; }

/* ---------- Article shell ---------- */
.article { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3.4rem 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }
.section-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  line-height: 1.16;
  margin-bottom: 1.2rem;
}
.section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  line-height: 1.25;
  margin: 1.8rem 0 0.7rem;
}
.section p { font-size: 1.06rem; line-height: 1.78; color: var(--text); margin-bottom: 1.1rem; }
.section p.lead-p { font-size: 1.16rem; color: var(--text); }
.muted { color: var(--text-muted); }

/* Pull quote */
.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.4;
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding: 0.3rem 0 0.3rem 1.4rem;
  margin: 2rem 0;
}

/* "How it shows up" list */
.signs { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; margin: 1.4rem 0 0.5rem; }
.signs li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.04rem;
  color: var(--text);
  line-height: 1.6;
}
.signs li::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.65rem;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- Breakthroughs ---------- */
.breakthroughs { background: var(--white); }
.bt {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.bt:last-child { border-bottom: none; }
.bt-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.bt h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.18;
  margin-bottom: 1rem;
}
.bt p { font-size: 1.06rem; line-height: 1.78; color: var(--text); margin-bottom: 1rem; }
.bt-shift {
  background: var(--gold-soft);
  border: 1.5px solid var(--gold-mid);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-top: 1.2rem;
  font-size: 0.98rem;
}
.bt-shift strong { color: var(--text); }

/* Section intro band for the breakthroughs block */
.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.4rem 1.5rem 1rem;
  text-align: center;
}
.band .section-eyebrow { display: block; }
.band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  line-height: 1.14;
  margin-bottom: 1rem;
}
.band p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1.04rem; }

/* ---------- Hacks ---------- */
.hacks-wrap { max-width: var(--max); margin: 0 auto; padding: 3.4rem 1.5rem; }
.hacks { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2rem; }
.hack {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
}
.hack-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.hack-name .tag {
  font-family: var(--font-body);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--black);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  margin-left: 0.6rem;
  vertical-align: middle;
}
.hack p { font-size: 1rem; line-height: 1.7; color: var(--text); margin: 0; }

/* ---------- Start here ---------- */
.starthere { background: var(--white); }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.6rem; }
.checklist li {
  position: relative;
  padding-left: 2.6rem;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
}
.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7rem; height: 1.7rem;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1.5px solid var(--gold-mid);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- CTA ---------- */
.cta-block {
  background: var(--black);
  color: var(--text-on-dark);
  text-align: center;
  padding: 4.2rem 1.5rem 4.6rem;
}
.cta-inner { max-width: var(--max); margin: 0 auto; }
.cta-eyebrow { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.cta-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.cta-sub { max-width: 560px; margin: 0 auto 2.2rem; color: var(--text-muted-on-dark); font-size: 1rem; }

/* ---------- PDF head (capture only) ---------- */
.pdf-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  background: var(--black);
}
.pdf-logo { height: 26px; }
.pdf-head-tag { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
body.capturing .pdf-head { display: flex; }
body.capturing .header,
body.capturing .download-bar,
body.capturing .site-footer { display: none !important; }

/* ---------- Download bar + footer ---------- */
.download-bar { text-align: center; padding: 2.8rem 1.5rem 1rem; }
.site-footer { text-align: center; padding: 2.5rem 1.5rem; color: var(--text-muted); font-size: 0.82rem; letter-spacing: 0.04em; }

/* In-app browser help */
.browser-help {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}
.browser-help-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  text-align: center;
}
.browser-help-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.8rem; }
.browser-help-card p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; }
.browser-help-how { font-size: 0.9rem; }
.browser-help-card .btn { margin-top: 0.5rem; }

@media (max-width: 520px) {
  .header-tag { display: none; }
  .header-title { font-size: 0.82rem; padding: 0 0.5rem; }
  .hero { padding: 3.2rem 1.25rem 3rem; }
  .btn { width: 100%; max-width: 360px; }
}
