/* 1-Byte design system: flat surfaces, typographic hierarchy, restrained colour. */
:root {
  --byte-paper: #f4f0e7;
  --byte-sheet: #fffcf5;
  --byte-ink: #18302c;
  --byte-night: #16221f;
  --byte-panel: #21312b;
  --byte-line: #cfc9bb;
  --byte-night-line: #3a4a42;
  --byte-accent: #e5774d;
  --byte-accent-hover: #f29a73;
  --byte-teal: #3f998a;
  --byte-muted: #63736b;
}
html { scroll-behavior: smooth; }
body { background: var(--byte-night) !important; color: #f4f0e7; font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
body.byte-marketing { background: var(--byte-paper) !important; color: var(--byte-ink); }
body.byte-marketing > .byte-noise, body.byte-marketing > .byte-grid,
.byte-noise, .byte-grid { display: none !important; }
::selection { background: var(--byte-accent); color: #10221f; }
:focus-visible { outline: 2px solid var(--byte-accent); outline-offset: 3px; }

/* Shared navigation and footer modules */
.byte-shell { width: min(100% - 2.25rem, 1200px); margin-inline: auto; }
.byte-site-header { position: sticky; top: 0; z-index: 50; background: var(--byte-paper); border-bottom: 1px solid var(--byte-line); color: var(--byte-ink); }
.byte-site-header__inner { min-height: 76px; display: flex; align-items: center; gap: 2rem; }
.byte-wordmark { display: inline-flex; align-items: center; gap: .85rem; color: var(--byte-ink); text-decoration: none; white-space: nowrap; }
.byte-wordmark__logo { display: block; width: 46px; height: 46px; object-fit: contain; }
.byte-wordmark__symbol { display: grid; place-items: center; width: 43px; height: 43px; background: var(--byte-ink); color: var(--byte-paper); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .84rem; font-weight: 800; letter-spacing: -.11em; }
.byte-wordmark__symbol span { color: var(--byte-accent); padding-inline: .04em; }
.byte-wordmark__name { font-size: 1.11rem; font-weight: 850; letter-spacing: -.06em; }
.byte-wordmark__dot { color: var(--byte-accent); }
.byte-desktop-nav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.byte-desktop-nav a, .byte-account-link { color: var(--byte-ink); text-decoration: none; font-size: .89rem; font-weight: 650; }
.byte-desktop-nav a:hover, .byte-desktop-nav a[aria-current="page"], .byte-account-link:hover { color: #b74e32; }
.byte-desktop-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--byte-accent); padding-block: .55rem; }
.byte-header-actions { display: flex; align-items: center; gap: 1.25rem; margin-left: 1rem; }
.byte-button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 50px; padding: .82rem 1.25rem; background: var(--byte-accent); color: #16221f; text-decoration: none; font-weight: 750; border: 1px solid var(--byte-accent); border-radius: 4px; transition: background .18s ease, transform .18s ease; }
.byte-button:hover { background: var(--byte-accent-hover); transform: translateY(-2px); }
.byte-button--small { min-height: 40px; padding: .6rem .95rem; font-size: .84rem; }
.byte-button--outline { background: transparent; border-color: currentColor; color: inherit; }
.byte-button--outline:hover { background: var(--byte-sheet); color: var(--byte-ink); }
.byte-mobile-nav { display: none; margin-left: auto; position: relative; }
.byte-mobile-nav summary { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; cursor: pointer; list-style: none; }
.byte-mobile-nav summary::-webkit-details-marker { display: none; }
.byte-mobile-nav summary span { display: block; height: 2px; width: 25px; background: var(--byte-ink); }
.byte-mobile-nav nav { position: absolute; right: 0; top: 55px; width: min(82vw, 290px); padding: .6rem; border: 1px solid var(--byte-line); background: var(--byte-sheet); box-shadow: 8px 8px 0 rgba(24,48,44,.13); }
.byte-mobile-nav nav a { display: block; padding: .85rem; color: var(--byte-ink); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--byte-line); }
.byte-mobile-nav nav a:last-child { border-bottom: 0; }

.byte-site-footer { background: var(--byte-ink); color: var(--byte-paper); border-top: 5px solid var(--byte-accent); padding: 4rem 0 1.4rem; }
.byte-site-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; }
.byte-site-footer h2 { max-width: 610px; margin: 1rem 0; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.07; font-weight: 780; letter-spacing: -.055em; }
.byte-site-footer p:not(.byte-eyebrow) { max-width: 520px; line-height: 1.7; color: #c8d0c5; }
.byte-site-footer__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding-top: .4rem; }
.byte-site-footer__links h3 { font-size: .71rem; text-transform: uppercase; letter-spacing: .14em; color: var(--byte-accent); margin-bottom: 1.2rem; }
.byte-site-footer__links a { display: block; margin: .7rem 0; color: #f4f0e7; text-decoration: none; font-size: .9rem; }
.byte-site-footer a:hover, .byte-site-footer button:hover { color: var(--byte-accent-hover); }
.byte-text-link { display: inline-flex; gap: .65rem; margin-top: 1.45rem; padding-bottom: .2rem; color: var(--byte-accent); border-bottom: 1px solid currentColor; text-decoration: none; font-weight: 750; }
.byte-site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--byte-night-line); margin-top: 4rem; padding-top: 1.25rem; color: #aab8ad; font-size: .78rem; }
.byte-site-footer__bottom div { display: flex; flex-wrap: wrap; gap: 1.35rem; }
.byte-site-footer__bottom a, .byte-site-footer__bottom button { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }

/* Marketing modules built from the same tokens as the tool workspace. */
.byte-eyebrow { font: 700 .69rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; }
.byte-index { font: 750 .75rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--byte-accent); }
.byte-home-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); border-bottom: 1px solid var(--byte-line); }
.byte-home-hero__main { padding: clamp(3.3rem, 5vw, 5rem) 3.5rem clamp(3rem, 4vw, 4rem) 0; }
.byte-home-hero__main .byte-eyebrow { color: #b74e32; }
.byte-home-hero h1 { max-width: 800px; margin: 1.2rem 0; font-size: clamp(3.1rem, 5.9vw, 5.8rem); line-height: 1.02; letter-spacing: -.075em; font-weight: 820; }
.byte-home-hero h1 em { color: #bc5034; font-style: normal; }
.byte-home-hero__main > p:not(.byte-eyebrow) { max-width: 680px; color: #4f6158; font-size: clamp(1rem, 1.7vw, 1.22rem); line-height: 1.65; }
.byte-home-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.byte-home-hero__note { margin-top: 1.7rem; display: flex; gap: 1rem; color: #53635b; font-size: .78rem; }
.byte-home-hero__note span + span { border-left: 1px solid var(--byte-line); padding-left: 1rem; }
.byte-home-hero__side { display: flex; flex-direction: column; justify-content: space-between; background: var(--byte-ink); color: var(--byte-paper); padding: clamp(2rem, 4vw, 3rem); }
.byte-home-hero__side .byte-eyebrow { color: var(--byte-accent); }
.byte-home-hero__side h2 { font-size: clamp(1.6rem, 2.8vw, 2.55rem); line-height: 1.1; letter-spacing: -.05em; margin: 1.2rem 0; font-weight: 750; }
.byte-home-hero__side p { color: #c8d0c5; line-height: 1.6; }
.byte-home-hero__side a { color: var(--byte-accent); text-decoration: none; border-bottom: 1px solid; font-weight: 750; }
.byte-home-hero__side-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.8rem; }
.byte-mini-list { display: grid; gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--byte-night-line); }
.byte-mini-list li { display: flex; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--byte-night-line); font-size: .88rem; }
.byte-mini-list b { color: var(--byte-accent); font: 700 .76rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.byte-home-section { padding: clamp(4rem, 7vw, 6.5rem) 0; border-bottom: 1px solid var(--byte-line); }
.byte-home-section__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.byte-home-section__head .byte-eyebrow { color: #b74e32; }
.byte-home-section h2 { max-width: 690px; margin: .6rem 0 0; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.05; letter-spacing: -.065em; font-weight: 780; }
.byte-home-section__head > p { max-width: 300px; color: var(--byte-muted); line-height: 1.55; }
.byte-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--byte-line); border-left: 1px solid var(--byte-line); }
.byte-tool-tile { position: relative; min-height: 210px; padding: 1.5rem; border-right: 1px solid var(--byte-line); border-bottom: 1px solid var(--byte-line); background: var(--byte-sheet); color: var(--byte-ink); text-decoration: none; transition: background .18s ease, transform .18s ease; }
.byte-tool-tile:hover { background: #fce5d4; transform: translateY(-2px); }
.byte-tool-tile__top { display: flex; justify-content: space-between; align-items: start; font: 700 .67rem ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .09em; text-transform: uppercase; color: #6b766e; }
.byte-tool-tile__top span:last-child { color: #b74e32; font-size: 1.25rem; }
.byte-tool-tile h3 { margin: 2.7rem 0 .5rem; font-size: 1.3rem; letter-spacing: -.035em; font-weight: 760; }
.byte-tool-tile p { color: #5d6e64; line-height: 1.5; font-size: .87rem; }
.byte-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.byte-work-card { overflow: hidden; background: var(--byte-sheet); border: 1px solid var(--byte-line); }
.byte-work-card img { display: block; width: 100%; height: 245px; object-fit: cover; object-position: top; border-bottom: 1px solid var(--byte-line); }
.byte-work-card > div { padding: 1.5rem; }
.byte-work-card .byte-eyebrow { color: #b74e32; }
.byte-work-card h3 { margin: .6rem 0; font-size: 1.55rem; letter-spacing: -.04em; }
.byte-work-card p:not(.byte-eyebrow) { color: #53655b; line-height: 1.6; }
.byte-work-card a { display: inline-block; margin-top: .7rem; color: #ae492e; font-weight: 750; text-decoration: none; border-bottom: 1px solid; }
.byte-home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.byte-home-split p { color: #516259; line-height: 1.75; max-width: 540px; }
.byte-service-list { border-top: 1px solid var(--byte-line); }
.byte-service-list li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.2rem .25rem; border-bottom: 1px solid var(--byte-line); font-weight: 710; }
.byte-service-list span { color: #bc5034; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.byte-home-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: #dce9de; padding: clamp(2rem, 5vw, 4rem); }
.byte-home-cta h2 { margin: .5rem 0; }

/* Flat app surfaces keep older tools coherent while they are upgraded. */
main .byte-panel { background: var(--byte-panel) !important; border: 1px solid var(--byte-night-line) !important; box-shadow: none !important; }
main [class*="bg-slate-950"], main [class*="bg-slate-900"], main [class*="bg-byte-elevated"], main [class*="bg-byte-surface"] { background-color: #21312b !important; }
main [class*="border-slate-800"], main [class*="border-slate-700"] { border-color: var(--byte-night-line) !important; }
main [class*="bg-byte-blue"] { background-color: var(--byte-accent) !important; }
main [class*="text-byte-blue"] { color: var(--byte-accent-hover) !important; }
main [class*="border-byte-blue"] { border-color: var(--byte-accent) !important; }
main .rounded-3xl, main .rounded-2xl { border-radius: 10px !important; }
main [class*="shadow-"] { box-shadow: none !important; }
main input, main textarea, main select { accent-color: var(--byte-accent); }

/* Public directory: a bright catalogue, with the darker colour reserved for tools. */
body.byte-tool-directory main { color: var(--byte-ink); }
body.byte-tool-directory main [class*="bg-slate-950"],
body.byte-tool-directory main [class*="bg-byte-elevated"],
body.byte-tool-directory main [class*="bg-byte-surface"] { background: var(--byte-sheet) !important; }
body.byte-tool-directory main [class*="border-slate-800"],
body.byte-tool-directory main [class*="border-slate-700"] { border-color: var(--byte-line) !important; }
body.byte-tool-directory main [class*="text-slate-50"],
body.byte-tool-directory main [class*="text-slate-100"],
body.byte-tool-directory main [class*="text-slate-200"] { color: var(--byte-ink) !important; }
body.byte-tool-directory main [class*="text-slate-300"],
body.byte-tool-directory main [class*="text-slate-400"],
body.byte-tool-directory main [class*="text-slate-500"] { color: #59685e !important; }
body.byte-tool-directory main [class*="bg-byte-blue"] { background: var(--byte-accent) !important; color: var(--byte-ink) !important; }
body.byte-tool-directory main [class*="bg-emerald"],
body.byte-tool-directory main [class*="bg-amber"] { background: #e6eee5 !important; color: #225b50 !important; }
body.byte-tool-directory main input { background: var(--byte-sheet) !important; color: var(--byte-ink) !important; }
body.byte-tool-directory main article { transition: transform .18s ease, border-color .18s ease; }
body.byte-tool-directory main article:hover { transform: translateY(-3px); border-color: var(--byte-accent) !important; }
body.byte-pricing main { color: var(--byte-ink); padding-block: clamp(3.5rem, 7vw, 6rem); }
body.byte-pricing main > p { color: #b74e32 !important; }
body.byte-pricing main > h1 { max-width: 850px; letter-spacing: -.065em; line-height: 1.04; }
body.byte-pricing main > p:nth-of-type(2) { color: #526258 !important; }
body.byte-pricing main section[class*="rounded-3xl"] { background: var(--byte-sheet) !important; border: 1px solid var(--byte-line) !important; border-radius: 6px !important; }
body.byte-pricing main section[class*="rounded-3xl"]:nth-child(2) { border-top: 5px solid var(--byte-accent) !important; }
body.byte-pricing main section[class*="rounded-3xl"]:first-child { border-top: 5px solid var(--byte-teal) !important; }
body.byte-pricing main [class*="text-slate-200"], body.byte-pricing main [class*="text-slate-300"], body.byte-pricing main [class*="text-emerald-200"], body.byte-pricing main [class*="text-byte-blue-soft"] { color: #526258 !important; }
body.byte-pricing main [class*="text-white"] { color: var(--byte-ink) !important; }
body.byte-pricing main [class*="bg-emerald-300"] { background: var(--byte-teal) !important; color: white !important; }
body.byte-pricing main [class*="bg-byte-blue"] { background: var(--byte-accent) !important; }

/* Enquiry page keeps the route from the homepage consistent and easy to read. */
body.byte-contact main { color: var(--byte-ink); }
body.byte-contact main > section:first-child { background: var(--byte-paper) !important; background-image: none !important; border-color: var(--byte-line) !important; }
body.byte-contact main > section:first-child > div { padding-top: 3rem; padding-bottom: 2rem; }
body.byte-contact main h1 { color: var(--byte-ink) !important; font-size: clamp(2.2rem, 4vw, 3.8rem) !important; line-height: 1.05; letter-spacing: -.06em; }
body.byte-contact main h2, body.byte-contact main label { color: var(--byte-ink) !important; }
body.byte-contact main [class*="text-slate-400"], body.byte-contact main [class*="text-slate-500"] { color: #526258 !important; }
body.byte-contact main [class*="text-slate-200"], body.byte-contact main [class*="text-slate-300"], body.byte-contact main [class*="text-slate-100"] { color: var(--byte-ink) !important; }
body.byte-contact main [class*="bg-slate-950"] { background: var(--byte-sheet) !important; }
body.byte-contact main [class*="border-slate-800"], body.byte-contact main [class*="border-slate-700"] { border-color: var(--byte-line) !important; }
body.byte-contact main [class*="text-byte-blue"] { color: #ae492e !important; }
body.byte-contact main form label { font-size: .85rem !important; font-weight: 700; }
body.byte-contact main form input:not([type="hidden"]), body.byte-contact main form textarea, body.byte-contact main form select { min-height: 46px; background: white !important; color: var(--byte-ink) !important; font-size: .9rem !important; border-radius: 4px !important; }
body.byte-contact main form textarea { min-height: 140px; }
body.byte-contact main form button { min-height: 48px; padding-inline: 1.4rem; background: var(--byte-accent) !important; color: var(--byte-ink) !important; font-size: .9rem !important; border-radius: 4px !important; font-weight: 750; }
body.byte-contact main > section:nth-child(2) { padding-block: 2.5rem; }

@media (max-width: 900px) {
  .byte-desktop-nav, .byte-header-actions { display: none; }
  .byte-mobile-nav { display: block; }
  .byte-home-hero { grid-template-columns: 1fr; }
  .byte-home-hero__main { padding-right: 0; }
  .byte-home-hero__side { min-height: 340px; }
  .byte-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .byte-home-split { gap: 2rem; }
}
@media (max-width: 640px) {
  .byte-shell { width: min(100% - 1.4rem, 1200px); }
  .byte-site-header__inner { min-height: 64px; }
  .byte-home-hero__main { padding-block: 3.3rem; }
  .byte-home-hero h1 { font-size: clamp(3.1rem, 13vw, 4.5rem); }
  .byte-home-section__head { display: block; }
  .byte-home-section__head > p { margin-top: 1rem; }
  .byte-tools-grid, .byte-work-grid, .byte-home-split, .byte-site-footer__top { grid-template-columns: 1fr; }
  .byte-home-cta { display: block; }
  .byte-home-cta .byte-button { margin-top: 1.5rem; }
  .byte-site-footer__top { gap: 2.5rem; }
  .byte-site-footer__bottom { align-items: start; flex-direction: column; }
}
