/* SideByHome landing page. Palette and type come from the printed card: deep green bar, gold offer badge,
   Archivo. No gradients on text, no glow, no scroll-triggered animation; the only motion is the hero video
   and the slider you drag. */
:root {
  --green: #1f3a34;
  --green-deep: #152a25;
  --gold: #c8a24a;
  --gold-hover: #d6b25e;
  --ink: #161a17;
  --muted: #555b57;
  --line: #dcd9d1;
  --stone: #f2f1ec;
  --paper: #ffffff;
  --on-green: #e9efe9;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.small { font-size: 0.85rem; color: var(--muted); }
.wide { max-width: 760px; }

/* buttons */
.btn {
  display: inline-block;
  padding: 0.85em 1.35em;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s;
}
.btn-sm { padding: 0.55em 1em; font-size: 0.95rem; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { border-radius: 50%; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--green-deep); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 26, 22, 0.86) 0%, rgba(14, 26, 22, 0.62) 48%, rgba(14, 26, 22, 0.18) 100%); }
.hero-copy { position: relative; padding: 120px 0 72px; }
.hero-copy h1 { max-width: 780px; }
.hero-for { font-weight: 600; color: var(--gold); margin-bottom: 1.1em; }
.lede { font-size: 1.2rem; max-width: 640px; color: #eef2ee; }
.fine { font-size: 0.92rem; color: #cfd8d2; }

/* bands */
.band { padding: 96px 0; }
.band-stone { background: var(--stone); }
.band-green { background: var(--green); color: var(--on-green); }
.band-green h2, .band-green h3 { color: #fff; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.split-top { align-items: start; }
.split-text p { color: var(--muted); }
.band-green .split-text p { color: var(--on-green); }

/* tabs */
.tabs { display: flex; gap: 8px; margin-top: 1.4em; flex-wrap: wrap; }
.tabs button {
  font: inherit; font-size: 0.95rem; font-weight: 600;
  padding: 0.5em 1em; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }

/* before/after slider */
.ba { position: relative; margin: 0; aspect-ratio: var(--ratio, 1.24); border-radius: var(--radius); overflow: visible; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.ba-after-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.35); pointer-events: none; }
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + .ba-handle, .ba-range:focus-visible { outline: none; }
.ba:focus-within .ba-handle::after { outline: 3px solid var(--gold); }
.ba-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.92); font-size: 0.8rem; font-weight: 700; pointer-events: none; }
.ba-tag-l { left: 12px; }
.ba-tag-r { right: 12px; }
.ba figcaption { position: absolute; top: 100%; margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

/* card faces */
.faces { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 110px; }
.faces figure { margin: 0; }
.faces img { width: 100%; border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 10px 30px rgba(0, 0, 0, 0.1); }
.faces figcaption { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.faces strong { color: var(--ink); }

/* who gets a card */
.lists { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; margin: 2.4em 0 1.6em; }
.lists ul, .ticks, .crosses { list-style: none; padding: 0; margin: 0; }
.lists li, .ticks li, .crosses li { position: relative; padding-left: 28px; margin-bottom: 0.6em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 2px; top: 0.75em; width: 14px; height: 2.5px; background: #d98c7a; transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.hold { max-width: 760px; padding: 16px 20px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, 0.06); }

.compare { width: 100%; margin-top: 3em; border-collapse: collapse; font-size: 1rem; }
.compare caption { text-align: left; font-weight: 700; color: #fff; font-size: 1.2rem; margin-bottom: 0.8em; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); vertical-align: top; }
.compare thead th { font-size: 0.9rem; color: #b9c7bf; font-weight: 600; }
.compare tbody th { font-weight: 600; color: #fff; width: 22%; }
.compare td:last-child { color: #fff; }
.compare td:nth-child(2) { color: #aebbb4; }

/* scans */
.scanlist { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
.scanlist-head { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.example { font-size: 0.75rem; font-weight: 600; color: var(--muted); align-self: center; }
.scan { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 6px; font-size: 0.98rem; }
.scan + .scan { border-top: 1px solid var(--line); border-radius: 0; }
.scan span:last-child { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 0.85rem; white-space: nowrap; }
.scan.hot { background: #fbf5e6; outline: 1px solid var(--gold); }
.repeat { margin-top: 72px; max-width: 760px; }
.repeat ol { padding-left: 1.2em; }
.repeat li { margin-bottom: 0.6em; }

/* results */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 2.2em 0 1.4em; border-top: 2px solid var(--ink); }
.result { padding: 22px 24px 8px 0; }
.result + .result { padding-left: 24px; border-left: 1px solid var(--line); }
.num { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.3em; }
.result p:last-child { color: var(--muted); }
.cite { font-size: 0.82rem; color: var(--muted); max-width: 820px; }

/* trades */
.trades { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; margin: 2em 0 1.2em; max-width: 900px; }
.trades figure { margin: 0; }
.trades figure { display: grid; gap: 6px; }
.stack { position: relative; border-radius: var(--radius); overflow: hidden; }
.stack img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.stack span { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 4px; background: rgba(255, 255, 255, 0.92); font-size: 0.8rem; font-weight: 700; }
.stack + .stack span { background: var(--gold); }

/* how it works */
.steps { padding-left: 1.2em; margin: 0 0 1.6em; }
.steps li { margin-bottom: 0.6em; color: var(--muted); }
.split-text h3 { margin-top: 1.4em; }
.video { margin: 0; }
.video video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }
.video figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }

/* jake */
.jake-row { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.jake-row video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius); background: #000; }
.jake-row p { color: var(--muted); max-width: 520px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 24px; margin: 2.2em 0 1.4em; }
.plan { background: var(--green-deep); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; padding: 28px; }
.plan .price { font-size: 2.6rem; font-weight: 800; color: #fff; margin: 0; letter-spacing: -0.03em; }
.plan .price span { font-size: 1rem; font-weight: 500; color: #b9c7bf; letter-spacing: 0; }
.founding { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.plan ul { list-style: none; padding: 0; margin: 1em 0 1.6em; }
.plan li { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.plans-note { color: #c4d0c9; max-width: 760px; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.5rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.closing h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.closing p { color: var(--on-green); }

.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot p { margin: 0 0 0.5em; }

/* phones and small tablets */
@media (max-width: 900px) {
  .nav { display: none; }
  .top-row { justify-content: space-between; }
  .split, .lists, .jake-row { grid-template-columns: 1fr; gap: 32px; }
  .faces { grid-template-columns: 1fr; margin-top: 90px; }
  .results { grid-template-columns: 1fr; }
  .result + .result { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .trades { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .jake-row video { max-width: 340px; }
  .band { padding: 72px 0; }
  .hero-copy { padding: 96px 0 48px; }
  .compare thead { display: none; }
  .compare tr { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .compare th, .compare td { display: block; padding: 2px 0; border: 0; width: auto; }
  .compare tbody th { margin-bottom: 4px; width: auto; }
  .compare td:nth-child(2)::before { content: "EDDM: "; font-weight: 600; }
  .compare td:last-child::before { content: "SideByHome: "; font-weight: 600; color: var(--gold); }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .btn-sm { padding: 0.5em 0.85em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
