/* Public landing layout. Shared controls and colors live in zp.css. */
body.zp-home {
  background:
    radial-gradient(ellipse 58rem 33rem at 96% 4rem, #e9dcfb 0%, transparent 68%),
    radial-gradient(ellipse 52rem 27rem at 4% 6rem, #ffe5ef 0%, transparent 68%),
    var(--bg);
}
.zp-home .zp-nav-cta {
  background: var(--surface);
  box-shadow: none;
  color: var(--ink);
  border: 1px solid var(--border-solid);
}
.zp-home .zp-nav-cta:hover { background: var(--soft); color: var(--accent); }

.r11-support-btn,
.r11-mini-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 13px/1 var(--sans);
  cursor: pointer;
}
.r11-support-btn svg { width: 16px; height: 16px; }
.r11-support-btn:hover, .r11-mini-copy:hover { background: var(--soft); color: var(--accent); }
.r11-mini-copy { min-height: 36px; border-color: var(--border-solid); }

.r11 { width: min(100%, 1264px); margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.r9-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 4.8vw, 70px);
  padding: clamp(35px, 6vw, 84px) 0 35px;
}
.r9-hero h1 {
  margin: 0;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.075em;
}
.r9-hero h1 span { color: #6441b9; letter-spacing: -.065em; }
.r11-lede {
  max-width: 28em;
  margin-top: 24px;
  font-size: clamp(15px, 1.55vw, 19px);
  color: var(--ink-2);
  line-height: 1.78;
  text-wrap: pretty;
}
.r11-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.r11-btn {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  font-size: 14.5px;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, filter .18s;
}
.r11-btn:hover { text-decoration: none; transform: translateY(-1px); }
.r11-btn-dark {
  color: #fff;
  background: linear-gradient(135deg, #F472B6 0%, #9333EA 56%, #6D28D9 100%);
  box-shadow: 0 10px 24px -10px rgba(147, 51, 234, 0.52);
}
.r11-btn-dark:hover { color: #fff; filter: brightness(1.05); box-shadow: 0 14px 28px -10px rgba(236, 72, 153, 0.55); }
.r11-btn-light { color: var(--ink); border-color: var(--border-solid); background: var(--surface); }
.r11-btn-light:hover { color: var(--accent); border-color: var(--border-hover); background: var(--soft); }
.zp-hero-note { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.zp-hero-note a { font-weight: 650; }
.zp-hero-note > span::before { content: "·"; margin-right: 14px; color: var(--muted); }

.zp-text-link { color: var(--accent); font-size: 14px; font-weight: 650; text-underline-offset: 3px; }
.zp-model-preview {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #d8c7ef;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 22px 48px -25px #a382c8;
}
.zp-model-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px 18px 10px;
}
.zp-model-preview-head h2 { font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.zp-model-search {
  display: flex;
  gap: 7px;
  margin: 0 18px 15px;
}
.zp-model-search input, .zp-model-search button {
  min-height: 42px;
  min-width: 0;
  padding: 0 10px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-solid);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
}
.zp-model-search input { flex: 1; }
.zp-model-search button { cursor: pointer; color: var(--accent); font-weight: 650; }
.zp-model-search button:hover { background: var(--soft); }

body.zp-home table.zp-model-table { width: 100%; margin: 0; table-layout: auto; font-size: 13px; border-collapse: collapse; }
.zp-model-table thead { background: var(--soft); }
.zp-model-table thead th { color: var(--muted); font-weight: 650; white-space: nowrap; }
.zp-model-table :is(th, td) { padding: 10px 12px; text-align: left; text-transform: none; letter-spacing: normal; border-bottom: 1px solid var(--border); }
.zp-model-table :is(th, td):first-child { padding-left: 18px; }
.zp-model-table :is(th, td):last-child { padding-right: 18px; text-align: right; }
.zp-model-table td { white-space: nowrap; }
.zp-model-table th a { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 14px; font-weight: 700; }
.zp-model-table tbody tr:hover { background: var(--bg); }
.zp-model-table td[data-model-price] { font-variant-numeric: tabular-nums; }
.zp-sample-col button {
  min-height: 37px;
  padding: 0 8px;
  border: 1px solid var(--border-solid);
  border-radius: 7px;
  background: var(--soft);
  color: var(--accent);
  font: 650 12px/1 var(--sans);
  cursor: pointer;
}
.zp-sample-col button:hover { border-color: var(--accent); }
.zp-sample-status { padding: 9px 14px; background: var(--soft); color: var(--accent); font: 600 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.zp-family-mark { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 7px; font: 700 15px/1 var(--mono); }
.zp-family-mark.peach { color: #793d23; background: #f8e2d3; }
.zp-family-mark.lilac { color: #574876; background: #ece6f5; }
.zp-family-mark.green { color: #165d4d; background: #def0e7; }
.zp-model-preview-foot { padding: 11px 18px; color: var(--muted); font-size: 12px; }
.zp-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.zp-invite-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; }
.zp-invite-heading h2 { font-size: clamp(22px, 2.5vw, 31px); letter-spacing: -.035em; }

.r11-connect {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
  gap: clamp(24px, 5.1vw, 72px);
  align-items: start;
  margin: 0 0 clamp(40px, 6vw, 75px);
  padding-top: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--border-solid);
}
.r11-connect h2 { font-size: clamp(28px, 3.3vw, 43px); line-height: 1.2; letter-spacing: -.055em; }
.r9-steps { margin: 20px 0; list-style: none; counter-reset: step; }
.r9-steps li { position: relative; counter-increment: step; min-height: 56px; padding: 0 0 14px 42px; }
.r9-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent);
  font: 700 13px/1 var(--mono);
}
.r9-steps b { display: block; font-size: 15px; }
.r9-steps span { display: block; color: var(--muted); font-size: 14px; }
.r9-code[hidden] { display: none; }
.r9-proto { min-width: 0; overflow: hidden; border: 1px solid var(--border-solid); border-radius: 14px; background: var(--surface); }
.r9-proto-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.r9-proto-endpoint { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.r9-proto-endpoint small { color: var(--muted); font-size: 12px; }
body.zp-home .r9-proto-endpoint code { color: var(--accent); background: transparent; padding: 0; border: 0; font: 600 13px/1.4 var(--mono); }
.r9-copy-group { display: flex; gap: 6px; }
.r9-copy { min-height: 36px; padding: 0 9px; border: 1px solid var(--border-solid); border-radius: 7px; background: var(--surface); color: var(--ink-2); font: 600 12px/1 var(--sans); cursor: pointer; }
.r9-copy:hover { color: var(--accent); background: var(--soft); }
.r9-proto .proto-tabs { display: flex; overflow-x: auto; background: var(--surface); padding: 3px 10px 0; border: 0; }
.r9-proto .proto-tab { flex: none; min-height: 43px; padding: 0 11px; border: 0; background: transparent; color: var(--muted); font: 650 12px/1.2 var(--sans); cursor: pointer; white-space: nowrap; }
.r9-proto .proto-tab.active { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.r9-code {
  margin: 0;
  min-height: 184px;
  max-height: 280px;
  overflow: auto;
  padding: 16px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: var(--soft);
  color: var(--ink);
  font: 12px/1.75 var(--mono);
}
.r9-code .kw { color: #734070; }
.r9-code .str { color: #185743; }
.r9-code .fn { color: #833d23; }
.r9-code .cm { color: var(--muted); }

/* Fix split-row lilac tint on tbody th[scope="row"] */
.zp-model-table tbody th[scope="row"] {
  background: transparent !important;
  font-weight: 600;
}
.zp-model-table th[scope="row"] a > span:last-child {
  white-space: nowrap;
}

.r9-invite {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(150px, 19vw, 224px);
  column-gap: 24px;
  align-items: center;
  margin: 0 0 clamp(34px, 5vw, 68px);
  padding: clamp(18px, 2.6vw, 30px) clamp(18px, 2.6vw, 30px);
  background: radial-gradient(circle at 94% 18%, #f0ddff, transparent 57%), #ffeaf0;
  border: 1px solid #f0d7eb;
  border-radius: 19px;
  color: #3d255c;
}
.zp-invite-heading { grid-column: 1; }
.r11-rewards { grid-column: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.r11-rewards > div { padding: 13px 0 0; border-top: 1px solid #e5cce7; }
.zp-invite-mascot { grid-column: 2; grid-row: 1 / span 2; position: static; width: 100%; max-width: 224px; height: auto; justify-self: end; align-self: end; pointer-events: none; }
.r11-rewards strong { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.065em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.r11-rewards strong span { font-size: .47em; letter-spacing: 0; }
.r11-rewards p { margin-top: 5px; font-size: 13px; color: #635171; }

.r11-foot-support { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.r11-pop {
  width: min(380px, calc(100vw - 32px));
  margin: auto;
  padding: 22px;
  border: 1px solid var(--border-solid);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface);
}
.r11-pop::backdrop { background: rgba(19, 25, 20, .5); }
.r11-pop h3 { margin: 0 40px 8px 0; font-size: 19px; }
.r11-pop p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.r11-qq { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 9px; background: var(--soft); }
.r11-qq small, .r11-qq b { display: block; }
.r11-qq b { color: var(--ink); font: 700 18px/1.5 var(--mono); }
.r11-qq button, .r11-pop-x { min-height: 42px; padding: 0 10px; border: 1px solid var(--border-solid); border-radius: 8px; background: var(--surface); color: var(--accent); font-size: 13px; font-weight: 650; cursor: pointer; }
.r11-pop-x { position: absolute; right: 12px; top: 12px; min-width: 42px; font-size: 20px; }
.zp-toast { position: fixed; bottom: 22px; left: 50%; z-index: 1000; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 10px 14px; border-radius: 9px; color: white; background: #382467; font-size: 13px; pointer-events: none; transform: translateX(-50%); }
.zp-toast.hidden { opacity: 0; }
.zp-toast-dot { width: 7px; height: 7px; background: #fbb87e; border-radius: 50%; }

@media (max-width: 1080px) {
  .r9-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .r9-hero h1 { font-size: clamp(36px, 6.3vw, 58px); }
}
@media (max-width: 720px) {
  .r9-hero, .r11-connect { grid-template-columns: minmax(0, 1fr); }
  .r9-hero { padding-top: 35px; }
  .r9-hero h1 { font-size: clamp(33px, 9.9vw, 54px); }
  .r11-lede { margin-top: 15px; }
  .r11-actions { margin-top: 21px; }
  .r11-rewards { gap: 10px; }
  .r9-invite { display: block; padding: 18px 16px 14px; }
  .zp-invite-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-right: 96px;
    margin-bottom: 14px;
  }
  .zp-invite-mascot { position: absolute; right: 10px; top: 8px; bottom: auto; width: 82px; max-width: 82px; }
  .zp-model-table th[scope="row"] a > span:last-child { white-space: normal; overflow-wrap: anywhere; }
  .r9-proto .proto-tabs { scrollbar-width: none; gap: 2px; padding: 3px 6px 0; }
  .r9-proto .proto-tabs::-webkit-scrollbar { display: none; }
  .r9-proto .proto-tab { padding: 0 7px; font-size: 11.5px; min-height: 38px; }
  .r9-code { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 11.5px; padding: 13px; }
  .r11-rewards p { font-size: 12px; line-height: 1.45; }
}
@media (max-width: 420px) {
  .r11-support-btn span { display: none; }
  .r11-support-btn { min-width: 36px; width: 36px; height: 36px; padding: 0; justify-content: center; border: 1px solid var(--border-solid); border-radius: 999px; background: var(--surface); }
  .r11-btn { padding: 0 15px; font-size: 13.5px; }
  .zp-model-table :is(th, td) { padding-inline: 6px; }
  .zp-model-table :is(th, td):first-child { padding-left: 12px; }
  .zp-model-table :is(th, td):last-child { padding-right: 12px; }
  .zp-model-table th a { gap: 6px; font-size: 13px; }
  .zp-family-mark { display: none; }
  .zp-sample-col button { padding-inline: 7px; font-size: 11.5px; border-radius: 999px; }
  .zp-model-table { font-size: 12px; }
}
