/* ===================================================================
   Emes-K Landing Page Styles
   Font: Plus Jakarta Sans  |  Palette: copper, midnight, ivory, emerald
   =================================================================== */

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

:root {
  /* Brand palette */
  --copper: #c17b4a;
  --copper-light: #d4a373;
  --copper-dark: #9a5f35;
  --midnight: #0f0d23;
  --ivory: #fff8f0;
  --ivory-warm: #fef3e6;
  --emerald: #2d9f6f;
  --coral: #d94f4f;
  --amber: #d4a03c;
  --gold: #d4a373;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #fafaf8;
  --gray-100: #f5f3ef;
  --gray-200: #e8e4dd;
  --gray-300: #d1ccc3;
  --gray-400: #a39e94;
  --gray-500: #6b665c;
  --gray-600: #4a463e;
  --gray-700: #2d2a24;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 13, 35, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 13, 35, 0.08);
  --shadow-lg: 0 8px 32px rgba(15, 13, 35, 0.1);
  --shadow-xl: 0 16px 48px rgba(15, 13, 35, 0.12);
  --shadow-glow-copper: 0 8px 32px rgba(193, 123, 74, 0.25);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  color: var(--midnight);
  background-color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--copper);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--copper-dark);
}

/* --- Typography ---------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.text-center {
  text-align: center;
}

.text-copper {
  color: var(--copper);
}

.text-emerald {
  color: var(--emerald);
}

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

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

section {
  padding: var(--space-4xl) 0;
  position: relative;
}

/* --- Scroll Reveal Animations -------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger > * {
  transition-delay: calc(var(--i, 0) * 100ms);
}

/* --- Background Orbs ----------------------------------------------- */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.bg-orb--copper {
  background: radial-gradient(circle, var(--copper-light) 0%, transparent 70%);
}

.bg-orb--ivory {
  background: radial-gradient(circle, var(--ivory-warm) 0%, transparent 70%);
}

.bg-orb--emerald {
  background: radial-gradient(
    circle,
    rgba(45, 159, 111, 0.3) 0%,
    transparent 70%
  );
}

/* --- Navigation ---------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  transition: background var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    padding var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 16px rgba(15, 13, 35, 0.06);
  padding: var(--space-sm) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--midnight);
  text-decoration: none;
}

.nav__brand:hover {
  color: var(--midnight);
}

.nav__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__links a:hover {
  color: var(--copper);
}

.nav__links a.btn--primary {
  color: var(--white);
}

.nav__links a.btn--primary:hover {
  color: var(--white);
}

/* --- Legal Dropdown ------------------------------------------------ */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__dropdown-toggle:hover {
  color: var(--copper);
}

.nav__dropdown-arrow {
  font-size: 0.65rem;
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav__dropdown:hover .nav__dropdown-arrow {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(15, 13, 35, 0.12), 0 2px 8px rgba(15, 13, 35, 0.06);
  list-style: none;
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--duration-fast) var(--ease-out);
  z-index: 100;
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--midnight);
  transition: background var(--duration-fast) var(--ease-out);
}

.nav__dropdown-menu a:hover {
  background: var(--ivory);
  color: var(--copper);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-glow-copper);
}

.btn--primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(193, 123, 74, 0.35);
}

.btn--secondary {
  background: var(--white);
  color: var(--midnight);
  border: 1.5px solid var(--gray-200);
}

.btn--secondary:hover {
  border-color: var(--copper);
  color: var(--copper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* App Store badge */
.app-store-badge {
  height: 52px;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.app-store-badge:hover {
  transform: scale(1.05);
}

/* --- Hero Section -------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: var(--space-4xl);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 163, 115, 0.15) 0%,
    rgba(212, 163, 115, 0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 50%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(45, 159, 111, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 0.875rem;
  background: rgba(193, 123, 74, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: var(--space-lg);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero__title {
  margin-bottom: var(--space-lg);
  color: var(--midnight);
}

.hero__title span {
  background: linear-gradient(135deg, var(--copper) 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero__phone-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}

/* --- CSS Phone Mockup ---------------------------------------------- */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 570px;
  border-radius: 40px;
  background: #1a1a2e;
  padding: 12px;
  box-shadow: 0 32px 80px rgba(15, 13, 35, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform var(--duration-slow) var(--ease-out);
}

.phone-mockup:hover {
  transform: translateY(-8px) rotateX(2deg);
}

.phone-mockup__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a2e;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background: var(--white);
}

.phone-mockup__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Floating elements around phone */
.hero__float {
  position: absolute;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
  white-space: nowrap;
}

.hero__float--kosher {
  top: 20%;
  right: -20px;
  color: var(--emerald);
  animation-delay: 0s;
}

.hero__float--scan {
  bottom: 25%;
  left: -30px;
  color: var(--copper);
  animation-delay: 2s;
}

.hero__float-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.hero__float-icon--green {
  background: rgba(45, 159, 111, 0.12);
}

.hero__float-icon--copper {
  background: rgba(193, 123, 74, 0.12);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* --- How It Works -------------------------------------------------- */
.how-it-works {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(193, 123, 74, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.section-header {
  margin-bottom: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--gray-400);
  max-width: 540px;
  margin: var(--space-md) auto 0;
  line-height: 1.7;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.step {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-xl);
  background: var(--ivory);
  transition: transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.step__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.75rem;
}

.step__icon--scan {
  background: linear-gradient(
    135deg,
    rgba(193, 123, 74, 0.12),
    rgba(193, 123, 74, 0.04)
  );
}

.step__icon--analyze {
  background: linear-gradient(
    135deg,
    rgba(212, 160, 60, 0.12),
    rgba(212, 160, 60, 0.04)
  );
}

.step__icon--know {
  background: linear-gradient(
    135deg,
    rgba(45, 159, 111, 0.12),
    rgba(45, 159, 111, 0.04)
  );
}

.step__number {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 28px;
  margin-bottom: var(--space-md);
}

.step__title {
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}

.step__desc {
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Connector line between steps */
.steps__connector {
  display: none;
}

@media (min-width: 768px) {
  .steps__connector {
    display: block;
    position: absolute;
    top: 50%;
    left: calc(33.33% + 1rem);
    right: calc(33.33% + 1rem);
    height: 2px;
    background: linear-gradient(
      90deg,
      var(--gray-200) 0%,
      var(--copper-light) 50%,
      var(--gray-200) 100%
    );
    transform: translateY(-50%);
    z-index: -1;
  }
}

/* --- Features Section ---------------------------------------------- */
.features {
  position: relative;
  overflow: hidden;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature__content {
  max-width: 480px;
}

.feature__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(193, 123, 74, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin-bottom: var(--space-md);
}

.feature__title {
  margin-bottom: var(--space-md);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.feature__desc {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.feature__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature__list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.feature__list-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(45, 159, 111, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.625rem;
  color: var(--emerald);
}

.feature__phones {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup--small {
  width: 220px;
  height: 450px;
  border-radius: 32px;
  padding: 10px;
}

.phone-mockup--small .phone-mockup__notch {
  width: 96px;
  height: 24px;
  top: 10px;
}

.phone-mockup--small .phone-mockup__screen {
  border-radius: 24px;
}

/* --- Pricing Section ----------------------------------------------- */
.pricing {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    rgba(193, 123, 74, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pricing-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-2xl);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  transition: transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.pricing-card--featured {
  border-color: var(--copper);
  background: linear-gradient(
    165deg,
    var(--white) 0%,
    rgba(193, 123, 74, 0.04) 100%
  );
}

.pricing-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--copper), var(--amber));
}

.pricing-card__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--copper), var(--amber));
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.pricing-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--midnight);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-400);
}

.pricing-card__note {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: var(--space-lg);
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.pricing-card__features li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(45, 159, 111, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%232D9F6F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* Free tier note */
.pricing__free-note {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: 0.9375rem;
  color: var(--gray-400);
  position: relative;
  z-index: 1;
}

.pricing__free-note strong {
  color: var(--midnight);
}

.pricing__fair-use {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--gray-400);
  position: relative;
  z-index: 1;
}

.pricing__fair-use a {
  color: var(--gray-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pricing__fair-use a:hover {
  color: var(--copper);
}

/* --- CTA Section --------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
}

.cta__box {
  background: linear-gradient(
    135deg,
    var(--midnight) 0%,
    #1a1836 40%,
    #241f3d 100%
  );
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(
    ellipse at center,
    rgba(193, 123, 74, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta__box::after {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -15%;
  width: 50%;
  height: 120%;
  background: radial-gradient(
    ellipse at center,
    rgba(45, 159, 111, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta__title {
  color: var(--white);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta__subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.125rem;
  max-width: 480px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.cta .btn--primary {
  background: linear-gradient(
    135deg,
    var(--copper-light) 0%,
    var(--copper) 100%
  );
}

/* --- Footer -------------------------------------------------------- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--gray-200);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--midnight);
  text-decoration: none;
  margin-bottom: var(--space-md);
}

.footer__desc {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.footer__links a:hover {
  color: var(--copper);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-200);
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.footer__bottom a {
  color: var(--gray-400);
}

.footer__bottom a:hover {
  color: var(--copper);
}

/* --- Mobile Navigation --------------------------------------------- */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--midnight);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Responsive ---------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__grid {
    gap: var(--space-2xl);
  }

  .phone-mockup {
    width: 240px;
    height: 490px;
    border-radius: 36px;
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--space-3xl) 0;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 248, 240, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    z-index: 99;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    font-size: 1.25rem;
  }

  .nav__toggle {
    display: flex;
    z-index: 101;
  }

  /* Mobile dropdown: inline expand instead of hover popup */
  .nav__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    min-width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
  }

  .nav__dropdown-menu a {
    padding: 4px 0;
    font-size: 1rem;
    color: var(--gray-500);
  }

  .nav__dropdown-toggle {
    font-size: 1.25rem;
  }

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

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: var(--space-3xl);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__phone-wrapper {
    order: -1;
    margin-bottom: var(--space-xl);
  }

  .phone-mockup {
    width: 200px;
    height: 408px;
    border-radius: 28px;
    padding: 8px;
  }

  .phone-mockup__notch {
    width: 84px;
    height: 20px;
    border-radius: 0 0 14px 14px;
    top: 8px;
  }

  .phone-mockup__screen {
    border-radius: 22px;
  }

  .hero__float {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .steps__connector {
    display: none;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
  }

  .feature-row--reverse {
    direction: ltr;
  }

  .feature__content {
    max-width: 100%;
    text-align: center;
  }

  .feature__list {
    align-items: center;
  }

  .phone-mockup--small {
    width: 180px;
    height: 368px;
    border-radius: 24px;
    padding: 8px;
  }

  .phone-mockup--small .phone-mockup__notch {
    width: 72px;
    height: 18px;
    top: 8px;
  }

  .phone-mockup--small .phone-mockup__screen {
    border-radius: 18px;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .cta__box {
    padding: var(--space-3xl) var(--space-lg);
  }
}

/* ===================================================================
   Legal Pages Styles
   =================================================================== */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-md) 0;
}

.legal-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-nav__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.legal-nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
}

.legal-nav__links a:hover {
  color: var(--copper);
}

.legal-page {
  padding: var(--space-3xl) 0 var(--space-4xl);
  min-height: 100vh;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-xs);
}

.legal-page .effective-date {
  color: var(--gray-400);
  font-size: 0.9375rem;
  margin-bottom: var(--space-3xl);
}

.legal-page h2 {
  font-size: 1.375rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-200);
}

.legal-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-page h3 {
  font-size: 1.125rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-page p {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-page ul,
.legal-page ol {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-page li {
  margin-bottom: var(--space-xs);
}

.legal-page strong {
  color: var(--midnight);
}

.legal-page a {
  color: var(--copper);
  text-decoration: underline;
  text-decoration-color: rgba(193, 123, 74, 0.3);
  text-underline-offset: 2px;
}

.legal-page a:hover {
  text-decoration-color: var(--copper);
}

.legal-footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.legal-footer a {
  color: var(--gray-400);
  margin: 0 var(--space-sm);
}

.legal-footer a:hover {
  color: var(--copper);
}

/* Important callout box for legal */
.legal-callout {
  background: rgba(217, 79, 79, 0.06);
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.legal-callout p {
  color: var(--gray-700);
  margin-bottom: var(--space-xs);
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.legal-callout--amber {
  background: rgba(212, 160, 60, 0.08);
  border-left-color: var(--amber);
}
