/* dahal.tech only. The shared system is in base.css (the same file as comptech.com.np and discover.cas360.app).
   Dahal Tech wears CompTech's blue; CAS360 keeps its indigo and Kaede its green. */

/* ---------- Home hero ---------- */
.hero { padding: 72px 0 80px; 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.1fr); gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); }
.hero-copy .lead { margin-top: 20px; max-width: 560px; }
.hero-copy .btn-row { margin-top: 32px; }
/* TravelMan sits behind, up and to the left; CAS360 in front. Decades behind us, the next one ahead. */
.hero-visual { position: relative; padding: 112px 0 0 20%; }
.hero-visual figure { margin: 0; }
.hero-visual figcaption { position: absolute; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #1b1b1b; font-size: .75rem; font-weight: 600; box-shadow: var(--shadow-1); white-space: nowrap; }
.hero-back { position: absolute; left: 0; top: 0; width: 64%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.hero-back img { width: 100%; }
.hero-back figcaption { left: 10px; top: 52px; }
.hero-front { position: relative; }
.hero-front img { aspect-ratio: 3 / 2; object-fit: cover; object-position: left top; }
.hero-front figcaption { right: 12px; bottom: 12px; }
@media (max-width: 1000px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-visual { max-width: 720px; }
}
@media (max-width: 640px) {
  .hero-visual { padding: 0; }
  .hero-back { display: none; }
}

.card-media-icon { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-tint), var(--bg-soft)); color: var(--brand); }
.card-media-icon svg { width: 64px; height: 64px; stroke-width: 1.1; }
.cas-eyebrow { color: var(--cas); }
.cas-eyebrow img { border-radius: 0; background: none; }
.cas-eyebrow svg { width: 20px; height: 20px; }


/* ---------- Kaede (cargo operations, from Dahal Tech) ---------- */
:root { --kaede: #1f6249; --kaede-hover: #174d39; --kaede-soft: #e5f1ec; }
:root[data-theme="dark"] { --kaede: #57c093; --kaede-hover: #74cfa7; --kaede-soft: #17322a; }
.kaede-eyebrow { color: var(--kaede); }
.kaede-eyebrow img { border-radius: 6px; }
.kaede-from { color: var(--text-3); font-weight: 400; }
.btn-kaede { background: var(--kaede); color: #fff; }
.btn-kaede:hover { background: var(--kaede-hover); color: #fff; }
:root[data-theme="dark"] .btn-kaede, :root[data-theme="dark"] .btn-kaede:hover { color: #0b1f18; }
.checks.kaede li::before { background: var(--kaede-soft); }
.checks.kaede li::after { border-color: var(--kaede); }
.tabs.kaede .tab[aria-selected="true"]::after { background: var(--kaede); }
.window .window-url img { width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; }

/* The Kaede window in the hero, in front at the bottom left */
.hero-third { position: absolute; left: 0; bottom: -44px; width: 50%; z-index: 2; box-shadow: var(--shadow-3); }
.hero-third > img { aspect-ratio: 3 / 2; object-fit: cover; object-position: left top; }
.hero-third figcaption { left: 10px; bottom: 10px; }

/* ---------- Kaede through-route sample ---------- */
.route-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: 24px; }
.route-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-weight: 600; font-size: 1.05rem; color: var(--text); }
.route-arrow { color: var(--kaede); }
.route-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.route-tag { font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--kaede-soft); color: var(--kaede); }
.route-tag.muted-tag { background: var(--bg-soft); color: var(--text-2); }
.route-legs { list-style: none; margin: 20px 0 0; padding: 0; position: relative; }
.route-legs::before { content: ""; position: absolute; left: 19px; top: 22px; bottom: 22px; border-left: 2px dashed var(--line-strong); }
.leg { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; }
.leg-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--kaede-soft); color: var(--kaede); display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--surface); }
.leg-icon svg { width: 22px; height: 22px; }
.leg-body { display: grid; gap: 1px; }
.leg-body b { font-size: .95rem; color: var(--text); }
.leg-body span { font-size: .9rem; color: var(--text-2); }
.leg-body small { font-size: .8rem; color: var(--text-3); }
.leg-amount { font-family: var(--font-mono); font-size: .9rem; color: var(--text); white-space: nowrap; }
.route-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.route-total span { color: var(--text-2); }
.route-total b { font-family: var(--font-mono); font-size: 1.15rem; color: var(--kaede); }
.route-note { margin-top: 12px; font-size: .8rem; color: var(--text-3); }
/* The legs arrive one by one when the card comes into view; still for reduced motion. */
.js .route-card[data-reveal] .leg, .js .route-card[data-reveal] .route-total { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(.35s + var(--i, 4) * .45s); }
.js .route-card.is-visible .leg, .js .route-card.is-visible .route-total { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .route-card[data-reveal] .leg, .js .route-card[data-reveal] .route-total { opacity: 1; transform: none; transition: none; } }
@media (max-width: 640px) { .route-card { padding: 18px; } .leg { grid-template-columns: 34px minmax(0, 1fr); } .leg-amount { grid-column: 2; } .leg-icon { width: 34px; height: 34px; } .route-legs::before { left: 16px; } }

/* ---------- AI in both systems, side by side ---------- */
.ai-name { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.ai-name img { width: 28px; height: 28px; border-radius: 6px; }
.ai-line { margin: 6px 0 16px; color: var(--text-2); }
.ai-checks { margin-top: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .ai-checks { grid-template-columns: minmax(0, 1fr); } }

.eyebrow > svg { width: 20px; height: 20px; }
.ai-pair .ask { max-width: none; margin: 0; }

/* ---------- Everyday features, a glimpse ---------- */
.glimpse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.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); }
.glimpse-foot { margin-top: 24px; color: var(--text-2); }
@media (max-width: 1100px) { .glimpse { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .glimpse { grid-template-columns: minmax(0, 1fr); } .glimpse-group { padding: 18px; } }

/* ---------- Our goal: Nepal's paperwork on the computer ---------- */
.mission { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.mission h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin-top: 6px; }
.mission .lead { margin-top: 14px; }
.paper-pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.paper-pairs li { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: stretch; gap: 10px; }
.paper-pairs .was, .paper-pairs .now { padding: 10px 14px; border-radius: var(--radius); font-size: .92rem; line-height: 1.4; }
.paper-pairs .was { background: var(--bg-soft); color: var(--text-3); }
.paper-pairs .was > span { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.paper-pairs .now { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.paper-pairs small { display: block; margin-bottom: 2px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.paper-pairs .now small { color: var(--accent); }
.paper-pairs .to { align-self: center; text-align: center; color: var(--accent); font-weight: 600; }
:lang(ne) .paper-pairs small { letter-spacing: 0; }
@media (max-width: 1000px) { .mission { grid-template-columns: minmax(0, 1fr); padding: 28px; } }
@media (max-width: 640px) { .mission { padding: 22px; } .paper-pairs li { grid-template-columns: minmax(0, 1fr); gap: 4px; } .paper-pairs .to { transform: rotate(90deg); } }

/* ---------- Highlights strip (as on discover.cas360.app) ---------- */
.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; }
}

.cta-band .cta-phones { margin-top: 14px; font-size: .95rem; }
.cta-band .cta-phones a { color: #fff; font-weight: 600; white-space: nowrap; }

/* ---------- Dahal Tech: the two platforms ---------- */
.icon.kaede-icon { background: var(--kaede-soft); color: var(--kaede); }
.platforms { align-items: stretch; }
.platform { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.platform > .window { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.platform > .window > img { aspect-ratio: 3 / 2; object-fit: cover; object-position: left top; }
.platform-body { display: flex; flex-direction: column; gap: 12px; padding: 28px; flex: 1; }
.platform-body h3 { font-size: 1.5rem; }
.platform-body > p:not(.eyebrow) { color: var(--text-2); }
.platform-body .checks { margin-top: 4px; }
.platform-body .btn-row { margin-top: auto; padding-top: 12px; }
.cas-eyebrow, .kaede-eyebrow { display: flex; align-items: center; gap: 8px; }

/* ---------- How they connect ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; }
.flow::before { content: ""; position: absolute; left: 31px; top: 32px; bottom: 32px; border-left: 2px dashed var(--line-strong); }
.flow-step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 20px 18px 0; }
.flow-step b { display: block; font-size: 1.05rem; color: var(--text); }
.flow-step span span { color: var(--text-2); }
.flow-icon { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--bg); }
.flow-icon svg { width: 28px; height: 28px; }
.kaede-step .flow-icon { background: var(--kaede-soft); color: var(--kaede); }
.cas-step .flow-icon { background: var(--cas-soft); color: var(--cas); }
.ird-step .flow-icon { background: var(--accent-soft); color: var(--accent); }

/* ---------- About ---------- */
.about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }

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

.forwarder-more { margin-top: -12px; }

/* ---------- Kaede leads (2026-10-03): the hero clip, the lead card, CAS360 beside it ---------- */
.hero-front > video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-soft); }
.hero-also { margin-top: 20px; font-size: .95rem; color: var(--text-2); max-width: 520px; }
.hero-also a { color: var(--cas); font-weight: 600; }
.platforms-stack { display: grid; gap: 24px; }
.platform-lead { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border-color: color-mix(in srgb, var(--kaede) 35%, var(--line)); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--kaede) 45%, transparent), var(--shadow-2); }
.platform-lead > .window, .platform-side > .window { align-self: center; margin: 28px 0 28px 28px !important; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); overflow: hidden; }
.platform-lead > .window > img, .platform-side > .window > img { height: auto; aspect-ratio: 3 / 2; }
.platform-lead .platform-body { padding: 36px; }
.platform-lead .platform-body h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.platform-side { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); }
.platform-side .platform-body { padding: 24px 28px; }
.platform-side .platform-body h3 { font-size: 1.25rem; }
#kaede-flex { --accent: var(--kaede); --accent-soft: var(--kaede-soft); }
#kaede-flex .spot-media video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; background: var(--bg-soft); }
#kaede-flex .forwarder-more { margin-top: 72px; text-align: center; }
@media (max-width: 1000px) {
  .platform-lead, .platform-side { grid-template-columns: minmax(0, 1fr); }
  .platform-lead > .window, .platform-side > .window { margin: 20px 20px 0 !important; }
  .platform-lead .platform-body { padding: 28px; }
}
@media (max-width: 1000px) { .hero-grid > .hero-visual { order: -1; } }
#forwarder { --accent: var(--kaede); --accent-soft: var(--kaede-soft); --on-accent: #fff; }
:root[data-theme="dark"] #forwarder { --on-accent: #0b1f18; }
.roads + .forwarder-more { margin-top: 32px; }
