:root {
  --bg: whitesmoke;
  --text: black;
  --text-soft: #4a4a4a;
  --border: #ddd;
  --green: #2e7d32;
  --green-soft: #e5f0e6;
  --blue: #1565c0;
  --blue-soft: #e4edf9;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* layout */
  --container: 980px;
  --container-lg: 1120px;
  --gutter: clamp(1.25rem, 4vw, 1.5rem);
  --radius: 10px;

  /* type scale — fluid, clamps between mobile and large desktop */
  --fs-body: clamp(1rem, 0.965rem + 0.15vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8rem;
  --fs-h1: clamp(1.85rem, 1.35rem + 2.2vw, 2.85rem);
  --fs-h2: clamp(1.4rem, 1.2rem + 0.9vw, 1.75rem);
  --fs-h2-about: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(0.98rem, 0.9rem + 0.3vw, 1.05rem);
  --fs-price: clamp(1.7rem, 1.5rem + 0.8vw, 2.15rem);

  --lh-body: 1.6;
  --lh-heading: 1.22;
  --measure: 62ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* keeps rem-based spacing/type proportionate on very large monitors
     without needing a media query for every sized value */
  font-size: clamp(100%, 0.94vw + 0.7rem, 112.5%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

::selection {
  background: var(--blue-soft);
  color: var(--text);
}

/* consistent, visible focus ring for keyboard users, on every interactive element */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.cursor {
  display: inline-block;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }
}

/* ---- topbar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 245, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-soft);
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--text);
  transition: right 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  right: 0;
}

.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
}

/* ---- hero ---- */
.hero {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 6vw + 1rem, 6rem) var(--gutter) clamp(2.5rem, 4vw, 3.75rem);
  text-align: center;
}

.hero h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero-sub {
  color: var(--text-soft);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  margin: 0;
}

/* ---- product sections ---- */
.product {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3.5rem;
}

.file-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--text-soft);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  padding: 0.4rem 0.75rem;
}

.file-tab .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.product-grid {
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  background: white;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 3vw, 2.75rem);
}

.product-copy h2 {
  margin: 0 0 0.75rem;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  font-weight: 600;
}

.product-copy p {
  color: var(--text-soft);
  max-width: var(--measure);
  margin: 0 0 1.4rem;
  line-height: 1.65;
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.features li {
  padding-left: 1.2rem;
  position: relative;
}

.features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.product-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
  gap: 0.35rem;
}

.price {
  font-family: var(--mono);
  font-size: var(--fs-price);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.price-note {
  color: var(--text-soft);
  font-size: var(--fs-small);
  margin-bottom: 1rem;
}

.cta {
  display: inline-block;
  font-family: var(--mono);
  text-decoration: none;
  color: white;
  padding: 0.8rem 1.35rem;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cta:hover,
.cta:focus-visible {
  opacity: 0.88;
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(0);
}

.cta-green {
  background: var(--green);
}

.cta-blue {
  background: var(--blue);
}

/* ---- divider ---- */
.divider {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-cmd {
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--text-soft);
  background: none;
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.divider-cmd:hover,
.divider-cmd:focus-visible {
  color: var(--text);
  border-color: var(--text-soft);
}

/* ---- about / faq ---- */
.about {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 5rem;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.about h2 {
  margin: 0 0 0.75rem;
  font-size: var(--fs-h2-about);
  line-height: var(--lh-heading);
}

.about p {
  color: var(--text-soft);
  max-width: var(--measure);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1.25rem;
}

.links a {
  font-family: var(--mono);
  text-decoration: none;
  font-size: 0.9rem;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.links a:hover,
.links a:focus-visible {
  border-color: var(--text-soft);
}

.faq h3 {
  margin: 0 0 1rem;
  font-size: var(--fs-h3);
  font-weight: 600;
}

.faq details {
  border-top: 1px solid var(--border);
  padding: 0.85rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  line-height: 1.4;
}

.faq p {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---- footer ---- */
.footer {
  text-align: center;
  padding: 2rem var(--gutter);
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--text-soft);
  border-top: 1px solid var(--border);
}

.footer a {
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
  border-color: var(--text-soft);
}

/* ==========================================================
   RESPONSIVE
   Breakpoints: >1440 large desktop, 981–1440 desktop (base),
   721–980 tablet/small laptop, ≤720 mobile, ≤420 small phone
   ========================================================== */

/* ---- large desktop: give the container a little more room
   and lean into the extra whitespace instead of stretching
   line length indefinitely ---- */
@media (min-width: 1440px) {

  .nav,
  .product,
  .divider,
  .about {
    max-width: var(--container-lg);
  }

  .hero {
    max-width: 48rem;
  }
}

/* ---- tablet / small laptop: ease the two-column grids down
   before the hard stack, so nothing feels cramped mid-way ---- */
@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: 1.15fr 1fr;
  }

  .about-grid {
    gap: 2rem;
  }
}

@media (max-width: 860px) {
  .nav-links {
    gap: 1.25rem;
  }
}

/* ---- mobile: stack layouts, restore the hamburger nav ---- */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .nav-links.open {
    max-height: 260px;
  }

  .nav-links li {
    padding: 0.9rem var(--gutter);
    border-top: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .product-buy {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .divider {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---- small phones: tighten spacing and scale price/CTA down
   a touch so they don't dominate a narrow viewport ---- */
@media (max-width: 420px) {
  .hero {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .product {
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }

  .product-grid {
    padding: 1.25rem;
  }

  .price {
    font-size: 1.5rem;
  }

  .cta {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.25rem;
  }

  .about {
    padding-top: 2.75rem;
    padding-bottom: 3rem;
  }
}

/* ---- legal page ---- */
.legal-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 1rem;
}

.legal-hero h1 {
  font-size: clamp(1.55rem, 1.3rem + 1.2vw, 2.15rem);
  line-height: var(--lh-heading);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.legal-updated {
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--text-soft);
}

.toc {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem var(--gutter) 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--border);
}

.toc a {
  text-decoration: none;
  color: var(--text-soft);
  transition: color 0.15s ease;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--text);
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem var(--gutter);
}

.legal h2 {
  font-size: 1.35rem;
  line-height: var(--lh-heading);
  font-weight: 600;
  margin: 0 0 1.25rem;
  padding-top: 0.25rem;
}

.legal h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--text-soft);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: var(--measure);
}

.legal ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
}

.legal+.legal {
  border-top: 1px solid var(--border);
}

.legal-note {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  font-style: italic;
}