/* Very Good Tech Company — shared styles
   Palette taken straight from the logo: blue #5E94FD, ink #252524. */

:root {
  --blue: #5e94fd;
  --blue-dark: #3f78e6;
  --ink: #252524;
  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --line: #e4e6ea;
  --muted: #6b6f76;

  --container: 64rem;
  --radius: 10px;

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 2rem + 3vw, 4.25rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
}
.skip:focus {
  left: 0;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  height: 3rem;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: var(--step--1);
  cursor: pointer;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a:hover {
  color: var(--blue-dark);
  text-decoration: none;
}
.nav-links a[aria-current="page"] {
  color: var(--blue-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.05s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Sections ---------- */
section {
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}
section + section {
  border-top: 1px solid var(--line);
}

.section-tint {
  background: var(--paper-2);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: var(--step-1);
  color: var(--ink);
  max-width: 48ch;
}

.prose {
  max-width: 60ch;
}
.prose p {
  margin-bottom: 1.1rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3.5rem, 2.5rem + 7vw, 7rem);
}
.hero h1 {
  max-width: 16ch;
}
.hero .tagline {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 40ch;
  margin-bottom: 2rem;
}
.hero .tagline strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}
.card:hover {
  border-color: #c9ccd2;
  box-shadow: 0 6px 24px rgba(37, 37, 36, 0.06);
  transform: translateY(-2px);
}
.card h3 {
  margin-bottom: 0.35rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
}

/* compact link grid for the product teaser */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pill-grid a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step--1);
}
.pill-grid a:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  text-decoration: none;
}

/* ---------- Ordered "how it works" ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 50ch;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--step--1);
}

/* ---------- Principle / feature list ---------- */
.feature h3 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.feature h3::before {
  content: "";
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--blue);
  transform: translateY(-0.1rem);
}
.feature p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  max-width: 55ch;
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
}
.checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ---------- Big email CTA ---------- */
.email-cta {
  display: inline-block;
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-word;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: #c7c9cd;
  max-width: 46ch;
}
.cta-band .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.cta-band .btn-ghost:hover {
  border-color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding-block: 2.5rem;
  font-size: var(--step--1);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer img {
  height: 1.5rem;
  width: auto;
  display: block;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  color: var(--ink);
}
.site-footer .copyright {
  color: var(--muted);
  width: 100%;
}
.site-footer .credit {
  color: var(--muted);
  width: 100%;
  margin: 0;
}
.site-footer .credit a {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 50vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.5rem;
}

/* ---------- Utilities ---------- */
.stack > * + * {
  margin-top: 1.5rem;
}
.mt-2 {
  margin-top: 2rem;
}
.center {
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1rem;
  }
  .site-header.open .nav-links {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: var(--step-0);
    border-top: 1px solid var(--line);
    width: 100%;
  }
}

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