@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-var.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }

:root {
  --bone: #F5F3EF; --fog: #E9E7E2; --stone: #C9C6BF; --paper: #FDFDFC;
  --ink: #141416; --muted: #6B6862; --blue: #007AFF; --blue-deep: #0060CC;
  --display: "Manrope", Arial, Helvetica, system-ui, sans-serif;
  --body: "General Sans", Arial, Helvetica, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --q: clamp(28px, 3.2vw, 48px);
  --colw: clamp(600px, 46vw, 820px);
  --gut: clamp(20px, 5vw, 48px);
  --top: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bone); }
html, body { margin: 0; min-height: 100%; }
body { position: relative; background: transparent; color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* the Snowball site ground: Bone, with the hero's grid paper (copied from site-product/css/handoff.css #stage-bg) */
#stage-bg { position: fixed; inset: 0; z-index: -1; background: var(--bone); pointer-events: none; overflow: hidden; }
#stage-bg .sbg-grid { position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(86% 90% at 56% 62%, #000 0%, rgba(0, 0, 0, .62) 52%, rgba(0, 0, 0, .2) 100%);
          mask-image: radial-gradient(86% 90% at 56% 62%, #000 0%, rgba(0, 0, 0, .62) 52%, rgba(0, 0, 0, .2) 100%); }
#stage-bg .sbg-grid i { position: absolute; inset: -16%; display: block; transform: rotate(-3deg);
  background-image: linear-gradient(rgba(201, 198, 191, .4) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 198, 191, .4) 1px, transparent 1px);
  background-size: 56px 56px; background-position: 0 0; }
@media (max-width: 700px) { #stage-bg .sbg-grid i { background-size: 40px 40px; } }

.bar { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 5; }
.bar i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease); }

.top, .col, .ns { position: relative; z-index: 1; }
.top { height: var(--top); padding: 0 var(--gut); display: flex; align-items: center; flex: none; }
.mark { display: block; height: 26px; width: auto; }
.col { flex: 1; width: 100%; max-width: calc(var(--colw) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); display: flex; flex-direction: column; min-width: 0; }
.col.wide { max-width: calc(560px + 2 * var(--gut)); }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 48px; min-width: 48px; margin: 0; padding: 0 14px 0 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 500; font-size: 16px; line-height: 1; transition: color .2s; }
@media (hover: hover) { .back:hover { color: var(--ink); } }
.back[hidden] { display: none; }

/* content sits in the upper part of the screen, so a phone keyboard never covers the field */
.stage { flex: 1; width: 100%; margin: 0; padding: clamp(8px, 5vh, 56px) 0 calc(32px + var(--kb, 0px)); display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; }
.step:focus { outline: none; }
.step { width: 100%; min-width: 0; animation: rise .4s var(--ease) both; }
.step.back-in { animation-name: riseb; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes riseb { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

h1, .q { width: fit-content; max-width: 100%; margin: 0; font: 700 var(--q)/1.1 var(--display); letter-spacing: -0.03em; word-spacing: .06em; text-wrap: balance; overflow-wrap: break-word; }
.line { width: fit-content; max-width: 30em; margin: 20px 0 0; font: 500 clamp(18px, 1.7vw, 22px)/1.45 var(--body); color: var(--muted); text-wrap: pretty; }

.open .echo, .done .echo { display: block; width: 112px; height: 112px; margin: 0 0 20px -6px; }
.open h1, .done h1 { font-size: clamp(34px, 5.2vw, 56px); letter-spacing: -0.035em; }

.field { margin-top: clamp(20px, 3.4vh, 36px); }
.in { display: block; width: 100%; max-width: 100%; min-width: 0; height: 64px; padding: 0 20px; border: 1.5px solid var(--stone); border-radius: 16px; background: var(--paper); font: 500 clamp(22px, 2.6vw, 28px)/1.2 var(--body); letter-spacing: -0.01em; color: var(--ink); outline: none; transition: border-color .25s; -webkit-appearance: none; appearance: none; }
textarea.in { height: auto; min-height: 64px; padding: 16px 20px 14px; line-height: 1.3; resize: none; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.in::placeholder { color: #A39F98; }
.in:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.err { min-height: 24px; margin: 10px 0 0; font-size: 16px; font-weight: 600; color: var(--ink); }

.opts { display: grid; gap: 8px; margin-top: clamp(18px, 3vh, 30px); }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 18px; text-align: left; border: 1.5px solid var(--stone); border-radius: 16px; background: var(--paper); font-weight: 500; font-size: 18px; letter-spacing: -0.005em; transition: border-color .2s, transform .2s var(--ease); }
@media (hover: hover) { .opt:hover { border-color: var(--ink); } }
.opt:active { transform: scale(.985); }
.opt .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.opt .c { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--stone); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.opt .c svg { width: 12px; height: 12px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease); }
.opt.on { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 1px var(--blue) inset; }
.opt.on .c { background: var(--blue); border-color: var(--blue); }
.opt.on .c svg { opacity: 1; transform: none; }

.act { display: flex; align-items: center; gap: 20px; margin-top: clamp(18px, 3vh, 30px); flex-wrap: wrap; }

/* the one button: /starter's primary pill (css/base.css .btn): 22 px label, 60 px high, 32 px side padding, 12 px gap, filled arrow; phones 20 px, 56 px, 24 px */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 32px; border: 0; border-radius: 999px; background: var(--blue); color: var(--paper); font: 600 22px/1 var(--body); letter-spacing: 0; text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), transform .15s var(--ease); }
.btn__i { width: 20px; height: 20px; fill: currentColor; flex: none; transition: transform .2s var(--ease); }
@media (hover: hover) { .btn:hover { background: var(--blue-deep); } .btn:hover .btn__i { transform: translateX(2px); } }
.btn:active { transform: scale(.98); }
@media (max-width: 599px) { .btn { height: 56px; padding: 0 24px; font-size: 20px; } }

.skip { border: 0; padding: 8px 12px; min-height: 48px; min-width: 48px; font-weight: 500; font-size: 17px; color: var(--muted); background: none; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; transition: color .2s; }
@media (hover: hover) { .skip:hover { color: var(--ink); } }

/* day and time picker. Rows reuse .opt. Nothing scrolls inside itself and nothing is cut: the script counts whole rows that fit. */
.edit { display: inline-block; min-width: 48px; padding: 13px 10px; margin: -13px -10px; border: 0; background: none; font: inherit; font-weight: 600; line-height: 22px; text-align: center; vertical-align: baseline; color: var(--muted); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; transition: color .2s; }
@media (hover: hover) { .edit:hover { color: var(--ink); } }
.pick { width: 100%; min-width: 0; }
.pick .q { font-size: clamp(26px, 2.6vw, 34px); }
.tzl { margin: 8px 0 0; font-size: 15px; font-weight: 500; line-height: 22px; color: var(--muted); overflow-wrap: anywhere; }
.chg { position: relative; display: inline-block; padding: 13px 8px; margin: -13px -8px; }
.chg .edit { display: inline; min-width: 0; padding: 0; margin: 0; line-height: inherit; }
.chg select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
.pick .err { min-height: 0; margin: 8px 0 0; }
.err.quiet { font-weight: 400; color: var(--muted); }
.pbox { display: grid; gap: 8px; margin-top: 14px; align-content: start; }
.prow { justify-content: space-between; min-height: 52px; }
.prow .n { flex: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.prow.more { justify-content: flex-start; color: var(--muted); }
.tg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tg.tight { grid-template-columns: repeat(3, 1fr); }
.pick .trow { justify-content: center; min-height: 48px; padding: 0 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick .tight .trow { min-height: 44px; padding: 0 4px; font-size: 16px; }
.grp + .grp { margin-top: 12px; }
.gl { margin: 0 0 6px; font: 700 15px/20px var(--display); letter-spacing: 0; color: var(--muted); }
.tabs { display: flex; gap: 24px; margin-top: 2px; border-bottom: 1.5px solid var(--fog); }
.tab { height: 44px; margin-bottom: -1.5px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; font: 700 16px/1 var(--display); color: var(--muted); transition: color .2s, border-color .2s; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.tabs + .tg { margin-top: 14px; }
.pconf { margin-top: 14px; }
.pick.two .pconf { margin-top: 14px; }
.when { margin: 0; font: 600 clamp(20px, 2.2vw, 24px)/1.3 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.who { margin: 6px 0 0; font-size: 15px; font-weight: 500; line-height: 22px; color: var(--muted); overflow-wrap: anywhere; }
.who span { color: var(--ink); }
.who .edit { display: block; min-width: 48px; margin: -13px 0; padding: 13px 0; text-align: left; }
.pconf .act { margin-top: 14px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.pmsg { margin-top: 20px; }
.sk { display: block; border-radius: 16px; background: var(--fog); }
.sk.prow { height: 52px; }
.sk.trow { height: 48px; min-height: 0; }
.pick.two .pcol.r > .pbox, .pick.two .pcol.r > .pconf { margin-top: 6px; }
.pick.two .pcol.r > .pconf { margin-top: 34px; padding: 28px; border: 1.5px solid var(--fog); border-radius: 20px; background: rgba(255,255,255,.6); }
.pick.two .pconf .gl { margin: 0 0 6px; }
@media (min-width: 600px) and (max-width: 899px) { .pick.one .tg, .pick.one .tg.tight { grid-template-columns: repeat(4, 1fr); } .pick.one .pbox, .pick.one .pconf { max-width: 560px; } }
.pick.two .pcols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; }
.pick.two .tg { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.pick.two .tg.tight { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.pick.two .prow { min-height: 48px; }
.pick.two .trow { min-height: 40px; border-radius: 12px; font-size: 16px; padding: 0 4px; }
.pick.two .sk.trow { height: 40px; border-radius: 12px; }
.pick.two .sk.prow { height: 48px; }
.pick.two .opt.on { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 1px var(--blue) inset; }
.trow.on { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 1px var(--blue) inset; }
.col.wide .stage { padding-top: 4px; padding-bottom: 16px; }
@media (min-width: 900px) { .col.wide { max-width: calc(980px + 2 * var(--gut)); } }

.ns { padding: 24px var(--gut); }

@media (min-width: 1600px) {
  :root { --top: 72px; --colw: 860px; }
  .mark { height: 30px; }
  .opt { min-height: 58px; font-size: 20px; border-radius: 18px; }
  .in { height: 70px; }
  textarea.in { min-height: 70px; }
}
@media (max-width: 599px) {
  body { font-size: 17px; }
  :root { --q: 28px; --top: 56px; }
  .mark { height: 22px; }
  .opt { min-height: 50px; font-size: 17px; }
  .in { height: 60px; }
  textarea.in { min-height: 60px; }
  .open .echo, .done .echo { width: 88px; height: 88px; }
}
/* short laptop windows: six options go in two columns, so each question stays on one screen */
@media (max-height: 760px) and (min-width: 600px) {
  :root { --top: 52px; }
  .opts.many { grid-template-columns: 1fr 1fr; }
  .opts { gap: 8px; margin-top: 18px; }
  .opt { min-height: 48px; }
  .field { margin-top: 16px; }
  .act { margin-top: 18px; }
  .open .echo, .done .echo { width: 88px; height: 88px; margin-bottom: 12px; }
  .stage { padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .step, .step.back-in { animation: none; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}
