:root {
  color-scheme: light;
  --ink: #244f48;
  --ink-2: #4d746d;
  --muted: #789991;
  --line: rgba(55, 128, 113, 0.14);
  --aqua: #78d6c0;
  --aqua-dark: #348f7c;
  --aqua-soft: #e6faf5;
  --aqua-pale: #f3fcf9;
  --paper: #fcfffe;
  --white: #fff;
  --danger: #ba3f4c;
  --shadow: 0 30px 80px rgba(53, 115, 103, 0.13);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eafbf7;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(137, 225, 204, 0.3), transparent 32rem),
    radial-gradient(circle at 95% 95%, rgba(214, 247, 232, 0.72), transparent 28rem),
    #f1fcf9;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

.ambient {
  position: fixed;
  z-index: 0;
  border: 1px solid rgba(15, 137, 111, 0.08);
  border-radius: 999px;
  pointer-events: none;
}

.ambient--one {
  top: -14rem;
  right: -13rem;
  width: 30rem;
  height: 30rem;
}

.ambient--two {
  bottom: -18rem;
  left: -16rem;
  width: 34rem;
  height: 34rem;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 460px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(1.1rem, env(safe-area-inset-top)) 1.25rem max(1rem, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand__name span {
  color: var(--aqua-dark);
}

.topbar__status {
  display: inline-flex;
  min-height: 1.95rem;
  align-items: center;
  gap: 0.42rem;
  padding: 0.4rem 0.68rem;
  border: 1px solid rgba(8, 47, 41, 0.08);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.live-dot {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #28c69e;
  box-shadow: 0 0 0 0 rgba(40, 198, 158, 0.3);
  animation: pulse 2.3s ease-out infinite;
}

.progress-wrap {
  margin-top: 1.45rem;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.52rem;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 500;
}

.progress-copy span:last-child {
  color: var(--aqua-dark);
}

.progress-track {
  height: 0.25rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(8, 47, 41, 0.09);
}

.progress-track span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua-dark), var(--aqua));
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 1.45rem 0 1.2rem;
}

.screen {
  width: 100%;
  animation: screen-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.screen--exit {
  animation: screen-out 160ms ease both;
}

.eyebrow,
.question-kicker {
  margin: 0 0 0.75rem;
  color: var(--aqua-dark);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.headline,
.question-title,
.result-title,
.success-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.headline {
  max-width: 11ch;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.75rem, 12.5vw, 3.8rem);
  line-height: 0.94;
  text-align: center;
}

.headline em {
  color: var(--aqua-dark);
  font-style: normal;
}

.lead {
  max-width: 31ch;
  margin: 1rem auto 0;
  color: var(--ink-2);
  font-size: 0.91rem;
  font-weight: 300;
  line-height: 1.58;
  text-align: center;
}

.logo-photo {
  display: grid;
  width: 5.65rem;
  height: 5.65rem;
  margin: 0 auto 1.1rem;
  place-items: center;
  border: 1px solid rgba(92, 185, 164, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 32px rgba(67, 137, 123, 0.12);
}

.logo-photo__frame {
  display: grid;
  width: 4.75rem;
  height: 4.75rem;
  overflow: hidden;
  place-items: center;
  border: 0.45rem solid var(--aqua-soft);
  border-radius: 50%;
  background: var(--white);
}

.logo-photo img {
  width: 66%;
  height: 66%;
  object-fit: contain;
}

.screen--welcome .eyebrow {
  text-align: center;
}

.occupancy-card {
  margin: 1.2rem 0 0.9rem;
  padding: 0.95rem 1rem 0.85rem;
  border: 1px solid rgba(87, 178, 157, 0.17);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(69, 139, 125, 0.07);
}

.occupancy-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.occupancy-card__top strong,
.occupancy-card__top span {
  display: block;
}

.occupancy-card__top strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.occupancy-card__top span {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 300;
}

.occupancy-card__top b {
  color: var(--aqua-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.occupancy-card__track {
  height: 0.42rem;
  margin-top: 0.65rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e4f2ee;
}

.occupancy-card__track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9be1d1, var(--aqua-dark));
  transition: width 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.occupancy-card > p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 300;
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 3.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.2rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.91rem;
  font-weight: 600;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:active {
  transform: scale(0.985);
}

.button:focus-visible,
.choice:focus-visible,
.brand:focus-visible,
.text-button:focus-visible,
.input:focus-visible,
.dialog__close:focus-visible {
  outline: 3px solid rgba(30, 185, 144, 0.22);
  outline-offset: 3px;
}

.button--primary {
  color: var(--white);
  background: linear-gradient(135deg, #3f9d89, #69c9b2);
  box-shadow: 0 14px 28px rgba(61, 151, 132, 0.2);
}

.button--primary:hover {
  box-shadow: 0 17px 34px rgba(9, 126, 101, 0.28);
  transform: translateY(-1px);
}

.button--ghost {
  min-height: 2.8rem;
  margin-top: 0.3rem;
  color: var(--muted);
  background: transparent;
  font-size: 0.75rem;
}

.button--dark {
  color: var(--white);
  background: var(--ink);
}

.button svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tiny-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 300;
  text-align: center;
}

.question-title {
  max-width: 12ch;
  font-size: clamp(2.15rem, 9vw, 2.75rem);
  line-height: 0.98;
}

.question-help {
  margin: 0.75rem 0 1.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.choices {
  display: grid;
  gap: 0.65rem;
}

.choice {
  display: grid;
  grid-template-columns: 1fr 1rem;
  min-height: 4.2rem;
  align-items: center;
  gap: 0.72rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  cursor: pointer;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.choice:hover {
  border-color: rgba(12, 124, 102, 0.4);
  background: var(--white);
  box-shadow: 0 10px 25px rgba(7, 75, 63, 0.08);
  transform: translateY(-1px);
}

.choice strong {
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.3;
}

.choice svg {
  width: 1rem;
  fill: none;
  stroke: var(--aqua-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.result-title {
  max-width: 13ch;
  font-size: clamp(2.2rem, 9.5vw, 2.95rem);
  line-height: 0.98;
}

.result-copy {
  max-width: 30ch;
  margin: 0.8rem 0 1.2rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.response-note {
  margin: 1.1rem 0;
  padding: 1.1rem;
  border: 1px solid rgba(87, 178, 157, 0.17);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(69, 139, 125, 0.07);
}

.response-note strong {
  display: block;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
}

.response-note p {
  margin: 0.45rem 0 0;
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.5;
}

.form-group {
  margin-top: 1.15rem;
}

.form-group--compact {
  margin-top: 0.1rem;
}

.label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  min-height: 3.7rem;
  padding: 0.85rem 1rem 0.85rem 2.95rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(7, 75, 63, 0.05);
  font-size: 0.94rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input::placeholder {
  color: #95aaa6;
}

.input:focus {
  border-color: var(--aqua);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 185, 144, 0.1);
}

.input[aria-invalid="true"] {
  border-color: rgba(186, 63, 76, 0.65);
  box-shadow: 0 0 0 4px rgba(186, 63, 76, 0.08);
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.05rem;
  color: var(--aqua-dark);
  pointer-events: none;
  transform: translateY(-50%);
}

.input-icon svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.field-error {
  min-height: 1.1rem;
  margin: 0.38rem 0 0;
  color: var(--danger);
  font-size: 0.68rem;
  font-weight: 700;
}

.success {
  text-align: center;
}

.success-badge {
  display: grid;
  width: 5.1rem;
  height: 5.1rem;
  margin: 0 auto 1.35rem;
  place-items: center;
  border-radius: 1.55rem;
  color: var(--white);
  background: linear-gradient(145deg, var(--aqua), var(--aqua-dark));
  box-shadow: 0 18px 38px rgba(12, 124, 102, 0.24);
  transform: rotate(-4deg);
}

.success-badge svg {
  width: 2.3rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.success-title {
  font-size: clamp(2.45rem, 10vw, 3.15rem);
  line-height: 1.02;
}

.success-copy {
  margin: 0.85rem auto 1.4rem;
  color: var(--ink-2);
  font-size: 0.94rem;
}

.redirect-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.65rem;
}

.footer {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding-top: 0.45rem;
  color: #78928e;
  font-size: 0.61rem;
}

.footer > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer svg {
  width: 0.82rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.text-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  color: inherit;
  background: transparent;
  font-size: inherit;
}

.privacy-dialog {
  width: min(calc(100% - 2rem), 400px);
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.privacy-dialog::backdrop {
  background: rgba(3, 34, 29, 0.48);
  backdrop-filter: blur(6px);
}

.dialog__top {
  display: flex;
  justify-content: space-between;
}

.dialog__icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.8rem;
  color: var(--aqua-dark);
  background: var(--aqua-soft);
}

.dialog__icon svg,
.dialog__close svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.dialog__close {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  background: var(--aqua-soft);
}

.privacy-dialog h2 {
  margin: 1.1rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.privacy-dialog p {
  margin: 0.6rem 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 1rem;
  z-index: 10;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin: auto;
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(4, 41, 35, 0.25);
  font-size: 0.73rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden {
  display: none !important;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes screen-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(40, 198, 158, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 198, 158, 0);
  }
}

@media (min-width: 720px) {
  body {
    padding: 2rem 0;
  }

  .app-shell {
    min-height: min(840px, calc(100dvh - 4rem));
    padding: 1.5rem 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 2rem;
    background: rgba(252, 255, 254, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }
}

@media (max-height: 700px) {
  .stage {
    justify-content: flex-start;
    padding-top: 1.35rem;
  }

  .headline {
    font-size: 2.55rem;
  }

  .occupancy-card {
    margin-top: 1rem;
  }

  .logo-photo {
    width: 5rem;
    height: 5rem;
    margin-bottom: 0.8rem;
  }

  .logo-photo__frame {
    width: 4.2rem;
    height: 4.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
