@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --ink: #0e1a1f;
  --paper: #e8f0f2;
  --brand: #0a3d3a;
  --accent: #c45c26;
  --accent-hover: #a34a1c;
  --muted: #5a6b70;
  --surface: #f7fbfc;
  --border: #c5d4d8;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --max: 68rem;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(10, 61, 58, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 30%, rgba(196, 92, 38, 0.08), transparent 50%),
    linear-gradient(165deg, #d5e4e8 0%, var(--paper) 45%, #dde8ea 100%);
}

a {
  color: var(--brand);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  gap: var(--space-3);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  display: block;
}

.header-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.header-controls label {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-controls select {
  font: inherit;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.25rem 0.4rem;
}

/* Hero — one composition */
.hero {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-5) 0 var(--space-6);
  animation: hero-in 0.9s ease both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 1.05;
  color: var(--brand);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-3);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  line-height: 1.25;
  max-width: 28ch;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}

.hero .lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36ch;
  margin: 0 0 var(--space-4);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  padding: 0.75rem 1.35rem;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

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

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

.btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

section {
  padding: var(--space-6) 0;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 var(--space-2);
  font-weight: 600;
}

section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 var(--space-3);
  color: var(--brand);
  max-width: 22ch;
}

.section-copy {
  max-width: 42rem;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
  max-width: 40rem;
}

.feature-list li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
}

.feature-list strong {
  display: block;
  font-weight: 600;
}

.steps {
  display: grid;
  gap: var(--space-4);
  counter-reset: step;
  max-width: 36rem;
}

.steps li {
  list-style: none;
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Free report lead form */
.lead-form {
  max-width: 28rem;
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.lead-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.lead-form input,
.lead-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.lead-form textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.lead-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-msg {
  margin: 0;
  font-size: 0.95rem;
}

.form-msg.is-ok {
  color: var(--brand);
}

.form-msg.is-err {
  color: #8b1e1e;
}

/* Pricing — interaction cards only */
#pricing {
  animation: pricing-in 0.7s ease 0.1s both;
}

@keyframes pricing-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pricing-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-top: var(--space-4);
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.plan h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.35rem;
  color: var(--brand);
}

.plan .price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.plan .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.plan .cadence {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand);
}

.plan .note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.fine {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: var(--space-4);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-legal-entity {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 var(--space-2);
  line-height: 1.5;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.page-simple {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-6) 0;
}

.page-simple h1 {
  font-family: var(--font-display);
  color: var(--brand);
  margin: 0 0 var(--space-3);
}

.terms {
  padding: var(--space-5) 0 var(--space-6);
  max-width: 42rem;
}

.terms h1 {
  font-family: var(--font-display);
  color: var(--brand);
  margin: 0 0 var(--space-2);
}

.terms h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand);
  margin: var(--space-4) 0 var(--space-2);
  max-width: none;
}

.terms p {
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  z-index: 1000;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-3);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  color: var(--paper);
  box-shadow: 0 -8px 32px color-mix(in srgb, var(--ink) 25%, transparent);
}

.cookie-banner[hidden] {
  display: none !important;
}

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

.cookie-banner-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.cookie-banner-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--paper);
}

.cookie-banner-copy p:last-child {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--paper) 88%, transparent);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex-shrink: 0;
}

.cookie-banner .btn-ghost {
  color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 45%, transparent);
}

.cookie-banner .btn-ghost:hover {
  background: color-mix(in srgb, var(--paper) 12%, transparent);
}
