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

/* Kaede wears its maple green, on the navy of its app. */
:root {
  --cas: #1f6249;
  --cas-hover: #174d39;
  --cas-soft: #e5f1ec;
  --cas-grad: linear-gradient(135deg, #2f7d5e, #123a6b);
  --accent: #1f6249;
  --accent-hover: #174d39;
  --accent-soft: #e5f1ec;
  --bg-tint: #eef4f1;
  --brand: #123a6b;
}
:root[data-theme="dark"] {
  --cas: #57c093;
  --cas-hover: #74cfa7;
  --cas-soft: #17322a;
  --accent: #57c093;
  --accent-hover: #74cfa7;
  --accent-soft: #17322a;
  --on-accent: #0b1f18;
  --bg-tint: #13201c;
  --brand: #57c093;
}
:root[data-theme="dark"] .cta-band { background: #173328; }
.brand img { height: 32px; width: 32px; border-radius: 7px; }

/* ---------- 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; }

/* ---------- Kaede page parts ---------- */
.rates-lead { margin-top: 14px; color: var(--text-2); }
.clips-note { margin-top: 28px; }
.also { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.also h2 { font-size: 1.35rem; }
.also p { margin-top: 6px; color: var(--text-2); max-width: 760px; }
@media (max-width: 800px) { .also { grid-template-columns: minmax(0, 1fr); padding: 24px; } }

/* ---------- The whole forwarder: a shipment's day, then the modules ---------- */
.day { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: day; }
.day-step { position: relative; display: grid; gap: 6px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.day-step b { font-size: 1.02rem; color: var(--text); }
.day-step > span:last-child { font-size: .9rem; color: var(--text-2); line-height: 1.45; }
.day-num { position: absolute; top: 16px; right: 18px; font-family: var(--font-mono); font-size: .8rem; color: var(--text-3); }
.day-icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cas-soft); color: var(--cas); margin-bottom: 6px; }
.day-icon svg { width: 22px; height: 22px; }
@media (max-width: 1100px) { .day { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .day { grid-template-columns: minmax(0, 1fr); } }

.glimpse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.business-modules { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.glimpse-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.glimpse-group h3 { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.glimpse-group h3 .icon { flex: none; width: 36px; height: 36px; margin: 0; }
.glimpse-group h3 .icon svg { width: 20px; height: 20px; }
.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .86rem; line-height: 1.35; padding: 6px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--line); }
@media (max-width: 1100px) { .glimpse, .business-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .glimpse, .business-modules { grid-template-columns: minmax(0, 1fr); } .glimpse-group { padding: 18px; } }
.demo-card { display: flex; flex-direction: column; gap: 10px; background: var(--cas-soft); border-color: transparent; color: var(--text); }
.demo-card:hover { text-decoration: none; box-shadow: var(--shadow-1); }
.demo-card p { color: var(--text-2); font-size: .95rem; }
.demo-card .link-more { margin-top: auto; }

/* ---------- Workbench section: the three clips as tabs ---------- */
.work-tabs .tabs { margin-bottom: 16px; }
.work-tabs .caption { margin-top: 10px; font-size: .9rem; color: var(--text-3); }

/* The hero plays the new-AWB clip as soon as the page opens */
.hero-clip { position: relative; }
.hero-clip video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: left top; background: #f5f7fa; }
.hero-clip-label { position: absolute; left: 14px; bottom: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(15, 23, 42, .82); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .01em; }
@media (max-width: 1000px) { .hero-grid > .hero-clip { order: -1; } }

/* ---------- Flex sections (the clips, figures, documents and stills) ---------- */
.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; }
.shot-plain { display: block; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-3); cursor: zoom-in; }
.shot-plain img { display: block; width: 100%; }
@media (max-width: 1000px) { #flex .stats { margin-bottom: 64px; } }
/* Seven menu entries: keep each on one line, drop the header button first, then fold into the menu button */
.nav a { white-space: nowrap; }
@media (max-width: 1279px) { .site-header .header-actions { display: none; } .site-header .theme-btn { margin-left: auto; } }
@media (max-width: 1140px) { .site-header .nav { display: none; } .menu-btn { display: inline-flex; } .theme-btn + .menu-btn { margin-left: 4px; } }
