/* Klarity landing page
   Colours: brand #5B5BD6, night #0E0D24, ink #14142B, paper #F3F2EC, lavender #E7E6FB */

:root {
  --brand: #5B5BD6;
  --brand-hover: #4B4BC2;
  --brand-light: #ABABFB;
  --brand-soft: #C4C4FC;
  --night: #0E0D24;
  --night-2: #15143A;
  --ink: #14142B;
  --muted: #5C5F73;
  --line: #E3E3EA;
  --paper: #F3F2EC;
  --lav: #E7E6FB;
  --max: 1328px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: -0.01em; }
.accent { color: var(--brand); }
.accent-light { color: var(--brand-soft); }

.icon16 { width: 16px; height: 16px; flex: none; }
.icon18 { width: 18px; height: 18px; }
.icon22 { width: 22px; height: 22px; flex: none; }
.icon28 { width: 28px; height: 28px; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid #8E8EF2; outline-offset: 3px; }

/* Buttons and text links */
.btn { height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 150ms ease; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ECECF4; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-hover); }
.btn-brand:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #D9DAE3; font-weight: 500; }
.btn-ghost:hover { background: #F4F4FA; }

.tlink { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0 8px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: opacity 150ms ease; }
.tlink:hover { opacity: .72; }
.tlink-light { color: #fff; }
.tlink-muted { color: rgba(255,255,255,.86); border-color: rgba(255,255,255,.4); }
.tlink-brand { border-color: var(--brand); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; color: #fff; background: var(--night) url("../assets/img/posters/construction.jpg") center / cover no-repeat; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(10, 9, 30, .58); }

.site-header { position: relative; z-index: 3; border-bottom: 1px solid rgba(255,255,255,.14); }
.header-row { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo-link { display: flex; color: #fff; }
.logo { width: 104px; height: 34px; }
.nav { display: flex; gap: 36px; font-size: 14px; font-weight: 500; }
.nav a, .nav-signin, .mobile-nav a { text-decoration: none; opacity: .86; }
.nav a:hover, .nav-signin:hover, .mobile-nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.nav-signin { font-size: 14px; font-weight: 500; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.mobile-nav { padding-bottom: 24px; display: flex; flex-direction: column; font-size: 18px; font-weight: 500; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); }

.hero-content { position: relative; z-index: 1; flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 40px; }
.hero-title { max-width: 1000px; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; }
.hero-lead { margin-top: 28px; max-width: 560px; font-size: 18px; line-height: 28px; color: rgba(255,255,255,.84); }
.hero-links { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.hero-bar { margin-top: 88px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.scroll-hint { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; cursor: pointer; }
.scroll-hint:hover { color: #fff; }
.slide-meta { display: flex; align-items: center; gap: 20px; }
.slide-num { font-variant-numeric: tabular-nums; }
.slide-label { min-width: 112px; color: #fff; }
.slide-dots { display: flex; gap: 2px; }
.dot { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dot span { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #fff; transition: background-color 300ms ease; }
.dot[aria-current="true"] span { background: #fff; }

/* STATEMENT */
.statement { padding: 160px 0 150px; }
.statement p { max-width: 1120px; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.14; font-weight: 400; letter-spacing: -.025em; }

/* Headings */
.h2 { max-width: 640px; font-size: clamp(30px, 3vw, 44px); line-height: 1.12; font-weight: 500; letter-spacing: -.025em; }
.h2-lg { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.08; font-weight: 500; letter-spacing: -.03em; }
.h2-lg.dark { max-width: 560px; font-size: clamp(30px, 3.2vw, 48px); }
.eyebrow { margin-bottom: 20px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-light); }
.eyebrow-muted { margin: 40px 0 14px; color: rgba(255,255,255,.6); }

/* INDUSTRIES */
.industries { padding-bottom: 150px; overflow: hidden; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.carousel-controls { display: flex; align-items: center; gap: 10px; }
.round-btn { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #F1F1F5; color: var(--ink); cursor: pointer; transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease; }
.round-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.round-btn:disabled { opacity: .4; cursor: default; }
.drag-pill { height: 48px; padding: 0 22px; display: inline-flex; align-items: center; border: 1px solid #D9DAE3; border-radius: 10px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.track { display: flex; gap: 24px; transition: transform 500ms var(--ease); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.track.is-dragging { transition: none; cursor: grabbing; }
.card { position: relative; flex: none; width: min(420px, 82vw); height: 540px; padding: 36px; border-radius: 4px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(118deg, rgba(255,255,255,.07) 0 2px, transparent 2px 26px); opacity: 0; transition: opacity 450ms ease; pointer-events: none; }
.card-light::before { background: repeating-linear-gradient(118deg, rgba(20,20,43,.05) 0 2px, transparent 2px 26px); }
.card:hover::before { opacity: 1; }
.card-night { background: var(--night-2); color: #fff; }
.card-brand { background: var(--brand); color: #fff; }
.card-lav { background: var(--lav); color: var(--ink); }
.card-paper { background: #F6F5F1; color: var(--ink); border: 1px solid var(--line); }
.card-photo { color: #fff; background: var(--night) url("../assets/img/posters/logistics.jpg") center / cover; }
.card-photo::after { content: ""; position: absolute; inset: 0; background: rgba(10,9,30,.55); }
.card-num, .card-body { position: relative; z-index: 1; }
.card-num { font-size: 60px; line-height: 1; font-weight: 400; letter-spacing: -.03em; }
.card-body h3 { font-size: 32px; line-height: 38px; font-weight: 500; letter-spacing: -.02em; }
.reveal { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 450ms ease, opacity 350ms ease; }
.card:hover .reveal, .card:focus-within .reveal { max-height: 220px; opacity: 1; }
.reveal p { margin-top: 14px; max-width: 320px; font-size: 15px; line-height: 23px; opacity: .86; }
.card-btn { margin-top: 28px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--ink); }
.card-light .card-btn { background: var(--ink); color: #fff; }

/* SITE CAPTURE */
.capture { background: var(--night); color: #fff; padding: 140px 0; }
.capture-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 72px; }
.capture-intro { flex: 1 1 400px; min-width: 0; }
.capture-lead { margin-top: 24px; max-width: 460px; font-size: 17px; line-height: 27px; color: rgba(255,255,255,.76); }
.examples { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.chip { text-align: left; min-height: 44px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: transparent; color: rgba(255,255,255,.86); font-size: 14px; line-height: 20px; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.chip span { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-light); }
.chip:hover { border-color: rgba(171,171,251,.6); background: rgba(91,91,214,.12); }

.cap-card { flex: 1.2 1 520px; min-width: 0; min-height: 640px; padding: 24px; border-radius: 16px; background: #fff; color: var(--ink); display: flex; flex-direction: column; }
.tabs { align-self: flex-start; display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: #F1F1F5; }
.tab { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 9px; background: transparent; color: #45475A; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.cap-input { margin-top: 20px; min-height: 176px; }
.panel { display: flex; flex-direction: column; gap: 8px; }
.panel[hidden] { display: none; }
.cap-label { font-size: 14px; font-weight: 500; }
.panel textarea { resize: none; width: 100%; padding: 12px 14px; border: 1px solid #D2D4DE; border-radius: 10px; font: inherit; font-size: 15px; line-height: 22px; color: var(--ink); background: #fff; }
.panel textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,91,214,.22); }
.panel textarea.has-error { border-color: #B42318; }
.cap-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cap-msg { font-size: 13px; color: var(--muted); }
.cap-msg.is-error { color: #B42318; }
.panel-voice { min-height: 176px; align-items: center; justify-content: center; gap: 14px; }
.rec-btn { width: 76px; height: 76px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: box-shadow 300ms ease, background-color 200ms ease; }
.rec-btn.is-recording { background: #B42318; box-shadow: 0 0 0 14px rgba(91,91,214,.18); }
.rec-btn:disabled { cursor: progress; }
.bars { display: flex; align-items: center; gap: 4px; height: 28px; }
.bars[hidden] { display: none; }
.bars span { width: 4px; height: 24px; border-radius: 2px; background: var(--brand); animation: eq 800ms ease-in-out infinite alternate; }
.bars span:nth-child(2) { animation-delay: 150ms; } .bars span:nth-child(3) { animation-delay: 300ms; } .bars span:nth-child(4) { animation-delay: 80ms; }
.bars span:nth-child(5) { animation-delay: 220ms; } .bars span:nth-child(6) { animation-delay: 360ms; } .bars span:nth-child(7) { animation-delay: 120ms; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.rec-label { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.photo-tile { min-height: 112px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px dashed #C9CBD6; border-radius: 12px; background: #FAFAFD; color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.photo-tile svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.photo-tile:hover:not(:disabled) { border-color: var(--brand); background: #F3F3FD; }
.photo-tile:disabled { opacity: .6; cursor: progress; }
.cap-note { font-size: 13px; color: var(--muted); }
.cap-divider { height: 1px; background: #E8E8EF; margin: 20px 0; }
.cap-out { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.cap-idle { flex: 1; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--muted); font-size: 14px; }
.cap-idle p { max-width: 280px; }
.transcript { padding: 14px 16px; border-radius: 12px; background: #F6F6FA; }
.transcript small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.transcript q { font-size: 15px; line-height: 22px; }
.thinking { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 14px; color: var(--brand-hover); }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: blink 1.1s ease-in-out infinite; }
.thinking i:nth-child(2) { animation-delay: 160ms; } .thinking i:nth-child(3) { animation-delay: 320ms; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.action { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid #E8E8EF; }
.action-check { width: 24px; height: 24px; flex: none; border-radius: 50%; background: #EEEEFC; color: var(--brand-hover); display: flex; align-items: center; justify-content: center; transition: background-color 300ms ease, color 300ms ease; }
.action-check svg { width: 12px; height: 12px; }
.is-approved .action-check { background: #1E6B3A; color: #fff; }
.action-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.action-title { font-size: 15px; font-weight: 600; }
.tag { height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 6px; font-size: 12px; font-weight: 600; }
.tag-Stock { background: #EEEEFC; color: #3F3FB0; } .tag-Buying { background: #FFF1E6; color: #8A4300; }
.tag-Quality, .tag-Safety { background: #FDECEC; color: #A3201A; } .tag-Assets { background: #E6F4EA; color: #1E6B3A; }
.tag-Projects { background: #F1F1F5; color: #45475A; } .tag-HR { background: #E8F1FB; color: #1D5A9A; }
.action-detail { margin-top: 3px; font-size: 14px; line-height: 20px; color: var(--muted); }
.approve-bar { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.approve-bar div { display: flex; gap: 8px; }
.approved-banner { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #E6F4EA; color: #1E6B3A; font-size: 14px; font-weight: 600; }
.approved-banner button { height: 36px; padding: 0 12px; border: 0; background: transparent; color: #1E6B3A; font-weight: 600; text-decoration: underline; cursor: pointer; }
.pop { animation: pop 380ms ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* PLATFORM */
.platform { border-top: 1px solid var(--line); }
.split { display: flex; flex-wrap: wrap; }
.split-left { flex: 1 1 480px; min-width: 0; padding: 110px clamp(24px, 4vw, 56px); }
.muted-lead { margin: 24px 0 36px; max-width: 460px; font-size: 17px; line-height: 27px; color: var(--muted); }
.split-right { flex: 1 1 520px; min-width: 0; border-left: 1px solid var(--line); }
.prow { min-height: 340px; padding: 64px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color 350ms ease; }
.prow h3 { font-size: clamp(32px, 3vw, 46px); line-height: 1.08; font-weight: 400; letter-spacing: -.025em; }
.prow p { margin-top: 16px; max-width: 560px; font-size: 17px; line-height: 27px; color: var(--muted); }
.prow:hover, .prow:focus-visible { background: var(--paper); }
.prow:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.more { display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.more svg { color: var(--brand); }
.more-label { display: inline-block; max-width: 0; margin-right: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width 400ms ease, margin-right 400ms ease, opacity 300ms ease; }
.prow:hover .more-label, .prow:focus-visible .more-label { max-width: 140px; margin-right: 12px; opacity: 1; }

/* WHERE WE WORK */
.where { padding: 150px 0; }
.where-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.where-text { flex: 1 1 380px; min-width: 0; min-height: 560px; padding: 48px; background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 48px; }
.where-top { padding-top: 32px; border-top: 1px solid #D6D4CB; align-self: stretch; }
.where-top h2 { font-size: clamp(32px, 3vw, 46px); line-height: 1.08; font-weight: 400; letter-spacing: -.025em; }
.where-top p { margin-top: 18px; max-width: 420px; font-size: 17px; line-height: 27px; color: #4A4D60; }
.where-map { flex: 1.5 1 560px; min-width: 0; padding: 64px 48px; background: var(--night-2); display: flex; align-items: center; justify-content: center; }
.where-map img { width: 100%; height: auto; }

/* CONTACT PANELS */
.contact { display: flex; flex-wrap: wrap; }
.panel-link { flex: 1 1 480px; min-width: 0; min-height: 580px; padding: 64px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; text-decoration: none; transition: background-color 450ms ease, color 450ms ease; }
.panel-link h2 { max-width: 560px; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.08; font-weight: 400; letter-spacing: -.025em; }
.panel-link p { margin-top: 18px; font-size: 17px; line-height: 27px; opacity: .85; }
.panel-arrow { margin-top: 24px; }
.panel-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid currentColor; font-size: 18px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.panel-a { background: var(--brand); color: #fff; }
.panel-a:hover, .panel-a:focus-visible { background: var(--paper); color: var(--ink); }
.panel-b { background: var(--lav); color: var(--ink); }
.panel-b:hover, .panel-b:focus-visible { background: var(--night); color: #fff; }
.panel-link:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; }

/* FOOTER */
.site-footer { background: var(--night); color: rgba(255,255,255,.72); padding: 80px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }
.footer-brand p { max-width: 300px; font-size: 15px; line-height: 23px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 14px; line-height: 20px; }
.footer-cols div { display: flex; flex-direction: column; gap: 12px; }
.footer-cols a, .footer-bottom a { text-decoration: none; transition: opacity 150ms ease; }
.footer-cols a:hover, .footer-bottom a:hover { opacity: .72; }
.footer-h { margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer-bottom { margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; }
.footer-bottom div { display: flex; gap: 24px; }

/* Responsive */
@media (max-width: 960px) {
  .nav, .nav-signin, .scroll-hint { display: none; }
  .menu-btn { display: flex; }
  .statement { padding: 110px 0 100px; }
  .capture { padding: 100px 0; }
  .split-right { border-left: 0; border-top: 1px solid var(--line); }
  .where { padding: 100px 0; }
}
@media (max-width: 560px) {
  .header-actions .btn-light { display: none; }
  .cap-card { padding: 16px; }
  .photo-grid { grid-template-columns: minmax(0, 1fr); }
  .photo-tile { min-height: 64px; flex-direction: row; }
  .where-text, .where-map { padding: 32px 24px; }
  .card { height: 480px; padding: 28px; }
}
@media (hover: none) {
  .reveal { max-height: none; opacity: 1; }
  .more-label { max-width: 140px; margin-right: 12px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
