/* ==========================================================================
   Don't Ship That — Editorial / Brutalist
   Fonts: Anton (display) + IBM Plex Sans (body)
   ========================================================================== */

:root {
  --ink: #1A1A1A;
  --ink-90: rgba(26, 26, 26, 0.9);
  --ink-60: rgba(26, 26, 26, 0.6);
  --ink-12: rgba(26, 26, 26, 0.12);
  --red: #E63946;
  --red-hot: #c8303c;
  --paper: #F5F5F5;
  --smoke: #6b6b6b;

  --font-display: "Anton", "Arial Narrow", "Impact", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-wide: 1400px;
  --max-read: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Grain overlay: printed/editorial texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='4'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Typography base */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; }

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { text-decoration: underline; text-underline-offset: 4px; }

img { max-width: 100%; display: block; }

::selection { background: var(--red); color: var(--paper); }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--ink);
  padding: 20px 0;
  background: var(--paper);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-brand:hover { text-decoration: none; color: var(--ink); }
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.nav-links a:hover { color: var(--red); text-decoration: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 90px 0 70px;
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  font-weight: 600;
}
.hero-headline {
  font-size: clamp(3.25rem, 13vw, 10.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 15ch;
  margin: 0;
}
.hero-headline .accent {
  color: var(--red);
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--smoke);
  max-width: 54ch;
  margin-top: 36px;
  line-height: 1.55;
}
.hero-cta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 60px;
}
.hero-meta {
  font-size: 0.72rem;
  color: var(--smoke);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--font-body);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 22px 38px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
  text-decoration: none;
}
.btn::after {
  content: "→";
  font-size: 1.15em;
  transition: transform 0.2s ease;
}
.btn:hover::after { transform: translateX(5px); }

/* ============================================================
   Section base
   ============================================================ */
.section {
  position: relative;
  padding: 110px 0;
  border-top: 1px solid var(--ink);
}
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  line-height: 1.05;
  margin-bottom: 70px;
  max-width: 16ch;
}

/* ============================================================
   How it works — asymmetric stacked steps
   ============================================================ */
.steps {
  display: flex;
  flex-direction: column;
}
.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 46px 0;
  border-top: 1px solid var(--ink-12);
}
.step:first-child { border-top: none; padding-top: 0; }
.step-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 0.78;
  color: var(--ink);
}
.step-body h3 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  line-height: 1.05;
  margin-bottom: 18px;
}
.step-body p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--smoke);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0;
}

@media (min-width: 820px) {
  .step {
    grid-template-columns: 240px 1fr;
    gap: 70px;
    align-items: start;
  }
  .step:nth-child(2) { padding-left: 80px; }
  .step:nth-child(3) { padding-left: 160px; }
}

/* ============================================================
   Install — full bleed black pull quote
   ============================================================ */
.install {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--ink);
}
.install::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.install .container { position: relative; z-index: 1; }
.install-label {
  font-family: var(--font-body);
  color: var(--red);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  margin-bottom: 32px;
}
.install-quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--paper);
  max-width: 22ch;
  margin: 0;
  text-transform: uppercase;
}

/* ============================================================
   Pricing — oversized price tag, asymmetric
   ============================================================ */
.pricing-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: end;
}
.price-tag {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 15rem);
  line-height: 0.82;
  color: var(--ink);
  letter-spacing: -0.035em;
  margin: 0;
}
.price-tag sup,
.price-tag .price-unit {
  font-size: 0.28em;
  vertical-align: 0.55em;
  color: var(--red);
  font-family: var(--font-display);
  margin-left: 0.05em;
  display: inline-block;
  letter-spacing: 0;
}
.price-info p {
  font-family: var(--font-body);
  color: var(--smoke);
  font-size: 1.1rem;
  max-width: 40ch;
  margin-bottom: 28px;
  line-height: 1.6;
}

@media (min-width: 820px) {
  .pricing-wrap {
    grid-template-columns: 1.25fr 1fr;
    gap: 80px;
  }
}

/* ============================================================
   Footer — newspaper masthead style
   ============================================================ */
.footer {
  border-top: 1px solid var(--ink);
  padding: 80px 0 40px;
  background: var(--paper);
}
.footer-masthead {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 40px;
  text-transform: uppercase;
}
.footer-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--ink-12);
  font-size: 0.8rem;
  color: var(--smoke);
  font-family: var(--font-body);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--smoke);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 500;
}
.footer-links a:hover { color: var(--red); text-decoration: none; }

/* ============================================================
   Article pages (privacy, terms, blog) — clean and readable
   ============================================================ */
.article {
  max-width: var(--max-read);
  margin: 0 auto;
  padding: 80px 24px 60px;
}
.article h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  line-height: 0.95;
  margin-bottom: 14px;
}
.article .meta {
  font-family: var(--font-body);
  color: var(--smoke);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 48px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--ink-12);
  font-weight: 500;
}
.article h2 {
  font-size: 1.4rem;
  line-height: 1.15;
  margin: 46px 0 14px;
  letter-spacing: 0;
}
.article p,
.article li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--ink);
}
.article ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}
.article ul li { margin-bottom: 8px; }
.article code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  background: rgba(230, 57, 70, 0.09);
  color: var(--red);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.9em;
}
.article a {
  color: var(--red);
  border-bottom: 1px solid var(--red);
}
.article a:hover {
  text-decoration: none;
  background: rgba(230, 57, 70, 0.1);
}

/* ============================================================
   Motion
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero load-in, staggered */
.hero-eyebrow,
.hero-headline,
.hero-sub,
.hero-cta-row {
  opacity: 0;
  animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-eyebrow  { animation-delay: 0.05s; }
.hero-headline { animation-delay: 0.18s; }
.hero-sub      { animation-delay: 0.38s; }
.hero-cta-row  { animation-delay: 0.55s; }

/* Scroll-linked reveal for sections, modern browsers only */
@supports (animation-timeline: view()) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-eyebrow,
  .hero-headline,
  .hero-sub,
  .hero-cta-row,
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Desktop adjustments
   ============================================================ */
@media (min-width: 900px) {
  .container { padding: 0 48px; }
  .hero { padding: 110px 0 90px; }
  .section { padding: 160px 0; }
  .install { padding: 180px 0; }
  .footer { padding: 100px 0 50px; }
}
