/* =========================================================
   DigiSignature Site Styles (structured)
   Notes:
   - This file has been organized with section headers for easier navigation.
   - Rule order (cascade) has been preserved to avoid visual regressions.
   =========================================================

   Contents
   01) Design tokens & reset
   02) Base typography
   03) Layout primitives (container/section/grid)
   04) Components (buttons/cards/tables)
   05) Media (figure/media/captions)
   06) Navigation (header/dropdowns)
   07) Footer
   08) Forms
   09) Blog (index + single posts)
   10) Utilities (centered sections, equal grids, helpers)
   11) Accessibility
   12) Overrides & fixes (late-cascade)
   ========================================================= */

/* ==================== 01) Design tokens & reset ==================== */
:root{
  --accent_soft:#eef2ff;
  --bg:#f7f9fc;
  --text:#111827;
  --muted:#6b7280;
  --border:#e6eaf0;
  --card:#ffffff;
  --accent:#2563eb;
  --shadow: 0 12px 32px rgba(17,24,39,.10);
  --radius: 16px;
  --max: 1120px;
  --pad: 20px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:var(--font);line-height:1.55}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
/* ==================== 03) Layout primitives ==================== */
.container{max-width:var(--max);margin:0 auto;padding:0 var(--pad)}
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:12px;top:12px;width:auto;height:auto;padding:10px 12px;background:#fff;border:1px solid var(--border);border-radius:10px;z-index:10000}
header.site-header{position:sticky;top:0;background:rgba(255,255,255,.92);backdrop-filter:saturate(160%) blur(10px);border-bottom:1px solid var(--border);z-index:999}
.navbar{display:flex;align-items:center;gap:16px;min-height:74px}
.brand{display:flex;align-items:center;gap:12px;font-weight:700}
.brand img{height:54px;width:auto;display:block}
.nav{margin-left:auto;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.nav a{font-weight:600;color:var(--muted);padding:4px 10px;border-radius:10px}
.nav a[aria-current="page"]{color:var(--text);background:var(--card);border:1px solid var(--border)}
.cta{margin-left:6px}
/* ==================== 04) Components ==================== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:10px 14px;border-radius:12px;border:1px solid var(--border);background:#fff;font-weight:700}
.nav .btn{padding:5px 14px}
.btn:hover{text-decoration:none;box-shadow:var(--shadow)}
.btn.primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.btn.primary:hover{filter:brightness(1.02);transform:translateY(-1px)}
.btn.ghost{background:transparent}
.mobile-toggle{display:none;margin-left:auto}
.mobile-toggle button{padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:#fff;font-weight:700}
.hero{
  padding:72px 0;
  background: radial-gradient(1200px 500px at 70% 0%, var(--accent_soft), rgba(255,255,255,0) 55%);
}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center}
.grid-2--weighted{grid-template-columns:1.15fr .85fr;}
@media (min-width: 921px){
  .hero .grid-2--weighted,
  .page-hero-like .grid-2--weighted{
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
.kicker{color:var(--muted);font-weight:700;letter-spacing:.02em;text-transform:uppercase;font-size:12px}
/* ==================== 02) Base typography ==================== */
h1{font-size:52px;line-height:1.02;margin:10px 0 14px;letter-spacing:-0.02em}
h2{font-size:34px;line-height:1.12;margin:0 0 12px;letter-spacing:-0.01em}
h3{font-size:18px;line-height:1.2;margin:0 0 8px}

.lead{font-size:18px;color:#2b2b2b}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.section{padding:44px 0;border-top:1px solid var(--border)}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:14px}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:0 1px 0 rgba(0,0,0,.02)}
.card p{margin-bottom:10px}
.inline-cta{font-weight:700;color:#2b2b2b}
.bullets{margin:10px 0 0;padding-left:18px;color:var(--muted)}
.bullets li{margin:6px 0}
.placeholder{
  width:100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border:1px dashed #cfcfcf;
  background:
    linear-gradient(135deg, rgba(0,0,0,.02), rgba(0,0,0,.06));
  display:flex;align-items:center;justify-content:center;
  color:#4a4a4a;font-weight:700;text-align:center;padding:14px;
}
.band{background:var(--accent_soft);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.band .container{padding:28px var(--pad)}
.footer{padding:26px 0;color:var(--muted)}
.footer-top{display:flex;gap:18px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.footer-links{display:flex;flex-wrap:wrap;gap:12px}
.footer-links a{padding:6px 8px;border-radius:10px;border:1px solid var(--border);background:#fff}
.small{font-size:13px;color:var(--muted)}
.page-title{padding:40px 0 10px}
/* ==================== 09) Blog ==================== */
.blog-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:16px}
.post-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:18px}
.post-meta{font-size:12px;color:var(--muted);margin-bottom:8px}
hr.sep{border:none;border-top:1px solid var(--border);margin:18px 0}
/* ==================== 08) Forms ==================== */
.form{display:grid;gap:12px;max-width:560px}
input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  font-family:var(--font);
  font-size:15px;
}
textarea{min-height:140px;resize:vertical}
@media (max-width: 920px){
  h1{font-size:52px;line-height:1.02;margin:10px 0 14px;letter-spacing:-0.02em}
  .grid-2{grid-template-columns:1fr;gap:18px}
  .cards{grid-template-columns:1fr}
  .blog-grid{grid-template-columns:1fr}
  .nav{display:none;flex-direction:column;align-items:stretch;margin:0 0 14px}
  .nav.open{display:flex}
  .navbar{flex-wrap:wrap}
  .mobile-toggle{display:block}
  .cta{margin-left:0}
}

/* ==================== 05) Media ==================== */
figure.media{margin:0}
figure.media img{
  width:100%;
  height:auto;
  display:block;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
figcaption.media-caption{
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
}
.breadcrumbs{font-size:13px;color:var(--muted);margin-top:8px}
.breadcrumbs a{color:inherit}

/* ==================== 06) Navigation ==================== */
/* Dropdown nav */
.nav-dd{position:relative;display:inline-flex}
.nav-dd-btn{
  font-weight:600;color:var(--muted);padding:8px 10px;border-radius:10px;
  border:1px solid transparent;background:transparent;cursor:pointer;
}
.nav-dd-btn:hover{background:var(--card);border-color:var(--border)}
.nav-dd-menu{
  position:absolute;top:calc(100% - 6px);right:0;min-width:220px;
  background:#fff;border:1px solid var(--border);border-radius:14px;
  box-shadow:var(--shadow);padding:8px;display:none;z-index:2000;
}
.nav-dd-menu .dd-item{
  display:block;padding:10px 10px;border-radius:10px;color:var(--text);font-weight:600;
}
.nav-dd-menu .dd-item:hover{text-decoration:none;background:var(--card)}

.nav-dd:hover .nav-dd-btn{color:var(--text)}

/* ==================== 07) Footer ==================== */
/* Footer */
.site-footer{border-top:1px solid var(--border);background:#fff}
.footer-grid{
  display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:start;
  padding:28px var(--pad);
}
.footer-cols{display:grid;grid-template-columns:repeat(3, minmax(140px, 1fr));gap:18px;justify-self:end}
.footer-col{display:flex;flex-direction:column;gap:10px}
.footer-col-title{font-size:13px;font-weight:900;color:var(--text);margin-bottom:2px}
.footer-col a{color:var(--muted);font-size:13px}
.footer-col a:hover{color:var(--text);text-decoration:underline}
.footer-bottom{padding:16px var(--pad);border-top:1px solid var(--border);color:var(--muted)}
@media (max-width: 920px){
  .footer-grid{grid-template-columns:1fr}
  .footer-cols{justify-self:start;grid-template-columns:repeat(2, minmax(140px, 1fr))}
}
@media (max-width: 520px){
  .footer-cols{grid-template-columns:1fr}
}

/* Services dropdown container */
.nav-services{display:inline-flex;align-items:center;gap:6px}
.nav-services .services-link{padding:8px 10px;border-radius:10px}
.nav-services .services-link[aria-current="page"]{color:var(--text);background:var(--card);border:1px solid var(--border)}
.nav-dd-btn::after{content:" ▾";font-weight:800;color:var(--muted)}
.nav-dd:hover .nav-dd-btn::after{color:var(--text)}

/* Nav alignment fixes */
.navbar{flex-wrap:nowrap}
.nav{display:flex;align-items:center;gap:18px}
.nav .cta{margin-left:12px}
.nav-link{font-weight:600;color:var(--muted);padding:4px 10px;border-radius:10px}
.nav-link[aria-current="page"]{color:var(--text);background:var(--card);border:1px solid var(--border)}

/* Services dropdown */
.nav-dd{position:relative;display:inline-flex;align-items:center}
.nav-dd-menu{
  position:absolute;top:calc(100% - 6px);left:0;min-width:240px;
  background:#fff;border:1px solid var(--border);border-radius:14px;
  box-shadow:var(--shadow);padding:8px;display:none;z-index:2000;
}
.nav-dd:hover .nav-dd-menu{display:block}
.nav-dd-menu .dd-item{
  display:block;padding:10px 12px;border-radius:10px;
  font-weight:600;color:var(--text);
}
.nav-dd-menu .dd-item:hover{background:var(--card);text-decoration:none}

/* Secondary button */
.btn.secondary{background:var(--card);border-color:var(--border);color:var(--text)}
.btn.secondary:hover{text-decoration:none;box-shadow:var(--shadow)}
.btn.sm{padding:8px 12px;border-radius:12px;font-weight:800;font-size:14px}

/* Comparison matrix */
.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:var(--radius);background:#fff}
.compare{width:100%;border-collapse:separate;border-spacing:0;min-width:720px}
.compare th,.compare td{padding:12px 14px;border-bottom:1px solid var(--border);vertical-align:top}
.compare th{position:sticky;top:0;background:#fff;font-size:13px;text-transform:uppercase;letter-spacing:.02em;color:var(--muted)}
.compare td:first-child{font-weight:800;color:var(--text);width:36%}
.compare td.plan{font-weight:700;color:var(--text)}
.compare tr:last-child td{border-bottom:none}
.check{font-weight:900}
.muted{color:var(--muted)}

/* Center plan card CTA */
.card .actions{display:flex;justify-content:center}

/* Center comparison table icons/text */

.compare td.plan .check{display:inline-block}
.compare th{text-align:center}
.compare th:first-child{text-align:left}

/* Recommended plan highlight */
.card.recommended{
  border:2px solid #111;
  position:relative;
}
.card.recommended::before{
  content:"Recommended";
  position:absolute;
  top:-12px;
  left:16px;
  background:#111;
  color:#fff;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

/* Subtle visual centering for middle pricing column */
.cards .card:nth-child(2){
  transform: translateX(2px);
}

/* Footnote marker */
.footnote-marker{
  font-size:12px;
  vertical-align:super;
  cursor:help;
}

/* Final polish */

/* Mobile nav spacing */
@media (max-width: 920px){
  .nav{gap:10px}
  .nav .cta{margin-left:0}
  .nav .cta .btn{width:100%}
}

/* Two-column layout for fit section */
.fit-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
@media (max-width: 920px){
  .fit-grid{grid-template-columns:1fr;}
}

.btn{transition:transform .12s ease, box-shadow .12s ease, filter .12s ease}

/* Final polish layer */

/* More product-like links in content areas (keeps nav/footer unchanged) */
main .container p a,
main .container li a,
main .post-card a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
main .container p a:hover,
main .container li a:hover,
main .post-card a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Section rhythm */
.section{padding:56px 0;border-top:1px solid var(--border)}
.section.noborder{border-top:none}
.hero{padding:80px 0}

/* Tighter, consistent spacing */
.lead{font-size:18px;color:#1f2937}
p{margin:0 0 14px;color:var(--muted)}
h1{margin:10px 0 16px}
h2{margin:0 0 12px}
.page-title{padding:52px 0 16px}

/* Buttons: closer to app feel */
.btn{box-shadow:none}
.btn:hover{box-shadow:var(--shadow)}
.btn.primary{box-shadow:0 10px 28px rgba(37,99,235,.18)}
.btn.primary:hover{box-shadow:0 12px 34px rgba(37,99,235,.22)}
.btn.secondary{background:#fff}
.btn.secondary:hover{background:var(--accent_soft)}

/* Recommended badge + pills visual weight */
.card .badge{
  background:#fff;
  border-color:var(--border);
  color:var(--text);
}
.card.recommended{border-color:rgba(37,99,235,.28)}

.plan-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:2px 0 10px;
  padding:3px 12px;
  border:1px solid;
  border-radius:999px;
  font-size:14px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:.01em;
}

.card .plan-badge--no-signatures{
  background:#eef2f5;
  border-color:#c6d0db;
  color:#5f6b7a;
}

.card .plan-badge--includes-signatures{
  background:#dff7eb;
  border-color:#72d0aa;
  color:#3f7f67;
}

/* Pricing comparison table polish */
.table-wrap{background:#fff}
.compare th{background:#fff}
.compare td.plan{text-align:center}
.compare td.plan .muted{color:var(--muted)}
.compare td:first-child{color:var(--text)}
.compare tr:hover td{background:rgba(238,242,255,.35)}

/* Improve mobile readability for compare table */
@media (max-width: 920px){
  .section{padding:44px 0}
  .hero{padding:64px 0}
  .page-title{padding:44px 0 14px}
}

.blog-header-image img{width:100%;height:400px;object-fit:cover;border-radius:var(--radius);}

/* Blog article body layout */
.article-body h2{
  margin-top:28px;
}
.article-body h2:first-child{
  margin-top:0;
}
/* Tighten spacing around blog header image */
.blog-header-image{
  margin-top:8px;   /* was ~24px */
  margin-bottom:8px;
}
.blog-header-image + .media-caption{
  margin-top:4px;
}
.blog-header-image figcaption.media-caption{
  text-align: center;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* Blog spacing pass: headline → byline → image → content (final) */
.page-title.noborder{
  padding-top: 44px;
  padding-bottom: 14px; /* tighter above hero */
}
.page-title.noborder .kicker{ margin-bottom: 8px; }
.page-title.noborder h1{ margin-bottom: 10px; }
.page-title.noborder .lead{ margin-bottom: 14px; }
.page-title.noborder .small{ margin: 0 0 10px; }
.page-title.noborder .small + .small{ margin-top: 6px; margin-bottom: 0; }

/* Make the hero image section itself not feel like a full "page section" */
.blog-hero-section{
  padding-top: 18px;   /* was section default (~56px) */
  padding-bottom: 18px;
}

/* Tighten spacing around blog header image inside the hero section */
.blog-header-image{
  margin-top: 0;
  margin-bottom: 10px;
}
.blog-header-image img{
  width:100%;
  height:300px;
  object-fit:cover;
  border-radius:var(--radius);
  display:block;
}

/* Pull article body closer to hero */
.section.noborder .article-body{
  padding-top: 0;
}
.article-body h2{ margin-top: 28px; }
.article-body h2:first-child{ margin-top: 0; }

/* Style lock pass: consistent text widths, kicker system, image treatment, focus/hover, micro-motion, accent sheen */
/* 1) Consistent paragraph widths (readable measure) */
main .container p:not(.lead):not(.small),
main .container ul.bullets,
main .container ol{
  max-width: none;
}

/* 2) Eyebrow / kicker system */
.kicker{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:10px;
}
.page-title .kicker{ margin-bottom:10px; }
.page-title h1{ margin-top:0; }

/* 3) Image treatment: light border, subtle shadow, rounded, captions */
figure.media img{
  border:1px solid var(--border);
  box-shadow: 0 10px 30px rgba(17,24,39,.06);
  border-radius: var(--radius);
  background:#fff;
}
figcaption.media-caption{
  margin-top:8px;
  font-size:13px;
  color:var(--muted);
}

/* 4) Hover / focus states */
a{
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: 3px solid rgba(37,99,235,.28);
  outline-offset: 3px;
  border-radius: 12px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

/* 5) Tiny motion layer */
a, .btn, .card, .nav-dd-menu{
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, background-color .12s ease, border-color .12s ease;
}
.card:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(17,24,39,.10);
}
.nav-dd-menu{
  transform-origin: top left;
}
.nav-dd:hover .nav-dd-menu{
  transform: translateY(2px);
}

/* 6) Typography tune */
body{ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
p{ line-height:1.65; }
.article-body p{ line-height:1.7; }

/* Subtle accent gradient on 1–2 key sections */
.section.band.accent{
  background: linear-gradient(180deg, var(--accent_soft), rgba(255,255,255,0) 85%);
}
.section.band.accent .lead{ color:#111827; }

/* End style lock pass */

/* Page hero images (match homepage hero feel) */
.page-hero{padding-top:18px;padding-bottom:18px;}
.page-hero-image img{width:100%;height:auto;display:block;}

.page-title-hero{max-width: 530px; margin-left:auto}
@media (max-width: 920px){
  .page-title-hero{max-width:none}
}

/* Page-title hero: match homepage hero layout */
.page-hero-like .grid-2{align-items:center}
.page-hero-like .page-title-hero{max-width:530px;margin-left:auto}
.page-hero-like .page-title-hero img{width:100%;height:auto;display:block}
@media (max-width: 920px){
  .page-hero-like .page-title-hero{max-width:none}
}

.feature figure.media,
.section .grid-2 figure.media{
  max-width:530px; /* match homepage hero / right-side visuals */
}

.feature figure.media img,
.section .grid-2 figure.media img{
  width:100%;
  height:auto;
}

/* How It Works step icons */
.step-row{
  display:flex;
  gap:18px;
  align-items:flex-start;
}
.step-icon{
  width:100px;
  height:100px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 30px rgba(17,24,39,.06);
  color: var(--accent);
  flex: 0 0 100px;
  margin-top: 4px;
}
.step-content{
  flex:1;
  min-width:0;
}
@media (max-width: 920px){
  .step-row{align-items:flex-start}
  .step-icon{width:72px;height:72px;flex-basis:72px}
}

.grid-2 figure.media img,
.section figure.media img,
.feature figure.media img,
figure.media img{
  width: 100%;
  height: auto;
  display: block;
}

/* Keep captions aligned to the same width */
.grid-2 figure.media .media-caption,
.section figure.media .media-caption,
.feature figure.media .media-caption,
figure.media .media-caption{
  max-width: 520px;
}

/* 2) Mobile: always stack text first, image second (no flip-flop) */
@media (max-width: 920px){
  .grid-2{
    display: flex !important;
    flex-direction: column !important;
    gap: 18px;
  }
  .grid-2 > figure.media{
    order: 2 !important;
    width: 100%;
    max-width: 520px;
  }
  .grid-2 > div{
    order: 1 !important;
  }
  /* fallback: if figure isn't a direct child */
  .grid-2 figure.media{
    width: 100%;
    max-width: 520px;
  }
}

/* Symmetry: keep alternating section visuals consistent WITHOUT affecting card thumbnails */
/* Desktop: cap visuals inside two-column grids only */
.grid-2 > figure.media,
.grid-2 figure.media{
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.grid-2 > figure.media img,
.grid-2 figure.media img{
  width: 100%;
  height: auto;
  display: block;
}

/* Keep captions aligned to the same visual width in grid layouts */
.grid-2 figure.media .media-caption{
  max-width: 520px;
}

/* Mobile: always stack text first, image second (no flip-flop) for grid-2 sections */
@media (max-width: 920px){
  .grid-2{
    display: flex !important;
    flex-direction: column !important;
    gap: 18px;
  }
  .grid-2 > div{ order: 1 !important; }
  .grid-2 > figure.media{ order: 2 !important; }
}

/* Center image captions site-wide */
.media-caption,
figure.media figcaption{
  text-align: center;
}

/* Blog featured post thumbnails */
.post-card .post-thumb{
  width:100%;
  max-height:120px;
  object-fit:cover;
  border-radius:12px;
  margin:8px 0 10px;
  border:1px solid var(--border);
}

/* Header auth buttons: Log In (outline) + Sign Up (green) */
.nav .cta{
  display:inline-flex;
  gap:10px;
  align-items:center;
}
.nav .cta .btn.primary{
  background:#32b858;
  border-color:#32b858;
}
.nav .cta .btn.primary:hover{
  filter:brightness(0.98);
  transform:translateY(-1px);
}
.btn.outline{
  background:transparent;
  border:1px solid #9ca3af;
  color:#6b7280;
  font-weight:800;
}
.btn.outline:hover{
  text-decoration:none;
  border-color:#6b7280;
  color:#374151;
  background:rgba(255,255,255,.6);
  box-shadow:var(--shadow);
}

/* Slightly reduce header auth button height */
.nav .cta .btn{
  padding:4px 14px;
  line-height:1.1;
}

/* Back to top button */
#backToTop{
  position:fixed;
  right:20px;
  bottom:24px;
  width:44px;
  height:44px;
  border-radius:50%;
  border:none;
  background:#2563eb;
  color:#fff;
  font-size:20px;
  font-weight:700;
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 30px rgba(37,99,235,.35);
  z-index:999;
}
#backToTop:hover{
  background:#1d4ed8;
  transform:translateY(-2px);
}

/* 0_5_8: Section divider lines — keep nav + top section, remove body dividers */

/* Remove divider lines between body sections */
.section{
  border-top: none !important;
}

/* Bands shouldn't add extra divider lines either */
.band{
  border-top: none !important;
  border-bottom: none !important;
}

/* Keep line under navigation (header already has it, but enforce) */
header.site-header{
  border-bottom: 1px solid var(--border);
}

/* Keep a single line after the top section (hero / page title) */
.hero{
  border-bottom: 1px solid var(--border);
}
.page-title{
  border-bottom: 1px solid var(--border);
}

/* Prevent double lines when hero/page-title already sits under header */
.hero.noborder,
.page-title.noborder{
  border-top: none !important;
}

/* Restore divider for "Need Custom Creative" section only */
.need-custom-creative{
  border-top: 1px solid var(--border);
}

/* 0_6_0: Hero intro gradient (only first section below nav) */
.hero,
.page-title{
  background: linear-gradient(
    180deg,
    rgba(59,130,246,0.045) 0%,
    rgba(255,255,255,1) 72%
  );
}

/* 0_6_1: Mobile nav dropdown panel (simple, clean) */
@media (max-width: 920px){
  /* Header row */
  .navbar{position:relative; flex-wrap:nowrap;}

  /* Hamburger button */
  .mobile-toggle button{
    width:44px;
    height:44px;
    padding:0;
    border-radius:12px;
    border:1px solid var(--border);
    background:#fff;
    text-indent:-9999px; /* hide "Menu" text */
    overflow:hidden;
    position:relative;
  }
  .mobile-toggle button::before,
  .mobile-toggle button::after{
    content:"";
    position:absolute;
    left:12px;
    right:12px;
    height:2px;
    background: #111827;
    border-radius:2px;
  }
  .mobile-toggle button::before{ top:15px; }
  .mobile-toggle button::after{ top:27px; }
  .mobile-toggle button span{display:none;}

  /* Middle line using box-shadow trick */
  .mobile-toggle button{
    box-shadow: inset 0 -0px 0 rgba(0,0,0,0);
  }
  .mobile-toggle button::after{
    box-shadow: 0 -6px 0 0 #111827; /* creates the middle bar */
  }

  /* Collapse nav into dropdown panel */
  #site-nav.nav{
    display:none !important;
    position:absolute;
    top:74px;
    left:0;
    right:0;
    flex-direction:column;
    align-items:stretch;
    flex-wrap:nowrap;
    gap:2px;
    margin:0;
    padding:4px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    box-shadow: var(--shadow);
  }
  #site-nav.nav.open{
    display:flex !important;
  }

  /* Nav links inside panel */
  #site-nav.nav a.nav-link,
  #site-nav.nav > a{
    padding:2px 12px;
    border-radius:12px;
    border:1px solid transparent;
    color:var(--text);
    font-weight:700;
  }
  #site-nav.nav a[aria-current="page"]{
    background: var(--accent_soft);
    border-color: var(--border);
  }

  /* Services dropdown: show submenu always on mobile (no hover dependency) */
  .nav-dd-menu{
    position:static !important;
    display:block !important;
    box-shadow:none !important;
    border:none !important;
    padding:0 0 0 8px !important;
    margin:3px 0 0 0 !important;
    background:transparent !important;
  }
  .nav-dd-menu .dd-item{
    background:transparent !important;
    border:none !important;
    padding:4px 12px !important;
    color:var(--muted) !important;
    font-weight:700 !important;
  }
  .nav-dd-menu .dd-item:hover{
    background: var(--card) !important;
    color: var(--text) !important;
  }

  /* CTA buttons inside panel */
  #site-nav.nav .cta{
    display:flex;
    gap:6px;
    margin-top:4px;
  }
  #site-nav.nav .cta .btn{
    width:100%;
    justify-content:center;
  }
}
/* end 0_6_1: Mobile nav dropdown panel */

/* 0_6_2: Mobile menu animation + X toggle state */
@media (max-width: 920px){
  /* Animate dropdown panel */
  #site-nav.nav{
    opacity:0;
    transform: translateY(-6px);
    pointer-events:none;
    transition: opacity .12s ease, transform .12s ease;
  }
  #site-nav.nav.open{
    opacity:1;
    transform: translateY(0);
    pointer-events:auto;
  }

  /* Hamburger -> X when open */
  .mobile-toggle button.is-open::before{
    top:21px;
    transform: rotate(45deg);
  }
  .mobile-toggle button.is-open::after{
    top:21px;
    transform: rotate(-45deg);
    box-shadow:none;
  }
}

/* 0_6_3: Mobile nav animation fix (no display:none so opacity/slide animates) */
@media (max-width: 920px){
  #site-nav.nav{
    display:flex !important;
    max-height:0;
    overflow:hidden;
    opacity:0;
    transform: translateY(-6px);
    pointer-events:none;
    transition: opacity .12s ease, transform .12s ease, max-height .18s ease;
  }
  #site-nav.nav.open{
    max-height: 80vh;
    overflow-y:auto;
    -webkit-overflow-scrolling: touch;
    opacity:1;
    transform: translateY(0);
    pointer-events:auto;
  }
}

/* 0_6_5: Mobile Compare Plans toggle (desktop unchanged) */
.compare-toggle{
  display:none;
  gap:8px;
  margin:14px 0 14px;
}
.compare-tab{
  flex:1;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted);
  font-weight:800;
  cursor:pointer;
}
.compare-tab.is-active{
  background:var(--accent_soft);
  color:var(--text);
  border-color:rgba(37,99,235,.25);
}
.compare-tab:focus-visible{
  outline: 3px solid rgba(37,99,235,.28);
  outline-offset: 3px;
}
@media (max-width: 920px){
  .compare-toggle{display:flex;}
  .table-wrap{overflow:visible;}
  table.compare{min-width:unset;}
  /* Default mobile view: Feature + Growth */
  table.compare th:nth-child(2),
  table.compare td:nth-child(2),
  table.compare th:nth-child(4),
  table.compare td:nth-child(4){display:none;}

  table.compare.plan-starter th:nth-child(2),
  table.compare.plan-starter td:nth-child(2){display:table-cell;}
  table.compare.plan-starter th:nth-child(3),
  table.compare.plan-starter td:nth-child(3){display:none;}
  table.compare.plan-starter th:nth-child(4),
  table.compare.plan-starter td:nth-child(4){display:none;}

  table.compare.plan-growth th:nth-child(3),
  table.compare.plan-growth td:nth-child(3){display:table-cell;}
  table.compare.plan-growth th:nth-child(2),
  table.compare.plan-growth td:nth-child(2){display:none;}
  table.compare.plan-growth th:nth-child(4),
  table.compare.plan-growth td:nth-child(4){display:none;}

  table.compare.plan-scale th:nth-child(4),
  table.compare.plan-scale td:nth-child(4){display:table-cell;}
  table.compare.plan-scale th:nth-child(2),
  table.compare.plan-scale td:nth-child(2){display:none;}
  table.compare.plan-scale th:nth-child(3),
  table.compare.plan-scale td:nth-child(3){display:none;}

  table.compare td:first-child{width:auto;}
}

/* 0_6_6: Samples page - normalize card mockup size in Signature Examples + QR & Redirect Examples */
.sig-examples .card figure.media,
.qr-examples .card figure.media{
  max-width: 520px;
  margin-left:auto;
  margin-right:auto;
}
.sig-examples .card figure.media img,
.qr-examples .card figure.media img{
  width:100%;
  height:auto;
  display:block;
}

/* 0_6_7: Samples page - signature carousel + email window */
.signature-carousel{
  display:flex;
  flex-direction:column;
  gap:16px;
  align-items:stretch;
  margin-top:24px;
}
.signature-carousel__controls{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  gap:10px;
}
.signature-carousel__filters{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.carousel-filter{
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  border-radius:999px;
  padding:8px 14px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.carousel-filter:hover{
  border-color:#cbd5e1;
}
.carousel-filter.is-active{
  background:#0b63f3;
  color:#fff;
  border-color:#0b63f3;
}
.carousel-filter:focus-visible{
  outline:3px solid rgba(37,99,235,.28);
  outline-offset:2px;
}
.signature-carousel__nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}
.signature-carousel__viewport{
  overflow:hidden;
  border-radius:20px;
}
.signature-carousel__track{
  display:block;
}
.signature-sample{
  display:none;
  flex:0 0 auto;
  width:100%;
  padding:24px;
  background:#f8fafc;
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:0 10px 30px rgba(15,23,42,.08);
}
.signature-sample.is-active{
  display:block;
}
.signature-sample__header{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:16px;
}
.sample-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  padding:0;
  margin:2px 0 0;
}
.sample-tags li{
  padding:4px 10px;
  border-radius:999px;
  border:1px solid #cbd5e1;
  background:#f1f5f9;
  color:#334155;
  font-size:12px;
  line-height:1.3;
  font-weight:600;
}
.signature-sample .actions{
  display:flex;
  justify-content:flex-end;
  margin-top:16px;
}
.carousel-btn{
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-size:28px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.carousel-btn:hover{
  transform: translateY(-2px);
  box-shadow:0 10px 20px rgba(15,23,42,.12);
}
.carousel-btn:focus-visible{
  outline:3px solid rgba(37,99,235,.28);
  outline-offset:4px;
}
.signature-carousel__meta{
  display:flex;
  justify-content:center;
  color:var(--muted);
  font-weight:600;
}
.signature-carousel__pagination{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.carousel-page-btn{
  min-width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}
.carousel-page-btn.is-active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}
.carousel-page-btn:focus-visible{
  outline:3px solid rgba(37,99,235,.28);
  outline-offset:2px;
}
.email-window{
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  overflow:hidden;
}
.email-window__bar{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  background:linear-gradient(90deg, #e2e8f0 0%, #edf2f7 100%);
  border-bottom:1px solid rgba(15,23,42,.08);
}
.email-window__bar .window-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#94a3b8;
}
.email-window__bar .window-dot:first-child{
  background:#f87171;
}
.email-window__bar .window-dot:nth-child(2){
  background:#facc15;
}
.email-window__bar .window-dot:nth-child(3){
  background:#4ade80;
}
.email-window__bar .window-title{
  margin-left:auto;
  font-size:12px;
  color:#475569;
  font-weight:600;
}
.email-window__toolbar{
  display:grid;
  gap:6px;
  padding:12px 14px;
  background:#f8fafc;
  border-bottom:1px solid rgba(15,23,42,.08);
  font-size:13px;
  color:#334155;
}
.email-window__body{
  padding:16px 14px 20px;
  font-size:14px;
  color:#0f172a;
}
.signature-html{
  margin-top:12px;
  padding:0;
  border:0;
  background:transparent;
}
.signature-html table{
  width:auto;
}
@media (max-width: 920px){
  .signature-carousel{
    align-items:stretch;
  }
  .carousel-btn{
    width:40px;
    height:40px;
  }
  .carousel-filter{
    font-size:13px;
    padding:8px 12px;
  }
  .sig-examples .container{
    padding-left:calc(var(--pad) * 0.15);
    padding-right:calc(var(--pad) * 0.15);
  }
  .signature-sample{
    padding:24px calc(24px * 0.15);
  }
  .email-window__bar{
    padding-left:calc(14px * 0.15);
    padding-right:calc(14px * 0.15);
  }
  .email-window__toolbar{
    padding-left:calc(14px * 0.15);
    padding-right:calc(14px * 0.15);
  }
  .email-window__body{
    padding-left:calc(14px * 0.15);
    padding-right:calc(14px * 0.15);
  }
  .signature-html{
    padding-left:calc(12px * 0.15);
    padding-right:calc(12px * 0.15);
  }
}

/* Keep bulleted lists readable: center the block, keep text left-aligned */
#services-ongoing-management ul {
  display: inline-block;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

/* Center button groups within these sections */
#services-control-scalability .btn-row,
#services-control-scalability .button-row,
#services-control-scalability .actions,
#services-ongoing-management .btn-row,
#services-ongoing-management .button-row,
#services-ongoing-management .actions {
  justify-content: center;
}

/* Keep lists readable on homepage sections */
#home-built-on-trust ul,
#home-week-one ul {
  display: inline-block;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

/* Center CTA buttons */
#home-built-on-trust .btn-row,
#home-week-one .btn-row,
#home-built-on-trust .actions,
#home-week-one .actions {
  justify-content: center;
}

/* =========================================================
   Centered text-only section pattern (opt-in via class)
   Use for sections without images where you want:
   - centered headings + copy
   - readable line-length
   - centered CTAs
   - readable bulleted lists (centered block, left-aligned text)
   ========================================================= */

/* ==================== 10) Utilities ==================== */
.section--centered {
  text-align: center;
}

/* Keep copy readable */
.section--centered p {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

/* Center common CTA/button rows when they are flex containers */
.section--centered .btn-row,
.section--centered .button-row,
.section--centered .actions {
  justify-content: center;
}

/* Ensure single buttons can center naturally */
.section--centered .btn,
.section--centered .button,
.section--centered a.btn,
.section--centered a.button {
  display: inline-flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Keep bulleted lists readable: center the block, keep text left-aligned */
.section--centered ul,
.section--centered ol {
  display: inline-block;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

/* Generic helper for centered standalone blocks (non-section) */
.centered-block {
  text-align: center;
}

.centered-block p {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Fix: button groups spreading apart inside .section--centered
   Some pages use flex rows with space-between; additionally,
   some sections include inline-block lists that can sit next
   to inline-flex buttons. Keep buttons grouped AND on their
   own centered line.
   ========================================================= */

.section--centered .btn-row,
.section--centered .button-row,
.section--centered .actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
}

/* =========================================================
   Normalize media sizing in split (grid-2) sections
   When the media column appears on the left, it previously
   inherited the wider 1.15fr column, making images larger.
   This caps figure.media width so left/right images match.
   ========================================================= */

@media (min-width: 921px){
  .grid-2 > figure.media,
  .grid-2 figure.media{
    width: 100%;
    max-width: 530px;
    justify-self: center;
  }
}

/* ==================== 12) Overrides & fixes ==================== */
/* =========================================================
   Override: ensure split-section media is the same size
   Some earlier rules set a larger max-width (e.g., 560px)
   on .section .grid-2 figure.media with higher specificity.
   This override (higher specificity + later) normalizes the
   media width for BOTH left and right placements.
   ========================================================= */

@media (min-width: 921px){
  .section .grid-2 > figure.media,
  .section .grid-2 figure.media{
    width: 100%;
    max-width: clamp(360px, 42vw, 530px);
    justify-self: center;
  }

  .section .grid-2 figure.media .media-caption{
    max-width: clamp(360px, 42vw, 530px);
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================================
   Equal-width split sections (opt-in)
   Use when alternating image/text columns should be equal,
   preventing the right column from appearing narrower.
   ========================================================= */

@media (min-width: 921px){
  .grid-2.grid-2--equal{
    grid-template-columns: 1fr 1fr;
  }
}

/* Blog typography: prose (single posts) */
.prose{
  line-height: 1.7;
}
.prose p,
.prose ul,
.prose ol{
  max-width: 92ch;
}
.prose h2{
  margin-top: 34px;
}
.prose h2:first-child{
  margin-top: 0;
}

/* Blog article text should be full width (within the container) */
.article-body.container p:not(.lead):not(.small),
.article-body.container ul,
.article-body.container ol{
  max-width: none;
}
.article-body.container h2{
  max-width: none;
}
.article-body.prose p,
.article-body.prose ul,
.article-body.prose ol{
  max-width: none;
}

/* Forms: baseline states (WP plugins will inherit) */
input:invalid, textarea:invalid, select:invalid{
  border-color: rgba(220,38,38,.5);
}
.form-error{
  color:#b91c1c;
  font-weight:600;
}
.form-success{
  color:#166534;
  font-weight:600;
}


/* =========================================================
   Art-first images: remove programmatic masks/outlines/shadows
   (Let the artwork itself define framing and style.)
   ========================================================= */

figure.media img,
.section figure.media img,
.feature figure.media img,
.grid-2 figure.media img,
.blog-header-image img{
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
