/* THE STOP-LOSING-SALES HEADLINE MAKEOVER™
   Brand source: Brand/[C] Tool UI Visual Brand Guide.md (v1.0). Colors are guide colors or
   tints mixed toward white only: hot pink #E51575, orange #F15617, cyan #36B7C9, black #111111,
   cool white #FFFFFF, tints #FCE8F1 #F8C4DC #FEEEE8 #EBF8FA. No darkened pink, no cream base.
   Type: BwModelica first. The font files exist in the workspace brand folder
   (Areas/Marketing/Brand/editorial-web-studio/skills/web-art-direction/assets/fonts), but their
   right to be used on a public website is not confirmed, so this page falls back to the system
   font until Wanda confirms it. Then add @font-face rules and the files to public/.
   Floor: nothing readable renders below 13px. White on #E51575 is 4.47:1, so pink carries only
   large bold text (the button at 20px bold). Small text is always #111111.
   Built to be read across a room on a shared screen, and to work on a phone. */

:root {
  --pink: #E51575;
  --pink-75: #F8C4DC;
  --pink-90: #FCE8F1;
  --orange: #F15617;
  --orange-90: #FEEEE8;
  --cyan-90: #EBF8FA;
  --ink: #111111;
  --ink-soft: #444444;
  --paper: #FFFFFF;
  --font: "BwModelica", "Bw Modelica", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 980px; margin: 0 auto; padding: clamp(18px, 4vw, 44px) clamp(16px, 4vw, 32px) 28px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.top h1 { margin: 8px 0 10px; font-size: clamp(28px, 5vw, 52px); line-height: 1.04; font-weight: 900; letter-spacing: -.01em; }
.lede { margin: 0 0 22px; font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; }

:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px var(--pink-75); }

textarea { width: 100%; font: inherit; font-size: 19px; line-height: 1.5; color: var(--ink); background: var(--paper); border: 4px solid var(--ink); border-radius: 18px; padding: 16px 18px; resize: vertical; min-height: 220px; }
textarea::placeholder { color: var(--ink-soft); }
textarea.over { border-color: var(--orange); background: var(--orange-90); }

.password-row { margin-bottom: 20px; }
.password-row label { display: block; font-weight: 800; margin-bottom: 6px; }
.password-row input { width: 100%; max-width: 480px; font: inherit; min-height: 48px; border: 3px solid var(--ink); border-radius: 12px; padding: 10px 14px; background: var(--paper); color: var(--ink); }
.password-row p { margin: 6px 0 0; font-size: 15px; }
.owner-note { display: inline-block; margin: 0 0 16px; padding: 5px 12px; background: var(--cyan-90); border: 2px solid var(--ink); border-radius: 12px; font-size: 15px; font-weight: 800; }

.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.row-end { justify-content: flex-end; }
.count { font-size: 15px; font-weight: 800; }
.count.over { color: var(--ink); background: var(--orange-90); border: 2px solid var(--orange); border-radius: 99px; padding: 2px 12px; }

button { font: inherit; cursor: pointer; }
.btn { border: 3px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 800; font-size: 17px; padding: 10px 20px; border-radius: 12px; min-height: 48px; transition: transform .12s ease, background .12s ease; }
.btn:hover:not(:disabled) { background: var(--pink-90); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--pink); color: var(--paper); font-size: 20px; font-weight: 900; padding: 14px 28px; min-height: 60px; box-shadow: 0 5px 0 var(--ink); }
.btn-primary:hover:not(:disabled) { background: #EC5098; transform: translateY(-2px); }
.btn-primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }

.msg { margin: 14px 0 0; font-size: 17px; font-weight: 800; background: var(--orange-90); border: 3px solid var(--orange); border-radius: 12px; padding: 10px 14px; }

.working { display: flex; align-items: center; gap: 16px; margin-top: 28px; border: 4px solid var(--ink); border-radius: 18px; padding: 20px 24px; background: var(--pink-90); }
.working p { margin: 0; font-size: clamp(20px, 2.6vw, 28px); font-weight: 900; }
.dots { display: inline-flex; gap: 8px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--pink); border: 3px solid var(--ink); animation: bob 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-9px); } }

.result { margin-top: 28px; }
.cards { display: grid; gap: 16px; }
.card { border: 4px solid var(--ink); border-radius: 18px; padding: 16px 22px 18px; background: var(--paper); }
.card h2 { margin: 0 0 6px; font-size: 14px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.card p { margin: 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.card.opening { background: var(--pink-90); border-left: 14px solid var(--pink); box-shadow: 0 6px 0 var(--ink); }
.card.opening p { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; }
.card.leave { background: var(--orange-90); border-color: var(--ink); }
.card p.tip { margin-top: 12px; font-size: 18px; font-weight: 700; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 14px; }
.card .actions { margin-top: 12px; }
.next { margin: 18px 0 0; font-size: 18px; font-weight: 800; }

.foot { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; }

@media (max-width: 560px) {
  .btn-primary { width: 100%; }
  .row { flex-direction: column; align-items: stretch; }
  .count { align-self: flex-start; }
  .row-end { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .dots i { animation: none; }
  .btn { transition: none; }
}
