/* ==========================================================================
   Koda.Properties — shared design system for the marketing site
   Palette + typography match the app and the Koda logo (green + navy).
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #2fa84f;        /* Koda green (from logo) */
    --primary-dark: #1f8a3c;
    --secondary: #1e3a5f;      /* navy */
    --navy-deep: #14243d;      /* logo deep navy */
    --accent: #f59e0b;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow-sm: 0 2px 10px rgba(15,23,42,0.06);
    --shadow-md: 0 12px 30px rgba(15,23,42,0.08);
    --shadow-lg: 0 24px 50px rgba(15,23,42,0.14);
    --maxw: 1200px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background: white;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 5%; }

/* Visually hidden but available to assistive tech */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.btn {
    padding: 12px 26px; border-radius: 12px; font-weight: 700;
    text-decoration: none; transition: all .25s ease; cursor: pointer;
    border: none; font-size: .95rem; font-family: inherit;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; box-shadow: 0 6px 18px rgba(47,168,79,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(47,168,79,.45); }
.btn-outline { background: transparent; color: var(--secondary); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: white; border: 2px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: white; color: var(--secondary); border-color: white; }
.btn-dark { background: var(--secondary); color: white; }
.btn-dark:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ---------- Navbar (solid white, shared across pages) ---------- */
.navbar {
    position: sticky; top: 0; z-index: 1000; background: white;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem 5%;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 42px; width: auto; }
.logo .logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo .logo-text b { font-weight: 800; font-size: 1.15rem; letter-spacing: -.4px; color: var(--secondary); }
.logo .logo-text small { font-weight: 600; font-size: .68rem; letter-spacing: 1.5px; color: var(--primary); text-transform: uppercase; }

.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--secondary); font-size: .95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-dark); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }

.mobile-menu-btn {
    display: none; background: none; border: none; color: var(--secondary);
    font-size: 1.4rem; cursor: pointer; padding: 6px; -webkit-tap-highlight-color: transparent;
}

/* Mobile drawer */
.drawer-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,.55);
    opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 1100;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed; top: 0; right: 0; width: min(82vw,340px); height: 100vh;
    background: white; box-shadow: -8px 0 32px rgba(15,23,42,.2);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.32,.72,0,1);
    z-index: 1110; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-close { background: #f1f5f9; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; color: var(--dark); cursor: pointer; }
.drawer-links { display: flex; flex-direction: column; padding: 10px 0; flex: 1; overflow-y: auto; }
.drawer-links a { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: var(--dark); text-decoration: none; font-weight: 600; }
.drawer-links a i { color: var(--primary); width: 22px; text-align: center; }
.drawer-links a:active { background: #f1f5f9; }
.drawer-cta { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.drawer-cta a { text-align: center; }
body.no-scroll { overflow: hidden; }

/* ---------- Section headers ---------- */
.section { padding: 5.5rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(47,168,79,.1); color: var(--primary-dark);
    padding: 7px 16px; border-radius: 50px; font-size: .82rem; font-weight: 700; margin-bottom: 1rem;
}
.section-head h2 { font-size: 2.4rem; font-weight: 800; letter-spacing: -.5px; margin-bottom: 1rem; color: var(--dark); }
.section-head p { color: var(--gray); font-size: 1.12rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); padding: 4rem 5% 2rem; color: #cbd5e1; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 84px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 320px; line-height: 1.7; font-size: .95rem; }
.footer-col h4 { color: white; font-size: 1rem; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .7rem; }
.footer-col a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { max-width: var(--maxw); margin: 1.5rem auto 0; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.45); font-size: .88rem; flex-wrap: wrap; gap: 1rem; }
.social { display: flex; gap: .75rem; }
.social a { width: 38px; height: 38px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; transition: all .25s; text-decoration: none; }
.social a:hover { background: var(--primary); transform: translateY(-3px); }

/* ---------- Cookie banner ---------- */
#cookieBanner { display:none; position:fixed; bottom:0; left:0; right:0; background:#0f172a; color:#e2e8f0; padding:1.1rem 1.5rem; box-shadow:0 -4px 20px rgba(0,0,0,.25); z-index:9999; }
#cookieBanner .inner { max-width:1100px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:1.5rem; flex-wrap:wrap; }
#cookieBanner a { color:var(--primary); text-decoration:underline; }
#cookieBanner .cbtns { display:flex; gap:.5rem; flex-wrap:wrap; }
#cookieBanner button { border:none; padding:.6rem 1.2rem; border-radius:8px; font-weight:600; cursor:pointer; font-family:inherit; }
#cookieReject { background:transparent; color:#cbd5e1; border:1px solid #475569; }
#cookieAccept { background:var(--primary); color:white; }

/* ---------- Reveal-on-scroll (fail-open: visible unless JS activates) ---------- */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(28px); transition: all .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Contact form ---------- */
.contact-grid { max-width: 1050px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.contact-card { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 2.25rem; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 1.1rem; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row label { display: block; font-weight: 600; color: var(--dark); font-size: .9rem; margin-bottom: .4rem; }
.form-row label .req { color: var(--primary-dark); }
.form-row input, .form-row textarea, .form-row select {
    width: 100%; padding: .8rem 1rem; border: 1px solid #cbd5e1; border-radius: 10px;
    font-family: inherit; font-size: 1rem; color: var(--dark); background: white; transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,168,79,.15);
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-row input.field-error, .form-row textarea.field-error { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: .85rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: .93rem; }
.form-status.ok { background: rgba(47,168,79,.12); color: var(--primary-dark); }
.form-status.err { background: rgba(220,38,38,.1); color: #b91c1c; }
.contact-side .cinfo { display: flex; gap: 14px; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.contact-side .cinfo:last-child { border-bottom: none; }
.contact-side .cinfo .ci-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(47,168,79,.12); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-side .cinfo h4 { font-size: 1rem; color: var(--dark); margin-bottom: .2rem; }
.contact-side .cinfo p, .contact-side .cinfo a { color: var(--gray); font-size: .93rem; text-decoration: none; }
.contact-side .cinfo a:hover { color: var(--primary-dark); }
.contact-side .side-cta { background: linear-gradient(135deg,var(--secondary),var(--navy-deep)); color: white; border-radius: 18px; padding: 1.75rem; margin-top: 1.5rem; }
.contact-side .side-cta h4 { color: white; font-size: 1.1rem; margin-bottom: .5rem; }
.contact-side .side-cta p { color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 1rem; }

/* ---------- Feature hub cards ---------- */
.hub-cards { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.hub-card { display: flex; flex-direction: column; background: var(--light); border: 2px solid transparent; border-radius: 20px; padding: 2rem; text-decoration: none; transition: all .3s ease; }
.hub-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); background: white; }
.hub-card .ic { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.15rem; background: rgba(47,168,79,.12); color: var(--primary); }
.hub-card h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: .5rem; }
.hub-card p { color: var(--gray); font-size: .93rem; line-height: 1.6; flex: 1; }
.hub-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem; color: var(--primary-dark); font-weight: 700; font-size: .9rem; transition: gap .2s; }
.hub-card:hover .go { gap: 11px; }

/* ---------- Feature detail pages ---------- */
.fd-hero { background: linear-gradient(135deg, var(--secondary), var(--navy-deep)); color: white; padding: 3rem 5% 4rem; }
.fd-crumb { max-width: var(--maxw); margin: 0 auto 1.5rem; font-size: .85rem; color: rgba(255,255,255,.55); }
.fd-crumb a { color: rgba(255,255,255,.8); text-decoration: none; } .fd-crumb a:hover { color: white; }
.fd-hero-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; }
.fd-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(47,168,79,.18); color: #7ee2a0; padding: 6px 14px; border-radius: 50px; font-size: .8rem; font-weight: 700; margin-bottom: 1.25rem; }
.fd-hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.12; margin-bottom: 1rem; }
.fd-hero > .fd-hero-inner p.sub { color: rgba(255,255,255,.78); font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.75rem; max-width: 520px; }

/* App preview mock (stands in for a screenshot) */
.app-shot { background: white; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.app-bar { background: #e8edf3; padding: 10px 14px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #d5dee8; }
.app-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.app-bar .dot.r{background:#f87171} .app-bar .dot.y{background:#fbbf24} .app-bar .dot.g{background:#34d399}
.app-bar .url { margin-left: 10px; background: white; border-radius: 6px; padding: 4px 12px; font-size: .72rem; color: var(--gray); flex: 1; max-width: 320px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-ui { display: grid; grid-template-columns: 148px 1fr; min-height: 320px; }
.app-side { background: var(--navy-deep); padding: 14px 10px; }
.app-side .al { display: flex; align-items: center; gap: 8px; color: white; font-weight: 800; font-size: .9rem; margin-bottom: 16px; padding: 0 6px; }
.app-side .al img { height: 22px; width: auto; }
.app-side a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: rgba(255,255,255,.6); font-size: .78rem; text-decoration: none; margin-bottom: 2px; }
.app-side a i { width: 16px; text-align: center; font-size: .82rem; }
.app-side a.on { background: rgba(47,168,79,.22); color: #7ee2a0; }
.app-main { padding: 16px; background: var(--light); }
.app-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.app-top h5 { font-size: 1rem; color: var(--dark); }
.app-top .pill { background: var(--primary); color: white; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 7px; }
.app-row { display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; margin-bottom: 8px; font-size: .78rem; }
.app-row .a { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .68rem; flex-shrink: 0; }
.app-row .a.b{background:linear-gradient(135deg,#3b82f6,#1d4ed8)} .app-row .a.o{background:linear-gradient(135deg,#f59e0b,#d97706)} .app-row .a.p{background:linear-gradient(135deg,#8b5cf6,#6d28d9)}
.app-row .t { color: var(--dark); font-weight: 600; } .app-row .s { color: var(--gray); }
.app-row .badge { margin-left: auto; font-size: .64rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.app-row .badge.ok{background:rgba(47,168,79,.12);color:var(--primary-dark)} .app-row .badge.info{background:rgba(59,130,246,.12);color:#2563eb} .app-row .badge.warn{background:rgba(245,158,11,.15);color:#b45309}
.app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.app-stat { background: white; border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; }
.app-stat .n { font-size: 1.15rem; font-weight: 800; color: var(--dark); } .app-stat .l { font-size: .66rem; color: var(--gray); }
.app-chart { display: flex; align-items: flex-end; gap: 7px; height: 92px; background: white; border: 1px solid var(--border); border-radius: 9px; padding: 12px; }
.app-chart span { flex: 1; background: linear-gradient(180deg, var(--primary), var(--primary-dark)); border-radius: 4px 4px 0 0; opacity: .85; }
.shot-note { text-align: center; color: var(--gray); font-size: .8rem; margin-top: .9rem; font-style: italic; }

/* Detail content blocks */
.fd-cap { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.fd-capcard { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; }
.fd-capcard i { color: var(--primary); font-size: 1.4rem; margin-bottom: .75rem; }
.fd-capcard h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: .4rem; }
.fd-capcard p { color: var(--gray); font-size: .92rem; line-height: 1.55; }
.fd-split { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.fd-split h2 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 1rem; }
.fd-list { list-style: none; } .fd-list li { display: flex; gap: 12px; padding: .55rem 0; color: var(--dark); line-height: 1.5; } .fd-list li i { color: var(--primary); margin-top: 4px; }
.fd-nav { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 1rem; flex-wrap: wrap; }
.fd-nav a { flex: 1; min-width: 240px; background: white; border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.4rem; text-decoration: none; transition: all .2s; }
.fd-nav a:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.fd-nav .lbl { font-size: .72rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.fd-nav .ttl { color: var(--dark); font-weight: 700; display: flex; align-items: center; gap: 8px; margin-top: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hub-cards, .fd-cap { grid-template-columns: repeat(2, 1fr); }
    .fd-hero-inner, .fd-split, .contact-grid { grid-template-columns: 1fr; }
    .form-row.two { grid-template-columns: 1fr; }
    .fd-hero h1 { font-size: 2rem; }
    .nav-links { display: none; }
    .nav-cta .btn-outline { display: none; }
    .mobile-menu-btn { display: block; }
    .section-head h2 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .hub-cards, .fd-cap, .app-cards { grid-template-columns: 1fr; }
    .app-ui { grid-template-columns: 1fr; } .app-side { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    .footer-brand img { margin: 0 auto 1rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .nav-cta .btn { padding: 10px 18px; font-size: .9rem; }
}
