/* Your data, screen 4, you say when: four moments of a note, each a small drawn piece of the
   app beside its caption. With the page's script they are tabs, one step on show, and each
   drawn button moves to the next; with none, all four stand one under the other. */

/* ---------------------------------------------------------------- the steps */
.sw-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sw-tab { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 8px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--paper); font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.sw-tab:hover { border-color: var(--ink); }
.sw-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--haze); font-size: 14px; color: var(--plum); }
.sw-tab[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: var(--cream); }
.sw-tab[aria-selected="true"] .sw-n { background: var(--cream); color: var(--navy); }
.sw-tab.is-done .sw-n { background: var(--lilac); }

.sw-steps { display: grid; gap: 16px; }
/* One step at a time with the script: every step in one cell, so the stage keeps the
   height of the tallest and nothing below it moves. */
.js .sw-steps { gap: 0; }
.js .sw-step { grid-area: 1 / 1; visibility: hidden; }
.js .sw-step.is-on { visibility: visible; }
.sw-step { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: calc(40 * var(--u)); align-items: center; padding: calc(36 * var(--u)) calc(36 * var(--u)); border-radius: var(--radius-panel); background: var(--haze); }
.sw-art { display: grid; justify-items: start; gap: 14px; }
.sw-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; font-size: 17px; font-weight: 800; color: var(--ink); }
.sw-title { margin-top: 14px; font-size: var(--fs-beat); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.sw-line { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--plum); text-wrap: pretty; }
.sw-again { margin-top: 10px; }

/* ---------------------------------------------------------------- the app's moments */
/* Murmur's own card before a meeting. */
.sw-card, .sw-pick, .sw-send, .sw-draft { width: 100%; max-width: 380px; padding: 16px 18px 18px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); }
.sw-card-top { display: flex; align-items: center; gap: 8px; }
.sw-card-top .logo-mark { width: 22px; height: 22px; }
.sw-card-top .label { color: var(--plum); }
.sw-card-line { margin-top: 10px; font-size: 16px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.sw-heads { display: flex; gap: 2px; margin-top: 10px; }
.sw-heads .dt-face { width: 26px; height: 30px; }
.sw-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* The strip over the call: Navy, with the clock, Pause and Stop. Its Stop is Cream. */
.sw-strip { display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--navy); color: var(--cream); font-size: 15px; font-weight: 700; }
.sw-live { display: inline-flex; align-items: center; gap: 8px; }
.sw-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--mist); }
.sw-clock { font-variant-numeric: tabular-nums; color: var(--mist); }
.sw-pause { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cream) 45%, transparent); }
.sw-strip .sw-stop { height: 36px; padding: 0 14px; border-radius: 10px; background: var(--cream); color: var(--navy); }
.sw-strip button.sw-stop:hover { background: var(--mist); }
/* The transcript, written after Stop: rows of Sky word-dots. */
.sw-rows { display: grid; gap: 10px; width: min(100%, 340px); padding: 16px 18px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); }
.sw-rows span { display: block; height: 7px; background: radial-gradient(circle, var(--sky) 3px, transparent 3.5px) 0 0 / 11px 7px repeat-x; }
.sw-rows span:nth-child(1) { width: 92%; }
.sw-rows span:nth-child(2) { width: 70%; }
.sw-rows span:nth-child(3) { width: 82%; }

/* The summary picker. */
.sw-pick-h, .sw-send-h { font-size: 15px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.sw-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sw-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 14px; font-weight: 700; color: var(--ink); }
.sw-pill.is-on { box-shadow: none; background: var(--lilac); color: var(--plum); }
/* Use my thoughts: a real checkbox, unticked, as the app starts it. */
.sw-check { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
.sw-check input { position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin: -11px 0 0; opacity: 0; cursor: pointer; }
.sw-box { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); }
.sw-box::after { content: ""; width: 10px; height: 6px; margin-top: -3px; border: solid var(--cream); border-width: 0 0 2.5px 2.5px; rotate: -45deg; opacity: 0; }
.sw-check input:checked + .sw-box { border-color: var(--navy); background: var(--navy); }
.sw-check input:checked + .sw-box::after { opacity: 1; }
.sw-check input:focus-visible + .sw-box { outline: 3px solid var(--blue); outline-offset: 2px; }
.sw-check-line { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.sw-on { display: none; }
.sw-pick:has(.sw-check input:checked) .sw-on { display: inline; }
.sw-pick:has(.sw-check input:checked) .sw-off { display: none; }
.sw-reads { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 14px; font-size: 14px; font-weight: 700; color: var(--ink); }

/* Send the notes, and the draft it opens in her own mail app (the send arrow untouched). */
.sw-to { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 14px; }
.sw-to .label { color: var(--plum); }
.sw-who { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.sw-who .dt-face { width: 24px; height: 28px; }
.sw-draft { border-color: var(--line-strong); border-style: dashed; }
.sw-draft-to { display: flex; align-items: center; gap: 2px; padding-bottom: 10px; border-bottom: 1.5px solid var(--line); }
.sw-draft-to .dt-face { width: 24px; height: 28px; }
.sw-arrow { width: 30px; height: 30px; margin-left: auto; }
.sw-draft-rows { display: grid; gap: 9px; margin-top: 12px; }
.sw-draft-rows span { display: block; height: 7px; background: radial-gradient(circle, var(--sky) 3px, transparent 3.5px) 0 0 / 11px 7px repeat-x; }
.sw-draft-rows span:nth-child(1) { width: 88%; }
.sw-draft-rows span:nth-child(2) { width: 64%; }
.sw-draft-rows span:nth-child(3) { width: 76%; }
.sw-draft-line { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--plum); }
/* With the script, the draft waits until Open a draft is pressed. */
.js .sw:not(.is-sent) .sw-draft { visibility: hidden; opacity: 0; }

@container demo (max-width: 640px) {
  .sw-step { grid-template-columns: minmax(0, 1fr); row-gap: 20px; align-content: start; }
  .sw-cap { order: -1; }
}

@media (max-width: 1023.98px) {
  .sw-tabs { gap: 6px; }
  .sw-tab { flex: 1 1 auto; justify-content: center; gap: 5px; height: 42px; padding: 0 8px 0 5px; font-size: 13.5px; white-space: nowrap; }
  .sw-n { width: 22px; height: 22px; font-size: 12px; }
  .sw-step { grid-template-columns: minmax(0, 1fr); row-gap: 20px; align-content: start; padding: 20px 16px; }
  .sw-cap { order: -1; }
  .sw-title { margin-top: 10px; }
  .sw-line { font-size: 15px; }
  .sw-strip { gap: 10px; padding-left: 12px; font-size: 14px; }
  .sw-pause { padding: 0 10px; }
}

/* ---------------------------------------------------------------- motion */
.motion .sw-step.is-on .sw-art { animation: sw-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes sw-in { from { opacity: 0; translate: 12px 0; } }
.motion .sw.is-sent .sw-draft { transition: opacity 0.4s ease, translate 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.motion .sw:not(.is-sent) .sw-draft { translate: 0 10px; }
