/* Cutman — app-screen + feature-page components.
   Loaded on the feature pages on top of styles.css. Uses the same six tokens
   plus surfaceLifted (#1F1F1F) for elevated app surfaces. */

:root {
  --surface-lifted: #1F1F1F;
}

/* shared blink for the morph red-period cursor */
@keyframes cmBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.18; } }

/* ============================================================
   FEATURE PAGE — hero + split layout
   ============================================================ */

.feat-hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px);
}
.feat-eyebrow {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}
.feat-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 36px;
  max-width: 16ch;
}
@media (min-width: 880px) {
  .feat-hero .feat-title { font-size: clamp(44px, 4.6vw, 64px); }
}
.feat-title .dot { color: var(--red); }
.feat-lead {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "SOFT" 30, "opsz" 144, "wght" 400;
  font-weight: 400;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--text);
  max-width: 40ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}

/* text + device, side by side */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split.flip { grid-template-columns: 0.95fr 1.05fr; }
  .split.flip .split-text { order: 2; }
}
.split-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   PHONE FRAME
   ============================================================ */

.phone {
  position: relative;
  width: 312px;
  max-width: 84vw;
  aspect-ratio: 312 / 644;
  border-radius: 46px;
  background: linear-gradient(160deg, #1a1a1a, #050505);
  padding: 11px;
  box-shadow:
    0 1px 0 rgba(242,239,233,0.10) inset,
    0 50px 120px -50px rgba(0,0,0,0.95),
    0 0 0 1px rgba(0,0,0,0.6);
}
.phone.glow {
  box-shadow:
    0 1px 0 rgba(242,239,233,0.10) inset,
    0 50px 120px -50px rgba(0,0,0,0.95),
    0 0 0 1px rgba(0,0,0,0.6),
    0 0 90px -20px var(--redGlow, rgba(122,31,31,0.45));
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* dynamic-island pill */
.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: #050505;
  z-index: 6;
}

.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 22px 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.app-status .dots { display: flex; gap: 4px; align-items: center; color: var(--muted); font-size: 11px; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 14px;
  border-bottom: 1px solid var(--border, rgba(242,239,233,0.08));
}
.app-lockup { display: flex; align-items: center; gap: 9px; }
.app-lockup svg { width: 22px; height: 22px; display: block; }
.app-word {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: 0.03em;
  line-height: 1;
}
.app-word .cut { color: var(--red); }
.app-word .man { color: var(--text); }

.mode-pill {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(122,31,31,0.32);
  border: 1px solid rgba(122,31,31,0.7);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============================================================
   CHAT SCREEN
   ============================================================ */

.chat-thread {
  flex: 1;
  overflow: hidden;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  max-width: 82%;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 16px;
}
.msg-me {
  align-self: flex-end;
  background: var(--surface);
  border: 1px solid rgba(242,239,233,0.08);
  color: var(--text);
  border-bottom-right-radius: 5px;
}
.msg-cm {
  align-self: flex-start;
  background: var(--surface-lifted);
  color: var(--text);
  border-bottom-left-radius: 5px;
  position: relative;
}
.msg-cm::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--red);
  border-radius: 2px;
}
.msg-cm { padding-left: 16px; }
.msg-988 {
  align-self: flex-start;
  margin-top: -4px;
}
.btn-988 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 13px;
  border-radius: 8px;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
  margin-top: auto;
}
.chip {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border, rgba(242,239,233,0.08));
  padding: 9px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}
.chip:hover { border-color: rgba(232,146,60,0.5); background: rgba(232,146,60,0.06); }

/* morph line strip + input */
.chat-foot { padding: 0 14px 16px; }
.morph-strip {
  position: relative;
  height: 56px;
  margin: 0 2px -6px;
}
/* Solid amber pill composer (matches the app's MorphInputBar): near-black
   outline, dark text on amber, with a red circle send button straddling the
   right edge. No grey field. */
.chat-inputbar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--amber);
  border: 2px solid var(--bg);
  border-radius: 22px;
  padding: 9px 30px 9px 15px;
  min-height: 42px;
}
.chat-inputbar .ph,
.chat-inputbar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #0A0A0A;
  font: inherit;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-inputbar .ph { color: rgba(10, 10, 10, 0.5); }
.chat-inputbar input::placeholder { color: rgba(10, 10, 10, 0.5); }
.send-btn {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--red);
  border: 2px solid var(--bg);
  color: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 140ms var(--ease-out), transform 120ms var(--ease-out);
}
.send-btn:hover { filter: brightness(1.08); }
.send-btn:active { transform: translateY(-50%) scale(0.96); }
.send-btn svg { width: 17px; height: 17px; }

/* ============================================================
   DRAFTS — compose + simulation
   ============================================================ */

.draft-screen { flex: 1; overflow: hidden; display: flex; flex-direction: column; padding: 16px 16px 14px; }
.to-pill {
  align-self: flex-start;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border, rgba(242,239,233,0.08));
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.to-pill b { color: var(--red); font-weight: 600; }
.draft-text {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "SOFT" 30, "opsz" 144, "wght" 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.draft-divider {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
}
.draft-divider::after { content: ""; flex: 1; height: 1px; background: var(--border, rgba(242,239,233,0.08)); }

.path-stack { display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.path-card {
  background: var(--surface);
  border: 1px solid var(--border, rgba(242,239,233,0.08));
  border-radius: 12px;
  padding: 12px 13px;
}
.path-rank {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 7px;
}
.path-reply {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 8px;
}
.path-outcome {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.verdict {
  margin-top: 13px;
  display: flex;
  gap: 9px;
}
.verdict .btn { flex: 1; padding: 12px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-hold {
  background: transparent;
  border: 1px solid rgba(242,239,233,0.2);
  color: var(--text);
}
.verdict-bad {
  margin-top: 13px;
  border: 1px solid rgba(122,31,31,0.7);
  background: rgba(122,31,31,0.14);
  border-radius: 12px;
  padding: 13px 14px;
}
.verdict-bad .v-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d98a8a;
  margin: 0 0 6px;
}
.verdict-bad p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text); font-family: 'Fraunces', serif; }

/* drafts list cards (used in marketing sections) */
.draft-card {
  background: var(--surface);
  border: 1px solid var(--border, rgba(242,239,233,0.08));
  border-radius: 12px;
  padding: 14px 15px;
}
.draft-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.draft-time { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.status-badge {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.status-ready { color: #0A0A0A; background: var(--amber); }
.status-wait { color: var(--amber); border: 1px solid rgba(232,146,60,0.5); }
.status-pred { color: var(--muted); border: 1px solid var(--border, rgba(242,239,233,0.08)); }
.draft-card-body { font-size: 13.5px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ready-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(232,146,60,0.1);
  border: 1px solid rgba(232,146,60,0.4);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--amber);
}
.ready-banner .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

/* ============================================================
   PANIC SCREEN
   ============================================================ */

.panic-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 22px 30px;
  gap: 0;
}
.panic-top {
  position: absolute;
  top: 60px; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.panic-btn-wrap {
  position: relative;
  width: 196px;
  height: 196px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 28px;
}
.panic-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.28;
  animation: panicPulse 3.4s var(--ease-out) infinite;
}
.panic-ring.r2 { animation-delay: 1.1s; }
@keyframes panicPulse {
  0% { transform: scale(0.86); opacity: 0.36; }
  70% { transform: scale(1.32); opacity: 0; }
  100% { transform: scale(1.32); opacity: 0; }
}
.panic-btn {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 50% 35%, #9a2727, #6a1a1a);
  border: 1px solid rgba(242,239,233,0.14);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 0 60px -10px var(--redGlow, rgba(122,31,31,0.55));
  animation: panicBreath 3.6s ease-in-out infinite;
}
@keyframes panicBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
.panic-btn .pb-label {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.panic-btn .pb-sub { font-size: 11px; color: rgba(242,239,233,0.7); letter-spacing: 0.04em; white-space: nowrap; }
.panic-line {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--text);
  margin: 0 0 6px;
}
.panic-foot { font-size: 12px; color: var(--muted); margin-top: 8px; }
.panic-foot a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   FEATURE GRID + CROSS-LINKS + clinical tag
   ============================================================ */

.tag-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(232,146,60,0.4);
  background: rgba(232,146,60,0.06);
  padding: 5px 11px;
  border-radius: 999px;
}

/* "the three" overview row */
.three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(242,239,233,0.06);
  border-radius: 10px;
  overflow: hidden;
}
@media (min-width: 860px) { .three { grid-template-columns: repeat(3, 1fr); } }
.three-card {
  background: var(--surface);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: background 200ms var(--ease-out);
}
a.three-card:hover { background: var(--surface-lifted); text-decoration: none; }
.three-card .tc-mark { margin-bottom: 18px; }
.three-card h3 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.025em;
  margin: 0 0 10px;
}
.three-card p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.three-card .tc-link {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

/* prev / next feature nav */
.feat-cross {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 700px) { .feat-cross { grid-template-columns: 1fr 1fr; } }
.cross-card {
  border: 1px solid var(--border, rgba(242,239,233,0.08));
  border-radius: 12px;
  padding: 22px 24px;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.cross-card:hover { border-color: rgba(232,146,60,0.4); background: var(--surface); text-decoration: none; }
.cross-card .cc-ey { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.cross-card .cc-t { font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: 22px; letter-spacing: 0.02em; }

/* generic centered section intro */
.lead-block { max-width: 60ch; }
.lead-block p { font-size: 18px; line-height: 1.7; color: var(--text); margin: 0 0 20px; }
.lead-block p:last-child { margin-bottom: 0; }
.lead-block .muted { color: var(--muted); }

/* voice / register cards (chat page) */
.registers { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .registers { grid-template-columns: repeat(3, 1fr); } }
.register {
  border-top: 2px solid var(--red);
  padding-top: 16px;
}
.register h4 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  color: var(--amber);
}
.register p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.register .quote {
  font-family: 'Fraunces', serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 10px;
}
