:root {
  --ink: #12151a;
  --ink-soft: #3d4450;
  --paper: #f3f2ee;
  --paper-dim: #eceae4;
  --line: rgba(18, 21, 26, 0.12);
  --accent: #1b2a41;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Lexend, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding-left: clamp(1.5rem, 4vw, 2.75rem);
  padding-right: clamp(1.5rem, 4vw, 2.75rem);
}

/* Shared light header (inner pages + home body) */
header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
}

.mark {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  text-decoration: none;
}

.mark svg {
  width: 2.1rem;
  height: 2.1rem;
}

.mark-name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
}

.tabs a {
  text-decoration: none;
  color: var(--ink-soft);
}

.tabs a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 0.35rem;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

main.page {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 3rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lede {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.card {
  display: block;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  text-decoration: none;
  background: #fff;
}

.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.beta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-left: 0.35rem;
}

.foot {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.foot a {
  text-decoration: underline;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 0.75rem;
}

.foot-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.foot-links a:hover {
  color: var(--ink);
}

.muted {
  opacity: 0.75;
}

.back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.back:hover {
  text-decoration: underline;
}

/* Feature buckets */
.bucket {
  margin: 0 0 2.75rem;
}

.bucket h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.bucket .bucket-lede {
  margin: 0 0 1.1rem;
  max-width: 38rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.stakes {
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.stakes h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.stakes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.stakes li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.stakes a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Product frame */
.shot {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(18, 21, 26, 0.08);
  background: #fff;
}

.shot-caption {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Pricing calculator */
.calc {
  max-width: 28rem;
  margin: 0 auto 2rem;
  text-align: left;
}

.calc label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.calc input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.calc-total {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@media (max-width: 720px) {
  .nav-cta {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .tabs {
    width: 100%;
    order: 2;
  }
}
