/* "How can we help you?" — floating button + the How can we help? page. Inherits each draft's tokens.
   Selectors are doubled (.rph.rph) so the drafts' own heading/button resets never win. */
.rph {
  --rph-red: var(--red, #de2127);
  --rph-red-dark: var(--red-dark, #b9181d);
  --rph-ink: var(--ink, #111418);
  --rph-body: var(--body, #3a404a);
  --rph-mute: var(--mute, #666c76);
  --rph-line: var(--line, #e4e7ec);
  --rph-soft: #f4f5f7;
  --rph-font: var(--text, var(--display, system-ui, -apple-system, "Segoe UI", sans-serif));
  --rph-head: var(--display, var(--rph-font));
  --rph-radius: 12px;
  --rph-pill: 999px;
  font-family: var(--rph-font); color: var(--rph-body);
}
.rph.rph *, .rph.rph *::before, .rph.rph *::after { box-sizing: border-box; }
.rph.rph button, .rph.rph textarea { font: inherit; letter-spacing: normal; text-transform: none; }
.rph.rph h1, .rph.rph h2, .rph.rph h3, .rph.rph h4, .rph.rph p, .rph.rph fieldset { margin: 0; }
.rph--b { --rph-radius: 0px; --rph-font: var(--display, "Geist", system-ui, sans-serif); }
.rph--c { --rph-ink: #101010; --rph-radius: 10px; }
.rph--f { --rph-radius: 10px; }
.rph.rph .rph-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rph.rph :focus-visible { outline: 2px solid var(--rph-red); outline-offset: 3px; }

/* ---------- floating button ---------- */
.rph:not(.rph-app) { position: fixed; right: 20px; bottom: 20px; z-index: 1000; }
.rph.rph .rph-tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: var(--rph-pill);
  background: var(--rph-ink); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18); transition: transform .15s, background .15s;
}
.rph.rph .rph-tab:hover { background: var(--rph-red); color: #fff; transform: translateY(-1px); }
.rph.rph .rph-tab__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rph-red); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.rph.rph .rph-tab:hover .rph-tab__dot { background: #fff; }

/* ---------- page ---------- */
.rph.rph-app--page { display: block; padding: clamp(120px, 14vw, 170px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 96px); background: #fff; min-height: 70vh; }
.rph.rph .rph-wrap { max-width: 1200px; margin: 0 auto; }
.rph.rph .rph-k { font-size: 13px; font-weight: 600; color: var(--rph-red); letter-spacing: .02em; }

/* search hero */
.rph.rph .rph-hero { max-width: 980px; margin: 0 auto; text-align: center; padding-bottom: clamp(32px, 5vw, 56px); }
.rph.rph .rph-hero h1 { font-family: var(--rph-head); font-size: clamp(36px, 5.6vw, 72px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; color: var(--rph-ink); }
.rph.rph .rph-red { color: var(--rph-red); }
.rph.rph .rph-sub { margin-top: 18px; font-size: clamp(18px, 2vw, 26px); line-height: 1.4; color: var(--rph-mute); font-weight: 400; }
.rph.rph .rph-search { margin: clamp(26px, 4vw, 44px) auto 0; display: flex; gap: 12px; align-items: stretch; max-width: 860px; }
.rph.rph .rph-search input { flex: 1; min-width: 0; height: 64px; padding: 0 26px; font: inherit; font-size: 17px; color: var(--rph-ink); background: #fff; border: 1px solid var(--rph-line); border-radius: var(--rph-pill); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.rph.rph .rph-search input:focus { outline: none; border-color: var(--rph-red); box-shadow: 0 0 0 4px rgba(222, 33, 39, .12); }
.rph.rph .rph-btn--lg { height: 64px; padding: 0 30px; font-size: 16.5px; }
.rph.rph .rph-try { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; }
.rph.rph .rph-try span { color: var(--rph-mute); font-size: 15px; margin-right: 4px; }
.rph.rph .rph-try__chip { padding: 10px 18px; border: 1px solid var(--rph-line); border-radius: var(--rph-pill); background: #fff; color: var(--rph-body); font-size: 15px; cursor: pointer; transition: border-color .15s, color .15s; }
.rph.rph .rph-try__chip:hover { border-color: var(--rph-ink); color: var(--rph-ink); }
.rph.rph .rph-status { margin-top: 12px; font-size: 14px; color: var(--rph-red-dark); }
.rph.rph .rph-status:empty { display: none; }
.rph.rph .rph-manual { margin-top: 14px; font-size: 14.5px; color: var(--rph-mute); }
.rph.rph .rph-fine { margin: 28px auto 0; max-width: 640px; text-align: center; font-size: 12.5px; line-height: 1.45; color: var(--rph-mute); }

/* results: questionnaire beside the suggestion + use-case cards */
.rph.rph .rph-results { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.6fr); gap: clamp(20px, 3vw, 36px); align-items: start; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--rph-line); scroll-margin-top: 90px; }
.rph.rph .rph-results[hidden] { display: none; }
.rph.rph .rph-qbox { background: var(--rph-soft); border-radius: var(--rph-radius); padding: clamp(18px, 2.4vw, 26px); position: sticky; top: 96px; }
.rph.rph .rph-qs__title { font-family: var(--rph-head); font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--rph-ink); }

/* buttons */
.rph.rph .rph-btn--link { border: 0 !important; background: none !important; padding: 4px 0 !important; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.rph.rph .rph-btn--link:hover { color: var(--rph-red) !important; }
.rph.rph .rph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: var(--rph-pill); border: 1.5px solid var(--rph-ink); background: #fff; color: var(--rph-ink); font-weight: 600; font-size: 14.5px; line-height: 1.2; text-decoration: none; cursor: pointer; position: relative; z-index: 1; transition: background .15s, color .15s, border-color .15s; }
.rph.rph .rph-btn:hover { background: var(--rph-ink); color: #fff; }
.rph.rph .rph-btn--primary { background: var(--rph-red); border-color: var(--rph-red); color: #fff; }
.rph.rph .rph-btn--primary:hover { background: var(--rph-red-dark); border-color: var(--rph-red-dark); color: #fff; }
.rph.rph .rph-btn--sm { padding: 8px 14px; font-size: 13.5px; }
.rph.rph .rph-btn[disabled] { opacity: .65; cursor: progress; }

/* questions */
.rph.rph .rph-qs { display: grid; gap: 16px; }
.rph.rph .rph-qs__lead { margin-top: -10px; font-size: 14px; color: var(--rph-mute); }
.rph.rph .rph-q { border: 0; padding: 0; }
.rph.rph .rph-q legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--rph-ink); }
.rph.rph .rph-opt { font-weight: 400; color: var(--rph-mute); font-size: 12.5px; }
.rph.rph .rph-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rph.rph .rph-chip { padding: 7px 12px; border: 1px solid var(--rph-line); border-radius: var(--rph-pill); background: #fff; color: var(--rph-body); font-size: 13.5px; line-height: 1.3; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.rph.rph .rph-chip:hover { border-color: var(--rph-ink); color: var(--rph-ink); }
.rph.rph .rph-chip[aria-pressed="true"] { background: var(--rph-ink); border-color: var(--rph-ink); color: #fff; }

/* results */
.rph.rph .rph-right { display: grid; gap: 16px; transition: opacity .2s; }
.rph.rph .rph-right.is-loading { opacity: .45; }
.rph.rph .rph-card { background: #fff; border: 1px solid var(--rph-line); border-radius: var(--rph-radius); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 12px; }
.rph.rph .rph-card--system { border-top: 4px solid var(--rph-red); }
.rph.rph .rph-card--empty { border-style: dashed; background: transparent; }
.rph.rph .rph-card h2 { font-family: var(--rph-head); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--rph-ink); }
.rph.rph .rph-card p { font-size: 15.5px; line-height: 1.55; }
.rph.rph .rph-why { color: var(--rph-ink); font-weight: 500; }
.rph.rph .rph-install { font-size: 14.5px; }
.rph.rph .rph-install strong { color: var(--rph-ink); }
.rph.rph .rph-alt { font-size: 14px; color: var(--rph-mute); }
.rph.rph .rph-card__btns, .rph.rph .rph-case__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rph.rph .rph-cases__title { margin-top: 8px; font-family: var(--rph-head); font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--rph-ink); }
.rph.rph .rph-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.rph.rph .rph-case { position: relative; background: #fff; border: 1px solid var(--rph-line); border-radius: var(--rph-radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rph.rph .rph-case:hover { border-color: var(--rph-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.rph.rph .rph-case__link { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.rph.rph .rph-case__kind { font-size: 12.5px; font-weight: 600; color: var(--rph-red); }
.rph.rph .rph-case h4 { font-family: var(--rph-head); font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--rph-ink); }
.rph.rph .rph-case__how { font-size: 14.5px; line-height: 1.5; color: var(--rph-body); }
.rph.rph .rph-case__fact { font-size: 13.5px; line-height: 1.45; color: var(--rph-ink); font-weight: 500; padding-left: 10px; border-left: 2px solid var(--rph-red); }
.rph.rph .rph-case__btns { margin-top: auto; padding-top: 6px; }

@media (max-width: 900px) {
  .rph.rph .rph-results { grid-template-columns: 1fr; }
  .rph.rph .rph-qbox { position: static; order: 2; }
}
@media (max-width: 640px) {
  .rph.rph .rph-search { flex-direction: column; }
  .rph.rph .rph-search input, .rph.rph .rph-btn--lg { height: 56px; }
}
@media (max-width: 560px) {
  .rph:not(.rph-app) { right: 12px; bottom: 12px; }
  .rph.rph .rph-tab { padding: 12px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .rph.rph * { transition: none !important; } }
@media print { .rph:not(.rph-app) { display: none; } }
.rph.rph [hidden] { display: none !important; }

/* ======================= per-draft looks for the How can we help? page ======================= */
.rph.rph .rph-hero__k { display: none; }

/* ---- Draft B: instrument panel — square corners, hairlines, mono labels, no shadows ---- */
.rph--b.rph-app--page { --rph-mono: var(--mono, "JetBrains Mono", ui-monospace, monospace); }
.rph--b.rph.rph .rph-hero { text-align: left; max-width: 1200px; }
.rph--b.rph.rph .rph-hero__k { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--rph-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--rph-mute); }
.rph--b.rph.rph .rph-hero__k::after { content: ""; flex: 1; height: 1px; background: var(--rph-line); }
.rph--b.rph.rph .rph-hero h1 { font-size: clamp(44px, 7vw, 104px); line-height: .95; letter-spacing: -.05em; max-width: 14ch; }
.rph--b.rph.rph .rph-sub { color: var(--rph-body); }
.rph--b.rph.rph .rph-search { margin-left: 0; max-width: 900px; gap: 0; }
.rph--b.rph.rph .rph-search input { border-radius: 0; border: 1px solid var(--rph-ink); border-right: 0; box-shadow: none; height: 60px; }
.rph--b.rph.rph .rph-btn { font-family: var(--rph-mono); font-size: 13px; letter-spacing: .04em; font-weight: 500; }
.rph--b.rph.rph .rph-btn--lg { border-radius: 0; height: 60px; }
.rph--b.rph.rph .rph-try { justify-content: flex-start; }
.rph--b.rph.rph .rph-try span, .rph--b.rph.rph .rph-case__kind, .rph--b.rph.rph .rph-k { font-family: var(--rph-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.rph--b.rph.rph .rph-try__chip, .rph--b.rph.rph .rph-chip { border-radius: 0; font-size: 14px; }
.rph--b.rph.rph .rph-manual, .rph--b.rph.rph .rph-fine { text-align: left; margin-left: 0; }
.rph--b.rph.rph .rph-results { border-top-color: var(--rph-ink); }
.rph--b.rph.rph .rph-qbox { background: #fff; border: 1px solid var(--rph-line); border-radius: 0; }
.rph--b.rph.rph .rph-card, .rph--b.rph.rph .rph-case { border-radius: 0; box-shadow: none; }
.rph--b.rph.rph .rph-card--system { border-top: 1px solid var(--rph-ink); border-left: 3px solid var(--rph-red); }
.rph--b.rph.rph .rph-case:hover { transform: none; box-shadow: none; border-color: var(--rph-ink); }
.rph--b.rph.rph .rph-cases { gap: 0; border-top: 1px solid var(--rph-ink); border-left: 1px solid var(--rph-line); }
.rph--b.rph.rph .rph-cases .rph-case { border: 0; border-right: 1px solid var(--rph-line); border-bottom: 1px solid var(--rph-line); }
.rph--b.rph.rph .rph-case__fact { font-family: var(--rph-mono); font-size: 12px; letter-spacing: .02em; }

/* ---- Draft C: the live site, modernized — dark photo hero band, white type, soft rounded cards ---- */
.rph--c.rph-app--page { padding-top: 0; background: #f9f9f9; }
.rph--c.rph.rph .rph-hero {
  max-width: none; margin: 0 calc(50% - 50vw) clamp(32px, 5vw, 56px); padding: clamp(150px, 16vw, 200px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 88px);
  background: linear-gradient(rgba(16, 16, 16, .82), rgba(16, 16, 16, .88)), url("/wp-content/uploads/2023/04/img-bg-02-4-jpg.webp") center / cover no-repeat;
}
.rph--c.rph.rph .rph-hero > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.rph--c.rph.rph .rph-hero__k { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: .85; }
.rph--c.rph.rph .rph-hero h1 { color: #fff; font-weight: 800; }
.rph--c.rph.rph .rph-sub { color: rgba(255, 255, 255, .78); }
.rph--c.rph.rph .rph-search { max-width: 860px; }
.rph--c.rph.rph .rph-search input { border-color: transparent; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.rph--c.rph.rph .rph-try span, .rph--c.rph.rph .rph-manual { color: rgba(255, 255, 255, .8); }
.rph--c.rph.rph .rph-manual:hover { color: #fff !important; }
.rph--c.rph.rph .rph-try__chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: #fff; }
.rph--c.rph.rph .rph-try__chip:hover { background: #fff; color: var(--rph-ink); border-color: #fff; }
.rph--c.rph.rph .rph-results { border-top: 0; padding-top: 0; }
.rph--c.rph.rph .rph-qbox { background: #fff; box-shadow: 0 1px 2px rgba(16, 16, 16, .06), 0 8px 24px rgba(16, 16, 16, .06); }
.rph--c.rph.rph .rph-card, .rph--c.rph.rph .rph-case { border-color: transparent; box-shadow: 0 1px 2px rgba(16, 16, 16, .06), 0 8px 24px rgba(16, 16, 16, .06); }
.rph--c.rph.rph .rph-case:hover { border-color: var(--rph-red); }
.rph--c.rph.rph .rph-btn { text-transform: none; }

/* ---- Draft F: clean and generic (the defaults above) ---- */
.rph.rph .rph-right.is-refining .rph-case__how { opacity: .55; transition: opacity .3s; }
.rph.rph .rph-status { color: var(--rph-mute); }
.rph--c.rph.rph .rph-status { color: rgba(255,255,255,.8); }
.rph--c.rph.rph .rph-hero h1 { font-size: clamp(34px, 5vw, 64px); }
