/* Curbrank — global styles
   Vanilla CSS, mobile-first, dark theme, system font stack.
   No build step, no dependencies. */

:root {
  --bg: #0b0f17;
  --bg-elev: #131825;
  --bg-card: #1a2030;
  --border: #232a3d;
  --text: #e7eaf0;
  --text-dim: #9aa3b8;
  --text-faint: #6b7689;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --good: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --max: 1100px;
  --gap: 24px;
  --gap-sm: 12px;
  --gap-lg: 48px;
  --space-section: 80px;
  --header-h: 64px;
  --transition: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Inter",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Type scale */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 0.75em;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-bottom: 0.5em;
}

p {
  color: var(--text-dim);
  max-width: 65ch;
}

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

a:hover {
  color: var(--accent-hover);
}

a.muted {
  color: var(--text-dim);
}

a.muted:hover {
  color: var(--text);
}

ul, ol {
  color: var(--text-dim);
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4em;
}

code, pre {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

img, svg {
  max-width: 100%;
  display: block;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-section) 0;
}

.section--tight {
  padding: 56px 0;
}

.section--accent {
  background: linear-gradient(180deg, transparent, var(--bg-elev) 30%, var(--bg-elev) 70%, transparent);
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: 800;
  font-size: 0.85rem;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.nav a.cta {
  background: var(--accent);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav a.cta:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

/* Hamburger toggle: hidden on desktop, shown on mobile (built by /js/global.js) */
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-header .container { position: relative; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 38px;
    padding: 9px 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 15, 23, 0.98);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 6px 0 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a { width: 100%; padding: 13px 22px; font-size: 1rem; }
  .nav a.cta { margin: 10px 22px 4px; text-align: center; padding: 12px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.btn--lg {
  padding: 18px 32px;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  padding: 96px 0 64px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-soft), transparent),
    var(--bg);
}

.hero h1 {
  margin-bottom: 24px;
  max-width: 18ch;
}

.hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 56ch;
}

.hero .ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .meta {
  margin-top: 28px;
  color: var(--text-faint);
  font-size: 0.92rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Cards / grid */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: var(--text-faint);
}

.card h3 {
  color: var(--text);
}

.card p {
  font-size: 0.97rem;
}

.card .icon {
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Pricing card */
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border-color: var(--accent);
  position: relative;
}

.price-card--featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
}

.price-card .name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.price-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-card .price-note {
  font-size: 0.92rem;
  color: var(--text-faint);
  margin-top: 8px;
  margin-bottom: 24px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
  flex: 1;
}

.price-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.95rem;
  position: relative;
  padding-left: 24px;
}

.price-card ul li:last-child {
  border-bottom: none;
}

.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-elev);
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: var(--bg-elev);
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 540px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.form label .hint {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 400;
}

.form input,
.form select,
.form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 80px;
  background: var(--bg-elev);
}

.site-footer .container {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .site-footer .container {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.site-footer h4 {
  color: var(--text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.site-footer ul a {
  color: var(--text-dim);
}

.site-footer ul a:hover {
  color: var(--text);
}

.site-footer .legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Misc */
.tagline {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.muted {
  color: var(--text-dim);
}

.center {
  text-align: center;
}

.flex-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.callout {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  color: var(--text);
}

.callout strong {
  color: var(--accent);
}

/* Stat blocks */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat .number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat .label {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* FAQ */
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  cursor: pointer;
}

details summary {
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 24px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.5rem;
  color: var(--text-faint);
  transition: transform var(--transition);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin-top: 12px;
  font-size: 0.95rem;
}
