/* ============================================================
   DeckCountry Landing Page
   Design-system tokens + section styles
   ============================================================ */

html, body { overflow-x: clip; }

:root {
  --bg: #FBF9F4;
  --bg-raised: #FFFFFF;
  --bg-tint: #F4EFE5;
  --bg-tint-2: #ECE4D2;
  --bg-ink: #1A1A1A;
  --ink-1: #1A1A1A;
  --ink-2: #3F3D38;
  --ink-3: #6E6A5F;
  --ink-4: #9E9889;
  --ink-on-dark: #FBF9F4;
  --line-1: #E7E1D2;
  --line-2: #D4CCB7;
  --brand: #E76F51;
  --brand-hover: #D85A3D;
  --brand-tint: #FBE4DC;
  --brand-ink: #6F2B1A;
  --accent: #2A9D8F;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: var(--sans);
  font-size: 16px; line-height: 1.55;
  color: var(--ink-1); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, a { font: inherit; cursor: pointer; color: inherit; }
a { text-decoration: none; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 36px; }
.wrap-narrow { max-width: 680px; margin: 0 auto; padding: 0 36px; }

/* ---- Top bar ---- */
.topbar {
  border-bottom: 1px solid var(--line-1);
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 40;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 24px;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--ink-1); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  letter-spacing: -0.04em;
}
.brand-name {
  font-family: var(--display); font-weight: 500; font-size: 21px;
  letter-spacing: -0.02em;
}
.brand-name b { color: var(--brand); font-weight: 500; }
.beta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px;
  background: var(--brand-tint); color: var(--brand-ink);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.beta-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.topbar-actions { display: inline-flex; align-items: center; gap: 18px; }
.topbar a.topbar-link {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  margin-right: 1rem;
  transition: color 150ms ease;
}
.topbar a.topbar-link:hover { color: var(--brand); }
.topbar a.email-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 14px;
  background: var(--ink-1); color: var(--bg);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  transition: background 150ms ease;
}
.topbar a.email-cta:hover { background: var(--brand); }
.topbar a.email-cta svg { transition: transform 150ms ease; }
.topbar a.email-cta:hover svg { transform: translateX(2px); }

/* ---- Section primitives ---- */
.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px;
}
.section-label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h2.section-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 22px; max-width: 780px; text-wrap: balance;
}
h2.section-title em { font-style: italic; color: var(--brand); font-weight: 400; }

/* ---- Hero ---- */
.vb-hero {
  padding: 72px 0 48px;
  position: relative; overflow: hidden;
}
.vb-hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 64px; align-items: center;
}
.va-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px;
  background: var(--ink-1); color: var(--bg);
  border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.va-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
h1.vb-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.08; letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--ink-1);
  text-wrap: balance;
}
h1.vb-title em { font-style: italic; color: var(--brand); font-weight: 400; }
.vb-manifesto {
  font-size: 15px; line-height: 1.55;
  color: var(--ink-2); max-width: 540px;
  margin: 0 0 24px;
}
.va-cta-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.va-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: var(--brand); color: #fff;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: 0 12px 28px -10px rgba(231, 111, 81, 0.65);
  transition: all 180ms ease;
}
.va-cta:hover { background: var(--brand-hover); transform: translateY(-1px); }
.va-cta-secondary {
  font-size: 13px; color: var(--ink-3);
  border-bottom: 1px dashed var(--line-2); padding-bottom: 1px;
}

/* Hero browser mockup */
.hero-browser {
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: 0 32px 60px -28px rgba(26, 26, 26, 0.45);
  border: 1px solid var(--line-1);
  display: flex; flex-direction: column;
}
.hero-browser .chrome {
  flex: 0 0 auto;
  height: 28px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line-1);
  display: flex; align-items: center; gap: 12px;
  padding: 0 12px;
}
.hero-browser .chrome .dots { display: flex; gap: 5px; }
.hero-browser .chrome .dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--line-2);
}
.hero-browser .chrome .url {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  letter-spacing: 0.01em;
}
.hero-browser .chrome .url b { color: var(--ink-1); font-weight: 600; }
.vb-hero-photo {
  position: relative; aspect-ratio: 5 / 4;
  background: linear-gradient(135deg, var(--bg-tint) 0%, var(--bg-tint-2) 100%);
  background-size: cover; background-position: center;
  border-radius: 0 0 18px 18px;
}
.vb-hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.45));
  border-radius: 18px;
}
.vb-hero-photo .pill {
  position: absolute; left: 20px; bottom: 20px;
  font-family: var(--mono); font-size: 11px;
  color: rgba(251, 249, 244, 0.9);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  padding: 6px 11px; border-radius: 6px;
  letter-spacing: 0.02em;
}

/* ---- Intro ---- */
.vb-intro {
  padding: 60px 0 40px;
  text-align: center;
}
.vb-intro h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.1; letter-spacing: -0.025em;
  margin: 0 auto;
  max-width: 720px;
  color: var(--ink-1);
  text-wrap: balance;
}
.vb-intro h2 em { font-style: italic; color: var(--brand); font-weight: 400; }
.vb-intro p {
  font-size: 17px; line-height: 1.55; color: var(--ink-3);
  max-width: 600px; margin: 18px auto 0;
}

/* ---- Products ---- */
.products {
  background: var(--bg-tint);
  padding: 64px 0;
}
.product-row {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 56px; align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-1);
}
.product-row:last-child { border-bottom: none; padding-bottom: 0; }
.product-row:first-of-type { padding-top: 0; }
.product-row.reverse { grid-template-columns: 1.2fr 1fr; }
.product-row.reverse .product-text { order: 2; }
.product-text .l {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 12px;
}
.product-text h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--ink-1);
}
.product-text h3 em { font-style: italic; color: var(--brand); font-weight: 400; }
.product-text p {
  font-size: 16.5px; line-height: 1.55; color: var(--ink-2);
  margin: 0 0 16px; max-width: 460px;
}
.product-text ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 460px;
}
.product-text li {
  display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45;
}
.product-text li::before { content: "\2192"; color: var(--brand); font-weight: 600; flex: 0 0 auto; }

/* Product preview frame (browser-window style) */
.preview-frame {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(26, 26, 26, 0.25);
}
.preview-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line-1);
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.preview-url {
  flex: 1; background: var(--bg-raised);
  border-radius: 5px; padding: 4px 10px;
  font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.01em;
}
.preview-url b { color: var(--ink-1); font-weight: 600; }
img.preview-img {
  display: block; width: 100%; height: auto;
}

/* ---- Why (dark section) ---- */
.why {
  padding: 56px 0;
  background: var(--ink-1); color: var(--ink-on-dark);
}
.why h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.1; letter-spacing: -0.025em;
  margin: 0 0 16px; max-width: 680px;
  text-wrap: balance; color: #fff;
}
.why h2 em { font-style: italic; color: var(--brand); font-weight: 400; }
.why .lede {
  font-size: 15px; line-height: 1.55;
  color: rgba(251, 249, 244, 0.7);
  max-width: 600px; margin: 0 0 32px;
}
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding-top: 32px;
  border-top: 1px solid rgba(251, 249, 244, 0.14);
}
.why-stat .v {
  font-family: var(--display); font-weight: 500;
  font-size: 36px; line-height: 1; letter-spacing: -0.035em;
  color: var(--brand);
  margin-bottom: 10px;
}
.why-stat .l {
  font-size: 13px; line-height: 1.5; color: rgba(251, 249, 244, 0.75);
  max-width: 280px;
}

/* ---- Beta CTA ---- */
.beta {
  padding: 64px 0;
  background: var(--bg-tint-2);
  text-align: center;
}
.beta h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.1; letter-spacing: -0.025em;
  margin: 0 auto 16px;
  max-width: 680px; text-wrap: balance;
}
.beta h2 em { font-style: italic; color: var(--brand); font-weight: 400; }
.beta p {
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
  max-width: 520px; margin: 0 auto 24px;
}
.beta .email-card {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 14px;
}
.beta .email {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--ink-1); color: var(--bg);
  border-radius: 999px;
  font-family: var(--mono); font-size: 14px;
  font-weight: 500; letter-spacing: -0.01em;
  box-shadow: 0 16px 36px -14px rgba(26, 26, 26, 0.45);
  transition: all 180ms ease;
}
.beta .email:hover { background: var(--brand); transform: translateY(-2px); }
.beta .email-note { font-size: 13px; color: var(--ink-3); }
.signature {
  margin-top: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.signature-name {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 22px; color: var(--ink-1);
}

/* ---- Footer ---- */
.foot {
  padding: 56px 0 80px;
  border-top: 1px solid var(--line-1);
  background: var(--bg);
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.foot-l { font-size: 13px; color: var(--ink-3); }
.foot-r { display: flex; gap: 20px; font-size: 13px; color: var(--ink-3); }
.foot-r a { transition: color 150ms ease; }
.foot-r a:hover { color: var(--brand); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .vb-hero-grid, .product-row, .product-row.reverse {
    grid-template-columns: 1fr; gap: 36px;
  }
  .product-row.reverse .product-text { order: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .vb-hero-photo { aspect-ratio: 5 / 4; order: -1; }
  .topbar a.email-cta { display: none; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .topbar-inner { padding: 14px 0; gap: 12px; }
  .topbar .beta-pill { display: none; }
  .foot-inner { flex-direction: column; text-align: center; }
}
