/*
 * Landing page styles — Phase 1 visual refresh.
 * All tokens scoped inside #landing-page to prevent app-shell leakage.
 */

/* =========================
   DESIGN TOKENS (landing-scoped)
   ========================= */
#landing-page {
  --bg:          #0e0d0c;
  --bg-2:        #161412;
  --bg-3:        #1e1b17;
  --bg-4:        #272320;
  --fg:          #f5efe6;
  --fg-2:        #d8cfc3;
  --fg-3:        #a89e91;
  --fg-4:        #6e6560;
  --amber:       #e8c97c;
  --amber-line:  rgba(232, 201, 124, 0.22);
  --sage:        #8baa8e;
  --line:        rgba(232, 201, 124, 0.14);
  --line-soft:   rgba(255, 255, 255, 0.07);
  --line-faint:  rgba(255, 255, 255, 0.04);
}

/* =========================
   ICON HELPERS
   Referenced by SVGs inside #landing-page only.
   Inherit --fg / --amber tokens from the scoped root.
   ========================= */
.li-stroke {
  stroke: var(--fg);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.li-stroke-thin {
  stroke: var(--fg);
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.li-fill       { fill: var(--fg);    stroke: none; }
.li-fill-accent { fill: var(--amber); stroke: none; }

/* =========================
   PAGE SHELL
   ========================= */
#landing-page {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, Arial, sans-serif;
  overflow-x: hidden;
  box-sizing: border-box;
}
#landing-page.hidden { display: none; }

.landing-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px 28px 72px;
  box-sizing: border-box;
}

/* =========================
   NAV
   ========================= */
.landing-nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.landing-cup {
  width: 48px;
  height: 42px;
  display: inline-flex;
  color: var(--amber);
  flex: 0 0 auto;
  overflow: hidden;
  background: url("/assets/chatboba-icon.png") left center / auto 132% no-repeat;
}

.landing-cup svg {
  display: none;
  width: 100%;
  height: 100%;
}

.landing-cup path,
.landing-cup rect {
  fill: var(--bg-3);
  stroke: currentColor;
  stroke-width: 1.8;
}

.landing-cup .cup-straw {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.landing-cup circle {
  fill: var(--fg-4);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-nav-actions button,
.landing-actions button {
  min-height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.landing-nav-link {
  padding: 8px 12px;
  color: var(--fg);
  background: rgba(232, 201, 124, 0.055);
  border: 1px solid rgba(232, 201, 124, 0.12);
}

.landing-nav-cta {
  padding: 9px 18px;
  color: var(--fg);
  background: rgba(126, 79, 19, 0.72);
  border: 1px solid rgba(232, 201, 124, 0.24);
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(126, 79, 19, 0.18);
}

/* =========================
   HERO
   ========================= */
.landing-hero {
  max-width: 680px;
  padding: 84px 0 52px;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 10px;
  margin-bottom: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-3);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.landing-copy h1 {
  margin: 0;
  color: var(--fg);
  font-size: 52px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.landing-copy h1 span {
  display: block;
  color: inherit;
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  font-variation-settings: inherit;
}

.landing-subtitle {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.65;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 44px;
}

.landing-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-weight: 600;
}

.landing-primary {
  background: rgba(126, 79, 19, 0.76);
  color: var(--fg);
  border: 1px solid rgba(232, 201, 124, 0.26);
  box-shadow: 0 12px 32px rgba(126, 79, 19, 0.2);
}

.landing-secondary {
  background: rgba(232, 201, 124, 0.045);
  color: var(--fg);
  border: 1px solid rgba(232, 201, 124, 0.12);
}

.landing-note {
  flex-basis: 100%;
  margin: 4px 0 0;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 500;
}

.landing-pearl {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  background: var(--fg-4);
  opacity: 0.5;
}

.landing-pearl-warm {
  background: var(--amber);
  opacity: 0.7;
}

/* =========================
   FEATURE ROW
   ========================= */
.landing-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1040px, 100%);
  border-top: 1px solid var(--line-faint);
  margin: 0 auto;
  padding-top: 56px;
}

.landing-feat {
  padding: 0 28px 0 0;
}

.landing-feat + .landing-feat {
  padding: 0 28px 0 28px;
  border-left: 1px solid var(--line-faint);
}

.landing-feat:last-child {
  padding-right: 0;
}

.landing-feat-icon {
  display: flex;
  align-items: center;
  color: var(--fg-3);
  min-height: 78px;
  margin-bottom: 24px;
}

.landing-feat-icon svg {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 18px rgba(245, 239, 230, 0.08));
}

.landing-feat-title {
  display: block;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.landing-feat-desc {
  display: block;
  margin-top: 6px;
  color: rgba(168, 158, 145, 0.74);
  font-size: 11px;
  line-height: 1.5;
  transition: color 0.15s ease;
}

/* Feature tiles as About deep-links */
a.landing-feat {
  text-decoration: none;
  color: inherit;
}

a.landing-feat:hover .landing-feat-desc {
  color: var(--fg-3);
}

a.landing-feat:hover .landing-feat-icon svg {
  filter: drop-shadow(0 0 18px rgba(245, 239, 230, 0.16));
}

a.landing-feat:focus-visible {
  outline: 1px solid rgba(232, 201, 124, 0.28);
  outline-offset: 10px;
  border-radius: 4px;
}

/* =========================
   ABOUT STRIP
   ========================= */
.landing-about-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 44px 0 0;
  color: var(--fg-4);
  font-size: 12px;
}

.landing-about-strip a {
  color: var(--fg-3);
  text-decoration: none;
  transition: color 0.16s ease;
}

.landing-about-strip a:hover,
.landing-about-strip a:focus-visible {
  color: var(--fg);
  outline: none;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 840px) {
  .landing-shell {
    padding: 18px 18px 52px;
  }

  .landing-hero {
    padding: 56px 0 44px;
  }

  .landing-copy h1 {
    font-size: 44px;
  }
}

@media (max-width: 520px) {
  .landing-shell {
    padding: 16px 16px calc(40px + env(safe-area-inset-bottom, 0px));
  }

  .landing-nav {
    align-items: flex-start;
  }

  .landing-nav-actions {
    gap: 6px;
  }

  .landing-nav-link {
    padding-inline: 8px;
  }

  .landing-nav-cta {
    padding-inline: 12px;
  }

  .landing-hero {
    padding: 44px 0 36px;
  }

  .landing-copy h1 {
    font-size: 36px;
    line-height: 1.1;
  }

  .landing-kicker {
    margin-bottom: 20px;
  }

  .landing-subtitle {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.62;
  }

  .landing-actions {
    align-items: stretch;
    gap: 10px;
    margin-top: 36px;
  }

  .landing-actions button {
    width: 100%;
    min-height: 46px;
  }

  .landing-note {
    text-align: center;
  }

  /* Feature row: 2×2 on mobile */
  .landing-features {
    grid-template-columns: 1fr 1fr;
    padding-top: 40px;
    gap: 0;
  }

  .landing-feat-icon {
    min-height: 58px;
    margin-bottom: 18px;
  }

  .landing-feat-icon svg {
    width: 54px;
    height: 54px;
  }

  .landing-feat {
    padding: 0 20px 0 0;
  }

  .landing-feat + .landing-feat {
    padding: 0 0 0 20px;
    border-left: 1px solid var(--line-faint);
  }

  .landing-feat:nth-child(2n+1) {
    padding-left: 0;
    border-left: none;
  }

  .landing-feat:nth-child(2n) {
    padding-right: 0;
  }

  .landing-feat:nth-child(n+3) {
    padding-top: 28px;
    border-top: 1px solid var(--line-faint);
    border-left: none;
  }

  .landing-feat:nth-child(4) {
    border-left: 1px solid var(--line-faint);
    padding-left: 20px;
  }
}
