/* ============================================================
   DPAI — Cookie Policy ("Inflight Menu")
   Extends styles/site.css and reuses the generic TOC + clause
   patterns from styles/terms.css. Only the net-new patterns live
   here: the floating "inflight meal menu" summary card — a navy
   menu cover bound to a cream à-la-carte page listing the cookie
   "courses" we serve — on a pointer-tilt / glare scene.
   ============================================================ */

/* ---- Hero (centered legal variant — mirrors .terms-hero) ---- */
.cookies-hero .wrap {
  max-width: 860px;
  text-align: center;
  padding-top: clamp(52px, 8vw, 100px);
  padding-bottom: clamp(46px, 7vw, 84px);
}
.cookies-hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.6rem);
  margin: 16px 0 18px;
  letter-spacing: -0.02em;
}
.cookies-hero .hero-sub { margin-inline: auto; }

/* ============================================================
   30-SECOND SUMMARY — the "inflight menu" card
   A navy menu cover (left) bound to a cream à-la-carte page
   (right) listing the cookie courses, floating with pointer-tilt
   + glare like the homepage outro boarding pass.
   ============================================================ */
.cookies-summary { padding-top: clamp(40px, 6vw, 64px); }

.menu-scene { perspective: 1200px; }
.menu-float { animation: menu-float 6s ease-in-out infinite; will-change: transform; }
@keyframes menu-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.menucard {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.25s ease;
  box-shadow: 0 44px 96px -42px rgba(10, 28, 43, 0.6);
}
.menu-scene:hover .menucard { box-shadow: 0 64px 120px -40px rgba(10, 28, 43, 0.6); }

/* pointer-tracking gloss */
.menu-glare {
  position: absolute; inset: 0; z-index: 8; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 46%);
  opacity: 0; transition: opacity 0.3s ease; mix-blend-mode: screen;
}
.menu-scene:hover .menu-glare { opacity: 1; }

/* ---- Two-page spread ---- */
.menu-body { display: grid; grid-template-columns: 0.92fr auto 1.08fr; min-height: 460px; }

/* ============================================================
   LEFT PAGE · the menu cover
   ============================================================ */
.menu-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 3.6vw, 44px);
  color: #fff;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(58, 163, 227, 0.4), rgba(58, 163, 227, 0) 60%),
    radial-gradient(120% 90% at 12% 100%, rgba(240, 180, 41, 0.3), rgba(240, 180, 41, 0) 55%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 52%, #0c2438 100%);
  isolation: isolate;
  overflow: hidden;
}
/* thin gold "place setting" frame on the cover */
.menu-cover::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 0;
  border: 1px solid rgba(240, 180, 41, 0.4);
  border-radius: 8px;
  pointer-events: none;
}
.menu-cover > * { position: relative; z-index: 1; }

/* masthead */
.menu-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.menu-eyebrow {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9fc0d8;
}
.menu-utensils {
  width: 30px; height: 30px;
  color: var(--gold);
  opacity: 0.95;
}
.menu-utensils svg { width: 100%; height: 100%; }

/* cover title block */
.menu-coverlines { margin-top: auto; text-align: center; }
.menu-kicker {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.menu-title {
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #fff;
}
.menu-title span {
  display: block;
  background: linear-gradient(100deg, #6fc1f0 10%, var(--gold) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.menu-dek {
  font-size: 0.96rem;
  line-height: 1.5;
  color: #c8dcec;
  max-width: 34ch;
  margin-inline: auto;
}

/* cover footer · "served" line with rule flourishes */
.menu-served {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8fb0c8;
}
.menu-served::before,
.menu-served::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============================================================
   CENTER · the menu fold (binding)
   ============================================================ */
.menu-fold {
  width: 18px;
  background:
    linear-gradient(90deg,
      rgba(10, 28, 43, 0.26) 0%,
      rgba(10, 28, 43, 0.07) 24%,
      rgba(10, 28, 43, 0) 46%,
      rgba(10, 28, 43, 0.05) 54%,
      rgba(10, 28, 43, 0.12) 100%);
}

/* ============================================================
   RIGHT PAGE · the à-la-carte cookie courses
   ============================================================ */
.menu-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: clamp(24px, 3.2vw, 38px) clamp(24px, 3.4vw, 40px);
  background: linear-gradient(180deg, #fffdf8 0%, #fffaef 100%);
}

/* course heading (e.g. "Always served") */
.menu-course {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 14px 0 4px;
}
.menu-course:first-child { margin-top: 0; }
.menu-course::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

/* a single dish (cookie type) */
.menu-dish {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.menu-dish:last-child { border-bottom: 0; }
.menu-dish-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.menu-dish-name {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.menu-leaders {
  flex: 1;
  min-width: 14px;
  align-self: flex-end;
  margin-bottom: 4px;
  border-bottom: 1.5px dotted var(--ink-faint);
  opacity: 0.55;
}
.menu-price {
  flex: none;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.menu-price.always { background: rgba(40, 200, 100, 0.16); color: #1a9b63; }
.menu-price.optional { background: var(--gold-soft); color: var(--gold-deep); }
.menu-dish-desc {
  margin: 3px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 42ch;
}

/* "Not on the menu" footnote */
.menu-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.menu-note b { color: var(--ink); }
.menu-note svg { width: 15px; height: 15px; flex: none; color: var(--gold-deep); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .menu-body { grid-template-columns: 1fr; }
  .menu-fold {
    width: auto;
    height: 14px;
    background: linear-gradient(180deg,
      rgba(10, 28, 43, 0.16), rgba(10, 28, 43, 0) 70%);
  }
  .menu-cover { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-float { animation: none; }
  .menucard { transform: none !important; }
}
