/* =============================================================================
   Teleio Solutions: site styles
   1. Fonts         2. Design tokens   3. Base           4. Layout
   5. Components    6. Page sections   7. Motion         8. Responsive
   Breakpoints (media queries can't read CSS variables): 980px tablet, 640px phone.
   ============================================================================= */

/* 1. Fonts -------------------------------------------------------------------
   Hosted with the site (SIL Open Font License, see wwwroot/fonts). Variable fonts: one file covers each weight range. */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/figtree-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/figtree-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 2. Design tokens -------------------------------------------------------------
   Change values here, not in the rules below. */
:root {
    /* Brand colors (from the logo guide) */
    --brand: #123B2E;          /* primary: trust, stability */
    --brand-deep: #0C2A20;     /* hover, footer */
    --brand-tint: #E7F3E6;     /* selected states, light accents */
    --growth: #6CB56A;         /* decorative only: never small text on light backgrounds */
    --growth-text: #2E7A3A;    /* readable green for text and links (5.3:1 on white) */
    --sun: #FFD966;            /* optimism: accents and buttons on dark */
    --sun-hover: #FFE58F;
    --sun-soft: #FFF3CC;       /* callout background */

    /* Neutrals */
    --ink: #111814;            /* body text (18:1) */
    --muted: #4A5750;          /* secondary text (7.6:1) */
    --subtle: #66736B;         /* placeholders, captions (4.5:1 on --soft) */
    --paper: #FFFFFF;
    --white: #FFFFFF;
    --soft: #F3F6F2;           /* alternate section background */
    --line: #D9E1DB;           /* hairlines and card borders */
    --line-strong: #B4C3B9;    /* form controls */

    /* Feedback */
    --late: #A63B25;           /* errors and overdue */
    --late-soft: #F6DCD4;

    /* Text and lines on dark (brand) surfaces */
    --on-dark: #DCE8E1;
    --on-dark-muted: #A9C2B6;
    --on-dark-line: rgba(255, 255, 255, .18);

    /* Typography */
    --font-display: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;  /* logo, headings, buttons, labels */
    --font-body: "Figtree", "Segoe UI", Arial, sans-serif;               /* paragraphs, navigation, forms */
    --text-xs: .8125rem;                                    /* 13px: labels, captions */
    --text-sm: .9375rem;                                    /* 15px: secondary text, navigation */
    --text-base: 1.0625rem;                                 /* 17px: body */
    --text-lg: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); /* ledes */
    --text-xl: clamp(1.3rem, 1.15rem + .55vw, 1.6rem);      /* card and step titles */
    --text-2xl: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);    /* section titles */
    --text-3xl: clamp(2.25rem, 1.55rem + 2.7vw, 3.5rem);    /* page titles */
    --leading-tight: 1.12;
    --leading-snug: 1.35;
    --leading-body: 1.65;
    --tracking-tight: -.018em;
    --tracking-label: .1em;

    /* Spacing (4px rhythm) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --section-y: clamp(64px, 8vw, 112px);
    --section-y-tight: clamp(40px, 5vw, 64px);

    /* Layout */
    --container: 1160px;
    --container-narrow: 820px;
    --measure: 38em;           /* comfortable reading width */
    --gutter: clamp(20px, 4vw, 40px);
    --header-h: 76px;

    /* Shape */
    --radius-sm: 6px;          /* buttons, inputs */
    --radius-md: 10px;         /* cards, panels, callouts */
    --radius-lg: 14px;         /* product mockups */
    --radius-pill: 999px;
    --border: 1px solid var(--line);

    /* Elevation: reserved for the product mockups and floating menus, never for ordinary cards */
    --shadow-object: 0 1px 2px rgba(18, 59, 46, .06), 0 28px 56px -32px rgba(18, 59, 46, .5);
    --shadow-float: 0 12px 32px -12px rgba(18, 59, 46, .3);

    /* Motion */
    --ease: cubic-bezier(.2, .8, .2, 1);
    --duration-fast: .15s;
    --duration-base: .25s;

    /* Focus ring color: brand on light surfaces, sun on dark ones (set per surface below) */
    --focus: var(--brand);
}

/* 3. Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--space-3)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-body);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--growth-text); text-underline-offset: 3px; }
a:hover { color: var(--brand); }

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

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    text-wrap: balance;
    color: var(--ink);
}

.visually-hidden, .hp {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
    position: absolute; left: var(--space-3); top: -60px; z-index: 100;
    padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
    background: var(--brand); color: var(--white);
}
.skip-link:focus { top: var(--space-3); color: var(--white); }

/* 4. Layout ------------------------------------------------------------------ */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
/* Narrow sections keep the page's left edge; only the content column is limited */
.narrow > * { max-width: var(--container-narrow); }

.section { padding: var(--section-y) 0; }
.section-flush { padding-top: 0; }
.section-soft { background: var(--soft); }

.page-head { padding: var(--section-y) 0 var(--section-y-tight); }
.page-head-tight { padding-bottom: var(--space-6); }

/* Two-column text + object layouts share one rhythm */
.hero-grid, .product-grid, .web-grid, .band-grid {
    display: grid; gap: clamp(var(--space-6), 5vw, 72px); align-items: center;
}
.hero-grid { grid-template-columns: 1.1fr 1fr; }
.product-grid, .web-grid { grid-template-columns: 1fr 1.05fr; }
.band-grid { grid-template-columns: 1.3fr 1fr; }

/* 5. Components -------------------------------------------------------------- */

/* Eyebrow label above a heading */
.kicker {
    margin: 0 0 var(--space-4);
    font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700;
    letter-spacing: var(--tracking-label); text-transform: uppercase;
    color: var(--growth-text);
}
.kicker-sun { color: var(--sun); }

/* Headings and ledes */
.hero h1, .page-head h1 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.022em; }
.hero-lede { max-width: var(--measure); margin: var(--space-5) 0 0; font-size: var(--text-lg); color: var(--muted); }
.section-title { margin-bottom: var(--space-6); font-size: var(--text-2xl); font-weight: 800; }
.section-title:has(+ .section-lede) { margin-bottom: var(--space-4); }
.section-lede { max-width: var(--measure); margin: 0 0 var(--space-7); font-size: var(--text-lg); color: var(--muted); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); --logo-gap: var(--paper); }
.logo:hover { color: var(--ink); }
.logo .logo-mark { width: 56px; height: auto; flex: none; }
.logo-words { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-name { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; letter-spacing: .03em; color: var(--ink); }
.logo-sub { margin-top: 5px; padding-left: .42em; font-family: var(--font-display); font-weight: 700; font-size: .64rem; letter-spacing: .44em; color: var(--growth-text); }
.logo-dark { --logo-gap: var(--brand); }
.logo-dark .logo-name { color: var(--white); }
.logo-dark .logo-sub { color: var(--growth); }

/* Buttons: one shape, four variants. Hover changes color only. */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    min-height: 48px; padding: 0 var(--space-5);
    border: 1.5px solid transparent; border-radius: var(--radius-sm);
    font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center;
    text-decoration: none; cursor: pointer;
    transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-deep); color: var(--white); }
.btn-quiet { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-quiet:hover { background: var(--brand-tint); color: var(--brand); }
.btn-sun { background: var(--sun); color: var(--brand-deep); }
.btn-sun:hover { background: var(--sun-hover); color: var(--brand-deep); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: var(--white); background: transparent; }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }
.btn-submit { width: 100%; min-height: 52px; }
.btn-submit[disabled] { opacity: .7; cursor: progress; }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Header and navigation */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--paper);
    border-bottom: var(--border);
    transition: box-shadow var(--duration-base);
}
.site-header.is-scrolled { box-shadow: 0 6px 18px -14px rgba(18, 59, 46, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }

.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a, .nav-parent {
    padding: var(--space-2) 0;
    font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
    color: var(--ink); text-decoration: none;
}
.site-nav a:hover, .site-nav a.is-active, .nav-parent:hover, .nav-parent[aria-expanded="true"] { color: var(--growth-text); }
.site-nav a[aria-current="page"], .nav-parent.is-current {
    color: var(--growth-text);
    text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--growth); text-underline-offset: 6px;
}
.site-nav .nav-cta {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-5);
    border-radius: var(--radius-sm); background: var(--brand); color: var(--white);
    font-family: var(--font-display); font-weight: 700;
}
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--brand-deep); color: var(--white); text-decoration: none; }

.nav-toggle { display: none; width: 46px; height: 46px; border: var(--border); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; position: relative; width: 20px; height: 2px; margin: 0 auto; background: var(--ink); transition: transform var(--duration-base);
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Services dropdown */
.nav-item { position: relative; }
.nav-parent { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; }
.nav-caret { width: 12px; height: 12px; transition: transform var(--duration-base); }
.nav-parent[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.subnav {
    position: absolute; top: calc(100% + var(--space-3)); left: 50%; z-index: 60;
    width: 340px; padding: var(--space-2);
    background: var(--white); border: var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-float);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
    transition: opacity var(--duration-fast), transform var(--duration-fast), visibility var(--duration-fast);
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* keeps hover alive across the gap */
.has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* Without JavaScript, hovering still opens the menu; with it, site.js opens it and keeps aria-expanded in sync */
@media (hover: hover) and (min-width: 981px) {
    html:not(.js) .has-sub:hover .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    html:not(.js) .has-sub:hover .nav-caret { transform: rotate(180deg); }
}
.site-nav .subnav a {
    display: flex; gap: var(--space-3); align-items: flex-start;
    padding: var(--space-3); border-radius: var(--radius-sm);
    font-weight: 400; text-decoration: none; color: var(--ink);
}
.site-nav .subnav a:hover, .site-nav .subnav a[aria-current="page"] { background: var(--soft); color: var(--ink); text-decoration: none; }
.subnav-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--brand-tint); transition: background-color var(--duration-fast); }
.subnav-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--duration-fast); }
.subnav a:hover .subnav-icon, .subnav a[aria-current="page"] .subnav-icon { background: var(--brand); }
.subnav a:hover .subnav-icon svg, .subnav a[aria-current="page"] .subnav-icon svg { stroke: var(--sun); }
.subnav-text strong { display: block; font-family: var(--font-display); font-size: var(--text-sm); line-height: var(--leading-snug); }
.subnav a[aria-current="page"] .subnav-text strong { color: var(--growth-text); }
.subnav-text span { display: block; margin-top: 2px; font-size: var(--text-xs); line-height: 1.45; color: var(--muted); }

/* Lists ---------------------------------------------------------------------- */

/* Checklist with hairlines */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: var(--space-2) 0 var(--space-2) var(--space-6); border-top: var(--border); }
.ticks li::before {
    content: ""; position: absolute; left: 4px; top: 15px; width: 13px; height: 7px;
    border-left: 2.5px solid var(--growth-text); border-bottom: 2.5px solid var(--growth-text); transform: rotate(-45deg);
}

/* Short reassurance line under hero buttons */
.assure { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); font-weight: 600; color: var(--brand); }
.assure li { position: relative; padding-left: 22px; }
.assure li::before {
    content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px;
    border-left: 2px solid var(--growth-text); border-bottom: 2px solid var(--growth-text); transform: rotate(-45deg);
}

/* Tags */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--white); font-size: var(--text-sm); font-weight: 600; }

/* Term + description lists */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--space-7); margin: 0; }
.features > div { padding: var(--space-5) 0 var(--space-6); border-top: var(--border); }
.features dt { margin-bottom: var(--space-2); font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.features dd { margin: 0; color: var(--muted); }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-7); margin: 0; }
.spec-list > div { display: grid; grid-template-columns: minmax(10em, 13em) 1fr; gap: var(--space-1) var(--space-5); padding: var(--space-4) 0; border-top: var(--border); }
.spec-list dt { font-family: var(--font-display); font-weight: 700; }
.spec-list dd { margin: 0; color: var(--muted); }

/* Cards: flat, bordered, no shadow ------------------------------------------- */
.plan, .quote, .shot, .contact-form {
    background: var(--white); border: var(--border); border-radius: var(--radius-md);
}

/* Callouts: one style for highlighted notes and prompts ---------------------- */
.fit { padding: var(--space-5) var(--space-6); border-radius: var(--radius-md); background: var(--sun-soft); }

/* Options: a few choices compared as plain rows, instead of a pricing-table of cards */
.options { list-style: none; margin: 0; padding: 0; border-bottom: var(--border); }
.options li { display: grid; grid-template-columns: minmax(12em, 1fr) 2.4fr; gap: var(--space-2) var(--space-7); padding: var(--space-5) 0; border-top: var(--border); }
.options h3 { font-size: var(--text-xl); }
.option-kind { margin: var(--space-1) 0 0; font-family: var(--font-display); font-weight: 700; color: var(--growth-text); }
.options li > p { max-width: var(--measure); margin: 0; color: var(--muted); }

/* One-line note under a call to action, saying what happens next */
.action-note { margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--muted); }
.band .action-note, .product .action-note { color: var(--on-dark-muted); }

/* Statement: a large sentence beside a short explanation, instead of a card grid */
.statement { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(var(--space-6), 5vw, 72px); align-items: end; }
.statement .section-title { margin-bottom: var(--space-5); }
.statement-lead { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem); font-weight: 800; line-height: 1.22; letter-spacing: -.01em; color: var(--brand); text-wrap: balance; }
.statement-body p { max-width: var(--measure); margin: 0 0 var(--space-4); font-size: 1.125rem; color: var(--muted); }
.statement-body p:last-child { margin-bottom: 0; }

/* FAQ */
.faq details { border-top: var(--border); }
.faq details:last-child { border-bottom: var(--border); }
.faq summary {
    position: relative; padding: var(--space-4) var(--space-7) var(--space-4) 0; list-style: none; cursor: pointer;
    font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; transition: color var(--duration-fast);
}
.faq summary:hover { color: var(--growth-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: var(--space-1); top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; color: var(--growth-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: var(--measure); margin: 0 0 var(--space-5); color: var(--muted); }

/* Status pills (Arkila rent roll) */
.status { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 700; }
.status-paid { background: #DCEFDB; color: #1F5C2B; }
.status-due { background: var(--sun-soft); color: #6B4D00; }
.status-late { background: var(--late-soft); color: var(--late); }
.status-vacant { background: #ECEEEC; color: var(--muted); }

/* Forms */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-5); }
.field { min-width: 0; margin: 0 0 var(--space-5); padding: 0; border: 0; }
.field label, .field legend { display: block; margin-bottom: 6px; padding: 0; font-weight: 700; }
.field input[type="text"], .field input:not([type]), .field input[type="email"], .field input[type="tel"], .field textarea {
    width: 100%; min-height: 48px; padding: var(--space-3) 14px;
    font: inherit; color: var(--ink);
    background: var(--soft); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--white); box-shadow: 0 0 0 3px rgba(108, 181, 106, .35); }
.field input.input-validation-error, .field textarea.input-validation-error { border-color: var(--late); }
.field ::placeholder { color: var(--subtle); }

.topics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
/* ".field .topic" outranks ".field label", so the topic options keep their own layout */
.field .topic {
    display: flex; align-items: center; gap: var(--space-3); min-height: 48px; margin: 0; padding: var(--space-2) 14px;
    border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 400; line-height: var(--leading-snug);
}
.field .topic:hover { border-color: var(--brand); }
.field .topic:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); font-weight: 700; }
.topic:has(input.input-validation-error) { border-color: var(--late); }
.topic input, .consent input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.field .consent { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 400; }
.consent input { margin-top: 5px; }

.form-intro { margin: 0 0 var(--space-5); font-size: var(--text-sm); color: var(--muted); }
.req { color: var(--late); font-weight: 700; }
.field-hint { display: block; margin-top: 6px; font-size: var(--text-sm); text-align: right; color: var(--muted); }
.field-hint:empty { display: none; }
.field-error { display: block; margin-top: 6px; font-size: var(--text-sm); font-weight: 700; color: var(--late); }
.field-error:empty { display: none; }
.form-alert:not(.validation-summary-valid) { margin-bottom: var(--space-5); padding: 14px 18px; border-radius: var(--radius-sm); background: var(--late-soft); color: var(--late); font-weight: 700; }
.form-alert ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.turnstile-box { min-height: 65px; margin: 0 0 18px; }

/* Product mockups: the site's signature objects, and the only elements with a shadow */
.dash, .ledger, .browser { margin: 0; overflow: hidden; background: var(--white); color: var(--ink); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-object); }

/* 6. Page sections ----------------------------------------------------------- */

/* Home hero */
.hero { padding: var(--section-y) 0; }

/* Business summary mockup */
.dash-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 22px; background: var(--brand); color: var(--white); }
.dash-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.dash-period { font-weight: 700; color: var(--sun); }
.dash-figures { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-bottom: var(--border); }
.dash-figures > div { padding: var(--space-4) 22px; }
.dash-figures > div + div { border-left: var(--border); }
.dash-figures dt { font-size: var(--text-xs); line-height: 1.3; color: var(--muted); }
.dash-figures dd { margin: 6px 0 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-warn { color: var(--late); }
.dash-chart { padding: var(--space-4) 22px var(--space-2); }
.dash-label { margin: 0 0 10px; font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.dash-chart svg { display: block; width: 100%; height: auto; }
.dash-weeks { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; text-align: center; font-size: var(--text-xs); color: var(--muted); }
.dash-insight { display: flex; gap: var(--space-3); align-items: center; margin: var(--space-2) 22px var(--space-4); padding: var(--space-3) 14px; border-radius: var(--radius-sm); background: var(--sun-soft); --logo-gap: var(--sun-soft); }
.dash-insight .logo-mark { width: 34px; flex: none; }
.dash-insight p { margin: 0; font-size: var(--text-sm); line-height: 1.45; }
.dash-foot { padding: var(--space-3) 22px; border-top: var(--border); font-size: var(--text-xs); color: var(--muted); }

/* From transactions to growth: a typographic sequence, not cards */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5) var(--space-7); counter-reset: flow; }
.flow li { position: relative; padding-top: 18px; border-top: 1px solid rgba(18, 59, 46, .18); counter-increment: flow; }
.flow li::before { content: counter(flow, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 800; letter-spacing: var(--tracking-label); color: var(--growth-text); }
.flow li:not(:last-child)::after {
    content: ""; position: absolute; right: -30px; top: 60px; width: 11px; height: 11px;
    border-top: 2.5px solid var(--growth); border-right: 2.5px solid var(--growth); transform: rotate(45deg);
}
.flow h3 { margin-bottom: 10px; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.05rem); font-weight: 800; }
.flow li:last-child h3 { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: .16em; text-underline-offset: .14em; }
.flow p { max-width: 22em; margin: 0; color: var(--muted); }

/* How we can help */
/* How we can help: one row per service (name and link left, details right), not a grid of identical cards */
.services { border-bottom: var(--border); }
.service { display: grid; grid-template-columns: minmax(14em, 1fr) 2.4fr; gap: var(--space-4) var(--space-7); padding: var(--space-6) 0; border-top: var(--border); }
.service h3 { margin-bottom: var(--space-3); font-size: var(--text-xl); font-weight: 700; }
.service-body p { max-width: var(--measure); margin: 0; color: var(--muted); }
.service-body p + .plain-list { margin-top: var(--space-4); }
.service-link { display: inline-block; font-family: var(--font-display); font-weight: 700; text-decoration: none; }

/* Plain two-column list with hairlines, for details that don't need checkmarks */
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-6); }
.plain-list li { padding: var(--space-2) 0; border-top: var(--border); }
.service-link span { display: inline-block; transition: transform var(--duration-fast); }
.service-link:hover span { transform: translateX(3px); }

/* Dark surfaces: products band and the Arkila section */
.band, .product { --focus: var(--sun); padding: var(--section-y) 0; background: var(--brand); color: var(--on-dark); }
.band h2, .product h1, .product h2 { margin-bottom: 18px; font-size: var(--text-2xl); font-weight: 800; color: var(--white); }
.band p, .product p { max-width: 34em; margin: 0; }
.band-list { list-style: none; margin: 0; padding: 0; }
.band-list li { padding: 18px 0; border-top: 1px solid var(--on-dark-line); }
.band-list li:last-child { border-bottom: 1px solid var(--on-dark-line); }
.band-list strong { display: block; font-size: 1.125rem; color: var(--white); }

/* Subscribe or own a branded copy; website packages */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.plan { display: flex; flex-direction: column; padding: var(--space-6); }
.plan-own { border: 1.5px solid var(--brand); box-shadow: inset 0 4px 0 var(--sun); }
.plan-tag { margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--growth-text); }
.plan h3 { margin-bottom: 6px; font-size: var(--text-xl); }
.plan-price { margin: 0 0 14px; font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; color: var(--brand); }
.plan > p { margin: 0 0 18px; color: var(--muted); }
.plan .ticks { margin-bottom: var(--space-5); }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plans-note { margin: var(--space-5) 0 0; font-size: var(--text-sm); color: var(--muted); }

/* How a project goes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); counter-reset: step; }
.steps li { padding-top: 18px; border-top: 2px solid var(--brand); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--space-4); border-radius: 50%; background: var(--sun); color: var(--brand); font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.steps h3 { margin-bottom: var(--space-2); font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }

/* Closing call to action */
.section-cta { background: var(--soft); }
.cta { text-align: center; }
.cta h2 { font-size: var(--text-2xl); font-weight: 800; }
.cta p { max-width: 34em; margin: 14px auto 28px; font-size: var(--text-lg); color: var(--muted); }

/* Products page: Arkila */
.product .product-name { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--white); }
.product-name span { display: block; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--growth); }

.ledger-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3); padding: 20px 22px var(--space-4); border-bottom: var(--border); background: var(--soft); }
.ledger-app { display: block; font-size: var(--text-xs); font-weight: 700; color: var(--growth-text); }
.ledger-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.ledger-prop { font-size: var(--text-sm); text-align: right; color: var(--muted); }
.ledger-scroll { overflow-x: auto; }
.ledger-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ledger-table th { padding: var(--space-3) 22px var(--space-2); text-align: left; font-size: var(--text-xs); font-weight: 700; color: var(--muted); }
.ledger-table td { padding: var(--space-3) 22px; border-top: 1px solid #E6ECE8; white-space: nowrap; }
.ledger-table td:first-child { font-weight: 700; }
.ledger-foot { padding: 14px 22px; border-top: var(--border); font-size: var(--text-xs); color: var(--muted); }

.fit { margin-top: var(--space-7); }
.fit h3 { margin-bottom: var(--space-3); font-size: 1.25rem; }
.fit .ticks li { border-top-color: rgba(18, 59, 46, .15); }


/* Arkila demo: video and screenshots */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 960px; margin: 0 0 var(--space-6); overflow: hidden; border-radius: var(--radius-lg); background: var(--brand-deep); box-shadow: var(--shadow-object); }
.video iframe, .video video, .video-facade img { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-facade { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--sun); transition: transform var(--duration-base); }
.video-play::after { content: ""; position: absolute; left: 30px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--brand-deep); }
.video-facade:hover .video-play { transform: scale(1.06); }

.shots { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.shot { display: block; width: 100%; padding: 0; overflow: hidden; text-align: left; font: inherit; color: var(--ink); cursor: zoom-in; transition: border-color var(--duration-fast); }
.shot:hover { border-color: var(--line-strong); }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: var(--border); }
.shot-caption { display: block; padding: var(--space-3) var(--space-4); font-size: var(--text-sm); font-weight: 600; }

.lightbox { max-width: min(1100px, 94vw); max-height: 92vh; padding: 0; overflow: visible; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(12, 42, 32, .88); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: var(--radius-md); background: var(--white); }
.lightbox figcaption { margin-top: var(--space-3); text-align: center; font-weight: 600; color: var(--white); }
.lightbox-close { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sun); color: var(--brand-deep); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Website development page */
.page-head-split .web-grid { align-items: center; }
.web-copy .section-lede { margin-bottom: var(--space-5); }
.web-copy .ticks { max-width: 34em; }
.pros-note { margin: var(--space-5) 0 0; color: var(--muted); }

/* Sample website mockup */
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: var(--border); background: var(--soft); }
.browser-dots { display: flex; flex: none; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #D6DED8; }
.browser-dots i:first-child { background: #F0B4A6; }
.browser-dots i:nth-child(2) { background: var(--sun); }
.browser-dots i:last-child { background: var(--growth); }
.browser-url { flex: 1; min-width: 0; padding: 3px 14px; overflow: hidden; border: var(--border); border-radius: var(--radius-pill); background: var(--white); font-size: var(--text-xs); color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.browser-page { position: relative; padding: 0 0 18px; transition: opacity .35s ease; }
.browser-page.is-swapping { opacity: 0; }
.bp-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 14px 20px; }
.bp-brand { font-family: var(--font-display); font-size: .98rem; font-weight: 800; color: var(--brand); }
.bp-links { display: flex; gap: var(--space-2); }
.bp-links i { width: 32px; height: 6px; border-radius: 3px; background: #DFE6E1; }
.bp-hero { margin: 0 14px; padding: 26px 22px 22px; border-radius: var(--radius-md); background: var(--brand); color: var(--white); }
.bp-kicker { margin: 0 0 6px; font-size: var(--text-xs); font-weight: 700; color: var(--sun); }
.bp-title { max-width: 15em; margin: 0 0 18px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; line-height: 1.2; color: var(--white); }
.bp-btn { position: relative; display: inline-block; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); background: var(--sun); color: var(--brand-deep); font-family: var(--font-display); font-size: .85rem; font-weight: 700; }
.bp-cursor {
    position: absolute; left: 62%; top: 55%; width: 20px; height: 20px; opacity: 0; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 2l13 7-6 1.5L7.5 17z' fill='%23111814' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 14px 0; }
.bp-cards span { padding: 14px var(--space-2) var(--space-3); border: var(--border); border-radius: var(--radius-sm); text-align: center; font-size: var(--text-xs); font-weight: 600; line-height: 1.3; }
.bp-toast { position: absolute; right: 18px; top: 58px; padding: var(--space-2) 14px; border-radius: var(--radius-sm); background: var(--brand); color: var(--white); font-size: .85rem; font-weight: 700; opacity: 0; box-shadow: var(--shadow-float); }
.browser-foot { padding: var(--space-3) 22px; border-top: var(--border); font-size: var(--text-xs); color: var(--muted); }

/* Testimonials (hidden until enabled in appsettings.json) */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-5); }
.quote { position: relative; display: flex; flex-direction: column; margin: 0; padding: var(--space-6) 28px var(--space-5); }
.quote::before { content: "\201C"; position: absolute; top: 4px; left: 22px; font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--sun); }
.quote blockquote { margin: 18px 0 22px; }
.quote blockquote p { margin: 0; font-size: 1.08rem; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; padding-top: var(--space-4); border-top: var(--border); }
.quote-avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--brand); color: var(--sun); font-family: var(--font-display); font-weight: 800; }
.quote figcaption strong { display: block; font-family: var(--font-display); }
.quote-who { display: block; font-size: var(--text-sm); color: var(--muted); }
.logos-title { margin: var(--space-7) 0 var(--space-4); font-weight: 600; color: var(--muted); }
.client-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) 40px; }
.client-logos img { display: block; max-width: 160px; max-height: 48px; filter: grayscale(1); opacity: .7; transition: filter var(--duration-base), opacity var(--duration-base); }
.client-logos img:hover { filter: none; opacity: 1; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(var(--space-6), 5vw, var(--space-8)); align-items: start; }
.contact-details { --focus: var(--sun); padding: var(--space-6); border-radius: var(--radius-md); background: var(--brand); color: var(--on-dark); }
.contact-details h2 { margin-bottom: var(--space-5); font-size: 1.35rem; color: var(--white); }
.contact-details dl { margin: 0; }
.contact-details dl > div { padding: 14px 0; border-top: 1px solid var(--on-dark-line); }
.contact-details dt { font-size: var(--text-sm); color: var(--on-dark-muted); }
.contact-details dd { margin: 2px 0 0; overflow-wrap: anywhere; font-weight: 700; color: var(--white); }
.contact-details a { color: var(--sun); }
.contact-details a:hover { color: var(--sun-soft); }
.contact-note { margin: 18px 0 0; font-size: var(--text-sm); color: var(--on-dark); }
.contact-details .next-steps-heading { margin: 28px 0 var(--space-3); padding-top: 22px; border-top: 1px solid var(--on-dark-line); font-size: 1.05rem; color: var(--sun); }
.next-steps { list-style: none; margin: 0; padding: 0; counter-reset: next; }
.next-steps li { position: relative; padding: 6px 0 6px 38px; font-size: var(--text-sm); color: var(--on-dark); counter-increment: next; }
.next-steps li::before {
    content: counter(next); position: absolute; left: 0; top: 6px; display: grid; place-items: center;
    width: 26px; height: 26px; border-radius: 50%; background: var(--sun); color: var(--brand-deep); font-family: var(--font-display); font-size: .85rem; font-weight: 800;
}
@media (min-width: 981px) { .contact-details { position: sticky; top: calc(var(--header-h) + var(--space-5)); } }
.contact-form { padding: clamp(var(--space-5), 4vw, 40px); }

/* Privacy notice and the message-sent page */
.prose h2 { margin: var(--space-6) 0 var(--space-2); font-size: 1.35rem; }
.prose p { max-width: 42em; margin: 0 0 var(--space-3); }
.sent svg { margin-bottom: var(--space-5); }

/* Footer */
.site-footer { --focus: var(--sun); padding: var(--space-8) 0 0; background: var(--brand-deep); color: #C3D4CA; font-family: var(--font-body); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 40px; }
.site-footer .logo { --logo-gap: var(--brand-deep); }
.footer-tagline { margin: 18px 0 6px; font-size: 1.08rem; font-weight: 600; color: var(--white); }
.footer-small { margin: 0; font-size: var(--text-sm); color: #9DB5A8; }
.footer-heading { margin-bottom: 14px; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--sun); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 5px 0; overflow-wrap: anywhere; }
.site-footer a { color: #E6EFE9; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-top: var(--space-7); padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: var(--text-sm); color: #9DB5A8; }
.footer-base p { margin: 0; }
.site-footer .footer-base a { color: #C3D4CA; }

.reg-badges { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.reg-badges li { position: relative; padding: 5px 12px 5px 30px; border: 1px solid var(--on-dark-line); border-radius: var(--radius-pill); color: var(--white); font-size: var(--text-sm); font-weight: 600; }
.reg-badges li::before {
    content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 5px; margin-top: -4px;
    border-left: 2px solid var(--growth); border-bottom: 2px solid var(--growth); transform: rotate(-45deg);
}
.site-footer .reg-seal { display: block; max-width: 380px; padding: var(--space-2); border-radius: var(--radius-md); background: var(--white); }
.reg-seal img { display: block; width: 100%; height: auto; }

/* Back to top */
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    display: grid; place-items: center; width: 46px; height: 46px;
    border: 0; border-radius: 50%; background: var(--brand); color: var(--sun); cursor: pointer;
    box-shadow: var(--shadow-float); transition: background-color var(--duration-fast);
}
.to-top:hover { background: var(--brand-deep); }
.to-top[hidden] { display: none; }

/* Section headings fade in (class added by site.js, so content shows without JavaScript) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 7. Motion: one-time entrances only; all skipped for visitors who prefer reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * { animation: rise .7s var(--ease) both; }
    .hero-copy > :nth-child(2) { animation-delay: .08s; }
    .hero-copy > :nth-child(3) { animation-delay: .16s; }
    .hero-copy > :nth-child(4) { animation-delay: .24s; }
    .hero-copy > :nth-child(5) { animation-delay: .32s; }
    .page-head .wrap > * { animation: rise .6s var(--ease) both; }
    .page-head .wrap > :nth-child(2) { animation-delay: .08s; }
    .page-head .wrap > :nth-child(3) { animation-delay: .16s; }

    /* The sun in the logo rises once on the home page */
    .is-home .site-header .logo-mark path:first-child { transform-box: fill-box; transform-origin: 50% 100%; animation: sunrise 1.1s var(--ease) .15s both; }

    /* Business summary: card rises, bars grow, insight follows */
    .dash { animation: rise .7s var(--ease) .1s both; }
    .dash-chart rect { transform-origin: bottom; transform-box: fill-box; animation: grow .6s var(--ease) both; }
    .dash-chart rect:nth-of-type(1) { animation-delay: .5s; }
    .dash-chart rect:nth-of-type(2) { animation-delay: .6s; }
    .dash-chart rect:nth-of-type(3) { animation-delay: .7s; }
    .dash-chart rect:nth-of-type(4) { animation-delay: .8s; }
    .dash-insight { animation: rise .6s var(--ease) 1s both; }

    /* Sample website: a cursor that "books" an appointment */
    .page-head .browser { animation: rise .6s var(--ease) .16s both; }
    .browser.play .bp-cursor { animation: cursor 5.2s ease-in-out both; }
    .browser.play .bp-btn { animation: press 5.2s ease-in-out both; }
    .browser.play .bp-toast { animation: toast 5.2s ease-in-out both; }

    .to-top:not([hidden]) { animation: rise .3s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sunrise { from { transform: translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cursor {
    0% { opacity: 0; transform: translate(110px, 70px); }
    12% { opacity: 1; }
    42% { transform: translate(0, 0); }
    48% { transform: translate(0, 0) scale(.8); }
    54%, 88% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes press { 0%, 45% { transform: none; } 49% { transform: scale(.94); } 55%, 100% { transform: none; } }
@keyframes toast {
    0%, 52% { opacity: 0; transform: translateY(-8px); }
    60%, 90% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: none; }
}

/* 8. Responsive -------------------------------------------------------------- */

/* Tablet: single-column layouts, menu button */
@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: var(--space-2) var(--gutter) 20px;
        background: var(--paper); border-bottom: var(--border);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 14px 0; border-bottom: var(--border); }
    .site-nav .nav-cta { justify-content: center; margin-top: 14px; border-bottom: 0; }
    .nav-item { display: block; }
    .nav-parent { justify-content: space-between; width: 100%; padding: 14px 0; border-bottom: var(--border); }
    .subnav {
        position: static; display: none; width: auto; padding: 6px 0 10px;
        border: 0; border-bottom: var(--border); border-radius: 0; box-shadow: none;
        opacity: 1; visibility: visible; transform: none; transition: none;
    }
    .has-sub.is-open .subnav { display: block; transform: none; }
    .site-nav .subnav a { padding: 10px var(--space-2); border-bottom: 0; }

    .hero-grid, .band-grid, .contact-grid, .product-grid, .web-grid, .service, .statement, .spec-list { grid-template-columns: 1fr; }
    .service { gap: var(--space-3); }
    .dash, .ledger, .browser { max-width: 580px; }
    .options li { grid-template-columns: 1fr; gap: var(--space-2); }
    .contact-form { order: -1; }
    .flow { grid-template-columns: 1fr 1fr; }
    .flow li:nth-child(2)::after { display: none; }
    .steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
    .features { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* Phone: stacked content, full-width buttons */
@media (max-width: 640px) {
    .logo .logo-mark { width: 46px; }
    .logo-name { font-size: 1.45rem; }
    .flow, .steps, .features, .field-row, .topics, .footer-grid, .plans { grid-template-columns: 1fr; }
    .flow li::after { display: none; }
    .spec-list > div { grid-template-columns: 1fr; }
    .plain-list { grid-template-columns: 1fr; }
    .plan { padding: 26px 22px; }
    .plan .btn { align-self: stretch; }
    .fit { padding: 20px; }
    .assure { flex-direction: column; gap: 6px; }
    .hero-actions .btn { flex: 1 1 100%; width: 100%; }
    .bp-links { display: none; }
    .bp-title { font-size: 1.12rem; }
    .dash-figures { grid-template-columns: 1fr; }
    .dash-figures > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: var(--space-3) 18px; }
    .dash-figures > div + div { border-left: 0; border-top: var(--border); }
    .dash-figures dd { margin: 0; font-size: 1.15rem; }
    .ledger-head { flex-direction: column; align-items: flex-start; }
    .ledger-prop { text-align: left; }
    .ledger-table th, .ledger-table td { padding-left: var(--space-4); padding-right: var(--space-4); }
    .to-top { right: 14px; bottom: 14px; }
    .site-footer { padding-top: var(--space-7); }
    .footer-grid { gap: 28px; }
    .footer-small { display: none; }
    .footer-base { margin-top: var(--space-6); }
}
