/* Whitestone POS — public site
   Warm stone neutrals, one ember accent from the logo, Ubuntu throughout. */

:root {
    --accent: #d8643a;
    /* Darker shade for small accent text on light surfaces (4.5:1) */
    --accent-strong: #b9512b;
    --accent-ink: #ffffff;
    --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);

    --bg: #f6f5f1;
    --surface: #ffffff;
    --surface-2: #efede7;
    --ink: #131517;
    --ink-2: #3b4045;
    --muted: #6a7076;
    --line: #e3e0d8;
    --line-strong: #cfcbc1;
    --danger: #b42318;
    --success: #067647;

    --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgb(19 21 23 / .04), 0 10px 30px -14px rgb(19 21 23 / .16);
    --shadow-lg: 0 2px 4px rgb(19 21 23 / .04), 0 24px 60px -24px rgb(19 21 23 / .28);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --header-h: 72px;
    --container: 1200px;
    --gutter: clamp(20px, 4vw, 32px);
    color-scheme: light;
}

[data-theme="dark"] {
    --accent-strong: color-mix(in srgb, var(--accent) 62%, #ffffff);
    --accent-ink: #2a1208;
    --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent);
    --bg: #0d0f10;
    --surface: #15181a;
    --surface-2: #1b1f22;
    --ink: #eef0f0;
    --ink-2: #c4c9cc;
    --muted: #8d9498;
    --line: #262b2e;
    --line-strong: #353b3f;
    --danger: #f97066;
    --success: #47cd89;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6);
    --shadow-lg: 0 24px 60px -24px rgb(0 0 0 / .7);
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 500; line-height: 1.12; letter-spacing: -.022em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: normal; color: var(--muted); }
.hero h1 em { color: var(--accent); }
[data-theme="dark"] .hero h1 em { color: var(--accent-strong); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Brand ---------- */
[data-theme="light"] .brand-img--dark, [data-theme="dark"] .brand-img--light { display: none; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: 0 22px;
    font: 500 15.5px/1 var(--font);
    color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: 12px;
    cursor: pointer; white-space: nowrap;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 1.1em; }
.btn--primary { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn--primary:hover { --btn-bg: var(--accent); --btn-fg: #fff; }
[data-theme="dark"] .btn--primary:hover { --btn-bg: var(--accent-strong); --btn-fg: var(--accent-ink); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn--accent:hover { --btn-bg: color-mix(in srgb, var(--accent) 85%, #000); }
.btn--ghost { --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--ink); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer; font-size: 20px; transition: background-color .2s var(--ease); }
.icon-btn:hover { background: var(--surface-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .18s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.site-header__brand { flex-shrink: 0; display: flex; }
.site-nav { flex: 1; }
.site-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 8px 12px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.site-nav__list a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav__list a.is-active { color: var(--ink); font-weight: 500; }
.site-nav__mobile-extra { display: none; }
.site-header__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; margin-right: 4px; }
.lang-switch a { font-size: 12.5px; font-weight: 500; padding: 5px 9px; border-radius: 999px; color: var(--muted); line-height: 1; }
.lang-switch a.is-active { background: var(--ink); color: var(--bg); }
[data-theme="light"] .icon-light, [data-theme="dark"] .icon-dark { display: none; }
.site-header__cta { margin-left: 6px; }
.site-header__burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.site-header__burger span { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.nav-open .site-header__burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-open .site-header__burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 479px) {
    .site-header__inner { gap: 12px; }
    .site-header__brand .brand-img { height: 32px !important; }
    .site-header__tools { gap: 2px; }
    .lang-switch { margin-right: 0; }
}

@media (max-width: 1023px) {
    .site-header__burger { display: inline-flex; }
    .site-header__cta { display: none; }
    .site-nav { position: fixed; inset: var(--header-h) 0 0; background: var(--bg); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; overflow-y: auto; }
    .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open { overflow: hidden; }
    .site-nav__list { flex-direction: column; gap: 0; }
    .site-nav__list a { font-size: 1.6rem; letter-spacing: -.02em; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: none !important; }
    .site-nav__mobile-extra { display: grid; gap: 10px; margin-top: 32px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--ink { background: #111416; color: #c8cdd0; }
.section--ink h2, .section--ink h3 { color: #f3f4f4; }
.section--ink em { color: #8d9498; }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); margin: 0; }
.section--ink .section-head p { color: #9aa1a5; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 16px; height: 1.5px; background: var(--accent-strong); }
.section-head--center .eyebrow::after { content: ""; width: 16px; height: 1.5px; background: var(--accent-strong); }
.section--ink .eyebrow { color: #9aa1a5; }
.section--ink .eyebrow::before { background: #f0a07f; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.hero__badge .square-glyph { width: 16px; height: 16px; border-radius: 4px; }
.hero h1 { margin-bottom: 24px; }
.hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero__meta { font-size: 14px; color: var(--muted); margin: 0; max-width: 520px; }
.hero__visual { position: relative; aspect-ratio: 1 / .92; }
.hero__visual canvas, .hero__visual img { position: relative; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 899px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
    .hero__visual { max-width: 520px; width: 100%; margin: 0 auto; }
}

.square-glyph { display: inline-block; width: 18px; height: 18px; border-radius: 5px; background: var(--ink); position: relative; flex-shrink: 0; }
.square-glyph::after { content: ""; position: absolute; inset: 28%; border: 2px solid var(--bg); border-radius: 2px; }

/* ---------- Business types strip ---------- */
.types { border-block: 1.5px dashed var(--line); padding: 24px 0; overflow: hidden; }
.types__row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 36px; font-size: 1.05rem; color: var(--muted); }
.types__label { color: var(--ink); font-weight: 500; }
.types__row span:not(.types__label) { display: inline-flex; align-items: center; gap: 36px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.module { padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .18s var(--ease); }
.module:hover { border-color: var(--line-strong); }
.module__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: 20px; margin-bottom: 20px; }
.module h3 { margin-bottom: 8px; }
.module p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Feature list of modules on dark band */
.modules-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.modules-split .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 899px) { .modules-split { grid-template-columns: 1fr; } .modules-split .section-head { position: static; } }

/* ---------- Devices ---------- */
.device { display: flex; flex-direction: column; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s var(--ease); }
.device:hover { border-color: var(--line-strong); }
.device__visual { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; }
.device__visual canvas, .device__visual img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.device__tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; padding: 5px 10px 5px 6px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.device__tag .square-glyph { width: 16px; height: 16px; border-radius: 4px; }
.device__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.device__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.device__head h3 { margin: 0; }
.device__price { font-size: 14px; color: var(--muted); white-space: nowrap; }
.device__body > p { color: var(--muted); font-size: 15.5px; }
.device__specs { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.device__specs li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }

/* ---------- Square band ---------- */
.square-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.square-band__visual { aspect-ratio: 1 / .85; border-radius: var(--radius-lg); background: #1a1e21; position: relative; overflow: hidden; }
.square-band__visual canvas { width: 100%; height: 100%; }
.checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checklist i { color: var(--accent-strong); font-size: 20px; margin-top: 2px; }
.section--ink .checklist i { color: #f0a07f; }
@media (max-width: 899px) { .square-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Integration steps ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1.5px dashed var(--line-strong); }
.flow__step { padding: 28px 24px 0 0; position: relative; counter-increment: step; }
.flow__step::before { content: counter(step, decimal-leading-zero); display: block; font-size: 14px; color: var(--accent-strong); font-weight: 500; margin-bottom: 18px; }
.flow__step::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-strong); }
.flow__step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 899px) { .flow { grid-template-columns: 1fr 1fr; row-gap: 24px; } }
@media (max-width: 539px) { .flow { grid-template-columns: 1fr; } }

.sync-diagram { margin-top: 56px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 3vw, 36px); }
.sync-diagram canvas { width: 100%; height: 220px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding-top: 20px; border-top: 1.5px dashed var(--line-strong); }
.stat__value { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--ink); letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: 15px; }
@media (max-width: 767px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; color: var(--ink); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.quote figcaption img, .quote__initials { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.quote__initials { display: grid; place-items: center; background: var(--surface-2); color: var(--ink); font-weight: 500; font-size: 14px; }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 500; }
.quote figcaption span { color: var(--muted); }
.stars { color: #d39b19; letter-spacing: 2px; font-size: 14px; }
@media (max-width: 1023px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 899px) { .faq-layout { grid-template-columns: 1fr; } }
.faq { border-top: 1.5px dashed var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 1.1rem; color: var(--ink); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { transition: transform .3s var(--ease); font-size: 20px; color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.faq details[open] summary i { transform: rotate(45deg); color: var(--ink); }
.faq__answer { padding: 0 48px 24px 0; color: var(--muted); }
.faq__answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta { border-radius: 28px; background: var(--ink); color: color-mix(in srgb, var(--bg) 75%, transparent); padding: clamp(40px, 7vw, 88px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px 48px; align-items: end; position: relative; overflow: hidden; }
.cta h2 { color: var(--bg); margin-bottom: 14px; max-width: 640px; }
.cta em { color: color-mix(in srgb, var(--bg) 55%, transparent); }
[data-theme="dark"] .cta { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
[data-theme="dark"] .cta h2 { color: var(--ink); }
.cta p { margin: 0; font-size: 1.1rem; max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--primary { --btn-bg: var(--bg); --btn-fg: var(--ink); }
.cta .btn--primary:hover { --btn-bg: var(--accent); --btn-fg: #fff; }
.cta .btn--ghost { --btn-fg: var(--bg); --btn-bd: color-mix(in srgb, var(--bg) 30%, transparent); }
.cta .btn--ghost:hover { --btn-bd: var(--bg); }
[data-theme="dark"] .cta .btn--primary { --btn-bg: var(--ink); --btn-fg: var(--bg); }
[data-theme="dark"] .cta .btn--ghost { --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
@media (max-width: 899px) { .cta { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.page-hero__inner { max-width: 760px; }
.page-hero p { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); margin: 0; }
.page-hero--split .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.page-hero--split canvas { width: 100%; aspect-ratio: 5 / 4; }
@media (max-width: 899px) { .page-hero--split .container { grid-template-columns: minmax(0, 1fr); } }
.breadcrumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--ink); }

/* ---------- Prose (CMS/legal) ---------- */
.prose { max-width: 760px; color: var(--ink-2); font-size: 1.04rem; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); color: var(--ink); }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; font-size: 14.5px; }
.legal-nav a { padding: 6px 0; color: var(--muted); border-left: 1.5px solid var(--line); padding-left: 14px; }
.legal-nav a.is-active, .legal-nav a:hover { color: var(--ink); border-color: var(--ink); }
.legal-meta { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
@media (max-width: 899px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; } .legal-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; } }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.form-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.form-aside .contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.form-aside .contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; }
.form-aside .contact-list i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 18px; }
.form-aside .contact-list small { display: block; color: var(--muted); font-size: 13px; }
.form-aside .contact-list a, .form-aside .contact-list span { color: var(--ink); }
@media (max-width: 899px) { .form-shell { grid-template-columns: 1fr; } .form-aside { position: static; } }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 639px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.form-section-title { font-size: 1rem; color: var(--ink); font-weight: 500; margin: 12px 0 -4px; grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .optional { color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
    width: 100%; min-height: 50px; padding: 12px 16px;
    font: 400 16px/1.4 var(--font); color: var(--ink);
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
    appearance: none;
}
.textarea { min-height: 130px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%236a7076' stroke-width='1.6' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.field-error { font-size: 13.5px; color: var(--danger); }
.field-hint { font-size: 13.5px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); cursor: pointer; transition: all .2s var(--ease); background: var(--bg); }
.chip span:hover { border-color: var(--line-strong); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 14.5px; }
.check input { appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--bg); display: grid; place-items: center; cursor: pointer; transition: all .15s var(--ease); }
.check input::after { content: ""; width: 11px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }

.consent { grid-column: 1 / -1; padding: 18px 20px; border-radius: var(--radius); background: var(--bg); border: 1px dashed var(--line-strong); }
.consent .check { color: var(--ink-2); line-height: 1.55; }
.consent__note { margin: 12px 0 0 34px; font-size: 13.5px; color: var(--muted); }
.consent__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-actions small { color: var(--muted); font-size: 13.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { grid-column: 1 / -1; min-height: 65px; }

.alert { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: 15px; }
.alert i { font-size: 22px; }
.alert--success { background: color-mix(in srgb, var(--success) 10%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.alert--success i { color: var(--success); }
.alert--error { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.alert--error i { color: var(--danger); }

/* ---------- Contact page ---------- */
.channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
.channel { display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .18s var(--ease); min-width: 0; }
a.channel:hover { border-color: var(--line-strong); }
.channel__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: 20px; margin-bottom: 16px; }
.channel__label { font-size: 13.5px; color: var(--muted); }
.channel__value { font-size: 1.05rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.channel__note { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; font-size: 13.5px; color: var(--muted); }
a.channel .channel__note { color: var(--accent-strong); }
@media (max-width: 1023px) { .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .channels { grid-template-columns: minmax(0, 1fr); } }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.contact-form__title { font-size: 1.5rem; margin-bottom: 24px; }
.contact-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.office { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.office iframe { display: block; width: 100%; height: 220px; border: 0; }
.office__body { padding: 24px; }
.office__label { font-size: 13.5px; color: var(--muted); }
.office__address { font-size: 1.1rem; color: var(--ink); margin: 4px 0 16px; }
.shortcuts { display: grid; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.shortcut { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: var(--surface); transition: background-color .18s var(--ease); }
.shortcut + .shortcut { border-top: 1.5px dashed var(--line); }
.shortcut:hover { background: var(--surface-2); }
.shortcut span { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.shortcut strong { font-weight: 500; font-size: 1rem; color: var(--ink); }
.shortcut i { font-size: 18px; color: var(--ink); flex-shrink: 0; }
@media (max-width: 899px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } .contact-side { position: static; } }

/* Date / time pickers on the appointment form */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slots .chip span { justify-content: center; width: 100%; font-variant-numeric: tabular-nums; }

/* SMS program info blocks */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-list li { background: var(--surface); padding: 16px 20px; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; }
.info-list i { color: var(--accent-strong); font-size: 20px; margin-top: 1px; }
.info-list strong { color: var(--ink); font-weight: 500; }
.keyword { display: inline-block; font-weight: 700; font-size: .85em; letter-spacing: .04em; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 40px; margin-bottom: 56px; }
.site-footer__brand { display: inline-flex; margin-bottom: 18px; }
.site-footer__about p { color: var(--muted); max-width: 300px; }
.site-footer__title { font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: 0; margin-bottom: 18px; }
.site-footer__links, .site-footer__contact, .site-footer__legal { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin-bottom: 10px; }
.site-footer__links a, .site-footer__legal a { color: var(--muted); transition: color .2s; }
.site-footer__links a:hover, .site-footer__legal a:hover, .site-footer__contact a:hover { color: var(--ink); }
.site-footer__contact li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin-bottom: 12px; color: var(--muted); }
.site-footer__contact i { font-size: 17px; color: var(--ink); margin-top: 3px; }
.site-footer__sms p { color: var(--muted); }
.square-note { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink) !important; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); transition: all .2s; }
.socials a:hover { color: var(--ink); border-color: var(--ink); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__bottom .credit { margin-left: auto; }
.site-footer__bottom .credit a { color: var(--ink); }
@media (max-width: 1023px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 539px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer__bottom .credit { margin-left: 0; } }

/* ---------- Cookie bar ---------- */
.cookie-bar { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14.5px; }
.cookie-bar p { margin: 0; flex: 1 1 240px; }
.cookie-bar a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.cookie-bar__actions { display: flex; gap: 8px; }

/* ---------- Entrance animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: translateY(10px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
