:root {
  --tblr-primary: #2563eb;
  --tblr-font-sans-serif: Arial, "Microsoft YaHei", sans-serif;
}

body {
  background: #f6f8fb;
}

.public-shell {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 222, 173, 0.45), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(199, 210, 254, 0.32), transparent 28%),
    linear-gradient(180deg, #fffaf3 0%, #f8fafc 48%, #ffffff 100%);
  color: #0f172a;
}

.public-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1080px;
  padding: 26px 20px 10px;
}

.public-brand {
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.public-nav nav {
  display: flex;
  gap: 16px;
}

.public-nav nav a {
  color: #475569;
  font-weight: 700;
  text-decoration: none;
}

.public-main {
  margin: 0 auto;
  max-width: 1080px;
  padding: 20px;
}

.navbar-vertical {
  background: #111827;
}

.navbar-brand a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-head h2,
h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
}

h3 {
  font-size: 17px;
  margin: 18px 0 10px;
}

.actions,
.toolbar,
.admin-shortcuts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tblr-primary);
  background: var(--tblr-primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  min-height: 36px;
  font-size: 14px;
}

.button:hover,
button:hover {
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
}

.button.secondary,
button.secondary {
  color: #334155;
  background: #fff;
  border-color: #cbd5e1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 16px 0 22px;
}

.card,
.panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card span {
  color: #64748b;
  display: block;
  font-size: 13px;
}

.card strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  margin-top: 6px;
  color: #0f172a;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 12px 0 24px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  min-height: 36px;
}

textarea {
  font-family: Consolas, "Microsoft YaHei", monospace;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

.inline {
  display: inline-block;
  margin: 0 4px 4px 0;
}

.compact-form input[type="number"] {
  display: inline-block;
  width: 76px;
}

.badge {
  background: #e0f2fe;
  color: #075985;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
}

.notice {
  background: #fff7ed;
  color: #7c2d12;
  border: 1px solid #fed7aa;
  padding: 12px;
  border-radius: 8px;
}

.muted {
  color: #64748b;
}

.eyebrow {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.lead {
  color: #475569;
  font-size: 17px;
  line-height: 1.7;
}

.claw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  margin: -8px 0 24px;
  padding: 34px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 15%, rgba(20, 184, 166, 0.25), transparent 28%),
    linear-gradient(135deg, #ecfeff 0%, #f8fafc 48%, #fff7ed 100%);
  border: 1px solid #dbeafe;
  overflow: hidden;
  position: relative;
}

.companion-hero {
  background:
    radial-gradient(circle at 80% 14%, rgba(15, 23, 42, 0.06), transparent 24%),
    rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 34px 100px rgba(15, 23, 42, 0.10);
  min-height: 560px;
}

.claw-hero::after {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), transparent);
  border-radius: 999px;
  content: "";
  height: 220px;
  position: absolute;
  right: -90px;
  top: -90px;
  width: 220px;
}

.claw-hero h1,
.claw-bind h1 {
  color: #0f172a;
  font-size: clamp(42px, 8vw, 86px);
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin: 0 0 18px;
}

.companion-cta {
  border-radius: 999px;
  font-size: 17px;
  margin-top: 12px;
  padding: 12px 22px;
}

.only-points {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 160px));
  margin-top: 34px;
}

.only-points span {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-weight: 800;
  padding: 14px 16px;
}

.phone-preview {
  align-self: center;
  background: #111827;
  border: 10px solid #0f172a;
  border-radius: 42px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 330px;
  min-height: 430px;
  padding: 26px 18px;
  width: 100%;
}

.only-section,
.trial-section,
.pricing-section,
.faq-section {
  padding: 72px 0 34px;
}

.only-section h2,
.trial-section h2,
.pricing-section h2,
.faq-section h2 {
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.only-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.only-grid article,
.trial-card,
.pricing-card,
.faq-section details {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.07);
  padding: 24px;
}

.only-grid h3,
.trial-card h3,
.pricing-card h3 {
  color: #0f172a;
  font-size: 22px;
  margin-top: 0;
}

.only-grid p,
.trial-card p,
.pricing-card p,
.faq-section p {
  color: #64748b;
  line-height: 1.7;
}

.phone-bar {
  background: #334155;
  border-radius: 999px;
  height: 5px;
  margin: 0 auto 28px;
  width: 82px;
}

.chat-bubble {
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.55;
  max-width: 84%;
  padding: 12px 14px;
}

.chat-bubble.incoming {
  background: #f8fafc;
  color: #0f172a;
}

.chat-bubble.outgoing {
  background: #14b8a6;
  color: #fff;
  justify-self: end;
}

.claw-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.claw-steps span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: #115e59;
  font-weight: 700;
  padding: 8px 12px;
}

.claw-steps.vertical {
  display: grid;
  gap: 12px;
}

.claw-steps.vertical span {
  border-radius: 16px;
  color: #0f172a;
  padding: 14px 16px;
}

.claw-create-card,
.bind-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  box-shadow: 0 22px 80px rgba(15, 23, 42, 0.12);
  padding: 22px;
}

.claw-create-card label,
.bind-card label {
  color: #334155;
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
}

.claw-bot-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.claw-bot-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
}

.qr-small {
  width: 132px;
  height: 132px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}

.qr-large {
  width: min(100%, 320px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
}

.qr-panel {
  text-align: center;
}

.claw-bind {
  display: grid;
  min-height: 62vh;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.24), transparent 26%),
    radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.24), transparent 28%);
  border-radius: 24px;
}

.bind-card {
  max-width: 560px;
  width: 100%;
}

.success-card {
  border-color: #99f6e4;
}

.persona-showcase {
  margin-bottom: 24px;
}

.persona-grid,
.persona-select-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.persona-card,
.persona-choice {
  background:
    radial-gradient(circle at 80% 10%, rgba(20, 184, 166, 0.18), transparent 28%),
    #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 16px;
}

.pricing-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trial-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trial-card strong {
  color: #0f766e;
  display: block;
  font-size: 44px;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}

.trial-box {
  background: linear-gradient(135deg, #ecfeff, #fff7ed);
  border: 1px solid #bae6fd;
  border-radius: 18px;
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 16px;
}

.trial-box span {
  color: #334155;
  font-weight: 700;
}

.user-status-panel .grid-2 {
  align-items: center;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-list span {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #334155;
  font-weight: 700;
  padding: 12px 14px;
}

.referral-panel .page-head {
  align-items: start;
}

.referral-count {
  color: #0f172a;
  font-size: 48px;
  line-height: 1;
}

.user-drawer summary {
  list-style: none;
}

.user-drawer summary::-webkit-details-marker {
  display: none;
}

.drawer-shade {
  background: rgba(15, 23, 42, 0.34);
  inset: 0;
  position: fixed;
  z-index: 50;
}

.drawer-panel {
  background: #fff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -18px 0 60px rgba(15, 23, 42, 0.18);
  height: 100vh;
  margin-left: auto;
  max-width: 560px;
  overflow-y: auto;
  padding: 24px;
  width: min(100%, 560px);
}

.drawer-panel label {
  color: #334155;
  display: block;
  font-weight: 700;
  margin: 14px 0 6px;
}

.drawer-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.drawer-grid div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}

.drawer-grid span {
  color: #64748b;
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.drawer-grid strong {
  color: #0f172a;
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.pricing-card strong {
  color: #0f172a;
  display: block;
  font-size: 42px;
  letter-spacing: -0.05em;
  margin: 10px 0;
}

.pricing-card.featured {
  background: #0f172a;
  color: #fff;
}

.pricing-card.featured h3,
.pricing-card.featured strong {
  color: #fff;
}

.pricing-card.featured p {
  color: #cbd5e1;
}

.faq-section details {
  margin-bottom: 12px;
}

.faq-section summary {
  color: #0f172a;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.persona-card h3,
.persona-choice strong {
  color: #0f172a;
  display: block;
  font-size: 17px;
  margin: 6px 0;
}

.persona-card p,
.persona-choice span {
  color: #64748b;
  display: block;
  line-height: 1.55;
  margin: 0;
}

.persona-orb {
  align-items: center;
  background: linear-gradient(135deg, #0f766e, #f97316);
  border-radius: 16px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.persona-choice {
  cursor: pointer;
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.persona-choice:hover {
  border-color: #14b8a6;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.persona-choice input {
  margin: 0 0 6px;
  min-height: auto;
  width: auto;
}

.persona-choice:has(input:checked) {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}

.pricing-strip {
  align-items: center;
  background: #0f172a;
  border-radius: 20px;
  color: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr repeat(4, auto);
  margin: 0 0 24px;
  padding: 22px;
}

.pricing-strip h2 {
  color: #fff;
  margin: 0;
}

.price-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-weight: 800;
  padding: 10px 14px;
}

.start-panel {
  align-items: start;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 24px;
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  margin-bottom: 24px;
  padding: 28px;
}

.start-panel h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.start-panel .muted {
  color: #cbd5e1;
}

.selected-persona {
  background: #ecfeff;
  border: 1px solid #99f6e4;
  border-radius: 16px;
  margin: 18px 0;
  padding: 14px;
}

.selected-persona span {
  color: #0f766e;
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.selected-persona strong {
  color: #0f172a;
  display: block;
  font-size: 24px;
  margin-top: 4px;
}

.selected-persona-panel {
  background:
    radial-gradient(circle at 15% 15%, rgba(251, 146, 60, 0.18), transparent 24%),
    linear-gradient(135deg, #ffffff, #f8fafc);
}

.selected-persona-panel h1 {
  color: #0f172a;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.05em;
  margin: 12px 0;
}

.custom-persona-builder textarea[name="generated_prompt"] {
  background: #f8fafc;
  border-color: #14b8a6;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 12px;
  border-radius: 8px;
}

.wechat-login-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  max-width: 360px;
}

.qr-preview {
  display: block;
  width: min(280px, 100%);
  height: auto;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

@media (max-width: 860px) {
  .page-head {
    display: block;
  }

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

  .claw-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .only-grid,
  .trial-cards,
  .pricing-cards,
  .start-panel {
    grid-template-columns: 1fr;
  }

  .pricing-strip {
    grid-template-columns: 1fr 1fr;
  }

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