.ref-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -18px rgba(30, 64, 175, 0.35);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
/* Responsive card grid: 1 col on mobile, 2 on tablet, 3 on desktop */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
.ref-card:hover {
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 14px 32px -18px rgba(30, 64, 175, 0.45);
  transform: translateY(-1px);
}
.ref-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.logo-tile {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.logo-tile img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}
.ref-company {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ref-domain {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
}
.ai-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: #6d28d9;
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
}
.offer-block {
  background: #f1f5f9;
  border: 1px solid #e8eef5;
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  margin: 0.9rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #334155;
  box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.07);
}
.ref-actions {
  display: flex;
  gap: 0.5rem;
}
.cta-btn {
  display: block;
  flex: 1;
  background: linear-gradient(180deg, #2f6bf0 0%, #1d4ed8 100%);
  color: #fff;
  font-weight: 650;
  text-align: center;
  border-radius: 0.8rem;
  padding: 0.72rem 1rem;
  box-shadow: 0 6px 16px -8px rgba(29, 78, 216, 0.7);
  transition: filter 0.15s ease, transform 0.1s ease;
}
.cta-btn:hover { filter: brightness(1.07); }
.cta-btn:active { transform: scale(0.99); }
.copy-btn {
  flex-shrink: 0;
  width: 2.9rem;
  border-radius: 0.8rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-size: 1.05rem;
  transition: background 0.15s ease;
}
.copy-btn:hover { background: #f1f5f9; }
/* honest submit feedback: dim + show a progress cursor while the request runs */
button.is-busy,
button:disabled { opacity: 0.7; cursor: progress; }

/* ---- shared card header (rich cards) ---- */
.ref-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.logo-tile img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}
.ref-company {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ref-domain {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
}
.rich-headline {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-top: 0.8rem;
  line-height: 1.2;
}
.oc-company { color: #fafafa; }

/* ---- bespoke OpenCode Go card (one-off theme, not the generic template) ---- */
.oc-card {
  background: linear-gradient(180deg, #101012 0%, #0b0b0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fafafa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
}
.oc-card:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 20px 48px -20px rgba(0, 0, 0, 0.85);
}
.oc-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.oc-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  flex-shrink: 0;
}
.oc-word {
  height: 1.5rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  object-position: left center;
  filter: invert(1);
}
.oc-headline {
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-top: 0.9rem;
  line-height: 1.15;
}
.oc-terms {
  background: #17171a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  margin: 0.8rem 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #d4d4d8;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
}
.oc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.oc-chip {
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}
.oc-cta {
  display: block;
  flex: 1;
  background: #fafafa;
  color: #0b0b0c;
  font-weight: 700;
  text-align: center;
  border-radius: 0.8rem;
  padding: 0.72rem 1rem;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.oc-cta:hover { filter: brightness(0.92); }
.oc-cta:active { transform: scale(0.99); }
.oc-copy {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #d4d4d8;
}
.oc-copy:hover { background: rgba(255, 255, 255, 0.08); }
.oc-fine {
  margin-top: 0.7rem;
  font-size: 0.7rem;
  line-height: 1.45;
  color: #71717a;
}
.ad-slot {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #64748b;
}
.ad-badge {
  background: #e2e8f0;
  color: #475569;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.3rem;
  padding: 0.1rem 0.35rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ---- public directory: category chips + program cards ---- */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.cat-chip:hover { border-color: #a5b4fc; transform: translateY(-1px); }
.cat-chip-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4f46e5;
  background: #eef2ff;
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
}
.cat-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.cat-card-emoji { font-size: 1.7rem; line-height: 1; margin-bottom: 0.5rem; }
.cat-card .prog-pitch { margin: 0.45rem 0 0; }
.cat-card-count {
  margin-top: 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

/* ---- directory offer rows (layout modeled on referralcodes.co) ---- */
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.offer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.5px solid #e5e8ed;
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.offer-row:hover {
  box-shadow: 0 6px 20px -10px rgba(15, 23, 42, 0.25);
  transform: translateY(-1px);
}
.offer-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1.5px solid #e5e8ed;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.offer-logo img { width: 34px; height: 34px; object-fit: contain; }
.offer-body { flex: 1; min-width: 0; display: block; }
.offer-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.offer-name { font-size: 16px; font-weight: 700; }
.offer-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 1px 7px;
}
.offer-tag-user { color: #4338ca; background: #eef2ff; border-color: #c7d2fe; }
.offer-desc {
  display: block;
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 4px;
}
.offer-req { display: block; font-size: 11px; color: #94a3b8; }
.offer-verified {
  display: block;
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 6px;
}
.offer-source {
  display: inline-block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}
a.offer-source { text-decoration: underline dotted; text-underline-offset: 2px; }
a.offer-source:hover { color: #475569; }
.offer-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.offer-amount-wrap { text-align: right; }
.offer-amount {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #16a34a;
  letter-spacing: -0.02em;
  line-height: 1;
}
.offer-amount-label {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}
.offer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #f59e0b;
  color: #1a2e4a;
  font-size: 13px;
  font-weight: 800;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
@media (max-width: 640px) {
  .offer-row { flex-wrap: wrap; }
  .offer-right {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---- personal referral rows (shared /p pages) — same deal-row language ---- */
.personal-row { align-items: flex-start; }
.personal-row .offer-body { padding-top: 0.1rem; }
.personal-row .offer-desc { margin-bottom: 0.3rem; }
.personal-row .offer-right {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  /* a shared floor keeps every row's body the same width so the list lines up */
  min-width: 236px;
}
.personal-row .offer-amount-wrap { margin-right: 0.2rem; }
.row-copy {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1.5px solid #e5e8ed;
  background: #fff;
  color: #475569;
  cursor: pointer;
}
.row-copy:hover { background: #f1f5f9; }
.personal-row-dark {
  background: linear-gradient(180deg, #101012 0%, #0b0b0c 100%);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fafafa;
}
.personal-row-dark .offer-name,
.personal-row-dark .offer-amount { color: #fafafa; }
.personal-row-dark .offer-desc { color: #d4d4d8; }
.personal-row-dark .offer-logo {
  background: #17171a;
  border-color: rgba(255, 255, 255, 0.14);
}
.personal-row-dark .offer-req { color: #71717a; }
@media (max-width: 640px) {
  .personal-row .offer-right {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    margin-top: 0.35rem;
  }
}

/* ---- homepage refresh: indigo→sky background + separated hero panel ---- */
body.page-home {
  background:
    radial-gradient(1100px 460px at 50% -120px, rgba(129, 140, 248, 0.28), transparent 70%),
    radial-gradient(900px 420px at 100% 6%, rgba(56, 189, 248, 0.2), transparent 65%),
    linear-gradient(180deg, #eef2ff 0%, #eaf4ff 34%, #f8fafc 100%);
  background-attachment: fixed;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2.75rem 1.5rem 2.5rem;
  border-radius: 1.5rem;
  margin-bottom: 2.5rem;
  color: #fff;
  background:
    radial-gradient(700px 260px at 18% -40%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(560px 240px at 92% 118%, rgba(14, 165, 233, 0.55), transparent 65%),
    linear-gradient(135deg, #312e81 0%, #4f46e5 52%, #0ea5e9 100%);
  box-shadow: 0 26px 50px -26px rgba(49, 46, 129, 0.6);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #e0e7ff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-top: 1rem;
}
.hero-accent {
  background: linear-gradient(90deg, #bae6fd 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 33rem;
  margin: 1rem auto 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(238, 242, 255, 0.9);
}
.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  background: #fff;
  color: #3730a3;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.6);
}
.hero-cta:active { transform: scale(0.99); }
#create { scroll-margin-top: 1.25rem; }
.page-home .create-card {
  border-color: #c7d2fe;
  box-shadow: 0 20px 44px -30px rgba(49, 46, 129, 0.5);
}
.page-home .section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #475569;
}
.page-home .section-heading::before,
.page-home .section-heading::after {
  content: "";
  height: 2px;
  width: 2.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #a5b4fc);
}
.page-home .section-heading::after {
  background: linear-gradient(90deg, #a5b4fc, transparent);
}

/* ---- homepage example: mock page frame (a picture of a finished page) ---- */
.page-mock {
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 24px 50px -30px rgba(15, 23, 42, 0.45);
}
.page-mock-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  background: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
}
.page-mock-dots {
  display: inline-flex;
  gap: 0.3rem;
}
.page-mock-dots i {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #94a3b8;
}
.page-mock-dots i:nth-child(1) { background: #f87171; }
.page-mock-dots i:nth-child(2) { background: #fbbf24; }
.page-mock-dots i:nth-child(3) { background: #34d399; }
.page-mock-url {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: #475569;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}
.page-mock-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}
.page-mock-body {
  padding: 1rem;
  pointer-events: none;
  user-select: none;
}
.page-mock .offer-cta { opacity: 0.7; filter: saturate(0.5); cursor: default; }
.page-mock .row-copy { opacity: 0.5; }
.cat-chip-empty { opacity: 0.55; }
@media (max-width: 640px) { .hero-panel { padding: 2rem 1.1rem 1.9rem; } }

/* ---- homepage: "Why RefsLinks" benefit grid ---- */
.why-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.why-card {
  flex: 1 1 280px;
  max-width: 340px;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 26px -20px rgba(49, 46, 129, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.why-card:hover {
  transform: translateY(-2px);
  border-color: #c7d2fe;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 16px 32px -20px rgba(49, 46, 129, 0.55);
}
.why-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.why-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  font-size: 1.05rem;
  line-height: 1;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  border: 1px solid #c7d2fe;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.12);
}
.why-title {
  margin: 0;
  font-weight: 750;
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #1e293b;
}
.why-desc {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #475569;
}
.why-close {
  text-align: center;
  margin-top: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #3730a3;
}

/* ---- help / FAQ accordion ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.faq {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-weight: 650;
  font-size: 0.95rem;
  color: #1e293b;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-weight: 700;
  color: #4f46e5;
}
.faq[open] summary::after { content: "\2212"; }
.faq-body {
  padding: 0 1.1rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
}

