/* KILLSTAMP static site — design locked 1:1 from client/src/pages/LandingPage.tsx. All colors via :root tokens. */

/* 1. Tokens */
:root {
  --black: #000000;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --white: #ffffff;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --red-500: #ef4444;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --yellow-500: #eab308;
  --purple-500: #a855f7;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 2. Reset + base (zeroed margins replicate Tailwind preflight, which the
      source layout values assume) */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  line-height: 1.5;
  margin: 0;
}
h1, h2, h3, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; }
a { text-decoration: none; }
button { font: inherit; }

/* 3. Skip link + focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--green-500);
  color: var(--black);
  padding: 0.75rem 1rem;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; }
.cta-banner :focus-visible { outline-color: var(--black); } /* green ring invisible on green bg */

/* 4. Utilities */
.container { max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
.center { text-align: center; }
.narrow { max-width: 56rem; margin-inline: auto; }
.grid-2, .grid-3 { display: grid; gap: 2rem; }
.t-green { color: var(--green-500); }
.t-white { color: var(--white); }
.t-red { color: var(--red-500); }
.t-gray3 { color: var(--gray-300); }
.t-gray4 { color: var(--gray-400); }

.icon { width: 1.5rem; height: 1.5rem; }
.icon-sm { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 3rem; height: 3rem; }
.icon-green { color: var(--green-500); }
.icon-blue { color: var(--blue-500); }
.icon-red { color: var(--red-500); }

/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  border: none;
  min-height: 2.75rem;
  padding: 0.5rem 1.5rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-green { background: var(--green-500); color: var(--black); }
.btn-green:hover { background: var(--green-400); }
.btn-outline { background: transparent; border: 2px solid var(--green-500); color: var(--green-500); }
.btn-outline:hover { background: var(--green-500); color: var(--black); }
.btn-black { background: var(--black); color: var(--green-500); }
.btn-black:hover { background: var(--gray-900); }
.btn-blue { background: var(--blue-500); color: var(--black); }
.btn-blue:hover { background: var(--blue-400); }
.btn-lg { padding: 1rem 2rem; font-size: 1.25rem; }
.btn-store { padding: 0.5rem 0.75rem; font-size: 0.85rem; gap: 0.4rem; }
.btn-block { width: 100%; }

/* 6. Header */
.site-header { border-bottom: 4px solid var(--green-500); background: var(--gray-900); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  flex: none;
}
.logo-mark--sm { width: 2rem; height: 2rem; }
.logo-img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--green-500); }
.logo-text--sm { font-size: 1.25rem; }
.site-nav { display: none; gap: 2rem; } /* desktop: flex, in 768px block */
.nav-link { color: var(--gray-300); padding: 0.625rem 0; }
.nav-link:hover { color: var(--green-500); }
.header-actions { display: flex; gap: 0.75rem; margin-left: auto; }
@media (max-width: 479px) {
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1; }
}

/* 7. Hero */
.hero {
  background: linear-gradient(to bottom, var(--gray-900), var(--black));
  padding-block: 5rem;
  text-align: center;
}
.hero-title {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--green-500);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.25rem;
  color: var(--gray-300);
  max-width: 56rem;
  margin: 0 auto 2rem;
}
.platform-line {
  color: var(--gray-400);
  letter-spacing: 0.08em;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}
.platform-line .sep { color: var(--green-500); padding-inline: 0.5rem; }
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto 3rem;
}

/* 8. Mini-cards (hero + demo sections) */
.mini-card {
  background: var(--gray-800);
  border: 2px solid var(--gray-700);
  padding: 1.5rem;
  text-align: center;
}
.mini-card :is(h2, h3) { font-size: 1.25rem; margin-bottom: 0.5rem; }
.mini-card p { color: var(--gray-400); }
.card-icon { width: 3rem; height: 3rem; margin: 0 auto 1rem; }
.db-badge {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-800);
  border: 2px solid var(--red-500);
  border-radius: 4px; /* the ONLY rounded element in the design (source "rounded") */
  color: var(--red-500);
  font-weight: 700;
}

/* 9. Sections / how-it-works */
.section { padding-block: 5rem; }
.section-gray { background: var(--gray-900); }
.section-black { background: var(--black); }
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  color: var(--green-500);
  margin-bottom: 4rem;
}
.how-grid { display: grid; gap: 4rem; }
.steps { display: grid; gap: 2rem; }
.step { display: flex; align-items: flex-start; gap: 1rem; }
.step-num {
  width: 2rem;
  height: 2rem;
  background: var(--green-500);
  color: var(--black);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}
.step h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.step p { color: var(--gray-400); }
.terminal { background: var(--gray-800); border: 4px solid var(--green-500); padding: 2rem; }
.terminal-inner { background: var(--black); padding: 1.5rem; font-size: 0.875rem; }
.terminal-header { color: var(--green-500); margin-bottom: 1rem; }
.log-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.log-row > span:last-child { color: var(--white); }
.c-red { color: var(--red-500); }
.c-blue { color: var(--blue-500); }
.c-yellow { color: var(--yellow-500); }
.c-purple { color: var(--purple-500); }
.c-green { color: var(--green-500); }

/* 10. Pricing */
.pricing-grid { max-width: 56rem; margin: 0 auto; display: grid; gap: 2rem; }
.price-card {
  position: relative;
  background: var(--gray-900);
  border: 4px solid var(--green-500);
  padding: 3rem 2rem 2rem; /* 3rem top = source p-8 + inner pt-4 — clears the -1rem ribbon */
  text-align: center;
}
.price-card--blue { border-color: var(--blue-500); }
.price-card .btn { padding-block: 1rem; } /* source pricing buttons are py-4 (~56px tall); .btn-lg NOT used here */
.ribbon {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-500);
  color: var(--black);
  padding: 0.5rem 1rem;
  font-weight: 700;
  white-space: nowrap;
}
.ribbon--blue { background: var(--blue-500); }
.price-title { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
.price-sub { color: var(--gray-400); margin-bottom: 1.5rem; }
.check-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  text-align: left;
}
.check-list li { display: flex; align-items: center; gap: 0.75rem; }
.check-list .icon-check { width: 1.25rem; height: 1.25rem; flex: none; }

/* 11. Demo */
.demo-sub {
  font-size: 1.25rem;
  color: var(--gray-400);
  max-width: 42rem;
  margin: -2rem auto 3rem; /* section-title carries 4rem; net 2rem = source mb-8 */
}
.video-frame {
  background: var(--gray-800);
  border: 4px solid var(--green-500);
  aspect-ratio: 16 / 9;
  max-width: 56rem;
  margin: 0 auto 3rem;
  overflow: hidden;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-frame iframe:focus-visible { outline: none; } /* ring moves to the frame — overflow: hidden clips it on the iframe */
.video-frame:focus-within { outline: 3px solid var(--green-400); outline-offset: 2px; }

/* 12. CTA banner */
.cta-banner { background: var(--green-500); color: var(--black); padding-block: 5rem; text-align: center; }
.cta-title { font-size: 2.25rem; margin-bottom: 1.5rem; }
.cta-sub { font-size: 1.25rem; max-width: 42rem; margin: 0 auto 2rem; }

/* 13. Footer */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--gray-700);
  padding: 3rem 1rem;
  text-align: center;
}
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 0.5rem; }
.footer-link { color: var(--gray-400); padding: 0.625rem 0; }
.footer-link:hover { color: var(--green-500); }
.copyright { color: var(--gray-400); font-size: 0.875rem; }

/* 14. Forms (support page) */
.form-card {
  background: var(--gray-900);
  border: 4px solid var(--green-500);
  padding: 2rem;
  max-width: 42rem;
  margin: 0 auto;
}
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  color: var(--gray-300);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.field input, .field textarea {
  width: 100%;
  background: var(--gray-800);
  border: 2px solid var(--gray-700);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem;
}
.field input:focus, .field textarea:focus { border-color: var(--green-500); }
.hp-field { position: absolute; left: -9999px; } /* honeypot — offscreen, not display:none */
.form-note { color: var(--gray-400); font-size: 0.875rem; margin-bottom: 1rem; }
.req { color: var(--green-500); }

.faq-email { max-width: 42rem; margin: 3rem auto 0; }
.faq-title { font-size: 1.5rem; color: var(--green-500); text-align: center; margin: 4rem 0 2rem; }

/* 15. Prose / subpage content */
.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--green-500);
  text-align: center;
  margin-bottom: 1rem;
}
.page-meta { color: var(--gray-400); text-align: center; margin-bottom: 4rem; }
.prose { max-width: 48rem; margin: 0 auto; }
.prose h2 { color: var(--green-500); font-size: 1.25rem; margin: 2.5rem 0 1rem; }
.prose p { color: var(--gray-300); line-height: 1.7; margin-bottom: 1rem; overflow-wrap: anywhere; }
.prose a, .mail-link { color: var(--green-500); text-decoration: underline; overflow-wrap: anywhere; }

/* 16. Desktop (single consolidated breakpoint) */
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .hero-title { font-size: 6rem; }
  .hero-sub { font-size: 1.5rem; }
  .hero-actions { flex-direction: row; justify-content: center; align-items: center; max-width: none; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-title, .page-title, .cta-title { font-size: 3.75rem; }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 17. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
