/* BackTrack marketing site — shared styles. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap");

:root {
  --accent: #6b5b95;
  --accent-soft: #efeaf6;
  --accent-ink: #443a63;
  --accent-mid: #a99bc9;
  --bg: #faf9fb;
  --surface: #ffffff;
  --ink: #2c2a33;
  --ink-2: #63606e;
  --ink-3: #97939f;
  --line: #ece9f0;
  --alert: #b4453a;
  --warn: #c8892f;
  --ok: #4c956c;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --maxw: 1040px;
  --shadow: 0 1px 2px rgba(40, 33, 61, 0.05), 0 12px 40px rgba(40, 33, 61, 0.08);
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 680px; }
.display { font-family: var(--font-display); }
.muted { color: var(--ink-2); }
.tiny { font-size: 0.85rem; color: var(--ink-3); }
.center { text-align: center; }

/* nav */
nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 249, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 22px; height: 30px; }
.brand-mark { width: 30px; height: 30px; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a.link { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 0.98rem; }
.nav-links a.link:hover { color: var(--ink); }

.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: inherit; font-weight: 500; font-size: 1rem;
  border-radius: var(--r-pill); padding: 12px 22px;
  background: var(--accent); color: #fff; text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn.ghost { background: var(--accent-soft); color: var(--accent-ink); }
.btn.sm { padding: 9px 16px; font-size: 0.95rem; }
.btn:disabled { opacity: 0.55; pointer-events: none; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hero h1 { font-family: var(--font-display); font-size: 3.1rem; line-height: 1.08; margin: 14px 0 18px; }
.hero .sub { font-size: 1.2rem; color: var(--ink-2); max-width: 30ch; }
.form { margin-top: 26px; display: flex; gap: 10px; max-width: 440px; flex-wrap: wrap; }
.form input {
  flex: 1; min-width: 200px; font-family: inherit; font-size: 1.05rem;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink);
}
.form input:focus, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.anchor { margin-top: 14px; font-size: 0.95rem; color: var(--ink-2); }
.anchor b { color: var(--ink); }
.trust { margin-top: 10px; }
.msg { margin-top: 12px; font-weight: 500; min-height: 1.2em; }
.msg.ok { color: var(--accent); }
.msg.err { color: var(--alert); }

/* phone mockup */
.phone { justify-self: center; width: 300px; background: #1c1a22; border-radius: 40px; padding: 13px; box-shadow: var(--shadow); }
.phone-screen { background: var(--bg); border-radius: 28px; padding: 26px 20px 30px; }
.phone .date { font-size: 0.8rem; color: var(--ink-3); }
.phone .prompt { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; margin: 6px 0 20px; }
.scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.scale span { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 500; font-size: 0.95rem; color: var(--ink-2); background: var(--surface); }
.scale span.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.read { margin-top: 18px; background: var(--accent-soft); color: var(--accent-ink); border-radius: 14px; padding: 12px 14px; font-size: 0.85rem; }
.story-link { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.story-link:hover { text-decoration: underline; }
.legend { display: flex; gap: 18px; font-size: 0.8rem; color: var(--ink-2); margin-top: 10px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.bar { width: 11px; height: 11px; border-radius: 3px; }
.dchips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.dchips span { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px; font-size: 0.82rem; color: var(--ink-2); background: var(--surface); }
.dchips span.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.feature-media .screen { min-height: 264px; display: flex; flex-direction: column; justify-content: center; }

/* sections */
section { padding: 56px 0; }
.section-tag { color: var(--accent); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.h2 { font-family: var(--font-display); font-size: 2rem; line-height: 1.15; margin: 10px 0 0; max-width: 22ch; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; margin-top: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.card .n { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; }
.card h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.card p { color: var(--ink-2); }

/* feature showcase (alternating rows) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 34px 0; }
.feature.flip .feature-media { order: 2; }
.feature h3 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; }
.feature p { color: var(--ink-2); margin-top: 12px; font-size: 1.08rem; }
.screen { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.screen .hd { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.screen .row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.screen .row:first-of-type { border-top: none; }
.screen .row b { font-weight: 500; }
.screen .band { background: var(--accent-soft); color: var(--accent-ink); border-radius: 12px; padding: 12px 14px; font-size: 0.85rem; margin-top: 14px; }
.screen .band.warn { background: #fbf3e5; color: var(--warn); }
.meter { height: 12px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; margin: 12px 0 8px; }
.meter > span { display: block; height: 100%; border-radius: var(--r-pill); background: var(--accent); }
.week { display: flex; gap: 6px; margin-top: 6px; }
.week i { flex: 1; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.7rem; font-weight: 500; background: #f0eef4; color: var(--ink-3); }
.week i.on { background: var(--accent); color: #fff; }
.week i.half { background: var(--surface); border: 2px solid var(--accent); color: var(--accent-ink); }

.honest { text-align: center; }
.honest .h2 { margin: 10px auto 0; }
.honest .lead { margin: 16px auto 0; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; max-width: 920px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; position: relative; }
.price.best { border-color: var(--accent); box-shadow: var(--shadow); }
.price.soon { opacity: 0.72; border-style: dashed; }
.price .pbadge { position: absolute; top: -12px; right: 18px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 5px 12px; border-radius: var(--r-pill); }
.price .pbadge.muted { background: var(--ink-3); }
.price .amt { font-family: var(--font-display); font-size: 2.4rem; margin: 8px 0 2px; }
.price .per { color: var(--ink-3); font-size: 0.9rem; }
.price ul { margin: 16px 0 0; padding-left: 18px; color: var(--ink-2); }
.price li { margin: 6px 0; }

.faq { margin-top: 24px; max-width: 720px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.08rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-2); padding: 0 0 18px; margin: 0; max-width: 64ch; }

.final { text-align: center; }
.final .h2 { margin: 0 auto; }
.final .form { margin: 26px auto 0; justify-content: center; }

/* content pages (about / privacy) */
.page { padding: 56px 0 24px; }
.page h1 { font-family: var(--font-display); font-size: 2.6rem; line-height: 1.1; }
.page .kicker { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }
.prose { font-size: 1.12rem; color: var(--ink); }
.prose p { margin: 18px 0; color: var(--ink-2); }
.prose h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 34px 0 6px; color: var(--ink); }
.prose ul { color: var(--ink-2); padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.pull { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; color: var(--accent-ink); border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 30px 0; }
.sig { margin-top: 34px; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.sig span { display: block; color: var(--ink-3); font-family: var(--font-body); font-size: 0.9rem; margin-top: 4px; }

/* contact modal */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(28, 26, 34, 0.45); display: grid; place-items: center; padding: 20px; }
.modal-overlay[hidden] { display: none; }
.modal { background: var(--surface); border-radius: var(--r-lg); padding: 28px; width: 100%; max-width: 440px; box-shadow: var(--shadow); position: relative; animation: modal-in 0.18s ease; }
@keyframes modal-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.7rem; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 4px; }
.modal-title { font-family: var(--font-display); font-size: 1.4rem; }
.modal-sub { color: var(--ink-2); margin-top: 6px; font-size: 0.95rem; }
.modal-form { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.modal-form input, .modal-form textarea { font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); width: 100%; }
.modal-form input:focus, .modal-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.modal-form textarea { resize: vertical; min-height: 92px; }
.modal-form .btn { margin-top: 4px; width: 100%; }
.modal-msg { min-height: 1.2em; font-weight: 500; font-size: 0.9rem; margin: 0; }
.modal-msg.ok { color: var(--accent); }
.modal-msg.err { color: var(--alert); }

footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--ink-3); font-size: 0.9rem; margin-top: 20px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--ink-2); text-decoration: none; margin-left: 18px; }

@media (max-width: 820px) {
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .hero { padding: 40px 0 20px; }
  .hero h1 { font-size: 2.4rem; }
  .phone { order: -1; }
  .cards, .prices { grid-template-columns: 1fr; }
  .h2 { font-size: 1.7rem; }
  .page h1 { font-size: 2.1rem; }
}
