/* Menuchat — product-style landing (Menuchat palette). */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --orange: rgb(237, 115, 45);
  --orange-deep: rgb(205, 88, 28);
  --accent: var(--orange);
  --accent-hover: var(--orange-deep);
  --gate-danger: rgb(180, 50, 50);
  --canvas-top: rgb(254, 254, 253);
  --canvas-mid: rgb(250, 249, 247);
  --text: rgb(26, 32, 30);
  --text-muted: rgb(92, 100, 95);
  --border: rgba(26, 40, 32, 0.09);
  --border-strong: rgba(26, 40, 32, 0.16);
  --surface: #ffffff;
  --screen-tint: linear-gradient(168deg, #ffffff 0%, rgb(252, 251, 249) 100%);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 18px 40px rgba(26, 50, 40, 0.05),
    0 2px 8px rgba(26, 40, 32, 0.04);
  --shadow-cta: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 28px rgba(205, 88, 28, 0.22);
  --btn-radius: 12px;
  --max: min(1180px, 100%);
  --ease: cubic-bezier(0.33, 0.82, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-app,
  .nav-cta {
    transition: none;
    animation: none;
  }
}

body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-color: var(--canvas-mid);
  background-image:
    radial-gradient(720px 320px at 12% -8%, rgba(237, 115, 45, 0.1), transparent 58%),
    linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas-mid) 100%);
}

::selection {
  background: rgba(237, 115, 45, 0.18);
  color: var(--text);
}

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ──────────────────────────────────────────────────── */

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo {
  font-family:
    Inter,
    system-ui,
    sans-serif;
  font-size: clamp(0.9375rem, 2.8vw, 1.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--orange-deep);
}

.nav-cta {
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(42, 36, 32, 0.04);
  transition:
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.nav-cta:hover {
  border-color: rgba(237, 115, 45, 0.35);
  box-shadow: 0 4px 16px rgba(237, 115, 45, 0.12);
}

.nav-cta:active {
  transform: scale(0.99);
}

/* ── Landing main ─────────────────────────────────────────── */

.landing-main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.75rem) clamp(1.25rem, 4vw, 2rem) clamp(3.25rem, 7vw, 5.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.hero-centered {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-copy {
  min-width: 0;
  max-width: min(40rem, 100%);
  margin: 0 auto;
}

.hero-display {
  margin: 0 0 clamp(1.1rem, 2.8vw, 1.35rem);
  font-family:
    Inter,
    system-ui,
    sans-serif;
  font-weight: 700;
  font-size: clamp(2.65rem, 6.2vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-display-line {
  display: block;
  color: var(--text);
  text-wrap: balance;
}

.hero-display-line--accent {
  margin-top: 0.04em;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--orange-deep);
}

.landing-lead {
  margin: 0 auto clamp(1.6rem, 3vw, 2rem);
  max-width: 38rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 450;
  text-wrap: balance;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
}

.hero-visual {
  margin: clamp(1.25rem, 4vw, 2rem) auto 0;
  width: min(280px, 72vw);
  position: relative;
}

.hero-visual-glow {
  position: absolute;
  inset: 8% 4% 4%;
  border-radius: 48px;
  background: radial-gradient(circle at 50% 20%, rgba(237, 115, 45, 0.28), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  padding: 9px;
  background: linear-gradient(158deg, #1f2937 0%, #0f172a 42%, #111827 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 16px 36px rgba(15, 23, 42, 0.28),
    0 6px 14px rgba(234, 88, 12, 0.1);
}

.phone-screen {
  position: absolute;
  inset: 9px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
}

.phone-screen-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.btn-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0 2rem;
  border-radius: var(--btn-radius);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  letter-spacing: -0.02em;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-cta);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease),
    filter 0.2s var(--ease),
    color 0.18s var(--ease);
}

.btn-app:link,
.btn-app:visited {
  color: #fff;
}

.btn-app:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
}

.btn-app:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  filter: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 12px 32px rgba(205, 88, 28, 0.28);
  color: #fff;
}

.btn-app:active {
  transform: translateY(0);
  color: #fff;
}

/* Footer */

.landing-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  padding: 1.1rem 1.25rem calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: color 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--orange-deep);
}

.footer-link-soft:hover {
  color: var(--orange-deep);
}

.footer-link-soft {
  font-weight: 500;
  opacity: 0.95;
}

.footer-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--orange);
}

/* Privacy / Terms — full-width pages use `.prose-nav-shell` on sticky header */

.prose-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2rem) clamp(3.25rem, 8vw, 4.5rem);
}

.prose-page h1 {
  font-family:
    Inter,
    system-ui,
    sans-serif;
  font-weight: 700;
  font-size: 1.625rem;
  font-style: normal;
  margin: 0 0 1rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.prose-page p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem;
  font-weight: 450;
}

.prose-page a {
  color: var(--orange);
  font-weight: 600;
}

.prose-page a:hover {
  color: var(--orange-deep);
}

.prose-page h2 {
  font-family:
    Inter,
    system-ui,
    sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.prose-page .legal-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.prose-page ul.legal-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.prose-page ul.legal-list li {
  margin-bottom: 0.55rem;
  line-height: 1.6;
}

.prose-page strong {
  color: var(--text);
  font-weight: 650;
}

.prose-footer-nav {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
}

.prose-back {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

/* Session password gate (`site-gate.js`) */

html.site-gate-active body {
  overflow: hidden;
}

.site-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgb(248, 245, 239);
}

.site-gate-card {
  width: min(100%, 360px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  padding: 1.5rem 1.35rem 1.65rem;
  box-shadow: var(--shadow-soft);
}

.site-gate-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.025em;
  color: var(--orange-deep);
}

.site-gate-hint {
  margin: 0 0 1.1rem;
  font-size: 0.90625rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.site-gate-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.site-gate-input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(252, 252, 250, 0.98);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.55rem;
  font-family: inherit;
}

.site-gate-input:focus {
  outline: none;
  border-color: rgba(237, 115, 45, 0.55);
  box-shadow: 0 0 0 3px rgba(237, 115, 45, 0.18);
}

.site-gate-input--err {
  border-color: var(--gate-danger);
}

.site-gate-err {
  margin: -0.1rem 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gate-danger);
}

.site-gate-err[hidden] {
  display: none !important;
}

.site-gate-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  font-size: 0.9625rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--accent);
  box-shadow: var(--shadow-cta);
}

.site-gate-submit:hover {
  background: var(--accent-hover);
  filter: brightness(1.03);
}

.site-gate-submit:active {
  transform: translateY(1px);
}
