:root {
  --paper: #eeeeee;              /* light gray “newsprint” */
  --ink: #111;
  --muted: #2a2a2a;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
  --radius: 18px;
  --header-offset: 96px;         /* used for scroll-padding + hero height calc */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.4;

  /* Required to make the global background layer work reliably */
  position: relative;
  isolation: isolate;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   GLOBAL BACKGROUND (shows behind ALL sections)
   ========================================================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/hero-world.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.18;                 /* subtle, “newsprint” vibe */
  pointer-events: none;
  z-index: 0;                    /* behind content, but not behind body */
}

/* Keep your real content above the global background */
header.site-header,
section,
footer {
  position: relative;
  z-index: 1;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 238, 238, .82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.nav {
  display: flex;
  align-items: center;
  padding: 14px 0;
  gap: 18px;
  justify-content: flex-start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
}

.brand .wordmark {
  font-weight: 800;
  letter-spacing: -.02em;
}

.nav-links {
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 18px;      /* try 15–16px */
  font-weight: 700;    /* bold */
  letter-spacing: .2px;
}

.nav-links a:hover {
  background: rgba(0, 0, 0, .05);
}


  .nav-cta {
  margin-left: 0;     /* <- change */
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform 0.12s ease;
}

.btn.primary {
  background: var(--ink);
  color: var(--paper);
}

.btn.ghost {
  background: transparent;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0px); }


@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta .btn { padding: 10px 14px; font-size: 14px; }
}


.hero-world {
  position: relative;
  overflow: hidden;

  /* Make hero fill the viewport so you don't see the next section */
  min-height: calc(100vh - var(--header-offset));
  padding: 40px 0 60px;

  /* Let the global background show through */
  background: transparent;
}

/* Layer system (your HTML includes these .layer divs) */
.hero-world .layer {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  pointer-events: none;
}


.hero-world .skyline {
  background-image: none !important;
  opacity: 0 !important;
}

/* Optional layers (keep if you want later) */
.hero-world .clouds {
  background-image: url("../img/clouds.svg");
  background-size: 1440px 720px;
  opacity: 0;
  mix-blend-mode: multiply;
}

.hero-world .doodles {
  background-image: url("../img/doodles.svg");
  background-size: 1440px 720px;
  opacity: 0;
  mix-blend-mode: multiply;
}

.hero-ui {
  position: relative;
  z-index: 10;

  background: rgba(247, 246, 242, 0.92);
  border-radius: 22px;
  padding: 40px 56px 18px;
  max-width: 980px;
  margin: 40px auto 0;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hero-ui h1 {
  font-size: clamp(36px, 4.2vw, 64px);
  letter-spacing: -0.04em;
  margin: 10px 0 14px;
  line-height: 0.98;
}

.hero-subhead {
  margin: 0 0 14px;
  max-width: 54ch;
  line-height: 1.45;
  font-size: 16px;
  opacity: .92;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: start;
  margin-top: 10px;
}

.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn.wide {
  min-width: 240px;
  text-align: center;
  padding: 12px 18px;
}

/* Hero carousel */
.hero-carousel {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255,255,255,0.55);
}

.hero-carousel-track {
  display: flex;
  transition: transform 300ms ease;
}

.hero-slide {
  min-width: 100%;
  display: block;
  max-height: 380px;
  object-fit: contain;
}

.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, .15);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.hero-carousel-btn.prev { left: 8px; }
.hero-carousel-btn.next { right: 8px; }
.hero-carousel-btn:hover { background: #fff; }

@media (max-width: 880px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .btn.wide {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: 72px 0;
  position: relative;
  background: transparent;  /* let global background show subtly */
}

.section h2 {
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -.03em;
  margin: 0 0 10px;
}

.section p.lead {
  margin: 0 0 22px;
  max-width: 70ch;
  opacity: .85;
  font-size: 18px;
}

.panel {
  background: rgba(255, 255, 255, .55);
  border: 2px solid rgba(0, 0, 0, .12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, .12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
}

.card h3 { margin: 0 0 8px; }

.card-icon {
  display: block;
  width: 300px;
  max-width: 100%;
  margin: 4px auto 12px;
  opacity: .9;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, .18);
  background: rgba(246, 243, 234, .7);
  font-weight: 800;
}

/* Quote styling */
.hero-quote {
  margin: 28px auto 0;
  max-width: 52ch;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  opacity: .85;
  position: relative;
  padding: 28px 22px 18px;
  letter-spacing: -0.01em;
}

.hero-quote::before,
.hero-quote::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #111;
  margin: 0 auto;
  border-radius: 2px;
  opacity: .20;
}

.hero-quote::before { margin-bottom: 14px; }
.hero-quote::after  { margin-top: 14px; opacity: .14; }

/* CTA wide button row */
.cta-wide {
  display: block;
  width: 70%;
  margin: 22px auto 0;
  padding: 22px 32px;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 999px;
  text-align: center;
  transition: transform 0.15s ease;
}

.cta-wide:hover { transform: translateY(-2px); }

@media (max-width: 768px) {
  .cta-wide { width: 90%; font-size: 1.15rem; }
}

/* =========================================================
   FAQ MODAL (Centered)
   ========================================================= */
.faq-modal[hidden] { display: none; }

.faq-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.faq-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.faq-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(760px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.faq-modal.is-open .faq-sheet {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-head h3 { margin: 0; font-size: 1rem; }

.faq-close {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
}

.faq-close:hover { background: rgba(0, 0, 0, 0.06); }

.faq-body { padding: 14px 18px; }

.faq-item + .faq-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item h4 {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
}

.faq-item p {
  margin: 0;
  opacity: 0.88;
  line-height: 1.4;
}

.faq-foot {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 44px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.small {
  opacity: .75;
  font-size: 14px;
}

/* =========================================================
   OPTIONAL: Hide demo widgets if you want them gone
   (I left this out on purpose because it was hiding iframes globally)
   ========================================================= */
/*
.agent-widget,
.demo-widget,
iframe {
  display: none !important;
}
*/

/* Make header CTAs match perfectly */
.nav-cta { 
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Normalize all buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 44px;              /* forces same height */
  padding: 0 18px;           /* horizontal only */
  border-radius: 999px;

  border: 2px solid var(--ink);  /* was 3px */
  font-weight: 800;
  font-size: 14px;
  line-height: 1;            /* prevents vertical weirdness */
  letter-spacing: .01em;
  white-space: nowrap;
}

/* Variants */
.btn.primary{
  background: var(--ink);
  color: var(--paper);
}

.btn.ghost{
  background: transparent;
  color: var(--ink);
}

/* Optional: stop “jumping” in a sticky header */
.btn:hover{ transform: none; }
.btn:active{ transform: none; }


#go {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-bottom: 80px;
}


/* --- Stronger separation between Book + Start Your Guide sections --- */
#book {
  padding-bottom: 155px; /* pushes the next section farther down */
  position: relative;
}

#book::after {
  content: "";
  display: block;
  width: min(160px, 30%);
  height: 2px;
  margin: 60px auto 0;
  background: rgba(0,0,0,0.12);
  border-radius: 999px;
}

#newcustomer {
  padding-top: 140px; /* pulls Start Your Guide down so it doesn’t “bleed” */
}


/* BLOG */
.blog-toolbar{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  margin: 18px 0 18px;
  flex-wrap:wrap;
}

.blog-chips{display:flex; gap:10px; flex-wrap:wrap}

.chip{
  border:1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor:pointer;
}

.chip.is-active{
  background:#111;
  color:#fff;
  border-color:#111;
}

.blog-card h3{margin-top:10px}
.blog-meta{display:flex; gap:10px; align-items:center; flex-wrap:wrap}

.badge{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(0,0,0,.18);
  border-radius:999px;
  padding: 5px 10px;
  font-weight:800;
  font-size: 12px;
  background: rgba(255,255,255,.6);
}

.blog-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top: 16px;
}


/* --- Blog modal --- */
.post-modal{position:fixed;inset:0;display:none;z-index:9999}
.post-modal[aria-hidden="false"]{display:block}
.post-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.post-modal-panel{
  position:relative;
  max-width: 860px;
  margin: 6vh auto;
  background:#fff;
  border-radius:18px;
  padding:18px 18px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  max-height: 88vh;
  overflow:auto;
}
.post-modal-close{position:sticky;top:0;float:right}
.post-modal-meta{display:flex;align-items:center;gap:10px;margin-top:6px;opacity:.9}

/* Simple prose styling */
.prose p{line-height:1.7;margin:12px 0}
.prose h2,.prose h3{margin-top:22px}
.prose img{max-width:100%;border-radius:14px;border:1px solid rgba(0,0,0,.12)}
.prose a{text-decoration:underline}


.hero-outro {
  padding: 80px 20px 110px;
  text-align: center;
  
}

.hero-outro-inner {
   padding: 80px 20px 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;              /* controls the spacing between the two lines */
}

.hero-outro-line1 {
  font-weight: 900;
  font-size: 34px;
  line-height: 1.1;
}

.hero-outro-line2 {
  font-size: 34px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .hero-outro-line1,
  .hero-outro-line2 {
    font-size: 26px;
  }
}
