/* AutoServa marketing: premium minimal layer (owner 2026-11-27: "more modern, minimalist, enterprise, premium").
   Loaded after site.css on every page except the lean demo layout. Plain CSS, no build step. It never styles the
   financing demo (fd-) or the calculators (fin-), which belong to the financing work.
   Shape lock: controls 8px, cards and photos 12px, pills fully round. One accent (Blue 60). Flat: 1px lines, no shadows. */

:root {
  --pm-ink: #121619;
  --pm-ink-2: #4D5358;
  --pm-line: #E4E7EB;
  --pm-line-2: #D0D5DB;
  --pm-tint: #F7F8FA;
  --pm-accent: #0F62FE;
  --pm-accent-2: #0043CE;
  --pm-accent-tint: #EDF4FF;
  --pm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Type: calmer weights, tighter display tracking, shorter measures ---- */
body { color: var(--pm-ink); }
h1, h2, h3 { color: var(--pm-ink); font-weight: 600; }
.h1, .hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.035em; max-width: 18ch; }
.hx h1 { font-weight: 600; font-size: clamp(40px, 5.2vw, 66px); letter-spacing: -0.04em; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.028em; }
.h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.012em; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--pm-ink-2); max-width: 40rem; }
.hero .lead, .hx .lead { max-width: 36rem; }
.eyebrow { color: var(--pm-ink-2); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.grad-text { background: none; color: var(--pm-accent); -webkit-text-fill-color: currentColor; animation: none; }

/* ---- Rhythm: more air between sections, one quiet tint instead of gradients ---- */
.sec { padding-block: 80px; }
@media (min-width: 768px) { .sec { padding-block: 128px; } }
.sec-alt { background: var(--pm-tint); border-block: 1px solid var(--pm-line); }
.sec-head { margin-bottom: 56px; }
.sec-head .lead { margin-top: 18px; }
.hero { padding-block: 64px 72px; }
@media (min-width: 768px) { .hero { padding-block: 104px 96px; } }
.hero .btn-row { margin-top: 32px; }
.crumbs { font-size: 13px; }

/* ---- Home hero: flatter backdrop, no floating decoration ---- */
.hx-bg { background: radial-gradient(1000px 560px at 10% -20%, rgb(15 98 254 / .08), transparent 62%), #FFFFFF; }
.hx-visual .photo { border-radius: 12px; border: 1px solid var(--pm-line); }
.float-card { animation: none; }
.pill { border-color: var(--pm-line); background: #FFFFFF; }
.pill b { background: var(--pm-ink); }

/* ---- Controls ---- */
.btn { border-radius: 8px; font-weight: 500; letter-spacing: -0.005em; transition: background-color .2s, border-color .2s, color .2s, transform .35s var(--pm-ease); }
.btn-primary { background: var(--pm-accent); }
.btn-primary:hover { background: var(--pm-accent-2); }
.btn-default { background: #FFFFFF; border-color: var(--pm-line-2); color: var(--pm-ink); }
.btn-default:hover { border-color: var(--pm-ink); color: var(--pm-ink); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }

/* ---- Cards: hairline, no lift, quiet hover ---- */
.card, .flow li, .faq details, .stat { border-radius: 12px; border-color: var(--pm-line); background: #FFFFFF; }
.card { padding: 28px; gap: 10px; }
.card-link:hover { transform: none; border-color: var(--pm-line-2); }
.card .card-ic { width: 40px; height: 40px; border-radius: 8px; background: var(--pm-tint); color: var(--pm-ink); border: 1px solid var(--pm-line); }
.card-link:hover .card-ic { color: var(--pm-accent); }
.card p { font-size: 15px; line-height: 1.55; }
.card .more { font-size: 14px; }
.photo { border-radius: 12px; border-color: var(--pm-line); }
.flow li::before { background: var(--pm-ink); color: #FFFFFF; }
.tbl-wrap { border-radius: 12px; border-color: var(--pm-line); }
.tbl thead th { background: var(--pm-tint); font-size: 13px; letter-spacing: 0.02em; }
.faq details { padding: 0 24px; }
.faq summary { font-weight: 500; }

/* ---- Footer: white with a hairline, quieter links ---- */
.site-foot { background: #FFFFFF; border-top: 1px solid var(--pm-line); }
.foot-grid h2 { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pm-ink-2); }
.foot-grid a { font-size: 14px; }

/* ---- Motion layer for fx.js (React Bits ideas). All of it only exists once fx.js has run (html.fx). ---- */

/* BlurText: heading words come into focus in reading order (hierarchy: the heading lands before its body). */
.fx .fx-blur .fx-w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(0.22em);
  transition: opacity .7s var(--pm-ease), filter .7s var(--pm-ease), transform .7s var(--pm-ease); transition-delay: calc(var(--i, 0) * 55ms); }
.fx .fx-blur.fx-in .fx-w { opacity: 1; filter: none; transform: none; }

/* AnimatedContent: grid items arrive in sequence (storytelling: steps and cards read left to right). */
.fx .fx-stagger > :not(.reveal) { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--pm-ease), transform .6s var(--pm-ease); }
.fx .fx-stagger.fx-in > :not(.reveal) { opacity: 1; transform: none; }
.fx .fx-stagger > :not(.reveal) { transition-delay: calc(var(--i, 0) * 70ms); }

/* SpotlightCard: a soft light follows the pointer (feedback: shows which card the pointer is on). */
.fx-spot { position: relative; isolation: isolate; }
.fx-spot::before { border-radius: inherit; }
.fx-spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none; transition: opacity .35s var(--pm-ease);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(15 98 254 / .07), transparent 60%); }
.fx-spot:hover::before { opacity: 1; }
.spot::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgb(15 98 254 / .07), transparent 60%); }

/* Magnet: the main action leans toward the pointer (feedback: invites the click). */
.fx-mag { transform: translate(var(--tx, 0px), var(--ty, 0px)); }
.fx-mag:active { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.98); }

/* ShinyText: one slow sheen across the hero status pill, three passes then still. */
.pill b { position: relative; overflow: hidden; }
.pill b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .45) 50%, transparent 70%);
  transform: translateX(-120%); animation: pm-sheen 2.8s var(--pm-ease) 1s 3; }
@keyframes pm-sheen { to { transform: translateX(120%); } }

@media print { .fx .fx-w, .fx .fx-stagger > * { opacity: 1 !important; filter: none !important; transform: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .pill b::after { animation: none; display: none; }
  .fx-mag { transform: none; }
}

/* Word stat ("No App"): one line at phone width */
.stat-n.stat-word { white-space: nowrap; font-size: clamp(30px, 8.5vw, 44px); }
