/* The public site's look (the user, 2026-10-18, decisions.md): the Athena OBD site's polish in the app's own colors
   (app.autolingo.bmw Resources/Styles/Colors.xaml: light pages under a graphite header, the amber Primary, the logo's
   orange for accents on dark): a warm glow behind the hero, big Inter headings, the app in a drawn phone, cards with soft
   shadows, a graphite band and footer, a scroll reveal. Loaded after bootstrap and site.css by _Layout only, everything
   under body.public: the admin pages (_AdminLayout) keep their own look */

body.public {
  --header: #262626;
  --header-deep: #141414;
  --page: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --outline: #e1e1e1;
  --outline-strong: #c8c8c8;
  --text: #212121;
  --text-2: #6e6e6e;
  --text-muted: #919191;
  /* the app's Primary (5.0:1 on white, white text on it); the logo's orange only on dark or for large shapes */
  --primary: #b45309;
  --primary-deep: #92400e;
  --primary-bright: #ff7a1a;
  --primary-tint: rgba(180, 83, 9, 0.08);
  --accent: linear-gradient(135deg, #b45309 0%, #c2410c 100%);
  --glow: rgba(180, 83, 9, 0.35);
  --success: #1b873f;
  --warning-text: #9a5b00;
  --error: #c62828;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.14);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.04), 0 20px 44px -20px rgba(120, 53, 15, 0.32);
  --radius: 18px;

  min-height: 100vh;
  background-color: var(--page);
  background-image:
    radial-gradient(1000px 560px at 82% -120px, rgba(255, 122, 26, 0.16), transparent 70%),
    radial-gradient(760px 460px at -12% 6%, rgba(243, 146, 0, 0.07), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html:has(body.public) {
  font-size: 16px;
  scroll-behavior: smooth;
}

.public h1, .public h2, .public h3, .public .h1, .public .h2, .public .h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.public h1, .public .h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 700;
}

.public h2, .public .h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 700;
}

.public h2.h4, .public h2.h5, .public h2.h6 {
  font-size: 1.3rem;
  font-weight: 600;
}

.public h3, .public .h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.public a {
  text-underline-offset: 3px;
}

.gradient-text {
  background: linear-gradient(100deg, #92400e 0%, #b45309 45%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* the header: the app's graphite title bar, sticky, a little see-through */
.public .navbar.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  margin-bottom: 0 !important;
  min-height: 64px;
  background: rgba(38, 38, 38, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid #3a3a3a;
}

.public .navbar.site-header .container-fluid {
  max-width: 1200px;
  padding-inline: 20px;
}

.public .navbar.site-header .nav-link {
  color: #d4d4d4;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
}

.public .navbar.site-header .nav-link:hover, .public .navbar.site-header .nav-link:focus {
  color: #fff;
  background: rgba(255, 122, 26, 0.16);
}

.public > .container {
  max-width: 1200px;
  padding-inline: 20px;
}

.public main {
  padding-top: 32px;
}

/* buttons: the amber gradient with a soft glow, and quiet outlined ones */
.public .btn {
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}

.public .btn-primary, .public #submit {
  color: #fff;
  border: 0;
  background: var(--accent);
  box-shadow: 0 8px 22px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 0.7rem 1.5rem;
}

.public .btn-primary:hover, .public .btn-primary:focus, .public #submit:hover {
  color: #fff;
  background: var(--accent);
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(180, 83, 9, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.public .btn-primary:disabled, .public .btn-primary.disabled {
  background: var(--accent);
  opacity: 0.5;
  transform: none;
}

.public .btn-outline-primary {
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--outline-strong);
  padding: 0.7rem 1.5rem;
}

.public .btn-outline-primary:hover {
  color: var(--primary-deep);
  background: var(--primary-tint);
  border-color: var(--primary);
}

.public .btn-sm {
  padding: 0.4rem 0.9rem;
}

/* forms: rounder, with the amber focus ring */
.public .form-control, .public .form-select, .public .compat .form-control, .public .compat .form-select,
.public .purchase .form-control, .public .purchase .form-select, .public .home-check .form-control,
.public .purchase-check .form-control, .public .hero-signup-row .form-control {
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  border-color: var(--outline-strong);
  background-color: #fff;
}

.public .form-select {
  padding-right: 2.4rem;
}

.public .form-control:focus, .public .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(180, 83, 9, 0.18);
}

/* sections: generous spacing, an eyebrow line over the heading */
.public .home-section {
  border-top: 0;
  padding: 72px 0 0;
  margin: 0;
}

.public .home-section > p, .public .home-section > ul {
  max-width: 820px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  color: var(--text-2);
  font-size: 1.1rem;
}

/* the home page's hero: the words on the left, the app on a phone on the right */
.public .home-hero.home-hero-app {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 24px 0 8px;
}

.public .home-hero h1 {
  margin-bottom: 22px;
}

.public .home-lead {
  color: #404040;
  font-size: 1.1rem;
  max-width: 620px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.95rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(27, 135, 63, 0.6);
}

.public .home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.public .home-explore {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 18px 0 0;
}

@media (max-width: 900px) {
  .public .home-hero.home-hero-app {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* the phone: a drawn bezel around a real screenshot, a warm glow behind it */
.public .app-shot {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
}

.public .app-shot::before {
  content: "";
  position: absolute;
  inset: 8% 0 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.32), rgba(243, 146, 0, 0.12) 55%, transparent 75%);
  filter: blur(24px);
  z-index: 0;
}

.public .app-shot picture {
  position: relative;
  z-index: 1;
  display: block;
  width: min(320px, 78vw);
  padding: 11px;
  border-radius: 50px;
  background: linear-gradient(145deg, #4a4a4a, #141414 40%, #2e2e2e);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.2), inset 0 0 0 2px #050505;
  transform: rotate(-3deg);
}

.public .app-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 40px;
  box-shadow: none;
}

@media (max-width: 900px) {
  .public .app-shot picture {
    transform: none;
  }
}

/* the adapter strip under the headline: a card */
.public .hero-adapter {
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.public .hero-adapter:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 83, 9, 0.45);
  box-shadow: var(--shadow-lift);
}

.public .hero-adapter-photo, .public .adapter-photo {
  border-radius: 12px;
}

/* the sign-up at the top before launch */
.public .hero-signup {
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 20px;
  background: linear-gradient(160deg, #fff4e5, #ffffff 65%);
  box-shadow: var(--shadow-lift);
  padding: 20px 22px;
}

/* the features: one card per tab of the app, lifting on hover */
.public .features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.public .feature {
  position: relative;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.public .feature:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 83, 9, 0.4);
  box-shadow: var(--shadow-lift);
}

.public .feature-wide {
  grid-column: 1 / -1;
  background: linear-gradient(160deg, #fff4e5, #ffffff 55%);
  border-color: rgba(180, 83, 9, 0.28);
}

.public .feature p {
  color: #404040;
}

.public .feature p:last-child {
  margin-bottom: 0;
}

.public .feature-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 600;
}

.public .feature-icon {
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 14px;
  color: var(--primary);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.18), rgba(255, 122, 26, 0.05));
  border: 1px solid rgba(180, 83, 9, 0.25);
}

@media (max-width: 760px) {
  .public .features {
    grid-template-columns: 1fr;
  }
}

/* tags: Coming, In development */
.public .soon {
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 999px;
  padding: 1px 9px;
}

/* panels: the check, the order's check */
.panel, .public .home-check, .public .purchase-check {
  padding: 28px;
  border: 1px solid var(--outline);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.public .home-check {
  max-width: 720px;
}

/* the adapter offer and the cable */
.public .adapter-offer, .public .cable-offer {
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.public .socket-which {
  border-radius: 14px;
}

.public .buy-once {
  font-size: 1.15rem;
  font-weight: 600;
}

/* the order pages */
.public .purchase-option {
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public .purchase-option.chosen {
  border-color: var(--primary);
  background: linear-gradient(160deg, #fff4e5, #ffffff 60%);
  box-shadow: var(--shadow-lift);
}

.public .purchase-summary {
  border-radius: 14px;
  background: var(--surface);
}

.public .purchase-why, .public .purchase-returns, .public .support-returns {
  border-radius: 0 12px 12px 0;
}

.public .round20-warning {
  border-radius: 14px;
}

/* the call to action band at the end of the home page: graphite, like the app's title bar, with the logo's orange glow */
.cta {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  padding: 52px 32px;
  border-radius: 30px;
  text-align: center;
  color: #f2f2f2;
  background: radial-gradient(620px 260px at 50% 0%, rgba(255, 122, 26, 0.34), transparent 70%), linear-gradient(160deg, #2e2e2e, #1b1b1b 60%, #141414);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
}

.cta h2 {
  color: #fff;
  margin-bottom: 0.4em;
}

.cta p {
  color: #c8c8c8;
  margin-inline: auto;
  max-width: 640px;
}

.cta a:not(.btn) {
  color: #ffb877;
}

.cta .home-actions, .cta .store-buttons {
  justify-content: center;
}

.cta .btn-outline-primary {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.cta .btn-outline-primary:hover {
  color: #fff;
  background: rgba(255, 122, 26, 0.18);
  border-color: rgba(255, 122, 26, 0.6);
}

.cta .eyebrow {
  color: #ffb877;
}

/* lists with green ticks */
.public .checks {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  max-width: 860px;
}

.public .checks li {
  position: relative;
  padding-left: 30px;
}

.public .checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(27, 135, 63, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B873F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* small cards side by side */
.public .mini-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.public .mini-cards > div {
  padding: 24px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public .mini-cards h3 {
  margin-bottom: 0.4em;
}

.public .mini-cards p {
  color: var(--text-2);
  margin: 0;
}

@media (max-width: 860px) {
  .public .mini-cards {
    grid-template-columns: 1fr;
  }
}

/* the footer: graphite, as the header */
.public .footer {
  margin-top: 96px;
  padding: 40px 0 56px;
  color: #b4b4b4 !important;
  font-size: 0.9rem;
  background: var(--header);
  border-top: 0 !important;
}

.public .footer .container {
  max-width: 1200px;
  padding-inline: 20px;
}

.public .footer a {
  color: #e4e4e4;
  text-decoration: none;
}

.public .footer a:hover {
  color: #ffb877;
}

.public .footer .footer-legal {
  color: #919191;
  font-size: 0.8rem;
}

/* scroll reveal: html.js (set in _Layout's head) and site.js adds .in as each section comes into view; without script or
   with reduced motion everything is simply shown */
.js .public .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .public .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.public) {
    scroll-behavior: auto;
  }

  .js .public .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .public .btn, .public .feature, .public .hero-adapter {
    transition: none;
  }
}

@media (max-width: 560px) {
  .public > .container, .public .navbar.site-header .container-fluid, .public .footer .container {
    padding-inline: 16px;
  }

  .public .feature, .panel, .public .home-check, .public .purchase-check, .public .adapter-offer, .public .cable-offer {
    padding: 20px;
  }

  .public .home-section {
    padding-top: 56px;
  }

  .cta {
    padding: 36px 18px;
    border-radius: 22px;
  }
}

/* the news sign-up as the closing band (apps live): the band full width, its form narrow */
.public .home .cta.signup {
  max-width: none;
}

.cta.signup form, .cta.signup > p {
  max-width: 460px;
  margin-inline: auto;
}

.cta .text-secondary {
  color: #b4b4b4 !important;
}

.cta .form-control {
  border-color: rgba(255, 255, 255, 0.2);
}

/* the old home page's narrow column and centred hero (site.css) lifted: the full width, left aligned */
.public .home {
  max-width: none;
}

.public .home-hero {
  text-align: left;
}

.public .home-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 700;
}

.public .home-section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 0.6em;
}

.public .home-section h2.h3, .public .mini-cards h2 {
  font-size: 1.2rem;
}

.public .home-hero-app .home-lead, .public .home-hero-app .home-explore, .public .home-hero-app .hero-signup {
  margin-left: 0;
}

.public .home-hero-app .home-explore, .public .home-hero-app .home-actions {
  justify-content: flex-start;
}

.public .app-shot img {
  max-width: none;
  margin: 0;
}

/* three phones in a row (_AppShowcase): the middle one raised, the outer ones turned in; one column on phones */
.public .phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 12px;
}

.public .phones figure {
  margin: 0;
  text-align: center;
}

.public .phone-frame {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.public .phone-frame::before {
  content: "";
  position: absolute;
  inset: 10% 6% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.26), transparent 72%);
  filter: blur(22px);
}

.public .phone-frame picture {
  position: relative;
  display: block;
  width: min(270px, 74vw);
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(145deg, #4a4a4a, #141414 40%, #2e2e2e);
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2), inset 0 0 0 2px #050505;
}

.public .phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 35px;
}

.public .phones figure:nth-child(1) .phone-frame picture {
  transform: rotate(-4deg);
}

.public .phones figure:nth-child(2) .phone-frame picture {
  transform: translateY(-18px);
}

.public .phones figure:nth-child(3) .phone-frame picture {
  transform: rotate(4deg);
}

.public .phones figcaption {
  color: var(--text-2);
  max-width: 300px;
  margin-inline: auto;
}

.public .phones figcaption strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .public .phones {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .public .phones .phone-frame picture {
    transform: none !important;
  }
}

/* the inner pages (compatibility, models, fault codes, service how-tos, comparisons, support, order): bigger page titles
   and section headings, the tables and lists on white cards */
.public main h1.h3, .public main h1.h4, .public main h1.h5 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45em;
}

.public main h2.h4 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.public main h2.h4.mt-4, .public main h2.h5.mt-4 {
  margin-top: 2.4rem !important;
}

.public main h2.h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

.public main h2.h6.text-secondary {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.public .compat {
  max-width: 980px;
}

.public .chassis-lead {
  color: #404040;
  font-size: 1.12rem;
  max-width: 760px;
}

.public .compat-form {
  padding: 22px 24px;
  border: 1px solid var(--outline);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public .compat-table, .public .fault-list, .public .fault-modules, .public .coding-settings, .public .compare-table {
  padding: 6px 22px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public .compare-table {
  border-collapse: separate;
  border-spacing: 0;
  padding: 0;
  overflow: hidden;
}

.public .compat-row:last-child, .public .fault-list li:last-child, .public .fault-modules li:last-child, .public .coding-settings details:last-child {
  border-bottom: 0;
}

.public .chassis-family {
  padding: 18px 20px;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public .chassis-family h2 {
  margin-bottom: 0.6rem;
}

.public .chassis-families {
  gap: 18px;
}

.public .chassis-family a {
  text-decoration: none;
  font-weight: 600;
}

.public .chassis-family a:hover {
  text-decoration: underline;
}

.public .support-faq {
  padding: 14px 18px;
  margin-bottom: 10px;
  border: 1px solid var(--outline) !important;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public .support-faq[open] {
  border-color: rgba(180, 83, 9, 0.35) !important;
}

/* the header's order button (after launch) */
.public .navbar.site-header .nav-order {
  margin-left: auto;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .public .navbar.site-header .nav-order {
    margin: 8px 0 4px;
    align-self: flex-start;
  }
}

/* buttons keep their label on one line (the fault code's "Look up" wrapped beside its field) */
.public .btn {
  white-space: nowrap;
}

/* the comparison pages' table: AutoLingo for BMW's column tinted */
.public .compare-table th:nth-child(2), .public .compare-table td:nth-child(2) {
  background: rgba(255, 122, 26, 0.06);
}

.public .compare-table thead th:nth-child(2) {
  color: var(--primary);
}

/* the order pages: the steps' fields on a card */
.public .purchase-fields {
  max-width: 480px;
  padding: 22px 24px;
  border: 1px solid var(--outline);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public .purchase {
  max-width: 720px;
}

.public .purchase .purchase-fields {
  max-width: none;
}

.public .btn-link, .public a.btn-link {
  color: var(--primary);
}

.public .btn-link:hover {
  color: var(--primary-deep);
}
