:root {
  --coral: #de4967;
  --coral-deep: #d04241;
  --peach: #f4c599;
  --paper: #ffffff;
  --ink: #ffffff;
  --blush: #fff1ea;
  --blush-2: #fff6f3;
  --line: #f3d2cb;
  --line-soft: #f8e4df;
  --soft: #ffe4e2;
  --sample-ink: #2c2424;
  --sample-muted: #8d6866;
  --sample-faint: #a07876;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: linear-gradient(160deg, var(--coral) 0%, #e46362 34%, #f09a86 70%, var(--peach) 100%);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
}

body {
  overflow: hidden;
}

.hero {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.copy {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 6vh, 72px) clamp(20px, 5vw, 80px);
  gap: clamp(18px, 4vh, 36px);
  overflow: hidden;
  background: transparent;
  container-type: inline-size;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgb(255 255 255 / 88%);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(22px, 9.2cqw, 84px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 36ch;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 92%);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.45;
}

.rise {
  transform: translateY(64px);
  opacity: 0;
}

.rise.is-in {
  animation: rise 0.75s cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
}

@keyframes rise {
  from {
    transform: translateY(64px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 22px;
  background: var(--paper);
  color: var(--coral-deep);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-radius: 999px;
}

.cta:hover {
  background: #fff5f2;
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 48%);
  cursor: pointer;
}

.dot[aria-current="true"] {
  width: 28px;
  background: var(--paper);
}

.stage {
  position: relative;
  width: min(62vw, 1040px);
  height: 100%;
}

.track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  outline: none;
}

.track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.frame {
  position: relative;
  width: 100%;
  height: 100%;
  container-type: inline-size;
}

.arrow:focus-visible,
.dot:focus-visible,
.cta:focus-visible,
.app-btn:focus-visible,
.toast:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.app {
  display: flex;
  height: 100%;
  overflow: hidden;
  background: var(--blush);
  color: var(--sample-ink);
  font-family: Poppins, system-ui, sans-serif;
}

.app h2,
.app h3,
.app p {
  margin: 0;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 28%;
  max-width: 210px;
  min-width: 150px;
  padding: 18px 10px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.brand {
  margin: 0 0 12px;
  padding: 4px 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
}

.nav-item {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--sample-ink);
  font-size: 13px;
}

.nav-item.on {
  background: var(--soft);
  color: var(--coral);
  font-weight: 600;
}

.main {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app h2 {
  font-size: clamp(16px, 2.2cqw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sub {
  margin-top: 2px;
  color: var(--sample-muted);
  font-size: 13px;
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seg {
  display: inline-flex;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seg b,
.seg span {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
}

.seg b {
  background: var(--soft);
  color: var(--coral);
}

.app-btn {
  padding: 8px 12px;
  background: var(--coral);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 8px;
}

.split {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.75fr);
  gap: 12px;
  min-height: 0;
}

.grid {
  display: grid;
  flex: 1;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gutter {
  display: flex;
  flex-direction: column;
  color: var(--sample-faint);
  font-size: 11px;
  border-right: 1px solid var(--line);
}

.gutter span {
  flex: 1;
  padding: 4px 6px 0 0;
  text-align: right;
}

.col {
  position: relative;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--line) 0 1px,
    transparent 1px calc(100% / 8)
  );
}

.appt,
.block {
  position: absolute;
  right: 6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 6px 8px;
  overflow: hidden;
  border-radius: 8px;
}

.appt {
  background: #ffe8e6;
  border-left: 4px solid var(--coral);
}

.appt.selected {
  box-shadow: inset 0 0 0 1px rgb(222 73 103 / 55%);
}

.block {
  background: repeating-linear-gradient(-45deg, #ffe8e4, #ffe8e4 6px, #f8d9d4 6px, #f8d9d4 12px);
  border-left: 4px solid #e3b2ae;
}

.appt b,
.block b {
  font-size: 12px;
  font-weight: 700;
}

.appt small,
.block small {
  color: var(--sample-muted);
  font-size: 11px;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.detail h3 {
  font-size: 20px;
  font-weight: 700;
}

.badge {
  align-self: flex-start;
  padding: 4px 8px;
  background: var(--soft);
  color: var(--coral);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}

.note {
  color: var(--sample-muted);
  font-size: 13px;
  line-height: 1.4;
}

.dim {
  flex: 1;
  min-height: 0;
  opacity: 0.4;
}

.dim .grid {
  height: 100%;
}

.toasts {
  position: absolute;
  top: 72px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(280px, 72%);
}

.toast {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(36 35 33 / 16%);
}

.toast b,
.toast strong {
  font-size: 13px;
}

.toast i {
  font-size: 13px;
  font-style: italic;
}

.card {
  min-height: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card h3 {
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.card th,
.card td {
  padding: 8px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.card th {
  background: var(--blush-2);
  color: var(--sample-faint);
  font-size: 12px;
  font-weight: 500;
}

.hours {
  display: flex;
  flex-direction: column;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
}

.hours .off {
  color: var(--sample-faint);
}

@container (max-width: 640px) {
  .nav {
    display: none;
  }

  .main {
    gap: 10px;
    padding: 14px;
    overflow: auto;
  }

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

  .detail {
    display: none;
  }

  .seg {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .gutter {
    display: none;
  }

  .col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background-image: none;
  }

  .appt,
  .block {
    position: static;
    top: auto !important;
    right: auto;
    left: auto;
    height: auto !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
  }

  .appt b,
  .block b {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .appt small,
  .block small {
    flex-shrink: 0;
  }

  .toasts {
    top: 58px;
    right: 12px;
    width: min(240px, 78%);
  }
}

.device-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--blush-2);
  container-type: size;
  perspective: 1500px;
  perspective-origin: 30% 46%;
}

.samsung {
  position: relative;
  height: min(86cqh, calc(78cqw * 19.5 / 9));
  aspect-ratio: 9 / 19.5;
  transform: rotateY(-22deg) rotateX(8deg) rotateZ(-8deg);
  transform-origin: center center;
  padding: 11px 10px;
  border-radius: 48px;
  background: linear-gradient(150deg, #6b6158 0%, #2c2622 16%, #14110f 48%, #3d342e 100%);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 236 214 / 28%),
    inset 0 0 0 4px #0c0a09,
    0 28px 70px rgb(0 0 0 / 38%);
}

.samsung-key {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #8a7d72;
}

.samsung-vol {
  top: 18%;
  left: -2px;
  height: 7%;
}

.samsung-vol-b {
  top: 27%;
  left: -2px;
  height: 7%;
}

.samsung-power {
  top: 22%;
  right: -2px;
  height: 11%;
}

.samsung-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--blush-2);
  color: var(--sample-ink);
  font-family: Poppins, system-ui, sans-serif;
  border-radius: 38px;
  container-type: size;
}

.android-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 28px;
  padding: 8px 16px 0;
  font-size: 12px;
  font-weight: 600;
}

.android-sys {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.android-sys svg {
  width: 15px;
  height: 11px;
  fill: var(--sample-ink);
}

.android-sys svg rect {
  fill: none;
  stroke: var(--sample-ink);
  stroke-width: 1.2;
}

.android-sys svg rect + rect {
  fill: var(--sample-ink);
  stroke: none;
}

.samsung-hole {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  background: #0c0a09;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%);
}

.book {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 0 12px 4px;
  overflow: hidden;
}

.book-close {
  margin: 0;
  color: var(--sample-ink);
  font-size: 13px;
  font-weight: 600;
}

.book h2 {
  margin: 0;
  font-size: clamp(20px, 6.2cqw, 26px);
  letter-spacing: -0.03em;
}

.book-meta,
.book h3,
.book-when,
.book-note {
  margin: 0;
}

.book-meta {
  margin-top: -4px;
  color: var(--sample-muted);
  font-size: 13px;
}

.book h3 {
  font-size: 15px;
  font-weight: 600;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}

.cal-head b {
  font-weight: 600;
  text-transform: capitalize;
}

.cal-week,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-week {
  margin-top: 6px;
  color: var(--sample-muted);
  font-size: 10px;
  text-align: center;
}

.cal-day {
  display: grid;
  height: clamp(16px, 6.2cqw, 28px);
  place-items: center;
  font-size: 11px;
  font-weight: 500;
  border-radius: 7px;
}

.cal-day.on {
  background: var(--coral);
  color: var(--paper);
  font-weight: 600;
}

.cal-day.off {
  opacity: 0.35;
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.slot {
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #f0c4c0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.slot.on {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--paper);
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: #fff;
  border: 1px solid #f0c4c0;
  border-radius: 14px;
}

.book-when {
  font-size: 13px;
  font-weight: 600;
}

.book-note {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--sample-muted);
  font-size: 13px;
  background: #fff;
  border: 1px solid #f0c4c0;
  border-radius: 12px;
}

.book-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  background: var(--coral);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
}

.android-gesture {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 16px;
}

.android-gesture::before {
  width: 34%;
  height: 4px;
  background: var(--sample-ink);
  border-radius: 4px;
  content: "";
}

.arrow {
  position: absolute;
  bottom: 16px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: var(--paper);
  box-shadow: 0 8px 20px rgb(208 66 65 / 28%);
  font: 600 28px/1 Outfit, system-ui, sans-serif;
  cursor: pointer;
}

.arrow-prev {
  right: 66px;
}

.arrow-next {
  right: 16px;
}

.arrow:hover {
  background: var(--coral-deep);
  color: var(--paper);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .copy {
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    text-align: center;
    padding:
      max(16px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      12px
      max(20px, env(safe-area-inset-left));
  }

  .dots {
    justify-content: center;
  }

  .eyebrow {
    margin-bottom: 8px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 56px);
  }

  .lead {
    margin-top: 12px;
    margin-right: auto;
    margin-left: auto;
    font-size: 16px;
  }

  .cta {
    min-height: 48px;
    margin-top: 16px;
  }

  .dot {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
  }

  .dot::before {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgb(255 255 255 / 48%);
    content: "";
  }

  .dot[aria-current="true"] {
    width: 44px;
    background: transparent;
  }

  .dot[aria-current="true"]::before {
    width: 28px;
    background: var(--paper);
  }

  .stage {
    display: flex;
    width: 100%;
    min-height: 0;
    padding: 0 14px max(14px, env(safe-area-inset-bottom));
  }

  .track {
    flex: 1;
    min-width: 0;
    border-radius: 28px;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .app,
  .device-stage {
    overflow: hidden;
    border-radius: 28px;
  }

  .samsung {
    height: min(94cqh, calc(72cqw * 19.5 / 9));
    transform: rotateY(-12deg) rotateX(4deg) rotateZ(-4deg);
  }

  .book {
    overflow: auto;
  }

  .main {
    min-height: 0;
    overflow: auto;
  }

  .split {
    flex: none;
  }

  .card {
    overflow: visible;
  }

  .card h3 {
    padding: 8px 12px;
  }

  .card th,
  .card td {
    padding: 5px 12px;
  }

  .hours div {
    padding: 6px 12px;
  }

  .arrow {
    display: none;
  }
}

@media (max-width: 860px) and (max-height: 700px) {
  .copy {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 4px;
  }

  .eyebrow {
    margin-bottom: 2px;
  }

  h1 {
    font-size: 30px;
    line-height: 1.02;
  }

  .lead {
    display: none;
  }

  .cta {
    min-height: 42px;
    margin-top: 8px;
  }

  .dot {
    height: 32px;
  }
}

@container (max-height: 540px) {
  .book {
    gap: 4px;
  }

  .book h2 {
    font-size: 20px;
  }

  .cal-week {
    margin-top: 2px;
  }

  .cal-day {
    height: 13px;
    font-size: 10px;
  }

  .slot {
    padding: 4px 8px;
    font-size: 12px;
  }

  .book-card {
    gap: 4px;
    padding: 8px;
  }

  .book-note {
    min-height: 0;
    padding: 6px 8px;
  }

  .book-confirm {
    min-height: 32px;
  }
}

@container (max-height: 460px) {
  .android-status {
    display: none;
  }

  .book-note {
    display: none;
  }

  .cal-day {
    height: 11px;
    font-size: 9px;
  }

  .book h2 {
    font-size: 18px;
  }

  .book {
    zoom: 0.92;
  }
}

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

  .rise {
    transform: none;
    opacity: 1;
    animation: none;
  }
}
