/* ================================================
   Reducio — Marketing Site Stylesheet
   ================================================ */

/* Google Fonts is loaded via <link> in HTML */

/* ------------------------------------------------
   Custom Properties
   ------------------------------------------------ */
:root {
  /* Colors */
  --color-bg:              #F5F6F8;
  --color-surface:         #FFFFFF;
  --color-surface-raised:  #ECEEF2;
  --color-border:          #D6DAE3;
  --color-border-subtle:   #E4E7ED;
  --color-text-primary:    #111520;
  --color-text-secondary:  #4A5068;
  --color-text-tertiary:   #8A93AC;
  --color-accent:          #2D5FE8;
  --color-accent-hover:    #2251D0;
  --color-accent-subtle:   #EBF0FD;
  --color-success:         #1A7F4B;
  --color-error:           #C8253A;
  --color-white:           #FFFFFF;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

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

  /* Shadows */
  --shadow-card:   0 1px 3px rgba(17,21,32,.07), 0 4px 12px rgba(17,21,32,.05);
  --shadow-raised: 0 2px 6px rgba(17,21,32,.09), 0 8px 24px rgba(17,21,32,.08);
  --shadow-accent: 0 0 0 3px rgba(45,95,232,.22);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ------------------------------------------------
   Reduced Motion
   ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ------------------------------------------------
   Layout Utilities
   ------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: 800px;
}

.container--xs {
  max-width: 560px;
}

/* ------------------------------------------------
   Navigation
   ------------------------------------------------ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(245, 246, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: 0 1px 0 rgba(17,21,32,0.06);
  transition: border-bottom-color 0.2s ease;
}

nav.scrolled {
  border-bottom-color: var(--color-border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ------------------------------------------------
   Buttons (shared)
   ------------------------------------------------ */
.btn-primary, .btn-nav {
  background: var(--color-accent);
  color: #FFFFFF;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.12) inset, 0 4px 12px rgba(45,95,232,0.20);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover, .btn-nav:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.14) inset, 0 4px 20px rgba(45,95,232,0.28);
  transform: translateY(-1px);
}

/* Nav CTA — styled as button but is an <a> */
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
}

/* Primary CTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
}

/* ------------------------------------------------
   Hero Section
   ------------------------------------------------ */
.hero {
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45,95,232,0.055) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent-subtle);
  border: 1px solid rgba(45,95,232,0.20);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-top: var(--space-6);
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-top: var(--space-6);
  max-width: 600px;
}

.hero-cta {
  margin-top: var(--space-10);
}

.hero-microcopy {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-tertiary);
  margin-top: var(--space-3);
}

/* ------------------------------------------------
   Trust Bar
   ------------------------------------------------ */
.trust-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 48px 24px;
  text-align: center;
}

.trust-bar-inner {
  max-width: 480px;
  margin: 0 auto;
}

.trust-stat-number {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.trust-stat-label {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ------------------------------------------------
   Section Shared Styles
   ------------------------------------------------ */
.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-top: var(--space-3);
}

/* ------------------------------------------------
   Value Props (#why)
   ------------------------------------------------ */
.why-section {
  padding: 64px 24px;
}

.why-section .section-header {
  margin-bottom: var(--space-12);
}

.why-section .section-header h2 {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cards-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-raised);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.card p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ------------------------------------------------
   How It Works (#how)
   ------------------------------------------------ */
.how-section {
  padding: 64px 24px;
}

.how-section .section-header {
  margin-bottom: var(--space-16);
}

.section-header--how {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.steps-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.step-circle {
  width: 32px;
  height: 32px;
  background: var(--color-accent-subtle);
  border: 1px solid rgba(45,95,232,0.20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-number {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.step-text {
  display: flex;
  flex-direction: column;
}

.step-text h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.step-text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ------------------------------------------------
   Savings Teaser
   ------------------------------------------------ */
.savings-section {
  background: var(--color-accent-subtle);
  border-top: 1px solid rgba(45,95,232,0.12);
  border-bottom: 1px solid rgba(45,95,232,0.12);
  padding: 80px 24px;
  text-align: center;
}

.savings-inner {
  max-width: 800px;
  margin: 0 auto;
}

.savings-section h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-top: var(--space-3);
}

.savings-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: var(--space-4) auto 0;
}

.stats-callout {
  margin-top: var(--space-12);
  background: var(--color-surface);
  border: 1px solid rgba(45,95,232,0.15);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: 0;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text-primary);
}

.stat-value--success {
  color: var(--color-success);
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
}

/* ------------------------------------------------
   Waitlist CTA (#waitlist)
   ------------------------------------------------ */
.waitlist-section {
  padding: 64px 24px;
  text-align: center;
}

.waitlist-inner {
  max-width: 560px;
  margin: 0 auto;
}

.waitlist-section .section-label {
  margin-bottom: 0;
}

.waitlist-section h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-top: var(--space-3);
}

.waitlist-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-top: var(--space-4);
  margin-bottom: var(--space-10);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.email-input {
  height: 52px;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-input::placeholder {
  color: var(--color-text-tertiary);
}

.email-input:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
  outline: none;
}

.submit-btn {
  height: 52px;
  padding: 0 28px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.12) inset, 0 4px 12px rgba(45,95,232,0.20);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.submit-btn:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.14) inset, 0 4px 20px rgba(45,95,232,0.28);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-tertiary);
  text-align: center;
  max-width: 400px;
  margin: 16px auto 0;
}

.form-status {
  display: none;
  margin-top: 12px;
}

.form-error {
  background: #FEF2F2;
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--color-error);
  text-align: left;
}

/* Success state */
.success-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: var(--space-8);
}

.success-icon {
  width: 32px;
  height: 32px;
  background: rgba(26, 127, 75, 0.08);
  border: 1px solid var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  stroke: #1A7F4B;
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-top: var(--space-4);
}

.success-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 380px;
  margin-top: var(--space-3);
}

/* ------------------------------------------------
   Policy Pages (SPA)
   ------------------------------------------------ */
.policy-page {
  background: var(--color-bg);
  min-height: calc(100vh - 64px);
  padding: 64px 24px 96px;
}

.policy-inner {
  max-width: 720px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--color-text-primary);
}

.policy-inner h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.policy-meta {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-bottom: 48px;
}

.policy-inner h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 40px;
  margin-bottom: 12px;
}

.policy-inner p, .policy-inner li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.policy-inner ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.policy-inner a {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* ------------------------------------------------
   Footer — stays DARK
   ------------------------------------------------ */
footer {
  background: #111520;
  border-top: none;
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-tagline {
  font-size: 13px;
  color: #525D72;
  margin-top: var(--space-2);
  max-width: 200px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  /* Reset all nav-element styles that bleed from the sticky nav rule */
  position: static;
  height: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.footer-links a {
  font-size: 13px;
  color: #8A93A6;
  transition: color 0.15s ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: #E8ECF2;
}

.footer-links a:focus {
  outline: none;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid #1E2535;
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
}

.footer-copyright {
  font-size: 12px;
  color: #525D72;
}

/* ------------------------------------------------
   Cookie Banner
   ------------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  width: 100%;
  max-width: 520px;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(17,21,32,.12), 0 1px 4px rgba(17,21,32,.08);
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-banner__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  flex: 1;
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cookie-btn--accept {
  background: var(--color-accent);
  color: #FFFFFF;
  border: none;
}
.cookie-btn--accept:hover {
  background: var(--color-accent-hover);
}

.cookie-btn--decline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.cookie-btn--decline:hover {
  background: var(--color-surface-raised);
  border-color: var(--color-text-tertiary);
}

@media (max-width: 540px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    flex-wrap: wrap;
  }
}

/* ------------------------------------------------
   Tablet (768px+)
   ------------------------------------------------ */
@media (min-width: 768px) {
  .hero {
    padding: 120px 24px 96px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .section-header h2 {
    font-size: 36px;
  }

  .savings-section h2 {
    font-size: 36px;
  }

  .waitlist-section h2 {
    font-size: 36px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    text-align: left;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-tagline {
    text-align: left;
  }
}

/* ------------------------------------------------
   Desktop (1024px+)
   ------------------------------------------------ */
@media (min-width: 1024px) {
  .why-section {
    padding: 96px 24px;
  }

  .how-section {
    padding: 96px 24px;
  }

  .waitlist-section {
    padding: 96px 24px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .waitlist-form {
    flex-direction: row;
  }

  .email-input {
    flex-grow: 1;
    width: auto;
  }

  .stats-callout {
    flex-direction: row;
    padding: 32px 40px;
    gap: 0;
  }

  .stat-item {
    flex: 1;
    padding: 0 32px;
  }

  .stat-item:not(:last-child) {
    border-right: 1px solid var(--color-border);
  }
}
