/* ═══════════════════════════════════════════════════════════ */
/* S6-PROOF.CSS — Phone demo section (formerly s3-proof.css)  */
/* All phone frame + app screen styles preserved exactly.     */
/* ═══════════════════════════════════════════════════════════ */

/* ── SECTION 6 LAYOUT ──────────────────────────────── */
.s6 {
  height: 450vh;          /* 450vh = ~90vh per screen — one deliberate scroll per step */
  position: relative;
}

.s6-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;         /* iOS Safari: dvh excludes browser chrome */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
}

.s6-layout {
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
  max-width: 900px;
}

/* Step labels */
.s6-labels-container {
  flex: 1;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.s6-label {
  position: absolute;
  width: 100%;
  opacity: 0;
}

.s6-overline {
  color: var(--taupe);
  display: block;
  margin-bottom: 10px;
}

.s6-headline {
  color: var(--ink);
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
}

/* ── PHONE FRAME ───────────────────────────────────── */
.phone-frame {
  width: 280px;
  height: 560px;
  max-height: 80vh;
  max-width: 40vh; /* maintains roughly 1:2 aspect ratio scaling */
  background: #1C1C1E;
  border-radius: 44px;
  padding: 12px;
  position: relative;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 8px 32px rgba(10,10,10,0.15),
    0 16px 64px rgba(212,168,67,0.08);
  transform: translateY(-8px);
}

.phone-notch {
  width: 80px;
  height: 28px;
  background: #1C1C1E;
  border-radius: 0 0 18px 18px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen-area {
  width: 100%;
  height: 100%;
  background: var(--ivory);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

.phone-home {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

/* ── APP SCREEN BASE ───────────────────────────────── */
.app-screen {
  width: 100%;
  height: 100%;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
}

/* App nav bar */
.app-nav {
  background: var(--pure-white);
  padding: 36px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid var(--warm-border);
  flex-shrink: 0;
}

.app-logo-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.app-store-chip {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--taupe);
  background: var(--ivory);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 0.5px solid var(--warm-border);
}

.app-nav-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}

.app-nav-icon span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
}

/* App body */
.app-body {
  flex: 1;
  padding: 16px;
  overflow: hidden;
}

.app-body--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.app-overline {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  color: var(--taupe);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.app-screen-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
}

/* ── SCREEN 1: STORE SELECTION ─────────────────────── */
.store-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-item {
  background: var(--pure-white);
  border: 0.5px solid var(--warm-border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.store-item--active {
  border-color: var(--ink);
}

.store-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.store-item-info {
  flex: 1;
}

.store-item-name {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.store-item-sub {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--taupe);
}

.store-item-arrow {
  font-size: 12px;
  color: var(--muted);
}

/* ── SCREEN 2: SCANNING ────────────────────────────── */
.scan-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
}

.scan-frame {
  width: 180px;
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--ink);
  border-style: solid;
}

.scan-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.scan-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.scan-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.scan-beam {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(10,10,10,0.9) 30%, rgba(10,10,10,1) 50%, rgba(10,10,10,0.9) 70%, transparent);
  box-shadow: 0 0 8px rgba(10,10,10,0.3);
  animation: scanBeam 2s ease-in-out infinite;
}

@keyframes scanBeam {
  0%  { top: 10px; opacity: 1; }
  50% { top: calc(100% - 12px); opacity: 1; }
  51% { opacity: 0; }
  52% { top: 10px; opacity: 0; }
  53% { opacity: 1; }
  100%{ top: 10px; opacity: 1; }
}

.barcode-art {
  display: flex;
  align-items: center;
}

.bc-lines {
  display: flex;
  gap: 3px;
  align-items: center;
}

.bc-lines span {
  display: block;
  background: var(--ink);
  border-radius: 1px;
  opacity: 0.3;
}

.bc-lines span:nth-child(1) { width: 2px; height: 40px; }
.bc-lines span:nth-child(2) { width: 4px; height: 52px; }
.bc-lines span:nth-child(3) { width: 2px; height: 36px; }
.bc-lines span:nth-child(4) { width: 3px; height: 48px; }
.bc-lines span:nth-child(5) { width: 2px; height: 40px; }
.bc-lines span:nth-child(6) { width: 4px; height: 52px; }
.bc-lines span:nth-child(7) { width: 2px; height: 44px; }
.bc-lines span:nth-child(8) { width: 3px; height: 36px; }

.scan-label {
  color: var(--muted);
  text-align: center;
  font-size: 9px;
}

/* ── SCREEN 3: CART ────────────────────────────────── */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.cart-item {
  background: var(--pure-white);
  border: 0.5px solid var(--warm-border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.cart-item-meta {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--taupe);
}

.cart-item-price {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
  margin-left: 8px;
}

.cart-scan-more {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
  text-align: center;
  padding: 8px;
  border: 0.5px dashed var(--warm-border);
  border-radius: var(--r-md);
  cursor: pointer;
}

/* ── SCREEN 4: PAYMENT ─────────────────────────────── */
.bill-summary {
  background: var(--pure-white);
  border: 0.5px solid var(--warm-border);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 12px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}

.bill-label {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--taupe);
}

.bill-value {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink);
}

.bill-value--muted {
  color: var(--muted);
}

.bill-divider {
  height: 0.5px;
  background: var(--warm-border);
  margin: 8px 0;
}

.bill-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 4px;
}

.bill-total-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.bill-total-value {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.pay-btn {
  width: 100%;
  background: var(--turmeric);
  color: var(--ink);
  border: none;
  border-radius: var(--r-md);
  padding: 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: transform 0.1s, box-shadow 0.2s;
}

.pay-btn:hover {
  box-shadow: 0 4px 16px rgba(212,168,67,0.4);
}

.pay-secured {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--muted);
}

/* ── SCREEN 5: E-BILL ──────────────────────────────── */
.ebill-check {
  margin-bottom: 12px;
}

.ebill-confirmed {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.ebill-sub {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--taupe);
  margin-bottom: 16px;
}

.ebill-qr {
  width: 100px;
  height: 100px;
  background: var(--pure-white);
  border: 0.5px solid var(--warm-border);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.qr-art {
  width: 80px;
  height: 80px;
  position: relative;
}

.qr-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--ink);
}

.qr-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.qr-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.qr-bl { bottom: 0; left: 0; border-right: none; border-top: none; }

.qr-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background:
    repeating-linear-gradient(
      0deg,
      var(--ink) 0px, var(--ink) 2px,
      transparent 2px, transparent 5px
    ),
    repeating-linear-gradient(
      90deg,
      var(--ink) 0px, var(--ink) 2px,
      transparent 2px, transparent 5px
    );
  opacity: 0.4;
}

.ebill-instruction {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--taupe);
  margin-bottom: 6px;
}

.ebill-timer {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  background: var(--turmeric-bg);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
