/* FluxWorks design-system components for the TextBack page: tokens + .fw-* rules + phone demo. No element resets. Source: ~/.claude/skills/fluxworks-design/static-shell.css */
:root{--fw-bg:#f3f4f7;--fw-surface:#e9ebf1;--fw-ink:#14171d;--fw-muted:#5f6672;--fw-border:#dcdfe6;--fw-accent:#1a45c4;--fw-accent-fg:#ffffff;--fw-accent-tint:rgba(26,69,196,0.1);--fw-accent-line:rgba(26,69,196,0.3);--fw-font-display:"Archivo",system-ui,sans-serif;--fw-font-body:"Archivo",system-ui,sans-serif;--fw-radius:0.375rem;--fw-radius-lg:0.5rem;--fw-container:72rem}
h1,
h2,
h3,
.fw-display,
.fw-title{
  font-family: var(--fw-font-display);
  font-weight: 600;
  margin: 0;
  color: var(--fw-ink);
}
h1,
.fw-display{
  font-size: clamp(2.25rem, 5vw + 1rem, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2,
.fw-title{
  font-size: clamp(1.625rem, 2vw + 1rem, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.fw-lead{
  color: var(--fw-muted);
  font-size: 1.125rem;
}
.fw-muted{
  color: var(--fw-muted);
}
.fw-sm{
  font-size: 0.875rem;
}
.fw-xs{
  font-size: 0.75rem;
}
.fw-eyebrow{
  color: var(--fw-accent);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.fw-container{
  width: 100%;
  max-width: var(--fw-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px){.fw-container{
    padding: 0 2rem;
  }}
.fw-section{
  padding: 4rem 0;
}
.fw-section--surface{
  background: var(--fw-surface);
  border-top: 1px solid var(--fw-border);
  border-bottom: 1px solid var(--fw-border);
}
@media (min-width: 640px){.fw-section{
    padding: 6rem 0;
  }}
.fw-section__head{
  max-width: 42rem;
  margin-bottom: 3rem;
}
.fw-section__head .fw-lead{
  margin-top: 1rem;
}
.fw-grid{
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px){.fw-grid--2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }}
@media (min-width: 768px){.fw-grid--5{
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }}
@media (min-width: 1024px){.fw-grid--3{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
.fw-hero{
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
  }}
.fw-hero{
  display: grid;
  gap: 3rem;
}
.fw-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: var(--fw-radius);
  border: 1px solid transparent;
  font: 500 0.9375rem/1 var(--fw-font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms;
  background: var(--fw-accent);
  color: var(--fw-accent-fg);
}
.fw-btn:hover{
  background: #1439a8;
}
.fw-btn--secondary{
  background: var(--fw-bg);
  color: var(--fw-ink);
  border-color: var(--fw-border);
}
.fw-btn--secondary:hover{
  background: var(--fw-surface);
}
.fw-btn--lg{
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}
.fw-btn--outline-light{
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.fw-btn--outline-light:hover{
  background: rgba(255, 255, 255, 0.1);
}
.fw-actions{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px){.fw-actions{
    flex-direction: row;
  }}
.fw-card{
  background: var(--fw-bg);
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.fw-card--surface{
  background: var(--fw-surface);
}
.fw-card--photo{
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.fw-card--photo img{
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
}
.fw-card--photo .fw-card__body{
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.fw-card__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fw-card__num{
  font-family: var(--fw-font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fw-muted);
}
.fw-chip{
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.625rem;
  border-radius: 999px;
  border: 1px solid var(--fw-border);
  background: var(--fw-bg);
  color: var(--fw-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.fw-chip--textback{
  background: var(--fw-accent-tint);
  border-color: var(--fw-accent-line);
  color: var(--fw-accent);
}
.fw-chip--you{
  background: var(--fw-ink);
  border-color: rgba(23, 23, 23, 0.2);
  color: #fff;
}
.fw-lane{
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.fw-lane li{
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fw-lane span{
  border-radius: 999px;
  border: 1px solid var(--fw-border);
  background: var(--fw-surface);
  padding: 0.25rem 0.75rem;
  color: var(--fw-ink);
}
.fw-lane li:last-child span{
  background: var(--fw-accent-tint);
  border-color: var(--fw-accent-line);
  color: var(--fw-accent);
}
.fw-lane li + li::before{
  content: "→";
  color: var(--fw-muted);
  order: -1;
}
.fw-gate{
  margin-top: 2rem;
  background: var(--fw-bg);
  border: 1px solid rgba(23, 23, 23, 0.15);
  border-left: 4px solid var(--fw-ink);
  border-radius: var(--fw-radius-lg);
  padding: 1.5rem;
}
.fw-gate h3{
  font-size: 1.125rem;
}
.fw-gate p{
  color: var(--fw-muted);
  margin-top: 0.5rem;
  max-width: 48rem;
}
.fw-details{
  border-top: 1px solid var(--fw-border);
  border-bottom: 1px solid var(--fw-border);
  max-width: 48rem;
}
.fw-details details + details{
  border-top: 1px solid var(--fw-border);
}
.fw-details summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 500;
}
.fw-details summary::-webkit-details-marker{
  display: none;
}
.fw-details summary::after{
  content: "+";
  color: var(--fw-muted);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 150ms;
}
.fw-details details[open] summary::after{
  transform: rotate(45deg);
}
.fw-details details > div,
.fw-details details > p{
  color: var(--fw-muted);
  padding-bottom: 1.25rem;
  max-width: 42rem;
}
.fw-band{
  background: var(--fw-ink);
  color: #fff;
  padding: 4rem 0;
}
@media (min-width: 640px){.fw-band{
    padding: 5rem 0;
  }}
.fw-band h2{
  color: #fff;
}
.fw-band .fw-lead{
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}
.fw-band > .fw-container > div{
  max-width: 42rem;
}
@keyframes fw-rise{
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fw-rise{
  animation: fw-rise 260ms ease-out both;
}
@media (prefers-reduced-motion: reduce){.fw-rise{
    animation: none;
  }}
/* phone demo */
    .fw-hero-copy .fw-lead { margin-top: 1.5rem; max-width: 36rem; }
    .fw-honesty { margin-top: 2rem; max-width: 42rem; }
    .fw-demo { width: 100%; max-width: 24rem; margin: 0 auto; }
    .fw-demo__frame { background: var(--fw-surface); border: 1px solid var(--fw-border); border-radius: 2rem; padding: .75rem; box-shadow: 0 24px 60px -30px rgba(0,0,0,.35); }
    .fw-demo__screen { background: var(--fw-bg); border: 1px solid var(--fw-border); border-radius: 1.5rem; overflow: hidden; display: flex; flex-direction: column; }
    .fw-demo__head { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--fw-border); }
    .fw-demo__avatar { width: 2rem; height: 2rem; border-radius: 999px; background: var(--fw-accent-tint); color: var(--fw-accent); display: grid; place-items: center; font-size: .75rem; font-weight: 600; }
    .fw-demo__name { font-size: .875rem; font-weight: 500; }
    .fw-demo__log { height: 26rem; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
    @media (min-width: 640px) { .fw-demo__log { height: 28rem; } }
    .fw-demo__msg { display: flex; flex-direction: column; gap: .25rem; }
    .fw-demo__msg--customer { align-items: flex-start; }
    .fw-demo__msg--textback, .fw-demo__msg--you { align-items: flex-end; }
    .fw-demo__badge { padding: 0 .25rem; font-size: .65rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fw-muted); }
    .fw-demo__msg--textback .fw-demo__badge { color: var(--fw-accent); }
    .fw-demo__msg--you .fw-demo__badge { color: var(--fw-ink); }
    .fw-demo__bubble { max-width: 85%; padding: .5rem .875rem; font-size: .875rem; line-height: 1.35; border-radius: 1rem; }
    .fw-demo__msg--customer .fw-demo__bubble { background: #fff; color: var(--fw-ink); border: 1px solid var(--fw-border); border-bottom-left-radius: .375rem; }
    .fw-demo__msg--textback .fw-demo__bubble { background: var(--fw-accent); color: var(--fw-accent-fg); border-bottom-right-radius: .375rem; }
    .fw-demo__msg--you .fw-demo__bubble { background: var(--fw-ink); color: #fff; border-bottom-right-radius: .375rem; }
    .fw-demo__pill { align-self: center; display: inline-flex; align-items: center; gap: .375rem; border-radius: 999px; padding: .25rem .75rem; font-size: .7rem; }
    .fw-demo__pill--missed { background: var(--fw-surface); color: var(--fw-muted); border: 1px solid var(--fw-border); }
    .fw-demo__pill--missed::before { content: ""; width: .375rem; height: .375rem; border-radius: 999px; background: #ef4444; }
    .fw-demo__pill--booked { background: var(--fw-accent-tint); color: var(--fw-accent); font-weight: 500; }
    .fw-demo__pill--booked::before { content: "✓"; font-weight: 700; }
    .fw-demo__handoff { display: flex; align-items: center; gap: .75rem; margin: .25rem 0; font-size: .7rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fw-ink); }
    .fw-demo__handoff::before, .fw-demo__handoff::after { content: ""; flex: 1; border-top: 1px dashed var(--fw-border); }
    .fw-demo__typing { display: inline-flex; gap: .25rem; padding: .625rem .875rem; }
    .fw-demo__typing i { width: .375rem; height: .375rem; border-radius: 999px; background: currentColor; opacity: .7; animation: fw-dot 1s ease-in-out infinite; }
    .fw-demo__typing i:nth-child(2) { animation-delay: 150ms; }
    .fw-demo__typing i:nth-child(3) { animation-delay: 300ms; }
    .fw-demo__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
    .fw-demo__replay { background: none; border: 0; padding: 0; color: var(--fw-accent); font: 500 .875rem var(--fw-font-body); cursor: pointer; text-underline-offset: 4px; }
    .fw-demo__replay:hover { text-decoration: underline; }
    .fw-demo__replay:disabled { opacity: .5; cursor: default; text-decoration: none; }
    @keyframes fw-dot { 0%, 80%, 100% { transform: none; opacity: .5; } 40% { transform: translateY(-3px); opacity: 1; } }
    @media (prefers-reduced-motion: reduce) { .fw-demo__typing i { animation: none; } }

/* images inside design-system cards (no global img reset in this file) */
.fw-card img{display:block;max-width:100%;height:auto}
.fw-card--photo img{aspect-ratio:3/2;width:100%;height:auto;object-fit:cover}

/* beat rebuild.css `a:hover{color:var(--green)}` on anchor buttons */
a.fw-btn:hover,a.fw-btn:focus-visible{color:var(--fw-accent-fg)}
a.fw-btn--secondary:hover,a.fw-btn--secondary:focus-visible{color:var(--fw-ink)}
a.fw-btn--outline-light:hover,a.fw-btn--outline-light:focus-visible{color:#fff}
.fw-details summary:hover{color:var(--fw-ink)}

/* redesign (dpslaw-modeled) shell: Archivo display, cobalt palette; shapes stay as on the first TextBack page */
.fw-section h1,.fw-section h2,.fw-section h3,.fw-band h2{font-weight:800;letter-spacing:-0.02em}
.fw-card,.fw-card--surface{background:#fff;border:1px solid var(--fw-border);border-radius:var(--fw-radius-lg)}
.fw-card--surface{background:var(--fw-surface)}
.fw-gate{background:#fff;border:1px solid rgba(20,23,29,0.15);border-left:4px solid var(--fw-ink);border-radius:var(--fw-radius-lg)}
.fw-demo__frame{border-radius:2rem;background:var(--fw-surface);border:1px solid var(--fw-border);box-shadow:0 24px 60px -30px rgba(0,0,0,.35)}
.fw-demo__screen{border-radius:1.5rem;background:#fff}
.fw-btn{font-weight:700}
/* the booked appointment that ends the thread */
.fw-demo__appt{align-self:stretch;margin:.25rem .25rem 0;border:1px solid var(--fw-accent-line);background:var(--fw-accent-tint);border-radius:.75rem;padding:.6rem .75rem;display:grid;grid-template-columns:auto 1fr;gap:.25rem .6rem;align-items:center}
.fw-demo__appt-icon{grid-row:1/3;width:2rem;height:2rem;border-radius:.5rem;background:var(--fw-accent);color:#fff;display:grid;place-items:center;font-size:.7rem;font-weight:700;letter-spacing:.04em}
.fw-demo__appt-title{font-size:.8rem;font-weight:700;color:var(--fw-ink)}
.fw-demo__appt-text{font-size:.75rem;color:var(--fw-muted);line-height:1.3}
