:root {
  --navy: #1D3557;
  --teal: #457B9D;
  --orange: #E76F51;
  --offwhite: #F8F9FA;
  --charcoal: #2B2D42;
  --border: #e0e4f0;
  --text: #111827;
  --muted: #4b5563;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(17,24,39,.08);
}

* { box-sizing: border-box; }
html, body { padding:0; margin:0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--offwhite);
  color: var(--navy);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; }

/* =========================
   Header + Navigation
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

/* Brand text + tagline */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 19px;
  font-weight: 900;
  color: var(--navy);
}

.brand-tagline {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 4px;
}

/* NOTE: Removed the problematic rule:
   .brand span { color: var(--navy); font-size: 18px; }
   It was overriding your tagline colors/sizes.
*/

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  box-shadow: 0 6px 14px rgba(29,53,87,.18);
}

/* Desktop nav default */
.nav {
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--charcoal);
  font-weight: 600;
}

.nav a.active, .nav a:hover {
  background: rgba(69,123,157,.10);
  text-decoration: none;
}

/* Mobile hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  background: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: var(--offwhite);
  border-color: rgba(29,53,87,.25);
}
.btn-primary:hover { filter: brightness(1.02); }
.btn-secondary {
  background: #ffffff;
  color: var(--navy);
}

/* =========================
   Hero + Cards
   ========================= */

.hero {
  padding: 56px 0 28px 0;
  background:
    radial-gradient(900px 450px at 20% 5%, rgba(69,123,157,.18), transparent 60%),
    radial-gradient(900px 450px at 90% 10%, rgba(231,111,81,.14), transparent 60%);
}
.hero-grid {
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  align-items: start;
}
.hero h1 {
  margin: 0 0 12px 0;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.7px;
}
.hero p.lead {
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 18px;
}
.hero-actions { display:flex; gap: 12px; flex-wrap: wrap; }

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card h3 { margin: 0 0 10px 0; color: var(--charcoal); }
.card p { margin: 0; color: var(--muted); }

/* Step cards (icon + subtle CTA) */
.card.card-step{
  position: relative;
  padding-top: 20px;
}

.card-step .step-icon{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background:
    radial-gradient(24px 24px at 30% 30%, rgba(69,123,157,.22), transparent 70%),
    radial-gradient(26px 26px at 75% 65%, rgba(231,111,81,.18), transparent 70%),
    rgba(69,123,157,.08);
  border: 1px solid rgba(69,123,157,.22);
  margin-bottom: 10px;
}

.card-step h3{
  margin: 0 0 8px 0;
  color: var(--charcoal);
}

.card-step p{
  margin: 0;
  color: var(--muted);
}

.card-step .step-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(248,249,250,.9);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none !important;
}

.card-step .step-cta:hover{
  text-decoration: none !important;
  border-color: rgba(29,53,87,.28);
  box-shadow: 0 10px 18px rgba(17,24,39,.08);
}

.card-step .step-cta:focus-visible{
  outline: 3px solid rgba(231,111,81,.40);
  outline-offset: 3px;
}

/* Sections / Grids */
.section { padding: 36px 0; }
.section h2 {
  margin: 0 0 14px 0;
  font-size: 26px;
  color: var(--charcoal);
}
.section p { color: var(--muted); }

.grid-3 {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2 {
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.list-check {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.badge {
  display:inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(69,123,157,.10);
  color: var(--navy);
}
.note {
  border-left: 4px solid var(--orange);
  padding: 10px 12px;
  background: rgba(231,111,81,.06);
  border-radius: 12px;
  color: var(--muted);
}

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.faq details + details { margin-top: 10px; }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--charcoal);
}
.faq .answer { padding-top: 8px; color: var(--muted); }

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer-inner {
  padding: 20px 0;
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.footer-links {
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--muted); font-weight: 650; }
.small { font-size: 14px; color: var(--muted); }

/* Page Header */
.page-header {
  padding: 34px 0 16px 0;
}
.page-header h1 {
  margin: 0 0 8px 0;
  color: var(--navy);
  font-size: clamp(26px, 2.8vw, 40px);
}
.page-header p { margin: 0; color: var(--muted); }

/* Pricing */
.pricing-cards .card {
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.price-line {
  display:flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.price { font-size: 28px; font-weight: 900; color: var(--navy); }
.per { color: var(--muted); font-weight: 700; }

/* =========================
   Rotating banner (Index)
   ========================= */

.rot-banner {
  background: var(--navy);
  color: var(--offwhite);
  border-bottom: 4px solid var(--orange);
}
.rot-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
.rot-banner .rot-text {
  font-weight: 850;
  letter-spacing: .7px;
  font-size: 14px;
  text-transform: uppercase;
}
.rot-banner .rot-word {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 6px;
  border-radius: 999px;
  background: rgba(248,249,250,.14);
  border: 1px solid rgba(248,249,250,.20);
}

/* =========================
   Nav dropdown (Tips)
   ========================= */

.nav-dropdown {
  position: relative;
}

.nav-dropbtn {
  list-style: none;
  cursor: pointer;
}

/* Hide default triangle */
.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropmenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 0;
  z-index: 100;

  /* force vertical stacking */
  display: flex;
  flex-direction: column;
}

.nav-dropmenu a {
  display: block;
  padding: 10px 14px;
  color: var(--charcoal);
  font-weight: 600;
  white-space: nowrap;
}

.nav-dropmenu a:hover {
  background: rgba(69,123,157,.10);
  text-decoration: none;
}

/* Caret for Tips dropdown (fixed encoding) */
.nav-dropbtn::after {
  content: " ▾";
  font-size: 12px;
  opacity: 0.7;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 860px) {

  /* Layout */
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  /* Header tweaks */
  .brand-logo { height: 36px; }
  .brand-tagline { display: none; } /* saves vertical space on mobile */

  /* Show hamburger on mobile */
  .nav-toggle { display: inline-flex; }

  /* MOBILE NAV: hidden until opened (force wins over any earlier nav rules) */
  header.site-header .nav { display: none !important; }

  header.site-header .nav.is-open {
    display: block !important;
    position: absolute;
    top: 64px;
    right: 12px;
    width: min(92vw, 260px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
    padding: 10px;
    z-index: 1000;
  }

  header.site-header .nav a {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    border-radius: 10px;
  }

  header.site-header .nav a:last-child {
    border-bottom: none;
  }

  /* Make dropdown menu behave like an inline section on mobile */
  .nav-dropmenu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 0 0;
  }

  .nav-dropmenu a { padding-left: 22px; }
}

@media (min-width: 861px) {
  .nav-toggle { display: none; }
}

@media (max-width: 420px) {
  .rot-banner .rot-text { font-size: 12px; }
}
