/* Debloat UI v1 */
:root {
  --ink: #182238;
  --muted: #6d7890;
  --soft-muted: #8993a8;
  --surface: #ffffff;
  --page: #f7f9fc;
  --blue: #5878d8;
  --blue-deep: #3d5fc1;
  --lavender: #eeebff;
  --lavender-deep: #7867cc;
  --mint: #e5f7f3;
  --line: #e8edf5;
  --shadow: 0 24px 60px rgba(42, 63, 111, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

.text-link {
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.results-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(236, 233, 255, 0.9), transparent 27rem),
    var(--page);
}

.results-shell {
  min-height: 100vh;
  padding-bottom: 64px;
}

.results-card {
  width: min(100% - 34px, 850px);
  margin: 70px auto 0;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 80px rgba(42, 63, 111, 0.11);
  backdrop-filter: blur(18px);
}

.routine-state,
.results-heading {
  text-align: center;
}

.routine-state > p:not(.eyebrow),
.results-heading > p:not(.eyebrow) {
  max-width: 510px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.routine-state h1,
.results-heading h1 {
  margin-bottom: 16px;
  font-size: clamp(2.45rem, 6vw, 4.1rem);
}

.loading-orb,
.error-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 23px;
  place-items: center;
  border-radius: 19px;
}

.loading-orb {
  border: 4px solid #dfe7fa;
  border-top-color: var(--blue);
  background: rgba(238, 243, 255, 0.75);
  animation: routine-spin 900ms linear infinite;
}

.error-mark {
  color: #b65b70;
  background: #fdebef;
  font-size: 1.4rem;
  font-weight: 800;
}

.routine-state .primary-button {
  margin-top: 18px;
}

.results-heading {
  margin-bottom: 38px;
}

.routine-summary {
  font-size: 1rem !important;
}

.routine-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.phase-card {
  padding: 23px 20px;
  border: 1px solid #e1e7f1;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.phase-card:nth-child(1) { background: linear-gradient(145deg, #eef4ff, #fff); }
.phase-card:nth-child(2) { background: linear-gradient(145deg, #f1efff, #fff); }
.phase-card:nth-child(3) { background: linear-gradient(145deg, #e8f8f4, #fff); }

.phase-label {
  display: block;
  margin-bottom: 13px;
  color: var(--blue-deep);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phase-card h2 {
  margin-bottom: 7px;
  font-size: 1.35rem;
}

.phase-duration {
  display: block;
  margin-bottom: 19px;
  color: var(--soft-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.exercise-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exercise-list li {
  padding-top: 13px;
  border-top: 1px solid rgba(218, 226, 239, 0.8);
}

.exercise-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 0.78rem;
}

.exercise-list p,
.exercise-reps {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.exercise-reps {
  display: block;
  margin-top: 6px;
  color: var(--blue-deep);
  font-weight: 750;
}

.wellness-disclaimer {
  margin: 27px auto 0;
  color: var(--soft-muted);
  font-size: 0.68rem;
  line-height: 1.55;
  text-align: center;
}

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

.scan-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 8%, rgba(225, 235, 255, 0.95), transparent 30rem),
    var(--page);
}

.scan-shell {
  min-height: 100vh;
  padding-bottom: 64px;
}

.scan-card {
  width: min(100% - 34px, 620px);
  margin: 62px auto 0;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 80px rgba(42, 63, 111, 0.11);
  text-align: center;
  backdrop-filter: blur(18px);
}

.scan-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.7rem, 7vw, 4.4rem);
}

.scan-card h1 span {
  color: var(--blue);
  font-style: italic;
}

.scan-subtitle {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.scan-stage {
  min-height: 350px;
  display: grid;
  place-items: center;
}

.start-camera-button {
  margin: 32px auto;
  font-size: 1rem;
}

.scan-error {
  margin: 18px auto;
  max-width: 440px;
  color: #b65b70;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.55;
}

.scan-stage .camera-panel {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 16px;
}

.scan-lens {
  position: relative;
  width: min(100%, 315px);
  aspect-ratio: 1;
  margin: 0 auto 17px;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #dfe7f5;
  box-shadow: 0 0 0 2px rgba(88, 120, 216, 0.23), 0 18px 36px rgba(42, 63, 111, 0.18);
}

.scan-lens #camera-video {
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

#face-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: scaleX(-1);
}

.scan-status {
  min-height: 1.2em;
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 750;
}

.scan-complete-loading {
  margin: 14px 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
}

.scan-corner {
  position: absolute;
  z-index: 2;
  width: 27px;
  height: 27px;
  border-color: rgba(255, 255, 255, 0.95);
  border-style: solid;
}

.corner-top-left { top: 26px; left: 26px; border-width: 2px 0 0 2px; border-radius: 8px 0 0; }
.corner-top-right { top: 26px; right: 26px; border-width: 2px 2px 0 0; border-radius: 0 8px 0 0; }
.corner-bottom-left { bottom: 26px; left: 26px; border-width: 0 0 2px 2px; border-radius: 0 0 0 8px; }
.corner-bottom-right { right: 26px; bottom: 26px; border-width: 0 2px 2px 0; border-radius: 0 0 8px; }

.scan-line {
  position: absolute;
  z-index: 3;
  top: 12%;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a6c2ff, transparent);
  box-shadow: 0 0 12px #a6c2ff;
  animation: scan-sweep 2.6s ease-in-out infinite;
}

#camera-warning .fallback-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 15px;
  place-items: center;
  color: var(--lavender-deep);
  border-radius: 16px;
  background: #e8e2ff;
  font-size: 1.5rem;
}

.scan-privacy {
  margin: 5px 0 21px;
  color: var(--soft-muted);
  font-size: 0.7rem;
  font-weight: 650;
}

.scan-submit {
  width: 100%;
  justify-content: center;
}

.scan-submit:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--blue-deep);
}

@keyframes scan-sweep {
  0%, 100% { top: 12%; opacity: 0.35; }
  50% { top: 84%; opacity: 1; }
}

.survey-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 12%, rgba(230, 237, 255, 0.95), transparent 25rem),
    var(--page);
}

.survey-shell {
  min-height: 100vh;
  padding-bottom: 64px;
}

.survey-card {
  width: min(100% - 34px, 700px);
  margin: 70px auto 0;
  padding: clamp(25px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 80px rgba(42, 63, 111, 0.11);
  backdrop-filter: blur(18px);
}

.survey-progress {
  margin-bottom: 46px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--soft-muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9edf5;
}

#progress-bar {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--lavender-deep));
  transition: width 350ms ease;
}

.survey-intro {
  margin-bottom: 37px;
}

.survey-intro .eyebrow {
  margin-bottom: 16px;
}

.survey-intro h1 {
  margin-bottom: 15px;
  font-size: clamp(2.45rem, 6vw, 4.2rem);
}

.survey-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.survey-step[hidden] {
  display: none;
}

.survey-step {
  border: 0;
  padding: 0;
  animation: survey-fade-in 300ms ease both;
}

.survey-step legend {
  margin-bottom: 22px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.option-grid {
  display: grid;
  gap: 12px;
}

.option-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.choice-card,
.shape-card {
  position: relative;
  display: flex;
  cursor: pointer;
}

.choice-card {
  min-height: 72px;
  align-items: center;
  padding: 17px 18px;
  color: var(--muted);
  border: 1px solid #e1e7f1;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.choice-card:hover,
.shape-card:hover {
  transform: translateY(-2px);
  border-color: #aabced;
}

.choice-card input,
.shape-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card:has(input:checked) {
  color: var(--blue-deep);
  border-color: var(--blue);
  background: #eef3ff;
  box-shadow: 0 8px 20px rgba(88, 120, 216, 0.12);
}

.choice-card small {
  display: block;
  margin-left: auto;
  color: var(--soft-muted);
  font-size: 0.65rem;
  font-weight: 500;
}

.shape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.shape-card {
  display: block;
  overflow: hidden;
  padding-bottom: 12px;
  border: 1px solid #e1e7f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.shape-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-bottom: 11px;
  object-fit: cover;
}

.shape-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.shape-card:has(input:checked) {
  border: 2px solid var(--blue);
  box-shadow: 0 10px 24px rgba(88, 120, 216, 0.17);
}

.shape-card:has(input:checked) span {
  color: var(--blue-deep);
}

.survey-error {
  margin: 18px 0 0;
  color: #b65b70;
  font-size: 0.76rem;
  font-weight: 650;
}

.survey-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 32px;
}

.secondary-button {
  min-height: 57px;
  padding: 0 22px;
  color: var(--muted);
  border: 1px solid #dce3ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 750;
}

.secondary-button:hover {
  color: var(--ink);
  border-color: #b8c5dc;
}

.survey-actions .primary-button {
  min-height: 57px;
}

@keyframes survey-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 34%, rgba(235, 239, 255, 0.95), transparent 29rem),
    linear-gradient(180deg, #fbfcff 0%, #f5f7fd 100%);
}

.site-nav,
.hero-content,
.features,
.site-footer {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #fff;
  border-radius: 9px;
  background: linear-gradient(145deg, #7390ed, #7665cd);
  box-shadow: 0 8px 18px rgba(88, 120, 216, 0.25);
  font-size: 0.82rem;
}

.brand-dot {
  color: var(--blue);
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: var(--muted);
  border: 1px solid rgba(209, 218, 235, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #70c9aa;
  box-shadow: 0 0 0 4px rgba(112, 201, 170, 0.15);
}

.hero-content {
  max-width: 780px;
  padding: 125px 0 148px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--blue-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

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

h1 {
  margin-bottom: 25px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h1 span {
  color: var(--blue);
  font-style: italic;
}

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

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 31px;
  color: var(--soft-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.lock-icon {
  color: var(--blue);
  font-size: 1rem;
  font-weight: 800;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  padding: 16px 21px 16px 25px;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--lavender-deep));
  box-shadow: 0 14px 26px rgba(88, 120, 216, 0.3);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(88, 120, 216, 0.38);
}

.primary-button:focus-visible {
  outline: 3px solid rgba(88, 120, 216, 0.28);
  outline-offset: 4px;
}

.camera-panel {
  width: min(100%, 420px);
  margin: 28px auto 0;
  padding: 20px;
  border: 1px solid rgba(209, 218, 235, 0.9);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(42, 63, 111, 0.1);
  backdrop-filter: blur(12px);
}

.camera-panel-title {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

#camera-warning {
  border-color: rgba(120, 103, 204, 0.22);
  background: linear-gradient(145deg, rgba(246, 243, 255, 0.92), rgba(255, 255, 255, 0.82));
}

#qrcode {
  display: grid;
  width: 176px;
  min-height: 176px;
  margin: 0 auto;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

#qrcode img,
#qrcode canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

#camera-container {
  border-color: rgba(88, 120, 216, 0.24);
}

#camera-video {
  display: block;
  width: 100%;
  max-height: 310px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  overflow: hidden;
  border: 1px solid rgba(88, 120, 216, 0.2);
  border-radius: 14px;
  background: #dfe7f5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 28, 50, 0.42);
  backdrop-filter: blur(10px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  max-height: min(740px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 255, 0.8));
  box-shadow: 0 30px 90px rgba(21, 35, 73, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  font-size: 1.35rem;
  line-height: 1;
}

.auth-close:hover,
.auth-close:focus-visible {
  color: var(--ink);
  background: #fff;
}

.auth-heading {
  text-align: center;
}

.auth-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(145deg, #7390ed, #7665cd);
  box-shadow: 0 10px 22px rgba(88, 120, 216, 0.23);
}

.auth-heading .eyebrow {
  margin-bottom: 10px;
  font-size: 0.62rem;
}

.auth-heading h2 {
  margin-bottom: 8px;
  font-size: 2.4rem;
}

.auth-heading > p:last-child {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.84rem;
}

.auth-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 13px;
  background: rgba(231, 235, 245, 0.75);
}

.auth-tab {
  padding: 10px;
  color: var(--muted);
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-tab.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 4px 12px rgba(42, 63, 111, 0.08);
}

.google-button,
.auth-submit,
.inline-field button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.google-button {
  color: var(--ink);
  border: 1px solid #dbe2ee;
  background: rgba(255, 255, 255, 0.82);
}

.google-button:hover,
.auth-submit:hover,
.inline-field button:hover {
  transform: translateY(-2px);
}

.google-logo {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #4285f4;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--soft-muted);
  font-size: 0.68rem;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--line);
}

.magic-link-group label,
#auth-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 750;
}

.inline-field {
  display: flex;
  gap: 8px;
}

.auth-dialog input {
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid #dce3ef;
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.auth-dialog input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(88, 120, 216, 0.14);
}

.inline-field button {
  flex: 0 0 auto;
  width: auto;
  min-height: 45px;
  padding: 0 15px;
  color: var(--blue-deep);
  border: 1px solid rgba(88, 120, 216, 0.25);
  background: #edf2ff;
  font-size: 0.72rem;
}

#auth-form label:not(:first-child) {
  margin-top: 14px;
}

.auth-submit {
  margin-top: 18px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--lavender-deep));
  box-shadow: 0 12px 22px rgba(88, 120, 216, 0.22);
}

.auth-privacy {
  margin: 18px 0 0;
  color: var(--soft-muted);
  font-size: 0.66rem;
  line-height: 1.55;
  text-align: center;
}

.button-arrow {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1rem;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(129, 150, 220, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: 210px;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
}

.orbit-two {
  top: 328px;
  left: 50%;
  width: 465px;
  height: 465px;
  transform: translateX(-50%);
  border-color: rgba(129, 150, 220, 0.11);
}

.hero-glow {
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.45;
  pointer-events: none;
}

.glow-left {
  top: 220px;
  left: -150px;
  background: var(--lavender);
}

.glow-right {
  top: 120px;
  right: -130px;
  background: #dff2f7;
}

.features {
  padding: 100px 0 112px;
}

.section-heading {
  max-width: 590px;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  margin-bottom: 17px;
}

h2 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.section-heading > p:last-child {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  min-height: 250px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(221, 228, 240, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 65px rgba(42, 63, 111, 0.14);
}

.card-blue {
  background: linear-gradient(145deg, #eef4ff, #f8faff);
}

.card-purple {
  background: linear-gradient(145deg, #f1efff, #fbfaff);
}

.card-mint {
  background: linear-gradient(145deg, #e8f8f4, #fafffe);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.step-number {
  color: var(--soft-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.card-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  font-size: 1.65rem;
  font-weight: 300;
}

.icon-survey {
  color: var(--blue-deep);
  background: #dce8ff;
}

.icon-scan {
  color: var(--lavender-deep);
  background: #e4ddff;
}

.icon-exercise {
  color: #3a9c86;
  background: #d5f0e8;
}

.feature-card h3 {
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.feature-card p {
  max-width: 235px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.card-accent {
  position: absolute;
  right: 24px;
  bottom: 23px;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.23;
}

.card-blue .card-accent { color: var(--blue); }
.card-purple .card-accent { color: var(--lavender-deep); }
.card-mint .card-accent { color: #3a9c86; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--soft-muted);
  font-size: 0.72rem;
}

.site-footer p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0;
}

.site-footer .brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 0.6rem;
}

@media (max-width: 720px) {
  .site-nav,
  .hero-content,
  .features,
  .site-footer {
    width: min(100% - 34px, 560px);
  }

  .hero {
    min-height: 650px;
  }

  .site-nav {
    padding-top: 20px;
  }

  .hero-content {
    padding-top: 102px;
    padding-bottom: 126px;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.7rem);
  }

  .hero-copy {
    font-size: 0.92rem;
  }

  .camera-panel {
    padding: 16px;
  }

  .survey-card {
    margin-top: 38px;
    padding: 27px 20px;
  }

  .scan-card {
    margin-top: 38px;
    padding: 28px 20px;
  }

  .scan-stage {
    min-height: 300px;
  }

  .results-card {
    margin-top: 38px;
    padding: 30px 20px;
  }

  .routine-phases {
    grid-template-columns: 1fr;
  }

  .option-grid-2,
  .option-grid-3,
  .shape-grid {
    grid-template-columns: 1fr;
  }

  .shape-card img {
    max-height: 180px;
  }

  .survey-actions {
    justify-content: stretch;
  }

  .survey-actions .primary-button,
  .survey-actions .secondary-button {
    flex: 1;
    justify-content: center;
    padding-inline: 14px;
  }

  .auth-modal {
    padding: 12px;
  }

  .auth-dialog {
    padding: 30px 20px 24px;
    border-radius: 24px;
  }

  .inline-field {
    display: grid;
    grid-template-columns: 1fr;
  }

  .inline-field button {
    width: 100%;
  }

  #qrcode {
    width: 160px;
    min-height: 160px;
  }

  .privacy-note {
    display: block;
    line-height: 1.7;
  }

  .orbit-one {
    top: 260px;
    width: 570px;
    height: 570px;
  }

  .orbit-two {
    top: 370px;
    width: 370px;
    height: 370px;
  }

  .features {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .feature-card {
    min-height: 218px;
  }

  .card-topline {
    margin-bottom: 24px;
  }

  .site-footer {
    display: block;
    padding-bottom: 25px;
  }

  .site-footer p + p {
    margin-top: 10px;
  }
}

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

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