/* SMITHTRONIC static site — design system
   Tokens sampled from the original Framer build:
   cyan #01D0FE · hover #0099FF · ink #1A1A1A · white base
   Fonts: Audiowide (display) · Inter (UI/body) · Fragment Mono (accents) */

:root {
  --cyan: #01d0fe;
  --cyan-deep: #0099ff;
  --ink: #1a1a1a;
  --muted: #444;
  --bg: #ffffff;
  --radius-card: 24px;
  --radius-frame: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
img { max-width: 100%; }
main { flex: 1; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 44px;
  gap: 16px;
  flex-wrap: wrap;
}
.site-header .logo img { height: 25px; display: block; }
.site-header nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-header nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a.active { color: var(--cyan); }

/* ---------- home hero ---------- */
.hero {
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.hero .s-mark { width: 195px; margin-bottom: 34px; }
.display {
  font-family: Audiowide, Inter, sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: 0.01em;
}
.display .accent { color: var(--cyan); }
.tagline { margin-top: 16px; font-size: 15.5px; color: #222; }
.btn-row {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- buttons ---------- */
.btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
  border-radius: 10px;
  padding: 12px 24px;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-block;
}
.btn:hover { color: var(--cyan-deep); border-color: var(--cyan-deep); }
.btn.primary { background: var(--cyan); color: #fff; }
.btn.primary:hover { background: var(--cyan-deep); border-color: var(--cyan-deep); }

/* ---------- page scaffold (inner pages) ---------- */
.page-head { text-align: center; margin: 30px auto 6px; padding: 0 20px; }
.page-title { font-size: 21px; font-weight: 600; }
.page-sub { font-size: 13.5px; color: var(--muted); max-width: 660px; margin: 10px auto 0; line-height: 1.55; }
.rule { border: none; border-top: 1px solid #222; width: min(760px, 90%); margin: 24px auto; }
.section-label { width: min(1000px, 92%); margin: 26px auto 0; }
.section-label h2 { font-size: 15px; font-weight: 600; }
.section-label p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ---------- dark cards ---------- */
.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  width: min(1000px, 92%);
  margin: 22px auto 54px;
}
.card {
  background: var(--ink);
  border-radius: var(--radius-card);
  padding: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.card .frame {
  background: #fff;
  border-radius: var(--radius-frame);
  display: grid;
  place-items: center;
  padding: 16px;
  margin-bottom: 16px;
  min-height: 180px;
}
.card .frame img { max-height: 200px; border-radius: 8px; object-fit: contain; }
.card h3 { color: var(--cyan); font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.card p { font-size: 12.5px; line-height: 1.55; color: #e8e8e8; margin-bottom: 8px; }
.card .price { color: var(--cyan); font-weight: 600; font-size: 15px; margin-top: auto; }
.card a { color: var(--cyan); }
.card .btn-row { margin-top: 16px; justify-content: flex-start; }

/* ---------- article/guide prose ---------- */
.prose {
  width: min(760px, 92%);
  margin: 10px auto 60px;
  font-size: 14px;
  line-height: 1.65;
}
.prose h2 { font-size: 18px; font-weight: 600; margin: 30px 0 10px; }
.prose h3 { font-size: 15px; font-weight: 600; margin: 24px 0 8px; }
.prose h4 { font-size: 13.5px; font-weight: 600; margin: 18px 0 6px; color: #222; }
.prose p, .prose li { color: #222; margin-bottom: 8px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 12px; }
.prose img { border-radius: 12px; margin: 14px 0; display: block; }
.prose a { color: var(--cyan-deep); }
.prose blockquote {
  border-left: 3px solid var(--cyan);
  padding: 6px 0 6px 14px;
  color: #333;
  margin: 14px 0;
}
.prose .mono { font-family: "Fragment Mono", monospace; }

/* ---------- guide step cards (dark sections, as on the original guides) ---------- */
.step-card {
  background: var(--ink);
  border-radius: 20px;
  padding: 20px 26px;
  margin: 18px 0;
  color: #f0f0f0;
}
.step-card h3 { color: var(--cyan); margin: 0 0 10px; }
.step-card h4 { color: #fff; }
.step-card p, .step-card li { color: #e9e9e9; }
.step-card strong { color: #fff; }
.step-card a { color: var(--cyan); }
.step-card blockquote { border-color: var(--cyan); color: #ddd; }
.step-card img {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  max-height: 230px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: inline-block;
  vertical-align: top;
  margin: 8px 10px 0 0;
}
.step-card .accent { color: var(--cyan); font-weight: 600; }
.card-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-duo .step-card { margin: 18px 0 0; }
@media (max-width: 640px) { .card-duo { grid-template-columns: 1fr; } }

/* ---------- open-source framing ---------- */
.oss-price { text-align: right; margin: 8px 0; }
.oss-price .free { font-size: 22px; font-weight: 600; color: var(--cyan); display: block; }
.oss-price.retired .free { color: #9a9a9a; }
.oss-price .was { font-size: 11.5px; color: #666; }
.oss-banner {
  width: min(880px, 92%);
  margin: 18px auto 0;
  background: var(--ink);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.oss-banner p { color: #e8e8e8; font-size: 12.5px; margin: 0; line-height: 1.5; }
.oss-banner strong { color: var(--cyan); }
.oss-banner .btn-row { margin: 0; }
.card .tag-free { color: var(--cyan); font-weight: 600; font-size: 15px; margin-top: auto; }
.card .tag-retired { color: #9a9a9a; font-weight: 600; font-size: 14px; margin-top: auto; }

/* ---------- horizontal list cards (projects index, category pages) ---------- */
.list-cards {
  width: min(880px, 92%);
  margin: 22px auto 50px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.list-card {
  background: var(--ink);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  gap: 26px;
  align-items: center;
  text-decoration: none;
}
.list-card .thumb {
  flex: none;
  width: 290px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  place-items: center;
}
.list-card .thumb img { border-radius: 8px; width: 100%; max-height: 190px; object-fit: cover; }
.list-card h3 { color: var(--cyan); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.list-card p { color: #e8e8e8; font-size: 12.5px; line-height: 1.55; margin: 0; }
.list-card .oss-tag { color: var(--cyan); font-weight: 600; font-size: 12px; margin-top: 8px; letter-spacing: 0.3px; }

/* ---------- reviews ---------- */
.reviews { width: min(880px, 92%); margin: 22px auto 40px; }
.review-card { background: var(--ink); border-radius: 22px; padding: 20px 22px; margin-bottom: 24px; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-name { color: var(--cyan); font-size: 14px; font-weight: 600; }
.stars { color: var(--cyan); letter-spacing: 3px; font-size: 13px; }
.review-tag { font-size: 11.5px; color: #ddd; margin: 8px 0 10px; display: flex; align-items: center; gap: 7px; }
.review-tag::before { content: '\2611'; color: var(--cyan); font-size: 14px; }
.review-card p { color: #e9e9e9; font-size: 12.5px; line-height: 1.6; margin-bottom: 8px; }
.review-card .carousel { margin: 14px 0 2px; }
.review-card .carousel img { max-height: 430px; width: 100%; object-fit: cover; }

/* ---------- forms (review / contact) ---------- */
.form-card { background: var(--ink); border-radius: 22px; padding: 24px; width: min(880px, 92%); margin: 12px auto 60px; }
.form-card label { display: block; color: #fff; font-size: 12.5px; font-weight: 600; margin: 14px 0 5px; }
.form-card input[type="text"], .form-card input[type="email"], .form-card textarea, .form-card select {
  width: 100%;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: #eee;
  padding: 9px 11px;
  font: inherit;
  font-size: 12.5px;
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card .hint { color: #999; font-size: 11px; margin-top: 4px; }
.form-card .radio-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-card .radio-row label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; color: #ddd; }
.form-card .submit {
  display: block;
  width: 100%;
  margin-top: 20px;
  background: #0e7f96;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.form-card .submit:hover { background: var(--cyan-deep); }

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 44px;
  font-size: 13px;
  color: #222;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer .left { display: flex; align-items: center; gap: 18px; }
.site-footer img { height: 24px; display: block; }
.site-footer a { color: #333; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }

/* ---------- product pages ---------- */
.container { width: min(900px, 92%); margin: 0 auto; }
.product-head { display: flex; gap: 28px; margin-top: 26px; align-items: flex-start; }
.product-thumb { flex: none; width: 190px; }
.product-thumb img { border-radius: 10px; }
.product-info { flex: 1; font-size: 13px; line-height: 1.55; }
.product-info h4 { font-size: 13px; margin: 10px 0 3px; }
.price-lg { font-size: 22px; font-weight: 600; text-align: right; margin: 8px 0; }
.buy-row { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.legal-note { font-size: 11.5px; color: #555; text-align: right; margin-top: 10px; }
.kv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 12px 0 6px; }
.kv { background: var(--ink); border-radius: 14px; padding: 15px; }
.kv h4 { color: var(--cyan); font-size: 12.5px; margin-bottom: 5px; }
.kv p { color: #e8e8e8; font-size: 11.5px; line-height: 1.45; }
.plain { font-size: 13px; line-height: 1.6; margin-top: 18px; }
.plain h4 { font-size: 13.5px; margin-bottom: 6px; }
.plain ul { padding-left: 22px; margin: 4px 0 10px; }
.faq h4 { font-size: 13px; margin: 16px 0 4px; }
.faq h4::before { content: '\203A  '; color: var(--cyan); font-weight: 700; }
.faq p { font-size: 12.5px; color: #222; line-height: 1.6; margin-bottom: 8px; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 26px 0; border-radius: 14px; }
.carousel img { scroll-snap-align: center; max-height: 420px; border-radius: 14px; flex: none; max-width: 100%; object-fit: cover; }

@media (max-width: 700px) {
  .list-card { flex-direction: column; align-items: stretch; }
  .list-card .thumb { width: 100%; }
}
@media (max-width: 640px) {
  .site-header, .site-footer { padding-left: 22px; padding-right: 22px; }
  .product-head { flex-direction: column; }
  .product-thumb { width: 100%; max-width: 260px; }
  .price-lg, .buy-row, .legal-note { text-align: left; justify-content: flex-start; }
}
