:root {
  --bg: #f4efe5;
  --bg-accent: #e5dcc9;
  --surface: rgba(255, 251, 245, 0.78);
  --surface-strong: #fffaf1;
  --text: #2d2219;
  --muted: #6c5b4a;
  --line: rgba(71, 48, 28, 0.14);
  --highlight: #c8643b;
  --highlight-dark: #8e3b1e;
  --shadow: 0 24px 80px rgba(83, 56, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(200, 100, 59, 0.18), transparent 32%),
    linear-gradient(180deg, #f8f4ec 0%, var(--bg) 52%, #efe6d8 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(141, 112, 73, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 112, 73, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
}

.site-shell {
  padding: 32px 20px 56px;
}

.home-page,
.legal-page {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.hero,
.legal-header {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero::after,
.legal-header::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(200, 100, 59, 0.2), transparent 72%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--highlight-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 60ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.link-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.link-card {
  display: block;
  padding: 28px;
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(200, 100, 59, 0.4);
  box-shadow: 0 28px 80px rgba(83, 56, 30, 0.16);
}

.card-label,
.card-link {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.card-label {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(200, 100, 59, 0.12);
  color: var(--highlight-dark);
  font-size: 0.82rem;
}

.link-card h2 {
  margin-top: 16px;
  font-size: 2rem;
}

.link-card p {
  margin: 14px 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.card-link {
  color: var(--highlight);
}

.legal-shell {
  padding-top: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--highlight-dark);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

.legal-card {
  margin-top: 24px;
  padding: 20px 28px;
}

.legal-section {
  padding: 24px 0;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: 1.45rem;
}

.legal-section p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.82;
}

.legal-section a {
  color: var(--highlight-dark);
  font-weight: 700;
}

.legal-section a:hover,
.legal-section a:focus-visible {
  color: var(--highlight);
}

@media (max-width: 800px) {
  .site-shell {
    padding-inline: 16px;
  }

  .hero,
  .legal-header,
  .legal-card,
  .link-card {
    border-radius: 22px;
  }

  .hero,
  .legal-header {
    padding: 28px 24px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .link-card h2 {
    font-size: 1.7rem;
  }

  .legal-card {
    padding: 16px 20px;
  }
}

.marketing-shell {
  padding-top: 24px;
}

.marketing-home {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #23193d 0%, #413068 100%);
  color: #fff6ee;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 36px rgba(35, 25, 61, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-links a,
.footer-links a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.top-links a:hover,
.top-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.marketing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 36px;
  align-items: center;
  overflow: hidden;
  padding: 36px;
  border: 1px solid rgba(36, 24, 58, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(248, 216, 162, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(135deg, #24183e 0%, #3d2a65 56%, #5f456d 100%);
  box-shadow: 0 30px 90px rgba(45, 28, 66, 0.24);
}

.marketing-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -120px -120px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 196, 120, 0.18), transparent 72%);
}

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

.marketing-hero .eyebrow {
  color: #f4c584;
}

.marketing-hero h1 {
  max-width: 9ch;
  color: #fff7f0;
  font-size: clamp(3.1rem, 7vw, 5.8rem);
}

.marketing-hero .hero-copy {
  max-width: 57ch;
  color: rgba(255, 245, 238, 0.82);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px rgba(19, 11, 30, 0.22);
}

.store-badge--apple {
  background: #fff4eb;
  color: #1b1524;
}

.store-badge--google {
  background: rgba(11, 10, 16, 0.92);
  color: #fff8f2;
}

.store-badge svg {
  flex: none;
  width: 28px;
  height: 28px;
}

.badge-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.badge-overline {
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.72;
}

.badge-title {
  margin-top: 2px;
  font-size: 1.05rem;
  font-weight: 800;
}

.cta-note {
  margin: 14px 0 0;
  color: rgba(255, 245, 238, 0.66);
  font-size: 0.92rem;
  line-height: 1.6;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff2e8;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-visual {
  animation: lift-in 700ms ease 100ms both;
}

.media-card {
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: rgba(255, 246, 237, 0.08);
  box-shadow: 0 28px 70px rgba(15, 10, 23, 0.32);
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.floating-note {
  position: absolute;
  max-width: 240px;
  padding: 14px 16px;
  border-radius: 20px;
  line-height: 1.45;
  box-shadow: 0 20px 44px rgba(20, 12, 31, 0.22);
  animation: drift 6s ease-in-out infinite;
}

.floating-note--dark {
  top: 18px;
  right: -12px;
  background: #130d21;
  color: #fff7f1;
}

.floating-note--light {
  bottom: 24px;
  left: -16px;
  background: #fff0e3;
  color: #23163d;
  animation-delay: 800ms;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

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

.feature-card {
  height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 242, 0.86);
  box-shadow: var(--shadow);
  animation: lift-in 700ms ease both;
}

.feature-card:nth-child(2) {
  animation-delay: 120ms;
}

.feature-card:nth-child(3) {
  animation-delay: 180ms;
}

.feature-card:nth-child(4) {
  animation-delay: 240ms;
}

.feature-card--quote {
  background:
    radial-gradient(circle at top right, rgba(200, 100, 59, 0.18), transparent 30%),
    linear-gradient(135deg, #fff7ef 0%, #f5e5d6 100%);
}

.feature-kicker {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(35, 25, 61, 0.1);
  color: #35234f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-card h2 {
  margin-top: 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.marketing-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px 8px;
}

.footer-brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.footer-brand p {
  max-width: 34ch;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 20px;
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .marketing-hero,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .floating-note--dark {
    right: 14px;
  }

  .floating-note--light {
    left: 14px;
  }
}

@media (max-width: 800px) {
  .topbar,
  .marketing-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-links,
  .footer-links {
    justify-content: flex-start;
  }

  .marketing-hero {
    padding: 28px 24px;
    border-radius: 26px;
  }

  .marketing-hero h1 {
    max-width: 10ch;
  }

  .store-badge {
    width: 100%;
    min-width: 0;
  }

  .floating-note {
    position: static;
    max-width: none;
    margin-top: 14px;
  }

  .story-grid,
  .steps-grid {
    gap: 16px;
  }
}
