/*
 * StreamPress brand system. Shared by the product site and the admin.
 * Warm paper surfaces, near-black ink, hairline borders, one signal accent.
 */
:root {
  --ink: #15141a;
  --ink-2: #33323b;
  --text: #5a5964;
  --muted: #8a8994;
  --faint: #b3b2ba;

  --bg: #fcfbf9;
  --bg-alt: #f6f4f0;
  --surface: #ffffff;
  --line: #e8e6e1;
  --line-2: #f1efea;

  --accent: #f04e23;
  --accent-strong: #d63f17;
  --accent-ink: #b93512;
  --accent-tint: #fff2ed;
  --accent-line: #fcd5c8;
  --violet: #6d5ef5;
  --violet-tint: #efedff;

  --green: #17804d;
  --green-tint: #e6f5ec;
  --red: #c2331f;
  --red-tint: #fdecea;
  --amber: #8a5a00;
  --amber-tint: #fff4d6;
  --blue: #1d4f91;
  --blue-tint: #eaf1fd;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --shadow-xs: 0 1px 2px rgba(21, 20, 26, 0.05);
  --shadow-sm: 0 1px 2px rgba(21, 20, 26, 0.04), 0 6px 16px -6px rgba(21, 20, 26, 0.08);
  --shadow-md: 0 2px 4px rgba(21, 20, 26, 0.04), 0 16px 32px -12px rgba(21, 20, 26, 0.14);
  --shadow-lg: 0 8px 20px -8px rgba(21, 20, 26, 0.12), 0 40px 80px -30px rgba(21, 20, 26, 0.3);

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Chart roles */
  --series-1: #2a78d6;
  --chart-grid: #e8e6e1;
  --chart-text: #5a5964;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 15px/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
p {
  margin: 0 0 12px;
}
a {
  color: var(--ink);
  text-underline-offset: 3px;
}
strong {
  color: var(--ink);
  font-weight: 700;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
  font-size: 12.5px;
}
.nowrap {
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: 600 14px/1.25 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:focus-visible,
.input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--shadow-xs);
}
.btn-primary:hover {
  background: #2a2932;
}
.btn-quiet {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn-quiet:hover {
  border-color: #d6d3cc;
  background: #fdfdfc;
}
.btn-upgrade,
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--shadow-xs);
}
.btn-upgrade:hover,
.btn-accent:hover {
  background: var(--accent-strong);
}
.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn-danger-quiet {
  background: var(--surface);
  color: var(--red);
  border-color: #f3cbc5;
}
.btn-danger-quiet:hover {
  background: var(--red-tint);
}
.btn-sm {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 7px;
}
.btn-lg {
  padding: 13px 20px;
  font-size: 15px;
  border-radius: 11px;
}
.btn:disabled,
fieldset:disabled .btn {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn .arrow {
  transition: transform 0.15s;
}
.btn:hover .arrow {
  transform: translateX(2px);
}

/* ---------- Form controls ---------- */
.field {
  display: block;
  margin-bottom: 16px;
  min-width: 0;
}
.field-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #dcd9d2;
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder {
  color: var(--faint);
}
.input:hover {
  border-color: #c9c6be;
}
.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(21, 20, 26, 0.08);
}
textarea.input {
  resize: vertical;
  line-height: 1.5;
}
select.input {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8994' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
}

/* ---------- Messages ---------- */
.flash {
  display: block;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--ink-2);
}
.flash a {
  font-weight: 600;
}
.flash-success {
  background: var(--green-tint);
  border-color: #c5e6d3;
  color: #0f5a36;
}
.flash-error {
  background: var(--red-tint);
  border-color: #f6cdc7;
  color: #8a2415;
}
.flash-info {
  background: var(--blue-tint);
  border-color: #cfdff8;
  color: #173d6e;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

/* ---------- Plan comparison table (product site and billing page) ---------- */
.pricing {
  overflow-x: auto;
}
.pricing-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}
.pricing-table th,
.pricing-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
  text-align: center;
  vertical-align: middle;
}
.pricing-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-2);
}
.pricing-plan {
  width: 31%;
  vertical-align: top;
  padding-top: 20px;
}
.pricing-name {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.pricing-price {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.pricing-tagline {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
}
.pricing-yours {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 700;
}
.pricing-table .is-recommended {
  background: var(--accent-tint);
}
.pricing-table thead .is-recommended {
  border-radius: 12px 12px 0 0;
}
.pricing-table tr.is-focus th,
.pricing-table tr.is-focus td {
  background: #fff7d6;
  color: var(--ink);
  font-weight: 700;
}
.pricing-table tfoot td {
  padding-top: 18px;
  border-bottom: 0;
}
.pricing-table tfoot form {
  margin: 0;
}
.pricing-table tfoot .field-hint {
  max-width: 220px;
  margin: 8px auto 0;
}
.pricing-table .yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.pricing-table .no {
  color: var(--faint);
  font-size: 13px;
}
.pricing-current {
  color: var(--muted);
  font-weight: 600;
}
.pricing-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.pricing-alt {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}
