:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #737373;
  --border: #e7e7e7;
  --soft: #f7f7f7;
  --soft-strong: #eeeeee;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.04);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #e8e7e1;
    --border: #d7d5ce;
    --soft: #deddd6;
    --soft-strong: #d4d2ca;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.06);
  }

  .card,
  .login-link,
  .domain-field,
  .field input,
  .field select,
  .field textarea,
  .tab.active {
    background: #f1f0ea;
  }

  .pricing-card,
  .auth-card {
    box-shadow:
      0 0 0 6px rgba(0, 0, 0, 0.04),
      var(--shadow);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a[href] {
  cursor: pointer;
}

a[href] * {
  cursor: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Uniform pointer across whole hit targets. Without this, native controls and
   child text resolve cursor:auto to the default arrow or I-beam while the
   parent shows a hand — the flicker you see sweeping sidebar links, tabs,
   metric cards, and checkbox rows. */
input[type='checkbox'],
input[type='radio'],
select,
button:not(:disabled),
[role='tab'] {
  cursor: pointer;
}

button:not(:disabled) *,
label:has(> input[type='checkbox']) *,
label:has(> input[type='radio']) *,
.access-picker label * {
  cursor: inherit;
}

label:has(> input[type='checkbox']),
label:has(> input[type='radio']),
.access-picker label {
  cursor: pointer;
}

input:not([type='checkbox']):not([type='radio']):not([type='submit']):not(
    [type='button']
  ):not([type='reset']):not([type='hidden']),
textarea {
  cursor: text;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.shell {
  display: grid;
  grid-template-columns: 252px 1fr;
  width: 100%;
  max-width: 1364px;
  min-height: 100vh;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Mobile-only chrome: hamburger topbar + drawer backdrop (see mobile media query) */
.mobile-topbar,
.sidebar-backdrop {
  display: none;
}

/* Focused pages without the sidebar (noSidebar layout prop): single column
   with a centered brand topbar, used e.g. for upgrade prompts. */
.shell.no-sidebar {
  display: block;
}

.solo-topbar {
  display: flex;
  justify-content: center;
  padding: 32px 24px 0;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  margin-bottom: 24px;
  text-decoration: none;
  color: var(--muted);
}
.back-link:hover {
  color: var(--text);
}

.sidebar-site-nav {
  pointer-events: none;
}

.sidebar-site-nav > * {
  pointer-events: auto;
}

.sidebar-account {
  position: relative;
  display: grid;
  margin-top: auto;
}

.account-trigger {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-weight: 400;
  padding: 8px;
  text-align: left;
}

.account-trigger:hover {
  background: var(--soft);
}

.account-trigger img,
.account-menu img,
.profile-avatar {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--soft);
}

.account-trigger span,
.account-trigger strong,
.account-trigger small {
  display: block;
  min-width: 0;
}

.account-trigger strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-trigger small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 20;
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
  padding: 12px;
}

.account-menu::after {
  position: absolute;
  left: 34px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  content: '';
  transform: rotate(45deg);
}

.account-menu-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 4px 4px 10px;
}

.account-menu-header strong,
.account-menu-header small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-header small {
  color: var(--muted);
  font-size: 12px;
}

.account-menu a,
.account-menu button {
  justify-content: flex-start;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 650;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.account-menu a.active,
.account-menu a:hover,
.account-menu button:hover {
  background: var(--soft);
}

/* The items reuse .nav-link, whose sidebar .active style inverts to white
   text; in the light popover the active item must stay black. */
.account-menu a.active,
.account-menu a.active:hover {
  color: #111;
}

/* The workspace the user is currently in, shown in the switcher. */
.account-menu-current {
  display: block;
  border-radius: 10px;
  background: var(--soft);
  color: #111;
  font-size: 14px;
  font-weight: 650;
  padding: 10px;
}

.account-menu-workspaces {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 2px;
}

/* Website-scope picker on the team page (invite form + per-member editor). */
.access-picker {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.access-picker label {
  display: flex;
  gap: 8px;
  align-items: baseline;
  cursor: pointer;
}

.access-picker-sites {
  display: grid;
  gap: 6px;
  border-left: 2px solid var(--border);
  padding-left: 14px;
  margin-left: 5px;
}

[x-cloak] {
  display: none !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 22px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.nav-section {
  display: grid;
  gap: 0;
  /* Full-width link hovers without negative margins on each link (those let
     elementFromPoint fall through to aside.sidebar → cursor:auto flicker). */
  margin: 0 -10px;
  padding: 0 10px;
  /* Padding strips around block links used to resolve to nav (cursor:auto). */
  pointer-events: none;
}

.nav-section > :is(a, button, form, .nav-label, span.nav-link) {
  pointer-events: auto;
}

.nav-section + .nav-section > .nav-label:first-child {
  padding-top: 40px;
}

.nav-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.nav-link {
  display: block;
  position: relative;
  z-index: 1;
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}

/* Cover nav-section horizontal padding so edge pixels don't fall through to aside. */
.nav-link::before {
  position: absolute;
  inset: 0 -10px;
  border-radius: inherit;
  content: '';
}

span.nav-link {
  cursor: default;
}

.nav-link:hover {
  color: var(--text);
}

/* Current page/tab: filled black pill, unmissable */
.nav-link.active {
  background: var(--text);
  color: #fff;
  font-weight: 600;
}

.nav-link.active:hover {
  color: #fff;
}

/* Instance count next to a sidebar feature row (e.g. "Waiting list 2"). */
.nav-count {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.main {
  padding: 24px 36px 64px;
}

.marketing-main {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.marketing-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 4px 0 56px;
  font-size: 14px;
}

.marketing-brand,
.marketing-nav nav,
.login-link {
  display: flex;
  align-items: center;
}

.marketing-brand {
  gap: 9px;
  justify-self: start;
}

.marketing-brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 9px;
}

.marketing-nav nav {
  gap: 34px;
  justify-self: center;
  color: #222;
}

.login-link {
  justify-self: end;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 13px;
  background: #fff;
  box-shadow: var(--shadow);
}

.page {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.hero {
  max-width: 820px;
  padding: 88px 0 56px;
}

.marketing-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 0 60px;
  text-align: center;
}

.auth-main {
  min-height: 100vh;
}

.auth-nav {
  padding-bottom: 72px;
}

.auth-panel {
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 620px;
  margin: 0 auto 22px;
}

.auth-panel h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.auth-panel .lead {
  margin-left: auto;
  margin-right: auto;
}

.auth-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 18px;
  box-shadow:
    0 0 0 6px rgba(0, 0, 0, 0.035),
    var(--shadow);
}

.not-found-card {
  text-align: center;
}

.not-found-actions {
  justify-content: center;
  margin-top: 18px;
}

.marketing-hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.marketing-hero .lead {
  max-width: 540px;
  margin: 0 auto 24px;
  font-size: 18px;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  margin: 0 auto 10px;
}

.hero-cta-row .button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 26px;
}

.trial-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 24px;
}

.social-proof {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.avatar-row {
  display: flex;
  justify-content: center;
}

.avatar-row span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-left: -7px;
}

.avatar-row span:first-child {
  margin-left: 0;
}

.social-proof p {
  margin: 0;
  color: #333;
  font-size: 14px;
}

.hero-preview {
  position: relative;
  margin: 0 auto;
  max-width: 960px;
}

/* Homepage "how it works" 3-step strip */
.home-steps {
  max-width: 960px;
  margin: 104px auto 0;
  gap: 18px;
}

.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow:
    0 0 0 6px rgba(0, 0, 0, 0.035),
    0 28px 70px rgba(0, 0, 0, 0.08);
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #333;
  background: var(--soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1;
  letter-spacing: -0.06em;
  margin: 16px 0 18px;
}

.page-title {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 14px 0 12px;
}

/* Sidebar back link to the all-sites dashboard, shown above the website nav */
.nav-back {
  display: block;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0;
  margin-bottom: 14px;
  cursor: pointer;
  user-select: none;
}

.nav-back:hover {
  color: var(--text);
}

h2 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 680px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tabs {
  position: relative;
  display: inline-flex;
  gap: 0;
  padding: 0;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  overflow: hidden;
}

/* Cursor hit-target filler only — must not intercept clicks meant for the
   tab buttons underneath (absolutely positioned, so it paints above them). */
.tabs::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: '';
  pointer-events: none;
}

.tab {
  border: 0;
  background: none;
  border-radius: 9px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.tab-panel {
  display: grid;
  gap: 20px;
}

/* Switcher between instances of a multi-list feature (waiting lists): one
   tab per list plus a "+" tab that reveals an inline create form. */
.list-switcher {
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
  overflow: visible;
}

.list-switcher .tab {
  text-decoration: none;
}

.list-switcher-add {
  display: flex;
  align-items: center;
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title-row .rename-button {
  padding: 4px 10px;
  font-size: 12px;
}

/* Inline name forms: renaming a list and creating a new one. */
.inline-name-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* The rename form replaces the page title; keep the same vertical rhythm. */
.page-title-row + .inline-name-form {
  margin: 14px 0 12px;
}

.inline-name-form input[name='name'] {
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  color: #111;
  min-width: 220px;
}

.inline-name-form button {
  padding: 8px 12px;
  font-size: 13px;
}

.list-switcher-add .inline-name-form {
  padding: 2px 6px;
}

.list-switcher-add .inline-name-form input[name='name'] {
  padding: 6px 10px;
  min-width: 180px;
}

.list-switcher-add .inline-name-form button {
  padding: 6px 10px;
  font-size: 12px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.card.flat {
  box-shadow: none;
}

.feature-card {
  display: grid;
  gap: 12px;
}

.feature-card h3,
.feature-card p {
  margin: 0;
}

.feature-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.feature-stats span {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--soft);
}

.feature-stats strong,
.feature-stats small {
  display: block;
}

.feature-stats strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.feature-stats small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.metric-card {
  display: grid;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.metric-card strong {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-card p {
  margin: 0;
  font-size: 13px;
}

a.metric-card:hover {
  border-color: #111;
}

.chart-card {
  display: grid;
  gap: 18px;
}

.chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chart-card-header h3 {
  margin: 0;
}

.chart-card-header small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.chart-card-value {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.chart-frame {
  position: relative;
  width: 100%;
  min-width: 0;
}

/* Chart.js writes explicit pixel sizes on the canvas; keep it out of layout
   flow so it can't lock the card's min-content width and break shrinking. */
.chart-frame canvas {
  position: absolute;
  inset: 0;
  max-width: 100%;
}

.pricing-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.pricing-intro h2,
.pricing-intro p {
  margin-bottom: 0;
}

.billing-heading,
.billing-current-plan {
  justify-content: center;
  text-align: center;
}

.billing-heading {
  max-width: 720px;
  margin: 0 auto;
}

.billing-heading .lead {
  margin-left: auto;
  margin-right: auto;
}

.billing-current-plan {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.billing-current-plan h2 {
  padding-top: 12px;
  padding-bottom: 12px;
}

.pricing-calculator {
  display: grid;
  gap: 26px;
  padding-top: 36px;
}

.home-pricing {
  margin-top: 104px;
  scroll-margin-top: 32px;
}

/* Homepage waiting list (vaporware mode: the only conversion action) */
.home-waitlist {
  max-width: 640px;
  margin: 104px auto 0;
  text-align: center;
  scroll-margin-top: 32px;
}

.home-waitlist h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}

.home-waitlist-embed {
  margin-top: 28px;
  text-align: left;
}

/* Homepage savings calculator */
.savings-calculator {
  display: grid;
  gap: 26px;
  max-width: 680px;
  margin: 104px auto 0;
}

.savings-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.savings-rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.savings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.savings-row label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.savings-row input[type='checkbox'] {
  accent-color: #111;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.savings-feature {
  display: grid;
  gap: 1px;
  font-weight: 600;
  font-size: 14px;
}

.savings-feature small {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}

.savings-price {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.savings-price.unchecked {
  text-decoration: line-through;
  opacity: 0.5;
}

.savings-totals {
  display: grid;
  gap: 8px;
}

.savings-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.savings-line strong {
  color: var(--text);
  font-size: 15px;
}

.savings-result {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
  color: var(--text);
  font-weight: 600;
}

.savings-result strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.savings-result strong small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}

@media (max-width: 560px) {
  .savings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .savings-price {
    padding-left: 28px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* /for/:platform landing pages + homepage platform strip */
.platform-eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.benefits-section {
  max-width: 960px;
  margin: 104px auto 0;
  text-align: center;
}

.benefits-section h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}

.benefits-lead {
  max-width: 600px;
  margin: 0 auto 44px;
  font-size: 16px;
  line-height: 1.6;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--border);
}

/* The feature count rarely divides evenly by the column count: paint the
   leftover cells of the last row white instead of leaving a gray hole. */
.benefits-grid::after {
  content: "";
  grid-column: auto / -1;
  background: #fff;
}

.benefit-item {
  padding: 24px 22px;
  background: #fff;
}

.benefit-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.benefit-item p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Clickable feature tiles: each opens the animated benefit-detail panel below.
   The global `button` rule paints buttons black/white/rounded, so every
   visual property is reset here explicitly. */
.benefit-toggle {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease;
}

.benefit-toggle:hover {
  background: var(--soft);
}

.benefit-toggle h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.benefit-toggle-mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
  transition: all 140ms ease;
}

.benefit-toggle:hover .benefit-toggle-mark {
  border-color: #111;
  color: #111;
}

.benefit-toggle.active {
  background: #111;
}

.benefit-toggle.active h3 {
  color: #fff;
}

.benefit-toggle.active p {
  color: rgba(255, 255, 255, 0.72);
}

.benefit-toggle.active .benefit-toggle-mark {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* Detail panel: animates open via the grid-rows 0fr -> 1fr trick */
.benefit-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(0.22, 1, 0.36, 1);
  text-align: left;
}

.benefit-detail.open {
  grid-template-rows: 1fr;
}

.benefit-detail-clip {
  overflow: hidden;
  min-height: 0;
}

.benefit-detail-panel {
  margin-top: 14px;
  border: 1px solid #111;
  border-radius: 14px;
  background: #fff;
  padding: 28px 30px;
  box-shadow:
    0 0 0 6px rgba(0, 0, 0, 0.035),
    var(--shadow);
}

/* Replays every time x-show flips a panel from display:none to visible —
   both on first open and when switching between features. */
.benefit-detail.open .benefit-detail-panel {
  animation: benefit-panel-in 300ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
}

@keyframes benefit-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.benefit-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.benefit-detail-head h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0;
}

.benefit-detail-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  transition: all 140ms ease;
}

.benefit-detail-close:hover {
  border-color: #111;
  color: #111;
}

.benefit-detail-what {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 18px;
}

.benefit-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.benefit-detail-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.benefit-detail-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 9px;
}

.benefit-detail-cta {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .benefit-detail,
  .benefit-toggle,
  .benefit-toggle-mark {
    transition: none;
  }

  .benefit-detail.open .benefit-detail-panel {
    animation: none;
  }
}

.benefits-more {
  margin: 32px auto 0;
  max-width: 820px;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.platform-steps,
.platform-demo,
.platform-others,
.platform-strip {
  max-width: 760px;
  margin: 104px auto 0;
  text-align: center;
}

.platform-steps h2,
.platform-demo h2,
.platform-others h2,
.platform-strip h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}

.platform-steps ol {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: platform-step;
  text-align: left;
}

.platform-steps ol li {
  counter-increment: platform-step;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
}

.platform-steps ol li::before {
  content: counter(platform-step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.platform-demo iframe {
  display: block;
  margin: 18px auto 0;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.platform-links a {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.platform-links a:hover {
  border-color: #111;
}

.pricing-heading {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.pricing-heading h1,
.pricing-heading h2 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin: 14px 0 12px;
}

.pricing-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.pricing-slider-wrap {
  display: grid;
  gap: 8px;
}

.slider-top-label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.slider-top-label strong {
  justify-self: center;
  border: 1px solid #111;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}

.yearly-note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.free-strip {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.free-plan-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.free-plan-card > div {
  display: grid;
  gap: 6px;
}

.free-plan-card strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.free-plan-card p {
  margin: 0;
}

.billing-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  white-space: nowrap;
}

.billing-toggle span,
.billing-toggle button {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
}

.billing-toggle span.active,
.billing-toggle button.active {
  background: #111;
  color: #fff;
}

.billing-toggle small {
  color: var(--muted);
  padding-right: 8px;
}

.pricing-grid {
  align-items: stretch;
}

.allowance-picker {
  display: grid;
  gap: 14px;
}

.growth-card {
  margin-top: 18px;
}

.growth-card-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.allowance-summary {
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--soft);
}

.allowance-summary strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.price-slider {
  width: 100%;
  accent-color: #111;
  height: 18px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.growth-feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-card {
  display: grid;
  gap: 14px;
}

.pricing-card .button,
.pricing-card form,
.pricing-card > button,
.pricing-card > .secondary {
  align-self: end;
}

.pricing-card .badge {
  justify-self: start;
}

.paid-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.plan-card {
  border-radius: 18px;
  padding: 32px;
  box-shadow:
    0 0 0 6px rgba(0, 0, 0, 0.035),
    var(--shadow);
  min-height: 420px;
  grid-template-rows: auto auto minmax(58px, auto) 1fr auto auto;
  align-content: stretch;
}

.enterprise-plan-card {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(0, 1.6fr) auto;
  gap: 28px 32px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  min-height: 0;
  padding: 32px;
  border-radius: 18px;
  box-shadow:
    0 0 0 6px rgba(0, 0, 0, 0.035),
    var(--shadow);
}

.enterprise-plan-copy {
  display: grid;
  gap: 12px;
}

.enterprise-plan-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.enterprise-plan-copy p {
  margin: 0;
}

.enterprise-feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enterprise-contact {
  justify-self: end;
  white-space: nowrap;
}

.pricing-card.current-plan {
  outline: 2px solid #111;
  outline-offset: -2px;
}

.pricing-card h2 {
  font-size: 38px;
  line-height: 1;
  margin: 0;
}

.pricing-card h2 small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

/* Stepped pricing: spots-left / future-price note under the price. */
.price-note {
  margin-top: -8px;
}

.feature-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  color: #333;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.feature-list li::before {
  content: '✓';
  color: #111;
  font-weight: 700;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

.fine-print {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

/* Profile "Danger zone": stands apart from regular cards without color. */
.danger-zone {
  border: 1.5px solid #111;
}

.danger-zone h2::before {
  content: '⚠ ';
}

/* Terms/privacy acceptance line under the public pricing cards. */
.pricing-legal-note {
  text-align: center;
  margin-top: 14px;
}

.pricing-legal-note a {
  text-decoration: underline;
}

.stack {
  display: grid;
  gap: 16px;
}

.catalog-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.catalog-item h3,
.catalog-item p {
  margin: 0;
}

.catalog-item button {
  justify-self: start;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.button,
button,
input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  border-radius: 10px;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  font-weight: 650;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  background: #fff;
  color: #111;
}

.button.ghost,
button.ghost {
  background: transparent;
  color: #111;
  border-color: var(--border);
}

button:disabled,
button:disabled:hover {
  cursor: default;
  color: var(--muted);
  border-color: var(--border);
  background: var(--soft);
}

.form {
  display: grid;
  gap: 14px;
}

/* Multi-step wizard (add-website flow): step indicator + prev/next row. */
.wizard-steps {
  display: flex;
  gap: 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
}

.wizard-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wizard-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #dcdcdc;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 650;
}

.wizard-steps li.done {
  color: var(--text);
}

.wizard-steps li.done span {
  border-color: #111;
  background: #111;
  color: #fff;
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #333;
}

.field input,
.field select,
.field textarea {
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #111;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 12px 8px;
  vertical-align: top;
}

.table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.code {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--soft);
  padding: 14px;
  color: #222;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
}

.feature-preview {
  margin-top: 14px;
}

.snippet-copy {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-top: 14px;
}

.snippet-copy .code {
  justify-self: stretch;
}

.notice {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--soft);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
}

.notice p {
  margin: 0;
}

.notice a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notice a:hover {
  text-decoration-thickness: 2px;
}

/* A button that reads as an inline text link (e.g. tab switchers inside copy). */
button.link-button {
  display: inline;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  color: var(--text);
  font-size: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

button.link-button:hover {
  text-decoration-thickness: 2px;
}

.profile-summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.profile-summary h2,
.profile-summary p {
  margin: 0;
}

.profile-summary p {
  margin-top: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  max-width: 1020px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 72px;
}

.docs-nav {
  position: sticky;
  top: 24px;
  align-self: start;
}

.docs-nav nav {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.docs-nav-section-label {
  margin-top: 22px;
}

.docs-content {
  min-width: 0;
  max-width: 680px;
}

.docs-content h1 {
  font-size: clamp(30px, 4vw, 40px);
  margin: 12px 0 14px;
}

.docs-content h2 {
  margin-top: 36px;
}

.docs-content p,
.docs-content li {
  font-size: 15px;
  line-height: 1.65;
  color: #222;
}

.docs-content .lead {
  font-size: 17px;
  color: var(--muted);
}

.docs-content ul,
.docs-content ol {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.docs-content a {
  border-bottom: 1px solid #bbb;
}

.docs-content a:hover {
  border-bottom-color: #111;
}

.docs-feature-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
}

.docs-content .docs-feature-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.docs-content .docs-feature-card:hover {
  border-color: #111;
}

.docs-feature-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.docs-content .nav-link,
.docs-content .eyebrow {
  border-bottom: 0;
}

.docs-screenshot {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin: 18px 0;
}

.docs-content pre.code {
  margin: 14px 0;
}

.docs-next {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-weight: 500;
}

.theme-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px 5px 6px;
  font-size: 12px;
  color: #333;
}

.theme-swatch i {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.theme-swatch-wide {
  padding: 5px 11px;
}

.theme-swatch-editable {
  position: relative;
}

.theme-swatch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.theme-swatch-editor {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.theme-swatch-editor input[type='color'] {
  width: 36px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.theme-swatch-editor input[type='text'] {
  width: 92px;
  font: inherit;
  font-size: 12px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.theme-swatch-editor button {
  padding: 7px 12px;
  font-size: 12px;
}

.theme-preview-stage {
  display: flex;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--soft);
  pointer-events: none;
}

.theme-preview-stage .sb-widget {
  width: 100%;
  max-width: 520px;
}

.theme-preview-stage-dark {
  background: #18181b;
  border-color: #3f3f46;
}

.tabs-mini {
  margin-bottom: 0;
  padding: 3px;
  gap: 3px;
}

.tabs-mini .tab {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 7px;
}

.theme-actions form {
  display: inline-flex;
  align-items: center;
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 120ms ease;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Shared marketing/docs/auth footer with the legal links (see /legal/*). */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  padding: 26px 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.site-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: var(--muted);
}

.site-footer-links a:hover {
  color: #111;
}

@media (max-width: 840px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .marketing-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .marketing-nav {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding-bottom: 42px;
  }

  .marketing-nav nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    gap: 18px;
  }

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    padding: 12px 20px;
  }

  .mobile-topbar .brand {
    font-size: 18px;
  }

  .mobile-topbar .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 11px;
  }

  .hamburger {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    padding: 11px 9px;
    cursor: pointer;
  }

  .hamburger span {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #111;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.35);
  }

  /* The sidebar becomes an off-canvas drawer, opened from the hamburger */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    width: min(300px, 85vw);
    height: 100dvh;
    max-height: none;
    background: var(--bg);
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .pricing-intro,
  .split {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-detail-list {
    grid-template-columns: 1fr;
  }

  .benefit-detail-panel {
    padding: 22px 20px;
  }

  .home-steps,
  .benefits-section,
  .platform-steps,
  .platform-demo,
  .platform-others,
  .platform-strip,
  .savings-calculator,
  .home-pricing {
    margin-top: 72px;
  }

  .pricing-intro {
    display: grid;
  }

  .pricing-controls,
  .free-plan-card,
  .paid-pricing-grid,
  .enterprise-plan-card {
    grid-template-columns: 1fr;
  }

  .enterprise-feature-list {
    grid-template-columns: 1fr;
  }

  .enterprise-contact {
    justify-self: start;
  }

  .docs-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .docs-nav {
    position: static;
  }

  .free-plan-card {
    align-items: start;
  }

  .growth-card-header,
  .growth-feature-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .allowance-summary {
    min-width: 0;
  }
}

/* Submission inbox */

.submissions-inbox {
  display: grid;
  gap: 0;
}

.submission-row {
  border: 1px solid #e5e5e5;
  border-bottom: none;
  padding: 0;
}

.submission-row:first-child {
  border-radius: 8px 8px 0 0;
}

.submission-row:last-child {
  border-bottom: 1px solid #e5e5e5;
  border-radius: 0 0 8px 8px;
}

.submission-row:only-child {
  border-radius: 8px;
}

.submission-row summary {
  display: block;
  cursor: pointer;
  padding: 12px 16px;
  list-style: none;
}

.submission-row summary::-webkit-details-marker {
  display: none;
}

.submission-row.submission-new summary {
  font-weight: 600;
}

.submission-row.submission-archived {
  opacity: 0.55;
}

.submission-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.submission-who {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-new {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #111;
  color: #fff;
  flex-shrink: 0;
}

.submission-time {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

.submission-preview {
  font-size: 13px;
  color: #666;
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submission-detail {
  padding: 0 16px 14px;
}

.submission-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 13px;
  margin: 0;
}

.submission-fields dt {
  font-weight: 600;
  color: #333;
}

.submission-fields dd {
  margin: 0;
  color: #555;
  word-break: break-word;
}

.submission-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
