/* ============================================================
   WeldMaster — marketing site styles · "the arc and the steel"
   Self-contained (no build step). Tokens vendored from the design
   system (web/src/styles/tokens) so the front door matches the app
   pixel-for-pixel: steel/graphite neutrals, arc-blue primary,
   molten-orange used sparingly, Inter + JetBrains Mono.
   ============================================================ */

/* Fonts are SELF-HOSTED (variable woff2, latin subset, SIL OFL) — no third-party request, so no
   visitor IP ever goes to Google (privacy.html §7 promises this). Non-latin text falls back to the
   system stack via unicode-range. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Neutrals — steel / graphite (light) */
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --surface-2: #ECEFF3;
  --border: #D9DEE6;
  --text: #1A1E26;
  --text-muted: #5C6675;
  --text-faint: #8A92A0;

  /* Primary — arc-blue (the TIG arc) */
  --primary: #1C7CE8;
  --primary-hover: #1668C4;
  --primary-soft: #E3F0FE;
  --primary-text: #186AC7;
  --ring: #1C7CE855;

  /* Accent — molten-orange (heat / attention) — used sparingly */
  --accent: #E8650B;
  --accent-soft: #FEEAD9;
  --heat: #E8650B;

  /* Status (always paired with icon + label in copy) */
  --ok: #0E9F6E;   --ok-soft: #DBF4EA;   --ok-text: #0A7C55;
  --warn: #C77700; --warn-soft: #FBEFD6; --warn-text: #9B5C00;
  --danger: #D11E45; --danger-soft: #FBE0E6; --danger-text: #C81C42;

  /* Domain chip hues */
  --type-bw: #5B9BD5;
  --type-aw: #A78BDA;

  /* Elevation — flat-first; soft shadows in light, one reserved premium */
  --shadow: 0 1px 2px rgba(16,22,30,.06), 0 8px 24px rgba(16,22,30,.06);
  --shadow-lg: 0 12px 40px rgba(16,22,30,.14);

  /* Type */
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* Radius */
  --radius-control: 6px;
  --radius-card: 10px;
  --radius-pill: 999px;

  /* The one "arc" flourish — blue→orange gradient (logo + hero line only) */
  --arc-gradient: linear-gradient(90deg, var(--primary) 0%, #6E5BD0 55%, var(--accent) 100%);

  --maxw: 1120px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--radius-control);
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s var(--ease), background .12s var(--ease), border-color .12s var(--ease);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }

/* ---- Top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; display: block; }
.brand-name {
  font-family: 'Palatino Linotype', Palatino, Georgia, serif;
  font-weight: 700; font-size: 22px; letter-spacing: .06em; line-height: 1;
}
.brand-sub { font-size: 10.5px; color: var(--text-faint); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 20px; }
.nav-links a { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---- Hero ---- */
.hero { padding: 96px 0 0; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--primary-text);
  background: var(--primary-soft); border: 1px solid #CFE4FC;
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; max-width: 880px; margin: 0 auto; }
.hero h1 .grad {
  background: var(--arc-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede {
  font-size: clamp(16px, 2vw, 19px); color: var(--text-muted);
  max-width: 660px; margin: 22px auto 0; line-height: 1.5;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 12.5px; color: var(--text-faint); }

/* The single "arc" flourish — a thin blue→orange progress line under the hero */
.arc-line { height: 4px; background: var(--arc-gradient); border-radius: 999px; max-width: 540px; margin: 56px auto 0; }

/* ---- App mockup (CSS, on-brand — a faithful weld-log slice in a browser frame) ---- */
.shot { margin: 40px auto 0; max-width: 940px; }
.browser {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.browser-bar i { width: 11px; height: 11px; border-radius: 999px; background: #C9D0DA; display: inline-block; }
.browser-url {
  margin-left: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint);
}
.mock { display: grid; grid-template-columns: 180px 1fr; min-height: 320px; text-align: left; }
.mock-side { background: var(--surface); border-right: 1px solid var(--border); padding: 14px 10px; }
.mock-side .sec { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; color: var(--text-faint); text-transform: uppercase; padding: 12px 8px 5px; }
.mock-side .row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; font-size: 12.5px; color: var(--text-muted); }
.mock-side .row.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.mock-side .row .g { width: 14px; text-align: center; opacity: .8; }
.mock-main { padding: 18px 20px; background: var(--bg); }
.mock-h { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 12px; }
.tbl th { text-align: left; background: var(--surface-2); color: var(--text-faint); font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 11px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 8px 11px; border-bottom: 1px solid var(--border); color: var(--text); }
.tbl tr:last-child td { border-bottom: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; line-height: 1.5; }
.chip-bw { background: #EAF1FA; color: #3D6F9E; }
.chip-aw { background: #F1ECF9; color: #6B53A0; }
.chip-ok { background: var(--ok-soft); color: var(--ok-text); }
.chip-warn { background: var(--warn-soft); color: var(--warn-text); }
.chip-danger { background: var(--danger-soft); color: var(--danger-text); }

/* ---- Section scaffolding ---- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-text); }
.section-head h2 { font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; margin-top: 10px; }
.section-head p { font-size: 16px; color: var(--text-muted); margin-top: 14px; }

/* ---- Feature grid ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 24px; box-shadow: var(--shadow); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature .ico { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-size: 19px; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { font-size: 14px; color: var(--text-muted); margin-top: 9px; line-height: 1.5; }

/* ---- Trust / stats strip ---- */
.stats { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; text-align: center; }
.stat .n { font-family: var(--font-mono); font-size: 30px; font-weight: 600; color: var(--text); }
.stat .l { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ---- Pricing ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.tier {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); position: relative; }
.tier.featured .badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 12px; border-radius: 999px;
}
.tier .name { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.tier .price { font-size: 30px; font-weight: 800; margin: 12px 0 2px; }
.tier .price small { font-size: 14px; font-weight: 500; color: var(--text-faint); }
.tier .for { font-size: 13.5px; color: var(--text-muted); min-height: 40px; }
.tier ul { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.tier li { display: flex; gap: 9px; font-size: 13.5px; color: var(--text); align-items: flex-start; }
.tier li .ck { color: var(--ok-text); flex-shrink: 0; font-weight: 700; }
.tier li.muted { color: var(--text-faint); }
.tier li.muted .ck { color: var(--text-faint); }
.tier .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---- CTA band ---- */
.cta-band { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 48px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.cta-band p { font-size: 16px; color: var(--text-muted); margin: 14px auto 0; max-width: 520px; }
.cta-band .arc-line { margin: 28px auto 0; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer .brand-name { font-size: 18px; }
.footer-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer .copy { width: 100%; font-size: 12px; color: var(--text-faint); margin-top: 8px; }

/* ---- Legal (privacy / terms) ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 32px; font-weight: 800; }
.legal .updated { font-size: 13px; color: var(--text-faint); margin-top: 8px; }
.legal .tpl-note {
  background: var(--warn-soft); border: 1px solid #EBD9A8; color: var(--warn-text);
  border-radius: var(--radius-card); padding: 14px 16px; font-size: 13px; margin: 24px 0 8px;
}
.legal h2 { font-size: 19px; font-weight: 700; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal .back { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--primary-text); font-weight: 600; margin-bottom: 8px; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .features, .tiers { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .nav-links { display: none; }
  .mock { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
