/* ternpilot.app — shared styles for the public pages */
:root {
  --bg: #f6f8fb; --card: #ffffff; --ink: #14202e; --muted: #5a6878; --line: #dde3ea;
  --accent: #1557d6; --magenta: #d1007a; --hero-a: #2f7bf0; --hero-b: #0b3a8c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1520; --card: #152131; --ink: #e8eef5; --muted: #9aabbd; --line: #26364a; --accent: #6ea2ff; --magenta: #ff3fa4; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--line); background: var(--card); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav.site { display: flex; gap: 16px; font-size: 15px; flex-wrap: wrap; }
nav.site a { color: var(--muted); text-decoration: none; font-weight: 600; }
nav.site a:hover, nav.site a[aria-current] { color: var(--ink); }

.hero { background: linear-gradient(var(--hero-a), var(--hero-b)); color: #fff; padding: 56px 0 48px; }
.hero .mark { width: 96px; height: 96px; color: #fff; }
.hero h1 { font-size: clamp(32px, 7vw, 46px); line-height: 1.15; margin: 12px 0 10px; }
.hero p { font-size: 19px; max-width: 34em; margin: 0; opacity: 0.95; }
.badge { display: inline-block; margin-top: 22px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.16); font-weight: 700; font-size: 15px; }

main { padding: 32px 0 56px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 8px 0 28px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.feature h3 { margin: 0 0 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

article h1 { font-size: 32px; line-height: 1.2; margin: 0 0 4px; }
article .updated { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
article h2 { font-size: 21px; margin: 32px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
article h3 { font-size: 17px; margin: 20px 0 4px; }
article ul { padding-left: 22px; }
article li { margin: 4px 0; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--magenta); border-radius: 10px; padding: 14px 16px; margin: 16px 0; }
.callout p { margin: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin: 12px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 20px 0 32px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer.site a { color: var(--muted); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email { font-size: 20px; font-weight: 700; word-break: break-all; }
.copy { font: inherit; font-size: 15px; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
