/* =========================================================
   Akida Solutions — site styles
   Plain CSS, no build step (works on any PHP host).
   Change the brand here: every colour comes from these tokens.
   ========================================================= */

:root {
    --bg: #F7F5F0;
    --bg-soft: #ECEAE3;
    --ink: #1F211E;
    --ink-2: #2C2E2A;
    --ink-3: #3A3C37;
    --muted: #64655F;
    --muted-light: #A9AAA3;
    --line: #DDDAD2;
    --line-dark: #3A3C37;
    --accent: #F25A38;
    --accent-hover: #E04A29;
    --white: #FFFFFF;

    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
    --section: clamp(72px, 9vw, 112px);
    --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

section[id] { scroll-margin-top: 88px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute; left: -9999px; top: 8px;
    background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Type ---------- */

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow-sm { font-size: 10px; }
.eyebrow-ink { color: var(--ink); }

.display {
    font-size: clamp(40px, 4.6vw, 64px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.045em;
}
.display-md { font-size: clamp(44px, 6vw, 72px); }

.h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.h3 {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 470px; }
.muted { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.small { font-size: 13px; }

/* ---------- Icons, links, buttons ---------- */

.icon { width: 16px; height: 16px; flex: none; }

.text-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 15px; font-weight: 500;
    transition: opacity .2s;
}
.text-link .icon { width: 14px; height: 14px; }
.text-link:hover { opacity: .7; }
.text-link-light { color: var(--white); }

.btn {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 36px;
    min-height: 48px; padding: 0 20px;
    border: 0; border-radius: 4px;
    font: inherit; font-size: 15px; font-weight: 500;
    cursor: pointer;
    transition: background-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn .icon { transition: transform .2s; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 245, 240, .92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    height: 88px;
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: flex-start; gap: 28px; }
.brand-word { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.brand-sub {
    font-size: 9.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
    padding-top: 4px;
}
.main-nav { display: flex; gap: 56px; margin-left: auto; margin-right: 56px; font-size: 14.5px; font-weight: 500; }
.main-nav a { transition: opacity .2s; }
.main-nav a:hover { opacity: .6; }
.btn-header { min-width: 190px; }

/* ---------- Hero ---------- */

.hero { padding-top: 48px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 48px;
    align-items: start;
}
.hero-copy .eyebrow { margin-bottom: 52px; }
.accent-bar { display: block; width: 220px; height: 4px; background: var(--accent); margin: 26px 0 40px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: 40px 0 46px; }
.hero-actions .btn { min-width: 220px; }

/* Mock app panel */
.hero-visual { padding-top: 20px; }
.visual-frame {
    position: relative;
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 20px 16px 52px 0;
}
.visual-frame > .eyebrow { padding-left: 20px; margin-bottom: 14px; color: var(--muted); }

.app-window {
    margin-left: -38px;
    background: var(--ink);
    color: var(--white);
    border-radius: 6px;
    box-shadow: 0 24px 48px -24px rgba(31, 33, 30, .45);
    overflow: hidden;
}
.app-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 18px;
    font-size: 11px; font-weight: 500;
    border-bottom: 1px solid var(--line-dark);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--muted-light); }
.app-body { padding: 14px 18px 22px; }
.app-tabs { display: flex; gap: 14px; font-size: 10.5px; color: var(--muted-light); }
.app-title { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; margin: 12px 0 16px; }

.app-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat { background: var(--ink-2); border-radius: 4px; padding: 10px 11px; min-height: 58px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-label { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light); }
.stat-label-lg { font-size: 10.5px; letter-spacing: 0; text-transform: none; color: var(--white); }
.stat-value { font-size: 15px; font-weight: 500; }
.progress { display: block; height: 3px; border-radius: 3px; background: var(--ink-3); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

.lead-rows li {
    display: grid; grid-template-columns: 1.1fr 0.8fr 0.6fr; align-items: center; gap: 8px;
    padding: 9px 0;
    font-size: 11px;
    border-top: 1px solid var(--line-dark);
}
.lead-rows li:first-child { border-top: 0; }
.tag { justify-self: start; background: var(--ink-3); color: var(--muted-light); font-size: 9px; padding: 4px 8px; border-radius: 3px; min-width: 72px; }
.status { font-size: 9.5px; color: var(--muted-light); padding-left: 24px; }
.status-new { color: var(--accent); }

.toast {
    position: absolute; right: 22px; bottom: -14px;
    width: min(62%, 270px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: 0 18px 36px -18px rgba(31, 33, 30, .3);
}
.toast-label { display: flex; align-items: center; gap: 8px; font-size: 8.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toast-text { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; margin-top: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.strip {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin-top: 64px; padding: 26px 0 0;
    border-top: 1px solid var(--line);
    font-size: 13.5px; color: var(--muted);
}
.strip span { margin-right: 4px; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-ruled > .container { border-top: 1px solid var(--line); padding-top: var(--section); }
.section-ruled { padding-top: 0; }

.split {
    display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
    margin-bottom: clamp(48px, 7vw, 84px);
}
.split .eyebrow { padding-top: 14px; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cols-3-tight { margin-top: 36px; }
.col { border-top: 1px solid var(--line); padding-top: 26px; }
.col .h3 { margin-bottom: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; counter-reset: none; }
.step { border-top: 1px solid var(--line); padding-top: 18px; }
.step-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; color: var(--muted); }
.step-head .icon { width: 18px; height: 18px; }
.num { font-size: 11px; font-weight: 500; letter-spacing: .1em; }
.step .h3 { margin-bottom: 18px; font-size: 24px; }

/* ---------- Dark services ---------- */

.section-dark { background: var(--ink); color: var(--white); }
.section-dark .eyebrow { color: var(--muted-light); }
.services-head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
    margin: 36px 0 44px;
}
.services-intro { color: var(--muted-light); font-size: 15.5px; line-height: 1.6; margin-right: 8%; }

.card {
    display: flex; flex-direction: column;
    background: var(--ink-2);
    border-radius: var(--radius);
    padding: 26px 26px 22px;
    transition: background-color .25s;
}
.card:hover { background: #33352F; }
.card:hover .card-arrow { transform: translate(3px, -3px); }
.card p { color: var(--muted-light); font-size: 14px; line-height: 1.65; }
.card-num { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: var(--muted-light); }
.card-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 30px; }
.card .card-tags {
    margin-top: auto; padding-top: 28px;
    font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #CFCFC8;
}
.card-arrow { width: 20px; height: 20px; color: var(--white); transition: transform .25s; }

.card-featured {
    flex-direction: row; align-items: flex-start; gap: 54px;
    padding: 30px 34px 26px 26px; margin-bottom: 26px;
}
.card-featured .card-body { flex: 1; }
.card-featured .card-title { font-size: 30px; margin: 0 0 18px; }
.card-featured p:not(.card-tags) { font-size: 15.5px; }
.card-featured .card-tags { padding-top: 24px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cards-2 .card { min-height: 250px; padding: 28px 30px 24px; }
.cards-2 .card-title { font-size: 26px; margin-bottom: 16px; }
.cards-2 .card p:not(.card-tags) { font-size: 15px; max-width: 460px; }
.cards-3 .card { min-height: 230px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }

.services-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    margin-top: 36px; color: var(--muted-light);
}
.services-foot .text-link { margin-right: 6%; }

/* ---------- Audit / contact ---------- */

.section-accent { background: var(--accent); color: var(--ink); }
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.audit-grid .eyebrow { margin-bottom: 44px; }
.audit-sub { font-size: 18px; margin-top: 40px; }

.form-title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { margin-bottom: 30px; }
.field label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.field input {
    width: 100%;
    background: transparent;
    border: 0; border-bottom: 1px solid rgba(31, 33, 30, .45);
    border-radius: 0;
    padding: 12px 0 14px;
    font: inherit; font-size: 15px; color: var(--ink);
    transition: border-color .2s;
}
.field input::placeholder { color: rgba(31, 33, 30, .6); font-size: 12.5px; }
.field input:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field-error { font-size: 12.5px; font-weight: 500; margin-top: 8px; color: #2B0A02; }
.field-error::before { content: "↳ "; }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-actions .btn { min-width: 190px; }
.form-note { font-size: 11.5px; }

.form-alert { border-radius: 4px; padding: 14px 16px; font-size: 14px; margin-bottom: 24px; }
.form-alert-success { background: var(--ink); color: var(--white); }
.form-alert-success strong { display: block; font-weight: 500; margin-bottom: 2px; }
.form-alert-error { background: rgba(31, 33, 30, .12); border: 1px solid rgba(31, 33, 30, .35); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer { padding: 40px 0 28px; }
.footer-top {
    display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px;
    padding-bottom: 32px; border-bottom: 1px solid var(--line);
}
.footer-tagline { font-size: 14px; color: var(--muted); }
.back-top { font-size: 13.5px; margin-right: 32px; }
.footer-bottom {
    display: flex; justify-content: space-between;
    padding-top: 20px; font-size: 12px; color: var(--muted);
}
.footer-bottom a { margin-right: 60px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .main-nav { gap: 32px; margin-right: 32px; }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}

@media (max-width: 900px) {
    .main-nav { display: none; }
    .hero-grid, .audit-grid { grid-template-columns: 1fr; }
    .hero-visual { padding: 12px 0 0 38px; }
    .split { grid-template-columns: 1fr; gap: 16px; }
    .split .eyebrow { padding-top: 0; }
    .services-head { flex-direction: column; align-items: flex-start; }
    .cards-3, .cards-2 { grid-template-columns: 1fr; }
    .cards-3 .card, .cards-2 .card { min-height: 0; }
    .card-featured { gap: 20px; }
    .footer-top { grid-template-columns: 1fr auto; }
    .footer-tagline { display: none; }
}

@media (max-width: 640px) {
    .header-inner { height: 72px; }
    .brand { gap: 14px; }
    .brand-word { font-size: 26px; }
    .btn-header { min-width: 0; gap: 14px; padding: 0 14px; min-height: 42px; font-size: 14px; }
    .hero-copy .eyebrow { margin-bottom: 28px; }
    .hero-actions .btn { width: 100%; }
    .strip, .cols-3, .steps { grid-template-columns: 1fr; }
    .strip { gap: 10px; }
    .cols-3 { row-gap: 40px; }
    .card-featured { flex-direction: column; position: relative; }
    .card-featured .card-arrow { position: absolute; top: 26px; right: 26px; }
    .card-featured .card-title { font-size: 24px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .services-foot { flex-direction: column; align-items: flex-start; }
    .back-top, .footer-bottom a, .services-foot .text-link { margin-right: 0; }
    .lead-rows li { font-size: 10px; }
    .toast { width: min(78%, 270px); }
    .status { padding-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
