/* Dyenzo marketing site (central domain). Plain CSS, no build, like public/storefront.
   Four inks (CMYK) on paper: cyan, magenta, yellow (always with dark text) and key. Light and dark through prefers-color-scheme. */
:root {
    --c: #0A7EA4;
    --m: #C8157A;
    --y: #F5C518;
    --k: #15161C;
    --c-text: #08698A;
    --m-text: #B0126B;
    --y-text: #7A5F00;
    --k-text: #15161C;
    --c-soft: #E3F2F7;
    --m-soft: #FAE6F0;
    --y-soft: #FDF5D6;
    --k-soft: #ECECEA;

    --bg: #FAFAF7;
    --surface: #FFFFFF;
    --surface-2: #F2F1EC;
    --text: #15161C;
    --muted: #55575F;
    --line: #E3E2DB;
    --paper: #FAFAF7;

    --accent: var(--c);
    --accent-soft: var(--c-soft);
    --accent-text: var(--c-text);
    --accent-ink: #FFFFFF;

    --cta: #15161C;
    --cta-ink: #FFFFFF;

    --radius: 18px;
    --radius-sm: 10px;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --c: #2BB3E0;
        --m: #E63D9A;
        --k: #FFFFFF;
        --c-text: #5CC6EA;
        --m-text: #F06BB3;
        --y-text: #F5C518;
        --k-text: #FFFFFF;
        --c-soft: #10313D;
        --m-soft: #3A1429;
        --y-soft: #3A3115;
        --k-soft: #2A2C35;

        --bg: #15161C;
        --surface: #1D1F27;
        --surface-2: #23252E;
        --text: #F4F4F1;
        --muted: #A9ABB4;
        --line: #33363F;

        --accent-ink: #15161C;
        --cta: #F5C518;
        --cta-ink: #15161C;
    }
}
/* One ink per module or picture: .ink-c, .ink-m, .ink-y, .ink-k set the accent for everything inside. */
.ink-c { --accent: var(--c); --accent-soft: var(--c-soft); --accent-text: var(--c-text); }
.ink-m { --accent: var(--m); --accent-soft: var(--m-soft); --accent-text: var(--m-text); }
.ink-y { --accent: var(--y); --accent-soft: var(--y-soft); --accent-text: var(--y-text); --accent-ink: #15161C; }
.ink-k { --accent: var(--k); --accent-soft: var(--k-soft); --accent-text: var(--k-text); }
@media (prefers-color-scheme: light) { .ink-c, .ink-m, .ink-k { --accent-ink: #FFFFFF; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
    font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: var(--surface); padding: 8px 12px; }
/* A word under a yellow marker, as if overprinted. */
.mark { background: linear-gradient(transparent 58%, var(--y) 58%, var(--y) 90%, transparent 90%); padding: 0 .06em; }
@media (prefers-color-scheme: dark) { .mark { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--y) 70%, transparent) 58%, color-mix(in srgb, var(--y) 70%, transparent) 90%, transparent 90%); } }

/* The four ink dots, 2 x 2, as in the logo. */
.dots { display: inline-grid; grid-template-columns: repeat(2, var(--d, 10px)); gap: calc(var(--d, 10px) * .3); vertical-align: middle; }
.dots i { width: var(--d, 10px); height: var(--d, 10px); border-radius: 50%; background: var(--c); }
.dots i:nth-child(2) { background: var(--m); }
.dots i:nth-child(3) { background: var(--y); }
.dots i:nth-child(4) { background: var(--k); }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--accent); vertical-align: .02em; }

/* A printer's colour bar: the inks, their tints and overprints. */
.strip { display: flex; height: 6px; }
.strip i { flex: 1; }
.strip i:nth-child(1) { background: #0A7EA4; }
.strip i:nth-child(2) { background: #C8157A; }
.strip i:nth-child(3) { background: #F5C518; }
.strip i:nth-child(4) { background: #15161C; }
.strip i:nth-child(5) { background: #6FB5CC; }
.strip i:nth-child(6) { background: #DE73AF; }
.strip i:nth-child(7) { background: #F9DC74; }
.strip i:nth-child(8) { background: #7D7E82; }
.strip i:nth-child(9) { background: #2B3A8C; }
.strip i:nth-child(10) { background: #C8302E; }
.strip i:nth-child(11) { background: #2E8B4A; }
.strip i:nth-child(12) { background: #15161C; }
@media (prefers-color-scheme: dark) { .strip i:nth-child(4), .strip i:nth-child(12) { background: #F4F4F1; } }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(160%) blur(10px); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.top .strip { height: 4px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 36px; width: auto; margin-left: -4px; }
.nav { display: none; gap: 24px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .96rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--m); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1.5px solid var(--text); border-radius: 999px; font-size: .95rem; font-weight: 600; min-height: 42px; display: flex; align-items: center; gap: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); background: var(--surface); border: 1.5px solid var(--text); border-radius: var(--radius); padding: 8px; width: min(300px, calc(100vw - 32px)); display: grid; box-shadow: 6px 6px 0 var(--m); }
.menu nav a { padding: 11px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.menu nav a:hover { background: var(--surface-2); }
.menu nav a.cta, .menu nav a.cta:hover { color: var(--cta-ink); background: var(--cta); margin-top: 6px; border-radius: 999px; box-shadow: none; }
@media (min-width: 980px) { .nav { display: flex; } .menu { display: none; } }

/* Buttons. On hover the CTA slips out of register: a cyan and a magenta edge, like a misaligned plate. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px); }
.cta { background: var(--cta); color: var(--cta-ink); }
.cta:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--m), -3px -3px 0 var(--c); }
.btn-quiet { color: var(--text); border-color: var(--text); background: transparent; }
.btn-quiet:hover { background: var(--surface); box-shadow: 3px 3px 0 var(--y); }
.nav .cta, .nav .cta:hover { min-height: 42px; padding: 0 18px; font-size: .94rem; color: var(--cta-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 420px) { .actions .btn { width: 100%; } }

/* Sections */
section { padding: 64px 0; }
@media (min-width: 768px) { section { padding: 104px 0; } }
.hero { padding-top: 40px; }
@media (min-width: 768px) { .hero { padding-top: 80px; } }
.split { display: grid; gap: 40px; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 64px; } .split.flip > :first-child { order: 2; } }
.band { background: var(--surface-2); }
.narrow { max-width: 780px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.eyebrow .dots { --d: 7px; }
.head { max-width: 760px; margin-bottom: 40px; }

/* Dyenzo One band: key ink, every time. */
.band-key { background: #15161C; color: #F4F4F1; --muted: #B4B6BE; --line: #33363F; --surface: #1D1F27; --text: #F4F4F1; --cta: #F5C518; --cta-ink: #15161C; --c: #2BB3E0; --m: #E63D9A; --k: #FFFFFF; --c-text: #5CC6EA; }
@media (prefers-color-scheme: dark) { .band-key { background: #0B0C10; border-block: 1.5px solid #33363F; } }
.band-key .lead { color: var(--muted); }
.band-key .btn-quiet { color: #F4F4F1; border-color: #F4F4F1; }
.band-key .btn-quiet:hover { background: transparent; }
.one { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .one { grid-template-columns: auto 1fr; gap: 72px; } }
.one .dots { --d: clamp(56px, 12vw, 104px); gap: 14px; }

/* Pictures (CSS and SVG drawings of the product, no screenshots or stock photos) */
.frame { background: var(--surface); border: 1.5px solid var(--text); border-radius: var(--radius); overflow: hidden; box-shadow: 8px 8px 0 var(--accent); }
.frame-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1.5px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.frame-bar i:nth-child(2) { background: var(--m); }
.frame-bar i:nth-child(3) { background: var(--y); }
.frame svg { width: 100%; }
.ill text { font: 600 12px ui-sans-serif, system-ui, sans-serif; fill: var(--muted); }
.ill .t-strong { fill: var(--text); }
.ill .t-accent { fill: var(--accent-text); }
.ill .t-ink { fill: var(--accent-ink); }
.ill .s-line { stroke: var(--line); }
.ill .s-text { stroke: var(--text); }
.ill .f-line { fill: var(--line); }
.ill .f-surface { fill: var(--surface); }
.ill .f-soft { fill: var(--surface-2); }
.ill .f-accent { fill: var(--accent); }
.ill .f-accent-soft { fill: var(--accent-soft); }
.ill .s-accent { stroke: var(--accent); }
.ill .f-c { fill: var(--c); } .ill .f-m { fill: var(--m); } .ill .f-y { fill: var(--y); } .ill .f-k { fill: var(--k); }
/* The overprint sheet: always paper, so the inks multiply as they do on a press. */
.sheet { background: #FAFAF7; border: 1.5px solid var(--text); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--y); }
.sheet svg { width: 100%; }
.sheet .ov { mix-blend-mode: multiply; }
.sheet text { font: 700 13px ui-sans-serif, system-ui, sans-serif; fill: #15161C; }
.sheet .t-small { font-size: 11px; font-weight: 600; fill: #55575F; }

/* Lists */
.grid-2 { display: grid; gap: 28px 48px; }
.grid-2 > * { min-width: 0; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.ticks.cmyk li:nth-child(4n+1)::before { background: var(--c); }
.ticks.cmyk li:nth-child(4n+2)::before { background: var(--m); }
.ticks.cmyk li:nth-child(4n+3)::before { background: var(--y); }
.ticks.cmyk li:nth-child(4n+4)::before { background: var(--k); }

/* Module cards: an ink dot, the name, what it does. Hover: the card's ink slips out of register. */
.mods { display: grid; gap: 18px; }
@media (min-width: 640px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .mods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mod { position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; border: 1.5px solid var(--text); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.mod:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--accent); }
.mod .blob { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); margin-bottom: 18px; }
.mod h3 { font-size: 1.3rem; margin-bottom: .4em; }
.mod p { color: var(--muted); margin: 0 0 16px; }
.mod .more { margin-top: auto; font-weight: 700; font-size: .92rem; color: var(--accent-text); }
@media (max-width: 639px) {
    .mod { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; padding: 18px; }
    .mod .blob { width: 28px; height: 28px; margin: 0; grid-row: span 3; }
    .mod h3 { font-size: 1.15rem; }
    .mod p { margin-bottom: 8px; }
}
.modname { font-weight: 400; color: var(--muted); }
.modname b { font-weight: 800; color: var(--text); }

/* Modules page: one block per module */
.module { padding: 64px 0; border-top: 1.5px solid var(--line); scroll-margin-top: 88px; }
.module:first-of-type { border-top: 0; }
.module h2 { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.module h2 .blob { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); flex: none; }
.module .grid-2 { align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600; background: var(--accent-soft); color: var(--text); }
.chip .dot { width: 8px; height: 8px; }
.how { font-size: .95rem; color: var(--muted); margin-top: 18px; }

/* Steps */
.steps { display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps > div { border-top: 3px solid var(--text); padding-top: 18px; counter-increment: s; }
.steps > div::before { content: "0" counter(s); display: block; font-weight: 800; font-size: .85rem; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.steps > div:nth-child(1) { border-color: var(--c); }
.steps > div:nth-child(2) { border-color: var(--m); }
.steps > div:nth-child(3) { border-color: var(--y); }
.steps p { color: var(--muted); }

/* Features page */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a { padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: .92rem; background: var(--surface); }
.toc a:hover { border-color: var(--text); }
.feature { padding: 56px 0; border-top: 1.5px solid var(--line); scroll-margin-top: 88px; }
.feature:first-of-type { border-top: 0; }
.feature .grid-2 { align-items: start; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; text-decoration: none; }
.tag:hover { color: var(--text); }

/* Pricing */
.currency { display: inline-flex; border: 1.5px solid var(--text); border-radius: 999px; padding: 4px; background: var(--surface); margin-top: 22px; }
.currency input { position: absolute; opacity: 0; pointer-events: none; }
.currency label { padding: 6px 16px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--muted); min-height: 34px; display: inline-flex; align-items: center; }
.currency input:checked + label { background: var(--cta); color: var(--cta-ink); }
.currency input:focus-visible + label { outline: 3px solid var(--c); outline-offset: 2px; }
.pricing:has(#cur-usd:checked) .gbp, .pricing:has(#cur-gbp:checked) .usd { display: none; }
.plans { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 28px 24px; display: flex; flex-direction: column; }
.plan.pick { border-color: var(--text); box-shadow: 8px 8px 0 var(--m); }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin: 8px 0 4px; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .ticks { margin: 20px 0 28px; font-size: .95rem; }
.plan .btn { margin-top: auto; }
.plan-note { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 20px; }
.faq details[open] { border-color: var(--text); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--muted) 60%, var(--line)); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--text); }
.field textarea { min-height: 160px; resize: vertical; }
.field .hint { font-size: .88rem; color: var(--muted); }
.field .error { font-size: .9rem; color: #B42318; font-weight: 600; }
@media (prefers-color-scheme: dark) { .field .error { color: #FF9B8F; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border: 1.5px solid var(--c); background: var(--c-soft); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.draft { border: 1.5px dashed var(--muted); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 32px; background: var(--y-soft); font-weight: 600; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose { max-width: 70ch; }

/* Closing call and footer */
.close .card { background: var(--surface); border: 1.5px solid var(--text); border-radius: var(--radius); padding: 40px 24px; box-shadow: 10px 10px 0 var(--c); position: relative; overflow: hidden; }
@media (min-width: 768px) { .close .card { padding: 64px; } }
.close .card .dots { --d: 14px; margin-bottom: 20px; }
@media (min-width: 768px) { .close .card .dots { position: absolute; right: 28px; top: 28px; margin: 0; } }
footer { padding: 0 0 56px; color: var(--muted); font-size: .94rem; }
footer .strip { margin-bottom: 48px; }
footer .cols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
footer .cols > :first-child { grid-column: 1 / -1; }
@media (min-width: 768px) { footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } footer .cols > :first-child { grid-column: auto; } }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer h3 { font-size: .92rem; color: var(--text); }

/* Calm entry for the hero picture; the ink dots float a little. Nothing moves for people who ask for less motion. */
@media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    .float { animation: float 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
    .float.f2 { animation-delay: -2s; } .float.f3 { animation-delay: -4s; }
    @keyframes float { from { transform: translate(0, 0); } to { transform: translate(4px, -5px); } }
}
