/* ═══ Nukkad Chat Corner — CSS Art product landing (art-first SaaS polish) ═══ */

/* Full-bleed stage: drop the inset “app window” so the night plane reads edge-to-edge */
.landing-app.counter-app {
  padding: 0;
}

.landing-app .app-night-shell {
  width: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  border-radius: 0;
  border: none;
  overflow-x: clip;
  overflow-y: visible;
}

.landing-app .app-night-shell__rim-light {
  border-radius: 0;
}

.landing-app .app-stage {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100svh;
}

/* Header: quiet chrome — brand lives in the hero */
.landing-app .app-brand-text h1,
.landing-app .app-brand-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.landing-app .app-brand-tagline {
  display: none;
}

.landing-app .app-nav-pill--live {
  display: none;
}

@media (max-width: 720px) {
  .landing-app .app-brand-script {
    display: none;
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(100dvh, 920px);
  min-height: min(100svh, 920px);
  padding:
    clamp(4.75rem, 10vh, 6.5rem)
    clamp(1.25rem, 4vw, 3.5rem)
    clamp(1.75rem, 4.5vh, 3.25rem);
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__visual-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 78% 58%, rgba(255, 140, 60, 0.18), transparent 62%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(255, 107, 53, 0.08), transparent 55%),
    linear-gradient(105deg, rgba(6, 4, 3, 0.92) 0%, rgba(6, 4, 3, 0.55) 42%, rgba(6, 4, 3, 0.15) 68%, transparent 100%);
  z-index: 2;
}

.hero__plate {
  position: absolute;
  right: clamp(-8%, -2vw, 4%);
  bottom: clamp(4%, 8vh, 12%);
  width: min(640px, 72vw);
  height: min(560px, 70vh);
  z-index: 1;
  display: grid;
  place-items: center;
  transform: scale(1.15);
  transform-origin: 60% 70%;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.55));
  animation: hero-plate-breathe 8s ease-in-out infinite;
  contain: layout style;
}

.hero__plate .dish-art {
  width: 100%;
  height: 100%;
}

@keyframes hero-plate-breathe {
  0%, 100% { transform: scale(1.15) translateY(0); }
  50% { transform: scale(1.18) translateY(-6px); }
}

.hero__copy {
  position: relative;
  z-index: 3;
  max-width: 34rem;
  will-change: opacity, transform;
  animation: hero-copy-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand-script {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.04em;
  color: var(--lamp);
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 8vw, 5.25rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

.hero__headline {
  margin: 0.9rem 0 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: rgba(245, 239, 232, 0.88);
  text-wrap: balance;
}

.hero__lede {
  margin: 0.7rem 0 0;
  max-width: 36ch;
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.35rem;
}

@media (max-height: 720px) {
  .hero__brand {
    font-size: clamp(2.4rem, 7vh, 3.6rem);
  }

  .hero__headline {
    font-size: clamp(1.1rem, 2.4vh, 1.4rem);
    margin-top: 0.65rem;
  }

  .hero__lede {
    display: none;
  }

  .hero__cta-row {
    margin-top: 1rem;
  }
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 77, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 184, 77, 0.22), rgba(255, 140, 60, 0.12));
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 120, 40, 0.16);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero__cta:hover {
  border-color: rgba(255, 184, 77, 0.7);
  background: linear-gradient(180deg, rgba(255, 184, 77, 0.32), rgba(255, 140, 60, 0.18));
}

.hero__cta:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

.hero__cta-ghost {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 184, 77, 0.25);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__cta-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 184, 77, 0.55);
}

.hero__cta-ghost:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    min-height: auto;
    padding:
      calc(4.25rem + env(safe-area-inset-top, 0px))
      clamp(1rem, 4.5vw, 1.5rem)
      1.75rem;
  }

  .hero__visual {
    position: relative;
    inset: auto;
    height: min(38vh, 260px);
    flex-shrink: 0;
    margin: 0 -0.5rem 0.5rem;
  }

  .hero__plate {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    left: auto;
    width: min(280px, 78vw);
    height: min(240px, 36vh);
    margin: 0 auto;
    transform: scale(0.92);
    transform-origin: center center;
    opacity: 1;
    animation: hero-plate-breathe-mobile 8s ease-in-out infinite;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero__brand {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
  }

  .hero__headline {
    max-width: 28ch;
  }

  .hero__lede {
    max-width: 42ch;
  }

  .hero__cta-row {
    width: 100%;
  }

  .hero__cta {
    flex: 1 1 auto;
    min-width: min(100%, 12rem);
  }

  .hero__visual-wash {
    background:
      linear-gradient(180deg, transparent 0%, rgba(6, 4, 3, 0.2) 40%, rgba(6, 4, 3, 0.88) 100%),
      radial-gradient(ellipse 70% 50% at 50% 30%, rgba(255, 140, 60, 0.22), transparent 60%);
  }
}

@keyframes hero-plate-breathe-mobile {
  0%, 100% { transform: scale(0.92) translateY(0); }
  50% { transform: scale(0.96) translateY(-4px); }
}

/* ── Comfort story (impact / product beat) ── */
.comfort-story {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - clamp(2rem, 6vw, 4rem)));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 5.5rem) 0 clamp(2.5rem, 5vh, 3.5rem);
  text-align: center;
}

.comfort-story__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text);
}

.comfort-story__body {
  margin: 0.9rem auto 0;
  max-width: 40ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.comfort-story__beats {
  list-style: none;
  margin: 2rem auto 0;
  padding: 0;
  max-width: 34rem;
  display: grid;
  gap: 0;
  text-align: left;
  border-top: 1px solid rgba(255, 184, 77, 0.16);
}

.comfort-story__beats > li {
  display: grid;
  grid-template-columns: minmax(7.5rem, 9.5rem) minmax(0, 1fr);
  gap: 0.85rem 1.25rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 184, 77, 0.12);
}

.comfort-story__beat-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lamp);
}

.comfort-story__beat-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(245, 239, 232, 0.88);
}

.comfort-story__cta-row {
  margin: 1.75rem 0 0;
}

.comfort-story__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 77, 0.42);
  background: linear-gradient(180deg, rgba(255, 184, 77, 0.2), rgba(255, 140, 60, 0.1));
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.comfort-story__cta:hover {
  border-color: rgba(255, 184, 77, 0.7);
  background: linear-gradient(180deg, rgba(255, 184, 77, 0.3), rgba(255, 140, 60, 0.16));
}

.comfort-story__cta:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .comfort-story__beats > li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-height: 640px) and (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: calc(3.75rem + env(safe-area-inset-top, 0px));
    padding-bottom: 1.25rem;
  }

  .hero__visual {
    height: min(32vh, 200px);
  }

  .hero__plate {
    opacity: 1;
    width: min(220px, 60vw);
    height: min(180px, 28vh);
  }

  .hero__brand {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }
}

@media (max-width: 360px) {
  .landing-app .order-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .order-card {
    min-height: 0;
  }

  .order-card__hint {
    font-size: 0.55rem;
  }

  .welcome-curtain__title {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .welcome-curtain__line {
    font-size: 1.05rem;
  }
}

/* ── Plates section (menu theater) ── */
.plates-section {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - clamp(1.5rem, 4vw, 3rem)));
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 7vh, 5rem);
}

.plates-section__head {
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.plates-section__label {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lamp);
}

.plates-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
}

.plates-section__lede {
  margin: 0.65rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 42ch;
}

.landing-app .app-shell {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  grid-template-columns: none;
  gap: 0;
}

.landing-app .app-shell::before {
  display: none;
}

.landing-app .order-sidebar,
.landing-app .stats-bar {
  display: none !important;
}

@media (min-width: 600px), (min-width: 900px), (min-width: 1100px) {
  .landing-app .app-shell {
    display: block;
    grid-template-columns: none;
    padding: 0;
    max-width: none;
  }
}

.landing-app .counter-main {
  width: 100%;
}

.landing-app .order-grid {
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 0.85rem;
  overflow-x: hidden;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .landing-app .order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .landing-app .order-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .landing-app .order-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.landing-app .counter-section-head {
  display: none;
}

.landing-app .order-card__hint {
  color: rgba(255, 184, 77, 0.72);
}

/* ── Enhanced dish modal — large plate stage ── */
.landing-app .dish-modal__panel {
  width: min(920px, 100%);
  max-height: min(90dvh, 820px);
  border-radius: 20px;
}

.dish-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.dish-modal__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 1.25rem;
  border-right: 1px solid rgba(255, 184, 77, 0.1);
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(255, 140, 60, 0.14), transparent 65%),
    radial-gradient(ellipse 90% 80% at 50% 100%, rgba(0, 0, 0, 0.45), transparent 55%),
    linear-gradient(180deg, #16110d 0%, #0c0907 100%);
  overflow: hidden;
}

.dish-modal__stage-wrap {
  width: min(100%, 360px);
  height: min(100%, 320px);
  display: grid;
  place-items: center;
}

.dish-modal__stage::before {
  content: '';
  position: absolute;
  inset: 12% 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 170, 80, 0.22), transparent 68%);
  pointer-events: none;
  animation: modal-spotlight 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dish-modal__stage-art {
  width: 100%;
  height: 100%;
  transform: scale(1.05) translateY(18px);
  transform-origin: center center;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  opacity: 0;
  pointer-events: auto;
}

body:has(#plate-vada-pav:checked) .dish-modal--vada-pav .dish-modal__stage-art,
body:has(#plate-chai:checked) .dish-modal--chai .dish-modal__stage-art,
body:has(#plate-pani-puri:checked) .dish-modal--pani-puri .dish-modal__stage-art,
body:has(#plate-idli:checked) .dish-modal--idli .dish-modal__stage-art,
body:has(#plate-dosa:checked) .dish-modal--dosa .dish-modal__stage-art,
body:has(#plate-poha:checked) .dish-modal--poha .dish-modal__stage-art,
body:has(#plate-misal-pav:checked) .dish-modal--misal-pav .dish-modal__stage-art,
body:has(#plate-banana-chips:checked) .dish-modal--banana-chips .dish-modal__stage-art {
  animation: modal-plate-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dish-modal__stage-art .dish-art {
  pointer-events: none;
}

.dish-modal__stage-art [class*="vada-pav-"],
.dish-modal__stage-art [class*="glass-cup"],
.dish-modal__stage-art [class*="biscuit"],
.dish-modal__stage-art [class*="clay-puri"],
.dish-modal__stage-art [class*="porous-idli"],
.dish-modal__stage-art [class*="paneer-dosa"],
.dish-modal__stage-art .bowl-outer,
.dish-modal__stage-art .brushed-steel-bowl,
.dish-modal__stage-art .laadi-pav {
  pointer-events: auto;
  cursor: pointer;
}

@keyframes modal-spotlight {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes modal-plate-in {
  from {
    opacity: 0;
    transform: scale(1.05) translateY(18px);
  }
  55% {
    opacity: 1;
    transform: scale(1.42) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1.35) translateY(0);
  }
}

.dish-modal__comfort {
  margin: 0 0 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 184, 77, 0.16);
  background: rgba(255, 184, 77, 0.06);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.45;
  color: rgba(255, 220, 170, 0.95);
}

.dish-modal__ritual {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--lamp);
}

.dish-modal__nutrition-fold {
  margin-top: 0.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 77, 0.12);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.35rem 0.75rem 0.65rem;
}

.dish-modal__nutrition-fold > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lamp);
  padding: 0.45rem 0;
}

.dish-modal__nutrition-fold > summary::-webkit-details-marker {
  display: none;
}

.dish-modal__nutrition-fold[open] > summary {
  margin-bottom: 0.35rem;
}

.landing-app .order-card__meta {
  display: block;
  margin-top: 0.3rem;
}

.landing-app .order-card__ritual {
  display: block;
  width: 100%;
  font-style: italic;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(255, 220, 170, 0.82);
}

.landing-app .order-price {
  display: none;
}

.dish-modal__toolbar-label {
  letter-spacing: 0.14em;
}

@media (max-width: 760px) {
  .dish-modal__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .dish-modal__stage {
    min-height: 220px;
    max-height: 240px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 184, 77, 0.1);
  }

  .dish-modal__stage-art {
    transform: scale(1) translateY(10px);
  }

  body:has(#plate-vada-pav:checked) .dish-modal--vada-pav .dish-modal__stage-art,
  body:has(#plate-chai:checked) .dish-modal--chai .dish-modal__stage-art,
  body:has(#plate-pani-puri:checked) .dish-modal--pani-puri .dish-modal__stage-art,
  body:has(#plate-idli:checked) .dish-modal--idli .dish-modal__stage-art,
  body:has(#plate-dosa:checked) .dish-modal--dosa .dish-modal__stage-art,
  body:has(#plate-poha:checked) .dish-modal--poha .dish-modal__stage-art,
  body:has(#plate-misal-pav:checked) .dish-modal--misal-pav .dish-modal__stage-art,
  body:has(#plate-banana-chips:checked) .dish-modal--banana-chips .dish-modal__stage-art {
    animation-name: modal-plate-in-mobile;
  }
}

@keyframes modal-plate-in-mobile {
  from {
    opacity: 0;
    transform: scale(1) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1.15) translateY(0);
  }
}

/* ── Micro welcome curtain (CSS-only; checkbox skip + timed auto-dismiss) ── */
.welcome-dismiss-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.welcome-curtain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(255, 140, 60, 0.16), transparent 60%),
    linear-gradient(180deg, #0c0907 0%, #060504 100%);
  animation:
    welcome-curtain-in 0.45s ease both,
    welcome-curtain-auto-out 0.55s ease 3s forwards;
}

#welcome-dismiss:checked ~ .welcome-curtain {
  animation: welcome-curtain-out 0.45s ease forwards;
  pointer-events: none;
}

body.landing-app .app-night-shell {
  filter: blur(2px);
  animation: shell-unblur 0.01s linear 3.5s forwards;
}

#welcome-dismiss:checked ~ .app-night-shell {
  filter: none;
  animation: none;
}

.welcome-curtain__stage {
  text-align: center;
  max-width: 26rem;
}

.welcome-curtain__kulhad {
  position: relative;
  width: 120px;
  height: 110px;
  margin: 0 auto 1.25rem;
}

.welcome-curtain__cup {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 54px;
  height: 58px;
  margin-left: -27px;
  border-radius: 8px 8px 18px 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 40%, transparent 60%, rgba(0, 0, 0, 0.2)),
    linear-gradient(180deg, #8b5a28 0%, #5c3514 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 170, 0.2), 0 10px 24px rgba(0, 0, 0, 0.4);
}

.welcome-curtain__cup::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 12%;
  width: 76%;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #e6cbab, #8b5a28 70%);
}

.welcome-curtain__saucer {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 86px;
  height: 16px;
  margin-left: -43px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, #d67a4b, #7a3a19);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.welcome-curtain__steam {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: 14px;
  height: 36px;
  margin-left: -7px;
  border-radius: 40%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.5), transparent);
  filter: blur(2px);
  mask-image: linear-gradient(to top, transparent, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to top, transparent, #000 40%, transparent);
  animation: welcome-steam 1.8s ease-in-out infinite;
}

.welcome-curtain__steam--2 { margin-left: -18px; animation-delay: 0.25s; opacity: 0.75; }
.welcome-curtain__steam--3 { margin-left: 4px; animation-delay: 0.55s; opacity: 0.65; }

.welcome-curtain__script {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--lamp);
}

.welcome-curtain__title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.welcome-curtain__line {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-style: italic;
  color: rgba(255, 220, 170, 0.9);
}

.welcome-curtain__skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  min-height: 2.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 77, 0.4);
  background: rgba(255, 184, 77, 0.12);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.welcome-curtain__skip:hover {
  border-color: rgba(255, 184, 77, 0.65);
  background: rgba(255, 184, 77, 0.2);
}

.welcome-curtain__skip:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

@keyframes welcome-curtain-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes welcome-curtain-out {
  to { opacity: 0; visibility: hidden; }
}

@keyframes welcome-curtain-auto-out {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@keyframes shell-unblur {
  to { filter: none; }
}

@keyframes welcome-steam {
  0% { transform: translateY(6px) scaleX(0.7); opacity: 0.2; }
  50% { transform: translateY(-8px) scaleX(1.1); opacity: 0.8; }
  100% { transform: translateY(-22px) scaleX(0.5); opacity: 0; }
}

/* Motion: respect reduced preference */
@media (prefers-reduced-motion: reduce) {
  .hero__copy,
  .hero__plate,
  .dish-modal__stage-art,
  .welcome-curtain,
  .welcome-curtain__steam {
    animation: none !important;
  }

  .welcome-curtain {
    display: none !important;
  }

  .app-night-shell {
    filter: none !important;
    animation: none !important;
  }
}

/* ── CSS-first back-to-top ── */
.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 900;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 184, 77, 0.35);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 200, 120, 0.22), transparent 55%),
    rgba(18, 12, 8, 0.88);
  color: var(--lamp, #ffb84d);
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
  opacity: 1;
  border-color: rgba(255, 184, 77, 0.65);
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--lamp, #ffb84d);
  outline-offset: 3px;
}

@supports (animation-timeline: scroll()) {
  .back-to-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    animation: back-to-top-reveal linear both;
    animation-timeline: scroll();
    animation-range: 35vh 65vh;
  }

  .back-to-top:hover,
  .back-to-top:focus-visible {
    transform: translateY(-2px);
  }
}

@keyframes back-to-top-reveal {
  from {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
  }
  to {
    opacity: 0.85;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    animation: none !important;
    opacity: 0.8;
    pointer-events: auto;
    transform: none;
  }
}

/* ═══ Device layout — phones, tablets, desktops ═══ */
.landing-app .app-header {
  gap: 0.65rem;
  padding-top: max(0.7rem, env(safe-area-inset-top, 0px));
  padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
}

.landing-app .app-brand-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-app .comfort-story,
.landing-app .plates-section {
  width: min(1200px, calc(100% - 2 * max(1rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))));
}

.landing-app .order-card {
  max-width: 100%;
}

.landing-app .order-card__viewport {
  overflow: hidden;
}

.landing-app .welcome-curtain {
  padding:
    max(1.25rem, env(safe-area-inset-top, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px))
    max(1.25rem, env(safe-area-inset-bottom, 0px))
    max(1.25rem, env(safe-area-inset-left, 0px));
}

.landing-app .welcome-curtain__title,
.landing-app .welcome-curtain__line {
  overflow-wrap: anywhere;
}

.landing-app .welcome-curtain__title {
  text-wrap: balance;
}

.landing-app .back-to-top {
  width: 2.85rem;
  height: 2.85rem;
}

@media (max-width: 900px) {
  .landing-app .app-nav {
    width: auto;
    flex: 0 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
  }

  .landing-app .app-nav-link {
    min-height: 2.5rem;
    padding-inline: 0.55rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .landing-app .app-header {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .landing-app .app-brand-link {
    flex: 1 1 auto;
    min-width: 0;
  }

  .landing-app .app-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .landing-app .app-nav::-webkit-scrollbar {
    display: none;
  }

  .landing-app .app-nav-link {
    flex-shrink: 0;
  }

  .landing-app .comfort-story {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    text-align: left;
  }

  .landing-app .comfort-story__title {
    font-size: clamp(1.7rem, 8.5vw, 2.35rem);
  }

  .landing-app .comfort-story__body {
    font-size: 0.98rem;
    margin-inline: 0;
  }

  .landing-app .plates-section__title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .landing-app .order-card__viewport {
    --card-viewport-h: 210px;
    --card-scale-mult: 1.08;
  }

  .landing-app .dish-modal {
    padding: 0;
    align-items: stretch;
    place-items: end center;
  }

  .landing-app .dish-modal__panel {
    width: 100%;
    max-width: 100%;
    max-height: min(94dvh, 94svh);
    border-radius: 18px 18px 0 0;
  }

  .landing-app .dish-modal__stage {
    min-height: 200px;
    max-height: min(38vh, 260px);
  }

  .landing-app .hero__cta,
  .landing-app .comfort-story__cta {
    min-height: 2.85rem;
  }
}

@media (max-width: 400px) {
  .landing-app .app-brand-script {
    display: none;
  }

  .landing-app .order-card__viewport {
    --card-viewport-h: 188px;
  }

  .landing-app .welcome-curtain__title {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .landing-app .hero {
    min-height: auto;
    padding-top: calc(3.5rem + env(safe-area-inset-top, 0px));
  }

  .landing-app .hero__visual {
    height: min(28vh, 160px);
  }

  .landing-app .order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .landing-app .dish-modal {
    place-items: center;
    padding: 0.4rem;
  }

  .landing-app .dish-modal__panel {
    width: min(720px, 100%);
    max-height: min(96dvh, 96svh);
    border-radius: 14px;
  }

  .landing-app .dish-modal__layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: none;
  }

  .landing-app .dish-modal__stage {
    max-height: none;
    min-height: 0;
    border-bottom: none;
    border-right: 1px solid rgba(255, 184, 77, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__plate {
    animation: none;
  }
}
