/* TeslaBytes — "Precision Instrument" design system
   Editorial automotive dark: layered warm-blacks, grain + dim red glow,
   Bricolage Grotesque display / Hanken Grotesk body / Spline Sans Mono numerals. */

:root {
  --bg:        #0a0a0e;
  --bg-2:      #0d0d12;
  --surface:   #121218;
  --raised:    #17171f;
  --line:      rgba(255,255,255,.08);
  --line-soft: rgba(255,255,255,.05);

  --red:       #ff2d4d;       /* Tesla signal red, slightly hot for screens */
  --red-deep:  #e31937;
  --ice:       #6ea2ff;       /* gas / secondary, cool steel-blue */
  --green:     #2fd27a;       /* savings / positive */
  --amber:     #f5b13d;

  --text:      #f3f0ea;       /* warm off-white */
  --muted:     #9a9aab;
  --dim:       #86868f;

  --display: 'Bricolage Grotesque', Georgia, serif;
  --body:    'Hanken Grotesk', system-ui, sans-serif;
  --mono:    'Spline Sans Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --shadow: 0 24px 60px -28px rgba(0,0,0,.85);
  --shadow-red: 0 20px 60px -24px rgba(227,25,55,.45);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { margin:0; padding:0; box-sizing:border-box; }

html { -webkit-text-size-adjust:100%; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
/* Atmosphere: dim red + cool glows, anchored top, slowly drifting */
body::before {
  content:""; position:fixed; inset:-10%; z-index:-2; pointer-events:none; will-change:transform;
  background:
    radial-gradient(60% 50% at 18% -8%, rgba(227,25,55,.17), transparent 60%),
    radial-gradient(50% 40% at 95% 0%, rgba(60,110,220,.11), transparent 55%),
    radial-gradient(45% 45% at 60% 8%, rgba(227,25,55,.06), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-2.5%, 1.8%, 0) scale(1.07); } }
@media (prefers-reduced-motion: reduce){ body::before { animation:none; } }
/* Fine grain for richness */
body::after {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(255,45,77,.28); color:#fff; }

.skip-link { position:absolute; left:-9999px; top:0; z-index:200; background: var(--red-deep); color:#fff; padding:.6rem 1.1rem; font-weight:700; border-radius:0 0 8px 0; }
.skip-link:focus { left:0; }
:focus-visible { outline:2px solid var(--ice); outline-offset:2px; }

/* Scroll-reveal (off-screen elements only; JS-gated, so no FOUC) */
.reveal { opacity:0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.revealed { opacity:1; transform:none; }

a { color: var(--ice); text-decoration: none; }

h1,h2,h3 { font-family: var(--display); font-weight: 700; letter-spacing:-.02em; line-height:1.04; color:#fff; }

.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing:-.01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top:0; z-index:100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin:0 auto; padding: .9rem 1.5rem;
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
}
.logo { font-family:var(--display); font-size:1.45rem; font-weight:800; letter-spacing:-.03em; display:flex; align-items:center; gap:.1rem; }
.logo-tesla { color: var(--red); }
.logo-bytes { color:#fff; }
nav { display:flex; gap:.25rem; flex-wrap:wrap; }
nav a {
  color: var(--muted); font-size:.82rem; font-weight:600; letter-spacing:.01em;
  padding:.4rem .7rem; border-radius:8px; position:relative; transition: color .2s var(--ease), background .2s var(--ease);
}
nav a:hover { color:#fff; background: rgba(255,255,255,.04); }
.site-header nav a.active, .site-header nav a[aria-current="page"] { color: var(--red); background: rgba(255,45,77,.10); }
@media (max-width:760px){
  .header-inner { flex-wrap:wrap; gap:.5rem; }
  nav { width:100%; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch;
    -webkit-mask-image:linear-gradient(to right,#000 88%,transparent); mask-image:linear-gradient(to right,#000 88%,transparent); }
  nav::-webkit-scrollbar { display:none; }
  nav a { white-space:nowrap; padding:.35rem .55rem; }
}

/* Ticker — refined, quiet */
.ticker {
  position:relative; overflow:hidden;
  border-bottom:1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(227,25,55,.07), transparent 55%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker-track { display:flex; width:max-content; will-change:transform; }
.ticker-seq { display:flex; align-items:center; gap:2.6rem; padding:.5rem 2.6rem .5rem 0; white-space:nowrap; }
.ticker-seq a {
  display:inline-flex; align-items:center; gap:.5rem; color: var(--dim);
  font-family:var(--mono); font-size:.7rem; letter-spacing:.14em; text-transform:uppercase;
  text-decoration:none; transition: color .2s var(--ease);
}
.ticker-seq a:hover, .ticker-seq a:focus-visible { color:#fff; }
.ticker-seq .tk-ic { color: var(--red); font-size:.8rem; }

main { display:block; }

/* ---------- Reveal motion ---------- */
@keyframes reveal { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform:none; } }
.hero, .home-tool, .home-guides, .calc-hero, .products, .about-hero { animation: reveal .7s var(--ease) both; }
.home-tool { animation-delay:.06s; } .home-guides { animation-delay:.12s; }
@media (prefers-reduced-motion: reduce){ *{ animation:none!important; transition:none!important; } }

/* ---------- Hero ---------- */
.hero { max-width: var(--maxw); margin:0 auto; padding: 4.5rem 1.5rem 1.5rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight:800; max-width: 16ch; }
.hero h1::after { content:"."; color: var(--red); }
.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 56ch; margin-top:1.1rem; }

/* ---------- Home featured tool ---------- */
.home-tool { max-width: var(--maxw); margin: 2rem auto 0; padding: 0 1.5rem; }
.home-tool-inner {
  position:relative; overflow:hidden;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(227,25,55,.16), transparent 55%),
    linear-gradient(180deg, var(--raised), var(--surface));
  border:1px solid var(--line); border-radius: var(--r-lg);
  padding: 2.4rem 2.4rem; box-shadow: var(--shadow);
}
.home-tool-inner::before { /* instrument hairline grid */
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px); background-size: 100% 38px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 80%); mask-image: linear-gradient(180deg, transparent, #000 80%);
}
.home-tool-badge {
  display:inline-flex; align-items:center; gap:.4rem; font-family:var(--mono);
  font-size:.66rem; letter-spacing:.18em; text-transform:uppercase; color:var(--red);
  border:1px solid rgba(255,45,77,.35); background:rgba(227,25,55,.08); padding:.32rem .7rem; border-radius:50px;
}
.home-tool-inner { display:grid; grid-template-columns: 1fr 1fr; gap:2rem; align-items:center; }
@media (max-width:820px){ .home-tool-inner { grid-template-columns:1fr; } .home-tool-viz { display:none; } }
.home-tool-copy { position:relative; z-index:1; }
.home-tool-viz { position:relative; z-index:1; margin:0; }
.home-tool-viz .hero-chart { width:100%; height:auto; clip-path: inset(0 100% 0 0); animation: wipe 1.4s var(--ease) .25s forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce){ .home-tool-viz .hero-chart { animation:none; clip-path:none; } }
.home-tool-viz figcaption { color: var(--dim); font-size:.74rem; margin-top:.5rem; text-align:center; }
.home-tool h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin:.9rem 0 .6rem; }
.home-tool h2 span { color: var(--red); }
.home-tool p { color: var(--muted); max-width: 64ch; font-size:1.05rem; }
.home-tool-btn {
  display:inline-flex; align-items:center; gap:.5rem; margin-top:1.4rem;
  background: var(--red-deep); color:#fff; font-weight:700; font-size:.98rem;
  padding:.9rem 1.6rem; border-radius:12px; box-shadow: var(--shadow-red);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.home-tool-btn:hover { transform: translateY(-2px); background:#f12340; box-shadow:0 26px 70px -22px rgba(227,25,55,.6); }
.home-tool-link { color: var(--muted); font-weight:600; font-size:.9rem; margin-left:1.2rem; border-bottom:1px solid transparent; }
.home-tool-link:hover { color:#fff; border-color: var(--line); }
@media (max-width:600px){ .home-tool-link{ display:block; margin:1rem 0 0; } }

/* ---------- Home stats strip ---------- */
.home-stats { max-width: var(--maxw); margin: 2.5rem auto 0; padding: 0 1.5rem; display:grid; grid-template-columns: repeat(4, 1fr); gap:1rem; }
@media (max-width:760px){ .home-stats { grid-template-columns: repeat(2, 1fr); } }
.home-stats .stat { background: var(--surface); border:1px solid var(--line); border-radius: var(--r); padding:1.3rem 1.2rem; }
.home-stats .stat-n { font-family: var(--display); font-weight:800; font-size: clamp(1.7rem, 3vw, 2.3rem); color:#fff; letter-spacing:-.02em; line-height:1; }
.home-stats .stat:nth-child(2) .stat-n { color: var(--green); } /* 8-yr savings = positive → green */
.home-stats .stat-l { color: var(--muted); font-size:.82rem; margin-top:.5rem; line-height:1.4; }

/* ---------- Home guides ---------- */
.home-guides { max-width: var(--maxw); margin: 3rem auto 0; padding: 0 1.5rem; }
.section-head { margin: 0 0 1.2rem; display:flex; align-items:baseline; gap:1rem; flex-wrap:wrap; }
.section-head h2 { font-size: 1.7rem; }
.section-head p { color: var(--dim); font-size:.98rem; }

.news-grid {
  max-width: var(--maxw); margin:0 auto; padding: 0;
  display:grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap:1.1rem;
}
.news-card {
  position:relative; background: var(--surface); border:1px solid var(--line);
  border-radius: var(--r); padding:1.5rem 1.4rem; overflow:hidden;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s;
}
.news-card::before { content:""; position:absolute; left:0; top:0; height:2px; width:0; background: var(--red); transition: width .3s var(--ease); }
.news-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.16); background: var(--raised); }
.news-card:hover::before { width:100%; }
.news-card h3 { font-size:1.12rem; color:#fff; margin-bottom:.45rem; transition: color .2s; }
.news-card:hover h3 { color: var(--text); }
.news-card p { color: var(--muted); font-size:.92rem; }

/* legacy news placeholder bits (kept minimal) */
.categories{ display:none; }
.card-tag{ display:inline-block; font-family:var(--mono); font-size:.62rem; letter-spacing:.16em; text-transform:uppercase; color:var(--red); margin-bottom:.5rem; }
.card-meta{ display:flex; gap:.8rem; margin-top:.8rem; color:var(--dim); font-size:.74rem; font-family:var(--mono); }

/* ---------- About ---------- */
.about-hero { max-width: 820px; margin:0 auto; padding: 4rem 1.5rem 1rem; }
.about-hero h1 { font-size: clamp(2.2rem,5vw,3.2rem); }
.about-hero .tagline { color: var(--muted); font-size:1.1rem; margin-top:.6rem; }
.about-body { max-width:820px; margin:0 auto; padding:1rem 1.5rem 4rem; color: var(--muted); }
.about-body h2 { color:#fff; font-size:1.4rem; margin:1.8rem 0 .5rem; }
.about-body ul { margin-left:1.1rem; } .about-body li { margin:.3rem 0; }
.about-body a { color: var(--ice); }

/* ---------- Editorial article (guides, methodology) ---------- */
.calc-seo { max-width: 720px; margin: 0 auto; padding: 2.6rem 1.5rem 4rem; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.calc-seo h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); color:#fff; margin-bottom: 1rem; letter-spacing:-.025em; }
.calc-seo h2 { font-family: var(--display); font-size: 1.55rem; color:#fff; margin: 2.3rem 0 .6rem; }
.calc-seo h3 { font-family: var(--display); font-size: 1.12rem; color: var(--red); margin: 1.7rem 0 .4rem; }
.calc-seo p, .calc-seo li { font-size: 1.06rem; }
.calc-seo ul { margin: .6rem 0 .6rem 1.2rem; } .calc-seo li { margin: .35rem 0; }
.calc-seo strong { color: var(--text); }
.calc-seo a { color: var(--ice); border-bottom: 1px solid rgba(110,162,255,.28); transition: border-color .2s; }
.calc-seo a:hover { border-color: var(--ice); }
.calc-seo em { color: var(--muted); }

/* Editorial data table */
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius: var(--r); margin: 1rem 0; }
.data-table { width:100%; border-collapse:collapse; font-size:.92rem; min-width:520px; }
.data-table th { text-align:left; padding:.7rem .9rem; background: var(--raised); color: var(--muted); font-family:var(--body); font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; position:sticky; top:0; }
.data-table td { padding:.6rem .9rem; border-top:1px solid var(--line-soft); color: var(--text); }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.data-table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align:right; color:#fff; }
.data-table td:last-child { color: var(--muted); font-size:.86rem; }

/* ---------- Ad units (config-driven) ---------- */
.ad-unit { max-width: 720px; margin: 2rem auto; min-height: 90px; text-align:center; }
.ad-unit::before { content:"Advertisement"; display:block; font-size:.6rem; letter-spacing:.15em; text-transform:uppercase; color: var(--dim); margin-bottom:.3rem; }
.ad-unit:empty, .ad-unit:has(ins:empty) { display:none; }

/* ---------- Footer ---------- */
footer { border-top:1px solid var(--line); margin-top:4rem; background: var(--bg-2); }
.footer-inner { max-width: var(--maxw); margin:0 auto; padding:2.5rem 1.5rem; display:flex; justify-content:space-between; gap:1.5rem; flex-wrap:wrap; }
.footer-inner p { color: var(--dim); font-size:.85rem; }
.footer-links { display:flex; gap:1.3rem; flex-wrap:wrap; }
.footer-links a { color: var(--muted); font-size:.85rem; font-weight:600; }
.footer-links a:hover { color:#fff; }
.footer-legal { width:100%; gap:1.1rem; padding-top:.2rem; }
.footer-legal a { color: var(--dim); font-weight:700; }
.footer-fine { width:100%; color: var(--dim); font-size:.72rem; line-height:1.5; opacity:.85; margin-top:.2rem; }

/* ============ New-Owner FAQ ============ */
.faq-jump { max-width:980px; margin:1.4rem auto .4rem; padding:0 1.5rem; display:flex; flex-wrap:wrap; gap:.55rem; }
.faq-jump a { font-family:var(--mono); font-size:.78rem; font-weight:600; letter-spacing:.02em; color:var(--ice); text-decoration:none; padding:.4rem .75rem; border:1px solid var(--line); border-radius:999px; background:var(--surface); transition:.16s var(--ease); }
.faq-jump a:hover { border-color:var(--ice); color:#fff; transform:translateY(-1px); }
.faq-wrap { max-width:820px; margin:1.2rem auto 0; padding:0 1.5rem; }
.faq-cat { scroll-margin-top:90px; margin-top:2.4rem; }
.faq-cat > h2 { font-family:var(--display); font-size:1.05rem; text-transform:uppercase; letter-spacing:.12em; color:var(--red); border-bottom:1px solid var(--line); padding-bottom:.5rem; margin-bottom:.4rem; }
.faq-item { scroll-margin-top:90px; padding:1.3rem 0; border-bottom:1px solid var(--line); }
.faq-item:target { background:linear-gradient(90deg,rgba(110,162,255,.08),transparent); box-shadow:-1.5rem 0 0 rgba(110,162,255,.08); }
.faq-q { display:flex; gap:.5rem; align-items:baseline; font-family:var(--display); font-weight:700; font-size:1.18rem; line-height:1.3; color:#fff; }
.faq-anchor { color:var(--line); font-family:var(--mono); font-weight:700; text-decoration:none; flex:none; transition:.16s var(--ease); }
.faq-q:hover .faq-anchor { color:var(--ice); }
.faq-a { margin-top:.6rem; color:var(--body); font-size:.97rem; line-height:1.62; }
.faq-a p { margin:.5rem 0; }
.faq-a ul { margin:.5rem 0 .5rem 1.1rem; display:flex; flex-direction:column; gap:.3rem; }
.faq-a li { padding-left:.2rem; }
.faq-a strong { color:#fff; }
.faq-a em { color:var(--muted); font-style:italic; }
.faq-a a { color:var(--ice); }

/* ============ Share rows ============ */
.share-row { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; max-width:820px; margin:1.6rem auto; padding:.9rem 1.1rem; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.share-label { color:var(--muted); font-size:.9rem; font-weight:600; margin-right:.2rem; }
.share-btn { font-family:var(--mono); font-size:.8rem; font-weight:700; letter-spacing:.01em; color:#fff; text-decoration:none; padding:.5rem .9rem; border-radius:8px; border:1px solid var(--line); background:#15151d; cursor:pointer; transition:.16s var(--ease); }
.share-btn:hover { border-color:var(--ice); transform:translateY(-1px); }
.share-btn.share-primary { background:var(--red); border-color:var(--red); }
.share-btn.share-primary:hover { background:var(--red-deep); border-color:var(--red-deep); }

/* ============ FAQ cheat sheet ============ */
.cheat { max-width:980px; margin:1.8rem auto 0; padding:0 1.5rem; }
.cheat .section-head h2 { font-family:var(--display); font-size:1.4rem; color:#fff; }
.cheat .section-head p { color:var(--muted); font-size:.92rem; margin:.25rem 0 1rem; }
.cheat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:.7rem; }
.cheat-card { display:flex; flex-direction:column; gap:.25rem; padding:.9rem 1rem; background:linear-gradient(150deg,#15151f,#101017); border:1px solid var(--line); border-radius:11px; }
.cheat-card:hover { border-color:var(--red); }
.cheat-v { font-family:var(--mono); font-size:1.25rem; font-weight:700; color:var(--green); line-height:1.1; }
.cheat-k { color:var(--muted); font-size:.78rem; line-height:1.3; }

/* ============ Home: New to Tesla? Start here ============ */
.start-here { max-width:1100px; margin:2.5rem auto; padding:0 1.5rem; }
.start-here .section-head { text-align:center; margin-bottom:1.4rem; }
.start-here .section-head h2 { font-family:var(--display); font-size:2rem; color:#fff; }
.start-here .section-head p { color:var(--muted); font-size:1rem; max-width:620px; margin:.5rem auto 0; }
.start-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1.1rem; }
.start-card { display:flex; flex-direction:column; gap:.5rem; padding:1.6rem 1.5rem; background:linear-gradient(160deg,#16161f,#101017); border:1px solid var(--line); border-radius:16px; text-decoration:none; transition:.18s var(--ease); position:relative; overflow:hidden; }
.start-card::after { content:""; position:absolute; inset:0 0 auto 0; height:3px; background:linear-gradient(90deg,var(--red),var(--ice)); opacity:0; transition:.18s var(--ease); }
.start-card:hover { border-color:var(--red); transform:translateY(-4px); box-shadow:var(--shadow); }
.start-card:hover::after { opacity:1; }
.start-icon { font-size:2rem; line-height:1; }
.start-card h3 { font-family:var(--display); font-size:1.3rem; color:#fff; }
.start-card p { color:var(--muted); font-size:.92rem; line-height:1.55; flex:1; }
.start-cta { color:var(--red); font-weight:800; font-size:.92rem; margin-top:.3rem; }

/* ============ Breadcrumbs ============ */
.breadcrumb { max-width:1100px; margin:1.1rem auto -.4rem; padding:0 1.5rem; font-size:.82rem; color:var(--dim); display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.breadcrumb a { color:var(--muted); text-decoration:none; font-weight:600; }
.breadcrumb a:hover { color:var(--ice); }
.breadcrumb [aria-current="page"] { color:var(--muted); }
.crumb-sep { color:var(--line); }

/* Tesla referral cards (image tiles like the Amazon products, but linking to the referral) */
.tesla-ref .section-head h2 { color:#fff; }
.tesla-ref .prod-media { display:flex; align-items:center; justify-content:center; aspect-ratio:16/9; }
.tesla-ref .ref-img { width:100%; height:100%; object-fit:cover; object-position:center; }
.tesla-ref .ref-card .prod-art { width:92%; height:86%; }
.tesla-ref .ref-card:hover { border-color:var(--red); }
.tesla-ref .prod-cta { color:var(--red); }
.tesla-ref .tesla-ref-fine { color:var(--dim); font-family:var(--body); font-size:.76rem; line-height:1.5; font-style:normal; margin:.7rem auto 0; max-width:760px; padding:0 1.5rem; text-align:center; }
.tesla-ref .tesla-ref-fine a { color:var(--ice); font-style:normal; }

/* Home tools showcase */
.home-toolsrow { max-width: var(--maxw); margin: 3rem auto; padding: 0 1.5rem; }
.home-toolsgrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1rem; margin-top:1.25rem; }
.home-toolsgrid a { display:flex; flex-direction:column; gap:.3rem; background:var(--bg-2); border:1px solid var(--line); border-radius:14px; padding:1.1rem 1.2rem; text-decoration:none; transition:border-color .15s var(--ease), transform .15s var(--ease); }
.home-toolsgrid a:hover { border-color:var(--red); transform:translateY(-3px); }
.home-toolsgrid .htg-ic { font-size:1.5rem; }
.home-toolsgrid b { color:#fff; font-family:var(--display); font-size:1.05rem; font-weight:700; }
.home-toolsgrid a > span:last-child { color:var(--muted); font-size:.86rem; line-height:1.45; }
.home-toolsgrid .htg-deal { border-color:rgba(255,45,77,.35); background:linear-gradient(180deg,rgba(255,45,77,.06),var(--bg-2)); }

/* Home latest-news section */
.home-news { max-width: var(--maxw); margin: 3rem auto; padding: 0 1.5rem; }
.home-news .news-grid a:hover { border-color: var(--red); }

/* --- Tesla Robotaxi Tracker --- */
.rt-page h2 { margin-top:2rem; }
.rt-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:.75rem; margin:1.5rem 0; }
@media (max-width:680px){ .rt-stats { grid-template-columns:repeat(2,1fr); } }
.rt-stat { background:var(--surface,#15151f); border:1px solid var(--line,#23232f); border-radius:14px; padding:1rem; text-align:center; }
.rt-stat .rt-num { display:block; font-family:var(--display); font-size:2rem; font-weight:800; color:var(--red); line-height:1; }
.rt-stat label { display:block; font-size:.72rem; color:var(--muted,#9aa0ad); margin-top:.5rem; line-height:1.35; }
.rt-stat label a { color:var(--muted,#9aa0ad); text-decoration:underline; }
.rt-legend { display:flex; flex-wrap:wrap; gap:1rem; font-size:.78rem; color:var(--muted,#9aa0ad); margin:.5rem 0 1rem; }
.rt-dot { display:inline-block; width:9px; height:9px; border-radius:50%; vertical-align:middle; margin-right:.35rem; }
.rt-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:1rem; }
.rt-card { background:var(--surface,#15151f); border:1px solid var(--line,#23232f); border-radius:14px; padding:1.1rem 1.15rem; }
.rt-card.rt-driverless { border-left:3px solid #4ade80; }
.rt-card.rt-human { border-left:3px solid #fbbf24; }
.rt-card.rt-preparing { border-left:3px solid #7c8696; opacity:.94; }
.rt-head { display:flex; justify-content:space-between; align-items:flex-start; gap:.5rem; margin-bottom:.6rem; }
.rt-head h3 { color:#fff; font-size:1.15rem; margin:0; }
.rt-state { color:var(--muted,#9aa0ad); font-weight:500; }
.rt-badge { flex:0 0 auto; font-size:.66rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#cfd3da; background:rgba(255,255,255,.05); border:1px solid var(--line,#23232f); border-radius:999px; padding:.25rem .5rem; white-space:nowrap; }
.rt-row { display:flex; gap:.6rem; font-size:.82rem; padding:.32rem 0; border-top:1px solid rgba(255,255,255,.05); }
.rt-row:first-of-type { border-top:none; }
.rt-k { flex:0 0 5.7rem; color:var(--muted,#9aa0ad); }
.rt-v { flex:1; color:#dfe2e7; }
.rt-note { font-size:.82rem; color:#c7cbd2; margin:.6rem 0 .3rem; line-height:1.45; }
.rt-src { font-size:.68rem; color:var(--muted,#9aa0ad); margin:.3rem 0 0; }
.rt-src a { color:var(--muted,#9aa0ad); text-decoration:underline; }

/* Robotaxi tracker — clean/minimal layout */
.rt-page h1 { font-size: clamp(1.9rem,4vw,2.6rem); }
.rt-lede { color:var(--muted); font-size:1rem; margin:.4rem 0 1.3rem; }
.rt-h { font-size:.74rem; text-transform:uppercase; letter-spacing:.16em; color:var(--muted); border-bottom:1px solid var(--line); padding-bottom:.45rem; margin:2rem 0 1rem; }
.rt-foot { font-size:.72rem; color:var(--muted); margin-top:1.8rem; line-height:1.55; }
.rt-foot a { color:var(--muted); text-decoration:underline; }

/* Nav Robotaxi counter pill */
.nav-rt { display:inline-flex; align-items:center; gap:.3rem; background:rgba(255,45,77,.10); border:1px solid rgba(255,45,77,.32); color:#fff !important; border-radius:999px; padding:.26rem .6rem !important; font-weight:700; line-height:1; }
.nav-rt:hover { background:rgba(255,45,77,.18); }
.nav-rt b { color:var(--red); font-family:var(--mono); font-size:.92rem; letter-spacing:-.01em; }
.nav-rt-lbl { font-size:.66rem; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
@media (max-width:760px){ .nav-rt-lbl { display:none; } }

/* === Robotaxi dashboard (graphical) === */
.rt-page { max-width:1080px; margin:0 auto; padding:2.4rem 1.5rem 3.5rem; }
.rt-hero { display:flex; justify-content:space-between; align-items:flex-end; gap:1.5rem; flex-wrap:wrap; margin-bottom:1.4rem; }
.rt-hero h1 { font-size:clamp(1.9rem,4vw,2.7rem); margin:.3rem 0 .25rem; }
.rt-sub { color:var(--muted); max-width:60ch; font-size:.93rem; }
.rt-live { display:inline-flex; align-items:center; gap:.4rem; font-family:var(--mono); font-size:.64rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.rt-livedot { width:8px; height:8px; border-radius:50%; background:#4ade80; box-shadow:0 0 0 0 rgba(74,222,128,.55); animation:rtpulse 2.2s infinite; }
@keyframes rtpulse { 0%{box-shadow:0 0 0 0 rgba(74,222,128,.5);} 70%{box-shadow:0 0 0 6px rgba(74,222,128,0);} 100%{box-shadow:0 0 0 0 rgba(74,222,128,0);} }
@media (prefers-reduced-motion: reduce){ .rt-livedot { animation:none; } }
.rt-big { flex:0 0 auto; text-align:center; background:linear-gradient(180deg,rgba(255,45,77,.14),rgba(255,45,77,.04)); border:1px solid rgba(255,45,77,.32); border-radius:18px; padding:1rem 1.7rem; color:#fff !important; }
.rt-big-n { display:block; font-family:var(--mono); font-size:3.4rem; font-weight:800; line-height:1; color:var(--red); letter-spacing:-.03em; }
.rt-big-l { display:block; font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-top:.35rem; }
.rt-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:.7rem; margin:0 0 1.5rem; }
@media (max-width:620px){ .rt-kpis { grid-template-columns:repeat(2,1fr); } }
.rt-kpi { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:.85rem 1rem; }
.rt-kpi-v { display:block; font-family:var(--mono); font-size:1.65rem; font-weight:800; color:#fff; line-height:1; }
.rt-kpi-v.rt-accent { color:var(--green); }
.rt-kpi-l { display:block; font-size:.7rem; color:var(--muted); margin-top:.4rem; line-height:1.3; }
.rt-cols { display:grid; grid-template-columns:.82fr 1.18fr; gap:1rem; margin-bottom:1.5rem; }
@media (max-width:760px){ .rt-cols { grid-template-columns:1fr; } }
.rt-panel { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:1.1rem 1.2rem; }
.rt-bh { font-size:.72rem; text-transform:uppercase; letter-spacing:.14em; color:var(--muted); margin:0 0 1rem; }
.rt-bh small { text-transform:none; letter-spacing:0; color:var(--dim); font-weight:500; }
.rt-grow { display:flex; align-items:flex-end; gap:1.6rem; height:128px; padding:0 1rem; }
.rt-grow-col { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; }
.rt-grow-bar { width:100%; max-width:64px; min-height:6px; background:rgba(255,255,255,.12); border-radius:7px 7px 0 0; }
.rt-grow-bar.rt-grow-cur { background:linear-gradient(180deg,var(--red),var(--red-deep)); }
.rt-grow-lab { margin-top:.5rem; font-size:.7rem; color:var(--muted); text-align:center; }
.rt-grow-lab b { display:block; font-family:var(--mono); font-size:1.1rem; color:#fff; }
.rt-mini { font-size:.72rem; color:var(--muted); margin-top:1rem; }
.rt-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(132px,1fr)); gap:.6rem; }
.rt-tile { background:var(--raised); border:1px solid var(--line); border-left:3px solid #7c8696; border-radius:11px; padding:.7rem .75rem; }
.rt-tile.rt-driverless { border-left-color:#4ade80; }
.rt-tile.rt-human { border-left-color:#fbbf24; }
.rt-tile.rt-preparing { opacity:.82; }
.rt-tile-h { display:flex; align-items:center; gap:.35rem; }
.rt-tile-h h3 { font-size:.88rem; color:#fff; margin:0; }
.rt-tile-h h3 span { color:var(--muted); font-weight:500; }
.rt-pill { display:inline-block; margin-top:.4rem; font-size:.58rem; text-transform:uppercase; letter-spacing:.04em; font-weight:700; color:#cbd0d8; }
.rt-tcars { margin-top:.45rem; }
.rt-tnum { font-family:var(--mono); font-size:1.3rem; font-weight:800; color:#fff; }
.rt-tunit { font-size:.64rem; color:var(--muted); margin-left:.25rem; }
.rt-tmuted { font-size:.78rem; color:var(--muted); font-style:italic; }
.rt-vinblock { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:1.1rem 1.2rem; }
.rt-vin-head { display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; margin-bottom:.8rem; }
.rt-vin-head .rt-bh { margin:0; }
.rt-search { background:var(--bg-2); border:1px solid var(--line); border-radius:9px; color:var(--text); padding:.5rem .8rem; font-family:var(--mono); font-size:.82rem; min-width:200px; }
.rt-search:focus { outline:none; border-color:var(--red); }
.rt-vin-wrap { max-height:430px; overflow:auto; border:1px solid var(--line); border-radius:10px; }
.rt-vin-table { width:100%; border-collapse:collapse; font-size:.8rem; }
.rt-vin-table thead th { position:sticky; top:0; background:var(--raised); text-align:left; padding:.55rem .8rem; font-size:.64rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); border-bottom:1px solid var(--line); }
.rt-vin-table td { padding:.5rem .8rem; border-bottom:1px solid var(--line-soft); color:var(--muted); }
.rt-vin-table td.rt-vin { font-family:var(--mono); color:#fff; letter-spacing:-.01em; }
.rt-vin-table tbody tr:hover { background:rgba(255,255,255,.03); }
.rt-foot { font-size:.7rem; color:var(--dim); margin-top:1.8rem; line-height:1.55; }
.rt-foot a { color:var(--muted); text-decoration:underline; }

/* Robotaxi: stacked panels + monthly bars + US dot map */
.rt-page > .rt-panel { margin-bottom: 1.4rem; }
.rt-months { display:flex; flex-direction:column; gap:.42rem; }
.rt-mrow { display:flex; align-items:center; gap:.7rem; }
.rt-mlab { flex:0 0 2.4rem; font-size:.72rem; color:var(--muted); font-family:var(--mono); text-transform:uppercase; letter-spacing:.04em; }
.rt-mtrack { flex:1; height:16px; background:rgba(255,255,255,.05); border-radius:5px; overflow:hidden; }
.rt-mfill { display:block; height:100%; background:linear-gradient(90deg,var(--red-deep),var(--red)); border-radius:5px; }
.rt-mval { flex:0 0 2.6rem; text-align:right; font-family:var(--mono); font-size:.82rem; font-weight:700; color:#fff; }
.rt-mfuture .rt-mval { color:var(--dim); font-weight:500; }
.rt-mfuture .rt-mtrack { opacity:.45; }
.rt-maplegend { display:flex; gap:.9rem; font-size:.72rem; color:var(--muted); }
.rt-maplegend span { display:inline-flex; align-items:center; gap:.3rem; }
.rt-map { width:100%; height:auto; display:block; margin-top:.3rem; }
.rt-map-us { fill:rgba(255,255,255,.045); stroke:rgba(255,255,255,.22); stroke-width:1.4; stroke-linejoin:round; }
.rt-maplab { fill:#dfe2e7; font-family:var(--body); font-size:19px; font-weight:600; paint-order:stroke; stroke:#0a0a0e; stroke-width:3px; }
