:root {
  --accent: #dc2626;
  --accent-dark: #b91c1c;
  --accent-soft: #fef2f2;
  --ink: #1d1d1f;
  --muted: #6b7280;
  --bg: #fafafa;
  --card: #ffffff;
  --border: #e5e7eb;
  --good: #128a3a;
  --bad: #b00020;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(220,38,38,0.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.4;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: #f1f1f1; padding: 1px 5px; border-radius: 4px; }

nav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  background: white;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
nav.top .brand {
  font-weight: 800; font-size: 16px; letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
nav.top .brand img {
  height: 32px; width: auto;
}
nav.top .brand a {
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
nav.top .brand a:hover { text-decoration: none; }
nav.top .links { display: flex; gap: 6px; align-items: center; }
nav.top .links a {
  color: var(--ink); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
nav.top .links a:hover {
  background: var(--accent-soft); color: var(--accent); text-decoration: none;
}
nav.top .links a.cta {
  background: var(--accent); color: white; padding: 9px 18px;
  font-weight: 700; letter-spacing: 0.3px;
}
nav.top .links a.cta:hover { text-decoration: none; background: var(--accent-dark); color: white; }
nav.top .pill { background: #f3f4f6; padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--muted); }

/* Hero section for landing page */
.hero {
  text-align: center;
  padding: 60px 24px 80px;
  background:
    radial-gradient(ellipse at top, rgba(220,38,38,0.07) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero img.logo {
  height: 96px; width: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 4px 14px rgba(220,38,38,0.15));
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 0 0 14px;
  line-height: 1.08;
  color: var(--ink);
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 520px;
  line-height: 1.5;
}
.hero .btn-hero {
  font-size: 15px;
  padding: 16px 32px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero .btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(220,38,38,0.25);
}
.hero .features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  margin: 56px auto 0;
  gap: 18px;
  text-align: left;
}
.hero .feature {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.hero .feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.hero .feature p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero .features { grid-template-columns: 1fr; }
}

main {
  max-width: 760px;
  margin: 32px auto;
  padding: 0 24px 60px;
}
main.narrow { max-width: 460px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 18px;
}
.card h2 { margin: 0 0 6px; font-size: 18px; }
.card p.sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
input[type="text"], input[type="email"], input[type="password"],
input[type="color"], input[type="file"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: white;
}
textarea { resize: vertical; min-height: 110px; }
input[type="color"] { height: 44px; padding: 4px; cursor: pointer; }
input[type="file"] { padding: 8px; background: #fafafa; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

button, .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  border: 0;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  font-family: inherit;
}
button:disabled, .btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.secondary, button.secondary {
  background: white; color: var(--ink); border: 1px solid var(--border);
}
.btn.danger, button.danger { background: #fff; color: var(--bad); border: 1px solid #f3c2c8; }

.status { margin-top: 14px; font-size: 14px; color: var(--muted); }
.status.ok { color: var(--good); }
.status.err { color: var(--bad); }

.section-title {
  margin: 26px 0 12px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.section-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

video {
  width: 100%;
  max-width: 360px;
  margin-top: 20px;
  border-radius: 12px;
  background: #000;
}

.bg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.bg-grid .bg-tile {
  position: relative;
  aspect-ratio: 9/16;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.bg-grid .bg-tile button {
  position: absolute;
  top: 4px; right: 4px;
  background: rgba(0,0,0,0.65); color: white;
  width: 22px; height: 22px; border-radius: 999px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.plan {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.plan .tier {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  background: white;
  display: flex; flex-direction: column;
}
.plan .tier.current { border-color: var(--accent); border-width: 2px; }
.plan .tier h3 { margin: 0 0 4px; }
.plan .tier .price { font-size: 26px; font-weight: 800; margin: 4px 0 4px; }
.plan .tier .price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan .tier ul { margin: 10px 0 16px; padding-left: 16px; color: #444; font-size: 13px; line-height: 1.6; }
.plan .tier .btn { width: 100%; justify-content: center; margin-top: auto; }

.quota-bar { background: #f3f4f6; border-radius: 999px; overflow: hidden; height: 8px; margin: 6px 0 12px; }
.quota-bar > div { background: var(--accent); height: 100%; }

.logo-preview {
  display: flex; align-items: center; gap: 14px;
  background: #f8f8f8; padding: 12px; border-radius: 10px; border: 1px solid var(--border);
}
.logo-preview img { max-height: 56px; max-width: 200px; }
