:root {
  --accent: #dc2626;
  --ink: #1d1d1f;
  --muted: #6b7280;
  --bg: #fafafa;
  --card: #ffffff;
  --border: #e5e7eb;
  --good: #128a3a;
  --bad: #b00020;
}
* { 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: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: white;
}
nav.top .brand { font-weight: 800; font-size: 17px; letter-spacing: -0.3px; }
nav.top .links { display: flex; gap: 22px; align-items: center; }
nav.top .links a { color: var(--ink); font-size: 14px; font-weight: 500; }
nav.top .links a.cta {
  background: var(--accent); color: white; padding: 8px 16px; border-radius: 999px;
}
nav.top .links a.cta:hover { text-decoration: none; opacity: 0.9; }
nav.top .pill { background: #f3f4f6; padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--muted); }

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; }
