:root {
  --bg: #090b0c;
  --surface: #121516;
  --surface-strong: #171b1d;
  --line: rgba(255, 255, 255, 0.11);
  --muted: #aeb6b8;
  --text: #ffffff;
  --brand: #77f7ff;
  --brand-dark: #071416;
  --radius: 24px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(119, 247, 255, 0.13), transparent 34rem),
    linear-gradient(180deg, #0d1112 0%, var(--bg) 40%);
  color: var(--text);
}

button,
select,
a {
  font: inherit;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.08;
  background: var(--brand);
}

.ambient-one {
  top: 15%;
  left: -12rem;
}

.ambient-two {
  right: -14rem;
  bottom: 12%;
}

.page-shell {
  width: min(100% - 32px, 560px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom));
}

.hero {
  padding: 12px 6px 28px;
  text-align: center;
}

.brand-logo {
  display: block;
  width: 148px;
  height: auto;
  margin: 0 auto 28px;
}

.challenge-label,
.card-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 480px;
  margin: 8px auto 12px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.7rem, 11vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 430px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.finder-card,
.result-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(26, 31, 33, 0.97), rgba(15, 18, 19, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.finder-card {
  padding: 26px 22px 22px;
}

.finder-card::before,
.result-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.card-heading {
  margin-bottom: 28px;
}

.card-heading h2 {
  margin: 5px 0 0;
  font-size: 1.65rem;
  letter-spacing: -0.035em;
}

.field-group {
  min-width: 0;
  margin: 0 0 25px;
  padding: 0;
  border: 0;
}

.field-group legend,
.field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #eef2f3;
  font-size: 0.95rem;
  font-weight: 700;
}

.field-group legend span,
.field-label span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(119, 247, 255, 0.13);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 900;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.goal-grid {
  grid-template-columns: 1fr;
}

.choice-card {
  position: relative;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-card span {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: #d9dfe0;
  font-size: 1rem;
  font-weight: 750;
  transition: 160ms ease;
}

.choice-card input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(119, 247, 255, 0.12);
  color: var(--brand-dark);
}

.choice-card input:focus-visible + span {
  outline: 3px solid rgba(119, 247, 255, 0.42);
  outline-offset: 3px;
}

.goal-card span {
  min-height: 64px;
  padding: 10px 14px;
  line-height: 1.35;
  text-align: center;
}

.quick-choice-grid {
  display: grid;
  gap: 10px;
}

.quick-choice-grid.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.quick-choice-grid.two-up {
  grid-template-columns: repeat(2, 1fr);
}

.quick-choice {
  position: relative;
  cursor: pointer;
}

.quick-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.quick-choice span {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  color: #d9dfe0;
  font-size: 0.92rem;
  font-weight: 780;
  transition: 160ms ease;
}

.quick-choice input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(119, 247, 255, 0.12);
  color: var(--brand-dark);
}

.quick-choice input:focus-visible + span {
  outline: 3px solid rgba(119, 247, 255, 0.42);
  outline-offset: 3px;
}

.select-wrap,
.number-wrap {
  position: relative;
}

select,
.number-wrap input {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: var(--surface-strong);
  color: var(--text);
  padding: 0 48px 0 16px;
  font-size: 1rem;
  font-weight: 650;
}

select {
  appearance: none;
}

.number-wrap input {
  appearance: textfield;
  padding-right: 78px;
}

.number-wrap input::-webkit-inner-spin-button,
.number-wrap input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

select:focus-visible,
.number-wrap input:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(119, 247, 255, 0.12);
}

.number-wrap > span {
  position: absolute;
  top: 50%;
  right: 17px;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  pointer-events: none;
  transform: translateY(-50%);
  text-transform: uppercase;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 20px;
  height: 20px;
  pointer-events: none;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.field-note {
  margin: 9px 2px 0;
  color: #818a8d;
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-error {
  min-height: 1.2em;
  margin: -8px 0 12px;
  color: #ffaaa5;
  font-size: 0.85rem;
  font-weight: 650;
}

.primary-button,
.secondary-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(119, 247, 255, 0.1);
  color: #071113;
}

.secondary-button {
  border: 1px solid rgba(119, 247, 255, 0.48);
  background: rgba(119, 247, 255, 0.06);
  color: var(--brand);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px) scale(0.995);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.text-button:focus-visible {
  outline: 3px solid rgba(119, 247, 255, 0.42);
  outline-offset: 3px;
}

.primary-button svg,
.secondary-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.result-card {
  padding: 27px 22px 22px;
  text-align: center;
}

.result-card[hidden] {
  display: none;
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.result-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(119, 247, 255, 0.13);
}

.result-check svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.result-selection {
  margin: 20px 0 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-profile {
  margin: 0 0 9px;
  color: #778184;
  font-size: 0.76rem;
  line-height: 1.45;
}

.result-card h2 {
  margin: 0;
  color: var(--brand);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.5rem, 17vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.result-card h2 small {
  font-family: inherit;
  font-size: 0.34em;
  letter-spacing: 0.03em;
}

.result-copy {
  max-width: 430px;
  margin: 14px auto 24px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.day-structure {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.day-structure div {
  display: flex;
  min-height: 66px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  background: rgba(17, 20, 21, 0.98);
  padding: 11px 13px;
  text-align: left;
}

.day-structure div:last-child {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
}

.day-structure span {
  color: #8e979a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.day-structure strong {
  color: #f2f5f5;
  font-size: 0.98rem;
}

.result-actions {
  display: grid;
  gap: 11px;
}

.save-note {
  margin: 12px 5px 0;
  color: #7f898c;
  font-size: 0.73rem;
  line-height: 1.5;
}

.text-button {
  margin: 19px auto 0;
  border: 0;
  background: transparent;
  color: #aeb6b8;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 4px;
}

.support-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 18px 2px 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.support-note > span {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  border: 1px solid #697276;
  border-radius: 999px;
  color: #aeb6b8;
  font-family: Georgia, serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.support-note p {
  margin: 0;
  color: #80898c;
  font-size: 0.75rem;
  line-height: 1.55;
}

footer {
  padding: 28px 0 0;
  text-align: center;
}

footer p {
  margin: 0 0 3px;
  color: #e4e9ea;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

footer span {
  color: #606a6c;
  font-size: 0.72rem;
}

.photo-shell {
  width: min(100% - 24px, 820px);
  margin: 0 auto;
  padding: max(26px, env(safe-area-inset-top)) 0 max(34px, env(safe-area-inset-bottom));
}

.photo-header {
  padding: 8px 8px 26px;
  text-align: center;
}

.photo-header .brand-logo {
  width: 130px;
  margin-bottom: 22px;
}

.photo-header h1 {
  margin: 7px 0 10px;
  font-size: clamp(2.75rem, 13vw, 4.5rem);
}

.photo-header > p:not(.challenge-label) {
  max-width: 430px;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.text-back {
  color: var(--brand);
  font-size: 0.83rem;
  font-weight: 750;
  text-underline-offset: 4px;
}

.photo-pages {
  display: grid;
  gap: 22px;
}

.photo-page-card {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.photo-page-card p {
  margin: 1px 0 10px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.photo-page-card img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  border-radius: 8px;
  background: white;
}

.photo-page-card .secondary-button {
  min-height: 48px;
}

@media (min-width: 600px) {
  .page-shell {
    padding-top: 42px;
  }

  .finder-card,
  .result-card {
    padding: 32px;
  }

  .brand-logo {
    width: 160px;
  }

  .goal-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .day-structure {
    grid-template-columns: repeat(5, 1fr);
  }

  .day-structure div:last-child {
    grid-column: auto;
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
