:root {
  --base-bg: #f3f0fa;
  --base-surface: #ffffff;
  --accent: #e11d48;
  --accent-muted: rgba(225, 29, 72, 0.08);
  --accent-glow: rgba(225, 29, 72, 0.15);
  --text-main: #334155;
  --text-muted: #64748b;
  --border-line: #cbd5e1;
  --border-card: #e2e8f0;
  
  --radius: 4px;
  --shadow-hard: 4px 4px 0 var(--text-main);
  --shadow-hard-accent: 4px 4px 0 var(--accent);
  
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
  --content-width: 68ch;
}

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

body {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  background-color: var(--base-bg);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
}

/* Header - Static, Far Left Logo */
.site-header {
  position: relative; 
  background-color: var(--base-surface);
  border-bottom: 1px solid var(--border-line);
  padding: 1rem 2rem;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}

.desktop-nav a:hover {
  color: var(--accent);
}

.mobile-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.mobile-toggle span {
  display: block;
  width: 4px;
  height: 4px;
  background-color: var(--text-main);
  border-radius: 50%;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--base-surface);
  border-bottom: 1px solid var(--border-line);
  padding: 1rem 2rem;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 769px) {
  .desktop-nav {
    display: block;
  }
  .mobile-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* Typography Scale */
.hero-h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.section-h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

/* UI Elements */
.btn {
  display: inline-block;
  background-color: var(--base-surface);
  color: var(--text-main);
  border: 1px solid var(--text-main);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transition: all 0.2s var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 transparent;
  opacity: 1;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--text-main);
}

.btn-primary:hover {
  box-shadow: 0 0 0 transparent;
}

/* Layouts */
.main-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.narrow-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Hero Section (No Image, Radial Gradient) */
.hero-section {
  padding: 8rem 2rem;
  text-align: center;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, var(--base-bg) 70%);
  border-bottom: 1px solid var(--border-line);
}

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

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Vertical Flow Numbered Sections */
.flow-container {
  position: relative;
  padding-left: 2rem;
  margin-top: 4rem;
}

@media (min-width: 769px) {
  .flow-container {
    padding-left: 4rem;
  }
}

.flow-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background-color: var(--accent);
}

@media (min-width: 769px) {
  .flow-container::before {
    left: 1.5rem;
  }
}

.flow-section {
  position: relative;
  margin-bottom: 6rem;
  background: radial-gradient(circle at top left, var(--accent-muted) 0%, transparent 60%);
  padding: 2rem;
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  background-color: var(--base-surface);
}

.flow-number {
  position: absolute;
  top: -1rem;
  left: -3rem;
  width: 2rem;
  height: 2rem;
  background-color: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 0 0 4px var(--base-bg);
}

@media (min-width: 769px) {
  .flow-number {
    left: -3.5rem;
  }
}

/* Grid System */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Cards */
.card-flat {
  background: var(--base-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-img-wrap {
  aspect-ratio: 4/3;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease);
}

.card-flat:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Split Media Section */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
  align-items: center;
}

@media (min-width: 769px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
  }
}

.split-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--base-surface);
  color: var(--text-main);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.site-footer {
  background-color: var(--base-surface);
  border-top: 1px solid var(--border-line);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border-line);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 769px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.trust-badges {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-badges span {
  border: 1px solid var(--border-card);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  background: var(--base-bg);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utilities */
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }
.text-center { text-align: center; }

/* Table Wrapper for overflow */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--base-surface);
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-line);
}
th {
  background: var(--base-bg);
}

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