/* Brama landing page. Colors follow the app's own tokens (src/styles/tokens.css). */

:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --bg-3: #18181b;
  --border: #26262b;
  --text: #ececef;
  --muted: #9a9aa3;
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --radius: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.05em 0.35em;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.brand img { border-radius: 7px; }
.brand.small { font-size: 0.9rem; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 0.92rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -10px rgba(59, 130, 246, .7); }
.btn-primary:hover { background: #4f8ff7; }
.btn-ghost { background: var(--bg-3); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: #3a3a41; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }

/* Hero */
.hero {
  padding: 88px 0 40px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(59, 130, 246, .18), transparent 70%),
    radial-gradient(40% 40% at 80% 10%, rgba(139, 92, 246, .12), transparent 70%);
}
.eyebrow {
  color: var(--accent); font-size: 0.8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.07; letter-spacing: -0.035em;
  margin: 0 0 22px; font-weight: 700;
}
.grad {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 680px; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 0.82rem; margin-top: 16px; }

/* App window mock */
.window {
  margin: 56px auto 0; max-width: 980px; text-align: left;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02), 0 -20px 80px -40px rgba(59, 130, 246, .35);
}
.titlebar {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  background: #151517; border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.tabs { display: flex; gap: 2px; margin-left: 18px; overflow: hidden; }
.tab {
  display: flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 7px;
  font-size: 0.76rem; color: var(--muted); white-space: nowrap;
}
.tab.active { background: var(--bg-3); color: var(--text); }
.st { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.st.on { background: var(--ok); } .st.warn { background: var(--warn); }
.win-body { display: grid; grid-template-columns: 230px 1fr; min-height: 340px; }
.sidebar { border-right: 1px solid var(--border); padding: 12px 10px; font-size: 0.8rem; background: #0f0f11; }
.search {
  color: var(--muted); background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 7px; padding: 6px 9px; margin-bottom: 12px; font-size: 0.74rem;
}
.group { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .06em; margin: 12px 6px 6px; }
.host { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 7px; }
.host.sel { background: rgba(59, 130, 246, .14); }
.hn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn em { color: var(--muted); font-style: normal; font-size: 0.7rem; margin-left: 4px; }
.bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; flex-shrink: 0; }
.bars i { width: 4px; height: 14px; background: var(--bg-3); border-radius: 1px; position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); background: var(--ok); }
.bars i.w::after { background: var(--warn); } .bars i.e::after { background: var(--err); }
.term { padding: 16px 18px; background: #0a0a0b; overflow: hidden; }
.term pre { margin: 0; font-family: var(--mono); font-size: 0.78rem; line-height: 1.65; color: #d4d4d8; white-space: pre; }
.term .p { color: #4ade80; } .term .d { color: #60a5fa; } .term .ok { color: var(--ok); }
.cursor { display: inline-block; width: 8px; height: 1.05em; vertical-align: text-bottom; background: #d4d4d8; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 720px) {
  .win-body { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .term pre { font-size: 0.66rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .btn { transition: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 14px; text-align: center; }
.sub { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 48px; font-size: 1.05rem; }
.split h2, .sub.left { text-align: left; margin-left: 0; }
.sub.left { margin-bottom: 24px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color .15s;
}
.section.alt .card { background: var(--bg); }
.card:hover { border-color: #34343b; }
.card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.ic {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 1rem; letter-spacing: -2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .2), rgba(139, 92, 246, .2));
  border: 1px solid rgba(96, 165, 250, .25); color: #93c5fd;
}

.split { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 2; }
}
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); }
.checks li b { color: var(--text); font-weight: 600; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700;
}

.panel {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; font-size: 0.82rem;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
}
.section:not(.alt) .panel { background: var(--bg-2); }
.mono { font-family: var(--mono); }
.panel-h { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.pill { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-family: var(--font); font-size: 0.75rem; }
.pill.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.muted { color: var(--muted); }
.panel-h .muted { margin-left: auto; }
.row {
  display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 8px;
  border-top: 1px solid var(--border);
}
.row span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 0.7rem; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); }
.tag.ok { color: var(--ok); border-color: rgba(34, 197, 94, .35); }
.tag.off { color: var(--muted); }

.confirm { border: 1px solid rgba(245, 158, 11, .4); border-radius: 10px; padding: 16px; background: rgba(245, 158, 11, .05); }
.confirm-h { font-family: var(--font); font-weight: 600; margin-bottom: 10px; }
.confirm-cmd { background: #0a0a0b; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: #d4d4d8; overflow-wrap: anywhere; }
.confirm-b { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; font-family: var(--font); }
.confirm-b .btn:hover { transform: none; }

/* Download */
.download {
  background: radial-gradient(50% 60% at 50% 100%, rgba(59, 130, 246, .16), transparent 70%);
  border-top: 1px solid var(--border);
}
.dl-icon { margin: 0 auto 20px; border-radius: 22px; filter: drop-shadow(0 20px 40px rgba(59, 130, 246, .35)); }
.download .sub { margin-bottom: 28px; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 0.88rem; }
.footer-inner { display: flex; gap: 16px 28px; align-items: center; flex-wrap: wrap; }
.footer .links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* The hidden attribute must win over .btn's display. */
[hidden] { display: none !important; }

/* Pricing */
.pricing {
  display: grid; gap: 16px; max-width: 760px; margin: 0 auto 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.price-card {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.price-card.featured {
  border-color: rgba(96, 165, 250, .45);
  box-shadow: 0 30px 80px -40px rgba(59, 130, 246, .55);
  background: linear-gradient(180deg, rgba(59, 130, 246, .08), var(--bg-2) 60%);
}
.price-card h3 { margin: 0; font-size: 1rem; color: var(--muted); font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .amount { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; }
.price .per { color: var(--muted); }
.price-card .checks { flex: 1; }
.price-card .btn { align-self: flex-start; }
.price-card .fine { margin: 0; }
