/* ==========================================================================
   KwinTech.AI
   Brand navy comes from the existing KWIN | TECH logo; teal is the ".AI" accent.
   ========================================================================== */

:root {
    --navy: #1d3a56;
    --navy-900: #0d1f31;
    --navy-800: #13293f;
    --navy-700: #1d3a56;
    --navy-100: #e6edf4;
    --accent: #2dd4bf;
    --accent-600: #14b8a6;
    --accent-700: #0f8f82;
    --accent-ink: #042f2b;
    --ink: #0f1c2b;
    --body: #3b4a5c;
    --muted: #5f6f82;
    --line: #dde4ec;
    --tint: #f4f7fa;
    --white: #fff;
    --danger: #c0392b;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(13, 31, 49, .06), 0 2px 8px rgba(13, 31, 49, .05);
    --shadow: 0 10px 30px rgba(13, 31, 49, .10);
    --shadow-lg: 0 24px 60px rgba(4, 16, 28, .35);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Plus Jakarta Sans", var(--font);
    --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
img, svg { display: block; max-width: 100%; }
.icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }
h1:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.text-accent { color: var(--accent); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: stretch; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; line-height: 1; letter-spacing: .02em; }
.logo__kwin { background: var(--navy); color: var(--white); padding: 7px 9px 6px; font-style: italic; }
.logo__tech { color: var(--navy); border: 2px solid var(--navy); border-left: 0; padding: 5px 8px 4px; }
.logo__ai { color: var(--accent-700); padding: 7px 0 6px 4px; }
.logo--inverse .logo__kwin { background: var(--white); color: var(--navy); }
.logo--inverse .logo__tech { color: var(--white); border-color: var(--white); }
.logo--inverse .logo__ai { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 600 1rem/1 var(--font); padding: 13px 20px; border-radius: 999px;
    border: 2px solid transparent; text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 10px 16px; font-size: .95rem; }
.btn--lg { padding: 16px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px rgba(45, 212, 191, .28); }
.btn--primary:hover { background: #5eead4; color: var(--accent-ink); }
.btn--ghost-light { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--ghost-light:hover { color: var(--white); border-color: var(--white); background: rgba(255, 255, 255, .06); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header__brand { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 8px 12px; border-radius: 8px; }
.site-nav a:not(.btn):hover { background: var(--tint); color: var(--navy); }
.site-nav a.active:not(.btn) { color: var(--accent-700); }
.site-nav__cta { margin-left: 10px; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle__btn { display: none; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle__btn span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle:focus-visible + .nav-toggle__btn { outline: 3px solid var(--accent); }

@media (max-width: 900px) {
    .nav-toggle__btn { display: flex; }
    .site-nav {
        position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 2px;
        box-shadow: var(--shadow); display: none;
    }
    .site-nav a:not(.btn) { padding: 12px; }
    .site-nav__cta { margin: 10px 0 0; }
    .nav-toggle:checked ~ .site-nav { display: flex; }
    .nav-toggle:checked + .nav-toggle__btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked + .nav-toggle__btn span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked + .nav-toggle__btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Eyebrows / section heads ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 12px; }
.eyebrow--light { color: var(--accent); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head--light h2 { color: var(--white); }
.lead { font-size: 1.2rem; line-height: 1.6; }

/* ---------- Hero ---------- */
.hero, .page-hero, .section--dark, .cta-band {
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(45, 212, 191, .18), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(59, 130, 246, .16), transparent 60%),
        linear-gradient(160deg, var(--navy-900), var(--navy-700));
    color: #c9d6e3;
}
.hero { padding: 88px 0 96px; overflow: hidden; }
.hero h1, .page-hero h1 { color: var(--white); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero .lead { color: #c9d6e3; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero__actions--center { justify-content: center; }
.hero__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .95rem; }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points .icon { color: var(--accent); }

/* Animated workflow card */
.flow-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 18px 20px 22px; box-shadow: var(--shadow-lg); backdrop-filter: blur(6px); }
.flow-card__head { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.flow-card__head .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.flow-card__title { margin-left: 8px; font-size: .85rem; font-weight: 600; color: #e5edf5; }
.flow { list-style: none; margin: 0; padding: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 21px; top: 26px; bottom: 26px; width: 2px; background: linear-gradient(var(--accent), rgba(45, 212, 191, .1)); }
.flow__step {
    position: relative; display: flex; gap: 14px; align-items: center; padding: 10px 0;
    opacity: 0; transform: translateY(8px);
    animation: flow-in .5s ease forwards; animation-delay: calc(var(--i) * .45s + .2s);
}
.flow__step strong { display: block; color: var(--white); font-weight: 600; font-size: .98rem; }
.flow__step div span { font-size: .88rem; color: #9fb2c6; }
.flow__icon { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-800); border: 1px solid rgba(255, 255, 255, .14); color: #cfe0ef; }
.flow__icon--ai { background: rgba(45, 212, 191, .16); border-color: rgba(45, 212, 191, .5); color: var(--accent); box-shadow: 0 0 0 0 rgba(45, 212, 191, .5); animation: pulse 2.4s ease-out infinite 1.2s; }
.flow__icon--done { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@keyframes flow-in { to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, .45); } 70% { box-shadow: 0 0 0 14px rgba(45, 212, 191, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); } }
@media (prefers-reduced-motion: reduce) {
    .flow__step { animation: none; opacity: 1; transform: none; }
    .flow__icon--ai { animation: none; }
    html { scroll-behavior: auto; }
}

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 64px; }
.page-hero .lead { color: #c9d6e3; max-width: 720px; margin: 0; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 820px; }
.page-hero--center { text-align: center; padding: 120px 0; }
.page-hero--center h1, .page-hero--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Tools strip ---------- */
.tools-strip { border-bottom: 1px solid var(--line); padding: 28px 0; background: var(--white); }
.tools-strip p { text-align: center; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.tools-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tools-strip li { font-weight: 600; font-size: .9rem; color: var(--navy); background: var(--tint); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { color: #c9d6e3; }
.section--dark h3 { color: var(--white); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.pain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pain-list li { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm); }
.pain-list .icon { color: var(--accent-700); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; text-decoration: none; color: var(--body); box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(20, 184, 166, .45); color: var(--body); }
.card h3 { margin-top: 18px; }
.card p { margin: 0; font-size: .98rem; }
.card__icon { width: 48px; height: 48px; border-radius: 12px; display: inline-grid; place-items: center; background: rgba(45, 212, 191, .14); color: var(--accent-700); flex-shrink: 0; }
.card__icon--lg { width: 60px; height: 60px; border-radius: 16px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: none; }
.steps li { position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 60px; right: -14px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps__num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 1.1rem var(--font-head); background: var(--navy); color: var(--white); margin-bottom: 18px; flex-shrink: 0; }
.steps p { font-size: .98rem; margin: 0; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 28px; }
.feature > .icon { color: var(--accent); width: 30px; height: 30px; margin-bottom: 16px; }
.feature p { margin: 0; font-size: .96rem; }
.feature-grid--light .feature { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-sm); }
.feature-grid--light .feature > .icon { color: var(--accent-700); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent-700); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; }

/* CTA band */
.cta-band { padding: 72px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: var(--white); margin-bottom: .4em; }
.cta-band p { margin: 0; max-width: 580px; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* ---------- Services page ---------- */
.chip-nav { position: sticky; top: 72px; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.chip-nav .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.chip-nav .container::-webkit-scrollbar { display: none; }
.chip-nav a { white-space: nowrap; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--navy); background: var(--tint); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.chip-nav a:hover { border-color: var(--accent-600); color: var(--accent-700); }

.service-list { display: grid; gap: 28px; }
.service { border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow-sm); scroll-margin-top: 150px; }
.service__head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.service__head h2 { font-size: 1.6rem; margin-bottom: .25em; }
.service__head p { margin: 0; }
.service__body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
.service__body h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.service__good-for { background: var(--tint); border-radius: var(--radius-sm); padding: 22px; }
.service__good-for p { margin: 0; color: var(--ink); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--accent-600); margin-top: 4px; }

/* ---------- How we work ---------- */
.timeline { display: grid; gap: 8px; }
.timeline__item { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline__item:last-child { border-bottom: 0; }
.timeline__item h2 { font-size: 1.4rem; }
.timeline__item p { margin: 0; }

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card--static h3 { margin-top: 18px; }

/* ---------- Careers / notices ---------- */
.notice { display: flex; gap: 16px; align-items: flex-start; margin-top: 36px; background: var(--tint); border: 1px solid var(--line); border-left: 4px solid var(--accent-600); border-radius: var(--radius-sm); padding: 22px; }
.notice > .icon { color: var(--accent-700); margin-top: 3px; }
.notice p { margin: 0; }

/* ---------- Prose (privacy) ---------- */
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--accent-700); }
.field input, .field select, .field textarea {
    font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-600); box-shadow: 0 0 0 4px rgba(45, 212, 191, .18); }
.field .invalid { border-color: var(--danger); }
.validation-message { color: var(--danger); font-size: .88rem; margin-top: 6px; }
.form-error { background: #fdecea; color: #8a1f14; border-radius: var(--radius-sm); padding: 14px 16px; }
.form-note { font-size: .85rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success { text-align: center; padding: 24px 0; }
.success__icon { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); margin-bottom: 18px; }

.contact-info h2 { font-size: 1.5rem; }
.contact-info ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info li strong { display: block; color: var(--ink); }
.contact-info li a { font-weight: 500; }
.contact-info__next { background: var(--tint); border-radius: var(--radius); padding: 24px; }
.contact-info__next ol { margin: 0; padding-left: 1.2em; }
.contact-info__next li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb2c6; padding: 64px 0 0; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.site-footer__about p { margin-top: 18px; max-width: 320px; }
.site-footer h3 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #c9d6e3; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { color: var(--accent); margin-top: 3px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: .85rem; }

/* ---------- Blazor error UI ---------- */
#blazor-error-ui { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps li::after { display: none; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .hero { padding: 56px 0 64px; }
    .hero__grid, .split, .contact-grid, .service__body { grid-template-columns: 1fr; gap: 40px; }
    .card-grid, .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
    .section { padding: 72px 0; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .container { padding: 0 16px; }
    .card-grid, .card-grid--3, .feature-grid, .steps, .form-row, .site-footer__grid { grid-template-columns: 1fr; }
    .form-row { gap: 0; }
    .form-card, .service { padding: 24px 20px; }
    .service__head { flex-direction: column; gap: 14px; }
    .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
    .timeline__item { gap: 16px; }
    .section { padding: 56px 0; }
    .page-hero { padding: 52px 0 44px; }
}

/* ---------- Clients & testimonials ---------- */
.client-logos { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.client-logos a { font: 800 1.35rem var(--font-head); color: var(--navy); text-decoration: none; opacity: .75; letter-spacing: -.01em; transition: opacity .15s, color .15s; }
.client-logos a:hover { opacity: 1; color: var(--accent-700); }

.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testimonial-grid--home { grid-template-columns: repeat(3, 1fr); margin-bottom: 36px; }
.testimonial { position: relative; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.testimonial__mark { color: var(--accent-600); margin-bottom: 12px; }
.testimonial blockquote { margin: 0 0 20px; color: var(--ink); font-size: 1.05rem; line-height: 1.6; flex: 1; }
.testimonial figcaption strong { display: block; color: var(--ink); }
.testimonial figcaption span { font-size: .9rem; color: var(--muted); }
.testimonial--dark { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.testimonial--dark blockquote, .testimonial--dark figcaption strong { color: var(--white); }
.testimonial--dark figcaption span { color: #9fb2c6; }
.testimonial--dark .testimonial__mark { color: var(--accent); }
.draft-badge { position: absolute; top: 12px; right: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #fff4d6; color: #7a5200; border: 1px dashed #d9a400; padding: 3px 8px; border-radius: 6px; }

.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; text-decoration: none; color: var(--body); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(20, 184, 166, .45); color: var(--body); }
.case-card__top { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.case-card__client { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.1rem; }
.case-card__sector { font-size: .88rem; color: var(--muted); }
.case-card h2 { font-size: 1.35rem; }
.case-card p { flex: 1; }
.case-card .link-arrow { color: var(--accent-700); margin-top: 8px; }

.tag-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { font-size: .78rem; font-weight: 600; color: var(--navy); background: var(--navy-100); padding: 4px 10px; border-radius: 999px; }

.case-detail { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.case-detail__main h2 { font-size: 1.5rem; margin-top: 1.6em; }
.case-detail__main h2:first-child { margin-top: 0; }
.case-detail__main .check-list { margin-bottom: 8px; }
.case-detail__quote { margin-top: 40px; }
.case-detail__side { position: sticky; top: 100px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.case-detail__side dl { margin: 0 0 20px; }
.case-detail__side dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-top: 14px; }
.case-detail__side dt:first-child { margin-top: 0; }
.case-detail__side dd { margin: 4px 0 0; color: var(--ink); font-weight: 500; }
.case-detail__side .tag-list { margin: 6px 0 0; }
.link-arrow--light { color: var(--accent); }

@media (max-width: 900px) {
    .testimonial-grid, .testimonial-grid--home, .case-grid, .case-detail { grid-template-columns: 1fr; }
    .case-detail { gap: 32px; }
    .case-detail__side { position: static; }
}
