/*! RelayCollab Free Tools — styles. Everything is scoped under .rct so it cannot affect the theme. */
.rct, .rct * { box-sizing: border-box; }
.rct {
  --rct-ink: #14111C; --rct-violet: #7C3AED; --rct-magenta: #DB2777; --rct-orange: #F97316; --rct-gold: #FFC94D;
  --rct-surface: #F4F0FA; --rct-line: #E7E2F3; --rct-muted: #6B6878; --rct-paper: #FBF9F6;
  --rct-good: #2F8A47; --rct-good-bg: #EAF7EE; --rct-warn: #B45309; --rct-warn-bg: #FEF3E2; --rct-bad: #C0392B; --rct-bad-bg: #FDECEA;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--rct-ink); line-height: 1.6; max-width: 1120px; margin: 0 auto; padding: 8px 0 40px;
  -webkit-font-smoothing: antialiased;
}
/* :where() keeps this reset at zero extra specificity, so the component rules below can set their own margins */
.rct :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
.rct a { color: var(--rct-violet); }
.rct [hidden] { display: none !important; }

/* ---------- hero ---------- */
.rct-hero { background: linear-gradient(135deg, #1D1730 0%, #5A1B4E 55%, #B24628 100%); color: #fff; border-radius: 24px; padding: 44px 40px; margin-bottom: 28px; }
.rct-eyebrow-pill { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 30px; padding: 6px 15px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.rct-title { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.15; font-weight: 700; margin: 0 0 14px; color: #fff; }
.rct-lede { font-size: 17px; max-width: 62ch; color: rgba(255,255,255,.86); }
.rct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.rct-chips li { background: rgba(255,255,255,.12); border-radius: 30px; padding: 5px 13px; font-size: 13px; font-weight: 500; }

/* ---------- tool layout ---------- */
.rct-tool { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 22px; align-items: start; margin-bottom: 44px; }
.rct-card { background: #fff; border: 1px solid var(--rct-line); border-radius: 20px; padding: 28px; box-shadow: 0 18px 40px -28px rgba(60,20,80,.28); }
.rct-result { position: sticky; top: 20px; min-height: 320px; }
.rct-card-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.rct-card-sub { font-size: 14px; color: var(--rct-muted); margin-bottom: 18px; }

/* ---------- form ---------- */
.rct-field { margin-bottom: 16px; }
.rct-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.rct-opt { font-weight: 400; color: var(--rct-muted); }
.rct-field input, .rct-field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--rct-ink); background: #fff;
  border: 1.5px solid var(--rct-line); border-radius: 10px; padding: 11px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.rct-field input:focus, .rct-field select:focus { outline: none; border-color: var(--rct-violet); box-shadow: 0 0 0 3px rgba(124,58,237,.16); }
.rct-field input.is-invalid { border-color: var(--rct-bad); background: var(--rct-bad-bg); }
.rct-help { font-size: 12.5px; color: var(--rct-muted); margin-top: 5px; }
.rct-err { font-size: 12.5px; color: var(--rct-bad); margin-top: 5px; }
.rct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rct-affix { position: relative; }
.rct-affix input { padding-right: 34px; -moz-appearance: textfield; }
.rct-affix input::-webkit-outer-spin-button, .rct-affix input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rct-affix span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--rct-muted); font-size: 15px; pointer-events: none; }
.rct-divider { border: 0; border-top: 1px dashed var(--rct-line); margin: 20px 0 18px; }
.rct-group-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--rct-violet); margin: 0 0 12px; }
.rct-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- buttons ---------- */
.rct-btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 10px; padding: 11px 18px; border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.rct-btn:hover { transform: translateY(-1px); }
.rct-btn-primary { background: var(--rct-ink); color: #fff !important; }
.rct-btn-primary:hover { box-shadow: 0 12px 24px -12px rgba(20,17,28,.6); }
.rct-btn-ghost { background: #fff; color: var(--rct-ink) !important; border-color: var(--rct-line); }
.rct-btn-ghost:hover { border-color: var(--rct-violet); color: var(--rct-violet) !important; }
.rct-btn-white { background: #fff; color: var(--rct-ink) !important; }
.rct-btn-white:hover { background: var(--rct-gold); }
.rct-btn-outline { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
.rct-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.rct-link-btn { background: none; border: 0; color: var(--rct-violet); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 11px 6px; text-decoration: underline; }

/* ---------- results ---------- */
.rct-eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rct-muted); margin-bottom: 4px; }
.rct-big { font-size: clamp(44px, 7vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; background: linear-gradient(100deg, var(--rct-violet), var(--rct-magenta)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; }
.rct-verdict { display: inline-block; font-size: 13.5px; font-weight: 700; border-radius: 30px; padding: 5px 13px; margin-bottom: 10px; }
.rct-verdict.is-typical { background: var(--rct-good-bg); color: var(--rct-good); }
.rct-verdict.is-above { background: #E8F0FE; color: #1D4ED8; }
.rct-verdict.is-below { background: var(--rct-warn-bg); color: var(--rct-warn); }
.rct-sub { font-size: 14.5px; color: var(--rct-muted); margin-bottom: 18px; }
.rct-sub-top { margin: 0 0 14px; }
.rct-gauge { margin: 4px 0 20px; }
.rct-gauge-track { position: relative; height: 12px; background: var(--rct-surface); border-radius: 20px; }
.rct-gauge-typical { position: absolute; top: 0; bottom: 0; background: rgba(124,58,237,.22); border-radius: 20px; }
.rct-gauge-marker { position: absolute; top: -5px; width: 6px; height: 22px; margin-left: -3px; border-radius: 4px; background: var(--rct-ink); }
.rct-gauge-marker.is-typical { background: var(--rct-good); }
.rct-gauge-marker.is-above { background: #1D4ED8; }
.rct-gauge-marker.is-below { background: var(--rct-warn); }
.rct-gauge-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--rct-muted); margin-top: 8px; }
.rct-gauge-mid { font-weight: 600; color: var(--rct-violet); }
.rct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.rct-stat { background: var(--rct-surface); border-radius: 12px; padding: 12px 14px; }
.rct-stat dt { font-size: 12.5px; color: var(--rct-muted); }
.rct-stat dd { font-size: 20px; font-weight: 700; }
.rct-advice { font-size: 15px; margin-bottom: 18px; }
.rct-note { font-size: 13.5px; color: var(--rct-warn); background: var(--rct-warn-bg); border-radius: 10px; padding: 10px 13px; margin-bottom: 12px; }
.rct-fine { font-size: 12.5px; color: var(--rct-muted); margin: 10px 0 16px; }
.rct-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rct-h3 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.rct-empty { text-align: center; padding: 34px 10px; }
.rct-empty-icon { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--rct-violet), var(--rct-magenta)); }
.rct-empty-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.rct-empty-text { font-size: 14.5px; color: var(--rct-muted); max-width: 34ch; margin: 0 auto; }

/* rate tiles */
.rct-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.rct-tile { border: 1.5px solid var(--rct-line); border-radius: 14px; padding: 14px 12px; text-align: center; background: #fff; }
.rct-tile.is-market { background: linear-gradient(160deg, #F4EEFF, #FCEFF6); border-color: rgba(124,58,237,.4); }
.rct-tile-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--rct-muted); margin-bottom: 6px; }
.rct-tile-amount { font-size: 21px; font-weight: 700; letter-spacing: -.01em; word-break: break-word; }
.rct-tile.is-market .rct-tile-amount { font-size: 24px; color: var(--rct-violet); }
.rct-tile-short { font-size: 12.5px; color: var(--rct-muted); }
.rct-tile-sub { font-size: 12px; color: var(--rct-muted); margin-top: 4px; }
.rct-table-wrap { overflow-x: auto; }
.rct-breakdown { width: 100%; border-collapse: collapse; font-size: 14px; }
.rct-breakdown th { text-align: left; font-weight: 400; color: var(--rct-muted); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rct-line); }
.rct-breakdown td { text-align: right; font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--rct-line); white-space: nowrap; }
.rct-breakdown tr.is-sub th, .rct-breakdown tr.is-sub td { color: var(--rct-ink); }
.rct-breakdown tr.is-total th { color: var(--rct-ink); font-weight: 700; border-bottom: 0; }
.rct-breakdown tr.is-total td { color: var(--rct-violet); font-size: 16px; border-bottom: 0; }

/* ---------- content sections ---------- */
.rct-section { margin-bottom: 44px; }
.rct-section h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(22px, 3vw, 28px); line-height: 1.25; font-weight: 600; margin-bottom: 14px; }
.rct-section h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.rct-section p { margin-bottom: 14px; max-width: 74ch; }
.rct-section ul, .rct-section ol { padding-left: 22px; margin-bottom: 14px; max-width: 74ch; }
.rct-section li { margin-bottom: 8px; }
.rct-formula { background: var(--rct-surface); border-left: 4px solid var(--rct-violet); border-radius: 10px; padding: 14px 18px; font-weight: 600; margin: 4px 0 16px; max-width: 74ch; }
.rct-example { background: #fff; border: 1px solid var(--rct-line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; max-width: 74ch; }
.rct-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; border: 1px solid var(--rct-line); border-radius: 12px; overflow: hidden; }
.rct-table th { text-align: left; background: var(--rct-surface); font-size: 13px; padding: 11px 14px; }
.rct-table td { padding: 11px 14px; border-top: 1px solid var(--rct-line); }
.rct-caption { font-size: 13px; color: var(--rct-muted); margin: 8px 0 0; }
.rct-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }

/* FAQ */
.rct-faq { border: 1px solid var(--rct-line); border-radius: 14px; background: #fff; margin-bottom: 10px; }
.rct-faq summary { cursor: pointer; font-weight: 600; padding: 16px 20px; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.rct-faq summary::-webkit-details-marker { display: none; }
.rct-faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--rct-violet); flex-shrink: 0; }
.rct-faq[open] summary::after { content: '–'; }
.rct-faq p { padding: 0 20px 16px; margin: 0; max-width: none; color: #3B3746; }

/* cards + CTA */
.rct-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.rct-tool-card { display: block; text-decoration: none; color: var(--rct-ink) !important; background: #fff; border: 1px solid var(--rct-line); border-radius: 20px; padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.rct-tool-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -24px rgba(60,20,80,.32); }
.rct-tool-card .rct-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--rct-violet); background: var(--rct-surface); border-radius: 30px; padding: 4px 11px; margin-bottom: 12px; }
.rct-tool-card h3 { font-size: 20px; margin: 0 0 8px; }
.rct-tool-card p { font-size: 14.5px; color: var(--rct-muted); margin-bottom: 14px; }
.rct-tool-card .rct-go { font-size: 14px; font-weight: 700; color: var(--rct-violet); }
.rct-cta { background: linear-gradient(150deg, #1D1730, #4A1B54 55%, #B24628); color: #fff; border-radius: 24px; padding: 42px 34px; text-align: center; margin-bottom: 36px; }
.rct-cta h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(22px, 3vw, 30px); font-weight: 600; margin-bottom: 10px; color: #fff; }
.rct-cta p { color: rgba(255,255,255,.8); max-width: 56ch; margin: 0 auto 22px; }
.rct-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.rct-disclaimer { font-size: 13px; color: var(--rct-muted); border-top: 1px solid var(--rct-line); padding-top: 18px; max-width: 80ch; }
.rct-steps { counter-reset: rct; list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; max-width: none !important; }
.rct-steps li { counter-increment: rct; background: #fff; border: 1px solid var(--rct-line); border-radius: 16px; padding: 18px 18px 14px; margin: 0; }
.rct-steps li::before { content: counter(rct); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rct-violet); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.rct-steps strong { display: block; margin-bottom: 4px; }
/* inside a side-by-side column the steps should stack, not wrap into 2 + 1 */
.rct-two .rct-steps { grid-template-columns: 1fr; }

/* ---------- checkboxes (UGC extras) ---------- */
.rct-check { margin-bottom: 12px; }
.rct-check label { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.rct-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--rct-violet); flex-shrink: 0; }
.rct-check .rct-help { margin: 2px 0 0 28px; }

/* ---------- campaign result ---------- */
.rct-big-small { font-size: clamp(34px, 5vw, 44px); }
.rct-small { font-size: 12.5px; color: var(--rct-muted); font-weight: 400; }
.rct-result .rct-table { font-size: 13.5px; }
.rct-result .rct-table th, .rct-result .rct-table td { padding: 9px 11px; }
.rct-compare tr.is-current td { background: rgba(124, 58, 237, .08); }

/* ---------- media kit + pitch: shared form pieces ---------- */
.rct-btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.rct-icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--rct-line); background: #fff; color: var(--rct-muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.rct-icon-btn:hover { border-color: var(--rct-bad); color: var(--rct-bad); }
.rct-field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--rct-ink); background: #fff; border: 1.5px solid var(--rct-line); border-radius: 10px; padding: 11px 14px; resize: vertical; min-height: 96px; }
.rct-field textarea:focus { outline: none; border-color: var(--rct-violet); box-shadow: 0 0 0 3px rgba(124,58,237,.16); }
.rct-field textarea.is-invalid { border-color: var(--rct-bad); background: var(--rct-bad-bg); }
.rct-mk-row { display: grid; gap: 8px; align-items: center; margin-bottom: 8px; }
.rct-mk-row select, .rct-mk-row input { width: 100%; font: inherit; font-size: 15px; color: var(--rct-ink); background: #fff; border: 1.5px solid var(--rct-line); border-radius: 10px; padding: 10px 12px; }
.rct-mk-row select:focus, .rct-mk-row input:focus { outline: none; border-color: var(--rct-violet); box-shadow: 0 0 0 3px rgba(124,58,237,.16); }
.rct-mk-row input.is-invalid { border-color: var(--rct-bad); background: var(--rct-bad-bg); }
.rct-mk-row-platform { grid-template-columns: 118px 1fr 112px 34px; }
.rct-mk-row-rate { grid-template-columns: 1fr 128px 34px; }
.rct-affix-left input { padding-left: 30px; padding-right: 12px; }
.rct-affix-left span { right: auto; left: 12px; }
.rct-add { width: 100%; padding: 10px; border: 1.5px dashed var(--rct-line); border-radius: 10px; background: none; color: var(--rct-violet); font: inherit; font-weight: 600; cursor: pointer; margin-bottom: 6px; }
.rct-add:hover:not(:disabled) { border-color: var(--rct-violet); background: var(--rct-surface); }
.rct-add:disabled { opacity: .45; cursor: default; }
.rct-pic { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rct-pic-box { width: 76px; height: 76px; border-radius: 16px; border: 1.5px dashed var(--rct-line); background: var(--rct-surface); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--rct-muted); font-size: 22px; flex-shrink: 0; }
.rct-pic-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rct-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rct-pics .rct-pic { flex-direction: column; align-items: flex-start; gap: 8px; }
.rct-file { font-size: 13px; max-width: 100%; }
.rct-file-btn { font-size: 13px; }
.rct-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.rct-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.rct-swatch label { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1.5px solid var(--rct-line); border-radius: 30px; font-size: 13.5px; font-weight: 600; cursor: pointer; margin: 0; }
.rct-swatch label i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.rct-swatch input:checked + label { border-color: var(--rct-violet); box-shadow: 0 0 0 3px rgba(124,58,237,.16); }
.rct-swatch input:focus-visible + label { outline: 2px solid var(--rct-violet); outline-offset: 2px; }
.rct-info { background: var(--rct-surface); border-radius: 10px; padding: 10px 13px; font-size: 13.5px; margin-bottom: 14px; }
.rct-info a { font-weight: 600; }
.rct-tool-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
@media (min-width: 980px) { .rct-tool-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.rct-preview-card { padding: 18px; }
/* the form is long, so keep the kit in view beside it (only when the two sit side by side) */
@media (min-width: 980px) { .rct-preview-card { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; } }
.rct-preview-card .rct-actions { margin-top: 16px; }
.rct-gate { margin-top: 14px; background: var(--rct-warn-bg); color: var(--rct-warn); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.rct-gate a { font-weight: 700; color: var(--rct-warn); }
.rct-check-inline { margin: 6px 0 0; }

/* ---------- pitch result ---------- */
.rct-out-block { margin-bottom: 16px; }
.rct-out-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.rct-out-title { font-size: 14px; font-weight: 700; margin: 0; }
.rct-out-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rct-out-text, .rct-out-subject { width: 100%; font: inherit; font-size: 14.5px; line-height: 1.55; color: var(--rct-ink); background: #fff; border: 1.5px solid var(--rct-line); border-radius: 10px; padding: 11px 13px; }
.rct-out-text { resize: vertical; }
.rct-out-text:focus, .rct-out-subject:focus { outline: none; border-color: var(--rct-violet); box-shadow: 0 0 0 3px rgba(124,58,237,.16); }
.rct-length { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.rct-length.is-good { color: var(--rct-good); }
.rct-length.is-long { color: var(--rct-warn); }
.rct-length.is-toolong { color: var(--rct-bad); }
.rct-meter { margin: 14px 0 10px; }
.rct-meter-label { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.rct-meter-bar { height: 8px; border-radius: 8px; background: var(--rct-surface); overflow: hidden; }
.rct-meter-fill { height: 100%; background: linear-gradient(90deg, var(--rct-violet), var(--rct-magenta)); border-radius: 8px; }
.rct-tips { margin: 10px 0 12px; padding-left: 20px; font-size: 13.5px; color: #3B3746; }
.rct-tips li { margin-bottom: 6px; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .rct-hero { padding: 30px 22px; border-radius: 20px; }
  .rct-card { padding: 22px 18px; }
  .rct-result { position: static; }
  .rct-row { grid-template-columns: 1fr; gap: 0; }
  .rct-tiles { grid-template-columns: 1fr; }
  .rct-tile { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; text-align: left; padding: 12px 14px; }
  .rct-tile-label { margin: 0; }
  .rct-tile-short, .rct-tile-sub { display: none; }
  .rct-cta { padding: 32px 20px; }
  .rct-mk-row-platform { grid-template-columns: 1fr 1fr; }
  .rct-mk-row-platform .rct-icon-btn { grid-column: 2; justify-self: end; }
  .rct-mk-row-rate { grid-template-columns: 1fr 110px 34px; }
  .rct-pics { grid-template-columns: 1fr 1fr 1fr; }
}
