/* =========================================================================
   Get Started + Log In · loads after /styles.css
   Get Started (GS1 to GS3): the form card with the high-five-line photo
   beside it on desktop and after it on phone; after a submit the success
   state takes the full measure so the HubSpot calendar has room.
   ========================================================================= */

/* ------------------------------------------------------------- intro -- */
/* opens at the same height as the other inner pages; the tight bottom stays
   so the form card sits close under the intro */
.gs-hero {
  padding-top: var(--section-pad);
}
.gs-hero .h1 {
  max-width: 12ch;
}
.gs-hero .lede {
  margin-top: 22px;
  max-width: 58ch;
}
.inline-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 140ms ease;
}
.inline-link:hover {
  color: var(--purple);
}

/* --------------------------------------------------------- form card -- */
.gs-form {
  padding-top: clamp(40px, 5vw, 64px);
}
.gs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  max-width: 792px;
}
/* the people in the page (G3): beside the form on desktop, held in view
   while the fields scroll past; after the form on phone */
.gs-photo {
  margin: 0;
}
.gs-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 55%;
  border-radius: var(--radius-l);
  background: #d9d4cc;
  --wipe-radius: var(--radius-l);
}
@media (min-width: 960px) {
  .gs-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    max-width: none;
    align-items: start;
  }
  .gs-photo {
    position: sticky;
    top: 100px;
  }
  .gs-photo img {
    aspect-ratio: 4 / 5;
    object-position: 46% 50%;
  }
  /* once the form is sent the calendar needs the width more than the photo */
  .gs-grid:has([data-form-success]:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 920px;
    margin-inline: auto;
  }
  .gs-grid:has([data-form-success]:not([hidden])) .gs-photo {
    display: none;
  }
}
.form-card,
.auth-card {
  background: var(--paper);
  padding: clamp(24px, 3.4vw, 44px);
}
.form-card__title {
  letter-spacing: -0.015em;
}
.form-card__lede {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
}
.form-hint {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--faint);
}
.form-hint--foot {
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
  text-align: center;
}
.req {
  color: var(--crit);
  font-weight: 700;
}

/* --------------------------------------------------------- the fields -- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 20px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  transition:
    border-color 140ms ease,
    background-color 140ms ease;
}
.field textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.5;
}
.field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b6b6b' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #9b9b9b;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}

/* error text is hidden until the handler marks the field */
.field-error {
  display: none;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--crit);
}
.field.is-error input,
.field.is-error select,
.field.is-error textarea {
  border-color: var(--crit);
  background-color: var(--crit-soft);
}
.field.is-error .field-error {
  display: flex;
  align-items: center;
  gap: 6px;
}
.field.is-error .field-error::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: var(--pill);
  border: 1.5px solid var(--crit);
  background:
    linear-gradient(var(--crit), var(--crit)) center 2px / 1.5px 5px no-repeat,
    linear-gradient(var(--crit), var(--crit)) center 8.5px / 1.5px 1.5px no-repeat;
}

/* honeypot: off-screen, never shown, never tabbed */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#get-started-form .btn[type="submit"] {
  margin-top: 28px;
}

/* -------------------------------------------------------- success state -- */
.form-done {
  text-align: center;
  padding: clamp(8px, 2vw, 24px) 0;
}
.form-done__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--pill);
  background: var(--good-soft);
  color: var(--good);
  margin-bottom: 20px;
}
.form-done h3 {
  letter-spacing: -0.015em;
}
.form-done p {
  margin: 12px auto 0;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.form-done .form-done__next {
  margin-top: 20px;
  color: var(--ink);
  font-weight: 600;
}
.form-done [data-scheduler-embed] {
  text-align: left;
}
.form-done:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}
/* ------------------------------------------------------------- log in -- */
.auth {
  display: flex;
}
.auth > .wrap {
  display: flex;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 440px;
}
.auth-card__title {
  letter-spacing: -0.015em;
}
.auth-card__lede {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.auth-card form .btn[type="submit"],
.auth-card > .btn {
  margin-top: 26px;
}
.auth-foot {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}
.auth-foot--last {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.linkish {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 140ms ease;
}
.linkish:hover {
  color: var(--ink);
}
.login-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
