/* CCC Detailing design tokens: bright, white, strong accent. --accent/--on-accent come from owner settings (theme.js). */
:root {
  --ink: #0B0D10; --ink-2: #1A1D22; --bg: #FFFFFF; --soft: #F3F4F6; --soft-2: #E9EBEE; --line: #E3E5E8; --line-2: #CDD1D6;
  --text: #0B0D10; --muted: #555D68; --faint: #7A828C;
  --accent: #E10600; --on-accent: #FFFFFF;
  --ok: #0F8A4B; --warn: #B45309; --error: #B42318;
  /* aliases used by older components */
  --panel: var(--soft); --panel-2: var(--soft-2); --emerald: var(--accent); --blue: var(--accent); --navy: var(--line);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --t-xs: .8125rem; --t-s: .9375rem; --t-m: 1.0625rem; --t-l: 1.375rem; --t-xl: clamp(1.9rem, 5.2vw, 3rem); --t-xxl: clamp(2.6rem, 8.5vw, 6rem);
  --shadow: 0 1px 2px rgba(11,13,16,.06), 0 8px 24px -12px rgba(11,13,16,.18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--t-m)/1.6 var(--font); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.num, .pr, b, strong { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.028em; margin: 0 0 var(--s4); text-wrap: balance; }
h1 { font-size: var(--t-xxl); } h2 { font-size: var(--t-xl); } h3 { font-size: var(--t-l); letter-spacing: -0.02em; }
p { margin: 0 0 var(--s4); max-width: 64ch; }
a { color: inherit; text-underline-offset: 4px; } a:hover { color: var(--accent); }
img { max-width: 100%; }
.muted { color: var(--muted); } .small { font-size: var(--t-s); } .xs { font-size: var(--t-xs); }
.wrap { width: min(1240px, 100% - 2 * var(--s5)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.accent { color: var(--accent); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-head.scrolled { border-color: var(--line); }
.site-head.over-hero:not(.scrolled) { background: transparent; color: #fff; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.15rem; }
.brand-logo { height: 36px; width: auto; max-width: 160px; object-fit: contain; }
.brand.has-logo .brand-mark { display: none; }
.foot-logo { height: 48px; width: auto; margin-right: 12px; vertical-align: middle; filter: brightness(0) invert(1); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: .72rem; font-weight: 900; letter-spacing: -0.04em; }
.site-head nav { display: flex; gap: var(--s5); }
.site-head nav a { text-decoration: none; font-weight: 500; }
.site-head nav a[aria-current] { color: var(--accent); }
.head-actions { display: flex; gap: var(--s2); align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5);
  border-radius: 999px; border: 2px solid currentColor; background: transparent; color: inherit; font: 600 var(--t-m) var(--font); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px var(--accent); }
.btn-primary:hover { color: var(--on-accent); box-shadow: 0 16px 32px -14px var(--accent); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; } .btn-dark:hover { color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-small { min-height: 40px; padding: 0 var(--s4); font-size: var(--t-s); }
.btn-lg { min-height: 58px; padding: 0 var(--s6); font-size: 1.1rem; }
.btn .arr { transition: transform .3s var(--ease); } .btn:hover .arr { transform: translateX(4px); }
.link { color: var(--accent); font-weight: 600; }

/* Forms */
label { display: block; font-size: var(--t-s); font-weight: 600; margin-bottom: var(--s1); }
input, select, textarea { width: 100%; min-height: 50px; padding: var(--s2) var(--s3); background: #fff; color: var(--text);
  border: 1.5px solid var(--line-2); border-radius: var(--r-s); font: inherit; font-size: 16px; }
textarea { min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field { margin-bottom: var(--s4); }
.hint { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s1); font-weight: 400; }
.err { color: var(--error); font-size: var(--t-s); }
.check { display: flex; gap: var(--s3); align-items: flex-start; }
.check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check label { font-weight: 400; }
.notice { border-radius: var(--r-s); background: var(--soft); padding: var(--s3) var(--s4); font-size: var(--t-s); margin-bottom: var(--s4); border-left: 4px solid var(--ink); }
.notice.warn { border-color: var(--warn); background: #FFF7ED; } .notice.error { border-color: var(--error); background: #FEF3F2; } .notice.ok { border-color: var(--ok); background: #ECFDF3; }
.notice p:last-child { margin: 0; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: .08s; } [data-reveal="3"] { transition-delay: .16s; } [data-reveal="4"] { transition-delay: .24s; }

/* Footer */
footer.site-foot { background: var(--ink); color: #D7DBE0; padding: var(--s8) 0 var(--s6); font-size: var(--t-s); }
footer.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
.foot-grid h4 { color: #fff; margin: 0 0 var(--s3); font-size: var(--t-m); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.foot-name { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); }
.foot-name strong { font-size: clamp(2rem, 7vw, 4.5rem); letter-spacing: -0.05em; color: #fff; line-height: 1; }
.pad { padding: var(--s8) 0; }

/* Prose pages (pricing, terms, privacy) */
.prose { padding: var(--s8) 0; }
.prose h1 { font-size: var(--t-xl); }
.prose h2 { font-size: var(--t-l); margin-top: var(--s6); }
.prose li { margin-bottom: var(--s2); max-width: 64ch; }
.prose .lead { font-size: var(--t-l); color: var(--muted); line-height: 1.4; }

@media (max-width: 860px) {
  .site-head nav, .hide-sm { display: none !important; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } [data-reveal] { opacity: 1; transform: none; } }

.brand, .head-actions .btn { white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: 1rem; } .brand-mark { width: 28px; height: 28px; } .head-actions .btn-small { padding: 0 12px; font-size: .875rem; } }
.brand.has-logo [data-business-name] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.brand-logo { transition: filter .3s; }
.site-head.over-hero:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }

/* Language switcher */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--text); font: 600 var(--t-xs) var(--font); cursor: pointer; }
.site-head.over-hero:not(.scrolled) .lang-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.lang-btn .flag { font-size: 1.05rem; line-height: 1; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 190px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 18px 40px -12px rgba(11,13,16,.3); animation: menuIn .18s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } }
.lang-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font: 500 var(--t-s) var(--font); color: var(--text); cursor: pointer; text-align: start; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--soft); outline: none; }
.lang-menu button[aria-current="true"] { font-weight: 700; color: var(--accent); }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .arr { display: inline-block; transform: scaleX(-1); }
@media (max-width: 420px) { .lang-btn .code { display: none; } }
