/* Moto-Log marketing site — premium dark theme matching the app.
   No external fonts / no trackers: everything ships from this origin. */

:root {
  --bg: #0a0e14;
  --bg-2: #0e131c;
  --surface: #131b26;
  --surface-2: #18212e;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f8;
  --muted: #9aa8bd;
  --faint: #67748a;
  --brand: #2f8bff;
  --brand-2: #5aa9ff;
  --brand-deep: #1565c0;
  --good: #34d27b;
  --warn: #ffb020;
  --bad: #ff5247;
  --radius: 18px;
  --maxw: 1120px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

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

html { scroll-behavior: smooth; }

/* The header is sticky, so anchored sections must clear it. */
section[id], [id] > .sec-head, .crumbs { scroll-margin-top: 84px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Blueprint grid backdrop, echoing the in-app schematic. */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(47, 139, 255, 0.05) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, rgba(47, 139, 255, 0.05) 1px, transparent 1px) 0 0 / 46px 46px,
    var(--bg);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 100%);
}
.glow {
  position: fixed;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(47, 139, 255, 0.22), transparent 70%);
  pointer-events: none;
}

/* ---------- Header ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(10, 14, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.12rem;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 14px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 11px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.lang-btn:hover { border-color: var(--brand); }
.lang-btn svg { width: 16px; height: 16px; opacity: 0.85; }
.lang-btn .chev { width: 12px; height: 12px; transition: transform 0.2s; }
.lang[data-open="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 6px;
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}
.lang[data-open="true"] .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
}
.lang-menu li:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.lang-menu li[aria-selected="true"] { color: var(--brand-2); font-weight: 600; }
.lang-menu li .tick { opacity: 0; }
.lang-menu li[aria-selected="true"] .tick { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(47, 139, 255, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 40px -8px rgba(47, 139, 255, 0.7); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 11px 18px;
  min-width: 190px;
}
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
a.store { transition: border-color 0.15s, transform 0.12s; }
a.store:hover { border-color: var(--brand); transform: translateY(-1px); }
.store .s-top { font-size: 0.7rem; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.store .s-main { font-size: 1.02rem; font-weight: 700; line-height: 1.15; }
.store .soon {
  margin-left: auto;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand-2);
  border: 1px solid rgba(90, 169, 255, 0.4);
  border-radius: 999px;
  padding: 3px 8px;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero { padding: 74px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-2);
  background: rgba(47, 139, 255, 0.1);
  border: 1px solid rgba(47, 139, 255, 0.28);
  padding: 7px 14px;
  border-radius: 999px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
h1.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 850;
  margin: 20px 0 18px;
}
h1 .hl {
  background: linear-gradient(120deg, var(--brand-2), var(--good));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 33em;
  margin-bottom: 28px;
}
.hero-note { margin-top: 16px; font-size: 0.86rem; color: var(--faint); }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(closest-side, rgba(47,139,255,0.28), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  max-width: 78vw;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, #1c2634, #0c1119);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.phone img { width: 100%; height: auto; display: block; border-radius: 30px; }
.phone .notch {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 24px;
  background: #05070b;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

/* ---------- Trust stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px 0 8px;
}
.stat {
  text-align: center;
  padding: 22px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat .num {
  font-size: 1.9rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--brand-2), var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .lbl { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ---------- Sections ---------- */
section.block { padding: 68px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.sec-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 820;
  margin: 12px 0 12px;
}
.sec-head p { color: var(--muted); font-size: 1.05rem; }

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s, border-color 0.18s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature .ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(47, 139, 255, 0.12);
  border: 1px solid rgba(47, 139, 255, 0.25);
  margin-bottom: 16px;
}
.feature .ic svg { width: 24px; height: 24px; stroke: var(--brand-2); }
.feature h3 { font-size: 1.12rem; margin-bottom: 7px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 0.96rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step .n {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--bg);
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* Showcase gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.shot {
  background: linear-gradient(160deg, #1c2634, #0c1119);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: auto; display: block; border-radius: 20px; }
.shot .cap { text-align: center; color: var(--muted); font-size: 0.9rem; padding: 12px 6px 6px; }

/* Partner teaser / CTA band */
.cta-band {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(47,139,255,0.16), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 52px 44px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 46em; margin: 0 auto 26px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 4px 20px;
  transition: border-color 0.15s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand-2);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; font-size: 0.98rem; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  margin-top: 40px;
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.foot-brand img { width: 28px; height: 28px; border-radius: 8px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 0.92rem; }
.foot-links a:hover { color: var(--text); }
.foot-copy { color: var(--faint); font-size: 0.85rem; width: 100%; }

/* Partner page specifics */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.who-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.who-card .ic {
  width: 54px; height: 54px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(47, 139, 255, 0.12);
  border: 1px solid rgba(47, 139, 255, 0.25);
}
.who-card .ic svg { width: 28px; height: 28px; stroke: var(--brand-2); }
.who-card h3 { margin-bottom: 8px; }
.who-card p { color: var(--muted); font-size: 0.96rem; }

.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.offer {
  display: flex; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.offer .ic { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(52,210,123,0.12); border: 1px solid rgba(52,210,123,0.28); }
.offer .ic svg { width: 22px; height: 22px; stroke: var(--good); }
.offer h3 { font-size: 1.05rem; margin-bottom: 5px; }
.offer p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { color: var(--muted); font-size: 0.92rem; }
.cookie-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.92rem; }
.cookie-link { color: var(--brand-2); font-size: 0.86rem; margin-left: auto; }
.cookie-link:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .pill { margin: 0 auto; }
  .features, .steps, .gallery, .who { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .cta-band { padding: 40px 22px; }
  .stat .num { font-size: 1.6rem; }
}

/* ================================================================
   Growth pages — service check, interval guide, brand pages, sharing
   ================================================================ */

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--faint); font-size: 0.86rem; padding-top: 26px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-2); }
.crumbs span.sep { opacity: 0.5; }

/* Compact page header used by the sub pages */
.page-head { padding: 34px 0 8px; max-width: 760px; }
.page-head h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 850; margin: 18px 0 16px; }
.page-head p { color: var(--muted); font-size: 1.08rem; }

/* Tool cards on the home page */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card {
  display: block;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s, border-color 0.18s;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.tool-card .ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(47,139,255,0.12); border: 1px solid rgba(47,139,255,0.25); margin-bottom: 16px; }
.tool-card .ic svg { width: 24px; height: 24px; stroke: var(--brand-2); fill: none; stroke-width: 2; }
.tool-card h3 { font-size: 1.12rem; margin-bottom: 7px; }
.tool-card p { color: var(--muted); font-size: 0.96rem; }
.tool-card .go { display: inline-block; margin-top: 14px; color: var(--brand-2); font-size: 0.92rem; font-weight: 650; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.form-card + .form-card { margin-top: 20px; }
.form-card > h2 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.form-card > .hint { color: var(--muted); font-size: 0.94rem; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.field input, .field select {
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  padding: 11px 13px;
  width: 100%;
  min-width: 0;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 17px center, right 12px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field input::placeholder { color: var(--faint); }

/* Last-service rows */
.last-rows { display: grid; gap: 10px; }
.last-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.last-row .nm { font-size: 0.95rem; font-weight: 600; }
.last-row .nm small { display: block; font-weight: 400; color: var(--faint); font-size: 0.8rem; }
.last-row input { background: var(--surface); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Result ---------- */
.summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 8px 15px;
  font-size: 0.9rem; font-weight: 650;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.chip .n { font-weight: 850; }
.chip.bad { color: var(--bad); border-color: rgba(255,82,71,0.4); background: rgba(255,82,71,0.09); }
.chip.warn { color: var(--warn); border-color: rgba(255,176,32,0.4); background: rgba(255,176,32,0.09); }
.chip.good { color: var(--good); border-color: rgba(52,210,123,0.4); background: rgba(52,210,123,0.09); }
.chip.unknown { color: var(--faint); }

.res-list { display: grid; gap: 10px; }
.res-row {
  display: grid;
  grid-template-columns: 12px 1.5fr 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 12px;
  padding: 13px 16px;
}
.res-row.s-overdue { border-left-color: var(--bad); }
.res-row.s-soon { border-left-color: var(--warn); }
.res-row.s-good { border-left-color: var(--good); }
.res-row.s-unknown { border-left-color: var(--faint); }
.res-row .dot2 { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.res-row.s-overdue .dot2 { background: var(--bad); box-shadow: 0 0 10px rgba(255,82,71,0.6); }
.res-row.s-soon .dot2 { background: var(--warn); box-shadow: 0 0 10px rgba(255,176,32,0.5); }
.res-row.s-good .dot2 { background: var(--good); }
.res-row .nm { font-weight: 650; font-size: 0.98rem; }
.res-row .nm small { display: block; font-weight: 400; color: var(--faint); font-size: 0.8rem; }
.res-row .meta { color: var(--muted); font-size: 0.9rem; }
.res-row .tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.res-row.s-overdue .tag { color: var(--bad); background: rgba(255,82,71,0.12); }
.res-row.s-soon .tag { color: var(--warn); background: rgba(255,176,32,0.12); }
.res-row.s-good .tag { color: var(--good); background: rgba(52,210,123,0.12); }
.res-row.s-unknown .tag { color: var(--faint); background: rgba(255,255,255,0.05); }
.res-empty { color: var(--muted); text-align: center; padding: 40px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }

/* ---------- Tables (intervals, model lists) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 13px 16px; font-size: 0.95rem; border-bottom: 1px solid var(--border); }
table.data thead th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg-2); position: sticky; top: 0; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: rgba(255,255,255,0.02); }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data td .why { color: var(--muted); }
table.data .grp { font-size: 0.78rem; color: var(--brand-2); text-transform: uppercase; letter-spacing: 0.07em; }

/* ---------- Brand hub ---------- */
.alpha { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.alpha a { padding: 6px 11px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); font-size: 0.86rem; font-weight: 650; color: var(--muted); }
.alpha a:hover { border-color: var(--brand); color: var(--text); }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.brand-card {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  transition: transform 0.15s, border-color 0.15s;
}
.brand-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.brand-card .b-name { font-weight: 700; letter-spacing: -0.01em; }
.brand-card .b-count { color: var(--faint); font-size: 0.82rem; }

/* ---------- Share + rate bands ---------- */
.share-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
}
.share-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.share-btn svg { width: 17px; height: 17px; }
.share-btn.is-done { border-color: var(--good); color: var(--good); }

/* Small print */
.note { color: var(--faint); font-size: 0.86rem; max-width: 70ch; margin-top: 18px; }
.note.center { margin-left: auto; margin-right: auto; text-align: center; }

@media (max-width: 900px) {
  .tools, .form-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .last-row { grid-template-columns: 1fr; gap: 8px; }
  .res-row { grid-template-columns: 10px 1fr auto; row-gap: 6px; gap: 10px; }
  /* Keep the status badge on the name's line; the detail wraps underneath. */
  .res-row .dot2 { grid-column: 1; grid-row: 1; }
  .res-row .nm { grid-column: 2; grid-row: 1; }
  .res-row .tag { grid-column: 3; grid-row: 1; justify-self: end; }
  .res-row .meta { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  .brand-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
}
