/* ============================================================
   MotorTach.com - stylesheet
   Dark + orange theme, matched to the app UI.
   ============================================================ */

:root {
  /* Brand palette (pulled from the app UI) */
  --bg:            #0a0d14;   /* near-black navy */
  --bg-2:          #10151f;   /* raised panels */
  --bg-3:          #161d2b;   /* cards / inputs */
  --line:          #232c3d;   /* hairline borders */

  --orange:        #f5821f;   /* the "Tach" orange */
  --orange-bright: #ff8a00;
  --orange-soft:   rgba(245,130,31,0.12);
  --green:         #3ddc5b;   /* gauge green */
  --red:           #e5432f;   /* gauge red */

  --text:          #f2f5fa;   /* primary text */
  --text-dim:      #9aa6b8;   /* secondary text */
  --text-faint:    #64708250; /* faint */

  --radius:        14px;
  --radius-lg:     22px;
  --maxw:          1120px;
  --gutter:        clamp(20px, 5vw, 48px);

  --shadow:        0 18px 50px rgba(0,0,0,0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle radial glow behind the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 600px at 78% -8%, rgba(245,130,31,0.10), transparent 60%),
    radial-gradient(900px 700px at 8% 4%, rgba(61,220,91,0.05), transparent 55%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-bright); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-dim); max-width: 60ch; }
.text-center { text-align: center; }
.center-block { margin-left: auto; margin-right: auto; }

/* ---------- Wordmark ---------- */
.wordmark { font-weight: 800; letter-spacing: -0.02em; }
.wordmark .m { color: var(--text); }
.wordmark .t { color: var(--orange); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-weight: 700;
  font-size: 1rem;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #1a0f00; }
.btn--primary:hover { background: var(--orange-bright); color: #1a0f00; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

/* App Store badge button */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  background: #000;
  border: 1px solid #2b2b2b;
  color: #fff;
  padding: .6em 1.2em .6em 1.1em;
  border-radius: 12px;
  transition: transform .15s ease, border-color .2s ease;
}
.appstore:hover { transform: translateY(-2px); border-color: #555; color: #fff; }
/* inert "coming soon" variant - not yet a link */
.appstore--soon { cursor: default; opacity: .92; }
.appstore--soon:hover { transform: none; border-color: #2b2b2b; color: #fff; }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .small { font-size: .65rem; letter-spacing: .04em; opacity: .85; line-height: 1; display: block; }
.appstore .big { font-size: 1.15rem; font-weight: 600; line-height: 1.1; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(10,13,20,0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.nav__brand { display: flex; align-items: center; gap: .6em; font-size: 1.25rem; }
.nav__brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a.link { color: var(--text-dim); font-weight: 600; font-size: .95rem; }
.nav__links a.link:hover, .nav__links a.link.active { color: var(--text); }
.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; }

@media (max-width: 820px) {
  .nav__links {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a.link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn, .nav__links .appstore { margin-top: 14px; justify-content: center; }
  .nav__toggle { display: block; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-top: clamp(40px, 7vw, 80px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { color: var(--orange); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--text-dim); margin-bottom: 1.6em; max-width: 34ch; }
.hero__cta { margin-bottom: 1.4em; }
/* Hero teaser for the second half of the product. The hero prices the
   Stethoscope, so it has to say what one is before the price makes sense. */
.hero__also {
  font-size: .95rem; color: var(--text-dim); line-height: 1.55;
  margin: -1em 0 1.6em; max-width: 42ch;
}
.hero__also-tag {
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--orange); border: 1px solid rgba(245,130,31,.42); border-radius: 999px;
  padding: .28em .62em; margin-right: .55em; white-space: nowrap;
}
.hero__note { font-size: .9rem; color: var(--text-dim); display: flex; align-items: center; gap: .5em; }
.req-note { font-size: .82rem; color: var(--text-dim); opacity: .85; margin: 12px 0 0; }
.req-note strong { color: var(--green); font-weight: 700; }
.hero__note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.hero__demo { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__phone {
  position: relative;
  width: 280px;
  max-width: 100%;
  /* 1170x2532 device screenshot with its 120px iOS status bar cropped off, so
     the app screen fills the bezel. content-box so the 8px bezel does not eat
     into the ratio and shrink the crop. */
  box-sizing: content-box;
  aspect-ratio: 1170 / 2412;
  border-radius: 40px;
  border: 8px solid #1b2231;
  box-shadow: var(--shadow), 0 0 0 1px #000;
  overflow: hidden;
}
/* two stacked frames - settling underneath, locked cross-fades in ~3-4s later, loops */
.hero__phone .frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* bottom-aligned so the overflow is taken off the top: the status bar */
  object-fit: cover; object-position: center bottom;
}
.hero__phone .frame--locked {
  opacity: 0;
  -webkit-animation: mtLock 8s ease-in-out infinite;
  animation: mtLock 8s ease-in-out infinite;
  will-change: opacity;
  -webkit-transform: translateZ(0);   /* promote to its own layer on iOS */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
@-webkit-keyframes mtLock {
  0%, 28%  { opacity: 0; }
  40%      { opacity: 1; }
  90%      { opacity: 1; }
  100%     { opacity: 0; }
}
@keyframes mtLock {
  0%, 28%  { opacity: 0; }   /* SETTLING / NO LOCK  (~2.4s) */
  40%      { opacity: 1; }   /* cross-fade to LOCKED (~1s)  */
  90%      { opacity: 1; }   /* hold LOCKED with values (~4s) */
  100%     { opacity: 0; }   /* fade back and repeat */
}
.hero__demo-caption { font-size: .85rem; color: var(--text-dim); margin: 0; display: flex; align-items: center; gap: .5em; }
.hero__demo-caption .dot--settling { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
/* Reduce Motion: keep the gentle cross-dissolve (a fade is not vestibular
   motion), just slow it down so it's extra calm. */
@media (prefers-reduced-motion: reduce) {
  .hero__phone .frame--locked { -webkit-animation-duration: 12s; animation-duration: 12s; }
}

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__sub, .hero h1 { max-width: none; }
  .hero__cta .btn-row, .hero__note { justify-content: center; }
  .hero__phone { max-width: 260px; }
}

/* ============================================================
   Steps ("how it works")
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
}
.step__num {
  font-size: .8rem; font-weight: 800; letter-spacing: .1em;
  color: var(--orange); margin-bottom: 14px;
}
.step h3 { margin-bottom: .4em; }
.step p { color: var(--text-dim); margin: 0; font-size: .97rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   Feature cards
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.feature {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(245,130,31,0.4); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--orange-soft);
  color: var(--orange);
  margin-bottom: 18px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--text-dim); margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ============================================================
   Split / showcase
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { display: grid; place-items: center; }
.split__phone {
  width: 280px;
  max-width: 100%;
  border-radius: 36px;
  border: 8px solid #1b2231;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.split__phone { position: relative; box-sizing: content-box; aspect-ratio: 1170 / 2412; }
.split__phone img {
  position: absolute; top: 0; left: 0; width: 100%; height: auto; display: block;
  transform: translateY(-4.74%);   /* crop the 120px status bar, as in the hero */
}
.split ul { list-style: none; padding: 0; margin: 1.2em 0 0; }
.split ul li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--text-dim); }
.split ul li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ============================================================
   Industries
   ============================================================ */
.industries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
.industry {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  background: var(--bg-2);
}
.industry h3 { color: var(--text); }
.industry p { color: var(--text-dim); margin: 0; }
.industry .tag { color: var(--orange); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 700px) { .industries { grid-template-columns: 1fr; } }

/* application grid + VFD note */
.appgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.app {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform .2s ease, border-color .2s ease;
}
.app:hover { transform: translateY(-3px); border-color: rgba(245,130,31,0.35); }
.app h3 { font-size: 1.02rem; margin: 0 0 .35em; }
.app p { color: var(--text-dim); font-size: .88rem; margin: 0; line-height: 1.5; }
@media (max-width: 900px) { .appgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .appgrid { grid-template-columns: 1fr; } }

.note-callout {
  margin-top: 34px;
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--orange-soft);
  border: 1px solid rgba(245,130,31,0.28);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.note-callout svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: 2px; }
/* Neutral variant: scope limits, not a warning */
.note-callout--plain { background: var(--bg-2); border-color: var(--line); margin-top: 16px; }
.note-callout--plain svg { color: var(--text-dim); }
.note-callout--plain p { color: var(--text-dim); }
.note-callout p { margin: 0; color: #e7d9c8; font-size: .95rem; line-height: 1.55; }
.note-callout strong { color: var(--text); }

/* safety / no-electrical-exposure callout */
.safety-band {
  display: flex; gap: 26px; align-items: center;
  background: linear-gradient(120deg, #14100a, var(--bg-2));
  border: 1px solid rgba(245,130,31,0.25);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 42px);
}
.safety-band__icon {
  width: 60px; height: 60px; border-radius: 16px; flex: none;
  display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange);
}
.safety-band__icon svg { width: 32px; height: 32px; }
.safety-band h3 { margin: 0 0 .45em; font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
.safety-band p { margin: 0; color: var(--text-dim); }
.safety-band strong { color: var(--text); }
@media (max-width: 640px) { .safety-band { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   Stats band
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat__num { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--orange); }
.stat__label { color: var(--text-dim); font-size: .95rem; }
.stat__note { color: var(--text-dim); font-size: .78rem; opacity: .75; margin-top: .45em; line-height: 1.4; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 26px; } }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(120deg, #1a1207, var(--bg-2));
  border: 1px solid rgba(245,130,31,0.28);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}
.cta-band h2 { margin-bottom: .4em; }
.cta-band p { color: var(--text-dim); max-width: 52ch; margin: 0 auto 1.6em; }
.cta-band .btn-row { justify-content: center; }

/* ============================================================
   About page
   ============================================================ */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,60px); align-items: center; }
.about-hero__photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-3);
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-hero__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 40px 22px 16px;
  background: linear-gradient(to top, rgba(6,9,14,0.94) 20%, rgba(6,9,14,0));
}
.about-hero__photo figcaption strong { font-size: 1.05rem; color: var(--text); font-weight: 800; }
.about-hero__photo figcaption span { font-size: .84rem; color: var(--text-dim); }
.about-hero__photo figcaption small { font-size: .74rem; color: var(--orange); margin-top: 4px; }
.prose { max-width: 70ch; }
.prose p { color: #d4dbe6; }
.prose h2 { margin-top: 1.6em; }

/* From-the-archives video cards */
.archives { margin-top: 2.4em; }
.archives h2 { margin-bottom: .2em; }
.archives > p { color: var(--text-dim); margin-bottom: 0; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 1.4em; }
.video-card { display: block; color: var(--text); }
.video-card__thumb {
  position: relative; display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000;
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease, opacity .2s ease; }
.video-card:hover .video-card__thumb img { transform: scale(1.05); opacity: .8; }
.video-card__play {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(245,130,31,0.94); color: #160c00;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  transition: transform .2s ease;
}
.video-card:hover .video-card__play { transform: scale(1.08); }
.video-card__play svg { width: 24px; height: 24px; margin-left: 2px; }
.video-card__cap { display: block; margin-top: .7em; font-size: .9rem; color: var(--text-dim); line-height: 1.45; }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .about-hero { grid-template-columns: 1fr; } }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,56px); align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .93rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-size: .97rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 24px; align-items: flex-start; }
.contact-info .info-item svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: 3px; }
.contact-info .info-item .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); }
.contact-info .info-item .value { font-weight: 600; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Placeholder markers - anything the owner still needs to fill in
   ============================================================ */
.ph {
  border-bottom: 2px dotted var(--orange);
  color: var(--orange-bright);
}
[data-placeholder] { position: relative; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 54px 0 30px;
  margin-top: 40px;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-dim); font-size: .93rem; margin-top: .8em; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--text); font-size: .95rem; margin-bottom: 10px; font-weight: 500; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--text-dim); font-size: .85rem;
}

/* ==========================================================================
   DOCUMENT PAGES (privacy, support) - long-form prose inside .prose
   ========================================================================== */
.doc-meta { color: var(--text-dim); font-size: .9rem; margin: 0; }

/* Centred reading column, and headings scaled for a document rather than a hero */
.doc-page .doc-head, .doc-page .prose { max-width: 74ch; margin-left: auto; margin-right: auto; }
.doc-page .prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); margin-top: 2em; }
.doc-page .prose h2.mt-0 { margin-top: 0; }
.doc-page .prose h1 + .doc-meta { margin-top: -.2em; }

.prose h3 { margin: 2em 0 .7em; color: var(--text); font-size: 1.1rem; letter-spacing: -0.01em; }
.prose h2 + h3 { margin-top: 1.3em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; color: #d4dbe6; }
.prose li { margin-bottom: .6em; line-height: 1.65; }
.prose li::marker { color: var(--orange); font-weight: 700; }
.prose li > p:last-child { margin-bottom: 0; }
.prose ol > li { padding-left: .3em; }
.prose strong { color: var(--text); }
.prose a strong { color: inherit; }   /* keep bold links looking like links */
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 5px; padding: .12em .4em;
}
.prose .note-callout p { color: #e7d9c8; }
.doc-signoff { color: var(--text-dim); font-size: .9rem; font-style: italic; margin: 0; }

/* ==========================================================================
   YOUR MOTORS - answers "how much setup is there?" before it becomes a doubt
   ========================================================================== */
.motors-two {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px); margin-top: 40px; align-items: start;
}
.mshot { margin: 0; }
/* Each capture is cropped to its useful region with a transform, so the
   original 1320x2868 files are never modified. */
.mshot__crop {
  display: block; position: relative; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line); background: #05070b;
  box-shadow: var(--shadow); max-width: 430px; margin: 0 auto;
}
.mshot__crop img { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
/* Same aspect on both so the two phones balance side by side.
   list:   y 380..1540 of 2868 - quick reading through the third saved motor
   detail: y 400..1560 of 2868 - motor type through the derived-values note */
.mshot__crop--list,
.mshot__crop--detail { aspect-ratio: 1320 / 1160; }
.mshot__crop--list img   { transform: translateY(-13.25%); }
.mshot__crop--detail img { transform: translateY(-13.95%); }
.mshot figcaption {
  margin: 14px auto 0; max-width: 430px; text-align: center;
  font-size: .9rem; color: var(--text-dim); line-height: 1.55;
}
.mshot figcaption strong { color: var(--text); }
@media (max-width: 720px) { .motors-two { grid-template-columns: 1fr; gap: 34px; } }

/* ==========================================================================
   STETHOSCOPE
   ========================================================================== */
.steth {
  background: linear-gradient(180deg, var(--bg) 0%, #0c1119 50%, var(--bg) 100%);
  /* Trailing padding trimmed: the next section brings its own generous top
     padding, and stacked they left a viewport of dead space. */
  padding-bottom: clamp(36px, 4vw, 56px);
}

.steth-split {
  display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: clamp(28px, 4vw, 48px); align-items: center; margin-top: 38px;
}
.steth-shot {
  position: relative; overflow: hidden; border-radius: 20px;
  border: 1px solid var(--line); background: #05070b;
  aspect-ratio: 1320 / 1790; box-shadow: var(--shadow);
  max-width: 390px; margin-left: auto; margin-right: auto; width: 100%;
}
/* Crop past the empty top of the capture: the playhead sits at the start, so
   nothing has scrolled the waterfall yet. Done with a transform so the source
   file is never modified. */
.steth-shot img { position: absolute; top: 0; left: 0; width: 100%; height: auto; transform: translateY(-38%); }
.steth-shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(5,7,11,.92) 55%);
  font-size: .78rem; color: var(--text-dim); text-align: center;
}

.cap { margin-bottom: 22px; }
.cap:last-child { margin-bottom: 0; }
.cap h3 { font-size: 1.08rem; margin: 0 0 .35em; display: flex; align-items: center; gap: .55em; }
.cap h3 svg { width: 19px; height: 19px; color: var(--orange); flex: none; }
.cap p { color: var(--text-dim); margin: 0; font-size: .96rem; line-height: 1.6; }

/* Bearing progression: rendered natively, not a screenshot.
   .prog-head is a SUBHEAD inside the Stethoscope section, deliberately smaller
   than a section h2 so the section reads as one block rather than three. */
.prog-head { text-align: center; margin: clamp(44px, 5vw, 62px) 0 0; }
.prog-head h2 { font-size: clamp(1.3rem, 2.3vw, 1.62rem); margin-bottom: .35em; }
.prog-head .lead { font-size: .98rem; max-width: 68ch; }
.prog-head--tight { margin-top: clamp(34px, 3.6vw, 46px); }
.prog-head--tight .lead { margin-bottom: 0; }
.prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.prog-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; display: flex; flex-direction: column; gap: 10px;
}
.prog-card__stage { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.prog-card__name { font-weight: 700; font-size: .98rem; line-height: 1.3; }
.prog-card__detail { font-size: .84rem; color: var(--text-dim); line-height: 1.5; margin: 0; flex: 1; }
.chip {
  align-self: flex-start; font-size: .78rem; font-weight: 800; letter-spacing: .04em;
  padding: .38em .7em; border-radius: 7px; border: 1px solid;
}
.chip--smooth    { color: #3ddc5b; background: rgba(61,220,91,.10);  border-color: rgba(61,220,91,.35); }
.chip--ticking   { color: #e8b931; background: rgba(232,185,49,.10); border-color: rgba(232,185,49,.35); }
.chip--impulsive { color: #ff6a55; background: rgba(229,67,47,.12);  border-color: rgba(229,67,47,.40); }
.prog-card__lock { font-size: .74rem; color: var(--text-dim); letter-spacing: .04em; }
.prog-card--abstain { border-color: rgba(245,130,31,.30); }
.prog-card--abstain .prog-card__lock { color: var(--orange); }

.prog-axis { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .8rem; color: var(--text-dim); }
.prog-axis__bar {
  flex: 1; height: 3px; border-radius: 3px; opacity: .55;
  background: linear-gradient(90deg, #3ddc5b, #e8b931 38%, #e5432f 78%);
}

/* The baseline argument: the reason to buy, so it gets panel weight */
.baseline {
  margin-top: clamp(44px, 5vw, 66px); text-align: center;
  background: linear-gradient(180deg, rgba(245,130,31,.08), rgba(245,130,31,.02));
  border: 1px solid rgba(245,130,31,.28); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
}
.baseline h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: .25em auto .55em; max-width: 26ch; }
.baseline p { color: #d4dbe6; max-width: 64ch; margin: 0 auto; font-size: 1rem; line-height: 1.65; }
.baseline strong { color: var(--orange); }

.lib-intro { text-align: center; color: var(--text-dim); font-size: .92rem; margin: 30px 0 0; }
.lib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.lib-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.lib-item h4 { margin: 0 0 .4em; font-size: .96rem; }
.lib-item p { margin: 0; color: var(--text-dim); font-size: .88rem; line-height: 1.55; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 38px; align-items: start; }
.price-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column;
}
.price-card--free { border-color: rgba(61,220,91,.30); }
.price-card--free .price-card__tag,
.price-card--free .price-card__amt { color: var(--green); }
.price-card--paid { border-color: rgba(245,130,31,.42); background: linear-gradient(180deg, rgba(245,130,31,.08), var(--bg) 60%); }
.price-card--paid .price-card__tag { color: var(--orange); }
.price-card__tag { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.price-card__amt { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.price-card__amt small { font-size: .42em; font-weight: 600; color: var(--text-dim); letter-spacing: 0; margin-left: .5em; }
.price-card__sub { color: var(--text-dim); font-size: .9rem; margin: .6em 0 1.2em; }
.price-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.price-list li { position: relative; padding-left: 26px; margin-bottom: .62em; color: #d4dbe6; font-size: .93rem; line-height: 1.5; }
.price-list li::before {
  content: ""; position: absolute; left: 4px; top: .48em; width: 9px; height: 5px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.price-list strong { color: var(--text); }
.price-card__foot { margin-top: auto; font-size: .84rem; color: var(--text-dim); line-height: 1.55; }
.price-aside { text-align: center; margin-top: 26px; color: var(--text-dim); font-size: .92rem; }
.price-aside strong { color: var(--text); }

@media (max-width: 900px) {
  .steth-split { grid-template-columns: 1fr; }
  .prog { grid-template-columns: repeat(2, 1fr); }
  .lib { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .prog { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
}

/* utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
