/* discover.cas360.app only. The shared system is in base.css (same file as comptech.com.np). */

/* CAS360 wears indigo where CompTech wears blue. */
:root {
  --accent: var(--cas);
  --accent-hover: var(--cas-hover);
  --accent-soft: var(--cas-soft);
  --bg-tint: #f2f2fd;
  --brand: #1b1f4b;
}
:root[data-theme="dark"] {
  --accent: #8b8cf8;
  --accent-hover: #a5a6fb;
  --accent-soft: #23234a;
  --on-accent: #11112b;
  --bg-tint: #191a2c;
  --brand: #8b8cf8;
}
:root[data-theme="dark"] .cta-band { background: #20224a; }
.brand img.brand-logo { height: 30px; width: auto; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.15rem); }
.hero .lead { margin-top: 20px; max-width: 560px; }
.hero .btn-row { margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; font-size: .9rem; color: var(--text-2); }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--ok); }
.hero-shot img { aspect-ratio: 3 / 2; object-fit: cover; object-position: left top; }
@media (max-width: 1000px) { .hero { padding: 48px 0; } .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* ---------- Highlights strip ---------- */
.highlights { border-bottom: 1px solid var(--line); background: var(--bg); }
.highlights ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.highlights li + li { border-left: 1px solid var(--line); }
.highlights a { display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 22px 18px; color: var(--text); }
.highlights a:hover { background: var(--bg-soft); text-decoration: none; }
.highlights .icon { margin: 0; flex: none; width: 36px; height: 36px; }
.highlights .icon svg { width: 20px; height: 20px; }
.highlights strong { display: block; font-size: .95rem; font-weight: 600; }
.highlights strong + span { display: block; margin-top: 2px; font-size: .85rem; color: var(--text-3); line-height: 1.4; }
@media (max-width: 1100px) {
  .highlights ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .highlights li:nth-child(4) { border-left: 0; }
  .highlights li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .highlights ul { grid-template-columns: minmax(0, 1fr); }
  .highlights li + li { border-left: 0; border-top: 1px solid var(--line); }
  .highlights a { padding: 16px 0; }
}

/* ---------- Live demo ---------- */
.demo-tabs { margin-bottom: 0; border-bottom: 0; }
.demo-hint { font-size: .925rem; color: var(--text-3); margin: 10px 0 14px; min-height: 1.5em; }

.demo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-3); }
.demo .window-bar { justify-content: space-between; }
.demo .window-url { flex: 0 1 360px; margin: 0; }
.demo-bar-actions { display: flex; align-items: center; gap: 16px; font-size: .825rem; }
.demo-bar-actions a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-weight: 600; }
.demo-bar-actions a:hover { color: var(--accent); }
.demo-bar-actions svg { width: 14px; height: 14px; }

/* The stage keeps the app's own 1280 x 800 layout and scales it to fit (js/demo.js). */
.demo-stage { position: relative; aspect-ratio: 1280 / 800; background: #10172a; overflow: hidden; }
.demo-stage iframe { position: absolute; left: 0; top: 0; width: 1280px; max-width: none; height: 800px; border: 0; transform-origin: 0 0; background: #fff; }
.demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; filter: saturate(.9); }
.demo-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(180deg, rgba(16, 23, 42, .25), rgba(16, 23, 42, .55)); }
.demo-card { max-width: 420px; text-align: center; padding: 28px 28px 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-3); }
.demo-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.demo-card p { font-size: .925rem; }
.demo-card .btn { margin-top: 18px; }
.demo-card .small { margin-top: 12px; color: var(--text-3); }
.demo-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-size: .95rem; background: rgba(16, 23, 42, .75); }
.demo-loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-stage.is-live .demo-poster, .demo-stage.is-live .demo-cover { display: none; }
@media (max-width: 760px) {
  .demo-stage { aspect-ratio: 4 / 5; }
  .demo-card { padding: 22px 18px 18px; }
}
@media (max-width: 640px) { .demo .window-url { display: none; } }
.demo-after { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 24px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.demo-after p { max-width: 640px; }
.demo-after strong { color: var(--text); }

/* ---------- Problem / answer ---------- */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.qa > div { padding: 28px; border-top: 1px solid var(--line); }
.qa > div:nth-child(-n+2) { border-top: 0; }
.qa > div:nth-child(even) { border-left: 1px solid var(--line); }
.qa .num { font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: var(--cas); }
.qa h3 { font-size: 1.1rem; margin: 6px 0 8px; }
@media (max-width: 760px) {
  .qa { grid-template-columns: minmax(0, 1fr); }
  .qa > div:nth-child(2) { border-top: 1px solid var(--line); }
  .qa > div:nth-child(even) { border-left: 0; }
}

/* ---------- Compliance ---------- */
.pillars { display: grid; gap: 16px; }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pillar .num { grid-row: span 2; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--cas); line-height: 1.1; }
.pillar h3 { font-size: 1.05rem; }
.pillar p { font-size: .95rem; }

.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding: 0; list-style: none; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 600; color: var(--text); }
.platforms svg { width: 18px; height: 18px; color: var(--cas); }
.cta-band .cta-phones { margin-top: 14px; font-size: .95rem; }
.cta-band .cta-phones a { color: #fff; font-weight: 600; white-space: nowrap; }

/* The live demo under the clip: its heading on one side, the guided tour on the other. */
.demo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; margin: 72px 0 20px; padding-top: 40px; border-top: 1px solid var(--line); }
.demo-head h3 { font-size: 1.5rem; }
.demo-head p { margin-top: 6px; max-width: 640px; }
.demo-tour { display: flex; align-items: center; gap: 14px; margin: 0 !important; font-size: .875rem; color: var(--text-3); }
.demo-tour span { max-width: 260px; }
.demo-tour svg { width: 15px; height: 15px; }
@media (max-width: 640px) { .demo-head { margin-top: 48px; padding-top: 28px; } .demo-tour { flex-wrap: wrap; } }

/* CBMS clips under the IRD section */
.ird-cbms { margin-top: 72px; }
.ird-cbms-title { font-size: 1.5rem; line-height: 1.3; margin-top: 6px; }
.ird-cbms-note { margin-top: 16px; }

/* ---------- Flex sections (the clips, figures, documents and stills) ---------- */
#flex, #ask-ai, #documents, #screens, #tech, .hero-clip-shot { --accent: var(--cas); --accent-soft: var(--cas-soft); }
.hero-clip-shot video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; background: var(--bg-soft); }
.hero-clip-label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--text-2); }
.hero-clip-label::before { content: ""; flex: none; width: 11px; height: 11px; color: var(--cas); background: currentColor; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: fx-spark 2.6s ease-in-out infinite; }
.spot-media video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; background: var(--bg-soft); }
#flex .stats { margin-bottom: 88px; }
#tech .section-head { margin-bottom: 24px; }
@media (max-width: 1000px) { #flex .stats { margin-bottom: 64px; } }
@media (prefers-reduced-motion: reduce) { .hero-clip-label::before { animation: none; } }
@media (max-width: 1000px) { .hero-grid > .hero-clip-shot { order: -1; } }

/* ---------- Accountant and owner, side by side (top of #flex) ---------- */
.duo-head h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); letter-spacing: -.02em; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duo-card { position: relative; padding: 32px 32px 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); overflow: hidden; }
.duo-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--cas-grad); }
.duo-owner::before { background: linear-gradient(135deg, #7c3aed, #db2777); }
.duo-top { display: flex; align-items: center; gap: 12px; }
.duo-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; color: var(--cas); background: var(--cas-soft); }
.duo-owner .duo-icon { color: #7c3aed; background: color-mix(in srgb, #7c3aed 12%, var(--surface)); }
.duo-icon svg { width: 24px; height: 24px; }
.duo-label { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.duo-card h3 { margin-top: 18px; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; letter-spacing: -.01em; }
.duo-card .checks { margin-top: 18px; gap: 14px; }
.duo-foot { margin: 28px 0 96px; text-align: center; }
.duo-foot span { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--cas-soft); color: var(--cas); font-weight: 700; font-size: 1.02rem; }
:root[data-theme="dark"] .duo-owner .duo-icon { color: #c4b5fd; }
@media (max-width: 1000px) { .duo { grid-template-columns: minmax(0, 1fr); } .duo-foot { margin-bottom: 64px; } }
@media (max-width: 640px) { .duo-card { padding: 26px 20px 24px; } }

/* The header on a laptop (2026-10-05): "by CompTech International" beside the logo is shown only where the menu has the
   room, and between the phone menu and a wide screen the links keep to one line (they wrapped from 980 to 1140px). */
@media (max-width: 1239px) { .site-header .brand small { display: none; } }
@media (min-width: 961px) and (max-width: 1239px) { .site-header .nav a { padding: 8px 9px; white-space: nowrap; } .site-header .header-actions a { white-space: nowrap; } }
