/* Gigxie — growth & business pages
   affiliates.html · invite.html · pro.html · agencies.html · projects.html · contact-sales.html

   Everything prefixed `g-` is a primitive shared by those six pages and lives only in
   this file, so it cannot collide with any other page's stylesheet. Anything that is
   true for exactly one page is scoped under its body class:
   .p-affiliates · .p-invite · .p-pro · .p-agencies · .p-projects · .p-sales */

/* ============================================================
   1. Hero
   ============================================================ */
.g-hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-grad);
  padding-block: 104px 112px;
  color: #fff;
}
.g-hero::before,
.g-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.g-hero::before {
  top: -240px; right: -180px;
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(191, 247, 71, .15), transparent 66%);
}
.g-hero::after {
  bottom: -280px; left: -200px;
  width: 660px; height: 660px;
  background: radial-gradient(circle, rgba(108, 59, 255, .38), transparent 66%);
}
.g-hero > .container { position: relative; z-index: 1; }
.g-hero h1 { color: #fff; margin: 20px 0 18px; }
.g-hero h1 em { font-style: normal; color: var(--accent); }
.g-hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
  max-width: 58ch;
}
.g-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.g-hero-fine { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.g-hero-fine a { color: rgba(255, 255, 255, .8); text-decoration: underline; }
.g-hero-fine a:hover { color: var(--accent); }
/* the global violet ring disappears on the dark gradient */
.g-hero .btn:focus-visible,
.g-cta .btn:focus-visible { outline-color: var(--accent); }
/* .g-cta is the same dark gradient as .g-hero, so its ghost buttons need the same
   inversion — without it --ink on --hero-grad measures 1.01:1 and the button is
   invisible on contact-sales, invite, pro and projects. */
.g-hero .btn-ghost,
.g-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.g-hero .btn-ghost:not(:disabled):hover,
.g-cta .btn-ghost:not(:disabled):hover { color: var(--ink); background: #fff; border-color: #fff; }

/* centred variant */
.g-hero--center { text-align: center; }
.g-hero--center > .container { max-width: 880px; }
.g-hero--center .g-hero-sub { margin-inline: auto; }
.g-hero--center .g-hero-actions { justify-content: center; }

/* split variant: copy left, visual right */
.g-hero--split > .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}

.g-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
}
.g-eyebrow--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.g-eyebrow svg { width: 14px; height: 14px; }

/* stat row on the dark hero */
.g-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.g-hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
}
.g-hero-stat span { font-size: 14px; color: rgba(255, 255, 255, .66); }

@media (max-width: 980px) {
  .g-hero--split > .container { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 720px) {
  .g-hero { padding-block: 64px 72px; }
  .g-hero-sub { font-size: 17px; }
  .g-hero-stats { gap: 24px 32px; margin-top: 32px; }
  .g-hero-stat strong { font-size: 26px; }
}

/* ============================================================
   2. Cards, icons, steps
   ============================================================ */
.g-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.g-card h3 { font-size: 20px; margin-bottom: 8px; }
.g-card p { font-size: 15px; line-height: 1.6; color: var(--body); }
.g-card--lift { transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.g-card--lift:hover,
.g-card--lift:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.g-card--dark { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .74); }
.g-card--dark h3 { color: #fff; }
.g-card--dark p { color: rgba(255, 255, 255, .72); }

.g-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-wash);
  color: var(--brand);
  margin-bottom: 16px;
  flex: none;
  transition: background var(--ease), color var(--ease);
}
.g-icon svg { width: 24px; height: 24px; }
.g-card--lift:hover .g-icon { background: var(--brand); color: #fff; }
.g-icon--accent { background: #F1FCD5; color: #4B6B00; }
.g-icon--sm { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 0; }
.g-icon--sm svg { width: 19px; height: 19px; }

/* numbered step card */
.g-step {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.g-step h3 { font-size: 19px; margin-bottom: 8px; position: relative; }
.g-step p { font-size: 15px; color: var(--body); position: relative; }
.g-num {
  position: absolute;
  top: 0; right: 14px;
  font-family: var(--font-head);
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-ghost);
  user-select: none;
}
.g-step .g-icon { position: relative; }

/* checklist */
.g-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.g-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}
.g-list li > svg {
  width: 18px; height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--success-ink);
}
.g-list--muted li > svg { color: var(--muted); }

/* yes/no marks (tables + comparisons) */
.g-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  flex: none;
}
.g-mark svg { width: 13px; height: 13px; }
.g-mark--yes { background: #E4F7ED; color: var(--success-ink); }
.g-mark--no  { background: #F1F1F6; color: #8A8AA0; }

/* ============================================================
   3. Tables
   ============================================================ */
.g-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  box-shadow: var(--shadow-card);
}
.g-table-wrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.g-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}
.g-table th, .g-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.g-table thead th {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  background: var(--bg-soft);
  white-space: nowrap;
}
.g-table tbody th {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.g-table tbody tr:last-child th,
.g-table tbody tr:last-child td { border-bottom: 0; }
.g-table tbody tr { transition: background var(--ease); }
.g-table tbody tr:hover { background: var(--bg-soft); }
.g-table td { color: var(--body); }
.g-table .g-td-strong { font-weight: 700; color: var(--ink); }
.g-table .g-td-accent { font-weight: 700; color: var(--brand); }
.g-table .g-col-hi { background: var(--brand-tint); }
.g-table thead .g-col-hi { background: #E8DFFF; color: var(--brand-dark); }
.g-scroll-hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (min-width: 861px) { .g-scroll-hint { display: none; } }

/* ============================================================
   4. Forms
   ============================================================ */
.g-form { display: grid; gap: 0; }
.g-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .g-form-row { grid-template-columns: 1fr; } }
.g-form .field label .g-req { color: var(--danger-ink); margin-left: 2px; }
.g-form .field .g-hint { font-size: 13px; color: var(--muted); }
.g-form .field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.g-err {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--danger-ink);
  margin-top: 2px;
}
.g-err[hidden] { display: none; }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }
.g-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 8px;
}
.g-check input {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--brand);
  cursor: pointer;
}
.g-check input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.g-check a { text-decoration: underline; }

/* success panel shared by every demo form on these pages */
.g-success {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  box-shadow: var(--shadow-card);
}
.g-success[hidden] { display: none; }
.g-success-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #E4F7ED;
  color: var(--success-ink);
  margin-bottom: 18px;
}
.g-success-tick svg { width: 28px; height: 28px; }
.g-success h3 { font-size: 24px; margin-bottom: 10px; }
.g-success p { color: var(--body); max-width: 48ch; margin: 0 auto 8px; }
.g-ref {
  display: inline-block;
  margin: 14px 0 6px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.g-note { font-size: 13px; line-height: 1.6; color: var(--muted); }
.g-note a { text-decoration: underline; }

/* ============================================================
   5. FAQ · quotes · logos · CTA
   ============================================================ */
.g-faq-wrap { max-width: 860px; margin-inline: auto; }

.g-quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.g-quote blockquote {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}
.g-quote-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.g-quote-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.g-quote-role { font-size: 13px; color: var(--muted); }

.g-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 44px;
}
.g-wordmark {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #9A9AB2;
  white-space: nowrap;
  transition: color var(--ease);
}
.g-wordmark:hover { color: var(--ink); }
.g-wordmark span { color: var(--brand); }
.g-logos-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.g-cta {
  position: relative;
  overflow: hidden;
  background: var(--hero-grad);
  padding-block: 88px;
  text-align: center;
  color: #fff;
}
.g-cta::after {
  content: "";
  position: absolute;
  bottom: -300px; left: 50%;
  transform: translateX(-50%);
  width: 760px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 59, 255, .4), transparent 66%);
  pointer-events: none;
}
.g-cta > .container { position: relative; z-index: 1; max-width: 760px; }
.g-cta h2 { color: #fff; margin-bottom: 14px; }
.g-cta h2 em { font-style: normal; color: var(--accent); }
.g-cta p { font-size: 18px; color: rgba(255, 255, 255, .76); margin-bottom: 32px; }
.g-cta .g-hero-actions { justify-content: center; margin-top: 0; }
@media (max-width: 720px) { .g-cta { padding-block: 56px; } }

/* copy-to-clipboard button used on affiliates + invite */
.g-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 16px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  flex: none;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.g-copy:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.g-copy:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.g-copy svg { width: 15px; height: 15px; }
.g-copy.is-done { border-color: var(--success-ink); color: var(--success-ink); background: #E4F7ED; }

/* generic two-column "feature row" (projects + agencies) */
.g-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.g-row + .g-row { margin-top: 88px; }
.g-row--flip .g-row-copy { order: 2; }
.g-row-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.g-row-copy h3 { font-size: 28px; margin-bottom: 12px; }
.g-row-copy > p { font-size: 17px; color: var(--body); margin-bottom: 20px; }
@media (max-width: 900px) {
  .g-row { grid-template-columns: 1fr; gap: 32px; }
  .g-row + .g-row { margin-top: 56px; }
  .g-row--flip .g-row-copy { order: 0; }
  .g-row-copy h3 { font-size: 24px; }
}

/* framed UI mock surface (projects) */
.g-mock {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.g-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.g-mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #D8D8E4; flex: none; }
.g-mock-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.g-mock-body { padding: 18px; }

/* ============================================================
   6. Affiliates
   ============================================================ */
.p-affiliates .aff-calc-section { margin-top: -60px; position: relative; z-index: 2; padding-bottom: 96px; }
.p-affiliates .aff-calc {
  max-width: 960px;
  margin-inline: auto;
  padding: 44px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}
.p-affiliates .aff-calc h2 { font-size: 32px; margin-bottom: 8px; }
.p-affiliates .aff-calc > p { color: var(--body); max-width: 62ch; margin-bottom: 28px; }
.p-affiliates .aff-sliders { display: grid; gap: 26px; }
.p-affiliates .aff-slider-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.p-affiliates .aff-slider-label output {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.g-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--r-pill);
  background: linear-gradient(to right, var(--brand) 0%, var(--brand) 20%, var(--line) 20%, var(--line) 100%);
  outline: none;
  cursor: pointer;
}
.g-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(14, 14, 26, .25);
  transition: transform var(--ease);
}
.g-range::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(14, 14, 26, .25);
  transition: transform var(--ease);
}
.g-range:hover::-webkit-slider-thumb { transform: scale(1.12); }
.g-range:hover::-moz-range-thumb { transform: scale(1.12); }
.g-range:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.g-range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.p-affiliates .aff-out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.p-affiliates .aff-out-card {
  border-radius: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.p-affiliates .aff-out-card--hero { background: var(--ink); border-color: var(--ink); }
.p-affiliates .aff-out-label { font-size: 14px; font-weight: 600; color: var(--body); }
.p-affiliates .aff-out-card--hero .aff-out-label { color: var(--accent); }
.p-affiliates .aff-out-num {
  display: block;
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 6px;
}
.p-affiliates .aff-out-card--hero .aff-out-num { color: var(--accent); }
.p-affiliates .aff-out-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.p-affiliates .aff-out-card--hero .aff-out-note { color: rgba(255, 255, 255, .62); }
.p-affiliates .aff-tier-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--body);
}
.p-affiliates .aff-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 720px) {
  .p-affiliates .aff-calc-section { margin-top: -36px; padding-bottom: 56px; }
  .p-affiliates .aff-calc { padding: 26px 20px; }
  .p-affiliates .aff-out { grid-template-columns: 1fr; }
  .p-affiliates .aff-out-num { font-size: 34px; }
}

/* creative assets */
.p-affiliates .aff-asset {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.p-affiliates .aff-preview {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 14px;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.p-affiliates .aff-banner {
  width: 100%;
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--hero-grad);
  color: #fff;
}
.p-affiliates .aff-banner b {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.p-affiliates .aff-banner b em { font-style: normal; color: var(--accent); }
.p-affiliates .aff-banner span { font-size: 12px; color: rgba(255, 255, 255, .7); }
.p-affiliates .aff-snippet {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--body);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 120px;
  overflow: auto;
}
.p-affiliates .aff-asset-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }

/* ============================================================
   7. Invite
   ============================================================ */
.p-invite .inv-panel-section { margin-top: -60px; position: relative; z-index: 2; padding-bottom: 96px; }
.p-invite .inv-panel {
  max-width: 880px;
  margin-inline: auto;
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}
.p-invite .inv-panel h2 { font-size: 28px; margin-bottom: 8px; }
.p-invite .inv-panel > p { color: var(--body); margin-bottom: 24px; }
.p-invite .inv-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--bg-soft);
}
.p-invite .inv-link code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-invite .inv-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.p-invite .inv-share-label { font-size: 14px; font-weight: 600; color: var(--ink); margin-right: 4px; }
.p-invite .inv-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 14px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  transition: border-color var(--ease), color var(--ease), background var(--ease), transform var(--ease);
}
.p-invite .inv-share:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-1px); }
.p-invite .inv-share:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.p-invite .inv-share svg { width: 16px; height: 16px; fill: currentColor; }

/* rewards ladder */
.p-invite .inv-ladder { display: grid; gap: 16px; }
.p-invite .inv-rung {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.p-invite .inv-rung:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: transparent; }
.p-invite .inv-rung.is-reached { border-color: var(--brand); background: var(--brand-tint); }
.p-invite .inv-rung-count {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.p-invite .inv-rung-count span { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.p-invite .inv-rung h3 { font-size: 16px; margin-bottom: 4px; }
.p-invite .inv-rung p { font-size: 14px; color: var(--body); }
.p-invite .inv-rung-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
@media (max-width: 760px) {
  .p-invite .inv-rung { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
}
.p-invite .inv-progress-wrap {
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}
.p-invite .inv-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.p-invite .inv-progress-top strong { font-family: var(--font-head); font-size: 20px; color: var(--ink); }
.p-invite .inv-progress-bar {
  height: 12px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}
/* scaleX, not width: the fill is animated on load and on every ladder change, and a
   width tween relayouts the bar on each frame. transform-origin pins it to the left. */
.p-invite .inv-progress-fill {
  width: 100%;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--brand), #9B7BFF);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 600ms ease;
}
.p-invite .inv-progress-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* email chips */
.p-invite .inv-chipbox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--bg);
  transition: border-color var(--ease), box-shadow var(--ease);
  cursor: text;
}
.p-invite .inv-chipbox:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.p-invite .inv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
}
.p-invite .inv-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-invite .inv-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  color: var(--brand-dark);
  flex: none;
  transition: background var(--ease);
}
.p-invite .inv-chip button:hover { background: #D9CBFF; }
.p-invite .inv-chip button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.p-invite .inv-chip svg { width: 11px; height: 11px; }
.p-invite .inv-chipbox input {
  flex: 1;
  min-width: 180px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--ink);
  padding: 0 4px;
}
.p-invite .inv-chipbox input:focus { outline: none; }
.p-invite .inv-email-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ============================================================
   8. Pro
   ============================================================ */
.p-pro .pro-toggle-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 44px; }
.p-pro .pro-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.p-pro .pro-toggle button {
  padding: 9px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  transition: background var(--ease), color var(--ease);
}
.p-pro .pro-toggle button:hover { color: var(--ink); }
.p-pro .pro-toggle button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.p-pro .pro-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.p-pro .pro-save {
  font-size: 13px;
  font-weight: 700;
  color: var(--success-ink);
}
.p-pro .pro-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
@media (max-width: 940px) { .p-pro .pro-plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.p-pro .pro-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.p-pro .pro-plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.p-pro .pro-plan--hi {
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: 0 16px 40px rgba(108, 59, 255, .16);
}
.p-pro .pro-flag {
  position: absolute;
  top: -13px; left: 28px;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.p-pro .pro-plan h3 { font-size: 21px; }
.p-pro .pro-plan-for { font-size: 14px; color: var(--muted); margin-top: -10px; }
.p-pro .pro-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-head);
  color: var(--ink);
}
.p-pro .pro-price-num { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.p-pro .pro-price-per { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); }
.p-pro .pro-price-note { font-size: 13px; color: var(--muted); margin-top: -8px; min-height: 20px; }
.p-pro .pro-plan .g-list { margin-top: 4px; }
.p-pro .pro-plan .btn { margin-top: auto; }

.p-pro .pro-model {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .p-pro .pro-model { grid-template-columns: 1fr; gap: 32px; } }
.p-pro .pro-flowbox {
  padding: 28px;
  border-radius: 18px;
  background: var(--ink);
  color: rgba(255, 255, 255, .8);
}
.p-pro .pro-flowbox h3 { color: #fff; font-size: 18px; margin-bottom: 18px; }
.p-pro .pro-flow-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.p-pro .pro-flow-item:last-child { border-bottom: 0; padding-bottom: 0; }
.p-pro .pro-flow-item b { display: block; color: #fff; font-family: var(--font-head); font-size: 15px; }
.p-pro .pro-flow-item p { font-size: 14px; color: rgba(255, 255, 255, .68); }
.p-pro .pro-flow-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(191, 247, 71, .16);
  color: var(--accent);
  flex: none;
}
.p-pro .pro-flow-mark svg { width: 17px; height: 17px; }
.p-pro .pro-benefit-visual {
  height: 132px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  margin-bottom: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-pro .pro-benefit-visual svg { width: 100%; height: 100%; }

/* ============================================================
   9. Agencies
   ============================================================ */
.p-agencies .ag-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .p-agencies .ag-flow { grid-template-columns: 1fr; } }
.p-agencies .ag-flow-visual {
  height: 148px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  margin-bottom: 20px;
  overflow: hidden;
}
.p-agencies .ag-flow-visual svg { width: 100%; height: 100%; }
.p-agencies .ag-case {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 44px;
  align-items: center;
  padding: 44px;
  border-radius: 20px;
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
}
@media (max-width: 900px) { .p-agencies .ag-case { grid-template-columns: 1fr; gap: 32px; padding: 28px; } }
.p-agencies .ag-case h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.p-agencies .ag-case blockquote { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .82); margin-bottom: 20px; }
.p-agencies .ag-case-who { display: flex; align-items: center; gap: 12px; }
.p-agencies .ag-case-who .g-quote-name { color: #fff; }
.p-agencies .ag-case-who .g-quote-role { color: rgba(255, 255, 255, .58); }
.p-agencies .ag-case-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.p-agencies .ag-case-num {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.p-agencies .ag-case-num strong {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
}
.p-agencies .ag-case-num span { font-size: 13px; color: rgba(255, 255, 255, .66); }
.p-agencies .ag-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .p-agencies .ag-lead { grid-template-columns: 1fr; gap: 32px; } }
.p-agencies .ag-form-card {
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-card);
}
@media (max-width: 520px) { .p-agencies .ag-form-card { padding: 22px 18px; } }

/* ============================================================
   10. Projects
   ============================================================ */
.p-projects .pj-diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.p-projects .pj-diagram svg { min-width: 780px; height: auto; }
.p-projects .pj-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 800px) { .p-projects .pj-board { grid-template-columns: 1fr; } }
.p-projects .pj-col {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 16px;
  min-height: 220px;
}
.p-projects .pj-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.p-projects .pj-col-head h3 { font-family: var(--font-body); font-size: 14px; font-weight: 700; }
.p-projects .pj-col-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px 9px;
}
.p-projects .pj-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.p-projects .pj-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  cursor: grab;
}
.p-projects .pj-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--brand); }
.p-projects .pj-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.p-projects .pj-card:active { cursor: grabbing; transform: scale(.99); }
.p-projects .pj-card-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.p-projects .pj-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.p-projects .pj-tag {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  background: var(--brand-tint);
  color: var(--brand-dark);
}
.p-projects .pj-tag--design { background: #FFE9F2; color: #A3145C; }
.p-projects .pj-tag--dev { background: #E1F0FF; color: #0B5A9E; }
.p-projects .pj-tag--copy { background: #FFF1DC; color: #8A5200; }
.p-projects .pj-board-help {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.p-projects .pj-board-help svg { width: 17px; height: 17px; flex: none; }
.p-projects .pj-live {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  min-height: 22px;
  margin-top: 14px;
}

/* mock internals reused by the feature rows */
.p-projects .pj-mockrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--body);
}
.p-projects .pj-mockrow:last-child { margin-bottom: 0; }
.p-projects .pj-mockrow b { color: var(--ink); font-weight: 600; }
.p-projects .pj-mockrow .pj-when { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.p-projects .pj-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--brand); }
.p-projects .pj-dot--done { background: var(--success); }
.p-projects .pj-dot--wait { background: var(--star); }

/* ============================================================
   11. Contact sales
   ============================================================ */
.p-sales .cs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 940px) { .p-sales .cs-layout { grid-template-columns: 1fr; gap: 36px; } }
.p-sales .cs-form-card {
  padding: 34px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-card);
}
@media (max-width: 520px) { .p-sales .cs-form-card { padding: 22px 18px; } }
.p-sales .cs-side { display: grid; gap: 24px; }
.p-sales .cs-timeline { list-style: none; padding: 0; display: grid; gap: 4px; }
.p-sales .cs-timeline li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 22px;
  position: relative;
}
.p-sales .cs-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px; top: 34px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.p-sales .cs-tl-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  flex: none;
  position: relative;
  z-index: 1;
}
.p-sales .cs-tl-body h3 { font-size: 16px; margin-bottom: 4px; }
.p-sales .cs-tl-body p { font-size: 14px; color: var(--body); }
.p-sales .cs-sla {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-card);
  background: var(--accent-wash);
  border: 1px solid #E4F2C0;
}
.p-sales .cs-sla strong { font-family: var(--font-head); font-size: 20px; color: var(--ink); display: block; }
.p-sales .cs-sla span { font-size: 13px; color: var(--body); }
.p-sales .cs-sla .g-icon { margin-bottom: 0; }
.p-sales .cs-miniquote {
  position: relative;
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.p-sales .cs-miniquote::before {
  content: "\201C";
  position: absolute;
  top: 2px; left: 14px;
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-ghost);
  pointer-events: none;
}
.p-sales .cs-miniquote p { position: relative; font-size: 15px; color: var(--ink); line-height: 1.55; }
.p-sales .cs-miniquote cite { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ============================================================
   12. Shared small print / misc
   ============================================================ */
.g-sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.g-sub-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.g-sub-nav a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.g-sub-nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.g-terms { display: grid; gap: 8px; padding: 0; list-style: none; }
.g-terms li { font-size: 13px; line-height: 1.6; color: var(--muted); }
.g-terms li strong { color: var(--body); }
