/* Teslin site. Same family as the apps: dark theme, Outfit headings (matches the wordmark), Inter text.
   Brand greens #41b74a to #81c441. Fonts are self-hosted (SIL Open Font License), Latin subset. */
@font-face { font-family: "Outfit"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/outfit.woff2") format("woff2-variations"); }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/inter.woff2") format("woff2-variations"); }

:root {
  --bg: #0d1014; --panel: #14181d; --card: #1b2027; --line: #2a313a;
  --text: #e8ebef; --text2: #c3cad3; --muted: #8d97a3;
  --g1: #41b74a; --g2: #81c441;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --r: 12px;
  --w: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text2); font: 16px/1.6 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--g2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--text); letter-spacing: -.015em; margin: 0; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(var(--w), 100% - 48px); margin-inline: auto; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; }
.logo { display: block; line-height: 0; }
.logo img { height: 30px; width: auto; }
.bar nav { display: flex; gap: 4px; }
.bar nav a { text-decoration: none; color: var(--text2); font-size: 15px; padding: 10px 12px; border-radius: 8px; }
.bar nav a:hover { color: var(--text); background: var(--panel); }

/* hero */
.hero { padding: clamp(56px, 11vw, 132px) 0 clamp(64px, 10vw, 120px); }
.kicker { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--g2); }
.hero h1 { font-size: clamp(42px, 7.4vw, 88px); line-height: 1.02; font-weight: 600; max-width: 13ch; }
.hl { background: linear-gradient(180deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 36em; margin: 28px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--text2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; }

.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); background: var(--panel); transition: background .15s, border-color .15s; }
.btn:hover { border-color: #3a434e; background: var(--card); }
.btn.go { background: var(--g1); border-color: var(--g1); color: #0b1a0c; }
.btn.go:hover { background: var(--g2); border-color: var(--g2); }

/* sections */
section { scroll-margin-top: 24px; }
.tools, .about, .contact { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 40px); font-weight: 600; }
.sec-head p { margin: 0; color: var(--muted); }

/* one row per tool: picture, then what it does */
.tool { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.shot { display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); line-height: 0; background: var(--panel); }
.shot img { width: 100%; height: auto; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.015); }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } .shot:hover img { transform: none; } }
.tag { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tool h3 { font-size: clamp(28px, 3vw, 36px); font-weight: 600; }
.tool-text > p { margin: 14px 0 0; }
.steps { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 2px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text2); font-size: 15px; }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s); flex: none; width: 22px; font: 600 13px var(--font); color: var(--g2); font-variant-numeric: tabular-nums; }

/* about */
.about h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 600; line-height: 1.1; max-width: 18ch; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 36px; }
.cols p { margin: 0; font-size: 17px; }

/* contact */
.contact h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; max-width: 22ch; }
.contact p { margin: 14px 0 0; }
.mail { display: inline-block; margin-top: 8px; font: 600 clamp(24px, 3vw, 32px)/1.2 var(--display); color: var(--text); text-decoration: none; border-bottom: 2px solid var(--g1); padding-bottom: 2px; }
.mail:hover { color: var(--g2); border-color: var(--g2); }

/* footer */
.foot { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }

@media (max-width: 820px) {
  .tool, .cols { grid-template-columns: 1fr; }
  .bar nav a { padding: 10px 8px; }
}
@media (max-width: 420px) {
  .bar { padding: 20px 0; }
  .logo img { height: 24px; }
  .bar nav a { font-size: 14px; padding: 12px 6px; }
}
