/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   mema-care Design System v3 — "Quiet Confidence"
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Warm editorial meets premium healthcare.
   DM Serif Display headings + Source Sans 3 body.
   Organic shapes, frosted cards, luminous gradients.
   WCAG AA compliant. Mobile-first.
*/

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

:root {
  /* ── Color System ── */
  --teal: #0C7C73;
  --teal-deep: #065F5B;
  --teal-light: #10A399;
  --teal-5: rgba(12, 124, 115, 0.05);
  --teal-8: rgba(12, 124, 115, 0.08);
  --teal-12: rgba(12, 124, 115, 0.12);
  --teal-20: rgba(12, 124, 115, 0.20);
  --teal-40: rgba(12, 124, 115, 0.40);

  --amber: #D97706;
  --amber-light: #F59E0B;

  --bg: #FBFAF8;
  --bg-warm: #F5F1EB;
  --bg-cool: #F0F5F4;
  --bg-muted: #F5F7FA;
  --surface: #FFFFFF;

  --text: #1A1D23;
  --text-secondary: #4A5468;
  --text-muted: #8896AB;
  --heading: #111318;

  --confirm: #16A34A;
  --confirm-light: rgba(22, 163, 74, 0.08);

  --border: #E0DDD7;
  --border-light: #EFECEA;
  --white: #FFFFFF;

  /* Legacy aliases for start.html / check.html inline styles */
  --primary: var(--teal);
  --primary-hover: var(--teal-light);
  --primary-dark: var(--teal-deep);
  --primary-5: var(--teal-5);
  --primary-8: var(--teal-8);
  --primary-12: var(--teal-12);
  --primary-20: var(--teal-20);
  --shadow-primary: 0 4px 20px rgba(12, 124, 115, 0.22);

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 40px rgba(12, 124, 115, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(12, 124, 115, 0.10), 0 0 0 1px rgba(12, 124, 115, 0.08);

  /* ── Spacing ── */
  --sp-2: 0.125rem;
  --sp-4: 0.25rem;
  --sp-6: 0.375rem;
  --sp-8: 0.5rem;
  --sp-12: 0.75rem;
  --sp-16: 1rem;
  --sp-20: 1.25rem;
  --sp-24: 1.5rem;
  --sp-32: 2rem;
  --sp-40: 2.5rem;
  --sp-48: 3rem;
  --sp-56: 3.5rem;
  --sp-64: 4rem;
  --sp-80: 5rem;
  --sp-96: 6rem;
  --sp-128: 8rem;

  /* ── Layout ── */
  --mw: 1100px;
  --mw-narrow: 680px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* ── Motion ── */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0, 1);
  --duration: 0.2s;
  --duration-md: 0.35s;
  --duration-slow: 0.6s;

  /* ── Typography ── */
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
}


/* ━━━ Base ━━━ */

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.72;
  overflow-x: hidden;
}


/* ━━━ Utilities ━━━ */

.wrap {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 var(--sp-24);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}


/* ━━━ Header ━━━ */

.mark {
  padding: var(--sp-16) 0;
  background: rgba(251, 250, 248, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.mark > .wrap > span {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
}


/* ━━━ Status Pill ━━━ */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: var(--teal-5);
  border: 1px solid var(--teal-12);
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.status-pill:hover {
  background: var(--teal-8);
  border-color: var(--teal-20);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 124, 115, 0.08);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-8);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px var(--teal-8); }
  50% { box-shadow: 0 0 0 7px rgba(12, 124, 115, 0.03); }
}

.mark .status-pill { margin-bottom: 0; }


/* ━━━ Language Toggle ━━━ */

.lang-toggle {
  display: flex;
  gap: 1px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.lang-btn:hover { color: var(--teal); }

.lang-btn.active {
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}


/* ━━━ Typography ━━━ */

h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 5.5vw, 3rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--heading);
  margin-bottom: var(--sp-24);
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  line-height: 1.2;
  font-weight: 400;
  color: var(--heading);
  margin-bottom: var(--sp-20);
  letter-spacing: -0.005em;
  text-align: center;
}

h3 {
  font-family: var(--font-body);
}

p {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: var(--sp-16);
}

p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.0625rem, 2.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-12);
}

.section-label::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: var(--teal-40);
  border-radius: 1px;
}


/* ━━━ Sections ━━━ */

.section {
  padding: var(--sp-80) 0;
  position: relative;
  text-align: center;
}

.section--warm {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(12, 124, 115, 0.03) 0%, transparent 60%),
    var(--bg-warm);
}

.section--muted {
  background: var(--bg-cool);
}

.section--sage {
  background: var(--bg-cool);
}


/* ━━━ Hero ━━━ */

.hero {
  background: var(--bg);
  padding: var(--sp-56) 0 var(--sp-96);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Luminous gradient orb behind hero */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(12, 124, 115, 0.06) 0%, rgba(245, 241, 235, 0.5) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
}

.hero-visual {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-24);
  margin-top: var(--sp-56);
}


/* ━━━ Hero Phone Screenshots ━━━ */

.hero-phones {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
}

/* Luminous glow behind phones */
.hero-phones::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  border-radius: 40%;
  background: radial-gradient(ellipse, rgba(12, 124, 115, 0.10) 0%, rgba(12, 124, 115, 0.03) 50%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.hero-phone {
  position: absolute;
  width: 62%;
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.10),
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.7);
  transition:
    transform 0.6s var(--ease-smooth),
    box-shadow 0.6s var(--ease-smooth);
}

.hero-phone--back {
  top: 0; left: 0;
  transform: rotate(-4deg) translateY(0);
  z-index: 1;
}

.hero-phone--front {
  bottom: 0; right: 0;
  transform: rotate(2.5deg) translateY(0);
  z-index: 2;
}

.hero-phones:hover .hero-phone--back {
  transform: rotate(-6deg) translate(-8px, -4px);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.7);
}

.hero-phones:hover .hero-phone--front {
  transform: rotate(0.5deg) translate(8px, -8px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.7);
}


/* ━━━ Signup Card (Hero CTA) ━━━ */

.signup-card {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: var(--sp-24) var(--sp-32);
  margin-top: var(--sp-40);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.02);
  width: 460px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  transition:
    box-shadow var(--duration-md) var(--ease),
    transform var(--duration-md) var(--ease),
    border-color var(--duration-md) var(--ease);
}

.signup-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: rgba(12, 124, 115, 0.12);
}

.signup-card .card-heading {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--heading);
  margin-bottom: var(--sp-4);
  text-align: center;
}

.signup-card .card-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--sp-16);
}

.hint {
  display: block;
  margin-top: var(--sp-12);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}


/* ━━━ Store Badges ━━━ */

.store-badges {
  display: flex;
  gap: var(--sp-12);
  margin-top: var(--sp-16);
  justify-content: center;
}

.store-badges--center {
  justify-content: center;
  margin-top: var(--sp-24);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  padding: 13px 26px;
  background: var(--heading);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--duration-md) var(--ease),
    transform var(--duration-md) var(--ease),
    box-shadow var(--duration-md) var(--ease);
}

.store-badge:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 124, 115, 0.25);
}

.store-badge:active {
  transform: translateY(0);
  box-shadow: none;
}

.store-badge svg { flex-shrink: 0; }

.store-badge--large {
  padding: 15px 30px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}


/* ━━━ Problem Block ━━━ */

.problem-block {
  max-width: var(--mw-narrow);
  margin: 0 auto;
  text-align: center;
}

.problem-block p {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text-secondary);
}


/* ━━━ Dialogue / Pull-Quote ━━━ */

.dialogue {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  color: var(--heading);
  padding: var(--sp-24) var(--sp-32);
  border-left: 3px solid var(--teal);
  background: linear-gradient(135deg, var(--teal-5) 0%, rgba(12, 124, 115, 0.02) 100%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--sp-32) auto;
  max-width: 540px;
  text-align: left;
  font-size: clamp(1.125rem, 3vw, 1.3125rem);
  line-height: 1.5;
}


/* ━━━ Checklist ━━━ */

.checklist {
  margin-top: var(--sp-40);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.check-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-8);
  padding: var(--sp-24);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--duration-md) var(--ease),
    box-shadow var(--duration-md) var(--ease),
    transform var(--duration-md) var(--ease);
}

.check-item:hover {
  border-color: rgba(12, 124, 115, 0.15);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.check-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-12);
  margin-top: auto;
  padding-top: var(--sp-12);
}

.check-before {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
}

.check-arrow {
  font-size: 0.875rem;
  color: var(--teal);
  opacity: 0.6;
}

.check-after {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--teal);
}

.check-item p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}


/* ━━━ Steps ━━━ */

.steps {
  margin-top: var(--sp-40);
  counter-reset: step-counter;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-8);
  margin-bottom: var(--sp-20);
  padding: var(--sp-40) var(--sp-24);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition:
    border-color var(--duration-md) var(--ease),
    box-shadow var(--duration-md) var(--ease),
    transform var(--duration-md) var(--ease);
}

.step:hover {
  border-color: var(--teal-20);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.step:last-child { margin-bottom: 0; }

.step-num {
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: var(--teal-8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--teal);
  flex-shrink: 0;
  line-height: 1;
  margin-bottom: var(--sp-16);
  transition:
    background var(--duration-md) var(--ease),
    color var(--duration-md) var(--ease),
    transform var(--duration-md) var(--ease),
    box-shadow var(--duration-md) var(--ease);
}

.step:hover .step-num {
  background: var(--teal);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(12, 124, 115, 0.25);
}

.step-title {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--sp-4);
}

.step p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}


/* ━━━ Trust List ━━━ */

.trust-list {
  list-style: none;
  margin: var(--sp-40) 0;
}

.trust-list li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  padding: var(--sp-12) 0 var(--sp-12) 2.5rem;
  position: relative;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230C7C73' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  transition: transform var(--duration-md) var(--ease), background-color var(--duration-md) var(--ease);
}

.trust-list li:hover::before {
  background-color: var(--teal-12);
  transform: scale(1.15);
}


/* ━━━ Callout ━━━ */

.callout {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  padding: var(--sp-40) var(--sp-40);
  border-radius: var(--radius-xl);
  margin-top: var(--sp-48);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle grain texture */
.callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* Soft orb */
.callout::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.callout p {
  font-size: 1.0625rem;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}


/* ━━━ CTA Band ━━━ */

.cta-band {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(12, 124, 115, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(245, 241, 235, 0.8) 0%, transparent 50%),
    var(--bg-warm);
  padding: var(--sp-96) 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.cta-band h2 { margin-bottom: var(--sp-12); }
.cta-band > .wrap > p { margin-bottom: 0; }


/* ━━━ Trust Bar ━━━ */

.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-12);
  margin-top: var(--sp-32);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trust-sep { color: var(--border); }


/* ━━━ Section Divider ━━━ */

.divider {
  width: 2.5rem;
  height: 2px;
  background: var(--teal);
  opacity: 0.25;
  border: none;
  margin: 0 auto var(--sp-24);
  border-radius: 1px;
}


/* ━━━ Footer ━━━ */

.closing {
  padding: var(--sp-48) 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
  background: var(--white);
}

.closing p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.legal { margin-bottom: var(--sp-8); }

.legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

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

.disclaimer {
  font-size: 0.75rem !important;
  opacity: 0.55;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}


/* ━━━ Form Elements (legacy) ━━━ */

.signup {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  max-width: 440px;
  margin: var(--sp-24) auto 0;
}

.signup input {
  flex: 1;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  line-height: 1.5;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.signup input::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}

.signup input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-8);
}

.signup button {
  padding: 13px 22px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1.5;
  transition:
    background var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform 0.15s var(--ease);
}

.signup button:hover {
  background: var(--teal-light);
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

.signup button:active {
  transform: translateY(0);
  box-shadow: none;
}

.notice {
  display: none;
  margin-top: var(--sp-12);
  padding: var(--sp-12) var(--sp-16);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  text-align: center;
}

.notice--success {
  background: var(--confirm-light);
  border: 1px solid rgba(22, 163, 74, 0.15);
  color: var(--confirm);
}

.notice--info {
  background: var(--teal-8);
  border: 1px solid var(--teal-12);
  color: var(--teal);
}

.notice--error {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.12);
  color: #DC2626;
}


/* ━━━ Unsubscribe Form ━━━ */

.unsub-form {
  margin: var(--sp-16) auto;
  max-width: 360px;
}

.unsub-form form { display: flex; gap: var(--sp-8); }

.unsub-form input {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  outline: none;
}

.unsub-form input:focus { border-color: var(--teal); }

.unsub-form button {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease);
}

.unsub-form button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.unsub-form .notice { font-size: 0.8125rem; margin-top: var(--sp-8); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ANIMATIONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.stagger {
  opacity: 0;
  animation: fadeInUp 0.7s var(--ease-smooth) forwards;
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.15s; }
.stagger-3 { animation-delay: 0.28s; }
.stagger-4 { animation-delay: 0.42s; }
.stagger-5 { animation-delay: 0.58s; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-smooth),
    transform var(--duration-slow) var(--ease-smooth);
}

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

.reveal .reveal-child {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s var(--ease-smooth),
    transform 0.5s var(--ease-smooth);
}

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

.reveal.visible .reveal-child:nth-child(1) { transition-delay: 0.06s; }
.reveal.visible .reveal-child:nth-child(2) { transition-delay: 0.13s; }
.reveal.visible .reveal-child:nth-child(3) { transition-delay: 0.20s; }
.reveal.visible .reveal-child:nth-child(4) { transition-delay: 0.27s; }


/* ━━━ Focus States ━━━ */

.signup button:focus-visible,
.signup input:focus-visible,
.lang-btn:focus-visible,
.store-badge:focus-visible,
.status-pill:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — Mobile (< 480px)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 480px) {
  .mark .status-pill { display: none; }
  .wrap { padding: 0 var(--sp-20); }
  h1 { font-size: 1.625rem; line-height: 1.2; }
  .lead { font-size: 1rem; }
  .section { padding: var(--sp-56) 0; }
  .hero { padding: var(--sp-32) 0 var(--sp-56); }

  .signup-card {
    width: auto;
    padding: var(--sp-20);
    margin-left: 0;
    margin-right: 0;
  }

  .store-badges { flex-direction: column; }
  .store-badge { justify-content: center; }
  .trust-bar { flex-wrap: wrap; }
  .callout { padding: var(--sp-24); border-radius: var(--radius-lg); }
  .dialogue { padding: var(--sp-20); font-size: 1.0625rem; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — Tablet (640px+)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (min-width: 640px) {
  .hero { padding: var(--sp-56) 0 var(--sp-80); }
  .section { padding: var(--sp-80) 0; }
  .cta-band { padding: var(--sp-96) 0; }

  .signup { flex-direction: row; }
  .signup button { flex-shrink: 0; }
  .signup-card { padding: var(--sp-32); }
  .hero-phones { max-width: 380px; }

  h1 {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-16);
  }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — Desktop (960px+)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (min-width: 960px) {
  .wrap { padding: 0 var(--sp-40); }

  .hero {
    padding: var(--sp-64) 0 var(--sp-96);
    text-align: left;
  }

  .hero-layout {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-80);
  }

  .hero-content {
    flex: 1;
    align-items: flex-start;
    min-width: 0;
    max-width: none;
  }

  .hero-visual {
    flex: 0 0 420px;
    margin-top: 0;
  }

  .hero-phones { max-width: 420px; }

  .hero h1 {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(2.25rem, 3.8vw, 3rem);
  }

  .hero .lead { max-width: 520px; }

  .hero .signup-card {
    margin-left: 0;
    margin-right: 0;
    max-width: 480px;
  }

  .hero .store-badges { justify-content: flex-start; }

  .section .wrap { max-width: var(--mw); }

  .section h2 { font-size: 2.125rem; }

  .checklist {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-16);
  }

  .check-item {
    align-items: center;
    text-align: center;
    padding: var(--sp-32) var(--sp-20);
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-20);
  }

  .step {
    margin-bottom: 0;
    padding: var(--sp-40) var(--sp-24);
  }

  .trust-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 var(--sp-48);
  }

  .trust-list li { padding-left: 2.25rem; }

  .cta-band .wrap { max-width: 720px; }

  .closing .wrap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--sp-16);
  }

  .closing .disclaimer { text-align: right; }
  .mark .wrap { max-width: var(--mw); }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — Wide (1200px+)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (min-width: 1200px) {
  .hero-visual { flex: 0 0 480px; }
  .hero-phones { max-width: 460px; }
  .problem-block { max-width: 700px; }
  .hero h1 { font-size: 3rem; }
  .cta-band .wrap { max-width: 780px; }
}


/* ━━━ Reduced Motion ━━━ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stagger { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal .reveal-child { opacity: 1; transform: none; transition: none; }
  .status-dot { animation: none; }
  .signup button, .signup input, .signup-card,
  .step-num, .step, .check-item,
  .trust-list li::before, .legal a,
  .store-badge, .status-pill,
  .hero-phone { transition: none; }
}


/* ━━━ Print ━━━ */

@media print {
  .signup-card, .signup, .hint, .hero-phones,
  .status-pill, .lang-toggle, .store-badges { display: none; }
  .hero, .cta-band { background: transparent; }
  .hero::before, .hero-phones::before { display: none; }
  .section--warm, .section--sage, .section--muted { background: transparent; }
  .mark { position: static; background: transparent; border: none; }
  .stagger, .reveal, .reveal .reveal-child { opacity: 1; transform: none; }
}
