/* comptech.com.np only. The shared system is in base.css. */

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

/* ---------- Team ---------- */
.person { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.person .avatar { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; }
.person .avatar svg { width: 24px; height: 24px; }
.person h3 { font-size: 1.05rem; }
.person .role { font-size: .875rem; color: var(--accent); font-weight: 600; margin: 2px 0 10px; }
.person p:last-child { font-size: .95rem; }

/* ---------- Products page ---------- */
.product-nav { position: sticky; top: var(--header-h); z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.product-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.product-nav ul::-webkit-scrollbar { display: none; }
.product-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px; font-size: .925rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.product-nav a:hover { color: var(--text); text-decoration: none; }
.product { scroll-margin-top: calc(var(--header-h) + 56px); }
.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.product-head img { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.product-head .icon { margin: 0; width: 44px; height: 44px; }
.spec { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.spec h3 { font-size: 1rem; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.spec dl { margin: 0; padding: 4px 20px 8px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .925rem; }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--text-3); }
.spec dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; }
.spec .btn { margin: 4px 20px 20px; width: calc(100% - 40px); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 8px; }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 32px 52px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline li.now::before { background: var(--cas); border-color: var(--cas); }
.timeline .when { font-size: .875rem; font-weight: 600; color: var(--accent); }
.timeline li.now .when { color: var(--cas); }
.timeline h3 { font-size: 1.1rem; margin: 2px 0 6px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.contact-list { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-item .icon { margin: 0; flex: none; }
.contact-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p { font-size: .95rem; }
.form-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-done { display: none; padding: 24px; border-radius: var(--radius); background: var(--accent-soft); }
.form-done h3 { margin-bottom: 6px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .form-card { padding: 24px 20px; } }

/* ---------- Downloads ---------- */
.versions-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-bar { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.filter-btn { border: 0; background: transparent; padding: 6px 14px; border-radius: 6px; font-size: .875rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.versions { display: grid; gap: 16px; }
.version { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.version.latest { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.version-tag { width: 72px; height: 72px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.version-tag b { font-size: .95rem; }
.version-tag span { font-size: .7rem; font-weight: 600; text-transform: capitalize; color: var(--text-3); }
.version h3 { font-size: 1.1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.version .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--text-3); margin: 6px 0 10px; }
.version .desc { font-size: .95rem; }
.version ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.version li { font-size: .875rem; color: var(--text-2); padding-left: 16px; position: relative; }
.version li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.version .hash { margin-top: 10px; font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); word-break: break-all; }
.version .note { margin-top: 10px; font-size: .85rem; color: var(--warn); }
.version-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; font-size: .8rem; color: var(--text-3); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--text-2); }
.status.stable { background: #e6f4e6; color: var(--ok); }
.status.beta { background: var(--warn-soft); color: var(--warn); }
:root[data-theme="dark"] .status.stable { background: #183318; }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--bg-soft) 0%, var(--surface-2) 50%, var(--bg-soft) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (max-width: 680px) {
  .version { grid-template-columns: 1fr; gap: 14px; }
  .version-actions { align-items: flex-start; text-align: left; }
}

/* Products: the story on the left, the "at a glance" card on the right */
.split-main { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.split-main .spec { position: sticky; top: calc(var(--header-h) + 72px); }
@media (max-width: 1000px) { .split-main { grid-template-columns: minmax(0, 1fr); gap: 32px; } .split-main .spec { position: static; } }

/* ---------- 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); }
.product-head img[src*="kaede-mark"] { border-radius: 9px; }

/* Five products across on wide screens */
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1240px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-5 { grid-template-columns: minmax(0, 1fr); } }
.tabs.kaede .tab[aria-selected="true"]::after { background: var(--kaede); }
.window .window-url img { width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; }
.footer-grid { grid-template-columns: 2fr repeat(4, 1fr); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* 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, .hero-third > video { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: left top; background: #f5f7fa; }
.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); } }

/* Six menu items: tighter between 1081 and 1279px, the menu button below that */
@media (max-width: 1279px) {
  .site-header .header-actions { display: none; }
  .site-header .nav a { padding: 8px 8px; }
  .lang-btn { margin-left: auto; }
}
@media (max-width: 1080px) {
  .site-header .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header > .container { gap: 8px; }
  .lang-btn + .theme-btn, .theme-btn + .menu-btn { margin-left: 0; }
}
.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); } }

/* Kaede's spotlight under the Kaede section (customisation clip) */
.kaede-spot { --accent: var(--kaede); --accent-soft: var(--kaede-soft); margin-top: 96px; }
.kaede-spot .spot-media video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; background: var(--bg-soft); }
.kaede-spot .window-url img { border-radius: 3px; }
@media (max-width: 1000px) { .kaede-spot { margin-top: 64px; } }
/* The CAS360 mark is drawn for its background (light or dark version), so it needs no white tile */
.product-head img[src*="cas360_mark"] { border: 0; border-radius: 0; background: none; }
