/* TrustShip dashboard. Plain CSS, no build step, no external fonts or images. */

:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #fafafb;
  --subtle: #f4f4f5;
  --text: #131316;
  --text-2: #42434d;
  --muted: #747686;
  --faint: #a1a1aa;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;

  --primary: #6c47ff;
  --primary-dark: #5b3dd6;
  --primary-soft: #f1edff;
  --primary-ring: rgba(108, 71, 255, 0.2);

  --green: #127a3d;
  --green-bg: #ecfdf3;
  --green-border: #b7ebc9;
  --amber: #a15c07;
  --amber-bg: #fffaeb;
  --amber-border: #fbe2a4;
  --red: #c8321f;
  --red-strong: #dc3b26;
  --red-bg: #fef3f2;
  --red-border: #fcd2cc;
  --blue: #1d5bd8;
  --blue-bg: #eef4ff;
  --blue-border: #c7d7fe;
  --violet: #5b3dd6;
  --violet-bg: #f1edff;
  --violet-border: #d9cffe;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(19, 19, 22, 0.05);
  --shadow: 0 1px 2px rgba(19, 19, 22, 0.04), 0 4px 16px -6px rgba(19, 19, 22, 0.07);
  --shadow-lg: 0 0 0 1px rgba(19, 19, 22, 0.04), 0 2px 4px rgba(19, 19, 22, 0.03), 0 24px 56px -16px rgba(19, 19, 22, 0.18);

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

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A faint grid behind the top of every page, fading out towards the bottom. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(19, 19, 22, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 19, 22, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 20%, transparent 100%);
}

/* Sign-in pages: soft colour washes in opposite corners. */
body.auth::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(45% 50% at 6% 8%, rgba(125, 211, 252, 0.3), transparent 72%),
    radial-gradient(45% 55% at 96% 94%, rgba(167, 139, 250, 0.3), transparent 72%);
}
body.auth::before {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 10%, transparent 90%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 10%, transparent 90%);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }

h1 { font-size: 1.85rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 0.5rem; }
h2 { font-size: 1.04rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 0.35rem; }
p { margin: 0.4rem 0; }
strong { font-weight: 600; }

code, pre, .mono { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--subtle); border: 1px solid var(--border); padding: 0.05em 0.4em; border-radius: 6px; color: var(--text); }

.icon { width: 14px; height: 14px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 0.85em; }
.nowrap { white-space: nowrap; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.break-all { word-break: break-all; }
.truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eyebrow { margin: 0 0 6px; font-size: 0.8rem; font-weight: 600; color: var(--primary); }
.lede { color: var(--muted); margin: 0.35rem 0 0; max-width: 760px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
main.page { flex: 1; padding-top: 32px; padding-bottom: 48px; }

/* Navigation: a floating bar with the project tabs as a second row */
.nav-wrap { position: sticky; top: 0; z-index: 40; padding: 12px 20px 0; }
.nav {
  max-width: 1140px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(19, 19, 22, 0.04), 0 10px 30px -14px rgba(19, 19, 22, 0.12);
}
.nav-row { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 12px 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #8f73ff 0%, #6c47ff 55%, #5234d4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(82, 52, 212, 0.35);
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-mark-lg { width: 44px; height: 44px; border-radius: 12px; }
.brand-mark-lg svg { width: 26px; height: 26px; }
.brand-mark-xs { width: 16px; height: 16px; border-radius: 5px; }
.brand-mark-xs svg { width: 11px; height: 11px; }
.nav-divider { flex: none; width: 1px; height: 22px; background: var(--border); }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; }
.crumb { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 8px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 0.93rem; }
.crumb:hover { color: var(--text); background: var(--subtle); text-decoration: none; }
.crumb-current { color: var(--text); }
.crumb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-sep { color: var(--border-strong); }
.project-dot {
  display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px;
  background: linear-gradient(135deg, #111827, #3f3f46); color: #fff; font-size: 0.7rem; font-weight: 600;
}
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.nav-link { padding: 6px 8px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 0.93rem; white-space: nowrap; }
.nav-link:hover { color: var(--text); background: var(--subtle); text-decoration: none; }
.account { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6); color: #fff; font-size: 0.78rem; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.account-email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 0.9rem; }
.inline-form { display: inline; margin: 0; }

.tabs { display: flex; gap: 2px; padding: 6px 10px; border-top: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
.tab:hover { color: var(--text); background: var(--subtle); text-decoration: none; }
.tab.active { color: var(--text); background: var(--subtle); box-shadow: inset 0 0 0 1px var(--border); }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 20px 28px;
  color: var(--muted); font-size: 0.85rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Page headings */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-title { min-width: 0; flex: 1 1 420px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 4px; }
.section-head h2 { margin: 0; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.card-flush { padding: 0; overflow: hidden; }
.card.empty { text-align: center; padding: 44px 20px; }
.empty-icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%;
  background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); font-weight: 700;
}
.error-card { max-width: 520px; margin: 48px auto; text-align: center; padding: 36px 32px; }
.error-code { display: inline-block; margin: 0 0 12px; padding: 2px 10px; border-radius: 999px; background: var(--subtle); border: 1px solid var(--border); color: var(--muted); }
.error-actions { margin-top: 20px; }

/* Forms */
label { display: block; font-weight: 500; font-size: 0.875rem; color: var(--text); }
label input, label select, label textarea { margin-top: 6px; }
.label-hint { float: right; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=url], select, textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { height: auto; padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
select {
  width: auto; min-width: 8rem; height: 36px; padding-right: 34px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23747686' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 6.5L8 10l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}
select:disabled { cursor: not-allowed; opacity: 0.6; }
input[type=date] { height: 36px; }
input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.stack { display: grid; gap: 14px; }
.stack.narrow { max-width: 480px; }
.inline-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.inline-fields label { flex: 1 1 260px; }
.form-actions { display: flex; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.btn:active { transform: translateY(0.5px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-small { height: 30px; padding: 0 10px; font-size: 0.85rem; border-radius: 7px; }
.btn-lg { height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-primary {
  color: #fff;
  border-color: var(--primary-dark);
  background: linear-gradient(180deg, #7b5bff 0%, #6c47ff 50%, #6341f2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(82, 52, 212, 0.35), 0 3px 8px -3px rgba(108, 71, 255, 0.5);
}
.btn-primary:hover { color: #fff; border-color: #4a2fbd; background: linear-gradient(180deg, #7050ff 0%, #6240f2 50%, #5837e0 100%); }
.btn-primary .icon { opacity: 0.8; }
.btn-approve { color: var(--green); }
.btn-approve:hover { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }
.btn-danger-strong {
  color: #fff; border-color: #b52d1b;
  background: linear-gradient(180deg, #e8563f 0%, #d63c26 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(181, 45, 27, 0.3);
}
.btn-danger-strong:hover { color: #fff; border-color: #962414; background: linear-gradient(180deg, #db4a33 0%, #c1331e 100%); }
.btn-danger-strong:disabled:hover { border-color: #b52d1b; background: linear-gradient(180deg, #e8563f 0%, #d63c26 100%); }
.btn-ghost-dark { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost-dark:hover { background: var(--subtle); border-color: transparent; color: var(--text); }

/* Sign in and sign up */
.auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px 16px; }
.auth-card {
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(19, 19, 22, 0.07);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.auth-body { padding: 38px 38px 32px; }
.auth-head { margin-bottom: 26px; text-align: center; }
.auth-head .brand-mark { margin-bottom: 16px; }
.auth-head h1 { margin: 0; font-size: 1.28rem; letter-spacing: -0.02em; }
.auth-sub { margin: 6px 0 0; color: var(--muted); }
.auth-body .stack { gap: 16px; }
.auth-body .btn-block { margin-top: 6px; }
.auth-disabled { text-align: center; color: var(--text-2); }
.auth-foot { margin: 0; padding: 16px; text-align: center; color: var(--muted); background: #f7f7f8; border-top: 1px solid var(--border); font-size: 0.93rem; }
.auth-foot a { font-weight: 600; }
.auth-note {
  display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 11px 16px;
  color: var(--muted); background: #f7f7f8; border-top: 1px solid var(--border); font-size: 0.8rem; font-weight: 500;
}
.auth-footer { max-width: 420px; padding: 20px 4px 28px; }
.auth-footer > a { color: var(--muted); }
.auth-home { display: inline-block; }
.auth-home:hover { text-decoration: none; }
.auth-providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.auth-providers form { margin: 0; }
.btn-social { width: 100%; height: 40px; gap: 10px; }
.provider-logo { width: 16px; height: 16px; flex: none; }
.auth-setup { margin: 10px 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.45; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0 20px; color: var(--muted); font-size: 0.82rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Command box and code window */
.command {
  display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; padding: 5px 5px 5px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-xs), 0 0 0 4px var(--subtle);
}
.command-prompt { color: var(--faint); font-family: var(--mono); }
.command input, .command input:hover, .command input:focus { flex: 1; min-width: 0; height: 32px; padding: 0; border: 0; box-shadow: none; background: transparent; font-size: 0.9rem; }
.code-window { margin: 2px 0 14px; overflow: hidden; background: #131316; border: 1px solid #26262b; border-radius: var(--radius); box-shadow: var(--shadow); }
.code-window-bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; background: #1b1b20; border-bottom: 1px solid #26262b; }
.code-dots { display: inline-flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a42; }
.code-window-title { flex: 1; color: #a1a1aa; font-family: var(--mono); font-size: 0.8rem; }
.btn-code { color: #e4e4e7; background: #26262b; border-color: #34343b; box-shadow: none; }
.btn-code:hover { color: #fff; background: #303037; border-color: #43434b; }
.code-window pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: #e4e4e7; line-height: 1.65; font-size: 0.82rem; }

/* Flash messages and banners */
.flash { padding: 11px 14px; margin: 0 0 14px; border: 1px solid transparent; border-radius: 10px; font-size: 0.93rem; }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.flash-success { background: var(--green-bg); border-color: var(--green-border); color: #0d5a2d; }
.flash-error { background: var(--red-bg); border-color: var(--red-border); color: #8a2213; }
.flash-warning { background: var(--amber-bg); border-color: var(--amber-border); color: #6b3d05; }
.banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid; border-radius: var(--radius); }
.banner-danger { background: linear-gradient(180deg, #fff6f5, #fdeceA); border-color: var(--red-border); color: #7a1f12; box-shadow: var(--shadow-xs); }
.banner-icon {
  display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px;
  background: var(--red-strong); color: #fff; box-shadow: 0 1px 2px rgba(181, 45, 27, 0.35);
}
.banner-icon .icon { width: 15px; height: 15px; }

/* Badges and chips */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; vertical-align: middle; white-space: nowrap;
  font-size: 0.75rem; font-weight: 600; line-height: 1.55;
  color: var(--text-2); background: var(--subtle); border: 1px solid var(--border); border-radius: 999px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.badge-allow { color: var(--green); background: var(--green-bg); border-color: var(--green-border); }
.badge-flag { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-border); }
.badge-block { color: var(--red); background: var(--red-bg); border-color: var(--red-border); }
.badge-kind-safety_incident { color: #fff; background: #d0361f; border-color: #b52d1b; }
.badge-kind-report { color: var(--blue); background: var(--blue-bg); border-color: var(--blue-border); }
.badge-kind-appeal { color: var(--violet); background: var(--violet-bg); border-color: var(--violet-border); }
.badge-kind-flagged { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-border); }
.chip { display: inline-block; padding: 0 7px; white-space: nowrap; font-family: var(--mono); font-size: 0.78rem; color: var(--text-2); background: var(--subtle); border: 1px solid var(--border); border-radius: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.card.table-wrap { padding: 0; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table th { font-size: 0.8rem; font-weight: 500; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.table tbody tr:hover td { background: #fcfcfd; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.empty { text-align: center; color: var(--muted); padding: 32px; }
.content-cell { max-width: 320px; overflow-wrap: anywhere; }
.notice-row td { padding-bottom: 0; border-bottom: 0; }
.pager-row td, .table tbody tr.pager-row:hover td { background: var(--surface-2); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.9rem; }
.pager-links { display: flex; gap: 14px; align-items: center; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.project-grid .card { margin-bottom: 0; }
.project-card { transition: box-shadow 0.2s, border-color 0.2s; }
.project-card:not(.project-new):hover { border-color: var(--border-strong); box-shadow: var(--shadow), 0 12px 32px -16px rgba(19, 19, 22, 0.16); }
.project-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.project-avatar {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, #111827, #3f3f46); color: #fff; font-weight: 600; font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.project-card-title { display: grid; min-width: 0; }
.project-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.015em; }
.project-name:hover { color: var(--primary); }
.facts { display: grid; gap: 8px; margin: 0 0 16px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.facts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.facts dt { flex: none; color: var(--muted); font-size: 0.85rem; }
.facts dd { margin: 0; min-width: 0; font-size: 0.9rem; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px; }
.project-new { border-style: dashed; border-color: var(--border-strong); background: rgba(255, 255, 255, 0.7); box-shadow: none; }
.project-new h2 { margin-top: 12px; }
.project-new .stack { margin-top: 14px; }
.project-new-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); border: 1px solid var(--violet-border); }
.project-new-icon .icon { width: 18px; height: 18px; }

/* API key and settings */
.key-card { max-width: 720px; margin: 8px auto 16px; padding: 28px 30px; }
.key-card h1 { font-size: 1.5rem; }
.key-card .flash { margin-top: 18px; }
.key-card label { margin-top: 4px; }
.key-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.setting { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px 40px; padding: 24px; }
.setting-info h2 { margin-bottom: 6px; }
.setting-info p { font-size: 0.9rem; }
.setting-body { min-width: 0; }
.setting-body > form.stack, form.setting-body { max-width: 520px; }
.key-line { margin-top: 0; margin-bottom: 14px; }

/* Policy editor */
.policy-table tr.locked td { background: #fffafa; }
.policy-table tbody tr.locked:hover td { background: #fff5f4; }
.lock-note { margin-top: 8px; font-size: 0.84rem; color: #7a1f12; max-width: 440px; line-height: 1.5; }
.slider { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.slider input[type=range] { flex: 1; accent-color: var(--primary); }
.slider output { min-width: 3.2em; padding: 1px 6px; text-align: center; font-family: var(--mono); font-size: 0.85rem; background: var(--subtle); border: 1px solid var(--border); border-radius: 6px; }

/* Queue */
.pills { display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; max-width: 100%; margin: 0 0 18px; padding: 4px; background: #ececef; border-radius: 11px; }
.pill { padding: 6px 12px; color: var(--text-2); font-size: 0.9rem; font-weight: 500; border-radius: 8px; white-space: nowrap; }
.pill:hover { color: var(--text); background: rgba(255, 255, 255, 0.6); text-decoration: none; }
.pill .count { display: inline-block; min-width: 1.5em; margin-left: 5px; padding: 0 6px; text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--muted); background: rgba(19, 19, 22, 0.07); border-radius: 999px; }
.pill.active { color: var(--text); background: var(--surface); box-shadow: 0 1px 2px rgba(19, 19, 22, 0.08), 0 0 0 1px rgba(19, 19, 22, 0.04); }
.pill.active .count { color: var(--primary-dark); background: var(--primary-soft); }

.queue-card { position: relative; padding: 18px 22px 16px 24px; }
.queue-card::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--border-strong); }
.queue-card.kind-safety_incident::before { background: var(--red-strong); }
.queue-card.kind-report::before { background: #3b73e6; }
.queue-card.kind-appeal::before { background: var(--primary); }
.queue-card.kind-flagged::before { background: #e5a50a; }
.queue-card.resolved { opacity: 0.85; }
.queue-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.push-right { margin-left: auto; }

.meta { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 16px; margin: 0 0 12px; font-size: 0.92rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; overflow-wrap: anywhere; }

.queue-card .hint { padding: 10px 12px; margin: 10px 0; color: #6b3d05; background: var(--amber-bg); border: 1px solid var(--amber-border); border-radius: 10px; line-height: 1.5; }

.preview blockquote { margin: 8px 0 12px; padding: 12px 14px; max-height: 16em; overflow: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.preview a { overflow-wrap: anywhere; }
.preview-hidden { display: inline-block; margin: 6px 0; padding: 3px 10px; font-size: 0.88rem; font-weight: 600; color: #8a2213; background: var(--red-bg); border: 1px solid var(--red-border); border-radius: 8px; }

.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 7px 28px; margin: 12px 0 4px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.score-row { display: grid; grid-template-columns: 7.5em 1fr 3em; align-items: center; gap: 10px; font-size: 0.82rem; }
.score-label { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.bar { display: block; height: 6px; background: #e9e9ec; border-radius: 999px; overflow: hidden; }
.fill { display: block; height: 100%; background: #b4b4bd; border-radius: 999px; }
.score-row.matched .score-label { color: var(--red); font-weight: 600; }
.score-row.matched .fill { background: linear-gradient(90deg, #f07a65, #d63c26); }
.score-value { text-align: right; color: var(--text-2); }
.score-row.unevaluated .score-label { font-style: italic; }
.score-unchecked {
  grid-column: 2 / 4; padding: 0 6px; text-align: center; font-size: 0.9em; line-height: 1.45; color: var(--muted);
  border: 1px dashed var(--border-strong); border-radius: 999px;
  background: repeating-linear-gradient(135deg, transparent 0 4px, #efeff1 4px 8px);
}
.chip-unchecked { background: transparent; border-style: dashed; color: var(--muted); }

.queue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.action-help { flex-basis: 100%; margin: 4px 0 0; }
.resolved-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border); color: var(--green); }

/* Audit filters */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 16px 18px; }
.filters label { flex: 0 1 auto; }
.filters select, .filters input { display: block; }
.audit-table th, .audit-table td { padding: 10px 12px; }
.audit-table td { font-size: 0.88rem; }
.audit-table td:first-child { min-width: 100px; max-width: 110px; white-space: normal; }
.audit-table .content-cell { min-width: 180px; }
.audit-table td:last-child { min-width: 120px; max-width: 150px; white-space: normal; word-break: break-all; }
.audit-table .preview-hidden { white-space: nowrap; }
.filter-buttons { display: flex; gap: 8px; }

/* Compliance */
.score-block { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.score-pill { padding: 4px 12px; font-size: 0.88rem; font-weight: 600; border: 1px solid; border-radius: 999px; }
.score-ok { color: var(--green); background: var(--green-bg); border-color: var(--green-border); }
.score-todo { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-border); }
.progress { display: block; width: 200px; height: 6px; overflow: hidden; background: #e9e9ec; border-radius: 999px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #8f73ff, #6c47ff); border-radius: 999px; }
.checklist { list-style: none; margin: 6px 0 0; padding: 0; }
.check { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.check:last-child { border-bottom: 0; padding-bottom: 4px; }
.check-mark {
  display: flex; align-items: center; justify-content: center; flex: 0 0 24px; height: 24px; margin-top: 1px;
  border: 1.5px dashed var(--border-strong); border-radius: 50%; color: #fff; font-size: 0.8rem; font-weight: 700;
}
.check.done .check-mark { background: linear-gradient(145deg, #2fbf6a, #15924a); border: 0; box-shadow: 0 1px 2px rgba(21, 146, 74, 0.35); }
.check-body { min-width: 0; }
.check-body > p:first-of-type { color: var(--text-2); }
.check-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hint { color: var(--amber); }
.doc-text { min-height: 16em; resize: vertical; line-height: 1.55; background: var(--surface-2); margin-top: 10px; }

@media (max-width: 800px) {
  .setting { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  h1 { font-size: 1.5rem; }
  .container { padding: 0 12px; }
  main.page { padding-top: 22px; }
  .nav-wrap { padding: 8px 8px 0; }
  .nav-row { gap: 8px; min-height: 52px; padding: 0 8px 0 12px; }
  .brand-name, .hide-sm, .account-email, .crumb-sep, .crumbs .crumb:first-child { display: none; }
  .crumbs { flex: 1; }
  .tabs { padding: 5px 6px; }
  .card { padding: 16px; }
  .queue-card { padding: 16px 16px 14px 18px; }
  .meta { grid-template-columns: 1fr; gap: 0; }
  .meta dt { margin-top: 8px; font-size: 0.85rem; }
  .slider { min-width: 150px; }
  .push-right { margin-left: 0; }
  .score-block { align-items: flex-start; }
  .project-grid { grid-template-columns: 1fr; }
  .auth-main { padding-top: 24px; justify-content: flex-start; }
  .auth-body { padding: 30px 22px 24px; }
  .key-card { padding: 20px; }
  .code-window pre { font-size: 0.76rem; }
}

/* Landing page */
[hidden] { display: none !important; }
body.landing { --muted: #6e7080; background: #ffffff; }
body.landing::before {
  background-image: radial-gradient(rgba(19, 19, 22, 0.17) 1px, transparent 1.3px);
  background-size: 22px 22px;
  background-position: 0 0;
  -webkit-mask-image: radial-gradient(ellipse 75% 50% at 50% 0%, #000 20%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 50% at 50% 0%, #000 20%, transparent 85%);
}
body.landing::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(45% 40% at 50% -8%, rgba(108, 71, 255, 0.12), transparent 70%);
}
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner { display: flex; align-items: center; gap: 28px; max-width: 1180px; height: 64px; margin: 0 auto; padding: 0 20px; }
.site-links { display: flex; gap: 2px; }
.site-links a { padding: 6px 10px; color: var(--text-2); font-size: 0.94rem; font-weight: 500; border-radius: 8px; }
.site-links a:hover { color: var(--text); background: var(--subtle); text-decoration: none; }
.site-actions { display: flex; gap: 8px; margin-left: auto; }

.hero { max-width: 1000px; margin: 0 auto; padding: 92px 20px 64px; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 4px 12px 4px 4px;
  color: var(--text-2); font-size: 0.86rem; font-weight: 500;
  background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-xs);
}
.hero-pill:hover { color: var(--text); border-color: var(--border-strong); text-decoration: none; }
.hero-pill-tag { padding: 1px 8px; color: var(--primary-dark); font-size: 0.76rem; font-weight: 600; background: var(--primary-soft); border-radius: 999px; }
.hero-title { max-width: 900px; margin: 0 auto; font-size: clamp(2.4rem, 6.2vw, 4.5rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; }
.hero-lede { max-width: 690px; margin: 24px auto 0; color: var(--muted); font-size: 1.2rem; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.btn-xl { height: 46px; padding: 0 20px; font-size: 1rem; border-radius: 10px; }
.hero-meta { margin-top: 20px; color: var(--muted); font-size: 0.88rem; }

.showcase { max-width: 1180px; margin: 0 auto; padding: 0 20px; scroll-margin-top: 80px; }
.showcase-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-xs);
}
.showcase-tabs { display: flex; gap: 4px; min-width: 0; margin: -4px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.showcase-tabs::-webkit-scrollbar { display: none; }
.showcase-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; white-space: nowrap; cursor: pointer;
  font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--text-2);
  background: transparent; border: 1px solid transparent; border-radius: 10px;
}
.showcase-tab:hover { color: var(--text); background: var(--subtle); }
.showcase-tab.active { color: var(--text); background: #fff; border-color: var(--border); box-shadow: var(--shadow-xs); }
.showcase-tab.active .icon { color: var(--primary); }
.showcase-link { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--text); font-size: 0.93rem; font-weight: 500; white-space: nowrap; }
.showcase-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.showcase-panel .code-window { margin: 0; }
.canvas {
  display: flex; align-items: center; justify-content: center; min-height: 460px; padding: 40px 24px; overflow: hidden;
  background-color: var(--surface-2);
  background-image: radial-gradient(rgba(19, 19, 22, 0.13) 1px, transparent 1.3px);
  background-size: 18px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.panel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; font-size: 0.93rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.panel-note { margin: auto 0 0; padding: 12px 18px; color: var(--muted); font-size: 0.88rem; background: var(--surface-2); border-top: 1px solid var(--border); }

.flow { display: flex; flex-direction: column; width: 100%; max-width: 340px; margin: 0; padding: 0; list-style: none; }
.flow-node { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.flow-node + .flow-node { margin-top: 28px; }
.flow-node + .flow-node::before { content: ""; position: absolute; top: -29px; left: 50%; height: 28px; border-left: 1.5px dashed var(--border-strong); }
.flow-icon { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; color: var(--text-2); background: var(--subtle); border: 1px solid var(--border); border-radius: 9px; }
.flow-icon .icon { width: 16px; height: 16px; }
.flow-icon-red { color: var(--red); background: var(--red-bg); border-color: var(--red-border); }
.flow-icon-blue { color: var(--blue); background: var(--blue-bg); border-color: var(--blue-border); }
.flow-icon-green { color: var(--green); background: var(--green-bg); border-color: var(--green-border); }
.flow-text { display: grid; min-width: 0; }
.flow-kicker { color: var(--muted); font-size: 0.8rem; }
.flow-node strong { font-size: 0.93rem; }

.request-line { display: flex; align-items: center; gap: 8px; padding: 12px 18px; color: var(--text-2); font-family: var(--mono); font-size: 0.8rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.method { padding: 1px 6px; color: var(--green); font-weight: 600; background: var(--green-bg); border: 1px solid var(--green-border); border-radius: 5px; }
.json { margin: 0; padding: 14px 18px; overflow-x: auto; color: var(--text-2); font-size: 0.8rem; line-height: 1.7; }
.json-request { white-space: pre-wrap; overflow-wrap: anywhere; border-bottom: 1px solid var(--border); }
.j-key { color: var(--primary-dark); }
.j-str { color: #b4460f; }
.j-num { color: var(--green); }
.j-null { color: var(--muted); }
.c-k { color: #c4b5fd; }
.c-s { color: #fdba74; }
.c-c { color: #8b8b94; }

.mock-card { width: 100%; max-width: 420px; margin: 0; }
.mock-quote { margin: 4px 0 14px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.mock-scores { display: grid; gap: 8px; margin-bottom: 14px; }
.mock-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.mock-actions .btn { pointer-events: none; }
.inbox-list { margin: 0; padding: 4px 0; list-style: none; }
.inbox-item { display: flex; align-items: baseline; gap: 12px; padding: 13px 18px; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.inbox-item:last-child { border-bottom: 0; }
.mock-compliance-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mock-compliance .progress { width: 100%; margin-bottom: 4px; }
.mock-compliance .check { padding: 10px 0; }
.mock-compliance .check-body p { margin: 2px 0 0; }
.doc-excerpt { margin: 0; padding: 16px 18px; color: var(--text-2); font-family: var(--mono); font-size: 0.8rem; line-height: 1.65; white-space: pre-wrap; }
.doc-excerpt strong { color: var(--text); }

.section { max-width: 1180px; margin: 0 auto; padding: 112px 20px 0; scroll-margin-top: 40px; }
.section-intro { max-width: 740px; margin: 0 auto 40px; text-align: center; }
.section-title { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; }
.section-lede { margin: 14px auto 0; color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { margin: 0; padding: 24px; scroll-margin-top: 88px; }
.feature h3, .step h3 { margin: 16px 0 6px; font-size: 1.02rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.feature-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; color: var(--primary); background: var(--primary-soft); border: 1px solid var(--violet-border); border-radius: 10px; }
.feature-icon .icon { width: 18px; height: 18px; }
.feature-alert .feature-icon { color: var(--red); background: var(--red-bg); border-color: var(--red-border); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; margin: 0; padding: 24px; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; color: #fff; font-size: 0.85rem; font-weight: 600; background: var(--text); border-radius: 50%; }
.step p { margin: 0 0 16px; color: var(--muted); font-size: 0.94rem; }
.step .command { margin: auto 0 0; }
.command code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 0; font-size: 0.84rem; background: none; border: 0; }

.cta-wrap { max-width: 1180px; margin: 112px auto 0; padding: 0 20px; }
.cta-band {
  padding: 60px 24px; text-align: center; color: #fff;
  background: radial-gradient(70% 130% at 50% 0%, #7b5bff 0%, #4c2fd0 55%, #26176f 100%);
  border-radius: 24px; box-shadow: 0 24px 60px -24px rgba(76, 47, 208, 0.55);
}
.cta-band h2 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.03em; }
.cta-band p { max-width: 580px; margin: 12px auto 0; color: rgba(255, 255, 255, 0.82); }
.cta-band .hero-cta { margin-top: 28px; }
.btn-light { color: var(--text); background: #fff; border-color: #fff; }
.btn-light:hover { color: var(--text); background: #f4f4f5; border-color: #f4f4f5; }
.btn-ghost-light { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); box-shadow: none; }
.btn-ghost-light:hover { color: #fff; background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); }
.landing-footer { margin-top: 48px; }

.setting-danger { border-color: var(--red-border); }
.setting-danger h2 { color: var(--red); }

/* Legal pages */
main.legal { flex: 1; padding: 56px 20px 24px; }
.legal-doc { max-width: 760px; margin: 0 auto; color: var(--text-2); font-size: 0.98rem; line-height: 1.65; }
.legal-doc h1 { margin: 4px 0 18px; color: var(--text); font-size: clamp(1.8rem, 3.6vw, 2.4rem); letter-spacing: -0.03em; }
.legal-doc h2 { margin: 32px 0 8px; color: var(--text); font-size: 1.12rem; }
.legal-doc p, .legal-doc li { margin: 0 0 10px; }
.legal-doc ul { padding-left: 1.2em; }
.legal-missing { padding: 0 4px; color: #7a1f12; background: var(--red-bg); border-radius: 4px; }
.auth-legal { margin: 14px 0 0; color: var(--muted); font-size: 0.8rem; text-align: center; }

/* Billing page */
.billing-method + .billing-method { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.billing-method h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 0.98rem; }
.billing-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.billing-options form { margin: 0; }
.billing-method .stack label { display: grid; gap: 6px; max-width: 360px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 840px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; margin: 0; padding: 28px; }
.plan-pro { border-color: var(--violet-border); box-shadow: 0 0 0 1px var(--violet-border), var(--shadow-lg); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.plan-badge { padding: 3px 10px; color: var(--violet); font-size: 0.75rem; font-weight: 600; background: var(--violet-bg); border: 1px solid var(--violet-border); border-radius: 999px; }
.plan-summary { margin: 6px 0 0; color: var(--muted); font-size: 0.94rem; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 0; }
.plan-amount { font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.plan-period { color: var(--muted); font-size: 0.95rem; }
.plan-alt { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }
.plan-features { display: grid; gap: 11px; margin: 24px 0 28px; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--border); }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; }
.plan-features .icon { margin-top: 3px; color: var(--primary); }
.plan .btn { margin-top: auto; }
.plan-note { margin: 12px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; text-align: center; }
.pricing-terms { max-width: 700px; margin: 28px auto 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.pricing-terms p { margin: 0 0 6px; }

@media (max-width: 1100px) {
  .showcase-panel pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}

@media (max-width: 960px) {
  .site-links, .showcase-link { display: none; }
  .showcase-panel { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body.landing .brand-name { display: inline; }
  .site-nav-inner { gap: 12px; padding: 0 14px; }
  .site-actions .btn { height: 34px; padding: 0 12px; }
  .hero { padding: 56px 16px 44px; }
  .hero-lede { font-size: 1.05rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .showcase { padding: 0 12px; }
  .canvas { min-height: 0; padding: 28px 14px; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .plan { padding: 24px 20px; }
  .section { padding: 76px 12px 0; }
  .cta-wrap { margin-top: 76px; padding: 0 12px; }
  .cta-band { padding: 40px 18px; border-radius: 18px; }
}
