/* autosensa.com — original design system. No external fonts or images. */
:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eceff4;
  --text: #0f1720;
  --muted: #47515e;
  --border: #d3d9e1;
  --accent: #0b5cd5;
  --accent-text: #0a4fb8;
  --on-accent: #ffffff;
  --signal: #8a4b00;
  --signal-bg: #fff1dc;
  --focus: #0b5cd5;
  --hero-1: #e3ecfb;
  --hero-2: #f6f7f9;
  --mark-arc: #0f1720;
  --mark-dot: #e08a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 23 32 / 6%), 0 6px 20px rgb(15 23 32 / 6%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --surface: #121820;
    --surface-2: #161e28;
    --text: #e7ecf2;
    --muted: #a9b4c2;
    --border: #273342;
    --accent: #6aa8ff;
    --accent-text: #8dbcff;
    --on-accent: #08111d;
    --signal: #ffcf8a;
    --signal-bg: #2c2112;
    --focus: #8dbcff;
    --hero-1: #10223b;
    --hero-2: #0b0f14;
    --mark-arc: #e7ecf2;
    --mark-dot: #ffb547;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }
main:focus { outline: none; }

a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.125rem; margin: 0 0 0.35rem; }

code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }

.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}
.mark { width: 2rem; height: 2rem; flex: none; }
.mark-arc, .mark-a { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mark-arc { stroke: var(--mark-arc); }
.mark-a { stroke: var(--accent); }
.mark-dot { fill: var(--mark-dot); }
.wordmark { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.wordmark span { color: var(--accent-text); font-weight: 600; }

.mainnav ul, .subnav ul, .site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}
.mainnav a, .subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.mainnav a:hover, .subnav a:hover { background: var(--surface-2); }
.lang-switch { border: 1px solid var(--border); }

.subnav { border-top: 1px solid var(--border); }
.subnav ul { gap: 0.25rem; padding-block: 0.25rem; }
.subnav a { font-weight: 500; color: var(--muted); }
.subnav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
  font-weight: 700;
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background:
    linear-gradient(180deg, var(--hero-1), var(--hero-2));
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; margin: 0 0 1.25rem; }
.hero h1 { max-width: 22ch; }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 40rem) {
  .hero-grid { grid-template-columns: auto 1fr; gap: 2rem; }
}
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }

/* Sections */
.section { padding-block: clamp(2.25rem, 5vw, 4rem); }
.section-alt { background: var(--surface-2); }
.section-intro { color: var(--muted); margin: 0 0 1.5rem; max-width: 44rem; }
.note { color: var(--muted); margin: 1.25rem 0 0; }

.feature-grid, .product-grid, .shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.feature-grid li, .product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.feature-grid p, .product-card p { margin: 0; color: var(--muted); }

.product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.product-card { position: relative; display: flex; gap: 1rem; align-items: flex-start; }
.product-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.product-card .card-link { color: var(--text); text-decoration: none; }
.product-card .card-link:focus-visible { outline: none; }
/* The whole card is the link target; the heading link stays the accessible name. */
.product-card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.product-card:hover { border-color: var(--accent); }
.product-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.product-text { display: grid; gap: 0.4rem; }
.product-text h3 { font-size: 1.3rem; margin: 0; }
.product-card .product-tagline { color: var(--text); font-weight: 600; }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 0.4rem !important; }
.platform { font-size: 0.9rem; }

.pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--signal-bg);
  color: var(--signal);
  font-weight: 700;
  font-size: 0.9rem;
}
.pill-lg { font-size: 1rem; padding: 0.45rem 1rem; margin: 0; }
.pill-link { position: relative; z-index: 1; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; max-width: 50rem; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 3px solid var(--accent);
}

.shots img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }

/* Long-form pages */
.prose { max-width: 46rem; padding-block: clamp(2rem, 5vw, 3.5rem); }
.prose h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose address { font-style: normal; }
.meta { color: var(--muted); margin: 0 0 1.25rem; }
.not-found section + section { margin-top: 2.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-row { display: grid; gap: 0.5rem; padding-block: 1.5rem 2rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding-right: 0.75rem; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .mainnav a, .subnav a, .product-card { transition: background-color 0.15s ease, border-color 0.15s ease; }
}

@media (forced-colors: active) {
  .pill, .lang-switch, .product-card, .feature-grid li { border: 1px solid CanvasText; }
  .mark-arc, .mark-a { stroke: CanvasText; }
  .mark-dot { fill: CanvasText; }
}

@media print {
  .site-header nav, .subnav, .skip { display: none; }
  .hero, .section-alt { background: none; }
}
