/* ============================================
   BLUE MOUNTAIN BOOKKEEPING — Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1B2E4B;
  --navy-dark:  #132238;
  --teal:       #2ABFBF;
  --teal-dark:  #1A7A7A;
  --sky:        #7BB8D4;
  --rose:       #B07A8A;
  --offwhite:   #F5F8FA;
  --cream:      #EDF4F7;
  --white:      #ffffff;
  --text-muted: #6B8FA8;
  --text-body:  #2D3F55;
  --border:     rgba(27, 46, 75, 0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --shadow-card: 0 2px 16px rgba(27,46,75,0.08);
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--offwhite);
}

img { display: block; max-width: 100%; }
ul[role="list"] { list-style: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), background var(--transition), transform var(--transition);
  text-align: center;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--teal); color: var(--navy); }
.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); opacity: 1; }
.btn-ghost     { background: transparent; color: var(--sky); border: 1.5px solid rgba(123,184,212,0.5); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); opacity: 1; }
.btn-nav       { background: var(--teal); color: var(--navy) !important; padding: 0.45rem 1.1rem; }
.btn-teal      { background: var(--teal); color: var(--navy); }
.btn-white     { background: var(--white); color: var(--teal-dark); }
.btn-white:hover { background: var(--offwhite); opacity: 1; }
.btn-full      { display: block; width: 100%; }

/* --- Sections --- */
.section       { padding: 5rem 0; }
.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-navy  { background: var(--navy); }

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}
.section-label--light { color: var(--teal); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-title--light { color: var(--offwhite); }

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.75;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.nav-logo { text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(42,191,191,0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(245,248,250,0.75);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--teal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--offwhite);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--navy);
  padding: 5.5rem 0 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  text-align: center;
  padding-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(42,191,191,0.45);
  box-shadow: 0 0 0 6px rgba(42,191,191,0.1);
  margin: 0 auto 1.5rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--offwhite);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--teal); font-style: italic; }

.hero-sub {
  font-size: 1rem;
  color: var(--sky);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stripes { display: flex; height: 7px; width: 100%; }
.stripe { flex: 1; }
.s1 { background: var(--sky);  flex: 2.2; }
.s2 { background: #6BAABF;     flex: 1.6; }
.s3 { background: #9D8A96;     flex: 1.1; }
.s4 { background: var(--rose); flex: 0.9; }

.mountain-svg {
  display: block;
  width: 100%;
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}

/* ============================================
   PILLARS
   ============================================ */
.pillars-section .section-sub { margin-bottom: 2.5rem; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pillar {
  background: var(--offwhite);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
}
.pillar-icon {
  width: 44px;
  height: 44px;
  background: #E1F5F5;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}
.pillar h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.pillar p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================
   FREE RESOURCES
   ============================================ */
.free-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2.75rem;
}

.free-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.free-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(27,46,75,0.13);
}

.free-card-top { height: 5px; background: var(--teal); }

.free-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.free-card-badge {
  display: inline-block;
  background: #E1F5F5;
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.free-card-icon {
  width: 48px;
  height: 48px;
  background: #E1F5F5;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}
.free-card-icon--alert { background: #FEF3CD; color: #8B6914; }
.free-card-icon--book  { background: #EDF1F8; color: var(--navy); }

.free-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}
.free-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.free-optin-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}
.free-optin-form input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-body);
  background: var(--offwhite);
  transition: border-color var(--transition);
  outline: none;
}
.free-optin-form input:focus { border-color: var(--teal); background: var(--white); }
.free-optin-form input::placeholder { color: #AABBCC; }
.free-optin-form .form-success {
  text-align: center;
  padding: 1rem 0.5rem;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}
.free-optin-form .form-success svg {
  display: block;
  margin: 0 auto 0.5rem;
}

/* ============================================
   PAID TOOLS
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
  margin-top: 2.75rem;
  align-items: start;
}

.tool-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(27,46,75,0.13);
}
.tool-card--featured { border-color: var(--teal); border-width: 1.5px; }

.tool-card-inner { padding: 1.75rem 1.5rem; }

.tool-featured-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.tool-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 0.85rem;
}
.tool-card--featured .tool-icon { background: #E1F5F5; color: var(--teal-dark); }

.tool-price {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
}
.tool-card h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.35; }
.tool-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.4rem; }

.tool-card--bundle {
  border-color: var(--rose);
  border-width: 1.5px;
  grid-column: 1 / -1;
}
.tool-card--bundle .tool-card-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto auto;
  column-gap: 1.5rem;
  align-items: start;
}
.tool-bundle-badge  { background: var(--rose); color: #fff; grid-column: 1 / -1; justify-self: start; }
.tool-icon--bundle  { background: #F5EEF0; color: var(--rose); grid-row: 2 / 5; align-self: start; margin-top: 0.25rem; }
.tool-card--bundle h3 { grid-column: 2; }
.tool-card--bundle p  { grid-column: 2; }
.tool-price--bundle   { grid-column: 2; }
.tool-card--bundle .btn-bundle { grid-column: 1 / -1; margin-top: 0.5rem; }

.tool-price-was {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}
.btn-bundle { background: var(--rose); color: #fff; }
.btn-bundle:hover { opacity: 0.88; }

.stripe-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.stripe-note svg { color: var(--teal-dark); flex-shrink: 0; }

/* ============================================
   ABOUT
   ============================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-body {
  color: rgba(245,248,250,0.8);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about-quote {
  border-left: 3px solid var(--teal);
  padding: 1.5rem 1.75rem;
  background: rgba(255,255,255,0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.about-quote blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(245,248,250,0.9);
  line-height: 1.7;
}

/* ============================================
   CTA STRIP
   ============================================ */
.cta-strip { background: var(--teal-dark); padding: 4rem 0; }
.cta-strip-inner { text-align: center; }
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--white);
  margin-bottom: 0.6rem;
}
.cta-strip p { color: rgba(255,255,255,0.78); font-size: 0.95rem; margin-bottom: 1.75rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--navy-dark); padding: 2.5rem 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
.footer-logo-link { display: inline-flex; }
.footer-logo-img {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(42,191,191,0.35);
  opacity: 0.9;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(123,184,212,0.65);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal); }

.footer-social { display: flex; gap: 1rem; align-items: center; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(123,184,212,0.7);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.social-link:hover { background: var(--teal); color: var(--navy); }

.footer-copy { font-size: 0.78rem; color: rgba(123,184,212,0.4); }

/* ============================================
   LEGAL PAGES (terms.html / privacy.html)
   ============================================ */
.legal-page { padding: 4rem 0 6rem; }
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.legal-page .legal-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.legal-page h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.5rem;
}
.legal-page p  { font-size: 0.9rem; color: var(--text-body); line-height: 1.8; margin-bottom: 0.75rem; }
.legal-page ul { margin: 0.5rem 0 0.75rem 1.5rem; }
.legal-page li { font-size: 0.9rem; color: var(--text-body); line-height: 1.8; }
.legal-page a  { color: var(--teal-dark); text-decoration: underline; }

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--navy);
  color: var(--offwhite);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid var(--teal);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 500;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.95rem; }
  .btn-nav { width: 100%; text-align: center; }

  .hero { padding-top: 3.5rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; }

  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .free-grid, .tools-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { gap: 1rem; }
}

@media (max-width: 480px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}