/* Parvchakra Developer Portal — v2
   Inspired by algozig.com brand (deep indigo + saffron accent) and
   prokerala.com's clean, professional API portal layout.
   Zero build step. No external fonts except Google Fonts via CSS import. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --indigo:        #3730a3;
  --indigo-dark:   #1e1b6e;
  --indigo-mid:    #4f46e5;
  --indigo-light:  #eef2ff;
  --indigo-pale:   #f5f3ff;

  /* Accent */
  --saffron:       #ea580c;
  --saffron-light: #fff7ed;

  /* Neutrals */
  --ink:           #0f0e17;
  --ink-2:         #1e1d2e;
  --body:          #374151;
  --muted:         #6b7280;
  --subtle:        #9ca3af;
  --line:          #e5e7eb;
  --line-2:        #f3f4f6;
  --paper:         #f9fafb;
  --white:         #ffffff;

  /* Semantic */
  --ok:            #15803d;
  --ok-bg:         #f0fdf4;
  --ok-border:     #bbf7d0;
  --bad:           #b91c1c;
  --bad-bg:        #fef2f2;
  --bad-border:    #fecaca;
  --warn:          #b45309;
  --warn-bg:       #fffbeb;
  --warn-border:   #fde68a;

  /* Surfaces */
  --card-shadow:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --card-shadow-hover: 0 4px 16px rgba(55,48,163,.12), 0 2px 4px rgba(0,0,0,.06);

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;

  /* Topbar height */
  --topbar-h: 64px;
}

/* ── Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

main.wrap { padding-top: 36px; padding-bottom: 72px; min-height: calc(100vh - var(--topbar-h) - 100px); }

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--indigo-dark);
  height: var(--topbar-h);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.topbar .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em;
}
.brand .logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo-mid), var(--saffron));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.brand .sub { font-weight: 400; opacity: 0.55; font-size: 0.85rem; margin-left: 2px; }

.topbar nav {
  display: flex; align-items: center; gap: 4px;
}
.topbar nav a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.topbar nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.topbar nav a.active { color: #fff; background: rgba(255,255,255,.12); }

.topbar nav .nav-sep { width: 1px; height: 20px; background: rgba(255,255,255,.18); margin: 0 4px; }

.linkish {
  background: none; border: 0;
  color: rgba(255,255,255,0.75); font: inherit; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; padding: 6px 12px; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.linkish:hover { color: #fff; background: rgba(255,255,255,.1); }
form.inline { display: inline; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--indigo-mid); color: var(--white);
  border: 1px solid var(--indigo-mid);
  border-radius: var(--r-md); padding: 10px 20px;
  font: inherit; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .1s;
  box-shadow: 0 1px 2px rgba(79,70,229,.18);
}
.btn:hover {
  background: var(--indigo);
  box-shadow: 0 4px 12px rgba(79,70,229,.28);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); box-shadow: none; }

.btn.sm { padding: 7px 14px; font-size: 0.82rem; border-radius: var(--r-sm); }
.btn.lg { padding: 13px 28px; font-size: 1rem; border-radius: var(--r-md); }

.btn.ghost {
  background: transparent; color: var(--indigo-mid);
  border-color: var(--indigo-mid);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--indigo-light); transform: translateY(-1px); }

.btn.secondary {
  background: var(--white); color: var(--body);
  border-color: var(--line);
  box-shadow: var(--card-shadow);
}
.btn.secondary:hover { background: var(--paper); border-color: #d1d5db; }

.btn.danger {
  background: var(--white); color: var(--bad);
  border-color: var(--bad-border);
}
.btn.danger:hover { background: var(--bad-bg); }

.btn.saffron {
  background: var(--saffron); color: #fff;
  border-color: var(--saffron);
  box-shadow: 0 1px 2px rgba(234,88,12,.18);
}
.btn.saffron:hover { background: #c2410c; }

button.btn:disabled, .btn[disabled] {
  opacity: 0.5; cursor: not-allowed;
  transform: none; box-shadow: none;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--card-shadow);
}
.card > h2:first-child,
.card > h3:first-child { margin-top: 0; }

/* stat card variant */
.card.stat { padding: 20px 22px; }
.card.stat .stat-label {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted);
}
.card.stat .stat-value {
  font-size: 1.75rem; font-weight: 800; color: var(--ink-2); margin: 6px 0 2px;
  letter-spacing: -0.02em;
}
.card.stat .stat-sub { font-size: 0.8rem; color: var(--muted); }

.card.highlight { border-left: 4px solid var(--indigo-mid); }
.card.keybox    { border-left: 4px solid var(--ok); }
.card.warn      { border-left: 4px solid var(--warn); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.cards .card { margin: 0; }

/* ── Typography ──────────────────────────────────────────────────────────── */
h1 { font-size: 1.75rem; font-weight: 800; color: var(--ink-2); margin: 0 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 1.1rem; font-weight: 700; color: var(--ink-2); margin: 24px 0 10px; }
h3 { font-size: 0.98rem; font-weight: 700; color: var(--ink-2); margin: 0 0 8px; }
p  { margin: 0 0 10px; }
p.lede { font-size: 1.05rem; color: var(--muted); max-width: 680px; }
p.muted { color: var(--muted); }

/* ── Page header ─────────────────────────────────────────────────────────── */
.page-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.page-head > div > p { margin: 4px 0 0; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--indigo-mid); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--line); }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: var(--r-md); padding: 12px 16px; margin: 0 0 16px;
  font-size: 0.9rem; border: 1px solid;
}
.alert::before { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.alert.ok   { background: var(--ok-bg);   color: #14532d; border-color: var(--ok-border); }
.alert.ok::before   { content: "✓"; color: var(--ok); }
.alert.bad  { background: var(--bad-bg);  color: #7f1d1d; border-color: var(--bad-border); }
.alert.bad::before  { content: "⚠"; color: var(--bad); }
.alert.warn { background: var(--warn-bg); color: #78350f; border-color: var(--warn-border); }
.alert.warn::before { content: "!"; color: var(--warn); font-weight: 700; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 2px 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge.ok   { background: var(--ok-bg);   color: var(--ok); border: 1px solid var(--ok-border); }
.badge.bad  { background: var(--bad-bg);  color: var(--bad); border: 1px solid var(--bad-border); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-border); }
.badge.muted { background: var(--line-2); color: var(--muted); border: 1px solid var(--line); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }
label .hint { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
select, textarea {
  display: block; width: 100%;
  padding: 9px 12px;
  font: inherit; font-size: 0.9rem; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--indigo-mid);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
input::placeholder { color: var(--subtle); }

.stack { display: grid; gap: 14px; max-width: 540px; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.field-row label { flex: 1; min-width: 180px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filters label { flex: 1; min-width: 150px; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}
.table th {
  text-align: left; font-weight: 600; color: var(--muted);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 10px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafafe; }
.table .num { text-align: right; }
.table td.err { color: var(--bad); font-weight: 600; }
.table.compact td, .table.compact th { padding: 7px 10px; }

/* ── Code ────────────────────────────────────────────────────────────────── */
pre, pre.code {
  background: #0f0e1f; color: #c8d3f5;
  border-radius: var(--r-md); padding: 18px 20px;
  font: 0.82rem/1.65 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
  overflow-x: auto; margin: 10px 0;
  border: 1px solid rgba(255,255,255,.06);
}
pre.selectable { user-select: all; white-space: pre-wrap; }
.mono { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.82em; }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.progress {
  height: 7px; background: var(--indigo-light);
  border-radius: 999px; overflow: hidden; margin: 8px 0 6px;
}
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--indigo-mid), var(--indigo));
  border-radius: 999px;
  transition: width .3s;
}
.progress span:where([style*="width: 10"],
                     [style*="width: 9"],
                     [style*="width: 8"]) { background: linear-gradient(90deg, var(--saffron), #c2410c); }

/* ── SVG Chart ───────────────────────────────────────────────────────────── */
.chart { width: 100%; height: 130px; display: block; }
.chart .bar { fill: var(--indigo-mid); opacity: 0.8; rx: 2; }
.chart .bar:hover { opacity: 1; }
.chart .bar.error { fill: var(--bad); }

/* ── Split grid ──────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ── Misc utilities ──────────────────────────────────────────────────────── */
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.strong { font-weight: 700; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.actions { display: flex; gap: 6px; }
.actions form { display: inline; }
.inline { display: inline; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-top: 16px; }

ul.ticks { list-style: none; padding: 0; margin: 10px 0; }
ul.ticks li { padding: 4px 0; font-size: 0.9rem; }
ul.ticks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }

/* ── Auth pages ──────────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - var(--topbar-h));
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side  { display: none; }
}
.auth-side {
  background: linear-gradient(160deg, var(--indigo-dark) 0%, #2d1a7a 60%, #1a0f4e 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 48px;
  color: rgba(255,255,255,.9);
}
.auth-side .auth-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 48px;
}
.auth-side .auth-logo .logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo-mid), var(--saffron));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.auth-side h2 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.auth-side p  { color: rgba(255,255,255,.65); font-size: 0.9rem; }
.auth-side .feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.auth-side .feature-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; color: rgba(255,255,255,.8); font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.auth-side .feature-list li:last-child { border-bottom: 0; }
.auth-side .feature-list .ficon {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.auth-form-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 56px;
  background: var(--white);
}
@media (max-width: 1000px) { .auth-form-panel { padding: 40px 32px; } }
.auth-form-panel h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-form-panel .sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 28px; }
.auth-form-panel form .stack { max-width: 100%; }

/* ── Landing hero ────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--indigo-dark) 0%, #2d1a7a 60%, #1a0f4e 100%);
  color: white;
  padding: 72px 24px 60px;
  margin: -36px calc(50% - 50vw) 36px;
  width: 100vw;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.hero .wrap { text-align: center; max-width: 1100px; margin: 0 auto; padding: 0; }
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800;
  color: #fff; letter-spacing: -0.03em; margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.hero p.lede { color: rgba(255,255,255,.75); max-width: 620px; margin: 0 auto 28px; font-size: 1.08rem; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .cta .btn { font-size: 0.95rem; }
.hero .cta .btn.ghost {
  color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}
.hero .cta .btn.ghost:hover { background: rgba(255,255,255,.18); }
.hero-note { color: rgba(255,255,255,.45); font-size: 0.82rem; margin-top: 14px; }

/* Code callout within hero */
.hero-code {
  display: inline-block;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: 12px 20px;
  font: 0.78rem/1.5 'JetBrains Mono', monospace;
  color: rgba(255,255,255,.85);
  text-align: left;
  margin: 16px auto 0;
  max-width: 540px;
  width: 100%;
}

/* ── Feature section ─────────────────────────────────────────────────────── */
.section { margin-bottom: 48px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: 1.3rem; margin: 0; }
.section-head p  { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ── Feature cards (landing) ─────────────────────────────────────────────── */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--card-shadow);
  transition: box-shadow .18s, transform .18s;
}
.feature-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.feature-card .fc-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--indigo-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.feature-card h3 { margin: 0 0 6px; }
.feature-card p  { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* ── Plans grid ──────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 20px 0; }
.plan {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  display: flex; flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: box-shadow .18s, transform .18s;
  position: relative;
}
.plan:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.plan.featured {
  border-color: var(--indigo-mid);
  box-shadow: 0 4px 20px rgba(79,70,229,.15);
}
.plan.featured::before {
  content: "Most popular";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--indigo-mid); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 12px; border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { margin: 0 0 4px; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.plan .amount { font-size: 2rem; font-weight: 800; color: var(--ink-2); margin: 6px 0 2px; letter-spacing: -0.03em; }
.plan .amount span { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.plan .calls { color: var(--muted); font-size: 0.82rem; margin: 0 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.plan li { font-size: 0.85rem; padding: 5px 0; color: var(--body); display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); }
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 700; flex-shrink: 0; }
.plan li.no { color: var(--subtle); }
.plan li.no::before { content: "✗"; color: var(--line); }
.plan .plan-cta { margin-top: auto; }
.plan .plan-cta .btn, .plan .plan-cta button { width: 100%; }
.plan.featured .plan-cta .btn:not(.ghost) { background: var(--indigo-mid); }

/* ── Split code+features (landing) ──────────────────────────────────────── */
.split-demo { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; margin: 32px 0; }
@media (max-width: 860px) { .split-demo { grid-template-columns: 1fr; } }
.split-demo pre { margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 0.9rem; }
.check-list li:last-child { border-bottom: 0; }
.check-list .ci { width: 20px; height: 20px; background: var(--ok-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.check-list .ci::before { content: "✓"; color: var(--ok); font-size: 0.72rem; font-weight: 700; }

/* ── Endpoint table (landing) ────────────────────────────────────────────── */
.endpoint-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font: 0.72rem/1 'JetBrains Mono', monospace; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.endpoint-tag.get  { background: #dbeafe; color: #1d4ed8; }
.endpoint-tag.post { background: #dcfce7; color: #15803d; }

/* ── Dashboard sidebar / tabs (future) ───────────────────────────────────── */
.dash-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); margin-bottom: 24px; }
.dash-tab {
  padding: 10px 18px; font-size: 0.875rem; font-weight: 500; color: var(--muted);
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .15s;
}
.dash-tab:hover { color: var(--ink-2); }
.dash-tab.active { color: var(--indigo-mid); border-bottom-color: var(--indigo-mid); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink-2);
  color: rgba(255,255,255,.45);
  font-size: 0.82rem;
  padding: 32px 0;
}
.footer .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.footer a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer a:hover { color: rgba(255,255,255,.9); text-decoration: underline; }
.footer .footer-brand { font-weight: 600; color: rgba(255,255,255,.75); font-size: 0.88rem; }

/* ── Responsive tweaks ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  main.wrap { padding: 20px 16px 56px; }
  .hero { padding: 48px 16px 40px; margin: -20px calc(50% - 50vw) 24px; }
  h1 { font-size: 1.45rem; }
  .card { padding: 16px 18px; }
  .table { font-size: 0.8rem; }
  .table th, .table td { padding: 8px 8px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .cards { grid-template-columns: 1fr; }
}
