/* Root-relative so CSSOM consumers such as accessibility tooling retain the
   token sheet's correct origin when they inspect this imported stylesheet. */
@import url("/assets/refera-tokens.css?v=5cf27fe600f6");

/* Refera public identity: IBM Plex Sans, cool clinical neutrals, eucalyptus
   structure, cobalt actions and coral reserved for genuine attention. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  /* The public shell preloads the normal face. optional prevents a late
     metric-changing swap on narrow onboarding views if that preload is slow. */
  font-display: optional;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: optional;
}

:root {
  --paper: var(--refera-color-light-canvas);
  --surface: var(--refera-color-light-surface);
  --ink: var(--refera-color-light-text);
  --ink-2: var(--refera-color-light-text-muted);
  --ink-3: var(--refera-color-light-text-quiet);
  --ink-3-text: var(--refera-color-light-text-quiet);
  --hair: var(--refera-color-light-border);
  --teal: var(--refera-color-light-brand);
  --teal-2: var(--refera-color-light-brand-strong);
  --teal-wash: var(--refera-color-light-brand-wash);
  --teal-line: var(--refera-color-light-brand-edge);
  --green: var(--refera-color-light-brand);
  --green-wash: var(--refera-color-light-brand-wash);
  --green-line: var(--refera-color-light-brand-edge);
  --blue: var(--refera-color-light-action);
  --blue-deep: var(--refera-color-light-action-strong);
  --blue-wash: var(--refera-color-light-action-wash);
  --amber: var(--refera-color-light-attention);
  --amber-wash: var(--refera-color-light-attention-wash);
  --amber-line: var(--refera-color-light-attention-edge);
  --signal: var(--refera-color-light-attention);
  --signal-deep: var(--refera-color-light-attention-strong);
  --signal-wash: var(--refera-color-light-attention-wash);
  --red: var(--refera-color-light-negative);
  --red-wash: var(--refera-color-light-negative-wash);
  --font-ui: var(--refera-font-family-ui);
  --r-input: var(--refera-radius-input);
  --r-card: var(--refera-radius-card);
  --r: var(--refera-radius-input);
}

html {
  color-scheme: light;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-ui);
}

body {
  color: var(--ink);
  background: var(--paper);
  background-image: none;
}

h1,
h2,
h3,
h4,
.brand,
.plan .pn,
.plan .pp,
.pw-win,
.ai-price .amt,
.offer-count,
.hero-offer-number,
.workflow-mobile-panel h3,
.pv-avatar,
.pv-entity-name,
.pv-plan-name,
.pv-sign-ink,
.sign-plate .sp-ink,
.seal .seal-r,
.stamp-txt,
.pass-txt {
  font-family: var(--font-ui);
  font-variation-settings: normal;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 650;
}

h1 {
  font-size: 2.75rem;
  line-height: 1.06;
}

h2 {
  font-size: 2.2rem;
  line-height: 1.12;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.32;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-deep);
}

::selection {
  color: var(--ink);
  background: #dce9f6;
}

:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: var(--blue);
}

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

.brand .mark rect,
.brand > svg:not(.brand-lockup) rect,
.brand-lockup rect {
  fill: var(--teal);
}

/* The old inline lockup contains a serif word path. Use the published mark
   instead of clipping that 119px SVG: the global SVG max-width rule can
   otherwise shrink the source while leaving the fixed clip inset in place. */
.brand[href="#top"] .brand-lockup {
  display: none;
}

.brand[href="#top"]::before {
  content: "";
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: url("/assets/refera-mark-180.png") center / 32px 32px no-repeat;
}

.brand[href="#top"]::after {
  content: "Refera";
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

header.site,
header,
.progress {
  background: rgba(244, 247, 246, 0.94);
  border-color: var(--hair);
}

.mobile-nav {
  background: var(--surface);
}

.eyebrow,
.nav-links a,
.mobile-nav a:not(.btn),
footer.site h4,
.rail-title,
.pv-mod-title,
.offer-kicker {
  font-family: var(--font-ui);
  font-weight: 600;
}

.eyebrow {
  color: var(--teal);
  letter-spacing: 0.08em;
}

.nav-links a,
.mobile-nav a:not(.btn) {
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.mobile-nav a:hover {
  color: var(--blue);
}

.nav-links a::after {
  background: var(--blue);
}

.btn-primary,
.signup .btn,
.voice-number-icon,
.skip {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.btn-primary:hover,
.signup .btn:hover {
  color: #ffffff;
  background: var(--teal-2);
  border-color: var(--teal-2);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--hair);
}

.btn-ghost:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.link-arrow:hover,
.voice-inline,
.voice-help a,
.nav-phone:hover,
footer.site ul a:hover {
  color: var(--blue);
}

.offer-bar {
  color: #ffffff;
  background: var(--signal);
  border-color: rgba(255, 255, 255, 0.24);
}

.offer-pulse {
  background: #ffd4c4;
  box-shadow: 0 0 0 3px rgba(255, 212, 196, 0.18);
}

.offer-count {
  color: var(--signal-deep) !important;
}

.concept-badge,
.chip.chip-trial {
  color: var(--signal-deep);
  background: var(--signal-wash);
  border-color: var(--amber-line);
}

.hero,
.dp-hero,
.console,
.cico,
.card .cico,
.plan-hot,
.con-line {
  background-image: none;
}

.hero,
.dp-hero {
  background-color: var(--paper);
}

.hero h1 {
  font-size: 4.75rem;
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 em,
.dp-hero h1 em {
  color: var(--teal);
  font-style: normal;
}

.hero-sub,
.section-head p,
.lead,
.dp-lead,
.beat-copy > p,
.pw-lead {
  font-size: 1.05rem;
}

.hero-offer {
  background: var(--signal-wash);
  border-color: var(--amber-line);
  box-shadow: none;
}

.hero-offer-number {
  color: var(--signal);
  font-weight: 700;
}

.signup form,
.card,
.plan,
.int,
.doc-item,
.seal-demo,
.table-card,
.note,
.limit,
.promise,
.preview-card,
.form-card,
.step-card,
pre.terms-doc {
  border-color: var(--hair);
}

.signup form {
  box-shadow: 0 8px 24px -22px rgba(21, 33, 30, 0.45);
}

.signup input:focus,
.voice-consent:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 95, 154, 0.14);
}

.cico,
.card .cico,
.pv-avatar,
.pv-ch,
.voice-ai-badge,
.voice-number em,
.card.seal {
  color: var(--teal);
  background: var(--teal-wash);
  border-color: var(--teal-line);
  box-shadow: none;
}

.plan-hot,
.pw-clock-hot {
  background: var(--surface);
  border-color: var(--teal);
  box-shadow: 0 16px 38px -30px rgba(44, 94, 122, 0.6);
}

.plan-flag {
  background: var(--signal);
}

.pw-win {
  font-size: 1.65rem;
}

.voice-band,
.workflow-mobile,
.cta {
  background: var(--surface);
}

.voice-dialog {
  background: var(--paper);
}

.voice-number:hover {
  border-color: var(--blue);
}

.voice-dialog-head h2 {
  font-size: 2rem;
}

.workflow-mobile-panel h3 {
  font-size: 1.22rem;
}

/* Public product proof and onboarding render at full contrast immediately.
   Interaction remains available through the semantic step controls. */
.console *,
.onboard-page .abr-found.show,
.onboard-page .pv-mod.pulse,
.onboard-page .pv-ch {
  animation: none !important;
}

.onboard-page .abr-found.show {
  opacity: 1 !important;
  transform: none !important;
}

#consoleToggle {
  display: none !important;
}

.step h2,
.onboard-main h2 {
  font-size: 2rem;
  font-weight: 650;
}

.pv-avatar,
.pv-entity-name,
.pv-plan-name,
.seal .seal-r {
  font-weight: 650;
}

.pv-sign-ink,
.sign-plate .sp-ink {
  font-style: italic;
  font-weight: 500;
}

.progress-bar {
  background: var(--blue);
}

.rail li.current .dot,
.rail li.done .dot {
  border-color: var(--blue);
}

.rail li.done .dot::after {
  border-color: var(--blue);
}

.banner,
.honest-note {
  background: var(--signal-wash);
  border-color: var(--amber-line);
}

.banner.approved {
  background: var(--teal-wash);
  border-color: var(--teal-line);
}

.banner.approved .tag {
  background: var(--teal);
}

/* The trust page is a long reference surface, not a second site map. Keep its
   desktop header to the three destinations people use while reading; the
   brand, dashboard and start actions remain available and the mobile menu
   retains the full in-page index. */
body:has(#apps) header.site .nav-links li:nth-child(1),
body:has(#apps) header.site .nav-links li:nth-child(4),
body:has(#apps) header.site .nav-links li:nth-child(6),
body:has(#apps) header.site .nav-links li:nth-child(7) {
  display: none;
}

@media (max-width: 1120px) {
  .hero h1 {
    font-size: 4rem;
  }
}

/* Keep the full desktop navigation inside compact laptop viewports even when
   the optional webfont correctly falls back to a slightly wider system face. */
@media (min-width: 1121px) and (max-width: 1300px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-cta {
    gap: 0.4rem;
  }

  .nav-cta .btn {
    padding-inline: 0.8rem;
  }
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 3.25rem;
  }
}

@media (max-width: 700px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2.75rem;
    line-height: 1;
  }

  .step h2,
  .onboard-main h2 {
    font-size: 1.72rem;
  }

  .hero-sub,
  .section-head p,
  .lead,
  .dp-lead,
  .beat-copy > p,
  .pw-lead {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 2.4rem;
  }
}

/* Keep the text assistant reachable above the public mobile action dock. The
   assistant root is appended after the footer, so it cannot participate in
   normal flow on a phone without moving its launcher off-screen. */
@media (max-width: 480px) {
  body:has(.mobile-dock) {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }

  body #ra-root #ra-panel {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}
