/* Marketing-page and shared-nav styling - layered on top of style.css's
   tokens/reset (no separate palette anymore; see that file's :root for
   --paper/--ink/--muted/--line/--accent). Loaded on /, /about, /contact, and
   /app (the nav is shared across all four). */

.landing {
  max-width: none;
  background: var(--wall-dark, var(--paper)); /* inherit the site-wide wall backdrop chosen on the homepage */
  color: var(--ink);
}

/* When the chosen wall is dark, flip the marketing pages (About/Contact/Classic) to a legible dark
   theme by remapping the tokens. Scoped to .landing so the gallery homepage (.gallery) is untouched.
   The `.on-dark` class is set on <html> by the wall-theme head script / the homepage picker. */
.on-dark .landing {
  --ink: #f2efe9;
  --muted: rgba(255, 255, 255, 0.62);
  --paper: transparent;
  --paper-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.14);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- shared site header (SiteNav.siteNav()), used on every page incl. the gallery homepage.
   Uses style.css tokens so it renders identically wherever it's loaded; the gallery homepage
   layers dark-wall overrides for it in v2.css. ---- */
.gallery-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.gallery-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gallery-logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.gallery-logo span { color: #bf5c40; }
.gallery-nav { display: flex; gap: 24px; }
.gallery-nav-link {
  font-family: "Space Mono", monospace;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #7c766c;
  text-decoration: none;
}
.gallery-nav-link:hover { color: var(--ink); }

/* ---- nav ---- */

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(233, 237, 240, 0.82); /* --paper, #e9edf0, with alpha for the blur - see :root in style.css */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.landing-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.landing-logo span {
  color: var(--accent);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.landing-nav-link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-nav-link:hover {
  color: var(--ink);
}

.landing-nav-cta {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--paper);
  background: var(--ink);
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.landing-nav-cta:hover {
  background: transparent;
  color: var(--ink);
}

@media (max-width: 820px) {
  .landing-nav-links {
    gap: 0.9rem;
  }

  .landing-nav-link:not(.landing-nav-cta) {
    display: none;
  }
}

/* ---- hero (used by /, /about, /contact - copy differs, structure doesn't) ---- */

.landing-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4rem;
  text-align: center;
}

.landing-hero .eyebrow {
  justify-content: center;
}

.landing-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin: 1.25rem 0 1.1rem;
  letter-spacing: -0.02em;
}

.landing-hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 2rem;
  line-height: 1.55;
}

/* ---- generic section rhythm ---- */

.landing-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.landing-section h2 {
  font-size: 1.6rem;
  margin: 0 0 2rem;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ---- numbered feature sections (About page's "how it works") ---- */

.feat {
  border-top: 1px solid var(--line);
  padding: 3.2rem 0;
}

.feat-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.feat-idx {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
  padding-top: 0.35rem;
}

.feat-body h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  margin: 0.8rem 0 0.7rem;
  max-width: 20ch;
}

.feat-body p {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 1rem;
}

.feat.alt .feat-grid {
  grid-template-columns: 1fr 140px;
}

.feat.alt .feat-idx {
  order: 2;
  text-align: right;
}

.feat.alt .feat-body {
  order: 1;
}

@media (max-width: 720px) {
  .feat-grid, .feat.alt .feat-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .feat.alt .feat-idx {
    order: 0;
    text-align: left;
  }

  .feat.alt .feat-body {
    order: 0;
  }
}

/* ---- MCP callout band ---- */

.landing-mcp {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
}

.landing-mcp-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  text-align: center;
}

.landing-mcp-inner h2 {
  margin-bottom: 1rem;
}

.landing-mcp-inner p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.landing-inline-link {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* ---- "why redon" feature card grid ---- */

.landing-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .landing-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .landing-features {
    grid-template-columns: 1fr;
  }
}

.landing-feature-card {
  background: var(--paper);
  padding: 1.5rem 1.25rem;
}

.landing-feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.landing-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---- closing CTA band ---- */

.landing-close {
  padding: 5.5rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.landing-close h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 20ch;
  margin: 1.25rem auto 1.75rem;
}

.landing-close-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- chat panel (shared by / and /app) ---- */

.landing-chat-section {
  max-width: 880px;
}

.landing-chat-panel .chat-messages {
  min-height: 120px;
}

/* ---- footer ---- */

.landing-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.landing-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.landing-footer-inner nav {
  display: flex;
  gap: 1.1rem;
}

.landing-footer-mono {
  font-family: "Space Mono", monospace;
  letter-spacing: 0.04em;
}
