/* =====================================================================
   QuickOnline page — page-specific styles (extends style.css + crm.css)
   ===================================================================== */

.qo-hero .hero-title { font-size: clamp(2.4rem, 4.8vw, 4.1rem); }
.qo-hero .hero-actions { margin-bottom: 16px; }
.qo-start { display: inline-block; margin-bottom: 30px; color: var(--green); font-size: 0.95rem; }

/* ---------- Highlights ---------- */
.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.hl-card { position: relative; padding: clamp(24px, 2.8vw, 34px); border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: transform var(--t-card) var(--ease), border-color var(--t-card), background var(--t-card); }
.hl-card:hover { transform: translateY(-4px); border-color: var(--mustard); }
.hl-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.hl-card p { color: var(--muted); font-size: 0.96rem; }
.hl-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--green); color: var(--mustard); margin-bottom: 22px; transition: transform var(--t-card) var(--ease); }
.hl-card:hover .hl-ico { transform: rotate(-8deg); }
.hl-ico .ico { width: 26px; height: 26px; stroke-width: 1.7; }
.hl-feature { background: var(--green); border-color: var(--green); }
.hl-feature h3 { color: var(--white); }
.hl-feature p { color: rgba(250, 250, 247, 0.78); }
.hl-feature .hl-ico { background: var(--mustard); color: var(--green); }
.hl-accent { background: var(--mustard); border-color: var(--mustard); }
.hl-accent p { color: #4A3A12; }
.hl-accent:hover { border-color: var(--green); }

/* ---------- Demos ---------- */
.anchor { position: relative; top: -110px; display: block; }
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
.demo { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; transition: transform var(--t-card) var(--ease), box-shadow var(--t-card) var(--ease); }
.demo:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(37, 63, 46, 0.45); }
.demo-media { position: relative; display: grid; place-items: center; margin: 12px; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; padding: 5% 6% 0; aspect-ratio: 16 / 10.5; }
.demo-media img { width: 100%; height: auto; align-self: end; transition: transform 700ms var(--ease); }
.demo:hover .demo-media img { transform: translateY(-6px) scale(1.02); }
.dm-green { background: var(--green); } .dm-mustard { background: var(--mustard); } .dm-peach { background: var(--peach); } .dm-sage { background: var(--sage); }
.demo-live { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 99px; background: #fff; color: #1E7B3A; font-size: 0.75rem; font-weight: 700; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.demo-req { color: #8A5F05; }
.demo-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2.4vw, 28px); padding-top: 8px; flex: 1; }
.demo-body h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.demo-body > p { color: var(--muted); font-size: 0.96rem; }
.demo-ctas { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 6px; }
.demo-ctas .btn { gap: 8px; }
.demo-ctas .text-link { color: var(--green); }
.demo-more { margin-top: 28px; text-align: center; color: var(--muted); }
.demo-more .text-link { color: var(--green); }

/* ---------- Admin panel tabs ---------- */
#admin .panel-media { padding: 0; }
#admin .pm-main { width: 100%; height: auto; }
#admin .ticks li { color: rgba(250,250,247,.88); }

.page-qo .wordmark { font-size: clamp(3.4rem, 15vw, 14rem); }

@media (max-width: 1023px) {
  .hl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .hl-grid, .demo-grid { grid-template-columns: 1fr; }
  .demo-ctas { flex-wrap: wrap; }
}

/* rhythm + headline polish */
.page-qo .features + .qo-steps { padding-top: clamp(30px, 4vw, 60px); }
.page-qo .features { padding-bottom: clamp(40px, 5vw, 70px); }
.qo-hero .hero-title .hl { margin-inline: 0.12em 0.04em; }

/* =====================================================================
   PHONE MOCKUPS (real QuickOnline screenshots)
   ===================================================================== */
.phone-mock { position: relative; display: block; margin: 0; background: #fff; border: 9px solid #1D211E; border-radius: 42px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(28, 49, 35, 0.55), inset 0 0 0 1px rgba(255,255,255,.08); }
.phone-mock::before { content: ""; position: absolute; z-index: 2; top: 8px; left: 50%; width: 30%; height: 20px; transform: translateX(-50%); border-radius: 99px; background: #1D211E; }
.phone-mock img { display: block; width: 100%; height: auto; padding-top: 26px; background: #fff; }

/* Hero: two phones */
.qo-hero-visual { position: relative; width: 100%; aspect-ratio: 1 / 1.08; }
.qo-hero-visual .blob { right: 4%; top: 6%; width: 74%; }
.qo-hero-visual .phone-mock { position: absolute; width: 40%; }
.pm-front { left: 14%; top: 4%; z-index: 3; rotate: -4deg; }
.pm-back { right: 6%; top: 14%; z-index: 2; rotate: 5deg; }

.qo-chip-a { left: 0; bottom: 14%; z-index: 5; animation-delay: 1200ms; }
.qo-chip-b { right: 0; top: 4%; z-index: 5; animation-delay: 1350ms; }
.qo-dot { background: var(--mustard); color: var(--green); }

/* Demo cards: phone rising out of the coloured panel */
.demo-media { padding: 28px 0 0; aspect-ratio: 16 / 11; place-items: start center; }
.pm-card { width: 46%; max-width: 230px; border-bottom-width: 0; border-radius: 34px 34px 0 0; transition: transform 700ms var(--ease); }
.pm-card::before { height: 14px; top: 6px; }
.pm-card img { padding-top: 18px; }
.demo:hover .pm-card { transform: translateY(-10px); }
.demo:hover .demo-media img { transform: none; }

@media (max-width: 1023px) {
  .qo-hero-visual { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 767px) {
  .qo-hero-visual { aspect-ratio: 1 / 1.1; }
  .qo-hero-visual .phone-mock { width: 46%; border-width: 7px; border-radius: 30px; }
  .pm-front { left: 4%; }
  .pm-back { right: 2%; }
  .phone-mock::before { height: 14px; top: 5px; }
  .phone-mock img { padding-top: 18px; }
  .qo-chip-a { bottom: 6%; transform: scale(0.88); transform-origin: left bottom; }
  .qo-chip-b { top: 0; transform: scale(0.88); transform-origin: right top; }
  .pm-card { width: 52%; }
}

.phone-in { animation: phoneIn 1000ms var(--ease) both; animation-delay: calc(var(--d, 0) * 140ms + 300ms); }
@keyframes phoneIn { from { opacity: 0; transform: translateY(60px); } }
