/* Steadymile site. Brand: docs/BRAND.md. Mobile first; 16px gutters. */
:root {
  --ink: #14171A;
  --paper: #F7F6F2;
  --card: #FFFFFF;
  --mute: #5B6168;
  --rule: #E2E0D9;
  --lane: #F5C400;
  --lane-ink: #8A6D00;
  --go: #1E7A4C;
  --stop: #B3261E;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 14px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(20, 23, 26, .06), 0 8px 24px rgba(20, 23, 26, .07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--lane-ink); }
:focus-visible { outline: 3px solid var(--lane); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mute { color: var(--mute); }
.small { font-size: 14.5px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(247, 246, 242, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: none; gap: 22px; margin-left: auto; font-size: 15.5px; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.head-cta { margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } .head-cta { margin-left: 8px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: #2A2F35; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(20, 23, 26, .05); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* Lane line */
.lane { height: 6px; width: 120px; border-radius: 3px; margin: 18px 0 0;
  background: repeating-linear-gradient(90deg, var(--lane) 0 22px, transparent 22px 34px); }
.lane.center { margin-left: auto; margin-right: auto; }
.lane.long { width: 100%; opacity: .9; }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 88px 0; } }
.eyebrow { font: 600 13px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--lane-ink); margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(36px, 7vw, 64px); font-weight: 700; }
h2 { font-size: clamp(28px, 4.6vw, 42px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--mute); max-width: 620px; margin: 18px 0 0; }
.section-head { max-width: 700px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.dark { background: var(--ink); color: #F2F2EF; }
.dark .mute, .dark .lede { color: #B9BEC4; }
.dark .eyebrow { color: var(--lane); }
.dark a { color: #FFFFFF; }
.dark .btn-primary { background: var(--lane); color: var(--ink); border-color: var(--lane); }
.dark .btn-ghost { color: #FFFFFF; border-color: #FFFFFF; }
.band { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 96px; } .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 26px 0 0; font-size: 18px; }
.price-big { font: 600 clamp(30px, 5vw, 40px)/1 var(--mono); background: linear-gradient(transparent 62%, rgba(245, 196, 0, .55) 62%); padding: 0 4px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14.5px; color: var(--mute); padding: 0; list-style: none; }
.trust li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--lane); margin-right: 8px; vertical-align: 1px; }

/* Phone mockup with the watchdog alert */
.phone { position: relative; width: min(330px, 86vw); margin: 0 auto; aspect-ratio: 9 / 18.6; border-radius: 46px; background: #0B0D0F; padding: 12px; box-shadow: 0 30px 60px rgba(20, 23, 26, .25); }
.screen { position: relative; height: 100%; border-radius: 36px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; }
.phone .screen, .dark .phone .screen { color: var(--ink); }
.phone .mute, .dark .phone .mute { color: var(--mute); }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 26px; border-radius: 14px; background: #0B0D0F; z-index: 3; }
.app-top { padding: 50px 18px 10px; }
.app-top .tiny { font-size: 12px; color: var(--mute); }
.app-top .total { font: 600 30px/1.1 var(--mono); margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--go); margin-top: 8px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 0 rgba(30, 122, 76, .5); animation: pulse 2s infinite; }
.drives { padding: 6px 12px; display: grid; gap: 8px; }
.drive { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 12.5px; }
.drive b { font-size: 13.5px; }
.drive .mi { font: 600 14px var(--mono); text-align: right; }
.drive .tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; justify-self: end; }
.tag.biz { background: #FFF3BF; color: #6B5400; }
.tag.per { background: #ECEDEF; color: #4A5056; }
.alert { position: absolute; left: 10px; right: 10px; top: 44px; background: rgba(255, 255, 255, .96); border-radius: 18px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(20, 23, 26, .2); font-size: 12.5px; transform: translateY(-140%); opacity: 0; z-index: 2; }
.alert .ttl { font-weight: 700; color: var(--stop); display: flex; align-items: center; gap: 6px; }
.alert .fix { margin-top: 8px; display: inline-block; background: var(--ink); color: #FFF; border-radius: 999px; padding: 5px 12px; font-weight: 600; }
.phone.animate .alert { animation: alert 9s ease-in-out infinite; }
.phone.animate .status { animation: status 9s steps(1) infinite; }
.phone.show-alert .alert { transform: none; opacity: 1; }
.phone.show-alert .status { color: var(--stop); }
.phone.show-alert .status .dot { background: var(--stop); animation: none; }
@media (max-width: 600px) { .phone { width: min(270px, 74vw); aspect-ratio: 9 / 16; border-radius: 40px; } .screen { border-radius: 30px; } }
@keyframes alert { 0%, 18% { transform: translateY(-140%); opacity: 0; } 24%, 62% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(-140%); opacity: 0; } }
@keyframes status { 0%, 22% { color: var(--go); } 23%, 66% { color: var(--stop); } 67%, 100% { color: var(--go); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 122, 76, .45); } 70% { box-shadow: 0 0 0 8px rgba(30, 122, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 122, 76, 0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone.animate .alert { animation: none; transform: none; opacity: 1; }
  .phone.animate .status, .status .dot { animation: none; }
}

/* Grids and cards */
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--mute); }
.card .big { font: 600 34px/1.1 var(--mono); margin: 4px 0 6px; color: var(--ink); }
.card.link { text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
.card.link:hover { border-color: var(--ink); transform: translateY(-2px); }
.step { counter-increment: step; }
.step::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #FFF; font: 600 15px var(--mono); margin-bottom: 14px; }
.steps { counter-reset: step; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: #FFF6CC; display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }
.split { display: grid; gap: 32px; align-items: center; }
.split > *, .grid > *, .hero-grid > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: var(--lane) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%2314171A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.dark .checks li::before { background-color: var(--lane); }
.callout { border-left: 4px solid var(--lane); background: var(--card); padding: 16px 20px; border-radius: 0 12px 12px 0; }
.note { font-size: 14px; color: var(--mute); margin-top: 14px; }

/* Pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.plan { position: relative; }
.plan.best { border: 2px solid var(--ink); }
.plan.founder { border: 2px dashed #C9A200; }
.plan.founder .flag { background: var(--ink); color: #FFFFFF; }
.founder-line { margin: 12px 0 0; font-size: 16px; color: var(--mute); }
.founder-line b { color: var(--ink); }
.plan .flag { position: absolute; top: -13px; left: 24px; background: var(--lane); color: var(--ink); font: 700 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.plan .price { font: 600 40px/1 var(--mono); margin: 14px 0 4px; }
.plan .per { color: var(--mute); font-size: 15px; }
.plan ul { padding-left: 18px; color: var(--mute); margin: 16px 0 0; }

/* Calculators */
.calc { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.calc .row { display: grid; gap: 16px; }
@media (min-width: 640px) { .calc .row.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--mute); font-size: 13.5px; }
input[type="number"], input[type="email"], input[type="text"], select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #CFCCC3; border-radius: 12px; background: #FFF; font: 500 17px var(--sans); color: var(--ink);
}
input[type="number"] { font-family: var(--mono); }
input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245, 196, 0, .5); }
input[type="range"] { width: 100%; accent-color: var(--ink); }
.result { margin-top: 22px; padding: 20px; border-radius: 14px; background: var(--ink); color: #FFF; }
.result .label { color: #B9BEC4; font-size: 14px; }
.result .value { font: 600 clamp(32px, 6vw, 44px)/1.1 var(--mono); color: var(--lane); }
.result .sub { color: #D8DBDE; font-size: 14.5px; margin-top: 6px; }
.bars { display: grid; gap: 10px; margin-top: 18px; }
.bar { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 14.5px; }
.bar .track { height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 7px; background: #FFF; transition: width .3s ease; }
.bar.us .fill { background: var(--lane); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; background: var(--card); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); font-weight: 600; background: #FBFAF7; }
tr:last-child td { border-bottom: 0; }
tr.us td { background: #FFFBE6; }
tr.us td:first-child { font-weight: 700; }
td.c { text-align: center; }
.small-table table { min-width: 0; }

/* History chart */
.history { display: grid; gap: 12px; margin-top: 8px; }
.hist { display: grid; grid-template-columns: 96px 1fr 90px; gap: 12px; align-items: center; }
.hist .track { display: block; height: 28px; background: #EFEDE7; border-radius: 8px; overflow: hidden; }
.hist .fill { display: block; height: 100%; background: var(--ink); border-radius: 8px; }
.hist.us .fill { background: var(--lane); }

/* FAQ */
details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font: 500 22px/1 var(--mono); color: var(--mute); }
details[open] summary::after { content: '\2212'; }
details p, details ul { color: var(--mute); margin: 12px 0 0; }

/* Forms */
.signup { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
@media (min-width: 560px) { .signup { flex-direction: row; } .signup input { flex: 1; } }
.signup .hp { position: absolute; left: -9999px; }
.form-msg { min-height: 22px; font-size: 15px; margin-top: 8px; }
.form-msg.ok { color: var(--go); }
.dark .form-msg.ok { color: var(--lane); }
.form-msg.err { color: var(--stop); }

/* Article pages */
.article { max-width: 760px; }
.article h2 { font-size: clamp(24px, 3.4vw, 30px); margin: 44px 0 12px; }
.article h3 { margin: 28px 0 8px; }
.article p, .article li { color: #2B3036; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 6px 0; }
.page-head { padding: 48px 0 8px; }
@media (min-width: 900px) { .page-head { padding: 72px 0 12px; } }
.crumbs { font-size: 14px; color: var(--mute); margin-bottom: 16px; }
.crumbs a { color: var(--mute); }
.sources { font-size: 14px; color: var(--mute); }
.sources li { margin: 4px 0; }
.downloads { display: grid; gap: 12px; margin-top: 18px; }
.download { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; text-decoration: none; }
.download:hover { border-color: var(--ink); }
.download .ext { font: 600 13px var(--mono); background: var(--ink); color: #FFF; border-radius: 8px; padding: 6px 8px; }
.preview { border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); background: #FFF; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 48px 0 40px; font-size: 15px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 0 0 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--ink); }
.foot-grid a:hover { text-decoration: underline; }
.fine { color: var(--mute); font-size: 13.5px; margin-top: 28px; }
