/* ============================================================
   ChangeOrdersPro — Shared Stylesheet
   Used across all marketing site pages.
   ============================================================ */

:root {
  --ink: #0F1F2E;
  --ink-2: #3F4856;
  --ink-3: #5F6B7A;
  --ink-4: #94A0AE;
  --green: #00C853;
  --green-soft: #E8F8EE;
  --green-deep: #00963F;
  --green-darker: #007A33;
  --white: #FFFFFF;
  --off-white: #FAFBFC;
  --grey-100: #F4F6F8;
  --grey-200: #E4E8EC;
  --grey-300: #C9D0D8;
  --warning: #F59E0B;
  --warning-soft: #FEF3C7;
  --danger: #EF4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
  line-height: 1.5;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER (shared across all pages)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-100);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand-wordmark {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.025em;
}
.brand-wordmark .pro { color: var(--green); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
.nav-links a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-cta {
  background: var(--green);
  color: white !important;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.15s;
}
.nav-cta:hover {
  background: var(--green-deep) !important;
  color: white !important;
}

/* Mark journey animation - plays once on page load */
@keyframes journey-fill {
  from { stroke-dashoffset: 264; }
  to { stroke-dashoffset: 0; }
}
@keyframes journey-solid {
  0% { transform: scale(0); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes journey-tick {
  from { stroke-dashoffset: 60; }
  to { stroke-dashoffset: 0; }
}
.brand-mark .ring-empty {
  fill: none;
  stroke: var(--grey-300);
  stroke-width: 6;
}
.brand-mark .ring-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: journey-fill 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.brand-mark .circle-solid {
  fill: var(--green);
  transform-origin: 50% 50%;
  transform: scale(0);
  animation: journey-solid 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s forwards;
}
.brand-mark .tick-path {
  stroke: white;
  stroke-width: 9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: journey-tick 0.5s cubic-bezier(0.65, 0, 0.35, 1) 1.7s forwards;
}

/* ============================================================
   PAGE HERO (used on internal pages)
   ============================================================ */
.page-hero {
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--green-soft) 0%, transparent 70%);
  opacity: 0.5;
  z-index: 0;
}
.page-hero-content { position: relative; z-index: 1; }
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 600;
  border-radius: 99px;
  margin-bottom: 22px;
  border: 1px solid rgba(0, 200, 83, 0.15);
}
.page-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.page-hero h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  max-width: 880px;
}
.page-hero h1 .accent {
  color: var(--green-deep);
  position: relative;
  display: inline-block;
}
.page-hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--green-soft);
  z-index: -1;
}
.page-hero-sub {
  font-size: 18px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 640px;
}
.page-hero-sub strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   COMMON SECTION TYPOGRAPHY
   ============================================================ */
section { padding: 72px 0; }
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 720px;
}
.section-sub {
  font-size: 17px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 640px;
  margin-bottom: 40px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--green);
  color: white;
}
.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,200,83,0.3);
}
.btn-secondary {
  background: var(--ink);
  color: white;
}
.btn-secondary:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--grey-200);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 10px;
}

/* ============================================================
   MODAL (for explaining what buttons do)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 46, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: modal-fade 0.2s ease-out;
}
.modal-overlay.show { display: flex; }
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(15,31,46,0.2);
  position: relative;
  animation: modal-slide 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-slide {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grey-100);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--grey-200); color: var(--ink); }
.modal-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}
.modal h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.modal p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 16px;
}
.modal p strong { color: var(--ink); font-weight: 600; }
.modal-cta {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER (shared)
   ============================================================ */
footer {
  background: var(--off-white);
  border-top: 1px solid var(--grey-200);
  padding: 56px 0 32px;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 320px; }
.footer-brand p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-top: 12px;
}
.footer h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer ul li a {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s;
}
.footer ul li a:hover { color: var(--green-deep); }
.footer-bottom {
  border-top: 1px solid var(--grey-200);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-4);
}

/* ============================================================
   FAQ (shared component)
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}
.faq-item {
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item:hover { border-color: var(--grey-300); }
.faq-question {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  user-select: none;
}
.faq-question::after {
  content: '+';
  color: var(--green);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 22px 22px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links a:not(.nav-cta):not(:last-child) { display: none; }
  section { padding: 48px 0; }
  .page-hero { padding: 32px 0; }
  .modal { padding: 24px; }
}
