/* ============================================================
   Red Bank Green — Mom and Pop Advertising
   Editorial, slate-on-white, card-on-card design system.
   ============================================================ */

:root {
  --ink:        #0f172a;
  --body:       #334155;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --border-2:   #cbd5e1;
  --surface:    #ffffff;
  --surface-2:  #f1f5f9;
  --surface-3:  #f8fafc;
  --accent:     #0f172a;
  --accent-ink: #ffffff;
  --error:      #b91c1c;
  --error-bg:   #fef2f2;
  --rbg-red:    #ea1f27;
  --rbg-green:  #36b24a;
}

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

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface-3);
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================================
   HEADER
   ============================================================ */

.page-header {
  margin-bottom: 28px;
}

.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-wordmark {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-tagline {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.005em;
}

.page-title {
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}

.page-description {
  margin-top: 18px;
  max-width: 680px;
}

.page-subtitle {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 600px;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */

.trust {
  margin: 32px 0;
}

.trust-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.trust-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.trust-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.trust-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
}

.trust-placeholder {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.005em;
  opacity: 0.7;
  font-style: italic;
  padding: 6px 4px;
}

.trust-more {
  font-weight: 500;
  font-style: normal;
  opacity: 0.6;
}

/* ============================================================
   PAGE GRID
   ============================================================ */

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

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

/* ============================================================
   CARDS (generic)
   ============================================================ */

.card {
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* ============================================================
   FORM CARD
   ============================================================ */

.form-card {
  padding: 8px 8px 8px;
}

.section {
  position: relative;
  padding: 28px 28px 8px;
}

@media (max-width: 600px) {
  .section { padding: 24px 20px 4px; }
}

.section-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.section-question {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 10px;
}

.helper {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.55;
}

.helper strong {
  color: var(--ink);
  font-weight: 700;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 28px;
}

@media (max-width: 600px) {
  .section-divider { margin: 16px 20px; }
}

/* ============================================================
   INPUTS
   ============================================================ */

.input,
.textarea {
  width: 100%;
  border: 1px solid transparent;
  outline: none;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.input {
  min-height: 44px;
}

.textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}

.textarea--short {
  min-height: 84px;
}

.input::placeholder,
.textarea::placeholder {
  color: #94a3b8;
}

.input:hover,
.textarea:hover {
  background: #eef2f6;
}

.input:focus,
.textarea:focus {
  background: var(--surface);
  border-color: var(--border-2);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.input.has-error,
.textarea.has-error {
  background: var(--error-bg);
  border-color: #fecaca;
}

.input.has-error:focus,
.textarea.has-error:focus {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.18);
  border-color: #fca5a5;
}

.error-text {
  font-size: 13px;
  color: var(--error);
  margin: 6px 2px 0;
}

/* ============================================================
   TEXTAREA WITH MIC BUTTON
   ============================================================ */

.textarea-wrap {
  position: relative;
}

.textarea-wrap .textarea {
  padding-right: 56px;
}

.mic-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mic-btn:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--surface);
}

.mic-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mic-btn.is-listening {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(15, 23, 42, 0); }
}

.mic-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 2px 0;
}

.mic-hint--live {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   CHIP PROMPTS
   ============================================================ */

.chip-prompts {
  margin-top: 18px;
  padding: 14px 14px;
  background: var(--surface-3);
  border-radius: 16px;
  border: 1px dashed var(--border);
}

.chip-prompts-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.005em;
  margin-bottom: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--body);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
  text-align: left;
  transition: all 0.15s ease;
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface-3);
}

.chip:active {
  transform: translateY(1px);
}

/* Static (non-clickable) example chips */
.chip--static {
  cursor: default;
}

.chip--static:hover {
  border-color: var(--border);
  color: var(--body);
  background: var(--surface);
}

.chip--static:active {
  transform: none;
}

/* ============================================================
   CONTRIBUTION SLIDER
   ============================================================ */

.contribution-block {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 22px 18px;
}

.contribution-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 18px;
}

.contribution-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.contribution-dollar {
  font-size: 28px;
}

.contribution-input {
  font: inherit;
  font-size: 44px;
  font-weight: 800;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  width: 4.5ch;
  padding: 0;
  letter-spacing: -0.025em;
  font-family: inherit;
}

.contribution-input::-webkit-outer-spin-button,
.contribution-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.contribution-input:focus {
  border-bottom: 2px solid var(--ink);
  margin-bottom: -2px;
}

.contribution-per {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.contribution-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 50px;
  background: linear-gradient(to right, var(--ink) 0%, var(--ink) var(--slider-pct, 16%), #d8dee7 var(--slider-pct, 16%), #d8dee7 100%);
  outline: none;
  cursor: pointer;
  margin: 4px 0;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--surface);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.24);
  cursor: grab;
  transition: transform 0.15s ease;
}

.slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--surface);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.24);
  cursor: grab;
}

.slider::-moz-range-track {
  height: 6px;
  border-radius: 50px;
  background: #d8dee7;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================================
   DURATION
   ============================================================ */

.duration-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

@media (max-width: 520px) {
  .duration-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.duration-pill {
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--ink);
  border-radius: 16px;
  padding: 16px 8px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.15s ease;
}

.duration-pill:hover {
  background: var(--surface-3);
  border-color: var(--ink);
}

.duration-pill.is-selected {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.duration-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.duration-unit {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.duration-copy {
  font-size: 14px;
  color: var(--body);
  margin: 8px 0 0;
  line-height: 1.55;
}

.duration-copy strong {
  color: var(--ink);
}

.duration-nudge {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface-3);
  border-left: 3px solid var(--ink);
  border-radius: 8px;
  font-size: 13px;
  color: var(--body);
  line-height: 1.5;
}

.duration-nudge strong {
  color: var(--ink);
}

/* ============================================================
   PROPOSAL SUMMARY
   ============================================================ */

.summary-panel {
  background: var(--surface-3);
  color: var(--body);
  border: 1px solid var(--border);
  border-left: 4px solid var(--rbg-green);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.summary-line {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

.summary-line strong {
  color: var(--ink);
  font-weight: 700;
}

.summary-line--big {
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.summary-amt {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
}

.summary-per {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}

.summary-sep {
  margin: 0 8px;
  color: var(--border-2);
}

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

.reassurance {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 4px 0;
  font-style: italic;
}

/* ============================================================
   CONTACT FIELDS
   ============================================================ */

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }

.label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
}

/* ============================================================
   SUBMIT
   ============================================================ */

.submit-row {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  background: var(--surface-3);
}

@media (max-width: 600px) {
  .submit-row { padding: 20px 20px 24px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: none;
  letter-spacing: -0.005em;
  text-decoration: none; /* so <a class="btn"> links don't underline */
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  padding: 14px 36px;
  min-height: 52px;
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}

.btn-accent:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

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

.btn-link {
  background: none;
  border: none;
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 4px;
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-underline-offset: 4px;
  margin-top: 12px;
}

.btn-link:hover {
  text-decoration-color: var(--ink);
}

/* ============================================================
   WIZARD (step-by-step form)
   ============================================================ */

.form-card.wizard {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.wizard-progress {
  padding: 22px 28px 0;
}

.wizard-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wizard-step-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.wizard-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.wizard-track {
  height: 6px;
  background: #e6eaf0;
  border-radius: 50px;
  overflow: hidden;
}

.wizard-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 50px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.wizard-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin: 9px 0 0;
  letter-spacing: 0.01em;
}

.wizard-time svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.wizard-body {
  padding: 12px 28px 20px;
  min-height: 320px;
}

.wizard-step {
  padding: 12px 0 4px;
}

@media (max-width: 600px) {
  .wizard-progress { padding: 18px 20px 0; }
  .wizard-body { padding: 10px 20px 16px; min-height: 300px; }
}

/* step enter transition */
.wz-enter {
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.wz-enter-start {
  opacity: 0;
  transform: translateY(10px);
}
.wz-enter-end {
  opacity: 1;
  transform: translateY(0);
}

/* nav */
.wizard-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid var(--border);
  background: var(--surface-3);
}

.wizard-nav-spacer {
  flex: 1;
}

.wizard-nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-2);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--surface-3);
  border-color: #94a3b8;
  transform: none;
  box-shadow: none;
}

.btn-back {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 6px;
  border-radius: 8px;
  transition: color 0.15s ease;
}

.btn-back:hover {
  color: var(--ink);
}

.wizard-submit-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 0;
  padding: 0 28px 18px;
}

.wizard-submit-error {
  text-align: center;
  padding: 0 28px;
  margin: 10px 0 0;
}

@media (max-width: 600px) {
  .wizard-nav { padding: 16px 20px; }
}

/* ============================================================
   REVISE-AD MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 8px;
}

.modal-help {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.modal-fade {
  transition: opacity 0.2s ease;
}
.modal-fade-start {
  opacity: 0;
}
.modal-fade-end {
  opacity: 1;
}

/* ============================================================
   AD PREVIEW (ChatGPT-crafted native ad)
   ============================================================ */

.ad-biz-field {
  margin-bottom: 18px;
  max-width: 360px;
}

.ad-craft-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-craft {
  min-height: 46px;
  padding: 12px 24px;
}

.ad-craft-note {
  font-size: 13px;
  color: var(--muted);
}

.ad-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 0;
}

.ad-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--border-2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: ad-spin 0.7s linear infinite;
}

@keyframes ad-spin {
  to { transform: rotate(360deg); }
}

.ad-result {
  margin-top: 4px;
}

.ad-context-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

/* Faux article the ad sits inside, to convey in-story placement */
.story-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.01);
}

.story-greek {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0;
  user-select: none;
}

.story-greek + .native-ad { margin-top: 16px; }
.native-ad + .story-greek { margin-top: 16px; }

.native-ad {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--surface-3);
  padding: 16px 18px;
}

.native-ad-tag {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.005em;
  margin-bottom: 8px;
}

.native-ad-headline {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 6px;
}

.native-ad-body {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
  margin: 0;
  white-space: pre-line; /* keep the owner's line breaks */
}

.ad-hl {
  background: rgba(54, 178, 74, 0.16);
  color: var(--ink);
  font-weight: 600;
  border-radius: 3px;
  padding: 0 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---- ad mode toggle ---- */
.ad-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

@media (max-width: 520px) {
  .ad-mode-row { grid-template-columns: 1fr; }
}

.ad-mode {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.15s ease;
}

.ad-mode:hover {
  border-color: var(--ink);
  background: var(--surface-3);
}

.ad-mode.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 6px 16px rgba(15, 23, 42, 0.1);
  background: var(--surface);
}

.ad-mode-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.ad-mode-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---- image upload ---- */
.upload-box {
  position: relative;
}

.upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 28px 20px;
  border: 2px dashed var(--border-2);
  border-radius: 16px;
  background: var(--surface-3);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.upload-box:hover .upload-label {
  border-color: var(--ink);
  color: var(--ink);
  background: #eef2f6;
}

.upload-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.upload-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.native-ad--image {
  padding: 12px;
}

.native-ad-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 4px;
}

/* ---- click-through field ---- */
.click-field {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.native-ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.ad-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ad-regenerate {
  margin-top: 0;
}

.ad-regenerate:disabled {
  opacity: 0.5;
  cursor: default;
}

.ad-demo-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.submit-error {
  text-align: center;
  margin-top: 4px;
}

.thank-emailed {
  font-size: 14px;
  color: var(--body);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
}

@media (max-width: 960px) {
  .sidebar {
    position: static;
  }
}

/* ============================================================
   PROFILE CARD (Kenny)
   ============================================================ */

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.profile-card--mobile { display: none; margin-bottom: 20px; }
.profile-card--desktop { display: block; }

@media (max-width: 960px) {
  .profile-card--mobile { display: block; }
  .profile-card--desktop { display: none; }
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--surface);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.profile-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.profile-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

.profile-body {
  font-size: 13px;
  color: var(--body);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   ABOUT CARD
   ============================================================ */

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.about-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.about-body {
  font-size: 13px;
  color: var(--body);
  line-height: 1.6;
  margin: 0 0 10px;
}

.about-body strong {
  color: var(--ink);
  font-weight: 700;
}

.about-stats {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.about-stat-label {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* ============================================================
   THANK YOU
   ============================================================ */

.thank-you {
  padding: 40px 32px 36px;
  text-align: center;
}

@media (max-width: 600px) {
  .thank-you { padding: 32px 24px; }
}

.thank-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  margin-bottom: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
}

.thank-title {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.thank-body {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
  margin: 0 auto 14px;
  max-width: 460px;
}

.thank-signoff {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  font-style: italic;
  margin: 0;
}

.thank-ref {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 12px 0 0;
}

.thank-ref span {
  font-weight: 700;
  color: var(--body);
  font-variant-numeric: tabular-nums;
}

.thank-summary {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--surface-3);
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.thank-summary-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.thank-summary-line {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}

.thank-summary-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  margin: 40px 12px 0;
  padding: 16px 0 0;
  text-align: center;
}

.powered-by {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0;
}

.powered-by a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.powered-by a:hover {
  text-decoration: underline;
}

/* ============================================================
   SURVEY ("A few questions" questionnaire) — survey.html
   Reuses the proposal card/field/textarea/button system; adds
   the single-page layout, numbered questions, and checkboxes.
   ============================================================ */

.survey-body {
  padding: 4px 32px 32px;
}

.survey-intro {
  border-radius: 20px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 22px 24px;
  margin: 18px 0 10px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.6;
}

.survey-intro p {
  margin: 0 0 11px;
}

.survey-intro p:last-child {
  margin-bottom: 0;
}

.survey-steps {
  margin: 0 0 13px;
  padding-left: 20px;
}

.survey-steps li {
  margin: 3px 0;
}

/* Each question is one clean block: the number hangs in a left gutter while
   the prompt, helper, and answer all align in a single column. No divider
   rules — even whitespace does the separating. */
.survey-q {
  position: relative;
  padding-left: 44px;
  margin-top: 40px;
}

.survey-q:first-of-type {
  margin-top: 26px;
}

/* Question prompt — editorial sentence case, NOT the tiny uppercase
   field-label style it inherits from .label. */
.survey-label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 14px;
}

.survey-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Helper sits between prompt and answer, snug under the prompt. */
.survey-q .helper {
  margin: -6px 0 14px;
  padding-left: 0;
  max-width: 62ch;
}

.survey-other {
  margin-top: 16px;
}

/* ----- checkbox group ----- */
.check-group {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.check-item:hover {
  background: var(--surface-3);
  border-color: var(--border-2);
}

.check-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-2);
  background: #fff;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.check-item input:checked + .check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.check-item input:checked + .check-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-item input:focus-visible + .check-box {
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.18);
}

.check-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* ----- thank-you: step-two hand-off ----- */
.thank-next {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  text-align: left;
}

.thank-next-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}

.thank-next-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
  margin: 0 0 14px;
}

@media (max-width: 600px) {
  .survey-body { padding: 2px 18px 22px; }
  .survey-q { padding-left: 38px; margin-top: 32px; }
  .survey-q:first-of-type { margin-top: 22px; }
  .survey-label { font-size: 17px; }
  .survey-num { width: 26px; height: 26px; font-size: 12px; }
  .survey-intro { padding: 18px 18px; }
}
