﻿/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
  --primary: #2a41e8;
  --primary-hover: #1e33c9;
  --dark: #000000;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --red: #ff0000;
  --font-heading: 'Jost', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --max-width: 1200px;
  --header-height: 108px;
  --alert-banner-height: 37px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

.sr-only, .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Layout
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 900px;
}

.section {
  padding: 50px 0;
}

.section__heading {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  color: var(--gray-800);
  line-height: 1.3;
}

.section__subtext {
  font-size: 20px;
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 30px;
}

/* ========================================
   Alert Banner
   ======================================== */
.alert-banner {
  background: #fff7ed; /* soft warm cream */
  color: #7c2d12;
  text-align: center;
  padding: 8px 20px;
  cursor: pointer;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #fde0c4;
}

.alert-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.alert-banner__text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7c2d12;
}

.alert-banner__text::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.alert-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f59e0b;
  color: #1f1500;
  padding: 4px 12px;
  border: 1px solid #d97706;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: background 0.15s, transform 0.12s;
}

.alert-banner:hover .alert-banner__btn {
  background: #fbbf24;
  transform: translateY(-1px);
}

/* ========================================
   Header — clean SaaS, sticky, light
   ======================================== */
.site-header {
  background-color: var(--white);
  background-image: none !important;
  position: relative;
  z-index: 999;
  padding: calc(var(--alert-banner-space, 0px) + 8px) 24px 8px;
  margin-top: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

/* Reserve top space for the fixed alert banner ONLY when it is present.
   --alert-banner-space defaults to 0, so commenting out the banner collapses
   the space at every breakpoint (all .site-header padding rules use this var). */
.alert-banner + .site-header {
  --alert-banner-space: var(--alert-banner-height);
}

.header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  height: 74px;
  gap: 30px;
}

.header__logo {
  flex-shrink: 0;
}

/* Logo + brand text */
.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header__logo-img {
  width: 40px;
  height: 40px;
  display: block;
}

.header__brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.01em;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.main-nav__list {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
}

.main-nav__item {
  position: relative;
}

.main-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gray-600);
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 9px;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}

.main-nav__link:hover {
  color: var(--primary);
  background-color: rgba(42, 65, 232, 0.06);
}

.main-nav__leading {
  color: var(--primary);
  font-size: 12px;
}

/* Login link — bordered button style, sized to match Get Started */
.main-nav__link--login {
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 11px 22px;
  border-radius: 10px;
  /* match the 3D drop on Get Started so the bottoms line up */
  box-shadow: 0 4px 0 var(--gray-200);
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.12s, box-shadow 0.12s;
}

.main-nav__link--login:hover {
  border-color: var(--primary);
  background: rgba(42, 65, 232, 0.04);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 var(--gray-200);
}

.main-nav__link--login:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--gray-200);
}

/* "40+" badge inline in nav link */
.main-nav__badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  background: rgba(42, 65, 232, 0.10);
  color: var(--primary);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-arrow {
  font-size: 9px;
  color: var(--gray-600);
  transition: transform 0.2s;
  margin-left: 2px;
}

.main-nav__link:hover .nav-arrow {
  color: var(--primary);
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 260px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
  padding: 8px;
  list-style: none;
  z-index: 1000;
  margin-top: 6px;
}

.dropdown li a {
  display: block;
  padding: 9px 14px;
  color: var(--gray-800);
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.dropdown li a:hover {
  background: rgba(42, 65, 232, 0.06);
  color: var(--primary);
}

.has-dropdown:hover > .dropdown {
  display: block;
}

.has-dropdown:hover > .main-nav__link .nav-arrow {
  transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  transform: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  padding: 22px;
  z-index: 1000;
  min-width: 800px;
  max-width: min(1100px, calc(100vw - 32px));
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.mega-menu__heading {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.mega-menu__column ul {
  list-style: none;
}

.mega-menu__column li a {
  display: block;
  padding: 6px 8px;
  font-size: 13.5px;
  color: var(--gray-800);
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.mega-menu__column li a:hover {
  color: var(--primary);
  background: rgba(42, 65, 232, 0.05);
}

.has-mega-menu:hover > .mega-menu {
  display: block;
}

.header__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
}

/* CTA — 3D pressable, sized to match the footer Get Started Free button */
.header__cta .btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-family: var(--font-heading);
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 4px 0 #1e33c9,
    0 6px 14px rgba(42, 65, 232, 0.32);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.header__cta .btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 5px 0 #1e33c9,
    0 9px 18px rgba(42, 65, 232, 0.38);
}

.header__cta .btn--primary:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 1px 0 #1e33c9,
    0 2px 4px rgba(42, 65, 232, 0.20);
}

/* Mobile-only CTA (sits left of the hamburger) */
.header__mobile-cta {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ========================================
   Page Title Bar
   ======================================== */
.page-title-bar {
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  padding: 118px 20px;
  text-align: center;
}

.page-title-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-title-bar h1 {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  max-width: 100%;
  margin: 0 auto;
}

/* ========================================
   Intro Section
   ======================================== */
.section--intro {
  padding: 40px 0 20px;
}

/* ========================================
   Tool Section
   ======================================== */
.section--tool {
  padding: 20px 0 50px;
}

.tool-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.tool__form {
  flex: 1;
  min-width: 0;
}

.tool__form-heading {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.form-select,
.form-textarea,
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-select:focus,
.form-textarea:focus,
.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  height: 150px;
  resize: vertical;
}

.advanced-settings {
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}

.advanced-settings .form-select {
  flex: 2;
}

.advanced-settings .form-input {
  flex: 1;
}

/* Tool Stats (Right Column) */
.tool__stats {
  width: 200px;
  flex-shrink: 0;
  border: 2px dotted var(--primary);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-box {
  text-align: center;
}

.stat-box__value {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.stat-box__label {
  font-size: 14px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Output Boxes */
.output-boxes {
  margin-top: 16px;
}

.output-box {
  position: relative;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px 16px 16px 16px;
  padding-right: 56px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.output-box .copyButton {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.output-box .copyButton:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.output-box .copyButton:active {
  transform: scale(0.95);
}

.output-box .copyButton.copied {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
}

.output-box .markdown-body { font-size: 15px; }
.output-box .markdown-body p:not(:last-child) { margin-bottom: 10px; }
.output-box .markdown-body h1, .output-box .markdown-body h2, .output-box .markdown-body h3 {
  margin-top: 12px; margin-bottom: 8px;
}

.loading-spinner {
  text-align: center;
  padding: 20px;
  color: var(--primary);
  font-size: 18px;
}

/* ========================================
   Steps Section
   ======================================== */
.section--steps {
  background: var(--gray-100);
  padding: 60px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.step-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.step-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}

.step-card__text {
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-800);
  font-family: var(--font-heading);
}

/* ========================================
   Content Section (Column 13)
   ======================================== */
.section--content {
  padding: 50px 0 60px;
}

.content-heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 32px 0 16px;
  line-height: 1.3;
}

h3.content-heading {
  font-size: 28px;
}

.content-heading--bold {
  font-size: 25px;
  margin: 28px 0 12px;
}

.content-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.content-text a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}

.content-list {
  margin: 12px 0 24px 24px;
  font-size: 17px;
  line-height: 1.8;
}

.content-list li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.content-list li strong {
  color: var(--gray-800);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.btn--secondary {
  background: var(--gray-200);
  color: var(--gray-800);
}

.btn--secondary:hover {
  background: var(--gray-300);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn--text {
  background: none;
  color: var(--primary);
  padding: 8px 0;
  font-size: 14px;
}

.btn--large {
  padding: 16px 40px;
  font-size: 20px;
}

.btn--full {
  width: 100%;
}

.btn--generate {
  width: 100%;
  padding: 14px;
  font-size: 18px;
}

.btn--muted {
  background: var(--gray-300);
  color: var(--gray-800);
}

.advanced-toggle {
  margin-bottom: 12px;
}

/* ========================================
   Pro Banner
   ======================================== */
.pro-banner {
  max-width: 600px;
  margin: 30px auto;
  padding: 24px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 12px;
  text-align: center;
}

.pro-banner h3 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 12px;
}

.pro-banner ul {
  list-style: none;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--gray-600);
}

.pro-banner ul li {
  margin-bottom: 4px;
}

.pro-banner__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ========================================
   Footer — light, blends with page bg
   ======================================== */
.site-footer {
  background-color: transparent;
  background-image: none !important;
  padding: 100px 0 28px;
  color: var(--gray-800);
  border-top: none;
  position: relative;
}

/* Wavy top border — primary blue line, no shadow */
.site-footer::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 30' preserveAspectRatio='none'><path d='M0 15 Q 360 -3 720 15 T 1440 15' fill='none' stroke='%232a41e8' stroke-width='3' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr) minmax(220px, 1fr);
  gap: 56px;
  align-items: start;
  margin-bottom: 40px;
  max-width: 100%;
  padding: 0 42px;
}

.footer__logo img {
  width: 44px;
  height: 44px;
}

.footer__brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand-name {
  margin: 0;
  color: var(--gray-800);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.footer__tagline {
  margin-top: 14px;
  max-width: 380px;
  color: var(--gray-600);
  font-size: 14.5px;
  line-height: 1.65;
}

/* CTA — 3D pressable, primary blue */
.footer__brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 12px 22px !important;
  font-size: 14px !important;
  font-weight: 700;
  border-radius: 10px !important;
  font-family: var(--font-heading);
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 4px 0 #1e33c9,
    0 6px 14px rgba(42, 65, 232, 0.32) !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.footer__brand-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 5px 0 #1e33c9,
    0 9px 18px rgba(42, 65, 232, 0.38) !important;
}

.footer__brand-cta:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 1px 0 #1e33c9,
    0 2px 4px rgba(42, 65, 232, 0.20) !important;
}

.footer__brand-cta i {
  font-size: 12px;
}

/* Reassurance line below the CTA */
.footer__brand-cta-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-600);
  font-family: var(--font-heading);
}

.footer__brand-cta-meta i {
  color: #16a34a;
  font-size: 12px;
}

.footer__cta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray-300);
}

/* Social icons */
/* Right column — Follow us + Contact */
.footer__connect {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer__connect-section h3 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.footer__social {
  display: flex;
  gap: 8px;
  margin-top: 0;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.footer__social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer__contact {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.footer__contact a i {
  width: 16px;
  color: var(--gray-600);
  font-size: 13px;
}

.footer__contact a:hover {
  color: var(--primary);
}

.footer__contact a:hover i {
  color: var(--primary);
}

.footer__links {
  display: grid;
  /* minmax(0, 1fr) lets columns shrink to fit. With minmax(150px, 1fr),
     4 × 150 + 3 × 32 = 696px is required — but at 1280-1366px effective
     viewports (e.g. 125% browser zoom) the parent column is only ~542-585px,
     so the Legal column overflows into the Connect column. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer__column h3 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.footer__column h3::after {
  display: none;
}

.footer__column a {
  display: block;
  padding: 7px 0;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.15s;
}

.footer__column a:hover {
  color: var(--gray-800);
}

.footer__apps {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 24px;
  /* nowrap + flex-shrink on the children keeps the App Store + Google Play
     badges side-by-side. The brand column can be as narrow as ~260px at
     125% zoom; default 42px-tall badges (~142px wide each) wrap to a new
     row at that width. */
  flex-wrap: nowrap;
}

.footer__apps a {
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  border-radius: 9px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10);
}

.footer__apps a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.app-badge {
  height: 38px;
  width: auto;
  max-width: 100%;
  display: block;
}

.footer__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 42px 0;
  max-width: 100%;
  /* border-top: 1px solid var(--gray-200); */
}

.footer__bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--gray-600);
  letter-spacing: 0.1px;
  font-family: var(--font-body);
}

/* "All systems operational" status indicator */
.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  color: #15803d;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 600;
}

.footer__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.20);
}

/* ========================================
   Post Footer Brand Motion
   ======================================== */
.post-footer-brand {
  background: #030303;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 14px 0 84px;
  margin-bottom: 0;
}

.post-footer-brand__track {
  display: flex;
  width: max-content;
  gap: 52px;
  animation: brandMarquee 20s linear infinite;
}

.post-footer-brand__track span {
  font-family: var(--font-heading);
  font-size: clamp(56px, 10vw, 130px);
  font-weight: 700;
  letter-spacing: 0.2em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.1);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.38);
  text-shadow: 0 0 28px rgba(42, 65, 232, 0.3);
  animation: brandPulse 4s ease-in-out infinite;
}

.post-footer-brand__track span:nth-child(2) {
  animation-delay: 0.8s;
}

.post-footer-brand__track span:nth-child(3) {
  animation-delay: 1.6s;
}


.post-footer-brand__track span:nth-child(2) {
  animation-delay: 0.8s;
}

.post-footer-brand__track span:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes brandMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

@keyframes brandMarqueeReverse {
  0% { transform: translateX(-33.333%); }
  100% { transform: translateX(0); }
}

@keyframes brandPulse {
  0%,
  100% {
    color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 18px rgba(42, 65, 232, 0.22);
  }
  50% {
    color: rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 36px rgba(42, 65, 232, 0.45);
  }
}

/* ========================================
   Sticky Bottom Bar
   ======================================== */
#stickyBottomBar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(-45deg, #2a41e8, #4e6bff, #6c8cff, #2a41e8);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#stickyBottomBar a {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

#stickyBottomBar .arrow {
  margin-left: 6px;
}

/* ========================================
   Back to Top
   ======================================== */
.to-top-link {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.to-top-link:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.to-top-link.visible {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  overflow: hidden;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.modal__header h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
}

.modal__close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray-600);
  line-height: 1;
}

.modal__body {
  padding: 24px;
}

.modal__body h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 16px;
  text-align: center;
}

.text-red {
  color: var(--red);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--gray-600);
}

.modal__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.modal__close-btn {
  background: none;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  font-size: 14px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
  .site-header {
    padding: calc(var(--alert-banner-space, 0px) + 8px) 20px 0;
    z-index: 9998;
  }

  .header__inner {
    gap: 16px;
  }

  .header__mobile-cta {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 9px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: 9px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.30),
      0 3px 0 #1e33c9,
      0 4px 10px rgba(42, 65, 232, 0.32);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }

  .header__mobile-cta:hover {
    color: #fff;
  }

  .header__mobile-cta:active {
    transform: translateY(2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.20),
      0 1px 0 #1e33c9,
      0 1px 2px rgba(42, 65, 232, 0.20);
  }

  .mobile-menu-toggle {
    display: flex;
    margin-left: 0;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: calc(var(--alert-banner-height) + 80px);
    left: 12px;
    right: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.15);
    padding: 12px;
    z-index: 9999;
    max-height: calc(100vh - var(--alert-banner-height) - 100px);
    overflow-y: auto;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav__list {
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
  }

  .main-nav__link {
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 10px;
    background: transparent;
  }

  .has-dropdown.is-open > .dropdown,
  .has-mega-menu.is-open > .mega-menu {
    display: block;
  }

  .has-dropdown.is-open > .main-nav__link .nav-arrow,
  .has-mega-menu.is-open > .main-nav__link .nav-arrow {
    transform: rotate(180deg);
  }

  .dropdown,
  .mega-menu {
    position: static;
    box-shadow: none;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    min-width: auto;
    transform: none;
    padding: 6px;
    margin: 4px 0;
  }

  .dropdown li a,
  .mega-menu__column li a {
    color: var(--gray-800);
  }

  .dropdown li a:hover,
  .mega-menu__column li a:hover {
    color: var(--primary);
    background: rgba(42, 65, 232, 0.08);
  }

  .mega-menu__inner {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .header__cta {
    display: none;
  }

  .page-title-bar h1 {
    font-size: 36px;
  }

  .section__heading {
    font-size: 30px;
  }

  .tool-container {
    flex-direction: column;
  }

  .tool__stats {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 0 24px;
  }

  .footer__links {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .footer__connect {
    flex-direction: row;
    gap: 48px;
    flex-wrap: wrap;
  }

  .footer__connect-section {
    flex: 1 1 auto;
    min-width: 180px;
  }

  .footer__tagline {
    max-width: 100%;
  }

  .post-footer-brand__track {
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .footer__links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --alert-banner-height: 33px;
  }

  .alert-banner {
    font-size: 13px;
    padding: 8px 12px;
  }

  .site-header {
    padding: calc(var(--alert-banner-space, 0px) + 6px) 14px 0;
  }

  .page-title-bar {
    padding: 78px 16px;
  }

  .page-title-bar--blog {
    padding: 34px 16px 40px;
  }

  .page-title-bar h1 {
    font-size: 28px;
  }

  .section__heading {
    font-size: 24px;
  }

  .section__subtext {
    font-size: 16px;
  }

  .content-heading {
    font-size: 24px;
  }

  h3.content-heading {
    font-size: 22px;
  }

  .tool__stats {
    display: none;
  }

  .mega-menu__inner {
    grid-template-columns: 1fr;
  }

  .footer__main {
    gap: 36px;
    padding: 0 20px;
  }

  .footer__links {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 18px;
    align-items: start;
  }

  .footer__brand,
  .footer__column,
  .footer__connect-section {
    text-align: left;
  }

  .footer__brand-head {
    justify-content: flex-start;
  }

  .footer__brand-cta {
    display: inline-flex;
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
    align-self: flex-start;
  }

  .footer__apps {
    justify-content: flex-start;
    gap: 12px;
  }

  .footer__connect {
    flex-direction: column;
    gap: 28px;
  }

  .footer__connect-section {
    min-width: 0;
  }

  .footer__social {
    justify-content: flex-start;
  }

  .footer__contact {
    align-items: flex-start;
  }

  .footer__column a {
    font-size: 14px;
    padding: 5px 0;
  }

  .footer__brand-name {
    font-size: 22px;
  }

  .footer__tagline {
    font-size: 14px;
  }

  .footer__bottom {
    text-align: left;
    justify-content: flex-start;
    padding: 22px 20px 0;
  }

  .post-footer-brand {
    padding: 12px 0 86px;
    margin-bottom: 0;
  }

  .post-footer-brand__track {
    gap: 22px;
    animation-duration: 16s;
  }

  .pro-banner__actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-footer-brand__track {
    animation: none;
  }

  .post-footer-brand__track span {
    animation: none;
  }
}

/* ========================================
   Blog Post
   ======================================== */
.blog-post {
  position: relative;
}

/* Reading Progress Bar */
.blog-post__progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
}

.blog-post__progress::-webkit-progress-bar {
  background: transparent;
}

.blog-post__progress::-webkit-progress-value {
  background: var(--primary);
}

.blog-post__progress::-moz-progress-bar {
  background: var(--primary);
}

/* Post Meta */
.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  word-break: break-word;
}
@media (max-width: 640px) {
  .blog-post__meta {
    gap: 0.5rem 1rem;
    padding: 1rem 16px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }
  .blog-post__meta > * { flex: 0 1 auto; }
  .blog-post__author,
  .blog-post__date,
  .blog-post__read-time,
  .blog-post__categories { max-width: 100%; }
  .blog-post__categories { display: flex; flex-wrap: wrap; gap: 6px; }
}

.blog-post__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-post__author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-post__author a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.blog-post__author a:hover {
  color: var(--primary);
}

.blog-post__date {
  color: var(--text-muted);
}

.blog-post__read-time {
  color: var(--text-muted);
}

.blog-post__read-time i {
  margin-right: 0.25rem;
}

.blog-post__category {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--bg-light);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
}

.blog-post__category:hover {
  background: var(--primary);
  color: #fff;
}

/* Featured Image */
.blog-post__featured-image {
  margin-bottom: 2rem;
}

.blog-post__hero-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Blog content + TOC sidebar layout */
.blog-post__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 40px;
  max-width: 1740px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
}
.blog-post__content {
  min-width: 0;
  max-width: 1300px;
}
.blog-post__toc-wrapper {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 4px;
}
@media (max-width: 960px) {
  .blog-post__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .blog-post__toc-wrapper {
    position: static;
    max-height: none;
    order: -1;
    margin-bottom: 24px;
  }
}

/* Blog Table of Contents */
.blog-post__toc {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: var(--font-heading);
}
.blog-post__toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
}
.blog-post__toc-title i {
  color: var(--primary);
  margin-right: 10px;
}
.blog-post__toc-chevron {
  transition: transform 0.2s;
  color: var(--gray-600);
  font-size: 13px;
}
.blog-post__toc-chevron.collapsed {
  transform: rotate(180deg);
}
.blog-post__toc-list,
.blog-post__toc-sublist {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 4px;
}
.blog-post__toc-sublist {
  margin: 6px 0 6px 20px;
  padding-left: 12px;
  border-left: 2px solid var(--gray-300);
}
.blog-post__toc-item {
  padding: 4px 0;
}
.blog-post__toc-item a {
  color: var(--gray-800);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
  line-height: 1.5;
}
.blog-post__toc-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.blog-post__toc-item--h3 a {
  font-weight: 400;
  font-size: 14px;
  color: var(--gray-600);
}

/* Blog Content */
.blog-post__content {
  padding-bottom: 3rem;
  scroll-behavior: smooth;
}
.blog-post__content h2[id],
.blog-post__content h3[id] {
  scroll-margin-top: 100px;
}

.blog-post__content .content-heading {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-post__content .content-text {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.blog-post__content .content-text a {
  color: var(--primary);
  text-decoration: underline;
}

.blog-post__content .content-text a:hover {
  color: var(--primary-dark, #1a2eb8);
}

/* Content Images */
.content-image {
  margin: 1.5rem 0;
}

.content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Content Tables */
.content-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.content-table th,
.content-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.content-table th {
  background: var(--bg-light);
  font-weight: 600;
}

.content-table tr:nth-child(even) {
  background: var(--bg-light);
}

/* Blockquotes */
.content-blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--bg-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.content-blockquote p {
  margin: 0;
  line-height: 1.7;
}

/* Blog CTA Section */
.blog-post__cta {
  background: var(--bg-dark, #1a1a2e);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
  margin-top: 2rem;
}

.blog-post__cta h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.blog-post__cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.blog-post__cta .btn {
  margin-top: 1.5rem;
}

/* Blog Responsive */
@media (max-width: 600px) {
  .blog-post__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .content-image img {
    border-radius: 4px;
  }

  .content-blockquote {
    padding: 0.75rem 1rem;
  }
}

/* Write Tool Page styles moved to /css/write-tool.css
   (loaded only on the write-tool template). */

