/* The Useful Pause waitlist. Brand: ink #1E2433, marigold #E39A2D, paper #F6F1E7, tagline #B9771C.
   Source Serif 4 and Montserrat 600, self-hosted. Hand marks are our own SVG paths (house style "Margin Notes"). */
@font-face { font-family: "Source Serif 4"; src: url("/fonts/sourceserif4-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F6F1E7; --card: #FFFFFF; --ink: #1E2433; --ink2: #4A5163; --line: #E4DDCF; --field: #8A8272;
  --mari: #E39A2D; --mari-ink: #8A5A12; --focus: #B9771C; --err: var(--ink);
  --serif: "Source Serif 4", Georgia, serif; --sans: "Montserrat", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1E2433; --card: #283042; --ink: #F6F1E7; --ink2: #C3C7D0; --line: #3A4357; --field: #7D869A;
          --mari-ink: #F2D29C; --focus: #F2D29C; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.5 var(--serif); -webkit-font-smoothing: antialiased; }
main, footer { max-width: 640px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration-color: var(--mari); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.lockup { display: inline-flex; align-items: center; gap: 12px; padding: 20px 0 8px; text-decoration: none; }
.lockup svg { width: 25px; height: 36px; flex: none; }
.lockup span { font: 600 14px/1 var(--sans); letter-spacing: .24em; }
.bars { fill: var(--ink); } .acc { fill: var(--mari); }

h1 { font: 400 34px/1.16 var(--serif); margin: 22px 0 14px; letter-spacing: -0.01em; }
.marked { position: relative; white-space: nowrap; }
.swash { position: absolute; left: -3%; bottom: -0.02em; width: 106%; height: 0.3em; overflow: visible; transform: rotate(-1.5deg); }
.swash path { fill: none; stroke: var(--mari); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lede { font-size: 19px; color: var(--ink2); margin: 0 0 24px; }
.ring { color: var(--ink); }
.ring svg { position: absolute; left: -.8em; top: -.45em; width: calc(100% + 1.6em); height: calc(100% + .9em); overflow: visible; }
.ring path { fill: none; stroke: var(--mari); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
h1, form h2 { text-wrap: balance; }
.points { list-style: none; padding: 0; margin: 0 0 22px; }
.points li { position: relative; padding: 6px 0 6px 22px; font-size: 18px; }
.points li::before { content: ""; position: absolute; left: 2px; top: calc(6px + .75em - 8px); width: 4px; height: 16px; border-radius: 2px; background: var(--mari); }
.status { font: 600 13px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mari-ink); margin: 0 0 24px; }

form { position: relative; margin-top: 80px !important; }
form, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 18px; margin: 0 0 28px;
  box-shadow: 0 1px 0 rgba(30, 36, 51, .04), 0 12px 28px -18px rgba(30, 36, 51, .25); }
form h2, .panel h1 { font: 400 23px/1.3 var(--serif); margin: 0 0 6px; }
.promise { font-size: 16px; color: var(--ink2); margin: 0 0 18px; }
label.field { display: block; font: 600 13px/1.3 var(--sans); letter-spacing: .04em; margin: 0 0 6px; }
input[type=email] { width: 100%; min-height: 48px; font: 400 18px/1.3 var(--serif); padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--field); background: var(--bg); color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
legend { font: 600 13px/1.3 var(--sans); letter-spacing: .04em; padding: 0; margin: 0 0 8px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.choices span { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 92px; padding: 10px 16px;
  border-radius: 999px; border: 1.5px solid var(--field); background: var(--bg); font: 600 14px/1.2 var(--sans); cursor: pointer; }
.choices input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.choices input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
fieldset .note { display: none; font-size: 15px; color: var(--ink2); margin: 10px 0 0; }
fieldset:has(input[value=android]:checked) .note, fieldset:has(input[value=other]:checked) .note { display: block; }
.tick { display: flex; gap: 10px; align-items: center; min-height: 48px; margin: 10px 0 0; font-size: 17px; cursor: pointer; }
.tick input { width: 22px; height: 22px; accent-color: var(--ink); margin: 0; flex: none; }
button { margin: 14px 0 0; width: 100%; min-height: 52px; font: 600 16px/1 var(--sans); letter-spacing: .03em; padding: 16px;
  border-radius: 12px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; }
button:hover { box-shadow: inset 0 -3px 0 var(--mari); }
button[disabled] { opacity: .6; }
.err { color: var(--err); font-size: 15px; margin: 10px 0 0; border-left: 3px solid var(--mari); padding-left: 10px; }
.err:empty { display: none; }
.how { font-size: 15px; margin: 6px 0 0; text-align: center; }
.how a { display: inline-block; padding: 12px 4px; }

footer { padding-bottom: 36px; font-size: 14px; color: var(--ink2); }
footer p { margin: 0 0 6px; }

/* Text pages: privacy note and help */
.text h1 { margin-top: 20px; }
.text h2 { font: 600 14px/1.3 var(--sans); letter-spacing: .06em; margin: 24px 0 6px; }
.text p { margin: 0 0 12px; }
.text .meta { font-size: 15px; color: var(--ink2); }
.text .first { font-size: 21px; }

/* Desktop: the message on the left, the form beside it. */
@media (min-width: 960px) {
  main, footer { max-width: 1040px; padding: 0 40px; }
  .split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: start; margin-top: 36px; }
  h1 { font-size: 50px; margin-top: 12px; }
  .lede { font-size: 21px; }
  .split { align-items: center; min-height: calc(100vh - 200px); }
  .intro { max-width: 560px; }
  .points li { font-size: 19px; }
  .text, .panel { max-width: 640px; }
}
/* Dot standing on the form card */
.dot { position: absolute; top: -71px; right: 28px; width: 64px; height: 72px; }
.limb { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.phone { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
  .swash path { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw .9s .35s ease-out forwards; }
  .ring path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.1s 1.3s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
