/* ==========================================================================
   ComputedField house style - extracted from computedfield.com
   (Elementor global kit: colors, Inter / Inter Tight type scale, 10px radius,
   flat offset shadows, warm cream background, rust accent CTA)
   ========================================================================== */

:root {
  --cf-primary: #15393A;      /* deep teal - headings, dark UI */
  --cf-text: #004957;         /* body copy */
  --cf-bg: #F9F5EF;           /* warm cream page background */
  --cf-bg-alt: #FAFEF8;       /* near-white panel background */
  --cf-beige: #F0EBE0;        /* card / eyebrow background */
  --cf-accent: #B04529;       /* rust - primary CTA, highlights */
  --cf-accent-dark: #8f3a21;
  --cf-muted: #78736C;        /* secondary / muted text */
  --cf-on-accent: #FEFEFE;
  --cf-border: rgba(21, 57, 58, 0.12);

  --cf-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cf-font-tight: "Inter Tight", "Inter", sans-serif;

  --cf-radius-lg: 10px;
  --cf-radius-sm: 5px;

  --cf-shadow-flat: 3px 3px 0px 0px rgba(21, 57, 58, 0.10);
  --cf-shadow-soft: 0px 15px 30px 0px rgba(21, 57, 58, 0.08);

  --cf-max-width: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cf-bg);
  color: var(--cf-text);
  font-family: var(--cf-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: padding-bottom 320ms ease;
}

/* Room at the very bottom of the page so the persistent sticky CTA never
   sits on top of the footer or the restart link once it's shown. */
body.cf-has-sticky-cta {
  padding-bottom: 76px;
}

h1, h2, h3 {
  font-family: var(--cf-font-tight);
  color: var(--cf-primary);
  font-weight: 500;
  margin: 0;
}

p { margin: 0; }

a { color: var(--cf-accent); }
a:hover { color: var(--cf-primary); }

button {
  font-family: var(--cf-font);
  cursor: pointer;
}

/* ---------------------------------------------------------------- header */

.cf-header {
  background: var(--cf-primary);
}

.cf-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cf-header__logo img {
  display: block;
  height: 42px;
  width: auto;
}

.cf-header__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ app */

.cf-app {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  min-height: 60vh;
}

.cf-screen {
  max-width: var(--cf-max-width);
  margin: 0 auto;
  animation: cf-fade-in 280ms ease;
}

@keyframes cf-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cf-eyebrow {
  display: inline-block;
  background: var(--cf-beige);
  color: var(--cf-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* -------------------------------------------------------------- landing */

.cf-landing__headline {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.cf-landing__sub {
  font-size: 18px;
  color: var(--cf-text);
  max-width: 600px;
  margin-bottom: 12px;
}

.cf-landing__sub + .cf-landing__sub {
  margin-top: 12px;
}

.cf-landing__meta {
  margin-top: 28px;
  font-size: 14px;
  color: var(--cf-muted);
}

.cf-landing__actions {
  margin-top: 36px;
}

/* --------------------------------------------------------------- button */

.cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cf-accent);
  color: var(--cf-on-accent);
  border: none;
  border-radius: var(--cf-radius-lg);
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.cf-btn:hover {
  background: var(--cf-accent-dark);
  color: var(--cf-on-accent);
}

.cf-btn:active { transform: translateY(1px); }

.cf-btn:disabled {
  background: var(--cf-muted);
  opacity: 0.45;
  cursor: not-allowed;
}

.cf-btn--secondary {
  background: transparent;
  color: var(--cf-primary);
  border: 1px solid var(--cf-border);
}

.cf-btn--secondary:hover {
  background: var(--cf-beige);
  color: var(--cf-primary);
}

.cf-btn--full { width: 100%; }

/* ----------------------------------------------------------- progress */

.cf-progress {
  margin-bottom: 40px;
}

.cf-progress__label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--cf-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.cf-progress__track {
  height: 4px;
  background: var(--cf-border);
  border-radius: 999px;
  overflow: hidden;
}

.cf-progress__fill {
  height: 100%;
  background: var(--cf-accent);
  border-radius: 999px;
  transition: width 320ms ease;
}

/* ----------------------------------------------------------- questions */

.cf-section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cf-accent);
  margin-bottom: 10px;
}

.cf-question {
  margin-bottom: 44px;
}

.cf-question:last-of-type {
  margin-bottom: 8px;
}

.cf-question__text {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.cf-question__support {
  font-size: 15px;
  color: var(--cf-muted);
  margin-bottom: 18px;
  max-width: 560px;
}

.cf-question__quote {
  font-family: var(--cf-font-tight);
  font-style: italic;
  font-size: 15px;
  color: var(--cf-primary);
  border-left: 2px solid var(--cf-accent);
  padding-left: 14px;
  margin-bottom: 18px;
  max-width: 480px;
}

.cf-options {
  display: grid;
  gap: 10px;
}

.cf-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: var(--cf-bg-alt);
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-lg);
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--cf-text);
  transition: border-color 140ms ease, background 140ms ease;
}

.cf-option:hover {
  border-color: var(--cf-accent);
  background: #ffffff;
}

.cf-option[aria-pressed="true"] {
  border-color: var(--cf-accent);
  background: var(--cf-beige);
  color: var(--cf-primary);
}

.cf-option:disabled {
  cursor: default;
}

.cf-option:disabled:not([aria-pressed="true"]) {
  opacity: 0.45;
}

.cf-option__mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--cf-border);
  flex-shrink: 0;
  position: relative;
}

.cf-option[aria-pressed="true"] .cf-option__mark {
  border-color: var(--cf-accent);
}

.cf-option[aria-pressed="true"] .cf-option__mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--cf-accent);
}

/* --------------------------------------------------------------- nav row */

.cf-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  gap: 16px;
}

.cf-nav__spacer { flex: 1; }

/* ------------------------------------------------------------------ form */

.cf-form {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.cf-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cf-field {
  display: grid;
  gap: 8px;
}

.cf-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--cf-primary);
}

.cf-field input {
  font-family: var(--cf-font);
  font-size: 16px;
  padding: 13px 16px;
  border-radius: var(--cf-radius-sm);
  border: 1px solid var(--cf-border);
  background: var(--cf-bg-alt);
  color: var(--cf-text);
}

.cf-field input:focus {
  outline: none;
  border-color: var(--cf-accent);
}

.cf-field__error {
  font-size: 12.5px;
  color: var(--cf-accent);
  min-height: 16px;
}

.cf-email-capture__consent {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--cf-muted);
}

/* ------------------------------------------------------ report gate */

/* The preview + its gate overlay share one positioning context so the
   overlay can sit centered on top, sized to match the clipped preview. */
.cf-preview-wrap {
  position: relative;
}

/* Full report content is always rendered underneath; while gated it's
   clipped to a preview height and lightly misted so the reader can see the
   shape (chart outline, card layout) without reading specifics. */
.cf-report-preview {
  position: relative;
  overflow: hidden;
  transition: max-height 620ms ease, filter 420ms ease, opacity 420ms ease;
}

.cf-report-preview--clipped {
  max-height: 420px;
  filter: blur(1.5px);
  opacity: 0.95;
  pointer-events: none;
  user-select: none;
}

.cf-report-preview--clipped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(249, 245, 239, 0) 0%, var(--cf-bg) 80%);
  pointer-events: none;
}

/* Email gate overlay: a sibling of .cf-report-preview (not a descendant),
   so it sits crisp and unblurred on top of the misted preview beneath it. */
.cf-gate-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 380ms ease;
}

.cf-gate-overlay--hidden {
  opacity: 0;
  pointer-events: none;
}

.cf-gate-card {
  width: 100%;
  max-width: 440px;
  background: var(--cf-bg-alt);
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-lg);
  box-shadow: var(--cf-shadow-soft);
  padding: 32px 30px;
}

.cf-gate-card h2 {
  margin: 0 0 10px;
}

.cf-gate-card .cf-form {
  margin-top: 20px;
}

.cf-report-content__unlocked {
  font-size: 14px;
  color: var(--cf-muted);
  margin-bottom: -4px;
}

/* ---------------------------------------------------------------- result */

.cf-result__score {
  font-family: var(--cf-font-tight);
  font-size: 64px;
  color: var(--cf-primary);
  margin: 4px 0 20px;
}

.cf-result__headline {
  font-size: 32px;
  margin-bottom: 16px;
}

.cf-result__copy {
  font-size: 16px;
  color: var(--cf-text);
  margin-bottom: 8px;
}

.cf-result__copy + .cf-result__copy { margin-top: 10px; }

.cf-scale {
  margin: 40px 0 48px;
}

.cf-scale__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.cf-scale__seg {
  height: 6px;
  border-radius: 999px;
  background: var(--cf-border);
}

.cf-scale__seg--active {
  background: var(--cf-accent);
}

.cf-scale__labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 10px;
}

.cf-scale__labels span {
  font-size: 12px;
  color: var(--cf-muted);
  line-height: 1.35;
}

.cf-scale__labels span.cf-scale__labels--current {
  color: var(--cf-primary);
  font-weight: 600;
}

.cf-screen h2 {
  font-size: 20px;
  margin: 48px 0 18px;
}

.cf-axis-chart-wrap {
  background: var(--cf-bg-alt);
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-lg);
  padding: 12px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cf-axis-chart {
  width: 100%;
  max-width: 360px;
  height: auto;
  /* SVG clips its own content to the viewBox by default - the axis labels
     sit outside it (they're anchored past the pentagon's points), so
     without this they get cut off at the chart's edge. */
  overflow: visible;
}

.cf-axis-chart__ring {
  fill: none;
  stroke: var(--cf-border);
  stroke-width: 1;
}

.cf-axis-chart__spoke {
  stroke: var(--cf-border);
  stroke-width: 1;
}

.cf-axis-chart__area {
  fill: rgba(176, 69, 41, 0.16);
  stroke: var(--cf-accent);
  stroke-width: 2;
  stroke-linejoin: round;
}

.cf-axis-chart__dot {
  fill: var(--cf-accent);
}

.cf-axis-chart__label {
  font-family: var(--cf-font);
  font-size: 11.5px;
  fill: var(--cf-text);
}

.cf-axis-chart__band {
  font-family: var(--cf-font-tight);
  font-size: 12px;
  font-weight: 600;
  fill: var(--cf-primary);
}

.cf-axis-definitions {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 18px;
  margin: 16px 0 0;
  padding: 20px 22px;
  background: var(--cf-bg-alt);
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-lg);
}

.cf-axis-definitions__term {
  font-family: var(--cf-font-tight);
  font-weight: 600;
  font-size: 14px;
  color: var(--cf-primary);
}

.cf-axis-definitions__desc {
  margin: 0;
  font-size: 14px;
  color: var(--cf-muted);
}

.cf-pressure-grid {
  display: grid;
  gap: 12px;
}

.cf-pressure-card {
  background: var(--cf-bg-alt);
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-lg);
  padding: 20px 22px;
}

.cf-pressure-card__title {
  font-family: var(--cf-font-tight);
  font-size: 17px;
  color: var(--cf-primary);
  margin-bottom: 6px;
}

.cf-pressure-card__quote {
  font-family: var(--cf-font-tight);
  font-style: italic;
  font-size: 15px;
  color: var(--cf-primary);
  margin: 0;
}

.cf-cta-block {
  margin-top: 56px;
  background: var(--cf-primary);
  color: var(--cf-bg-alt);
  border-radius: var(--cf-radius-lg);
  padding: 40px 36px;
  box-shadow: var(--cf-shadow-flat);
}

.cf-cta-block__text {
  font-family: var(--cf-font-tight);
  font-size: 24px;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 12px;
  max-width: 520px;
}

.cf-cta-block__prompt {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  max-width: 480px;
}

.cf-restart {
  margin-top: 28px;
  text-align: center;
}

.cf-restart button {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--cf-muted);
  text-decoration: underline;
  padding: 8px;
}

.cf-restart button:hover { color: var(--cf-primary); }

/* ------------------------------------------------------- sticky cta bar */

/* Pinned to the viewport bottom once the report is unlocked, so the call
   to action stays visible no matter how far the reader scrolls. */
.cf-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--cf-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 -10px 28px rgba(21, 57, 58, 0.2);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  transition: transform 320ms ease, opacity 320ms ease;
}

.cf-sticky-cta--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cf-sticky-cta__text {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 500;
  max-width: 480px;
  text-align: left;
}

.cf-sticky-cta .cf-btn {
  padding: 12px 26px;
  font-size: 14px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- footer */

.cf-footer {
  border-top: 1px solid var(--cf-border);
}

.cf-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px;
  font-size: 13px;
  color: var(--cf-muted);
}

.cf-footer a {
  color: var(--cf-muted);
}

.cf-footer a:hover {
  color: var(--cf-accent);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 767px) {
  .cf-app { padding: 36px 18px 64px; }
  .cf-landing__headline { font-size: 30px; }
  .cf-landing__sub { font-size: 16px; }
  .cf-question__text { font-size: 20px; }
  .cf-result__score { font-size: 48px; }
  .cf-result__headline { font-size: 24px; }
  .cf-form__row { grid-template-columns: 1fr; }
  .cf-nav { flex-wrap: wrap; }
  .cf-cta-block { padding: 28px 22px; }
  .cf-cta-block__text { font-size: 20px; }
  .cf-scale__labels span { font-size: 10.5px; }
  .cf-gate-card { padding: 24px 20px; }
  .cf-gate-overlay { padding: 14px; }
  .cf-axis-definitions { grid-template-columns: 1fr; gap: 2px 0; }
  .cf-axis-definitions__desc { margin-bottom: 12px; }
  .cf-sticky-cta { justify-content: space-between; padding: 12px 16px; }
  .cf-sticky-cta__text { font-size: 13px; }
  .cf-sticky-cta .cf-btn { padding: 10px 18px; }
  body.cf-has-sticky-cta { padding-bottom: 92px; }
}
