﻿:root {
  --ink: #2e2b2a;
  --green: #5aae18;
  --green-dark: #3f8c14;
  --orange: #f58b1f;
  --orange-dark: #e76e00;
  --cream: #fff9eb;
  --line: #2f2b2a;
  --text-xs: 0.76rem;
  --text-sm: 0.88rem;
  --text-base: 0.98rem;
  --text-md: 1.05rem;
  --text-lg: 1.18rem;
  --text-xl: 1.65rem;
  --leading-tight: 1.15;
  --leading-copy: 1.45;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #fefefe 0%, #f1f1f1 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: var(--text-base);
  line-height: var(--leading-copy);
  overflow-x: hidden;
  overflow-y: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px 10px;
}

.phone-frame {
  position: relative;
  width: min(100%, 390px, calc((100dvh - 32px) * 390 / 844));
  height: min(calc(100dvh - 32px), calc(100vw * 844 / 390), 844px);
  max-height: 844px;
  aspect-ratio: 390 / 844;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(36, 33, 24, 0.18),
    0 12px 24px rgba(36, 33, 24, 0.08);
}

.screen-modal {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px 12px 34px;
  z-index: 6;
}

.screen-modal.is-active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 33, 18, 0.26);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 362px);
  min-height: 0;
  max-width: none;
  max-height: min(calc(100dvh - 52px), calc(100% - 12px));
  overflow-y: auto;
  box-shadow:
    0 18px 40px rgba(33, 33, 22, 0.22),
    0 10px 0 rgba(0, 0, 0, 0.12);
}

.phone-screen.modal-card {
  padding-bottom: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.modal-card .app-topbar {
  min-height: auto;
  margin-bottom: 2px;
}

.modal-card .brand-logo-top {
  width: min(180px, 100%);
}

.modal-header {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  text-align: center;
}

.modal-header h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  color: var(--green-dark);
  letter-spacing: -0.01em;
}

.modal-header .screen-copy {
  margin: 0;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 14px 14px 84px;
  background:
    radial-gradient(circle at 15% 92%, #7ecf2b 0, #7ecf2b 10%, transparent 10.5%),
    radial-gradient(circle at 25% 96%, #a6e14a 0, #a6e14a 10%, transparent 10.5%),
    radial-gradient(circle at 84% 90%, #7ecf2b 0, #7ecf2b 10%, transparent 10.5%),
    linear-gradient(180deg, #fffdf8 0%, var(--cream) 88%, #b3db4b 88%, #90c733 100%);
  border: 4px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.phone-screen.flow-screen-with-action {
  grid-template-rows: minmax(0, 1fr) auto;
  padding-bottom: 0;
}

.home-photo-screen {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.34) 0%, rgba(250, 243, 223, 0.48) 100%),
    url("/assets/foto-milo.jpeg") center 24% / cover no-repeat,
    radial-gradient(circle at 15% 92%, #7ecf2b 0, #7ecf2b 10%, transparent 10.5%),
    radial-gradient(circle at 25% 96%, #a6e14a 0, #a6e14a 10%, transparent 10.5%),
    radial-gradient(circle at 84% 90%, #7ecf2b 0, #7ecf2b 10%, transparent 10.5%),
    linear-gradient(180deg, #fffdf8 0%, var(--cream) 88%, #b3db4b 88%, #90c733 100%);
}

.flow-screen {
  display: none;
}

.flow-screen.is-active {
  display: block;
}

.flow-screen-with-action.is-active {
  display: grid;
}

.booking-screen,
.calendar-screen,
.review-screen,
.thanks-screen {
  overflow-x: hidden;
  overflow-y: hidden;
}

.screen-scroll {
  min-height: 0;
  padding: 14px 14px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.screen-form {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.app-topbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  justify-items: center;
  min-height: 34px;
  margin-bottom: 0;
  padding: 0;
}

.app-topbar > :last-child {
  justify-self: center;
}

.brand-logo {
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-logo-top {
  width: 208px;
  max-width: 100%;
  height: auto;
  cursor: pointer;
}

.topbar-progress {
  width: 112px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(47, 43, 42, 0.08);
  background: rgba(255, 255, 255, 0.56);
  overflow: hidden;
}

.topbar-progress-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #6fcc2a 0%, var(--green) 100%);
}

.progress-details {
  width: 34%;
}

.progress-schedule {
  width: 68%;
}

.progress-review {
  width: 100%;
}

.screen-header,
.screen-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.screen-header {
  align-items: flex-start;
}

.screen-top {
  flex-direction: column;
  text-align: center;
  gap: 4px;
}

.screen-top-tight {
  padding-top: 0;
}

.screen-header h1,
.screen-header h2,
.screen-top h2,
.status-screen h2,
.thanks-screen h2,
.feature-card h3,
.cta-button,
.nav-item,
.day-chip strong {
  margin: 0;
  font-family: "Fredoka", sans-serif;
}

.screen-header h1,
.screen-header h2,
.screen-top h2,
.status-screen h2,
.thanks-screen h2 {
  color: var(--green-dark);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

.screen-copy,
.phone-screen p {
  margin: 4px 0;
  font-size: var(--text-base);
  line-height: var(--leading-copy);
  font-weight: 600;
}

.screen-top,
.screen-header {
  margin-top: 0;
}

.screen-top-tight + h2,
.app-topbar + h2,
.app-topbar + .screen-copy,
.app-topbar + .screen-header {
  margin-top: 0;
}

.micro-copy {
  margin: 2px 0 0;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: #5a564f;
}

.micro-note {
  margin-top: 10px;
  font-size: var(--text-xs);
  line-height: 1.4;
  color: #5f644f;
  text-align: center;
}

.status-screen,
.thanks-screen,
.about-screen {
  text-align: center;
}

.status-screen {
  display: grid;
  align-content: start;
  justify-items: stretch;
  gap: 10px;
  padding-top: 16px;
}

.warning h2,
.thanks-screen h2 {
  color: var(--orange-dark);
}

.field {
  display: block;
  margin: 8px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #47633d;
  font-size: var(--text-sm);
  font-weight: 800;
  cursor: pointer;
}

.back-link::before {
  content: "<";
  font-size: var(--text-base);
}

.stack-form {
  display: grid;
  gap: 2px;
}

.field span,
.walkday-fieldset legend {
  display: block;
  margin-bottom: 5px;
  font-size: var(--text-xs);
  line-height: 1.3;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid #d8d1c5;
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
}

textarea {
  resize: vertical;
}

.cta-button {
  width: 100%;
  border: 2px solid rgba(63, 140, 20, 0.14);
  border-radius: 12px;
  padding: 11px 16px;
  background: linear-gradient(180deg, #67c026 0%, #58aa18 100%);
  color: #fff;
  font-size: var(--text-md);
  line-height: 1.15;
  font-weight: 800;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.11),
    0 8px 16px rgba(83, 146, 28, 0.14);
  cursor: pointer;
}

.cta-button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cta-button.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: button-spin 0.8s linear infinite;
}

.flow-action-bar {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(47, 43, 42, 0.06);
  background: rgba(255, 252, 244, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 14px rgba(46, 43, 42, 0.05);
}

.cta-button.accent {
  background: linear-gradient(180deg, #ff9f36 0%, var(--orange) 100%);
}

.cta-button:disabled,
.cta-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.06);
}

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

.icon-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 28px auto 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.status-icon {
  display: grid;
  place-items: center;
  width: clamp(58px, 16vw, 78px);
  height: clamp(58px, 16vw, 78px);
  margin: 12px auto 2px;
  border-radius: 999px;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(231, 110, 0, 0.12);
}

.status-icon svg {
  width: 58%;
  height: 58%;
}

.status-icon circle,
.status-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.status-icon .status-icon-dot {
  fill: currentColor;
  stroke: none;
}

.status-icon-warning {
  background: linear-gradient(180deg, #ffb25c 0%, var(--orange) 100%);
  color: #fff8ec;
}

.status-icon-success {
  background: linear-gradient(180deg, #8fde4b 0%, #58b51d 100%);
  color: #f7ffef;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.08),
    0 10px 18px rgba(88, 181, 29, 0.22);
}

.illustration {
  display: block;
  width: min(100%, 190px);
  margin: 6px auto 10px;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.08));
}

.illustration-welcome {
  width: min(100%, 205px);
}

.illustration-thanks {
  width: min(100%, 165px);
}

.illustration-about {
  width: min(100%, 190px);
  margin-top: 14px;
}

.feature-card {
  margin: 10px 0;
  padding: 12px;
  border: 2px solid #d8d1c5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1.5px solid #d6ddc1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #47633d;
  font-size: var(--text-xs);
  font-weight: 800;
}

.feature-card-list {
  background: rgba(255, 255, 255, 0.78);
}

.home-photo-screen .feature-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(216, 209, 197, 0.92);
  backdrop-filter: blur(3px);
}

.info-rows {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(71, 99, 61, 0.22);
}

.info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-row span {
  font-size: var(--text-sm);
  color: #5a564f;
  font-weight: 700;
}

.info-row strong {
  font-family: "Fredoka", sans-serif;
  font-size: var(--text-base);
  line-height: var(--leading-tight);
  color: var(--ink);
  text-align: right;
}

.testimonial-card blockquote {
  margin: 8px 0 0;
  color: #2f4530;
  font-size: var(--text-base);
  line-height: var(--leading-copy);
  font-weight: 700;
}

.testimonial-meta {
  margin-top: 8px;
  font-size: var(--text-xs);
  color: #6a705a;
}

.inline-trust-card {
  display: grid;
  gap: 4px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  border: 1.5px solid rgba(90, 121, 70, 0.18);
  border-radius: 12px;
  background: rgba(245, 250, 233, 0.82);
}

.inline-trust-card strong {
  font-family: "Fredoka", sans-serif;
  font-size: var(--text-base);
  color: #375a2a;
}

.inline-trust-card span {
  font-size: var(--text-sm);
  line-height: var(--leading-copy);
  color: #4f5944;
  font-weight: 700;
}

.inline-trust-card-soft {
  background: rgba(255, 255, 255, 0.82);
}

.privacy-note {
  margin: 8px 0 0;
  font-size: var(--text-xs);
  line-height: var(--leading-copy);
  color: #5f644f;
}

.contact-card .info-row strong {
  font-size: var(--text-sm);
}

.booking-screen .screen-header,
.calendar-screen .screen-header,
.review-screen .screen-header {
  margin-bottom: 8px;
}

.feature-card h3 {
  color: var(--green-dark);
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
}

.feature-card p {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  line-height: var(--leading-copy);
}

.feature-card-steps h3::before {
  content: "+ ";
}

.feature-card-steps p {
  margin: 8px 0 0;
}

.success-card {
  margin-top: 10px;
  text-align: left;
  padding: 16px 16px 14px;
  border-radius: 20px;
}

.success-card p {
  margin: 0;
}

#success-message {
  display: block;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.success-details {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.success-detail-line {
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--green-dark);
}

.success-detail-line strong {
  color: var(--orange-dark);
}

.calendar-strip,
.time-list {
  display: grid;
  gap: 8px;
}

.schedule-section {
  margin-top: 10px;
}

.date-list-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.date-scroll-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid #c7cfab;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #eef7d0 100%);
  color: var(--green-dark);
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.04),
    0 2px 6px rgba(94, 118, 58, 0.08);
  cursor: pointer;
}

.date-scroll-button svg {
  width: 18px;
  height: 18px;
}

.date-scroll-button path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.date-scroll-button:disabled {
  opacity: 0.38;
  cursor: default;
}

.section-label {
  margin: 0 0 8px;
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5a564f;
}

.date-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88px;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.date-list::-webkit-scrollbar {
  display: none;
}

.day-chip,
.time-slot {
  border-radius: 8px;
  border: 2px solid #c7cfab;
  background: #eef7d0;
  text-align: center;
  font-weight: 800;
}

.day-chip,
.time-slot {
  cursor: pointer;
}

.day-chip {
  display: grid;
  gap: 2px;
  min-height: 86px;
  padding: 10px 6px;
  align-content: center;
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #eef7d0 100%);
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.04),
    0 2px 6px rgba(94, 118, 58, 0.08);
}

.day-chip span {
  display: block;
  font-size: var(--text-xs);
  line-height: 1.2;
  color: #66704d;
  text-transform: capitalize;
}

.day-chip strong {
  display: block;
  font-size: 1.45rem;
  line-height: var(--leading-tight);
}

.time-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 8px;
}

.time-slot {
  display: block;
  padding: 10px;
  font-size: var(--text-base);
  line-height: 1.2;
}

.day-chip.is-selected,
.time-slot.is-selected {
  border-color: var(--green-dark);
  background: linear-gradient(180deg, #eef9d1 0%, #d9f3a8 100%);
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(83, 146, 28, 0.18);
}

.time-slot.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-status {
  min-height: 24px;
  margin: 6px 0 0;
  font-size: var(--text-sm);
  line-height: 1.4;
  font-weight: 800;
  text-align: center;
  color: var(--green-dark);
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 10px 10px;
  background: linear-gradient(180deg, rgba(91, 163, 36, 0.05), rgba(91, 163, 36, 0.22));
}

.bottom-nav-persistent {
  z-index: 3;
}

.bottom-nav.is-hidden {
  display: none;
}

.nav-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 2px;
  border: 1.5px solid #d6ddc1;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffef8 0%, #eef6dc 100%);
  color: #47633d;
  font-size: var(--text-xs);
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-item.active {
  border-color: #c7d9b1;
  background: linear-gradient(180deg, #f6fbef 0%, #e3f2c7 100%);
  color: #2f5e2e;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 20px;
  line-height: 1;
  color: inherit;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.nav-label {
  line-height: 1;
}

.review-summary {
  display: grid;
  gap: 10px;
  margin: 6px 0 12px;
}

.review-item {
  padding: 12px;
  border: 2px solid #d8d1c5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.03);
}

.review-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: var(--text-xs);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6a705a;
}

.review-item span {
  display: block;
  font-size: var(--text-base);
  line-height: var(--leading-copy);
  color: var(--ink);
  font-weight: 800;
  word-break: break-word;
}

.review-intro {
  margin-top: 0;
}

@media (max-width: 640px) {
  .app-shell {
    padding: 0;
  }

  .phone-frame {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-screen {
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .modal-card {
    width: calc(100% - 16px);
    max-height: 100%;
  }
}

@media (max-height: 760px) {
  :root {
    --text-sm: 0.84rem;
    --text-base: 0.94rem;
    --text-md: 1rem;
    --text-lg: 1.1rem;
    --text-xl: 1.46rem;
  }

  .screen-modal {
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .modal-card {
    max-height: calc(100dvh - 20px);
  }

  .phone-screen.modal-card {
    padding-bottom: 16px;
  }

  .modal-card .app-topbar {
    margin-bottom: 0;
  }

  .modal-card .brand-logo-top {
    width: min(152px, 100%);
  }

  .modal-header {
    margin-bottom: 8px;
  }

  .app-shell {
    place-items: start center;
  }

  .phone-screen {
    padding: 12px 12px 76px;
  }

  .screen-scroll {
    padding: 12px 12px 20px;
  }

  .brand-logo-top {
    width: 176px;
  }

  .feature-card {
    margin: 8px 0;
    padding: 10px;
  }

  .trust-strip {
    gap: 6px;
  }

  .trust-pill {
    min-height: 28px;
    padding: 5px 9px;
  }

  .field {
    margin: 6px 0;
  }

  input,
  select,
  textarea {
    padding: 8px 10px;
  }

  .cta-button {
    padding: 10px 14px;
  }

  .flow-action-bar {
    padding: 10px 12px 12px;
  }

  .date-list-shell {
    gap: 6px;
  }

  .date-scroll-button {
    width: 34px;
    height: 34px;
  }

  .status-screen {
    gap: 8px;
    padding-top: 12px;
  }

  .status-icon {
    width: 54px;
    height: 54px;
    margin-top: 8px;
  }

  .status-screen p {
    line-height: 1.35;
  }

  .micro-note {
    margin-top: 6px;
  }

}

