/* Allergy Shield — landing page styles */
:root {
  --bg: #0b0b0d;
  --bg-2: #111114;
  --bg-3: #16161a;
  --surface: #1a1a1f;
  --surface-2: #20202780;
  --border: #2a2a31;
  --border-2: #3a3a44;
  --text: #f4f2ec;
  --muted: #a8a49b;
  --gold: #c9a96a;
  --gold-2: #e2c48a;
  --red: #a11b1b;
  --red-2: #c92a2a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1200px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-narrow {
  max-width: 820px;
}
.center {
  text-align: center;
}
.center-row {
  justify-content: center;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}
h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.75rem);
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1rem;
}
p:last-child {
  margin-bottom: 0;
}
.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 56ch;
}
.eyebrow {
  display: inline-block;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.eyebrow-red {
  color: var(--red-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}
.btn-primary {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(201, 42, 42, 0.6);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #d63535, #b02020);
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1408;
  box-shadow: 0 8px 24px -10px rgba(201, 169, 106, 0.5);
}
.btn-gold:hover {
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-beta {
  background: rgba(201, 169, 106, 0.12);
  color: var(--gold);
  border: 1px solid rgba(201, 169, 106, 0.35);
}
.badge-beta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(11, 11, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow:
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 6px 18px -8px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-mark-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 1rem;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.nav-desktop {
  display: none;
  gap: 1.5rem;
}
.nav-desktop a {
  color: var(--muted);
  font-size: 1.41rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-desktop a:hover {
  color: var(--text);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header-cta .btn {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile[hidden] {
  display: none !important;
}
.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.nav-mobile a {
  padding: 0.85rem 0.5rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
}
.nav-mobile a:hover {
  background: var(--surface);
}
.nav-mobile .btn {
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .header-cta .btn {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 5rem 0 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowPan 40s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 10% 20%, rgba(161, 27, 27, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.55) 0%, rgba(11, 11, 13, 0.85) 60%, rgba(11, 11, 13, 0.98) 100%);
}
@keyframes slowPan {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}
.hero-copy .badge {
  margin-bottom: 1.25rem;
}
.hero-copy h1 {
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #fff 40%, #d9d2c3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .lead {
  margin-bottom: 1.75rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-cards {
  position: relative;
  display: grid;
  gap: 1rem;
  perspective: 1200px;
}
.mock-card {
  background: linear-gradient(180deg, rgba(30, 30, 36, 0.9), rgba(20, 20, 24, 0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.mock-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a44;
}
.mock-head .dot:nth-child(1) {
  background: #e05252;
}
.mock-head .dot:nth-child(2) {
  background: #e2b155;
}
.mock-head .dot:nth-child(3) {
  background: #5aa572;
}
.mock-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  margin-left: 0.35rem;
}
.mock-search-bar {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}
.mock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.mock-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
}
.mock-list em {
  color: var(--gold);
  font-style: normal;
  font-size: 0.8rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(201, 169, 106, 0.1);
  color: var(--gold-2);
  border: 1px solid rgba(201, 169, 106, 0.25);
  font-size: 0.78rem;
  font-weight: 600;
}

.mock-emergency {
  border-color: rgba(201, 42, 42, 0.35);
  background: linear-gradient(180deg, rgba(45, 20, 20, 0.9), rgba(25, 15, 15, 0.85));
}
.mock-emergency .mock-title {
  color: #f5d9d9;
}
.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-2);
  box-shadow: 0 0 0 0 rgba(201, 42, 42, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 42, 42, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(201, 42, 42, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 42, 42, 0);
  }
}
.mock-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: #f0d6d6;
  font-size: 0.9rem;
  display: grid;
  gap: 0.3rem;
}

@media (min-width: 960px) {
  .hero {
    padding: 7rem 0 6rem;
  }
  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
  }
  .hero-cards {
    transform: rotate(-1.5deg);
  }
  .mock-card {
    transform: translateZ(0);
  }
  .mock-search {
    transform: translateX(-1rem);
  }
  .mock-allergen {
    transform: translateX(1.5rem);
  }
  .mock-emergency {
    transform: translateX(-0.5rem);
  }
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head h2 {
  margin-bottom: 0.9rem;
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Grids */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-3 {
  grid-template-columns: 1fr;
}
.grid-5 {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Cards */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(201, 169, 106, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 169, 106, 0.35);
  box-shadow: var(--shadow);
}
.card:hover::before {
  opacity: 1;
}
.card h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature .ficon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 106, 0.1);
  border: 1px solid rgba(201, 169, 106, 0.3);
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.feature .ficon-red {
  background: rgba(201, 42, 42, 0.12);
  border-color: rgba(201, 42, 42, 0.35);
  color: #f0a5a5;
}

/* Split */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .split-reverse {
    direction: rtl;
  }
  .split-reverse > * {
    direction: ltr;
  }
}
.split-media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-2), var(--gold));
  box-shadow: 0 0 0 3px rgba(201, 169, 106, 0.15);
}

/* Emergency */
.section-emergency {
  background: linear-gradient(180deg, #140b0b, #0b0b0d);
  border-top: 1px solid rgba(201, 42, 42, 0.2);
}
.note {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: rgba(201, 42, 42, 0.08);
  border: 1px solid rgba(201, 42, 42, 0.3);
  color: #f5d9d9;
  margin-top: 1.25rem;
}
.protocol-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.protocol-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 20, 20, 0.6), rgba(20, 15, 15, 0.6));
  border: 1px solid rgba(201, 42, 42, 0.2);
}
.protocol-list span {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.protocol-list h4 {
  font-family: var(--font);
  font-size: 0.98rem;
  margin: 0 0 0.15rem;
  font-weight: 600;
}
.protocol-list p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

/* Pills */
.pills {
  gap: 0.75rem;
}
.pill {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s;
}
.pill:hover {
  border-color: rgba(201, 169, 106, 0.4);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.6rem;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.25rem 1.25rem;
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: rgba(201, 169, 106, 0.4);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
  line-height: 1;
  font-family: var(--font);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0 1.1rem;
  color: var(--muted);
}

/* Final CTA */
.section-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 6rem 0;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-inner {
  max-width: 720px;
  margin: 0 auto;
}
.cta-inner .badge {
  margin-bottom: 1.25rem;
}
.cta-inner h2 {
  margin-bottom: 1rem;
}
.cta-inner p {
  color: #d5d1c8;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.cta-inner .btn {
  display: inline-flex;
}

/* Legal */
.section-legal {
  padding: 3rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.legal-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1rem;
  font-family: var(--font);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #08080a;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.footer-nav a {
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: var(--gold);
}
.footer-meta {
  color: #6d6a63;
  font-size: 0.82rem;
  margin: 0;
}
@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    text-align: left;
  }
  .footer-nav {
    justify-content: center;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-bg img {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
