/* Software Devils - plain CSS, no build step required. */
:root {
    --red: #d20000;
    --red-dark: #a80000;
    --ink: #000100;
    --cream: #e8e3d0;
    --paper: #fbf9f3;
    --muted: #4a4a44;
    --radius: 14px;
    --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Ubuntu', system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }
.site-header, .site-footer { flex-shrink: 0; }

img { max-width: 100%; height: auto; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

/* Header */
.site-header { background: #fff; border-bottom: 4px solid var(--red); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 3.5rem; width: auto; }
@media (min-width: 52rem) { .header-row { padding-block: 1.1rem; } .brand img { height: 4.5rem; } }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a:not(.btn) {
    color: var(--ink); text-decoration: none; font-weight: 500; padding: .5rem .9rem; border-radius: 999px;
}
.site-nav a:not(.btn):hover { background: var(--cream); }
.site-nav a.active:not(.btn) { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav-toggle, .nav-burger { display: none; }

/* Buttons */
.btn {
    display: inline-block; background: var(--red); color: #fff; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer;
    padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid var(--red); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-small { padding: .45rem 1.1rem; margin-left: .5rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--red-dark); border-color: #fff; }
.btn-light:hover { background: var(--cream); border-color: var(--cream); color: var(--red-dark); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Hero */
.hero { background: var(--cream); padding: 4rem 0 5rem; position: relative; overflow: hidden; }
.hero::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
    border-radius: 50%; background: var(--red); opacity: .08;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero-page { padding: 3rem 0 4rem; }
.hero .container { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .85rem; color: var(--red-dark); margin-bottom: .75rem; }
.accent { color: var(--red); }
.lead { font-size: 1.25rem; max-width: 40rem; color: var(--muted); }

/* Photos */
.photo { margin: 0; position: relative; padding: 0 18px 18px 0; } /* room for the offset block, so it stays inside the column */
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); position: relative; z-index: 1; }
.photo::before {
    content: ""; position: absolute; inset: 18px 0 0 18px; border-radius: var(--radius);
    background: var(--red); z-index: 0;
}
.photo-hero img { aspect-ratio: 4 / 3; object-fit: cover; }
.badge {
    position: absolute; left: 1rem; bottom: 2.5rem; z-index: 2; background: var(--ink); color: #fff;
    padding: .7rem 1.1rem; border-radius: 10px; font-weight: 700; font-size: .95rem; max-width: 16rem; line-height: 1.3;
    border-left: 5px solid var(--red); box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
}

/* The agile cycle */
.cycle-band { background: var(--ink); color: #fff; padding: 2rem 0; }
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.cycle li { position: relative; padding-top: 3.2rem; }
.cycle li::before { /* connecting line */
    content: ""; position: absolute; top: 1.1rem; left: 2.4rem; right: -1rem; height: 3px; background: rgba(255,255,255,.25);
}
.cycle li:last-child::before { display: none; }
.cycle b {
    position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 2.3rem; height: 2.3rem;
    background: var(--red); color: #fff; border-radius: 50%; font-size: 1rem; z-index: 1;
}
.cycle span { display: block; font-weight: 700; font-size: 1.2rem; }
.cycle small { display: block; color: #cfcfc6; font-size: .9rem; line-height: 1.35; }
.cycle li.repeat b { background: #fff; color: var(--red); }
.section .cycle { background: var(--ink); color: #fff; padding: 1.75rem; border-radius: var(--radius); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: #fff; border-top: 1px solid #e6e1d0; border-bottom: 1px solid #e6e1d0; }
.section-title { position: relative; padding-bottom: .5rem; margin-bottom: 1.2rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--red); border-radius: 2px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.more { margin-top: 1.5rem; font-weight: 500; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #e6e1d0; border-bottom: 5px solid var(--red); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(0,0,0,.4); }
.card img { display: block; width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 1.4rem 1.6rem 1.6rem; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); }

.ticks-large li { font-size: 1.15rem; padding-top: .7rem; padding-bottom: .7rem; }
.ticks-large li::before { top: 1.1rem; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.feature-flip .photo { order: 2; }
.feature h3 { margin-top: 1.4rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .45rem 0 .45rem 2rem; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .85rem; width: 1.1rem; height: .6rem;
    border-left: 4px solid var(--red); border-bottom: 4px solid var(--red); transform: rotate(-45deg) scale(.8);
}

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: s; background: #fff; border: 1px solid #e6e1d0; border-radius: var(--radius); padding: 1.5rem; position: relative; }
.steps li::before {
    content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: .8rem;
    background: var(--red); color: #fff; font-weight: 700; border-radius: 50%;
}
.steps p { margin: 0; color: var(--muted); }
.steps-compact { grid-template-columns: 1fr; gap: .75rem; }
.steps-compact li { padding: 1rem 1.25rem 1rem 4rem; }
.steps-compact li::before { position: absolute; left: 1rem; top: .85rem; margin: 0; }

.case-band {
    position: relative; color: #fff; padding: 5rem 0; text-align: left;
    background: linear-gradient(90deg, rgba(0,1,0,.92) 30%, rgba(0,1,0,.55)), url("../images/photos/laptop-dark.jpg") center / cover;
    border-top: 6px solid var(--red);
}
.case-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); max-width: 36rem; }
.case-band p { max-width: 38rem; color: #e4e4dc; }
.eyebrow-light { color: #ff6b6b; }

.contact { margin: 0; }
.contact dt { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--muted); margin-top: 1rem; }
.contact dd { margin: 0; font-size: 1.5rem; font-weight: 500; }

.cta { background: var(--red); color: #fff; text-align: center; padding: 3.5rem 0; }
.cta h2 { font-size: 2rem; }
.cta p { max-width: 36rem; margin: 0 auto 1.5rem; }

/* Footer: light surface so the logo (black wordmark) stays legible */
.site-footer { background: var(--cream); border-top: 4px solid var(--ink); padding-top: 3rem; font-size: .975rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1.4fr; gap: 2rem; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--red); }
.small { font-size: .9rem; color: var(--muted); }
.legal { margin-top: 2rem; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(0,0,0,.15); font-size: .8rem; color: var(--muted); text-align: center; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; margin: 0 0 .75rem; font-size: .9rem; }
.footer-links a { color: var(--ink); }

.prose > * { max-width: 48rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
#cookie-declaration { max-width: 100%; overflow-x: auto; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid #cfc9b3;
    border-radius: 10px; padding: .7rem .9rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { border-color: var(--red); outline: 3px solid rgba(210,0,0,.25); outline-offset: 1px; }
.field input.invalid, .field textarea.invalid { border-color: #b00020; }
.validation-message { color: #b00020; font-size: .9rem; margin-top: .3rem; font-weight: 500; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 1rem; }
.alert { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.25rem; font-weight: 500; }
.alert-ok { background: #e3f4e1; color: #1d5a17; }
.alert-error { background: #fde3e8; color: #8c0a24; }
.aside-card { background: #fff; border: 1px solid #e6e1d0; border-top: 5px solid var(--red); border-radius: var(--radius); padding: 1.6rem; }
.aside-card .h3 { font-size: 1.2rem; }
.aside-card > p:last-child { margin: 1.25rem 0 0; }

/* Responsive */
@media (max-width: 860px) {
    .hero-grid, .split, .feature, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .feature-flip .photo { order: 0; }
    .cards, .steps { grid-template-columns: 1fr; }
    .cycle { grid-template-columns: 1fr; gap: 1.1rem; }
    .cycle li { padding: .1rem 0 .1rem 3.3rem; }
    .cycle li::before { top: 2.5rem; bottom: -1.3rem; left: 1.1rem; right: auto; width: 3px; height: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero { padding: 2.5rem 0; }
    .section { padding: 2.75rem 0; }

    .nav-burger {
        display: block; width: 44px; height: 44px; cursor: pointer; position: relative; border-radius: 8px; margin-left: auto;
    }
    .nav-burger span, .nav-burger span::before, .nav-burger span::after {
        content: ""; position: absolute; left: 10px; width: 24px; height: 3px; background: var(--ink); border-radius: 2px;
    }
    .nav-burger span { top: 20px; }
    .nav-burger span::before { left: 0; top: -8px; }
    .nav-burger span::after { left: 0; top: 8px; }
    .nav-toggle { display: block; position: absolute; opacity: 0; width: 44px; height: 44px; right: 1.25rem; }
    .nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--red); }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column;
        align-items: stretch; padding: .75rem 1.25rem 1.25rem; border-bottom: 4px solid var(--red); gap: .25rem;
    }
    .nav-toggle:checked ~ .site-nav { display: flex; }
    .site-nav a:not(.btn) { padding: .75rem 0; border-radius: 0; }
    .btn-small { margin: .5rem 0 0; text-align: center; padding: .8rem 1.5rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
