/* ==========================================================================
   TMMR.io Design System v2
   ========================
   SaaS product website for tour management software.
   Built around the TMMR app design language (Open Sans, blue/teal palette).
   ========================================================================== */

/* ── 1. Brand Tokens ── */
:root {
  --color-primary:      #1E293B;
  --color-secondary:    #2A8FBB;
  --color-accent:       #3BA4DC;
  --color-accent-hover: #2A8FBB;
  --color-accent-soft:  #7CC8EE;

  --color-burgundy:     #7A2A35;
  --color-gold:         #C9923E;
  --color-sage:         #5E8E6A;
  --color-eggshell:     #F5F3EE;

  --color-bg:           #FAFBFB;
  --color-white:        #FFFFFF;
  --color-text:         #1E293B;
  --color-text-body:    #374151;
  --color-text-muted:   #64748B;
  --color-border:       #E2E8F0;
  --color-border-light: #F1F5F9;

  --font-family: 'Open Sans', sans-serif;

  --nav-height:     72px;
  --section-pad:    96px;
  --section-pad-sm: 64px;
  --container-max:  1200px;
  --container-wide: 1360px;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --shadow-img: 0 24px 48px -12px rgba(0,0,0,.2);

  --transition: .2s ease;

  --cat-drivers:   #3BA4DC;
  --cat-routing:   #2A8FBB;
  --cat-business:  #C9923E;
  --cat-network:   var(--color-accent);
}


/* ── 2. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 17px; }

body {
  font-family: var(--font-family);
  color: var(--color-text-body);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }
strong { font-weight: 600; }


/* ── 3. Typography ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 12px; }
h4 { font-size: 1.125rem; margin-bottom: 8px; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.text-lg { font-size: 1.125rem; line-height: 1.7; }
.text-muted { color: var(--color-text-muted); }


/* ── 4. Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 800px; }


/* ── 5. Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--color-primary);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: var(--shadow-lg); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.25rem;
}
.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-links > li > a:hover { background: rgba(255,255,255,.1); color: var(--color-white); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 280px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 12px 0;
  z-index: 100;
  border: 1px solid var(--color-border);
}
.dropdown-menu.show { display: block; }
.dropdown-menu a {
  display: block;
  padding: 8px 24px;
  color: var(--color-text-body);
  font-size: .875rem;
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu a:hover { background: var(--color-border-light); color: var(--color-accent); }
.dropdown-label {
  display: block;
  padding: 12px 24px 4px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 40px;
}
.dropdown-label:first-child { padding-top: 4px; }
.dropdown-label::after {
  content: '\25B8';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .6rem;
  transition: transform .2s ease;
}
.dropdown-section.open > .dropdown-label::after { transform: translateY(-50%) rotate(90deg); }
.dropdown-section-links { display: none; overflow: hidden; }
.dropdown-section.open > .dropdown-section-links { display: block; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition);
  position: absolute; left: 6px;
}
.nav-toggle span { top: 17px; }
.nav-toggle span::before { content: ''; top: -7px; }
.nav-toggle span::after  { content: ''; top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after  { transform: rotate(-45deg); top: 0; }


/* ── 6. Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s ease;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-white); }

.btn-outline { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { border-color: var(--color-white); color: var(--color-white); }

.btn-outline-dark { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-outline-dark:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-dark { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.btn-dark:hover { background: #2d3a4f; border-color: #2d3a4f; color: var(--color-white); }

.btn-sm { padding: 8px 20px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }


/* ── 7. Heroes ── */
.hero {
  padding: calc(var(--nav-height) + 72px) 0 88px;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  overflow: hidden;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 { color: var(--color-white); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-text p { color: rgba(255,255,255,.9); font-size: 1.15rem; line-height: 1.7; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-img);
  width: 100%;
  height: auto;
}

/* Feature page hero: light background */
.page-hero {
  padding: calc(var(--nav-height) + 40px) 0 56px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-accent);
}
.page-hero[data-category="drivers"]::before  { background: var(--cat-drivers); }
.page-hero[data-category="routing"]::before   { background: var(--cat-routing); }
.page-hero[data-category="business"]::before  { background: var(--cat-business); }
.page-hero[data-category="network"]::before   { background: var(--cat-network); }

.page-hero .container { max-width: 900px; }
.page-hero h1 { color: var(--color-text); }
.page-hero p { color: var(--color-text-body); font-size: 1.1rem; line-height: 1.7; max-width: 720px; }
.page-hero .hero-ctas { margin-top: 24px; }

.section-label {
  display: inline-block;
  font-size: .84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-label--drivers  { color: var(--cat-drivers); }
.section-label--routing  { color: var(--cat-routing); }
.section-label--business { color: var(--cat-business); }
.section-label--network  { color: var(--cat-network); }
.section-label--burgundy { color: var(--color-burgundy); }
.section-label--white    { color: var(--color-accent-soft); }


/* ── 8. Sections ── */
.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--color-white); }
.section--eggshell { background: var(--color-eggshell); }
.section--dark { background: var(--color-primary); color: var(--color-white); }
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark p { color: rgba(255,255,255,.8); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-header p { color: var(--color-text-muted); font-size: 1.1rem; }


/* ── 9. Cards ── */
.card-grid { display: grid; gap: 28px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.card p { color: var(--color-text-body); font-size: 1rem; line-height: 1.6; }

.card-icon {
  width: 48px; height: 48px;
  background: var(--color-border-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--color-accent);
}
.card-icon svg { width: 24px; height: 24px; flex-shrink: 0; }

/* Pillar cards (homepage) */
.pillar-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--color-border);
  transition: box-shadow .25s ease, transform .25s ease;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.pillar-card--drivers::before  { background: var(--cat-drivers); }
.pillar-card--routing::before  { background: var(--cat-routing); }
.pillar-card--business::before { background: var(--cat-business); }
.pillar-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pillar-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.pillar-card p { color: var(--color-text-muted); margin-bottom: 20px; }
.pillar-card ul { list-style: none; margin-bottom: 20px; }
.pillar-card li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 1rem;
  color: var(--color-text-body);
}
.pillar-card li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}
.pillar-card .pillar-link {
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


/* ── 10. Feature Rows ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--color-border); }
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
.feature-row-text h3 { font-size: 1.35rem; margin-bottom: 12px; }
.feature-row-text p { color: var(--color-text-body); font-size: 1rem; line-height: 1.7; }
.feature-row-visual {
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feature-row-visual img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.feature-row-visual .placeholder-icon { font-size: 3rem; opacity: .25; }


/* ── 11. Timeline Steps ── */
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  position: relative;
}
.timeline-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.666% + 12px);
  right: calc(16.666% + 12px);
  height: 2px;
  background: var(--color-border);
}
.timeline-step { text-align: center; position: relative; z-index: 1; }
.timeline-step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.timeline-step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.timeline-step p { font-size: .9rem; color: var(--color-text-muted); max-width: 280px; margin: 0 auto; line-height: 1.6; }


/* ── 12. Comparison Table ── */
.comparison-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
}
.comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--color-border);
}
.comparison-table th:first-child { color: var(--color-text-muted); }
.comparison-table th:nth-child(2) { color: var(--color-text-muted); }
.comparison-table th:nth-child(3) { color: var(--color-accent); }
.comparison-table td {
  padding: 14px 20px;
  font-size: .95rem;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-body);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .check { color: var(--color-sage); font-weight: 700; }
.comparison-table .cross { color: var(--color-text-muted); }


/* ── 13. FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p, .faq-item div { padding: 0 0 20px; color: var(--color-text-body); line-height: 1.7; font-size: .95rem; }


/* ── 14. Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: box-shadow var(--transition), transform .2s ease;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
}
.pricing-card h3 { margin-bottom: 8px; }
.pricing-card .price { font-size: 2.25rem; font-weight: 700; color: var(--color-accent); margin: 16px 0 8px; }
.pricing-card .price-note { font-size: .85rem; color: var(--color-text-muted); margin-bottom: 24px; }
.pricing-card .feature-list { text-align: left; margin-bottom: 28px; flex-grow: 1; }
.pricing-card .btn { margin-top: auto; width: 100%; }
.pricing-card .price--label { font-size: 1.35rem; letter-spacing: -.01em; }

.badge-popular {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.feature-list { list-style: none; }
.feature-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--color-text-body);
  font-size: .95rem;
  line-height: 1.5;
}
.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-sage);
  font-weight: 700;
}

.feature-compare { margin-top: 64px; }
.feature-compare table { width: 100%; border-collapse: collapse; }
.feature-compare th, .feature-compare td {
  padding: 12px 16px;
  text-align: center;
  font-size: .9rem;
  border-bottom: 1px solid var(--color-border-light);
}
.feature-compare th:first-child, .feature-compare td:first-child { text-align: left; font-weight: 500; }
.feature-compare thead th { font-weight: 700; border-bottom: 2px solid var(--color-border); padding-bottom: 16px; }


/* ── 15. Stat Strip ── */
.stat-strip {
  padding: 40px 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stat-strip .container { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--color-accent); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-muted); font-weight: 600; }


/* ── 16. Breadcrumbs ── */
.breadcrumb {
  padding: calc(var(--nav-height) + 16px) 0 0;
  font-size: .84rem;
  color: var(--color-text-muted);
  background: var(--color-white);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { margin: 0 6px; }

/* ── 17. Compliance Library ── */
.compliance-topic-list { display: flex; flex-wrap: wrap; gap: 10px; }
.compliance-topic-list > a, .compliance-topic-list > span { padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-white); color: var(--color-text-body); font-size: .9rem; font-weight: 600; }
.compliance-topic-list > a:hover { color: var(--color-accent); border-color: var(--color-accent); }
.compliance-verification { display: inline-block; margin-top: 16px; padding: 8px 12px; border-left: 3px solid var(--color-gold); background: var(--color-eggshell); color: var(--color-text-muted); font-size: .86rem; }
.compliance-answer { padding: 22px 24px; border-left: 4px solid var(--color-accent); background: var(--color-border-light); color: var(--color-text); font-size: 1.08rem; font-weight: 600; }
.compliance-takeaways { margin-top: 24px; }
.compliance-facts-table { max-width: none; }
.compliance-facts-table th, .compliance-facts-table td { text-align: left; vertical-align: top; }
.compliance-facts-table th { width: 35%; }
.compliance-steps { padding-left: 24px; }
.compliance-steps li { padding: 0 0 14px 8px; }
.compliance-sources { padding-left: 20px; }
.compliance-sources li { margin-bottom: 10px; }


/* ── 17. Related Features ── */
.related-features { padding: var(--section-pad-sm) 0; background: var(--color-eggshell); }
.related-features h2 { text-align: center; margin-bottom: 40px; }
.related-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform .2s ease;
  display: block;
  color: inherit;
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.related-card .section-label { margin-bottom: 8px; }
.related-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.related-card p { font-size: .9rem; color: var(--color-text-muted); margin-bottom: 12px; }
.related-card .card-link { font-weight: 600; font-size: .9rem; color: var(--color-accent); }


/* ── 18. CTA Banner ── */
.cta-banner {
  padding: 80px 0;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}
.cta-banner h2 { color: var(--color-white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-banner .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }


/* ── 19. Contact Form ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; color: var(--color-text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59,164,220,.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-intro { margin-bottom: 24px; color: var(--color-text-body); }
.form-optional { font-weight: 400; color: var(--color-text-muted); }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-size: .95rem; color: var(--color-text-body); }
.form-status--error { color: var(--color-burgundy); }
.form-success {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { margin-bottom: 20px; color: var(--color-text-body); }

.contact-info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-info-card h3 { margin-bottom: 20px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 20px; font-size: .95rem; color: var(--color-text-body); }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item strong { display: block; color: var(--color-text); margin-bottom: 2px; }


/* ── 20. Footer ── */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
  overflow-wrap: anywhere;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  margin-bottom: 56px;
}
.footer-brand { min-width: 0; }
.footer-brand p { font-size: .94rem; line-height: 1.55; margin: 12px 0 0 0; }
.footer-brand .footer-meta { font-size: .85rem; margin-top: 10px; opacity: .85; }
.footer-brand .nav-logo { margin-bottom: 4px; }
.footer-col { min-width: 0; }
.footer-col h4 {
  color: var(--color-white);
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .94rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--color-accent-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: .84rem; }


/* ── 21. Utilities ── */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* Wine country callout */
.callout-wine { padding: var(--section-pad-sm) 0; background: var(--color-eggshell); }
.callout-wine .container { max-width: 800px; }
.callout-wine h2 { margin-bottom: 16px; }

/* Testimonial */
.testimonial-section { padding: var(--section-pad-sm) 0; background: var(--color-white); }
.testimonial-section .container { max-width: 800px; text-align: center; }
.testimonial-section blockquote {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-text);
  font-style: italic;
  margin: 0 0 24px;
  padding: 0;
  border: none;
}
.testimonial-section cite {
  display: block;
  font-style: normal;
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Screenshot frame */
.screenshot-frame {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 4px;
  overflow: hidden;
}
.screenshot-frame img { border-radius: var(--radius-lg); width: 100%; height: auto; }


/* ── 22. Billing Toggle & Pricing v2 ── */
.billing-toggle {
  display: inline-flex;
  background: var(--color-eggshell);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}
.billing-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: 9px 22px;
  font-size: .9rem;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  color: var(--color-text-body);
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.billing-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
}
.billing-btn .badge-save {
  background: var(--color-sage);
  color: var(--color-white);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.billing-btn.active .badge-save { background: rgba(255,255,255,.25); }

.no-fees-bar {
  background: var(--color-eggshell);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
}
.no-fees-bar .container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.no-fees-bar span {
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-text);
}
.no-fees-bar span::before {
  content: '\2713  ';
  color: var(--color-sage);
  font-weight: 700;
}

.pricing-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 840px; margin: 0 auto; }

.price-driver-line {
  font-size: .875rem;
  color: var(--color-text-muted);
  margin: -8px 0 16px;
  font-weight: 500;
}

.badge-coming-soon {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.pricing-card.coming-soon { opacity: .8; border-style: dashed; }
.pricing-card.coming-soon:hover { opacity: 1; }

.pricing-explainer {
  max-width: 720px;
  margin: 40px auto 0;
  background: var(--color-eggshell);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  text-align: center;
  font-size: .9rem;
  line-height: 1.65;
  color: var(--color-text-body);
}

/* ── 23. Animations ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.stagger > .fade-in-up:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-in-up:nth-child(2) { transition-delay: .1s; }
.stagger > .fade-in-up:nth-child(3) { transition-delay: .15s; }
.stagger > .fade-in-up:nth-child(4) { transition-delay: .2s; }
.stagger > .fade-in-up:nth-child(5) { transition-delay: .25s; }
.stagger > .fade-in-up:nth-child(6) { transition-delay: .3s; }


/* ── 23. Responsive ── */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-image { max-width: 560px; margin: 0 auto; }
  .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row--reverse { direction: ltr; }
  .timeline-steps::before { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; --section-pad-sm: 48px; --nav-height: 64px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 12px 0; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,.05);
    border-radius: 0;
    border: none;
    padding: 0 0 0 16px;
  }
  .dropdown-menu a { color: rgba(255,255,255,.9); padding: 8px 12px; font-size: .95rem; }
  .dropdown-label { color: rgba(255,255,255,.55); font-size: .8rem; }
  .dropdown-menu { min-width: 0; }

  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .pricing-grid, .pricing-grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline-steps { grid-template-columns: 1fr; gap: 32px; }
  .stat-strip .container { gap: 32px; }
  .comparison-table { display: block; overflow-x: auto; }
  .comparison-table th,
  .comparison-table td { padding: 10px 12px; font-size: .82rem; }
  .compliance-facts-table { display: block; overflow-x: auto; }
  .testimonial-section blockquote { font-size: 1.05rem; }
}

@media (max-width: 480px) {
  :root { --section-pad: 48px; --section-pad-sm: 36px; }
  .container { padding: 0 16px; }
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.4rem; }
  .hero { padding-top: calc(var(--nav-height) + 48px); padding-bottom: 56px; }
  .cta-banner { padding: 48px 0; }
  .pillar-card { padding: 24px; }
  .pricing-card { padding: 28px 20px; }
  .feature-row { padding: 32px 0; }
  .stat-strip .container { gap: 24px; }
  .stat-value { font-size: 1.5rem; }
  .billing-toggle { width: 100%; justify-content: center; }
  .billing-btn { white-space: normal; padding: 8px 14px; font-size: .82rem; flex: 1; text-align: center; }
}
