/*
 * landing.css — styles for the public marketing surface (welcome / privacy /
 * terms). Loaded ONLY by LandingLayout, never by the authenticated app, so the
 * global resets and :root tokens here do not touch in-app styling.
 *
 * This is the first surface built on the DESIGN.md brand tokens (pitch green
 * #1B6B3A, amber #E8A838, warm neutrals, DM Sans). The in-app styles.css still
 * uses the older palette; migrating it is a separate, later effort.
 */

:root {
  --green: #1b6b3a;
  --green-hover: #155a30;
  --green-light: #2da55a;
  --green-subtle: #e8f5ec;
  --ink: #15151f;
  --ink-2: #1e1e2e;
  --ink-line: #2c2c40;
  --amber: #e8a838;
  --amber-hover: #d49630;
  --amber-light: #fdf3e0;
  --amber-text: #b57817;
  --n50: #faf9f7;
  --n100: #f7f6f4;
  --n200: #e8e6e2;
  --n300: #d4d1cc;
  --n400: #a8a49e;
  --n500: #6b6966;
  --n600: #4a4845;
  --n700: #3a3836;
  --n800: #2d2b28;
  --n900: #1c1b19;
  --success: #2d8f4e;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 28px rgba(28, 27, 25, 0.12);
  --shadow-dark: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  background: var(--n100);
  color: var(--n800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow.dark {
  color: var(--amber-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-amber {
  background: var(--amber);
  color: var(--ink);
}
.btn-amber:hover {
  background: var(--amber-hover);
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--n800);
  border-color: var(--n300);
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn-lg {
  font-size: 1.06rem;
  padding: 16px 32px;
}

/* ===== Shared brand + nav ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand .dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green-light);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.brand .tld {
  color: #7c7c95;
  font-weight: 600;
}

.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.lp-nav-links a.muted {
  font-weight: 500;
  font-size: 0.95rem;
}

/* dark nav (inside the hero) — sits above the hero background overlay */
.lp-nav--dark {
  position: relative;
  z-index: 2;
}
.lp-nav--dark .brand {
  color: #fff;
}
.lp-nav--dark .lp-nav-links a.muted {
  color: #a9a9c0;
}
.lp-nav--dark .lp-nav-links a.muted:hover {
  color: #fff;
}

/* light nav (legal pages) */
.lp-nav--light {
  background: rgba(247, 246, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--n200);
  position: sticky;
  top: 0;
  z-index: 20;
}
.lp-nav--light .brand {
  color: var(--n900);
}
.lp-nav--light .brand .dot {
  background: var(--green);
  color: #fff;
}
.lp-nav--light .brand .tld {
  color: var(--n400);
}
.lp-nav--light .lp-nav-links a.muted {
  color: var(--n500);
}
.lp-nav--light .lp-nav-links a.muted:hover {
  color: var(--n900);
}

/* ===== HERO (bold dark + Telegram mock) ===== */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      620px 320px at 82% -5%,
      rgba(45, 165, 90, 0.18),
      transparent 70%
    ),
    radial-gradient(circle at 50% 0, rgba(232, 168, 56, 0.1), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: rgba(255, 255, 255, 0.05);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 50px;
  align-items: center;
  padding: 66px 0 84px;
}
.hero h1 {
  font-size: 3.9rem;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 .am {
  color: var(--amber);
}
.hero h1 .gr {
  color: var(--green-light);
}
.hero p.lede {
  font-size: 1.22rem;
  color: #bebed2;
  margin-top: 22px;
  max-width: 34ch;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #8b8ba6;
  letter-spacing: 0.03em;
}

.phone {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 26px;
  padding: 14px;
  box-shadow: var(--shadow-dark);
}
.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 12px;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 12px;
}
.phone-top .ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.phone-top .nm {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}
.phone-top .st {
  font-size: 0.74rem;
  color: #7c7c95;
}
.bubble {
  background: #26263a;
  color: #ededf5;
  border-radius: 14px 14px 14px 4px;
  padding: 11px 13px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  max-width: 88%;
}
.bubble .from {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-light);
  margin-bottom: 4px;
}
.bubble.me {
  background: var(--green);
  color: #fff;
  margin-left: auto;
  border-radius: 14px 14px 4px 14px;
  max-width: 60%;
  font-weight: 600;
}
.tapbtns {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.tapbtns span {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px;
  border-radius: 8px;
}
.tapbtns .in {
  background: rgba(45, 165, 90, 0.2);
  color: var(--green-light);
}
.tapbtns .out {
  background: rgba(255, 255, 255, 0.06);
  color: #9a9ab2;
}
.miniteam {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  font-size: 0.82rem;
}
.miniteam div b {
  color: #fff;
}
.miniteam .r {
  color: #f0a0a0;
}
.miniteam .y {
  color: var(--amber);
}
.tstamp {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: #6b6b85;
  text-align: right;
}

/* ===== BODY (warm editorial) ===== */
.band {
  padding: 64px 0;
}
.band-tight {
  padding: 56px 0 40px;
}
.section-head {
  max-width: 44ch;
}
.section-head h2 {
  font-size: 2.2rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--n900);
}
.section-head p {
  color: var(--n600);
  font-size: 1.08rem;
  margin-top: 14px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 42px 0;
  border-top: 1px solid var(--n200);
}
.feature:nth-child(even) .f-text {
  order: 2;
}
.feature .f-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--amber-text);
  background: var(--amber-light);
  padding: 4px 9px;
  border-radius: var(--radius-full);
}
.feature h3 {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
  color: var(--n900);
}
.feature p {
  color: var(--n600);
  font-size: 1.04rem;
}
.feature .pain {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--n500);
  border-left: 3px solid var(--n300);
  padding-left: 12px;
  font-style: italic;
}
.f-visual {
  background: #fff;
  border: 1px solid var(--n200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  min-height: 170px;
}
.msg {
  background: var(--n50);
  border: 1px solid var(--n200);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 0.88rem;
  margin-bottom: 9px;
}
.msg .who {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--green);
  margin-bottom: 3px;
}
.tap-btn {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.tap-btn span {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px;
  border-radius: 7px;
}
.tap-in {
  background: var(--green-subtle);
  color: var(--green);
}
.tap-out {
  background: var(--n100);
  color: var(--n500);
}
.billrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--n200);
  font-size: 0.9rem;
}
.billrow:last-child {
  border-bottom: 0;
}
.billrow .y {
  color: var(--success);
  font-weight: 600;
}
.billrow .n {
  color: var(--n400);
}
.teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.team {
  border: 1px solid var(--n200);
  border-radius: var(--radius-md);
  padding: 12px 13px;
}
.team h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}
.team h4 .badge {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.team.red h4 .badge {
  background: #c23b3b;
}
.team.yellow h4 .badge {
  background: var(--amber);
}
.team ul {
  list-style: none;
  font-size: 0.86rem;
  color: var(--n700);
}
.team li {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
.skill {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--n400);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.step {
  background: #fff;
  border: 1px solid var(--n200);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}
.step .num {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 1rem;
  margin-bottom: 14px;
}
.step h4 {
  font-size: 1.06rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 0.92rem;
  color: var(--n600);
}

.tg {
  background: var(--green-subtle);
  border: 1px solid #cde8d5;
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.tg h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--n900);
}
.tg p {
  color: var(--n600);
  margin-top: 8px;
  max-width: 46ch;
}
.tg-chips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.tg-chips span {
  background: #fff;
  border: 1px solid #cde8d5;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-full);
}

/* ===== FINAL CTA + FOOTER (dark, bookends the hero) ===== */
.final {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    700px 300px at 50% 120%,
    rgba(45, 165, 90, 0.18),
    transparent 70%
  );
}
.final h2 {
  font-size: 2.8rem;
  letter-spacing: -0.035em;
  font-weight: 800;
  position: relative;
}
.final h2 .am {
  color: var(--amber);
}
.final p {
  color: #bebed2;
  font-size: 1.14rem;
  margin: 16px auto 30px;
  max-width: 46ch;
  position: relative;
}

.lp-footer {
  background: var(--ink);
  color: #7c7c95;
  padding: 26px 0;
  font-size: 0.88rem;
  border-top: 1px solid var(--ink-line);
}
.lp-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.lp-footer .brand {
  font-size: 1rem;
  color: #fff;
}
.lp-footer .brand .dot {
  width: 22px;
  height: 22px;
}
.lp-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.lp-footer-links a:hover {
  color: #fff;
}
.lp-footer .tag {
  color: #6b6b85;
}

/* ===== COOKIE BANNER (non-blocking, dismissible) ===== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0 auto;
  max-width: 720px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ink);
  color: #e2e2ec;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-dark);
}
/* Author rule beats the UA [hidden] default, which our display:flex overrides. */
.cookie-banner[hidden] {
  display: none;
}
.cookie-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}
.cookie-text a {
  color: var(--amber);
  text-decoration: underline;
}
.cookie-accept {
  flex-shrink: 0;
  padding: 9px 18px;
}
@media (max-width: 480px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ===== LEGAL PAGES ===== */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.legal h1 {
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--n900);
}
.legal .updated {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--n500);
  margin-top: 8px;
}
.legal .draft-banner {
  margin: 22px 0 8px;
  background: var(--amber-light);
  border: 1px solid #f0d9a8;
  color: var(--amber-text);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.92rem;
}
.legal h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--n900);
  margin: 32px 0 10px;
}
.legal p,
.legal li {
  color: var(--n700);
  font-size: 1rem;
  line-height: 1.65;
}
.legal ul {
  margin: 8px 0 8px 22px;
}
.legal li {
  margin: 4px 0;
}
.legal a {
  color: var(--green);
  text-decoration: underline;
}
.legal .placeholder {
  background: var(--n200);
  border-radius: 4px;
  padding: 0 5px;
  font-family: var(--mono);
  font-size: 0.85em;
}

@media (max-width: 880px) {
  .hero-grid,
  .feature,
  .teams,
  .steps {
    grid-template-columns: 1fr;
  }
  .feature:nth-child(even) .f-text {
    order: 0;
  }
  .hero h1 {
    font-size: 2.7rem;
  }
  .hero p.lede {
    max-width: none;
  }
  .lp-nav-links a.muted {
    display: none;
  }
  .final h2 {
    font-size: 2.1rem;
  }
}
@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
