/* I wish. Hand-written, no build step. Airy white page, soft blue/violet
   glows in the corners, gradient wordmark. No pills around words, no tinted
   notice boxes: errors are plain tone-colored text. */

:root {
  --navy: #141a3a;
  --body: #4f5874;
  --muted: #8a92a8;
  --cyan: #2fb8f5;
  --blue: #3d7bf5;
  --violet: #7a2cf5;
  --grad: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 50%, var(--violet) 100%);
  --danger: #c2410c;
  --line: #e3e7f0;
  --field: #fbfcfe;
  --tile: #eef3fd;
  --shadow: 0 2px 6px rgba(20,26,58,.04), 0 18px 48px rgba(20,26,58,.08);
  /* Cards inside the scrolling deck: same look, but a reach (offset + blur)
     that fits inside the deck's padding, since a scroll box clips at its edge. */
  --shadow-card: 0 1px 3px rgba(20,26,58,.05), 0 8px 20px rgba(20,26,58,.08);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: #fff; }
body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--body);
  font-family: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Corner glows. */
body::before, body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
body::before {
  top: -190px; right: -200px;
  background: radial-gradient(circle, #7cc4ff 0%, #b9a3ff 55%, transparent 72%);
}
body::after {
  bottom: -210px; left: -210px;
  background: radial-gradient(circle, #c6a8ff 0%, #8fc8ff 55%, transparent 72%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 22px 28px;
  display: flex;
  flex-direction: column;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- hero ---------- */
.hero { text-align: center; }

/* The lead's own logo, in place of the "FOR <BUSINESS>" line. Height-capped so
   a wide wordmark and a square mark both sit right above the heading. */
.lead-logo { margin: 0 0 18px; }
.lead-logo img {
  max-height: 58px;
  max-width: min(72%, 260px);
  width: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.wordmark {
  display: inline-block;
  margin: 0;
  font-size: clamp(3.6rem, 19vw, 5.6rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark .dots { letter-spacing: -.06em; }
.wordmark--long { font-size: clamp(2.8rem, 14.5vw, 4.4rem); }

/* The lead's business name, wherever the page says it. */
.biz { color: var(--navy); font-weight: 800; }

.lede {
  margin: 16px auto 0;
  max-width: 34ch;
  color: var(--body);
  font-size: 1.05rem;
}

/* ---------- examples ---------- */
.examples { margin-top: 28px; }

/* The deck scrolls horizontally and snaps, so a swipe drags the card with it.
   touch-action allows BOTH axes: pan-x alone would trap vertical scrolling
   inside the deck, and pan-y alone blocks the horizontal swipe entirely. */
.deck {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* A scroll container clips at its box, so the card must not reach the edge:
     this padding is the room its shadow needs, and the equal negative margin
     keeps the card itself lined up with the text box below. */
  padding: 24px 24px 30px;
  margin: -24px -24px -30px;
  scroll-padding-inline: 24px;
}
.deck::-webkit-scrollbar { display: none; }
.deck:focus-visible { outline: 3px solid rgba(61,123,245,.35); outline-offset: 4px; border-radius: 26px; }

.example {
  /* 100% of the deck's CONTENT box, i.e. inside that padding: the card lines
     up with the text box below and still has room for its shadow. */
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 22px;
  min-height: 132px;
  user-select: none;
}

.example-icon {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--tile);
  display: grid;
  place-items: center;
}

.example blockquote {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.32;
}

.dots-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dfe3ec;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.dot.is-active { background: #5b4df0; }
.dot:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- form ---------- */
.form { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }

.field { position: relative; }

textarea, input[type="text"] {
  width: 100%;
  font: inherit;
  color: var(--navy);
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea {
  display: block;
  min-height: 150px;
  resize: vertical;
  padding: 18px 20px 36px;
  font-size: 1.1rem;
}
input[type="text"] { padding: 14px 20px; font-size: 1rem; }
textarea::placeholder, input::placeholder { color: #9aa2b6; }
textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: #8aa6f8;
  box-shadow: 0 0 0 4px rgba(61,123,245,.12);
}
textarea[aria-invalid="true"] { border-color: var(--danger); }

.count {
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: var(--muted);
  font-size: .9rem;
  pointer-events: none;
}

.error { margin: 0 4px; color: var(--danger); font-size: .92rem; }

.btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #34bdf8 0%, #5b7cf6 50%, #7b3cf5 100%);
  color: #fff;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 18px 24px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(91,77,240,.22);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), filter .15s var(--ease);
}
.btn:hover { filter: brightness(1.05); box-shadow: 0 14px 34px rgba(91,77,240,.30); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(61,123,245,.4); outline-offset: 3px; }

.btn-ghost {
  background: #fff;
  color: var(--navy);
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}
.btn-ghost:hover { color: var(--navy); }
.again { margin: 32px 0 0; }

/* ---------- footer ---------- */
.foot {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
}
.logo-link { display: inline-block; }
.logo { height: 46px; width: auto; margin: 0 auto; display: block; }
.tagline {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
/* Same micro-caps treatment, one notch quieter than the tagline above it. */
.tagline-place { margin-top: 8px; opacity: .8; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- thank you: what happens next ---------- */
.next { margin-top: 26px; }
.next-note { margin: 0 0 20px; }
.next-link { margin: 16px 0 0; font-size: .95rem; text-align: center; }

/* ---------- submitting overlay ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sending {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  animation: fade .2s var(--ease);
}
.sending[hidden] { display: none; }
.sending-inner { text-align: center; }
.sending p {
  margin: 18px 0 0;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: .01em;
}

.spinner {
  display: block;
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--blue), var(--violet), var(--cyan));
  /* Ring, not a disc: punch the middle out of the gradient. */
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .sending { animation: none; }
}

@media (min-width: 640px) {
  .page { padding-top: 88px; }
}
