@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-variablefont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fander";
  src: url("/assets/fonts/fander-regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --cream: #F9F4ED;
  --blue: #0B5CFF;
  --blue-dark: #0746C4;
  --yellow: #F4FF00;
  --ink: #141414;
  --white: #FFFFFF;
  --line: #DED8CF;
  --muted: #615E58;
  --soft-blue: #E8F0FF;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--cream);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 4px;
  background: var(--yellow);
  content: "";
}

button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
iframe { border: 0; }
[hidden] { display: none !important; }

.set-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1100;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-180%);
}

.set-skip:focus-visible { transform: translateY(0); }

.set-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 40px;
}

.set-header {
  position: sticky;
  top: 12px;
  z-index: 80;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px 8px 18px;
  border-radius: 14px;
  background: var(--blue);
  box-shadow: 0 10px 30px rgba(7, 70, 196, .18);
}

.set-brand {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.set-brand img { display: block; width: 112px; height: auto; }

.set-brand > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border-left: 1px solid rgba(255,255,255,.45);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
}

.set-ops-link {
  display: inline-flex;
  min-width: 68px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .05em;
  text-decoration: none;
}

.set-hero {
  position: relative;
  display: grid;
  min-height: 390px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 18px 50px rgba(20,20,20,.07);
}

.set-hero::after {
  position: absolute;
  inset: 0 49% 0 auto;
  z-index: 1;
  width: 16%;
  background: linear-gradient(90deg, var(--blue), transparent);
  content: "";
}

.set-hero-image {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: 58% center;
}

.set-hero-content {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: clamp(32px, 3.5vw, 50px);
}

.set-eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
}

.set-hero h1 {
  margin: 0;
  font-family: "Fander", "Geist", sans-serif;
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .84;
}

.set-description {
  max-width: 34ch;
  margin: 22px 0 0;
  color: rgba(255,255,255,.92);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.5;
}

.set-journey {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: -22px 18px 18px;
  padding: 0;
  list-style: none;
}

.set-journey li {
  display: grid;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: 34px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: center;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(20,20,20,.06);
}

.set-journey li > span {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 10px;
  background: var(--soft-blue);
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 900;
}

.set-journey strong { min-width: 0; font-size: 14px; font-weight: 900; line-height: 1.05; }
.set-journey small { color: var(--muted); font-size: 11px; font-weight: 700; }
.set-journey [aria-current="step"] { border-color: var(--yellow); background: var(--yellow); }
.set-journey [aria-current="step"] > span { background: var(--ink); color: var(--yellow); }
.set-journey [aria-current="step"] small { color: var(--ink); }

.set-workspace { scroll-margin-top: 96px; }
.set-workspace .discovery-app { width: 100%; }
.set-workspace .discovery-mode-note { border-color: var(--line); border-radius: 15px; background: var(--white); }
.set-workspace .discovery-section { background: var(--white); box-shadow: none; }
.set-workspace .discovery-section.is-active { box-shadow: 0 14px 36px rgba(11,92,255,.09); }

.set-step {
  margin-top: 12px;
  overflow: hidden;
  scroll-margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(20,20,20,.045);
}

.set-step > summary {
  display: grid;
  min-height: 82px;
  grid-template-columns: 42px minmax(0, 1fr) 132px 30px;
  gap: 13px;
  align-items: center;
  padding: 11px 16px;
  list-style: none;
  cursor: pointer;
}

.set-step > summary::-webkit-details-marker { display: none; }
.set-step-copy { display: grid; min-width: 0; gap: 3px; }
.set-step > summary strong { font-size: 18px; font-weight: 900; }
.set-step > summary small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.set-step > summary i { color: var(--blue-dark); font-size: 24px; font-style: normal; text-align: center; transition: transform .16s ease; }
.set-step[open] > summary i { transform: rotate(45deg); }

.set-step-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
}

.set-step-image { display: block; width: 132px; height: 58px; border-radius: 10px; object-fit: cover; object-position: center; }
.set-step[data-locked] > summary { cursor: not-allowed; }
.set-step[data-locked] .set-step-number { background: #E8E3DB; color: var(--muted); }
.set-step[data-locked] > summary i { color: #A49E95; }
.set-step-body { padding: 0 14px 16px; border-top: 1px solid var(--line); }

.set-connection-note {
  margin: 14px 0;
  padding: 13px 14px;
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--soft-blue);
  color: #3F3C38;
  font-size: 14px;
  line-height: 1.5;
}

.set-submit-confirmation { display: grid; gap: 8px; margin-top: 12px; }
.set-submit-confirmation p, .set-provider-help, .set-booking-status { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.set-provider-help { margin: 14px 0 6px; }

.set-external-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 6px;
  justify-self: start;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.set-fallback { margin-top: 8px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--cream); }
.set-fallback > summary { display: flex; min-height: 44px; align-items: center; padding: 6px 0; color: var(--blue-dark); font-size: 14px; font-weight: 800; cursor: pointer; }
.set-fallback p { margin: 6px 0 12px; }

.set-submit-button {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.embed-shell { position: relative; width: 100%; min-height: 620px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.embed-shell-schedule { min-height: 760px; }
.embedded-app { position: relative; z-index: 2; display: block; width: 100%; opacity: 0; transition: opacity .2s ease; }
.embed-shell.is-loaded .embedded-app { opacity: 1; }
.embed-shell.is-loaded .embed-loading { display: none; }
.embedded-app-form { min-height: 1500px; }
.embedded-app-schedule { min-height: 820px; }
.embed-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; gap: 12px; background: var(--white); color: var(--ink); text-align: center; }
.embed-loading span { width: 36px; height: 36px; margin: 0 auto; border: 4px solid rgba(11,92,255,.18); border-top-color: var(--blue); border-radius: 50%; animation: set-spin .7s linear infinite; }
.embed-shell.is-delayed .embed-loading span { display: none; }
.embed-shell.is-delayed .embed-loading { place-content: start center; padding-top: 32px; }

@keyframes set-spin { to { transform: rotate(360deg); } }

.set-step-schedule[open] { border-color: var(--blue); }
.set-step-schedule .set-step-number { background: var(--yellow); color: var(--ink); }
.set-step-schedule .set-connection-note { border-left-color: var(--yellow); background: var(--blue); color: var(--white); }

.set-footer {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
}

.set-footer strong { color: var(--yellow); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--yellow);
}

.set-header :where(a, button):focus-visible { outline-color: var(--white); }

@media (hover: hover) and (pointer: fine) {
  .set-ops-link, .set-submit-button, .set-step > summary { transition: transform .16s ease, background-color .16s ease; }
  .set-ops-link:hover, .set-submit-button:hover { transform: translateY(-1px); background: var(--yellow); color: var(--ink); }
  .set-step:not([data-locked]) > summary:hover { background: var(--soft-blue); }
  .set-external-link:hover { text-decoration-thickness: 3px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 82px; }
  .set-page { width: calc(100% - 20px); padding-top: 10px; }
  .set-header { top: 10px; min-height: 58px; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 12px; }
  .set-brand { min-height: 46px; gap: 9px; }
  .set-brand img { width: 100px; }
  .set-brand > span { padding: 4px 7px; font-size: 10px; }
  .set-ops-link { min-width: 58px; min-height: 44px; padding-inline: 10px; font-size: 11px; }
  .set-hero { min-height: 0; grid-template-columns: minmax(0, 1fr); margin-top: 10px; border-radius: 18px; }
  .set-hero::after { display: none; }
  .set-hero-image { grid-column: 1; grid-row: 1; width: 100%; min-height: 0; height: clamp(190px, 62vw, 250px); object-position: 55% center; }
  .set-hero-content { grid-column: 1; grid-row: 2; padding: 26px 20px 46px; }
  .set-hero h1 { font-size: clamp(44px, 14vw, 62px); line-height: .86; }
  .set-description { max-width: 28ch; margin-top: 18px; font-size: 16px; }
  .set-journey { gap: 5px; margin: -20px 7px 14px; }
  .set-journey li { min-height: 78px; grid-template-columns: 1fr; grid-template-rows: 26px auto auto; justify-items: center; gap: 3px; padding: 7px 4px; text-align: center; }
  .set-journey li > span { width: 26px; height: 26px; grid-row: 1; border-radius: 8px; font-size: 9px; }
  .set-journey strong { font-size: 12px; }
  .set-journey small { font-size: 10px; }
  .set-workspace, .set-step { scroll-margin-top: 82px; }
  .set-workspace .discovery-mode-note { grid-template-columns: auto minmax(0,1fr); }
  .set-workspace .discovery-mode-note span { grid-column: 1 / -1; grid-row: 2; }
  .set-workspace .discovery-mode-note button { grid-column: 2; grid-row: 1; justify-self: end; }
  .set-step { border-radius: 16px; }
  .set-step > summary { min-height: 70px; grid-template-columns: 38px minmax(0,1fr) 24px; gap: 10px; padding: 10px 12px; }
  .set-step-image { display: none; }
  .set-step-number { width: 36px; height: 36px; }
  .set-step > summary strong { font-size: 16px; }
  .set-step > summary small { font-size: 12px; }
  .set-step-body { padding: 0 8px 12px; }
  .embedded-app-form { min-height: 1640px; }
  .set-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding: 15px 16px; }
}

@media (max-width: 350px) {
  .set-brand img { width: 90px; }
  .set-brand > span { font-size: 9px; }
  .set-ops-link { min-width: 52px; padding-inline: 8px; }
  .set-eyebrow { font-size: 10px; }
  .set-journey strong { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  body::before, .set-header, .set-journey, .set-footer { display: none; }
  .set-page { width: 100%; }
}
