/* Besti marketing site — Network 13 LLC */

:root {
  --teal: #157A8C;
  --teal-dark: #0E5F6E;
  --teal-light: #E4F3F5;
  --charcoal: #262B33;
  --ink: #1B1F24;
  --muted: #5B6470;
  --bg: #FAFAF8;
  --bg-alt: #F1F4F5;
  --surface: #FFFFFF;
  --border: #E4E7E9;
  --danger: #D64545;
  --success: #1F9D55;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(20, 30, 35, 0.08);
  --max-width: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #2FA6BB;
    --teal-dark: #82D6E6;
    --teal-light: #163238;
    --charcoal: #EDEFF1;
    --ink: #F2F4F5;
    --muted: #A2ACB5;
    --bg: #14181D;
    --bg-alt: #1A1F25;
    --surface: #1C2127;
    --border: #2A3038;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --teal: #2FA6BB;
  --teal-dark: #82D6E6;
  --charcoal: #EDEFF1;
  --ink: #F2F4F5;
  --muted: #A2ACB5;
  --bg: #14181D;
  --bg-alt: #1A1F25;
  --surface: #1C2127;
  --border: #2A3038;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] {
  --teal: #157A8C;
  --teal-dark: #0E5F6E;
  --teal-light: #E4F3F5;
  --charcoal: #262B33;
  --ink: #1B1F24;
  --muted: #5B6470;
  --bg: #FAFAF8;
  --bg-alt: #F1F4F5;
  --surface: #FFFFFF;
  --border: #E4E7E9;
  --shadow: 0 8px 30px rgba(20, 30, 35, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--teal); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--teal-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(60% 60% at 30% 20%, color-mix(in srgb, var(--teal) 22%, transparent), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  margin: 20px 0 18px;
  font-weight: 800;
  color: var(--charcoal);
}

.hero h1 span { color: var(--teal); }

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.store-badges {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: default;
  user-select: none;
}

.store-badge strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.store-badge svg { flex-shrink: 0; }

/* Hero mock */

.hero-visual {
  position: relative;
  min-height: 420px;
}

.phone-stage {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.phone {
  position: relative;
  z-index: 1;
  width: 280px;
  margin: 0 auto;
  background: var(--charcoal);
  border-radius: 34px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.phone-screen {
  background: var(--bg-alt);
  border-radius: 22px;
  padding: 16px 14px 20px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
  padding: 2px 4px 4px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(20,30,35,0.06);
}

.plan-card .row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.tag.expire { background: #FDECEA; color: #B3401F; }
:root[data-theme="dark"] .tag.expire, @media (prefers-color-scheme: dark) { }

.plan-card h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--ink);
}

.plan-card .meta {
  font-size: 0.76rem;
  color: var(--muted);
}

.plan-card .join {
  margin-top: 10px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 0;
  width: 100%;
  font-weight: 700;
  font-size: 0.8rem;
}

.chat-bubble {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--ink);
  max-width: 80%;
}

.chat-bubble.me {
  align-self: flex-end;
  background: var(--teal);
  color: #fff;
  border: none;
}

.floater {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floater.f1 { top: 26px; left: -36px; }
.floater.f2 { bottom: 70px; right: -30px; }

@media (max-width: 520px) {
  .floater.f1 { left: 4px; }
  .floater.f2 { right: 4px; }
}

.floater .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 12px;
  color: var(--charcoal);
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.alt-bg { background: var(--bg-alt); }

/* Feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--charcoal);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--ink);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Trust / safety split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--charcoal);
  font-weight: 800;
  margin: 0 0 18px;
}

.tier-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

.tier-list .badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.check-list .mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 2px;
}

.check-list strong { display: block; color: var(--ink); margin-bottom: 2px; }
.check-list span { color: var(--muted); font-size: 0.93rem; }

/* CTA banner */

.cta-banner {
  background: linear-gradient(135deg, var(--charcoal), #0F5F6E 130%);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  font-weight: 800;
}

.cta-banner p {
  color: #D7E4E7;
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.cta-banner .store-badges { justify-content: center; }
.cta-banner .store-badge {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #E7EEF0;
}
.cta-banner .store-badge strong { color: #fff; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand .brand { margin-bottom: 10px; }

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 32ch;
  margin: 0;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 64px 0 100px;
}

.legal .wrap { max-width: 780px; }

.legal h1 {
  font-size: 2rem;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.25rem;
  color: var(--ink);
  margin: 40px 0 12px;
}

.legal p, .legal li {
  color: var(--muted);
  font-size: 0.98rem;
}

.legal ul { padding-left: 20px; }

.legal .notice {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.9rem;
  margin-bottom: 36px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 360px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  section { padding: 64px 0; }
  .grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 22px; }
  .phone { width: 100%; max-width: 300px; }
}
