/* site.css — the shared chrome of the public site.
 *
 * The tokens, the top menu, the buttons and the plan cards. Every page of
 * the site links this file, so the menu on the pricing page cannot drift
 * from the menu on the marketing page — which is exactly what happened when
 * each page carried its own copy of the header.
 *
 * The pages keep their own CSS for their own layouts; only the parts that
 * are shared live here.
 */

:root {
  --ink: #0d1220;
  --ink-2: #1b2136;
  --muted: #5c6579;
  --muted-2: #8b93a5;
  --line: #e6e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --brand: #5b5bd6;
  --brand-2: #8b5cf6;
  --brand-ink: #3f3fb0;
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(13,18,32,.06), 0 4px 14px rgba(13,18,32,.05);
  --shadow-lg: 0 18px 50px rgba(13,18,32,.12);
  --max: 1140px;
}

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

/* ---------------------------------------------------------------- the menu */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: -.02em; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
}
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { color: #b9c0d4; font-size: 14.5px; font-weight: 500; }
.nav nav a:hover { color: #fff; text-decoration: none; }
.nav .cta {
  background: #fff; color: var(--ink); border-radius: 10px;
  padding: 9px 16px; font-size: 14.5px; font-weight: 600;
}
.nav .cta:hover { text-decoration: none; opacity: .92; }

/* The mobile menu.
   The links used to be hidden below 820px with nothing to replace them, so
   on a phone the menu simply was not there. Now a button opens it. */
.nav .menu-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 36px; border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  color: #fff; align-items: center; justify-content: center; padding: 0;
}
.nav .menu-toggle:hover { background: rgba(255,255,255,.12); }
.nav .menu-toggle i {
  display: block; width: 16px; height: 1.5px; background: #fff; position: relative;
  border-radius: 2px;
}
.nav .menu-toggle i::before, .nav .menu-toggle i::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 1.5px;
  background: #fff; border-radius: 2px;
}
.nav .menu-toggle i::before { top: -5px; }
.nav .menu-toggle i::after { top: 5px; }
@media (max-width: 820px) {
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .nav .brand { order: 1; }
  .nav .cta { order: 2; margin-left: 12px; }
  .nav .menu-toggle { order: 3; display: inline-flex; }
  .nav nav { display: none; }
  /* The menu drops below the bar, full width, as its own row. */
  .nav.open nav {
    display: flex; order: 4; flex-basis: 100%; flex-direction: column;
    align-items: flex-start; gap: 2px; padding: 10px 0 4px;
    border-top: 1px solid rgba(255,255,255,.1); margin-top: 12px;
  }
  .nav.open nav a { width: 100%; padding: 9px 0; font-size: 16px; }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-size: 15.5px; font-weight: 650;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s, background .15s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 24px rgba(91,91,214,.35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(91,91,214,.45); }
/* For a dark background: the hero and the call-to-action band. */
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
/* For a light background. */
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-outline { background: #fff; color: var(--brand-ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--brand); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------ plan cards */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px 30px;
  position: relative; box-shadow: var(--shadow-sm);
}
.plan.featured { border-color: var(--brand); box-shadow: 0 18px 44px rgba(91,91,214,.16); }
.plan.lifetime { border-color: #f4d9a4; background: linear-gradient(180deg, #fffdf7, #fff); }
.plan .tag {
  position: absolute; top: -11px; left: 26px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 999px; color: #fff; background: var(--brand);
}
.plan.lifetime .tag { background: var(--gold); color: #4a2c00; }
.plan h3 { font-size: 19px; letter-spacing: -.02em; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 22px; display: grid; gap: 9px; }
.plan li { font-size: 14.5px; color: var(--ink-2); display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: '✓'; color: var(--green); font-weight: 800; flex: 0 0 auto; }
.plan li.no { color: var(--muted-2); }
.plan li.no::before { content: '–'; color: #c9cedb; }
.plan .btn { width: 100%; }
