/* ============================================================
   Yeyak — Promotion AI Hero
   Vertical centered hero: demo box on top, copy below.
   Loaded by /product/promotion.html on top of _shared.css.
   ============================================================ */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

main #hero {
  background: #fff;
  padding: 56px 24px 80px;
  text-align: center;
}

/* ---------- Demo box ---------- */
main #hero .ph-demo-wrap {
  max-width: 680px;
  margin: 0 auto 56px;
  background: linear-gradient(135deg, #DCE6FF 0%, #EEF3FF 50%, #F4F8FF 100%);
  border-radius: 16px;
  padding: 40px;
  overflow: hidden;
}

main #hero .ph-mockup {
  width: 560px;
  height: 420px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(10, 30, 80, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0A0A14;
}

/* ---------- Row 1 — Browser chrome ---------- */
main #hero .ph-chrome {
  height: 36px;
  background: #F5F5F7;
  border-bottom: 0.5px solid rgba(10, 10, 20, 0.06);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 14px;
  flex-shrink: 0;
}
main #hero .ph-traffic {
  display: flex;
  gap: 6px;
}
main #hero .ph-traffic span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
main #hero .ph-traffic .red    { background: #FF5F57; }
main #hero .ph-traffic .yellow { background: #FEBC2E; }
main #hero .ph-traffic .green  { background: #28C840; }

main #hero .ph-url {
  flex: 1;
  height: 20px;
  background: #FFFFFF;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  max-width: 320px;
  margin: 0 auto;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  color: #6B6B76;
}
main #hero .ph-url svg { flex-shrink: 0; }

/* ---------- Row 2 — Aurora Card nav bar ---------- */
main #hero .ph-nav {
  height: 44px;
  border-bottom: 0.5px solid rgba(10, 10, 20, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  position: relative;
}
main #hero .ph-nav-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
main #hero .ph-nav-logo {
  width: 18px;
  height: 18px;
  background: #0A0A14;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 10px;
  line-height: 1;
}
main #hero .ph-nav-right {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: #6B6B76;
}
main #hero .ph-nav-item { position: relative; }
main #hero .ph-nav-item.active {
  color: #0A0A14;
  font-weight: 500;
}
main #hero .ph-nav-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  background: #FF6A1F;
  opacity: 0;
  transition: opacity 0.4s ease;
}
main #hero .ph-nav-underline.is-active { opacity: 1; }

main #hero .ph-nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E8E8EC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #6B6B76;
}

/* ---------- Screens container ---------- */
main #hero .ph-screens {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
}
main #hero .ph-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
main #hero .ph-screen.s1 { transform: translateX(0); }
main #hero .ph-screen.s2 { transform: translateX(100%); }
main #hero .ph-screen.s3 { transform: translateX(100%); }

/* state attributes */
main #hero .ph-screens[data-state="detail"]  .ph-screen.s1 { transform: translateX(-100%); }
main #hero .ph-screens[data-state="detail"]  .ph-screen.s2 { transform: translateX(0); }
main #hero .ph-screens[data-state="detail"]  .ph-screen.s3 { transform: translateX(100%); }
main #hero .ph-screens[data-state="success"] .ph-screen.s1 { transform: translateX(-100%); }
main #hero .ph-screens[data-state="success"] .ph-screen.s2 { transform: translateX(-100%); }
main #hero .ph-screens[data-state="success"] .ph-screen.s3 { transform: translateX(0); }

/* ===================== Screen 1 — Hotel list ===================== */
main #hero .ph-s1 {
  padding: 24px 28px;
}
main #hero .ph-s1-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
main #hero .ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #6B6B76;
  text-transform: uppercase;
}
main #hero .ph-eyebrow .dot,
main #hero .ph-stamp .dot,
main #hero .ph-rate-top .dot,
main #hero .ph-booked-eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF6A1F;
  flex-shrink: 0;
}
main #hero .ph-booked-eyebrow .dot { background: #0F6E56; }
main #hero .ph-s1-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
  line-height: 1.2;
}
main #hero .ph-stamp {
  background: #FFF1E8;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 600;
  color: #FF6A1F;
  letter-spacing: 0.08em;
}
main #hero .ph-s1-sub {
  font-size: 11px;
  color: #6B6B76;
  margin: 0 0 18px;
  line-height: 1.4;
}
main #hero .ph-hotel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
main #hero .ph-hotel {
  border: 0.5px solid rgba(10, 10, 20, 0.06);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 12px;
  background: #FFFFFF;
  transition: border-color 0.3s ease, background 0.3s ease, opacity 0.4s ease;
}
main #hero .ph-hotel-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #F5F5F7;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
main #hero .ph-hotel-thumb svg { display: block; }
main #hero .ph-hotel-meta { flex: 1; min-width: 0; }
main #hero .ph-hotel-name {
  font-size: 12px;
  font-weight: 500;
  color: #0A0A14;
  line-height: 1.2;
}
main #hero .ph-hotel-city {
  font-size: 10px;
  color: #6B6B76;
  margin-top: 2px;
}
main #hero .ph-hotel-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}
main #hero .ph-price-now {
  font-size: 12px;
  font-weight: 500;
  color: #0A0A14;
}
main #hero .ph-price-was {
  font-size: 9px;
  color: #A8A8B0;
  text-decoration: line-through;
}
main #hero .ph-price-off {
  font-size: 9px;
  font-weight: 600;
  color: #FF6A1F;
}
main #hero .ph-hotel.is-faded { opacity: 0.35; }
main #hero .ph-hotel.is-active {
  border-color: #FF6A1F;
  background: #FFF1E8;
}
main #hero .ph-hotel[data-fade="extra"] { opacity: 0.45; }

/* ===================== Screen 2 — Detail ===================== */
main #hero .ph-s2 {
  padding: 20px 28px;
}
main #hero .ph-crumb {
  font-size: 10px;
  color: #6B6B76;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
main #hero .ph-crumb .now {
  color: #0A0A14;
  font-weight: 500;
}
main #hero .ph-s2-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  flex: 1;
  align-items: stretch;
}

main #hero .ph-room {
  height: 170px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  background: #F0E4D5;
}
main #hero .ph-room svg {
  display: block;
  width: 100%;
  height: 100%;
}
main #hero .ph-room-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 9px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 600;
  color: #FF6A1F;
  letter-spacing: 0.08em;
}
main #hero .ph-room-chip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF6A1F;
}
main #hero .ph-room-page {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
main #hero .ph-room-page span {
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}
main #hero .ph-room-page span.now {
  width: 14px;
  background: #FFFFFF;
}
main #hero .ph-room-page span:not(.now) { width: 5px; }

main #hero .ph-hotel-h {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  line-height: 1.2;
}
main #hero .ph-hotel-row-meta {
  font-size: 10px;
  color: #6B6B76;
  margin-bottom: 12px;
}
main #hero .ph-hotel-row-meta .sep {
  margin: 0 6px;
  color: #A8A8B0;
}
main #hero .ph-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
main #hero .ph-amenities span {
  font-size: 9px;
  padding: 4px 8px;
  background: #F5F5F7;
  border-radius: 10px;
  color: #5A5A6A;
}

main #hero .ph-right {
  display: flex;
  flex-direction: column;
}
main #hero .ph-rate {
  background: #FFF1E8;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
main #hero .ph-rate-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
main #hero .ph-rate-top .label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  color: #FF6A1F;
  letter-spacing: 0.1em;
}
main #hero .ph-rate-badge {
  background: #FF6A1F;
  color: #FFFFFF;
  padding: 3px 7px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
main #hero .ph-rate-amounts {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
main #hero .ph-rate-now {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #0A0A14;
  line-height: 1;
}
main #hero .ph-rate-was {
  font-size: 11px;
  color: #A8A8B0;
  text-decoration: line-through;
}
main #hero .ph-rate-sub {
  font-size: 10px;
  color: #6B6B76;
  margin-top: 6px;
}

main #hero .ph-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
main #hero .ph-date {
  border: 0.5px solid rgba(10, 10, 20, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
}
main #hero .ph-date-label {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #6B6B76;
  text-transform: uppercase;
  font-weight: 500;
}
main #hero .ph-date-val {
  font-size: 12px;
  font-weight: 500;
  color: #0A0A14;
  margin-top: 2px;
}

main #hero .ph-total {
  border-top: 0.5px solid rgba(10, 10, 20, 0.1);
  padding-top: 10px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
main #hero .ph-total-label {
  font-size: 10px;
  color: #6B6B76;
}
main #hero .ph-total-amounts {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
main #hero .ph-total-was {
  font-size: 10px;
  color: #A8A8B0;
  text-decoration: line-through;
}
main #hero .ph-total-now {
  font-size: 14px;
  font-weight: 500;
  color: #0A0A14;
}

main #hero .ph-cta {
  margin-top: auto;
  background: #0A0A14;
  color: #FFFFFF;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: background 0.3s ease;
}
main #hero .ph-cta.is-active {
  background: #FF6A1F;
}

/* ===================== Screen 3 — Success ===================== */
main #hero .ph-s3 {
  padding: 24px 28px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
main #hero .ph-success-check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0F6E56;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s cubic-bezier(0.34, 1.5, 0.64, 1),
              transform 0.5s cubic-bezier(0.34, 1.5, 0.64, 1);
}
main #hero .ph-success-text {
  margin-top: 22px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
main #hero .ph-booked-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #0F6E56;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
main #hero .ph-booked-h {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 6px;
  color: #0A0A14;
  line-height: 1.2;
}
main #hero .ph-booked-sub {
  font-size: 11px;
  color: #6B6B76;
  line-height: 1.6;
  margin: 0;
}
main #hero .ph-success-stamp {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF1E8;
  padding: 7px 12px;
  border-radius: 14px;
  font-size: 9px;
  font-weight: 600;
  color: #FF6A1F;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
main #hero .ph-success-stamp .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF6A1F;
}

main #hero .ph-screens[data-state="success"] .ph-success-check {
  opacity: 1;
  transform: scale(1);
}
main #hero .ph-screens[data-state="success"] .ph-success-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}
main #hero .ph-screens[data-state="success"] .ph-success-stamp {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* ---------- Cursor + ripple ---------- */
main #hero .ph-cursor {
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 20px;
  opacity: 0;
  z-index: 25;
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  will-change: transform, opacity;
}
main #hero .ph-cursor svg { display: block; }
main #hero .ph-ripple {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255, 106, 31, 0.3);
  opacity: 0;
  z-index: 24;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease-out, height 0.5s ease-out, opacity 0.5s ease-out;
}

/* ---------- Below — Hero copy ---------- */
main #hero .ph-copy {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
main #hero .ph-eyebrow-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #5A5A6A;
  text-transform: uppercase;
  margin-bottom: 24px;
}
main #hero .ph-eyebrow-hero .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF6A1F;
}
main #hero .ph-h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #0A0A14;
  margin: 0 0 20px;
}
main #hero .ph-h1 span { display: block; }
main #hero .ph-sub {
  font-size: 15px;
  line-height: 1.55;
  color: #5A5A6A;
  max-width: 540px;
  margin: 0 auto 32px;
}
main #hero .ph-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
}
main #hero .ph-btn {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
main #hero .ph-btn-primary {
  background: #FF6A1F;
  color: #FFFFFF;
}
main #hero .ph-btn-primary:hover {
  background: #E85910;
  transform: translateY(-1px);
}
main #hero .ph-btn-secondary {
  background: #FFFFFF;
  color: #0A0A14;
  border: 0.5px solid rgba(10, 10, 20, 0.2);
}
main #hero .ph-btn-secondary:hover {
  border-color: #0A0A14;
  transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  main #hero { padding: 40px 16px 64px; }
  main #hero .ph-demo-wrap {
    max-width: 100%;
    padding: 24px;
  }
  main #hero .ph-mockup {
    width: 100%;
    max-width: 100%;
  }
  main #hero .ph-h1 { font-size: 36px; }
  main #hero .ph-hotel-grid { grid-template-columns: 1fr; }
  main #hero .ph-s2-body { grid-template-columns: 1fr; gap: 14px; }
  main #hero .ph-room { height: 130px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  main #hero .ph-screen { transition: none !important; }
  main #hero .ph-cursor,
  main #hero .ph-ripple { display: none !important; }
  main #hero .ph-nav-underline { opacity: 1 !important; }
  main #hero .ph-success-check { opacity: 1 !important; transform: scale(1) !important; transition: none !important; }
  main #hero .ph-success-text,
  main #hero .ph-success-stamp { opacity: 1 !important; transform: none !important; transition: none !important; }
}
