/* PriceTool Marketing Site — Core Stylesheet */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --navy:       #0f1d35;
  --navy-light: #1a2b4a;
  --blue:       #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: #dbeafe;
  --sky:        #0ea5e9;
  --teal:       #0d9488;
  --slate:      #475569;
  --slate-light:#94a3b8;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-800:   #1e293b;
  --white:      #ffffff;
  --red:        #dc2626;
  --red-light:  #fef2f2;
  --green:      #16a34a;
  --green-light:#f0fdf4;
  --orange:     #ea580c;
  --orange-light:#fff7ed;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --container: 1200px;
  --section-pad: 96px;
  --section-pad-mobile: 56px;

  /* Transitions */
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-hover); }

/* ===== Typography ===== */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; font-weight: 700; }
h1 { font-size: 3.25rem; letter-spacing: -0.025em; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }
p  { margin-bottom: 1rem; }

.text-slate { color: var(--slate); }
.text-blue  { color: var(--blue); }
.text-red   { color: var(--red); }
.text-green { color: var(--green); }
.text-sm    { font-size: 0.875rem; }
.text-lg    { font-size: 1.125rem; }
.text-xl    { font-size: 1.25rem; line-height: 1.75; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy .text-slate { color: var(--slate-light); }
.section--blue-light { background: var(--blue-light); }

.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--gap { gap: 16px; }
.flex--col { flex-direction: column; }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 768px; }
.max-w-2xl { max-width: 640px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-1 { margin-top: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: 72px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.navbar__logo span { color: var(--blue); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar__links a {
  color: var(--slate);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}
.navbar__links a:hover { color: var(--navy); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--slate);
  font-size: 0.9375rem;
  font-weight: 500;
  background: none;
  border: none;
  font-family: var(--font-sans);
}
.dropdown__toggle:hover { color: var(--navy); }
.dropdown__toggle svg { width: 16px; height: 16px; transition: transform var(--transition); }
.dropdown:hover .dropdown__toggle svg { transform: rotate(180deg); }

.dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  padding-top: 8px;
}
.dropdown:hover .dropdown__menu { display: block; }

.dropdown__menu-inner {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  padding: 8px;
  min-width: 240px;
}

.dropdown__menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: var(--gray-800);
  font-weight: 500;
}
.dropdown__menu a:hover {
  background: var(--gray-50);
  color: var(--blue);
}
.dropdown__menu .desc {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--slate-light);
  margin-top: 2px;
}

/* Mobile nav */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.navbar__toggle svg { width: 24px; height: 24px; color: var(--navy); }

/* ===== Hero ===== */
.hero {
  padding: 160px 0 var(--section-pad);
  text-align: center;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--slate);
  max-width: 720px;
  margin: 0 auto 40px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn--outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}
.btn--white:hover {
  background: var(--gray-50);
  color: var(--navy);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--blue);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.card__icon--blue  { background: var(--blue-light); color: var(--blue); }
.card__icon--red   { background: var(--red-light); color: var(--red); }
.card__icon--green { background: var(--green-light); color: var(--green); }
.card__icon--orange { background: var(--orange-light); color: var(--orange); }

.card h3 { margin-bottom: 12px; }
.card p { color: var(--slate); }

/* ===== Feature Row (alternating image/text) ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}
.feature-row:not(:last-child) {
  border-bottom: 1px solid var(--gray-200);
}
.feature-row--reverse .feature-row__visual { order: -1; }

.feature-row__content h3 { margin-bottom: 16px; }
.feature-row__content p { color: var(--slate); margin-bottom: 16px; }

.feature-row__visual {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: var(--slate-light);
  font-size: 0.875rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 { margin-bottom: 12px; }
.step p { color: var(--slate); font-size: 0.9375rem; }

/* Connector lines between steps */
.steps--connected .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: var(--gray-200);
}

/* ===== Stats Bar ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.9375rem;
  color: var(--slate);
  font-weight: 500;
}

/* ===== Suppliers Grid ===== */
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.supplier-tag {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  transition: all var(--transition);
}
.supplier-tag:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

/* ===== Callout / Blockquote ===== */
.callout {
  border-left: 4px solid var(--blue);
  background: var(--gray-50);
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
}
.callout p { margin-bottom: 0; color: var(--slate); }
.callout strong { color: var(--navy); }

.callout--red { border-left-color: var(--red); background: var(--red-light); }
.callout--green { border-left-color: var(--green); background: var(--green-light); }
.callout--orange { border-left-color: var(--orange); background: var(--orange-light); }

/* ===== Tables ===== */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

thead th {
  background: var(--gray-50);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--gray-200);
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--slate);
}

tbody tr:hover { background: var(--gray-50); }

/* ===== Scenario / Use Case Cards ===== */
.scenario {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 48px;
  margin-bottom: 48px;
}

.scenario__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.scenario__badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.scenario__badge--blue  { background: var(--blue-light); color: var(--blue); }
.scenario__badge--green { background: var(--green-light); color: var(--green); }
.scenario__badge--orange { background: var(--orange-light); color: var(--orange); }

.scenario h3 { margin-bottom: 16px; }

.scenario__before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.scenario__before, .scenario__after {
  padding: 24px;
  border-radius: 8px;
}
.scenario__before { background: var(--red-light); }
.scenario__after { background: var(--green-light); }

.scenario__before h4 { color: var(--red); margin-bottom: 12px; }
.scenario__after h4 { color: var(--green); margin-bottom: 12px; }

/* ===== Check List ===== */
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  padding: 8px 0 8px 32px;
  position: relative;
  color: var(--slate);
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 1.125rem;
}

/* ===== Form ===== */
.form {
  max-width: 560px;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--gray-800);
  transition: border-color var(--transition);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form__textarea { min-height: 120px; resize: vertical; }
.form__hint { font-size: 0.8125rem; color: var(--slate-light); margin-top: 4px; }

/* ===== Placeholder (for assets) ===== */
.placeholder {
  background: var(--gray-50);
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  color: var(--slate-light);
  font-size: 0.875rem;
}
.placeholder__label {
  display: block;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 4px;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--navy);
  border-radius: 16px;
  padding: 64px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: var(--slate-light); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: var(--slate-light);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.footer__brand span { color: var(--blue); }

.footer h4 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  color: var(--slate-light);
  font-size: 0.9375rem;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.8125rem;
  text-align: center;
}

/* ===== FAQ / Accordion ===== */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item summary {
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.0625rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--slate-light);
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item .faq-body {
  padding-bottom: 20px;
  color: var(--slate);
  line-height: 1.7;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps--connected .step::after { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row--reverse .feature-row__visual { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .scenario__before-after { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: var(--section-pad-mobile);
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 120px 0 var(--section-pad-mobile); }
  .hero__sub { font-size: 1.0625rem; }

  .navbar__links { display: none; }
  .navbar__toggle { display: block; }

  .navbar__links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 24px;
    gap: 0;
  }
  .navbar__links.active li { padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
  .navbar__links.active .dropdown__menu {
    display: block;
    position: static;
    padding-top: 0;
    box-shadow: none;
  }
  .navbar__links.active .dropdown__menu-inner {
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
  }

  .cta-banner { padding: 40px 24px; }
  .scenario { padding: 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
