/* Trusty Cancel customer surfaces. Light theme, V1.
   Ink on warm paper does the everyday work. Jade is spent only on the
   moment you are out. Borders over shadows, soft radii, calm space. */

:root {
  --ink: #16211b;
  --ink-soft: #2c3b33;
  --ink-muted: #5c6b62;
  --paper: #faf6ef;
  --raised: #f1ebdf;
  --line: #e2daca;
  --jade: #199d74;
  --jade-deep: #12805f;
  --jade-bright: #45d6a2;
  --night: #0e1613;
  --night-raised: #1a2620;
  --night-line: #2a3a32;
  --muted-on-dark: #9fb0a5;
  --st-found: #64798b;
  --st-sent: #4179b8;
  --st-delivered: #2e93a6;
  --st-waiting: #c2932f;
  --st-confirmed: #199d74;
  --st-attention: #c05b2e;
  --radius: 12px;
  --radius-lg: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --shadow-rest: 0 1px 2px rgba(22, 33, 27, 0.04);
  --shadow-lift: 0 2px 4px rgba(22, 33, 27, 0.05), 0 10px 26px rgba(22, 33, 27, 0.08);
  --shadow-float: 0 3px 8px rgba(22, 33, 27, 0.07), 0 18px 44px rgba(22, 33, 27, 0.12);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-settle: cubic-bezier(0.34, 1.3, 0.42, 1);
}

/* Base ------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--jade-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--jade-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(25, 157, 116, 0.22);
}

.shell {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

.page-pad {
  padding-block: 2.75rem 4rem;
}

.center-block {
  text-align: center;
  padding-block: 3rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 0;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  margin-bottom: 0.65rem;
}

.page-title {
  font-size: clamp(1.7rem, 3.2vw + 0.8rem, 2.5rem);
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.fine {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0;
}

/* Header and footer ------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 6px;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 28px;
  width: 28px;
}

.brand-word {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand:hover .brand-word {
  color: var(--ink-soft);
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .header-row {
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0 0.55rem;
    font-size: 0.9rem;
  }
}

.nav-link:hover {
  background: var(--raised);
  color: var(--ink);
}

.nav-button {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.8rem;
  margin-top: 3rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.3rem;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 140ms ease,
    box-shadow 200ms ease,
    transform 220ms var(--ease-settle);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-rest);
}

.btn-primary:hover {
  background: var(--ink-soft);
  color: var(--paper);
  box-shadow: var(--shadow-lift);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--raised);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--raised);
}

.btn-lg {
  min-height: 54px;
  padding-inline: 2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

.link-button {
  border: 0;
  background: none;
  padding: 0.4rem 0;
  font: inherit;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  min-height: 44px;
}

.link-button:hover {
  color: var(--st-attention);
}

/* Chips ------------------------------------------------------------------ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.chip-found {
  color: #46596b;
  background: color-mix(in srgb, var(--st-found) 14%, var(--paper));
}

.chip-sent {
  color: #2d5c93;
  background: color-mix(in srgb, var(--st-sent) 14%, var(--paper));
}

.chip-delivered {
  color: #1f7181;
  background: color-mix(in srgb, var(--st-delivered) 14%, var(--paper));
}

.chip-waiting {
  color: #8f6a1c;
  background: color-mix(in srgb, var(--st-waiting) 16%, var(--paper));
}

.chip-confirmed {
  color: var(--jade-deep);
  background: color-mix(in srgb, var(--st-confirmed) 14%, var(--paper));
}

.chip-attention {
  color: #984620;
  background: color-mix(in srgb, var(--st-attention) 14%, var(--paper));
}

.chip-neutral {
  color: var(--ink-muted);
  background: var(--raised);
}

/* Cards ------------------------------------------------------------------ */

.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-block: 1.25rem;
  box-shadow: var(--shadow-rest);
}

.card-title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

/* Forms ------------------------------------------------------------------ */

.field {
  margin-bottom: 1.05rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.label-optional {
  font-weight: 500;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--jade-deep);
  outline-offset: 1px;
  border-color: var(--jade-deep);
}

.hint {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin: 0.3rem 0 0;
}

.field-error {
  font-size: 0.84rem;
  color: var(--st-attention);
  font-weight: 600;
  margin: 0.3rem 0 0;
}

.field-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.field-check input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin-top: 0.2rem;
  accent-color: var(--jade-deep);
}

.field-check label {
  font-weight: 500;
  margin: 0;
}

.form-status {
  min-height: 1.3em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0.7rem 0 0;
}

.form-status.is-error {
  color: var(--st-attention);
}

fieldset.savings-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.6rem;
  margin: 1.4rem 0;
}

.savings-fieldset legend {
  font-weight: 650;
  font-size: 0.95rem;
  padding-inline: 0.4rem;
}

.savings-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Hero and search -------------------------------------------------------- */

.hero {
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(90% 65% at 50% 0%, rgba(255, 253, 248, 0.85), rgba(255, 253, 248, 0) 62%),
    linear-gradient(180deg, var(--paper) 60%, #f2ecdf 100%);
}

.hero-title {
  font-size: clamp(2.3rem, 5.2vw + 1rem, 4.1rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

.hero-note {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-top: 1.4rem;
}

.search {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  text-align: left;
}

.search-input {
  width: 100%;
  min-height: 62px;
  padding: 0.9rem 1.3rem;
  font: inherit;
  font-size: 1.15rem;
  color: var(--ink);
  background: #fffdf8;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-rest);
  transition:
    box-shadow 220ms ease,
    border-color 220ms ease,
    transform 220ms var(--ease-out);
}

.search-input::placeholder {
  color: var(--ink-muted);
}

.search-input:focus-visible {
  outline: none;
  border-color: var(--jade-deep);
  box-shadow:
    0 0 0 4px rgba(25, 157, 116, 0.14),
    var(--shadow-lift);
  transform: translateY(-1px);
}

.search::after {
  content: '';
  position: absolute;
  top: 22px;
  right: 1.15rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--jade-deep);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.search.is-loading::after {
  opacity: 1;
  animation: search-spin 700ms linear infinite;
}

@keyframes search-spin {
  to {
    transform: rotate(360deg);
  }
}

.search-results {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.45rem);
  z-index: 10;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  max-height: 330px;
  overflow-y: auto;
}

.search-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  padding: 0.55rem 0.9rem 0.25rem;
}

.search-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: background 120ms ease;
}

.search-option .option-name {
  font-weight: 600;
}

.search-option .option-go {
  color: var(--ink-muted);
  font-weight: 500;
  opacity: 0;
  transform: translateX(-3px);
  transition:
    opacity 140ms ease,
    transform 140ms var(--ease-out);
}

.search-option:hover .option-go,
.search-option.is-active .option-go {
  opacity: 1;
  transform: translateX(0);
}

.search-option:hover,
.search-option.is-active {
  background: var(--raised);
}

@media (prefers-reduced-motion: no-preference) {
  .search-results {
    animation: results-in 200ms var(--ease-out) backwards;
  }

  .search-option {
    animation: option-in 260ms var(--ease-out) backwards;
    animation-delay: calc(var(--stagger, 0) * 28ms);
  }
}

@keyframes results-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.99);
  }
}

@keyframes option-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.chip-kind-executable {
  color: var(--jade-deep);
  background: color-mix(in srgb, var(--jade) 13%, #fffdf8);
}

.chip-kind-guided {
  color: #1f7181;
  background: color-mix(in srgb, var(--st-delivered) 14%, #fffdf8);
}

.chip-kind-mapping {
  color: #8f6a1c;
  background: color-mix(in srgb, var(--st-waiting) 16%, #fffdf8);
}

.chip-kind-restricted {
  color: var(--ink-muted);
  background: var(--raised);
}

.research-card {
  text-align: left;
  max-width: 560px;
  margin-inline: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title {
    animation: rise-in 620ms var(--ease-out) backwards;
  }

  .hero .search {
    animation: rise-in 620ms var(--ease-out) backwards;
    animation-delay: 110ms;
  }

  .hero-note {
    animation: rise-in 620ms var(--ease-out) backwards;
    animation-delay: 220ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Beats band ------------------------------------------------------------- */

.beats {
  position: relative;
  background: linear-gradient(180deg, #131e18 0%, var(--night) 160px);
  color: var(--paper);
  padding-block: clamp(3.5rem, 7.5vw, 5.5rem);
}

.beats::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 246, 239, 0.14), transparent);
}

.beats-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.beats h2 {
  font-size: clamp(1.6rem, 2.6vw + 0.8rem, 2.3rem);
  letter-spacing: -0.02em;
  color: var(--paper);
}

.beat-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  color: var(--muted-on-dark);
}

.beat-list li {
  padding-left: 1.15rem;
  position: relative;
}

.beat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade-bright);
}

.beat-list strong {
  color: var(--paper);
  font-weight: 650;
}

.beats-close {
  margin: 1.6rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--night-line);
  color: var(--muted-on-dark);
}

.beats-close strong {
  color: var(--jade-bright);
  font-weight: 650;
}

/* Scroll reveal for the beats copy (classes applied by JS only). */

.beats-prep #beats-title,
.beats-prep .beat-list li,
.beats-prep .beats-close {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 560ms ease,
    transform 560ms var(--ease-out);
}

.beats-in #beats-title,
.beats-in .beat-list li,
.beats-in .beats-close {
  opacity: 1;
  transform: none;
}

.beats-in .beat-list li:nth-child(1) {
  transition-delay: 100ms;
}

.beats-in .beat-list li:nth-child(2) {
  transition-delay: 200ms;
}

.beats-in .beat-list li:nth-child(3) {
  transition-delay: 300ms;
}

.beats-in .beat-list li:nth-child(4) {
  transition-delay: 400ms;
}

.beats-in .beats-close {
  transition-delay: 540ms;
}

.demo-card.is-resetting .demo-step,
.demo-card.is-resetting .demo-step * {
  transition-duration: 0.55s;
  transition-timing-function: ease-in-out;
}

.demo-card {
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow:
    0 1px 0 rgba(250, 246, 239, 0.05) inset,
    0 18px 44px rgba(0, 0, 0, 0.28);
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.demo-merchant {
  font-weight: 650;
  color: var(--paper);
}

.demo-head .chip-confirmed {
  color: var(--jade-bright);
  background: rgba(69, 214, 162, 0.14);
}

.demo-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.demo-step {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding-block: 0.55rem;
  position: relative;
  color: var(--muted-on-dark);
  font-size: 0.95rem;
}

.demo-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11.25px;
  top: calc(50% + 10px);
  bottom: -50%;
  width: 1.5px;
  background: var(--night-line);
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  justify-self: center;
}

.tone-sent .demo-dot {
  background: var(--st-sent);
}

.tone-delivered .demo-dot {
  background: var(--st-delivered);
}

.tone-confirmed .demo-dot {
  background: var(--jade-bright);
}

.demo-label {
  color: var(--paper);
  font-weight: 600;
}

.demo-when {
  font-size: 0.82rem;
}

.demo-exit {
  justify-self: center;
  display: block;
  margin: -5px 0;
  overflow: visible;
}

.demo-final .demo-when {
  color: var(--jade-bright);
  font-weight: 600;
}

/* Proof card choreography (classes applied by JS only, motion-safe). ------ */

.demo-travel {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--jade-bright);
  box-shadow: 0 0 14px rgba(69, 214, 162, 0.55);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 640ms cubic-bezier(0.35, 0.7, 0.25, 1),
    opacity 220ms ease;
}

.demo-travel.no-trans {
  transition: opacity 220ms ease;
}

.demo-travel.is-visible {
  opacity: 1;
}

.is-prepped .demo-step .demo-label,
.is-prepped .demo-step .demo-when {
  transition:
    color 360ms ease,
    opacity 360ms ease,
    transform 360ms var(--ease-out);
}

.is-prepped .demo-step:not(.is-on) .demo-label {
  color: var(--muted-on-dark);
}

.is-prepped .demo-step:not(.is-on) .demo-when {
  opacity: 0;
  transform: translateX(5px);
}

.is-prepped .demo-step:not(.is-on) .demo-dot {
  background: var(--night-line);
  transform: scale(0.45);
  transition:
    background 300ms ease,
    transform 300ms ease;
}

.is-prepped .demo-step.is-on .demo-dot {
  animation: demo-dot-pop 460ms var(--ease-settle) both;
}

@keyframes demo-dot-pop {
  0% {
    transform: scale(0.45);
  }
  60% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.is-prepped .dx-ring {
  stroke-dasharray: 36.4;
  stroke-dashoffset: 36.4;
}

.is-prepped .dx-dot,
.is-prepped .dx-halo {
  opacity: 0;
}

.is-prepped.is-out .dx-ring {
  animation: ring-draw 850ms cubic-bezier(0.5, 0, 0.3, 1) forwards;
}

.is-prepped.is-out .dx-dot {
  transform-origin: center;
  animation: dot-escape 1200ms cubic-bezier(0.3, 0.9, 0.35, 1.15) both;
  animation-delay: 650ms;
}

.is-prepped.is-out .dx-halo {
  animation: dx-halo-pulse 900ms ease-out both;
  animation-delay: 1550ms;
}

@keyframes dx-halo-pulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
    transform-origin: 19.75px 12px;
  }
  100% {
    opacity: 0;
    transform: scale(2.6);
    transform-origin: 19.75px 12px;
  }
}

.is-prepped .demo-final.is-on .demo-when {
  transition-delay: 1450ms;
}

.is-prepped .demo-chip {
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 420ms ease,
    transform 420ms var(--ease-settle);
}

.is-prepped.is-done .demo-chip {
  opacity: 1;
  transform: none;
}

/* Merchant page ---------------------------------------------------------- */

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.4rem 0;
}

.fact {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  min-width: 150px;
}

.fact dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  font-weight: 600;
}

.fact dd {
  margin: 0.15rem 0 0;
  font-weight: 650;
}

.fact-stack {
  flex-direction: column;
  gap: 0.6rem;
}

.field-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  padding: 0;
}

.field-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 550;
}

.cta-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
}

.cta-card .btn-lg {
  margin-top: 1.2rem;
}

/* Tiers ------------------------------------------------------------------ */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-block: 1.1rem;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    box-shadow 200ms ease,
    transform 220ms var(--ease-out);
}

.tier-static .tier-card {
  cursor: default;
}

label.tier-card:hover {
  border-color: var(--ink-muted);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.tier-card:has(input:checked) {
  border-color: var(--ink);
  background: #fffdf8;
}

.tier-card:has(input:focus-visible) {
  outline: 2px solid var(--jade-deep);
  outline-offset: 2px;
}

.tier-name {
  font-weight: 650;
}

.tier-price {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tier-summary {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.tier-tag {
  position: absolute;
  top: -0.7rem;
  right: 0.9rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

/* Auth ------------------------------------------------------------------- */

.auth-shell {
  display: flex;
  justify-content: center;
  padding-block: clamp(3rem, 9vw, 6rem);
}

.auth-card {
  width: min(420px, 100%);
  text-align: center;
  padding: 2rem 1.8rem;
}

.auth-card form {
  text-align: left;
  margin-top: 1.2rem;
}

.auth-title {
  font-size: 1.6rem;
  margin: 0.8rem 0 0.2rem;
}

.dev-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: color-mix(in srgb, var(--st-waiting) 14%, var(--paper));
  border: 1px dashed var(--st-waiting);
  border-radius: var(--radius);
  padding: 0.55rem 0.9rem;
  margin-bottom: 1rem;
}

.dev-code-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8f6a1c;
}

.dev-code code {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.test-rail-chip {
  margin-inline: auto;
}

/* Dashboard -------------------------------------------------------------- */

.savings-banner {
  font-size: 1.05rem;
  background: color-mix(in srgb, var(--jade) 9%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--jade) 35%, var(--line));
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  margin-block: 1.2rem;
  color: var(--ink-soft);
}

.savings-figure {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--jade-deep);
  letter-spacing: -0.01em;
}

.case-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.case-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-rest);
  transition:
    border-color 140ms ease,
    box-shadow 200ms ease,
    transform 220ms var(--ease-out);
}

.case-row:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}

.case-row-main {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.case-merchant {
  font-weight: 650;
  font-size: 1.05rem;
}

.case-guide {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.case-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}

.case-date {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.empty-state p {
  max-width: 40ch;
  margin-inline: auto;
}

/* Guide banner ----------------------------------------------------------- */

.guide-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
}

.guide-banner > div {
  flex: 1;
  min-width: 0;
}

.guide-mark {
  flex-shrink: 0;
}

.guide-headline {
  font-weight: 650;
  margin: 0;
}

.guide-detail {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .guide-headline {
    animation: guide-in 480ms var(--ease-out) backwards;
    animation-delay: 60ms;
  }

  .guide-detail {
    animation: guide-in 480ms var(--ease-out) backwards;
    animation-delay: 160ms;
  }
}

@keyframes guide-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* Stepper ---------------------------------------------------------------- */

.stepper {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
}

.step-active {
  background: #fffdf8;
  border-color: var(--ink);
}

.step-next {
  opacity: 0.72;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-done .step-num {
  background: var(--jade-deep);
  border-color: var(--jade-deep);
  color: var(--paper);
}

.step-title {
  font-size: 1.1rem;
  margin: 0;
}

.step-summary {
  color: var(--ink-muted);
  margin: 0;
  padding-left: calc(30px + 0.8rem);
}

.step-summary p {
  margin: 0 0 0.4rem;
}

.edit-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--jade-deep);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.edit-details[open] {
  margin-top: 0.6rem;
}

.authorization-text {
  margin: 0 0 1.1rem;
  padding: 1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.close-request {
  margin-top: 1.8rem;
}

/* Live case -------------------------------------------------------------- */

.live-head {
  margin-bottom: 0.8rem;
}

.live-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.live-title-row .page-title {
  margin-bottom: 0.3rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  display: flex;
  gap: 0.95rem;
  position: relative;
  padding-block: 0.55rem;
}

@media (prefers-reduced-motion: no-preference) {
  .timeline-item {
    animation: rise-in 440ms var(--ease-out) backwards;
  }

  .timeline-item:nth-child(1) {
    animation-delay: 60ms;
  }

  .timeline-item:nth-child(2) {
    animation-delay: 130ms;
  }

  .timeline-item:nth-child(3) {
    animation-delay: 200ms;
  }

  .timeline-item:nth-child(4) {
    animation-delay: 270ms;
  }

  .timeline-item:nth-child(5) {
    animation-delay: 340ms;
  }

  .timeline-item:nth-child(n + 6) {
    animation-delay: 400ms;
  }
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 5.25px;
  top: calc(0.55rem + 18px);
  bottom: -0.55rem;
  width: 1.5px;
  background: var(--line);
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
  background: var(--st-found);
}

.timeline-item.tone-sent .timeline-dot {
  background: var(--st-sent);
}

.timeline-item.tone-delivered .timeline-dot {
  background: var(--st-delivered);
}

.timeline-item.tone-waiting .timeline-dot {
  background: var(--st-waiting);
}

.timeline-item.tone-confirmed .timeline-dot {
  background: var(--st-confirmed);
}

.timeline-item.tone-attention .timeline-dot {
  background: var(--st-attention);
}

.timeline-item.tone-neutral .timeline-dot {
  background: var(--ink-muted);
}

.timeline-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.8rem;
}

.timeline-label {
  font-weight: 650;
}

.timeline-when {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.dispatch-list,
.evidence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.dispatch-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  align-items: baseline;
}

.dispatch-method {
  font-weight: 600;
}

.dispatch-tracking {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.dispatch-when {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.evidence-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}

.evidence-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.evidence-link {
  font-weight: 600;
}

.evidence-when {
  font-size: 0.85rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}

/* Completion moment ------------------------------------------------------ */

.completion {
  text-align: center;
  padding-block: 2.5rem 1.5rem;
}

.exit-anim {
  display: inline-block;
  margin-bottom: 1.2rem;
}

.exit-anim svg {
  overflow: visible;
}

.completion-title {
  font-size: clamp(2.2rem, 4.5vw + 1rem, 3.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  animation: completion-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 1.35s;
}

.completion-check {
  color: var(--jade);
}

.completion-merchant {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
  animation: completion-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 1.5s;
}

.completion-date {
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
  animation: completion-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 1.6s;
}

.completion-savings {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--jade-deep);
  background: color-mix(in srgb, var(--jade) 10%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--jade) 35%, var(--line));
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  margin: 0.5rem 0 1.2rem;
  animation: completion-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 1.75s;
}

.exit-ring {
  stroke-dasharray: 36.4;
  stroke-dashoffset: 36.4;
  animation: ring-draw 850ms cubic-bezier(0.5, 0, 0.3, 1) forwards;
}

.exit-dot {
  transform-origin: center;
  animation: dot-escape 1200ms cubic-bezier(0.3, 0.9, 0.35, 1.15) both;
  animation-delay: 650ms;
}

.exit-halo {
  opacity: 0;
  animation: halo-pulse 900ms ease-out both;
  animation-delay: 1550ms;
}

@keyframes ring-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dot-escape {
  0% {
    transform: translateX(-9.5px) scale(0.35);
    opacity: 0;
  }
  30% {
    transform: translateX(-9.5px) scale(1);
    opacity: 1;
  }
  78% {
    transform: translateX(0.8px) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes halo-pulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
    transform-origin: 19.75px 12px;
  }
  100% {
    opacity: 0;
    transform: scale(2.6);
    transform-origin: 19.75px 12px;
  }
}

@keyframes completion-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 780px) {
  .beats-row {
    grid-template-columns: 1fr;
  }

  .savings-inputs {
    grid-template-columns: 1fr;
  }

  .case-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-row-side {
    flex-direction: row;
    align-items: center;
  }
}

/* Reduced motion --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .exit-ring {
    stroke-dashoffset: 0;
  }
}
