@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap");

:root {
  --bg: #f3f7f9;
  --ink: #12343d;
  --muted: #5e767d;
  --line: #d8e7eb;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --accent: #0ea8a3;
  --accent-deep: #0d7f8d;
  --accent-soft: #dff7f4;
  --warn: #fff2df;
  --shadow: 0 24px 60px -40px rgba(8, 38, 46, 0.34);
  --phone-width: min(100%, 430px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(920px 420px at 0% 0%, #dff7f4 8%, transparent 65%),
    radial-gradient(700px 360px at 100% 10%, #ecf4ff 8%, transparent 70%),
    linear-gradient(180deg, #f8fbfc 0%, var(--bg) 100%);
}

.preview-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.hero-panel {
  padding: 30px;
  border: 1px solid rgba(216, 231, 235, 0.92);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(16, 168, 163, 0.12), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.eyebrow,
.summary-eyebrow,
.screen-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.hero-panel h1,
.screen-header h2,
.info-card h3,
.summary-card h3,
.shop-identity-card h3,
.beta-sheet-panel h2 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
}

.hero-panel h1 {
  max-width: 720px;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.02;
}

.lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.metric-chip {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(216, 231, 235, 0.96);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px -40px rgba(8, 38, 46, 0.28);
}

.metric-chip strong {
  font-size: 0.88rem;
  font-family: "Sora", "Segoe UI", sans-serif;
}

.metric-chip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-actions,
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-note {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(216, 231, 235, 0.96);
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(280px, 360px);
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
  align-items: start;
}

.device-column {
  display: flex;
  justify-content: center;
}

.device-stage {
  width: var(--phone-width);
  max-width: 100%;
  padding: 16px;
  border-radius: 42px;
  background:
    radial-gradient(220px 100px at 12% 12%, rgba(14, 168, 163, 0.22), transparent 80%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(229, 241, 244, 0.46));
  box-shadow: 0 28px 76px -52px rgba(5, 24, 31, 0.58);
}

.phone-frame {
  position: relative;
  width: 100%;
  padding: 16px;
  border-radius: 36px;
  background: linear-gradient(180deg, #142c36, #0b1d24);
  box-shadow: 0 36px 70px -40px rgba(5, 24, 31, 0.66);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 24px;
  border-radius: 999px;
  background: #08171d;
}

.phone-screen {
  min-height: 780px;
  padding: 30px 16px 20px;
  border-radius: 26px;
  background:
    radial-gradient(340px 160px at 0% 0%, rgba(15, 168, 163, 0.11), transparent 70%),
    linear-gradient(180deg, #fbfeff 0%, #f2f7f8 100%);
}

.screen-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.screen-header h2 {
  font-size: 1.55rem;
}

.icon-chip,
.preview-tab,
.btn-primary,
.btn-secondary,
.btn-link {
  font: inherit;
}

.icon-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
  cursor: pointer;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.preview-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.preview-tab.active {
  border-color: rgba(14, 168, 163, 0.34);
  background: var(--accent-soft);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.preview-stage {
  position: relative;
  min-height: 560px;
  margin-top: 18px;
}

.preview-screen {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 14px;
  align-content: start;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
  transition: opacity 180ms ease, transform 220ms ease, visibility 0s linear 220ms;
}

.preview-screen.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 180ms ease, transform 220ms ease;
}

.summary-card,
.shop-identity-card,
.service-card,
.service-photo-card,
.booking-card,
.tracking-card,
.info-card {
  border: 1px solid rgba(216, 231, 235, 0.96);
  border-radius: 24px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-card p,
.shop-tagline,
.info-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.summary-card.warning {
  background: linear-gradient(180deg, #fffaf2 0%, var(--warn) 100%);
}

.shop-list {
  display: grid;
  gap: 12px;
}

.shop-preview-card {
  border: 1px solid rgba(216, 231, 235, 0.96);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px -40px rgba(8, 38, 46, 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.shop-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px -42px rgba(8, 38, 46, 0.44);
}

.shop-preview-head,
.row-between,
.booking-row,
.tracking-head,
.identity-row,
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.shop-preview-card h3,
.shop-identity-card h3 {
  margin: 0;
  line-height: 1.05;
  min-width: 0;
  max-width: 100%;
}

.shop-preview-head h3,
.row-between h4,
.tracking-head strong {
  flex: 1 1 180px;
  min-width: 0;
}

.shop-preview-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.shop-preview-card.active {
  border-color: rgba(14, 168, 163, 0.38);
  background: linear-gradient(180deg, rgba(223, 247, 244, 0.88), rgba(255, 255, 255, 0.92));
}

.cover-card {
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(216, 231, 235, 0.96);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.cover-visual {
  min-height: 176px;
  background: linear-gradient(135deg, #102c37 0%, #16879c 45%, #f3b78a 100%);
}

.partner-badge,
.ghost-chip,
.meta-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 800;
}

.partner-badge {
  background: #12343d;
  color: #f8fffe;
}

.ghost-chip,
.meta-pill {
  background: rgba(223, 247, 244, 0.96);
  color: var(--accent-deep);
}

.status-pill {
  background: #e8f6ec;
  color: #26734f;
}

.shop-name {
  margin-top: 12px;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1;
  word-break: break-word;
}

.shop-name.long-name {
  font-size: clamp(1.18rem, 3vw, 1.72rem);
}

.shop-tagline {
  margin-top: 8px;
}

.meta-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 14px;
}

.meta-pill,
.service-chip,
.ghost-chip,
.partner-badge,
.status-pill {
  max-width: 100%;
}

.service-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.service-chip {
  border-radius: 999px;
  padding: 8px 12px;
  background: #f2f8f8;
  color: #23484e;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
}

.service-photo {
  min-height: 170px;
  border-radius: 20px;
  margin-top: 10px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, #254a59 0%, #1fa19b 50%, #ffd2aa 100%);
  position: relative;
  overflow: hidden;
}

.service-photo::before,
.service-photo::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 18px;
}

.service-photo::before {
  width: 72%;
  height: 64%;
  left: 10%;
  top: 18%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38)),
    linear-gradient(180deg, transparent, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.service-photo::after {
  width: 34%;
  height: 70%;
  right: 8%;
  top: 12%;
  background: rgba(15, 48, 56, 0.18);
}

.booking-card {
  display: grid;
  gap: 12px;
}

.booking-row {
  color: var(--muted);
}

.booking-row strong {
  color: var(--ink);
}

.booking-row.total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.progress-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.progress-track span {
  height: 10px;
  border-radius: 999px;
  background: #dce8ec;
}

.progress-track .on {
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.timeline {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.timeline li + li {
  margin-top: 8px;
}

.guide-column {
  display: grid;
  gap: 16px;
  align-self: stretch;
  align-content: start;
}

.muted-card {
  background: rgba(245, 248, 249, 0.9);
}

.cta-card {
  background: linear-gradient(180deg, rgba(19, 52, 61, 0.96), rgba(17, 39, 48, 0.98));
  color: #f6fbfd;
}

.cta-card p,
.cta-card h3 {
  color: inherit;
}

.bullet-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.bullet-list li + li {
  margin-top: 10px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #f9ffff;
  box-shadow: 0 20px 44px -28px rgba(13, 127, 141, 0.62);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: #29535d;
  border: 1px solid rgba(216, 231, 235, 0.96);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(14, 168, 163, 0.2);
  background: rgba(223, 247, 244, 0.72);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary:hover,
.btn-secondary:hover,
.icon-chip:hover {
  transform: translateY(-1px);
}

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

.full-width {
  width: 100%;
}

.hidden {
  display: none !important;
}

.beta-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.beta-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 20, 27, 0.48);
  backdrop-filter: blur(4px);
}

.beta-sheet-panel {
  position: relative;
  max-width: 520px;
  margin: min(16vh, 120px) auto 0;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(216, 231, 235, 0.96);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px -40px rgba(8, 24, 30, 0.6);
}

@media (max-width: 1080px) {
  .preview-layout {
    grid-template-columns: 1fr;
  }

  .device-stage {
    margin: 0 auto;
  }

  .guide-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .preview-shell {
    padding: 18px 14px 36px;
  }

  .hero-panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .device-stage {
    padding: 10px;
    border-radius: 30px;
  }

  .phone-frame {
    padding: 12px;
    border-radius: 30px;
  }

  .phone-screen {
    min-height: 680px;
    padding: 28px 14px 18px;
  }

  .preview-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-stage {
    min-height: 600px;
  }

  .shop-preview-head,
  .row-between,
  .tracking-head,
  .identity-row {
    align-items: flex-start;
  }

  .row-between .btn-link {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .guide-column {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .sheet-actions {
    flex-direction: column;
  }

  .hero-note {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-screen,
  .preview-tab,
  .shop-preview-card,
  .btn-primary,
  .btn-secondary,
  .icon-chip {
    transition: none;
  }
}
