:root {
  --bg: #f5f0e8;
  --bg-soft: rgba(255, 252, 247, 0.82);
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(33, 39, 56, 0.1);
  --text: #132033;
  --muted: #546173;
  --accent: #e76f51;
  --accent-deep: #c55339;
  --accent-soft: #f5c7bb;
  --secondary: #2a9d8f;
  --shadow: 0 24px 80px rgba(17, 31, 48, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(42, 157, 143, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(231, 111, 81, 0.2), transparent 30%),
    linear-gradient(180deg, #f8f3ea 0%, #f3ede3 100%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header,
.site-footer,
.hero,
.feature-card,
.step-card,
.support-strip,
.legal-card,
.legal-hero,
.phone-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 28px;
  border-radius: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #f4a261);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text,
.site-nav a,
.button,
.step-number,
.card-label,
.eyebrow {
  font-family: "Space Grotesk", sans-serif;
}

.brand-text {
  font-size: 1rem;
  font-weight: 700;
}

.site-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.site-nav a:hover,
.footer-links a:hover,
.legal-card a:hover,
.support-strip a:hover {
  color: var(--accent-deep);
}

.site-nav a:focus-visible,
.footer-links a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(231, 111, 81, 0.28);
  outline-offset: 4px;
  border-radius: 12px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin-top: 22px;
  padding: 34px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(255, 248, 241, 0.8));
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.card-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
}

.hero-text {
  margin-top: 20px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #f4a261);
  box-shadow: 0 18px 40px rgba(231, 111, 81, 0.28);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(19, 32, 51, 0.08);
}

.hero-panel {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.panel-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
}

.panel-orb-a {
  top: 8%;
  right: 6%;
  width: 160px;
  height: 160px;
  background: rgba(42, 157, 143, 0.18);
}

.panel-orb-b {
  bottom: 8%;
  left: 4%;
  width: 220px;
  height: 220px;
  background: rgba(231, 111, 81, 0.18);
}

.phone-card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  padding: 22px;
  background: linear-gradient(180deg, rgba(18, 33, 52, 0.98), rgba(31, 54, 84, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  color: #eff7ff;
  box-shadow: 0 28px 60px rgba(10, 24, 41, 0.34);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
}

.status-meta {
  font-size: 0.84rem;
  color: rgba(239, 247, 255, 0.72);
}

.wave-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 84px;
  margin: 26px 0 20px;
}

.wave-bars span {
  display: block;
  width: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4a261, #e76f51);
  animation: pulse 1.4s ease-in-out infinite;
}

.wave-bars span:nth-child(1) { height: 34px; animation-delay: 0s; }
.wave-bars span:nth-child(2) { height: 68px; animation-delay: 0.1s; }
.wave-bars span:nth-child(3) { height: 52px; animation-delay: 0.2s; }
.wave-bars span:nth-child(4) { height: 74px; animation-delay: 0.3s; }
.wave-bars span:nth-child(5) { height: 40px; animation-delay: 0.4s; }

.transcript {
  color: rgba(239, 247, 255, 0.88);
  font-size: 1rem;
}

.reminder-preview {
  margin-top: 22px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reminder-preview strong,
.reminder-preview span {
  display: block;
}

.reminder-preview span {
  margin-top: 6px;
  color: rgba(239, 247, 255, 0.7);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.feature-card,
.step-card,
.support-strip,
.legal-card,
.legal-hero {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-card-large {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(244, 162, 97, 0.14));
}

.feature-card p,
.step-card p,
.support-strip p,
.legal-card p,
.legal-hero p {
  margin-top: 12px;
}

.story-section {
  margin-top: 22px;
}

.section-heading {
  margin-bottom: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-number {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

.support-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.14), rgba(255, 255, 255, 0.85));
}

.legal-layout {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.legal-hero h1 {
  max-width: none;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 1.45rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.page-shell-legal .site-footer {
  margin-top: 20px;
}

@keyframes pulse {
  0%, 100% { transform: scaleY(0.88); opacity: 0.7; }
  50% { transform: scaleY(1.08); opacity: 1; }
}

@media (max-width: 980px) {
  .hero,
  .section-grid,
  .steps,
  .support-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 26px;
  }

  .feature-card-large {
    grid-column: span 1;
  }

  .support-strip {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
    padding-top: 14px;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 26px;
  }

  .hero,
  .feature-card,
  .step-card,
  .support-strip,
  .legal-card,
  .legal-hero {
    padding: 22px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-panel {
    min-height: 360px;
  }

  .site-nav,
  .footer-links,
  .hero-actions {
    width: 100%;
  }

  .site-nav a,
  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .button {
    width: 100%;
  }

  .phone-card {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
