/* Clera landing page styles. Extracted from index.html.
   Evergreen design tokens — see DESIGN_TOKENS.md. */

/* ---- Evergreen tokens (from DESIGN_TOKENS.md) ---- */
:root {
  --paper: #f4f2ec;
  --paper2: #ece9e0;
  --surface: #ffffff;
  --ink: #19231d;
  --inkSoft: #5a645c;
  --inkFaint: #969c92;
  --line: rgba(25, 35, 29, 0.09);
  --lineStrong: rgba(25, 35, 29, 0.16);
  --primary: #1e5b43;
  --primaryDeep: #163f2f;
  --primarySoft: #e2ede6;
  --onPrimary: #ffffff;
  --positive: #2f8a66;
  --positiveSoft: #e4f1ea;
  --warn: #9a6b1c;
  --warnSoft: #f4ead4;
  --danger: #b24a3c;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:
    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  --shadow-card:
    0 1px 2px rgba(20, 30, 25, 0.04), 0 6px 20px rgba(20, 30, 25, 0.05);
  --shadow-raised:
    0 2px 6px rgba(20, 30, 25, 0.07), 0 16px 40px rgba(20, 30, 25, 0.1);
  --shadow-cardvis: 0 10px 30px rgba(20, 30, 25, 0.22);

  --r-sm: 12px;
  --r-btn: 15px;
  --r-card: 22px;
  --r-panel: 26px;
  --r-pill: 999px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
/* Offset in-page anchor jumps so targets clear the sticky nav (66px). */
[id] {
  scroll-margin-top: 88px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.tnums {
  font-variant-numeric: tabular-nums;
}
a {
  color: inherit;
}

/* subtle paper grain / vignette to warm the background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      120% 80% at 85% -10%,
      rgba(30, 91, 67, 0.06),
      transparent 55%
    ),
    radial-gradient(
      90% 60% at -10% 10%,
      rgba(30, 91, 67, 0.05),
      transparent 50%
    );
  z-index: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--inkFaint);
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(244, 242, 236, 0.72);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(155deg, #28614a 0%, #1b4434 48%, #122e24 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-card);
  flex: none;
}
.brand .mark svg {
  width: 18px;
  height: 18px;
  color: #fff;
}
.brand .word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pill-soon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--primarySoft);
  color: var(--primaryDeep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.pill-soon .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 0 rgba(47, 138, 102, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 138, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(47, 138, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 138, 102, 0);
  }
}
.nav-cta {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--onPrimary);
  background: var(--primary);
  padding: 9px 16px;
  border-radius: var(--r-btn);
  letter-spacing: -0.01em;
  transition:
    transform 0.12s ease,
    background 0.15s ease;
}
.nav-cta:hover {
  background: var(--primaryDeep);
}
.nav-cta:active {
  transform: scale(0.975);
}

/* ---------- Hero ---------- */
header.hero {
  padding: 72px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}
h1 .accent {
  color: var(--primary);
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--inkSoft);
  max-width: 30em;
  margin: 0 0 30px;
}
/* Footnote marker on qualified claims (resolves to the footer note). */
.fn-ref {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  color: var(--inkFaint);
  text-decoration: none;
  padding: 0 1px;
}
.fn-ref:hover {
  color: var(--inkSoft);
}

/* waitlist form */
.waitlist {
  max-width: 460px;
}
/* Honeypot: kept in the DOM for bots, removed from view + a11y tree. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--lineStrong);
  border-radius: var(--r-btn);
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primarySoft);
}
.field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  min-width: 0;
}
.field input::placeholder {
  color: var(--inkFaint);
}
.btn {
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--onPrimary);
  background: var(--primary);
  border-radius: 11px;
  padding: 12px 20px;
  white-space: nowrap;
  transition:
    transform 0.12s ease,
    background 0.15s ease;
}
.btn:hover {
  background: var(--primaryDeep);
}
.btn:active {
  transform: scale(0.975);
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.reassure {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--inkSoft);
  font-size: 13px;
}
.reassure span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.reassure svg {
  width: 15px;
  height: 15px;
  color: var(--positive);
}
.form-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--inkFaint);
}
.form-error {
  margin-top: 12px;
  font-size: 13px;
  color: var(--danger);
}
.form-error[hidden] {
  display: none;
}
.final .form-error {
  text-align: center;
  /* Re-assert over the larger, grey `.final p` rule. */
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--danger);
}
.consent {
  margin-top: 12px;
  max-width: 44ch;
  font-size: 12px;
  line-height: 1.5;
  color: var(--inkFaint);
}
.consent a {
  color: var(--inkSoft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent a:hover {
  color: var(--primary);
}
.final .consent {
  margin: 12px auto 0;
  text-align: center;
  /* Re-assert over the larger `.final p` rule. */
  font-size: 12px;
  color: var(--inkFaint);
}
/* success state */
.success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  background: var(--positiveSoft);
  border: 1px solid rgba(47, 138, 102, 0.22);
  border-radius: var(--r-card);
  padding: 18px 20px;
  max-width: 460px;
}
.success.show {
  display: flex;
  animation: rise 0.34s cubic-bezier(0.32, 0.72, 0, 1) both;
}
.success .check {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--positive);
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.success .check svg {
  width: 20px;
  height: 20px;
}
.success h3 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--primaryDeep);
}
.success p {
  margin: 0;
  font-size: 14px;
  color: #2c5a48;
}
@keyframes pop {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

/* ---------- Phone mock ---------- */
.phone-col {
  display: flex;
  justify-content: center;
}
.phone {
  width: 300px;
  border-radius: 44px;
  background: #0f1a15;
  padding: 12px;
  box-shadow:
    0 30px 70px rgba(20, 30, 25, 0.28),
    0 8px 24px rgba(20, 30, 25, 0.18);
  position: relative;
}
.phone .notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: #0f1a15;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.screen {
  border-radius: 34px;
  background: var(--paper);
  overflow: hidden;
  height: 600px;
  display: flex;
  flex-direction: column;
}
.screen-top {
  padding: 40px 18px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.screen-top .hi {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.screen-top .bell {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--inkSoft);
  box-shadow: var(--shadow-card);
}
.screen-top .bell svg {
  width: 17px;
  height: 17px;
}
.screen-body {
  padding: 12px 18px 20px;
  overflow: hidden;
}
.hero-balance-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.hero-balance-card .lab {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--inkFaint);
}
.hero-balance-card .amt {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2px 0 4px;
}
.hero-balance-card .delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--positive);
  background: var(--positiveSoft);
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.hero-balance-card .delta svg {
  width: 13px;
  height: 13px;
}
/* mini sparkline */
.spark {
  margin-top: 12px;
  width: 100%;
  height: 46px;
  display: block;
}

/* credit card visual */
.ccard {
  border-radius: 20px;
  padding: 16px 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #28614a 0%, #1b4434 48%, #122e24 100%);
  box-shadow: var(--shadow-cardvis);
  margin-bottom: 12px;
}
.ccard::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      120% 90% at 18% 8%,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0) 55%
    ),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 38px
    );
  pointer-events: none;
}
.ccard .row1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.ccard .issuer {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
}
.ccard .net {
  font-size: 11px;
  opacity: 0.8;
  letter-spacing: 0.04em;
}
.ccard .chip {
  width: 30px;
  height: 22px;
  border-radius: 5px;
  margin: 18px 0 12px;
  background: linear-gradient(135deg, #ecd48f 0%, #c9a24a 100%);
  position: relative;
}
.ccard .num {
  font-size: 13px;
  letter-spacing: 0.14em;
  opacity: 0.92;
}
.ccard .row3 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
}
.ccard .cbal-lab {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.ccard .cbal {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}
/* autopay row */
.ap-row {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 13px 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ap-row .ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--primarySoft);
  color: var(--primaryDeep);
  display: grid;
  place-items: center;
  flex: none;
}
.ap-row .ic svg {
  width: 20px;
  height: 20px;
}
.ap-row .t {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ap-row .s {
  font-size: 12px;
  color: var(--inkSoft);
}
.ap-row .on {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--positive);
  background: var(--positiveSoft);
  padding: 4px 9px;
  border-radius: var(--r-pill);
}

/* ---------- Sections ---------- */
section {
  padding: 64px 0;
}
.sec-head {
  max-width: 65%;
  margin-bottom: 40px;
}
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 12px 0 12px;
}
.sec-head p {
  font-size: 17px;
  color: var(--inkSoft);
  margin: 0;
}

/* why a credit card — tinted full-width band, open (card-less) items */
.cc-band {
  background: var(--paper2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}
.benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.benefit .bic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--positive);
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
}
.benefit .bic svg {
  width: 21px;
  height: 21px;
}
.benefit h3 {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2px 0 5px;
}
.benefit p {
  margin: 0;
  font-size: 13.5px;
  color: var(--inkSoft);
  line-height: 1.5;
}
.benefit-note {
  margin: 24px 0 0;
  max-width: 64ch;
  font-size: 13px;
  color: var(--inkFaint);
}

/* trust band */
.trust {
  background: linear-gradient(160deg, #1b4434 0%, #122e24 100%);
  color: #fff;
  border-radius: var(--r-panel);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}
.trust::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 90% at 15% 5%,
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
  pointer-events: none;
}
.trust .label {
  color: rgba(255, 255, 255, 0.55);
}
.trust h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.02em;
  margin: 12px 0 28px;
  max-width: 80%;
}
.guards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.guard {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.guard .gic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #cfe6da;
  display: grid;
  place-items: center;
}
.guard .gic svg {
  width: 19px;
  height: 19px;
}
.guard h4 {
  margin: 2px 0 3px;
  font-size: 14.5px;
  font-weight: 600;
}
.guard p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
}
.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.step .n {
  flex: none;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--onPrimary);
  background: var(--primary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.step h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--inkSoft);
  line-height: 1.55;
}

/* final CTA */
.final {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.final h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 14px 0 16px;
}
.final p {
  font-size: 17px;
  color: var(--inkSoft);
  margin: 0 0 30px;
}
.final .waitlist {
  margin: 0 auto;
}
/* Centre the success card too (it's a max-width flex block, like the form). */
.final .success {
  margin: 0 auto;
  text-align: left;
}
.final .reassure {
  justify-content: center;
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  margin-top: 24px;
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer .brand .word {
  font-size: 18px;
}
footer .fines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 44em;
}
footer .fine {
  font-size: 12.5px;
  color: var(--inkFaint);
  margin: 0;
}
/* Briefly highlight the note when reached via the footnote link. */
footer .fine:target {
  color: var(--inkSoft);
}

@keyframes rise {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(0);
  }
}
.reveal {
  animation: rise 0.5s cubic-bezier(0.32, 0.72, 0, 1) both;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .phone-col {
    order: -1;
  }
  .benefits,
  .steps,
  .guards {
    grid-template-columns: 1fr;
  }
  .trust {
    padding: 36px 26px;
  }
  /* The 65% editorial column gets too narrow on smaller screens and wraps the
     headings awkwardly — give them the full width here. */
  .sec-head {
    max-width: 100%;
  }
}
@media (max-width: 560px) {
  .wrap {
    padding: 0 18px;
  }
  header.hero {
    padding: 44px 0 24px;
  }
  .hero-grid {
    gap: 20px;
  }
  /* Shrink the phone on phones so the heading is visible on first load.
     transform keeps the mock's proportions; the negative margin reclaims
     the vertical space the scale-down frees (phone box ≈ 624px tall). */
  .phone {
    transform: scale(0.62);
    transform-origin: top center;
    margin-bottom: -237px;
  }
  .field {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }
  .field input {
    padding: 6px 6px;
  }
  .btn {
    width: 100%;
  }
  .nav-right .nav-cta {
    display: none;
  }
  section {
    padding: 48px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Post-signup survey (modal) ---------- */
.survey-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  padding: 24px;
  background: rgba(18, 30, 24, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  /* Scroll the whole overlay when the card is taller than the viewport;
     `margin: auto` on the card centres it when it fits, without clipping. */
  overflow-y: auto;
}
.survey-overlay[hidden] {
  display: none;
}
/* Freeze the page behind the modal. */
body.survey-open {
  overflow: hidden;
}
.survey-card {
  position: relative;
  margin: auto;
  /* Fills the width on mobile (100% < cap); widens to the cap on larger
     screens, so the chips have room to spread into more columns. */
  width: min(100%, 720px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: 0 24px 64px rgba(12, 22, 17, 0.32);
  padding: 34px 32px 28px;
  animation: rise 0.34s cubic-bezier(0.32, 0.72, 0, 1) both;
}
.survey-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--inkFaint);
  cursor: pointer;
  transition:
    background 0.14s ease,
    color 0.14s ease;
}
.survey-close:hover {
  background: var(--paper2);
  color: var(--ink);
}
.survey-close svg {
  width: 18px;
  height: 18px;
}
.survey-card h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 10px 0 8px;
}
.survey-intro {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--inkSoft);
  margin: 0 0 24px;
}
.q {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
  min-width: 0; /* let long chip rows wrap instead of stretching the fieldset */
}
.q legend {
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.35;
}
.q .hint {
  font-weight: 500;
  color: var(--inkFaint);
  font-size: 13px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--lineStrong);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease;
}
.chip:hover {
  border-color: var(--primary);
}
.chip[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--onPrimary);
}
.chip:disabled {
  opacity: 0.45;
  cursor: default;
}
.chip:disabled:hover {
  border-color: var(--lineStrong);
}
.q-text {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--lineStrong);
  border-radius: var(--r-btn);
  padding: 11px 14px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.q-text::placeholder {
  color: var(--inkFaint);
}
.q-text:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primarySoft);
}
.q-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
}
.q-check input {
  margin-top: 1px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex: none;
}
.survey-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}
.btn-ghost {
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--inkSoft);
  background: transparent;
  border-radius: var(--r-btn);
  padding: 12px 16px;
}
.btn-ghost:hover {
  color: var(--ink);
}
.survey-done {
  display: none;
  align-items: flex-start;
  gap: 14px;
  background: var(--positiveSoft);
  border: 1px solid rgba(47, 138, 102, 0.22);
  border-radius: var(--r-card);
  padding: 18px 20px;
}
.survey-done.show {
  display: flex;
  animation: rise 0.34s cubic-bezier(0.32, 0.72, 0, 1) both;
}
.survey-done .check {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--positive);
}
.survey-done .check svg {
  width: 20px;
  height: 20px;
}
.survey-done h3 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--primaryDeep);
}
.survey-done p {
  margin: 0;
  font-size: 14px;
  color: #2c5a48;
}
@media (max-width: 560px) {
  .survey-card {
    padding: 24px 20px 22px;
  }
  .survey-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .btn-ghost {
    width: 100%;
  }
}
