/* The teaser's own parts, on top of the case file (kz.css): the introduction typed on the
   folder, three dossier tabs, and the sign-up form as a form sheet with a received stamp. */

/* ---------- the introduction, typed on the folder ---------- */

.intro { margin: 20px 16px 0; max-width: 60ch; }
.intro h1 { margin: 4px 0 0; font: 400 clamp(25px, 7vw, 32px)/1.1 var(--worn); }
/* the title is the switch: it unfolds the introduction */
.intro-toggle { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 2px 0; background: none; border: 0;
                cursor: pointer; text-align: left; font: inherit; text-wrap: balance; }
.intro-toggle .chev { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-top: 2px;
                      border: 1.5px solid currentColor; border-radius: 50%; transition: rotate .2s cubic-bezier(.16, 1, .3, 1); }
.intro-toggle[aria-expanded="true"] .chev { rotate: 180deg; }
.intro-toggle:hover .chev { background: var(--ink); color: var(--manila); border-color: var(--ink); }
.intro-text { padding-top: 12px; }
.intro .typed { margin: 0 0 10px; }
.intro .typed:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .intro-toggle .chev { transition: none; } }
.offline { margin: 20px 4px; }

/* three tabs instead of seven days: wide enough to carry their name */
.tabs.three { grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 18px; }
.tabs.three .tab b { font-size: 14px; }

/* a tap on the envelope or its seal breaks the seal, as the button does */
.envelope-hit { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* the submit button comes straight after the boxes and their message, before the help */
.work .crack { margin-top: 2px; }
.work .crack + .help { margin-top: 12px; }

/* ---------- the form after the third dossier ---------- */

.signup .formlabel { display: block; }
.signup h2 { margin: 4px 0 10px; font: 400 clamp(25px, 7vw, 30px)/1.12 var(--worn); }
.signup h2:focus { outline: none; }
.signup .typed { margin: 0 0 10px; }

.signup-sheet { position: relative; margin: 20px 4px 0; padding: 20px 18px 18px; background: var(--sheet) var(--grain);
                box-shadow: var(--paper-shadow); transform: rotate(.4deg); }
.field { display: grid; gap: 5px; margin-bottom: 16px; }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 11px 9px; border: 1.5px solid var(--ink); border-radius: 2px;
                                background: #fff; color: var(--ink); font: 400 16px/1.4 var(--typed); caret-color: var(--stamp); }
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--pen); outline-offset: 1px; }
.hint { font-size: 13px; color: var(--ink-2); }

.consent { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 4px 0; cursor: pointer; line-height: 1.4; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--stamp); cursor: pointer; }
.privacy { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.error { min-height: 1.4em; margin: 12px 0 4px; color: var(--stamp); font-weight: 700; }
.error:empty { min-height: 0; margin: 6px 0 0; }
.signup-sheet .btn.primary { display: block; width: 100%; margin-top: 8px; }
.signup-sheet .btn:disabled { cursor: progress; opacity: .7; }

/* bots fill in every field; people never see this one */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- after sending: received, and an invitation to bring colleagues ---------- */

.thanks { position: relative; margin: 6px 4px 0; padding: 22px 18px 20px; background: var(--sheet) var(--grain);
          box-shadow: var(--paper-shadow); transform: rotate(-.5deg); }
.thanks .stamp.received { position: static; display: inline-block; margin: 0 0 14px; font-size: 22px; rotate: -6deg; }
.thanks h2 { margin: 0 0 10px; }
.thanks p { margin: 0 0 12px; max-width: 60ch; }
.thanks .tally { font-weight: 700; font-variant-numeric: tabular-nums; }
.thanks .sharebtn { display: flex; width: 100%; margin-top: 6px; }
