:root {
  --bg: #faf7f2;
  --card-bg: #ffffff;
  --accent: #1f7a4d;
  --accent-soft: #e3f1e8;
  --accent-strong: #115033;
  --text-main: #1f2622;
  --text-muted: #6b736e;
  --border-subtle: #e1ddd5;
  --danger: #d64545;
  --shadow-soft: 0 12px 30px rgba(17, 23, 19, 0.12);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --app-max-width: 480px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Roboto", sans-serif;
  background: radial-gradient(circle at top left, #f7efdf 0, #faf7f2 40%, #f3efe7 100%);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.app-root {
  width: 100%;
  max-width: var(--app-max-width);
  height: 100vh;
  padding: 10px 14px 10px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
}

/* Top bar */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f7a4d, #3ca66f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(15, 92, 58, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
}

/* Layout */

.layout {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 10px;
  align-items: center;
}

.hero-illustration {
  position: relative;
  width: 100%;
  padding-top: 75%;
  border-radius: 24px;
  background: linear-gradient(160deg, #f4ede0 0, #fdfbf6 55%, #f1f6f2 100%);
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(31, 122, 77, 0.12);
}

.hero-sun {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffd26f 0, #ffb347 55%, #f4961f 100%);
  box-shadow: 0 0 0 8px rgba(255, 210, 111, 0.35);
}

.hero-ground {
  position: absolute;
  bottom: -12%;
  left: -10%;
  width: 130%;
  height: 40%;
  background: radial-gradient(circle at top, #c6dfc7 0, #96c39d 60%, #6a9c75 100%);
}

.hero-dog {
  position: absolute;
  bottom: 12%;
  left: 14%;
  width: 36%;
  height: 40%;
  border-radius: 40% 60% 35% 65%;
  background: #f7b26b;
  box-shadow: 0 10px 18px rgba(116, 81, 40, 0.3);
}

.hero-dog::before {
  content: "";
  position: absolute;
  top: -18%;
  right: 4%;
  width: 55%;
  height: 50%;
  border-radius: 60% 40% 60% 40%;
  background: #f7b26b;
}

.hero-dog::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 16%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #4a2c1a;
  box-shadow: 16px 0 0 #4a2c1a;
}

.hero-walker {
  position: absolute;
  bottom: 22%;
  right: 10%;
  width: 30%;
  height: 48%;
  border-radius: 60% 40% 40% 60%;
  background: linear-gradient(180deg, #f6f0e7 0, #e2dbc9 45%, #34694a 70%, #244432 100%);
}

.hero-walker::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 18%;
  width: 55%;
  height: 40%;
  border-radius: 60% 40% 55% 45%;
  background: #f0d2ae;
}

.hero-walker::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 22%;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #33251c;
}

.hero-copy h1 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Booking card */

.booking-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-row-dogs {
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 4px;
}

.booking-row-time {
  align-items: flex-start;
}

.booking-row-notes {
  flex-direction: column;
  align-items: stretch;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 52px;
}

/* Chips */

.chip-group {
  display: flex;
  gap: 6px;
  flex: 1;
}

.chip {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #f9f5ef;
  color: var(--text-main);
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
  outline: none;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast), transform 0.08s ease-out;
}

.chip-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
  box-shadow: 0 2px 6px rgba(31, 122, 77, 0.25);
}

.chip:active {
  transform: translateY(1px);
}

/* Segmented control */

.segmented {
  display: inline-flex;
  border-radius: var(--radius-pill);
  background: #f3ede5;
  padding: 3px;
  gap: 2px;
}

.segment-btn {
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-size: 11px;
  padding: 4px 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform 0.08s ease-out;
}

.segment-selected {
  background: #ffffff;
  color: var(--accent-strong);
  box-shadow: 0 2px 4px rgba(31, 122, 77, 0.25);
}

.segment-btn:active {
  transform: translateY(1px);
}

/* Inputs */

.time-input {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-main);
  background: #fdfbf7;
  margin-left: 6px;
  flex: 1;
  min-width: 0;
}

.notes-input {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 6px 8px;
  font-size: 11px;
  resize: none;
  background: #fdfbf7;
  color: var(--text-main);
}

/* Buttons */

.primary-btn {
  margin-top: 2px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: none;
  background: linear-gradient(135deg, #1f7a4d, #3ca568);
  color: #fff;
  padding: 10px 14px 9px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(31, 122, 77, 0.35);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, opacity 0.1s ease-out;
}

.primary-btn-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
}

.primary-btn:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(31, 122, 77, 0.35);
  opacity: 0.95;
}

.pill-btn {
  border-radius: var(--radius-pill);
  border: none;
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform 0.08s ease-out, box-shadow 0.08s ease-out;
}

.pill-btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.02);
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(138, 102, 64, 0.28);
}

.pill-btn-solid {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding-inline: 18px;
  box-shadow: 0 8px 18px rgba(31, 122, 77, 0.4);
}

.pill-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Bottom strip */

.bottom-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px 0;
  font-size: 10px;
  color: var(--text-muted);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.trust-dot-green {
  background: #2ca55f;
}

.trust-dot-amber {
  background: #f0a63c;
}

.trust-dot-grey {
  background: #b3b6b2;
}

.coming-soon-banner {
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  padding: 6px 12px;
  border-radius: 999px;
  background: #d62828;
  color: #fdfbf7;
  font-size: 11px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.coming-soon-email {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

/* Sheets */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 26, 21, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}

.sheet-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  left: 50%;
  transform: translate(-50%, 110%);
  bottom: 0;
  width: 100%;
  max-width: var(--app-max-width);
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.35);
  padding: 10px 16px 16px;
  transition: transform 0.22s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 20;
}

.bottom-sheet.visible {
  transform: translate(-50%, 0);
}

.bottom-sheet h2 {
  margin: 4px 0 6px;
  font-size: 16px;
}

.bottom-sheet h3 {
  margin: 8px 0 2px;
  font-size: 13px;
}

.sheet-steps {
  margin: 4px 0 6px 18px;
  padding: 0;
  font-size: 12px;
  color: var(--text-main);
}

.sheet-steps li + li {
  margin-top: 3px;
}

.sheet-meta p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.sheet-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.sheet-handle {
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: #e5e1d8;
  margin: 0 auto 6px;
}

/* Confirm sheet */

.confirm-main {
  font-size: 13px;
  margin: 6px 0 2px;
}

.confirm-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

/* Responsive tweaks */

@media (max-width: 380px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    order: -1;
  }

  .bottom-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-card {
    padding-inline: 10px;
  }
}