/* ============================================================
   BarSmash — Marketing site CSS
   Extends styles.css tokens
   ============================================================ */

/* Variable aliases — map design-file names to project names */
:root {
  --paper:   #F5F5F5;
  --paper-2: #EDEDEB;
  --line:    var(--border);
  --mute:    var(--muted);
  --success: var(--accent);
  --risk:    var(--wrong);
}

.site { background: var(--paper); color: var(--text); min-height: 100vh; }

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,245,245,0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
  height: 64px;
  display: flex; align-items: center; padding: 0 32px;
}
.site-nav__inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 0;
}
.site-nav__links {
  display: flex; align-items: center; gap: 32px; margin: 0 auto;
}
.site-nav__links a {
  font-size: 13px; color: var(--mute); text-decoration: none;
  font-weight: 500; letter-spacing: -0.005em;
}
.site-nav__links a:hover { color: var(--ink); }
.site-nav__cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--ink); color: var(--paper);
  padding: 96px 0 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,245,245,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,245,245,0.04) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.hero__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  position: relative;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 64px; align-items: center;
}
.hero__eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #8CA89A; margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.18);
}
.hero__title {
  font-size: clamp(56px, 8.4vw, 120px);
  line-height: 0.92; letter-spacing: -0.045em;
  font-weight: 800; color: var(--paper); margin: 0 0 28px;
}
.hero__title em {
  font-style: italic; color: var(--success);
  display: inline-block; transform: skewX(-4deg);
}
.hero__lead {
  font-size: 20px; line-height: 1.55; color: #C4D4CB;
  max-width: 540px; margin: 0 0 36px; letter-spacing: -0.003em;
}
.hero__cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero__fine {
  margin-top: 20px; font-family: var(--mono); font-size: 11px;
  color: #8CA89A; letter-spacing: 0.08em;
}
.hero__ring-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.hero__ring-label {
  text-align: center;
}
.hero__ring-label .lbl-top {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #8CA89A; margin-bottom: 6px;
}
.hero__ring-label .lbl-desc {
  font-size: 13px; color: #C4D4CB; max-width: 280px;
  line-height: 1.5; margin: 0 auto;
}
.hero__stats {
  margin-top: 72px; padding: 28px 32px 40px;
  border-top: 1px solid #22342B;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; max-width: 1280px; margin-left: auto; margin-right: auto;
  position: relative;
}
.hero__stat .num {
  font-size: 44px; font-weight: 600;
  letter-spacing: -0.03em; color: var(--paper); line-height: 1;
}
.hero__stat .num sub {
  font-family: var(--mono); font-size: 12px; color: #8CA89A;
  font-weight: 400; vertical-align: baseline; margin-left: 4px;
}
.hero__stat .lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #8CA89A; margin-top: 10px;
}

/* ── Sections ─────────────────────────────────────────────── */
.site-section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line-soft);
}
.site-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--ink); }
.section-title {
  font-size: clamp(40px, 5vw, 72px); line-height: 1;
  letter-spacing: -0.035em; font-weight: 700; color: var(--ink);
  margin: 0 0 24px; max-width: 900px;
}
.section-title em { font-style: italic; color: var(--pine); }
.section-lead {
  font-size: 18px; line-height: 1.55; color: var(--mute);
  max-width: 620px; margin: 0 0 56px;
}

/* ── Steps ────────────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border-top: 1px solid var(--ink);
}
.step {
  padding: 32px 28px 40px 0;
  border-right: 1px solid var(--line-soft);
}
.step:last-child { border-right: none; padding-right: 0; }
.step:not(:first-child) { padding-left: 28px; }
.step__num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--success); font-weight: 600; margin-bottom: 24px;
}
.step__title {
  font-size: 30px; letter-spacing: -0.02em; font-weight: 700;
  color: var(--ink); margin: 0 0 12px; line-height: 1.05;
}
.step__desc { font-size: 15px; line-height: 1.6; color: var(--mute); margin: 0 0 24px; }
.step__visual {
  height: 110px; border-radius: 6px;
  background: var(--ink); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* ── Preview ──────────────────────────────────────────────── */
.preview-section {
  background: #E8E8E5; padding: 80px 0 120px;
  border-bottom: 1px solid var(--line-soft);
}
.preview-frame {
  margin-top: 48px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(11,31,23,0.24), 0 0 0 1px rgba(11,31,23,0.08);
  background: var(--paper);
}
.preview-chrome {
  height: 36px; background: #DFDFDB;
  display: flex; align-items: center; padding: 0 16px; gap: 8px;
  border-bottom: 1px solid rgba(11,31,23,0.08);
}
.chrome-dot { width: 11px; height: 11px; border-radius: 50%; background: #CDCDC8; }
.chrome-dot.r { background: #E06A5E; }
.chrome-dot.y { background: #E3B341; }
.chrome-dot.g { background: #7DC174; }
.chrome-url {
  flex: 1; text-align: center; font-family: var(--mono);
  font-size: 11px; color: var(--mute); letter-spacing: 0.02em;
}
.preview-inner {
  padding: 32px;
}

/* ── Founder ──────────────────────────────────────────────── */
.founder-section {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
}
.founder-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.founder-card {
  aspect-ratio: 4/5; background: var(--ink);
  border-radius: 8px; padding: 40px; color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
}
.founder-card__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #8CA89A;
}
.founder-card__quote {
  font-family: Georgia, serif; font-style: italic;
  font-size: 30px; line-height: 1.25; letter-spacing: -0.015em;
}
.founder-card__quote span { color: var(--success); }
.founder-card__byline { font-size: 14px; font-weight: 600; }
.founder-card__role {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  color: #8CA89A; text-transform: uppercase; margin-top: 2px;
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-section {
  background: var(--ink); color: var(--paper);
  padding: 120px 0; position: relative; overflow: hidden;
}
.pricing-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,245,245,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,245,245,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.pricing-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.pricing-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; background: var(--success); color: #fff;
  border-radius: 4px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 20px;
}
.pricing-price {
  font-size: 96px; font-weight: 800; letter-spacing: -0.045em;
  line-height: 1; color: var(--paper);
  display: flex; align-items: baseline; gap: 8px;
}
.pricing-price .per {
  font-size: 16px; color: #8CA89A; font-weight: 400;
  font-family: var(--mono);
}
.pricing-then {
  margin-top: 16px; font-size: 15px; color: #C4D4CB;
}
.pricing-then b { color: var(--paper); }
.pricing-list {
  list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px;
}
.pricing-list li {
  display: flex; align-items: flex-start;
  gap: 12px; font-size: 15px; color: #C4D4CB;
}
.pricing-list .ck {
  width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  background: var(--success); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 11px; font-weight: 700;
  margin-top: 1px;
}
.pricing-cta { text-align: center; }
.pricing-cta-sub {
  margin-top: 20px; font-size: 13px; color: #8CA89A;
  font-family: var(--mono); letter-spacing: 0.06em;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink); color: #8CA89A;
  padding: 64px 0 40px; border-top: 1px solid #22342B;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-inner h5 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #6B8478; margin: 0 0 16px; font-weight: 500;
}
.footer-inner a {
  color: #C4D4CB; text-decoration: none; display: block;
  padding: 4px 0; font-size: 13px;
}
.footer-inner a:hover { color: var(--paper); }
.footer-desc { margin-top: 16px; font-size: 13px; color: #8CA89A; max-width: 280px; line-height: 1.5; }
.footer-bottom {
  max-width: 1280px; margin: 48px auto 0;
  padding: 24px 32px 0; border-top: 1px solid #22342B;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: #6B8478;
}

/* ── Signup modal ─────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,31,23,0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 24px;
  animation: fadeIn 160ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-box {
  width: 100%; max-width: 460px; background: var(--paper);
  border-radius: 12px; padding: 36px; position: relative;
  animation: slideUp 220ms cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--mute); background: transparent; cursor: pointer;
  font-size: 18px; line-height: 1;
}
.modal-close:hover { background: var(--line-soft); color: var(--ink); }
.modal-box h2 {
  font-size: 26px; letter-spacing: -0.02em; line-height: 1.1;
  font-weight: 700; color: var(--ink); margin: 16px 0 8px;
}
.modal-box p { font-size: 14px; color: var(--mute); margin: 0 0 24px; line-height: 1.5; }
.modal-tabs {
  display: flex; gap: 0; margin-bottom: 24px;
  border-bottom: 2px solid var(--line-soft);
}
.modal-tab {
  font-size: 13px; font-weight: 600; padding: 8px 16px 10px;
  color: var(--mute); border-bottom: 2px solid transparent;
  margin-bottom: -2px; cursor: pointer; background: none;
  font-family: var(--sans);
}
.modal-tab.active { color: var(--ink); border-color: var(--ink); }
.field-row { display: block; margin-bottom: 14px; }
.field-row label {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 6px;
}
.field-row input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 6px;
  font-size: 15px; font-family: var(--sans); background: #fff;
  color: var(--ink); letter-spacing: -0.005em;
  transition: border 120ms; box-sizing: border-box;
}
.field-row input:focus { outline: none; border-color: var(--ink); }
.modal-error { color: var(--risk); font-size: 13px; margin: 8px 0 0; }
.modal-legal {
  font-size: 11px; color: var(--mute); line-height: 1.5;
  margin-top: 12px;
}
.modal-legal a { color: var(--mute); text-decoration: underline; }

/* ── Animated score ring ──────────────────────────────────── */
#hero-ring svg .ring-fill {
  transition: stroke-dasharray 1.2s cubic-bezier(.2,.8,.2,1);
}

/* ── Buttons (site variants) ──────────────────────────────── */
.btn-success-lg {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--success); color: #fff; font-family: var(--sans);
  font-size: 15px; font-weight: 600; padding: 14px 24px;
  border-radius: 6px; cursor: pointer; text-decoration: none;
  letter-spacing: -0.005em; border: none;
}
.btn-success-lg:hover { background: #15803d; }
.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--paper); padding: 13px 18px; text-decoration: none;
  border: 1px solid #22342B; border-radius: 6px; cursor: pointer;
  background: none;
}
.btn-ghost-light:hover { border-color: #33493D; background: rgba(255,255,255,0.04); }
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--ink); padding: 10px 18px; text-decoration: none;
  border: 1px solid var(--ink); border-radius: 6px;
}
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); }

/* ── Meter bar ────────────────────────────────────────────── */
.meter { height: 4px; background: #22342B; border-radius: 2px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 2px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav { padding: 0 16px; height: 56px; }
  .site-nav__links { display: none; }
  .site-nav__cta { margin-left: auto; }

  .hero { padding: 56px 0 0; }
  .hero__inner {
    padding: 0 20px; grid-template-columns: 1fr;
    gap: 48px; text-align: left;
  }
  .hero__title { font-size: clamp(44px, 12vw, 64px); line-height: 0.95; }
  .hero__lead { font-size: 16px; }
  .hero__cta-row { flex-direction: column; align-items: stretch; }
  .hero__cta-row > * { text-align: center; justify-content: center; }
  .hero__ring-wrap { order: -1; }
  .hero__stats {
    padding: 24px 20px 32px; margin-top: 40px;
    grid-template-columns: repeat(2, 1fr); gap: 24px;
  }
  .hero__stat .num { font-size: 30px; }

  .site-section { padding: 64px 0; }
  .site-wrap { padding: 0 20px; }
  .section-title { font-size: clamp(32px, 8vw, 48px); }
  .section-lead { font-size: 16px; margin-bottom: 32px; }

  .steps { grid-template-columns: 1fr; }
  .step { padding: 28px 0; border-right: none; border-bottom: 1px solid var(--line-soft); }
  .step:last-child { border-bottom: none; }
  .step:not(:first-child) { padding-left: 0; }

  .preview-section { padding: 48px 0 72px; }
  .preview-section .site-wrap { padding: 0 20px; }
  .preview-frame { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .preview-inner { min-width: 900px; }

  .founder-section .site-section { padding: 64px 0; }
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }

  .pricing-section { padding: 72px 0; }
  .pricing-inner { padding: 0 20px; grid-template-columns: 1fr; gap: 48px; }
  .pricing-price { font-size: 72px; }
  .pricing-cta { text-align: left; }

  .footer-inner { padding: 0 20px; grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { padding: 20px 20px 0; flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 46px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 32px; }
  .pricing-price { font-size: 56px; }
}
