/* Toms Welding and Auto app pages. No external fonts, no scripts. */
:root {
  color-scheme: light dark;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede7;
  --text: #1c1d1a;
  --muted: #5a5e56;
  --line: #e2e0d8;
  --a: #3b5368;
  --a2: #e0a040;
  --on-a: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 20, 15, .06), 0 8px 24px rgba(20, 20, 15, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111311;
    --surface: #1a1d1a;
    --surface-2: #222622;
    --text: #e8e9e3;
    --muted: #a3a89e;
    --line: #2d312c;
    --a: #a9c2d8;
    --on-a: #10161b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}
body[data-app] { --a: var(--accent); }
@media (prefers-color-scheme: dark) {
  body[data-app] { --a: var(--accent-dark); --on-a: #121212; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--a); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #2b2f2a, #5a5f55); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 7px; height: 4px; border-radius: 2px; background: #f28c28; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; line-height: 1.1; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); background: var(--surface-2); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 44px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 340px at 12% -10%, color-mix(in srgb, var(--a) 22%, transparent), transparent 70%),
    radial-gradient(600px 260px at 95% 10%, color-mix(in srgb, var(--a2) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.app-icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a); }
h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -.025em; }
.tagline { margin: 8px 0 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.chips li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--a); margin-right: 7px; vertical-align: 1px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--a); color: var(--on-a); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.price { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Sections */
section { padding: 36px 0; }
h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.015em; line-height: 1.2; margin: 0 0 18px; }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0 0 24px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--a) 16%, transparent); color: var(--a); font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.005em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: cover; border-radius: 22px; border: 6px solid var(--surface); outline: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2); }
.shots figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--a); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--a) 14%, var(--surface)), var(--surface)); }
.contact h2 { margin-bottom: 8px; }
.contact p { margin: 0 0 6px; color: var(--muted); }
.contact ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.contact .mail { font-weight: 700; word-break: break-all; }

/* App list */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.app-card { display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--card-a) 10%, var(--surface)), var(--surface) 55%); }
.app-card .head { display: flex; gap: 16px; align-items: center; }
.app-card img { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
.app-card h2 { font-size: 21px; margin: 0; }
.app-card .head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.app-card > p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.app-card .links { display: flex; gap: 8px; flex-wrap: wrap; }
.app-card .links a { font-size: 14px; padding: 8px 14px; }
.app-card .links .btn-primary { background: var(--card-a); }
@media (prefers-color-scheme: dark) { .app-card { --card-a: var(--card-a-dark) !important; } .app-card .links .btn-primary { color: #121212; } }

/* Privacy article */
.crumbs { font-size: 14px; color: var(--muted); margin: 28px 0 0; }
.crumbs a { color: var(--muted); }
.policy-head { display: flex; gap: 18px; align-items: center; margin: 18px 0 8px; }
.policy-head img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); }
.policy-head h1 { font-size: clamp(28px, 4.2vw, 40px); }
.updated { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.glance { margin: 26px 0 8px; }
.glance h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--a); margin-bottom: 12px; }
.glance ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.glance li { padding-left: 28px; position: relative; font-weight: 600; font-size: 15px; }
.glance li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--a) 18%, transparent); border: 2px solid var(--a); }
.glance li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 8px; border: solid var(--a); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.policy { padding: 8px 0 40px; }
.policy h2 { font-size: 21px; margin: 34px 0 10px; }
.policy p, .policy li { font-size: 16.5px; }
.policy ul { padding-left: 22px; }
.policy li { margin: 6px 0; }
.policy li::marker { color: var(--a); }

footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

.page-intro { padding: 56px 0 18px; }
.page-intro p { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 10px 0 0; }

.notfound { text-align: center; padding: 90px 0; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 36px 0 28px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 18px; }
  .app-icon { width: 88px; height: 88px; border-radius: 22px; }
  .grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots li { scroll-snap-align: start; }
  .glance ul { grid-template-columns: 1fr; }
  .top .wrap { flex-wrap: wrap; gap: 6px 12px; padding: 10px 0 8px; min-height: 0; }
  .brand { white-space: nowrap; }
  .brand small { display: none; }
  .top nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; margin-inline: -10px; }
  .top nav a { white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .top nav a { transition: background-color .15s, filter .15s; }
}
@media print {
  .top, footer, .cta-row { display: none; }
  body { background: #fff; color: #000; }
}
