/* "Golden copper": warm linen washed with copper light, walnut frosted glass, a copper-to-gold main button, and sunlight falling through slats.
   Light on every page, even on phones set to dark mode, except the sales screen (/crm): it has a dark mode of its own since 2026-11-06
   (crm.css redefines these tokens; crm-theme.js keeps the rep's choice). Shared by every page.
   A dealer's brand color replaces --accent at runtime; the gold CTA on glass stays fixed so it is always readable.
   A dealer with their own brand color gets main buttons in that color (src/theme.js sets --cta-bg/--cta-ink); otherwise they are copper into gold.
   Fonts are self-hosted (CSP font-src 'self'), all SIL OFL. Text and numbers are Geist everywhere. Titles (--serif) are Fraunces, a warm
   sturdy serif Garrett picked from three options on 2026-11-24 after the Geist titles "aren't right". Fraunces is declared at one weight,
   600: a variable font clamps the asked weight into the face's range, so every title rule that asks for var(--serif) at weight 400 gets the
   semibold cut with no faux bold. "Geist Display" is Geist pinned to semibold the same way, for a dealer who picks the all-sans "Modern"
   style in Admin > Branding; Gloock is for "Classic". Each -ext file only downloads when a name needs its accented letters. */
@font-face{font-family:"Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/geist.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:"Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/geist-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:"Geist Display";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/geist.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:"Geist Display";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/geist-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:"Fraunces";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/fraunces.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:"Fraunces";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/fraunces-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:"Gloock";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/gloock.woff2) format("woff2")}
:root{
  color-scheme:light;
  --bg:#f3e6d6; --bg2:#ebd3b8; --panel:#fffdfa; --ink:#2b1d17; --muted:#5f5650; --line:#e8d9c6; /* muted: 7:1 on the panel, 5.8:1 on the page (src/theme.js keeps a dealer's at 4.5:1 or more) */
  --accent:#a44c15; --accent-ink:#ffffff; --gold:#f5a13a; --gold-ink:#2b1d17; --gold-hi:#ffd34e;
  --cta-bg:linear-gradient(120deg,#ea6a1e 0%,#f58b2e 35%,#ffb43e 65%,#ffd84f 100%); --cta-ink:#2b1d17; --cta-glow:rgba(238,122,38,.55);
  --glass:rgba(96,58,34,.86); --glass-ink:#fffaf3; --glass-muted:rgba(255,250,243,.84);
  --glass-chip:rgba(255,250,243,.15); --glass-chip-line:rgba(255,250,243,.3);
  --paper:rgba(255,253,250,.82); --hairline:rgba(255,255,255,.7);
  --stage:#e4d9ca; --bad:#a8281f; --warn:#9a4a12;
  /* Pro dealer themes override these too (src/theme.js): page highlight, header band, and the sunlight tints */
  --bg-hi:#fbf4ea; --head:#603a22; --head-ink:#ffffff; --sun-rgb:255,240,214; --halo-rgb:240,140,62;
  --shadow:0 1px 1px rgba(90,60,35,.05),0 8px 18px -6px rgba(90,60,35,.14),0 28px 50px -18px rgba(90,60,35,.22);
  --shadow-soft:0 1px 1px rgba(90,60,35,.05),0 4px 12px -2px rgba(90,60,35,.12);
  --shadow-pop:0 2px 4px rgba(90,60,35,.06),0 18px 40px -10px rgba(90,60,35,.32);
  --glow:0 10px 24px -8px color-mix(in srgb,var(--accent) 60%,transparent);
  /* the type and spacing system (field app redesign 2026-11-19): six sizes, nothing under 13px, weights 400/600/700 only. Numbers (sizes, prices)
     are the most-read things on screen, so they get their own sizes; the display face (--serif) is only for the dealer's name, empty-state headings and one grand total. */
  --fs-num-xl:32px; --fs-num:20px; --fs-title:22px; --fs-body:16px; --fs-label:14px; --fs-cap:13px; --fs-display:30px;
  --lh-num:1.15; --lh-title:1.25; --lh-body:1.45; --lh-label:1.3;
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px;
  --r-chip:8px; --r-field:16px; --r-card:24px; --r-sheet:30px; /* the field app sets its own tighter radii in index.html; every other page (CRM, Admin, /ops, sign-in) keeps these */
  --font:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --serif:"Fraunces","Iowan Old Style","Palatino",Georgia,serif; /* titles */
  --ease:cubic-bezier(.16,1,.3,1); --ease-in:cubic-bezier(.5,0,.75,0);
  /* defaults for controls on light surfaces; .on-glass flips them */
  --c-ink:var(--ink); --c-muted:var(--muted); --c-chip:var(--panel); --c-chip-line:var(--line);
}
@media (min-width:720px){:root{--fs-num-xl:40px; --fs-num:22px; --fs-title:26px; --fs-body:17px; --fs-label:15px; --fs-cap:14px; --fs-display:40px}}
.on-glass{--c-ink:var(--glass-ink); --c-muted:var(--glass-muted); --c-chip:var(--glass-chip); --c-chip-line:var(--glass-chip-line)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:radial-gradient(70% 55% at 100% 0%,rgba(var(--halo-rgb),.28),transparent 70%) fixed,radial-gradient(60% 50% at 0% 60%,rgba(var(--halo-rgb),.16),transparent 70%) fixed,radial-gradient(120% 70% at 50% 0%,var(--bg-hi) 0%,var(--bg) 55%,var(--bg2) 100%) fixed var(--bg)}
body{background:transparent;isolation:isolate;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
/* Sunlight through slats: soft bands of light drift slowly across the room. The subject's own light, not decoration. */
body::before{content:"";position:fixed;inset:-30% -60% -30% -20%;z-index:-1;pointer-events:none;
  background:repeating-linear-gradient(-16deg,transparent 0 28px,rgba(var(--sun-rgb),.0) 30px,rgba(var(--sun-rgb),.8) 44px 66px,rgba(var(--sun-rgb),0) 80px,transparent 82px 112px);
  -webkit-mask-image:radial-gradient(65% 55% at 68% 16%,#000 0%,rgba(0,0,0,.5) 45%,transparent 78%);mask-image:radial-gradient(65% 55% at 68% 16%,#000 0%,rgba(0,0,0,.5) 45%,transparent 78%);
  animation:daylight 46s ease-in-out infinite alternate;will-change:transform}
body::after{content:"";position:fixed;z-index:-1;pointer-events:none;width:70vmax;height:70vmax;right:-22vmax;top:-30vmax;border-radius:50%;
  background:radial-gradient(closest-side,rgba(var(--halo-rgb),.42),rgba(var(--halo-rgb),.12) 55%,transparent);animation:sun 14s ease-in-out infinite alternate}
@keyframes daylight{from{transform:translate3d(-4%,-1%,0) rotate(0deg)}to{transform:translate3d(5%,3%,0) rotate(2deg)}}
@keyframes sun{from{opacity:.7;transform:scale(.94)}to{opacity:1;transform:scale(1.05)}}
:focus-visible{outline:2.5px solid var(--accent);outline-offset:3px}
.on-glass :focus-visible{outline-color:#fff}
::selection{background:var(--gold-hi);color:var(--ink)}
input,textarea,select{caret-color:var(--accent);accent-color:var(--accent)}
input::placeholder,textarea::placeholder{color:#7a6a5e}
*{scrollbar-width:thin;scrollbar-color:rgba(120,95,75,.32) transparent}
::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:rgba(120,95,75,.28);border-radius:8px;border:2px solid transparent;background-clip:padding-box}::-webkit-scrollbar-track{background:transparent}
a{text-underline-offset:3px;text-decoration-thickness:1.5px}
[hidden]{display:none!important}
.serif{font-family:var(--serif);font-weight:400}
/* the main action: copper into gold by default, the dealer brand color when they have one */
.cta-fill{background:var(--cta-bg);color:var(--cta-ink)}
/* the blinds mark: four slats that tilt open once, then breathe */
.slatmark{display:inline-grid;gap:3px;width:26px}
.slatmark i{display:block;height:3.5px;border-radius:2px;background:currentColor;transform-origin:50% 50%;animation:slat 5.5s var(--ease) infinite}
.slatmark i:nth-child(2){animation-delay:.08s}.slatmark i:nth-child(3){animation-delay:.16s}.slatmark i:nth-child(4){animation-delay:.24s}
@keyframes slat{0%,62%,100%{transform:scaleY(1)}72%{transform:scaleY(.3)}84%{transform:scaleY(1)}}
@media (prefers-reduced-motion:reduce){body::before,body::after,.slatmark i{animation:none}}
