/* ============================================================
   Synlo — brand stylesheet
   Palette sampled from the Synlo logo:
   primary blue #1B66F6, charcoal #20262E, white background.
   ============================================================ */

:root {
  /* Brand colors */
  --color-primary: #1B66F6;
  --color-primary-hover: #0F4FD6;
  --color-primary-soft: rgba(27, 102, 246, 0.08);
  --color-accent: #22D3EE;
  --color-bg: #FFFFFF;
  --color-surface: #F8FAFC;
  --color-surface-2: #F1F5F9;
  --color-divider: rgba(32, 38, 46, 0.1);
  --color-border: rgba(32, 38, 46, 0.14);
  --color-text: #20262E;
  --color-text-muted: #5B6470;
  --color-text-faint: #8A94A0;
  --color-text-inverse: #FFFFFF;
  --color-error: #B4232A;

  /* Dark sections (footer, final CTA) */
  --color-dark-bg: #11151B;
  --color-dark-surface: #1A2028;
  --color-dark-border: rgba(255, 255, 255, 0.1);
  --color-dark-text: #F3F5F7;
  --color-dark-text-muted: #9AA5B1;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1.4rem + 5.5vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(32, 38, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(32, 38, 46, 0.08);
  --shadow-lg: 0 12px 32px rgba(32, 38, 46, 0.12);
  --shadow-primary: 0 8px 24px rgba(27, 102, 246, 0.28);

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1120px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.12;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

p,
li,
figcaption {
  text-wrap: pretty;
}

::selection {
  background: rgba(27, 102, 246, 0.22);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a,
button,
[role='button'],
input,
textarea,
select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: var(--space-2);
  z-index: 200;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.skip-link:focus {
  left: var(--space-4);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.prose {
  max-width: 68ch;
}

.section {
  padding-block: clamp(var(--space-16), 7vw, var(--space-24));
}

.section-tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 62ch;
}

.muted {
  color: var(--color-text-muted);
}

.fineprint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.55;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  min-height: 44px;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-text);
}

.btn-light {
  background: var(--color-text-inverse);
  color: var(--color-primary);
}
.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
}
.nav a:hover {
  color: var(--color-primary);
}

.header-cta {
  display: inline-flex;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32)) var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: var(--text-hero);
  margin-bottom: var(--space-6);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 58ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.hero-sub strong {
  color: var(--color-text);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.hero-fineprint {
  max-width: 52ch;
  margin-inline: auto;
}

/* Subtle blue glow, contained */
.hero::before {
  content: '';
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  background: radial-gradient(
    ellipse at center,
    rgba(27, 102, 246, 0.1) 0%,
    rgba(34, 211, 238, 0.04) 45%,
    transparent 70%
  );
  pointer-events: none;
}

/* ---------- Marquee strip ---------- */
.strip {
  border-block: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding-block: var(--space-4);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) var(--space-8);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.strip-inner span::before {
  content: '—';
  color: var(--color-primary);
  margin-right: var(--space-2);
}

/* ---------- Narrative sections ---------- */
.narrative p {
  font-size: var(--text-lg);
  max-width: 64ch;
  margin-bottom: var(--space-6);
}

.narrative .drop {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-8);
  max-width: 24ch;
}

.standout {
  color: var(--color-primary);
}

/* ---------- Timeline illustration ---------- */
.timeline-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  margin-top: var(--space-10);
}

.timeline-track {
  position: relative;
  height: 64px;
  margin-block: var(--space-6) var(--space-3);
}

.timeline-bar {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  overflow: hidden;
}

.timeline-waste {
  position: absolute;
  top: 28px;
  height: 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #F04438, #D92D20);
}

.timeline-stop {
  position: absolute;
  top: 20px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border: 5px solid #fff;
  box-shadow: var(--shadow-md);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 600;
}

.timeline-callouts {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.callout {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.callout strong {
  color: var(--color-text);
}
.callout .waste {
  color: var(--color-error);
  font-weight: 700;
}
.callout .saved {
  color: var(--color-primary);
  font-weight: 700;
}

@media (min-width: 768px) {
  .timeline-callouts {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-10);
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-primary);
}

.price-badge {
  position: absolute;
  top: calc(var(--space-6) * -1);
  left: var(--space-6);
  transform: translateY(-50%);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.price-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.price-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.price-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}
.price-value small {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.price-fee {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.price-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: auto;
}

.pricing-note {
  margin-top: var(--space-8);
  max-width: 70ch;
}

/* ---------- Savings math ---------- */
.math-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  margin-top: var(--space-10);
}

.math-grid {
  display: grid;
  gap: var(--space-4);
  margin-block: var(--space-6);
}

.math-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px dashed var(--color-border);
  font-size: var(--text-base);
}
.math-row span:first-child {
  color: var(--color-text-muted);
}
.math-row.total {
  border-bottom: none;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

/* ---------- Feature list ---------- */
.feature-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-base);
}

.feature-check {
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--color-primary);
}

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(ellipse 80% 90% at 50% 0%, rgba(27, 102, 246, 0.28) 0%, transparent 55%),
    var(--color-dark-bg);
  color: var(--color-dark-text);
  text-align: center;
  padding-block: clamp(var(--space-20), 9vw, var(--space-32));
}

.final-cta h2 {
  font-size: var(--text-2xl);
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.final-cta p {
  color: var(--color-dark-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
}

.final-cta .btn-primary {
  background: var(--color-primary);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-5);
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  max-width: 62ch;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-dark-bg);
  color: var(--color-dark-text-muted);
  border-top: 1px solid var(--color-dark-border);
  padding-block: var(--space-12);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-dark-text);
  margin-bottom: var(--space-4);
}

.footer h4 {
  color: var(--color-dark-text);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: grid;
  gap: var(--space-2);
}

.footer a {
  color: var(--color-dark-text-muted);
  text-decoration: none;
}
.footer a:hover {
  color: var(--color-dark-text);
}

.footer-bottom {
  border-top: 1px solid var(--color-dark-border);
  padding-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}

.footer-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-dark-text-muted);
  max-width: 90ch;
  line-height: 1.6;
}

/* ---------- Legal pages ---------- */
.legal-header {
  padding-block: var(--space-12) var(--space-8);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-10);
}

.legal-header h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.legal-body {
  max-width: 76ch;
  padding-bottom: var(--space-24);
}

.legal-body h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}

.legal-body h3 {
  font-size: var(--text-base);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.legal-body p,
.legal-body li {
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.legal-body ul {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-body strong {
  color: var(--color-text);
}

.legal-meta {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-bottom: var(--space-8);
}

.callout-warn {
  background: var(--color-primary-soft);
  border: 1px solid rgba(27, 102, 246, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}
