/* Costline — landing page styles. No build step, no dependencies. */

:root {
  --bg:        #0b0d10;
  --bg-alt:    #101318;
  --panel:     #14181e;
  --line:      #232a33;
  --line-soft: #1b2027;
  --text:      #e7ecf2;
  --muted:     #98a4b3;
  --dim:       #6d7887;
  --accent:    #4fd1a5;
  --accent-dk: #2f9d7a;
  --warn:      #ffc46b;
  --radius:    14px;
  --wrap:      1080px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; color: var(--muted); }
em { color: var(--text); font-style: normal; border-bottom: 2px solid var(--accent-dk); }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: #0e1217;
  border: 1px solid var(--line-soft);
  padding: .12em .42em;
  border-radius: 5px;
  color: #cfe3dc;
}

/* ── nav ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,13,16,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 650; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .92rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: .86rem; }
.btn-primary { background: var(--accent); color: #06231a; }
.btn-primary:hover { background: #5fe0b4; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-dk); color: var(--text); }
.btn.full { display: block; text-align: center; margin-top: auto; }

/* ── hero ──────────────────────────────────────────────── */
.hero {
  padding: clamp(64px, 11vw, 130px) 0 clamp(48px, 7vw, 84px);
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(79,209,165,.13), transparent 62%),
    radial-gradient(700px 380px at 92% 8%, rgba(79,140,209,.08), transparent 60%);
}
.eyebrow {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: clamp(1.02rem, 2.1vw, 1.2rem); max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.cta-row.center { justify-content: center; }

.trustbar {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px;
  padding: 0; margin: 0; font-size: .86rem; color: var(--dim);
  font-family: var(--mono);
}
.trustbar li::before { content: "✓ "; color: var(--accent-dk); }

/* ── sections ──────────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line-soft); }
.section-alt { background: var(--bg-alt); }
.section-lede { max-width: 62ch; font-size: 1.03rem; }

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; font-size: .94rem; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 26px; margin-bottom: .6em; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.checks.small li { font-size: .92rem; margin-bottom: .5em; }

/* ── steps ─────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(79,209,165,.14); color: var(--accent);
  font-family: var(--mono); font-size: .85rem; font-weight: 700; margin-bottom: 12px;
}
.steps h3 { font-size: 1rem; }

.code {
  background: #070a0d; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; overflow-x: auto; margin: 0;
}
.code code { background: none; border: 0; padding: 0; font-size: .86rem; line-height: 1.8; color: #b8ccc4; }

/* ── sample report ─────────────────────────────────────── */
.report-link {
  display: flex; align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; color: var(--text);
}
.report-link:hover { border-color: var(--accent-dk); text-decoration: none; }
.report-icon {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  background: rgba(255,196,107,.12); color: var(--warn);
  border-radius: 6px; padding: 8px 10px; letter-spacing: .06em;
}
.report-link small { color: var(--dim); }

/* ── pricing ───────────────────────────────────────────── */
.pricing { align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--accent-dk); box-shadow: 0 0 0 1px rgba(79,209,165,.18); }
.price { font-size: 2.3rem; font-weight: 700; color: var(--text); margin: .1em 0 .1em; letter-spacing: -.03em; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price-sub { font-size: .9rem; margin-bottom: 1.1em; }
.tag {
  position: absolute; top: -11px; left: 22px;
  background: var(--accent); color: #06231a;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
}
.price-card .checks { margin-bottom: 22px; }
.fineprint { font-size: .85rem; color: var(--dim); }
.tiny { font-size: .78rem; }

/* ── faq ───────────────────────────────────────────────── */
details {
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
}
details summary {
  cursor: pointer; font-weight: 600; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-family: var(--mono); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; font-size: .95rem; }

/* ── cta + footer ──────────────────────────────────────── */
.section-cta { background: linear-gradient(180deg, transparent, rgba(79,209,165,.045)); }
.footer { border-top: 1px solid var(--line-soft); padding: 40px 0; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-links { display: flex; gap: 20px; font-size: .92rem; }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
