/* Screen 3, your voice. The title is indented from the hero's left line; the four
   profiles stand on one ground to the right of its last line, at its height (they start
   5.1 em of the title in, past "anywhere."): three picks, and New profile, a link to the
   next screen. The card is under them, at the right margin, and the small lines under the
   card. */
.yv { padding: calc(150 * var(--u)) 0 calc(80 * var(--u)); }
.yv-board { max-width: 1440px; margin: 0 auto; padding: 0 var(--m) 0 calc(var(--m) + 72 * var(--u)); }
.yv-head { position: relative; }
.yv-mid { max-width: 21em; }

/* The pills: lilac, Light in a solid ink ring (it writes on the machine), the rest in
   dashed rings (the home page's mark for the cloud). They stand on a ground; the picked
   one is lifted off it, in Iris. Their row takes the title's type (.d-l), so it starts
   one title line down (1lh) and, past an unseen copy of the title's last line (.yv-past),
   5.1 em in: a reader's own line and letter spacing move the pills on with "anywhere."
   instead of onto the title. The ground starts a little before the first pill, never
   under the title. */
.yv-row {
  position: absolute; left: 0; right: 0; top: 1lh; height: 0.855em;
  font-size: var(--fs-l); line-height: 0.96; font-weight: 800; letter-spacing: -0.04em;
  display: flex; align-items: flex-end;
}
.yv-past { flex: none; visibility: hidden; white-space: nowrap; margin-right: calc(0.16em + max(8px, calc(12 * var(--u)))); }
.yv-pills {
  position: relative; flex: 1; display: flex; align-items: flex-end;
  gap: max(8px, calc(12 * var(--u))); padding-right: max(8px, calc(12 * var(--u))); font-size: 1em;
}
.yv-pills::after { content: ""; position: absolute; left: calc(-12 * var(--u)); right: 0; bottom: -3px; height: 3px; border-radius: 2px; background: var(--ink); }
/* The three picks are one radio group; New profile stands after it, on the same ground. */
.yv-radios { display: flex; align-items: flex-end; gap: inherit; }
.yv-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: max(38px, calc(50 * var(--u))); padding: 0 max(14px, calc(20 * var(--u)));
  border: 2px dashed var(--ink); border-radius: 999px; background: var(--lilac);
  font-size: max(14px, calc(18 * var(--u))); line-height: 1; font-weight: 700; letter-spacing: normal; color: var(--ink); white-space: nowrap;
}
.yv-pill.is-mac { border-style: solid; }
/* A pick: the whole pill is its radio button's label. */
label.yv-pill { cursor: pointer; }
label.yv-pill:hover { background: var(--iris); }
.yv-pill:has(input:checked) { background: var(--iris); translate: 0 calc(-14 * var(--u)); }
.yv-pill:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
/* New profile: a link to the next screen, where a profile of your own is made. */
a.yv-pill { text-decoration: none; }
a.yv-pill:hover { background: var(--iris); }
a.yv-pill:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 999px; }
/* Its plus: two short ink bars. */
.yv-plus { position: relative; flex: none; width: 0.7em; height: 0.7em; }
.yv-plus::before, .yv-plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--ink); }
.yv-plus::after { rotate: 90deg; }

/* The card, as the app shows a take: what you say, then what the picked profile types. */
.yv-out { width: calc(880 * var(--u)); margin: calc(72 * var(--u)) 0 0 auto; }
.yv-card { padding: calc(34 * var(--u)) calc(48 * var(--u)) calc(40 * var(--u)); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); }
.yv-k { font-size: max(13px, calc(15 * var(--u))); line-height: 1.3; font-weight: 700; color: var(--plum); }
.yv-k2 { margin-top: calc(26 * var(--u)); padding-top: calc(24 * var(--u)); border-top: 1px solid var(--line); }
.yv-said { margin-top: 8px; font-size: max(19px, calc(27 * var(--u))); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }

/* What the picked profile leaves out: struck through with a drawn bar, faded to Muted.
   Each cut names the profiles that leave it out (data-cut); the picked one's are struck. */
.yv-cut { position: relative; color: var(--ink); }
.yv-cut::after { content: ""; position: absolute; left: -0.05em; right: -0.05em; top: 55%; height: 2.5px; border-radius: 2px; background: var(--muted); transform: scaleX(0); transform-origin: 0 50%; }
.yv:has(input[value="light"]:checked) .yv-cut[data-cut~="light"],
.yv:has(input[value="likeme"]:checked) .yv-cut[data-cut~="likeme"],
.yv:has(input[value="pro"]:checked) .yv-cut[data-cut~="pro"] { color: var(--muted); }
.yv:has(input[value="light"]:checked) .yv-cut[data-cut~="light"]::after,
.yv:has(input[value="likeme"]:checked) .yv-cut[data-cut~="likeme"]::after,
.yv:has(input[value="pro"]:checked) .yv-cut[data-cut~="pro"]::after { transform: none; }

/* Only the picked profile's name and the start of its answer show. */
.yv-ans { display: none; }
.yv:has(input[value="light"]:checked) .yv-ans[data-p="light"],
.yv:has(input[value="likeme"]:checked) .yv-ans[data-p="likeme"],
.yv:has(input[value="pro"]:checked) .yv-ans[data-p="pro"] { display: inline; }

/* The typed line and, in the same cell, every answer unseen: the cell is the tallest. */
.yv-typed-box {
  display: grid; margin-top: 8px;
  font-size: max(30px, calc(46 * var(--u))); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; color: var(--ink);
}
.yv-typed-box > *, .yv-sizer > * { grid-area: 1 / 1; }
.yv-sizer { display: grid; visibility: hidden; }
.yv-typed, .yv-sizer > * { text-wrap: balance; }
/* The typed line's full stop is the travelling dot's station: a little over a quarter em, so the dot
   arrives at least at the size it travels at (half the hero's full stop). */
.yv-typed .station { width: 0.26em; height: 0.26em; margin-left: 0.04em; }
.yv-small { max-width: 34em; margin-top: 16px; }
.yv-small + .yv-small { margin-top: 8px; }

@media (max-width: 1023.98px) {
  .yv { padding-top: 72px; }
  .yv-board { padding: 0 var(--m); }
  .yv-head h2 { max-width: 8em; }
  /* The pills wrap; each row stands on its own ground: a 3 px Ink line every 58 px (a
     pill, 40, and the room under it), the first under the first row. */
  .yv-row { position: static; display: block; height: auto; }
  .yv-past { display: none; }
  .yv-pills {
    flex-wrap: wrap; gap: 18px 8px; margin-top: 28px; padding: 14px 0 3px;
    background: linear-gradient(var(--ink) 0 3px, transparent 3px) 0 54px / 100% 58px repeat-y;
  }
  .yv-pills::after { display: none; }
  .yv-radios { flex-wrap: wrap; row-gap: 18px; }
  .yv-pill { height: 40px; padding: 0 14px; font-size: 15px; }
  /* The link's target reaches 44 px, 2 px past each side of the 40 px pill (its ring included). */
  a.yv-pill::before { content: ""; position: absolute; inset: -4px -2px; }
  .yv-pill:has(input:checked) { translate: 0 -6px; }
  .yv-out { width: auto; margin-top: 28px; }
  .yv-card { padding: 22px 22px 26px; border-radius: 20px; }
  .yv-k2 { margin-top: 18px; padding-top: 16px; }
  .yv-said { font-size: 18px; }
  .yv-typed-box { font-size: 24px; line-height: 1.18; }
}

/* ---------------------------------------------------------------- motion
   js/pages/dictation/yourVoice.js: the said line arrives as dots that become words
   (motion.css hides them while they wait), the cuts are struck and fade, then the typed
   line writes itself and its full stop waits for the dot. A new pick strikes its own cuts
   and writes its answer again (.is-writing). */
.motion .yv-cut { transition: color 0.6s ease 0.15s; }
.motion .yv-cut::after { transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.motion .yv-pill { transition: background-color 0.15s ease, translate 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
/* New profile's plus turns a quarter as you point at it. */
.motion a.yv-pill .yv-plus { transition: rotate 0.2s ease; }
.motion a.yv-pill:hover .yv-plus { rotate: 90deg; }
/* Until the first play strikes them, the cuts stand whole (beats the picked rules above). */
.motion .yv.is-pre:not(.is-struck) .yv-said .yv-cut[data-cut] { color: var(--ink); }
.motion .yv.is-pre:not(.is-struck) .yv-said .yv-cut[data-cut]::after { transform: scaleX(0); }
.motion .yv.is-pre .yv-typed .w:not(.is-on),
.motion .yv-card.is-writing .yv-typed .w:not(.is-on) { opacity: 0; }
.motion .yv-typed .w.is-on { transition: opacity 0.18s ease; }
.motion .yv.is-pre .station { opacity: 0; }
