:root {
  --paper: #f4f0e8;
  --paper-2: #ebe4d8;
  --ink: #171713;
  --muted: #6d685e;
  --line: rgba(23, 23, 19, 0.16);
  --forest: #15251f;
  --forest-2: #21392f;
  --sage: #c7d4c3;
  --copper: #a24d2f;
  --white: #fffaf2;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23,23,19,0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23,23,19,0.016) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px, 72px 72px, auto;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }
.line { display: block; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 44px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 232, 0.88);
  backdrop-filter: blur(18px);
}
.brandmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.brandmark span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--copper);
  display: inline-block;
  transform: translateY(-2px);
}
.navlinks { display: flex; gap: 28px; align-items: center; font-size: 12px; letter-spacing: 0.11em; text-transform: uppercase; color: #39362f; }
.navlinks a { opacity: 0.84; }
.navlinks a:hover, .navlinks a[aria-current="page"] { opacity: 1; }
.navlinks a[aria-current="page"]:not(.nav-cta) { box-shadow: inset 0 -1px 0 currentColor; }
.nav-cta { padding: 12px 16px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--white); }

.eyebrow { margin: 0 0 28px; color: var(--copper); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: calc(100vh - 76px);
  border-bottom: 1px solid var(--line);
}
.hero-copy { padding: clamp(72px, 9vw, 132px) clamp(36px, 8vw, 112px) 88px 44px; display: flex; flex-direction: column; justify-content: center; }
h1 { max-width: 980px; margin-bottom: 26px; font-family: var(--serif); font-size: clamp(58px, 8.4vw, 128px); line-height: 0.9; letter-spacing: -0.07em; font-weight: 400; }
.hero-sub { max-width: 720px; margin-bottom: 28px; font-size: clamp(19px, 2vw, 25px); line-height: 1.36; letter-spacing: -0.025em; color: #2d2b25; }
.hero-note { max-width: 660px; color: var(--muted); font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; letter-spacing: 0.03em; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--forest); color: var(--white); border-color: var(--forest); }
.button.secondary { background: transparent; color: var(--ink); }

.hero-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 56px 44px 64px 0; background: linear-gradient(180deg, rgba(21,37,31,0.055), transparent 38%); }
.office-card { width: min(100%, 540px); background: rgba(255,250,242,0.84); border: 1px solid var(--line); box-shadow: 0 24px 64px rgba(23,23,19,0.10); }
.office-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.ledger { padding: 24px; }
.ledger-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.ledger-title h2 { max-width: 340px; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.02; letter-spacing: -0.04em; }
.seal { width: 72px; height: 72px; border: 1px solid var(--forest); border-radius: 50%; display: grid; place-items: center; color: var(--forest); font-family: var(--serif); font-size: 28px; }
.records { display: grid; gap: 10px; }
.record { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.record code { color: var(--copper); font-family: var(--mono); font-size: 12px; }
.record p { margin: 0; color: #36332d; font-size: 14px; line-height: 1.45; }
.status-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 22px; }
.status-row div { padding: 16px 14px 0; min-height: 78px; border-right: 1px solid var(--line); }
.status-row div:last-child { border-right: 0; }
.status-row strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -0.03em; }
.status-row span { display: block; color: #514b41; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

.section { padding: clamp(72px, 9vw, 132px) 44px; border-bottom: 1px solid var(--line); }
.section-inner { max-width: 1260px; margin: 0 auto; }
.split { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(48px, 8vw, 112px); align-items: start; }
.section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.2vw, 90px); line-height: 0.98; letter-spacing: -0.055em; max-width: 860px; margin-bottom: 28px; }
.lead { font-size: clamp(20px, 2.25vw, 30px); line-height: 1.24; letter-spacing: -0.035em; color: #2b2821; }
.body-copy { display: grid; gap: 24px; color: #3b382f; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.54; }
.body-copy p { margin-bottom: 0; }
.dark { color: var(--white); background: var(--forest); border-bottom: 0; }
.dark .eyebrow { color: var(--sage); }
.dark h2, .dark .lead { color: var(--white); }
.dark .body-copy { color: rgba(255,250,242,0.78); }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.product-card { background: var(--paper); padding: clamp(32px, 5vw, 58px); min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; }
.product-card.dark-card { background: #1c3028; color: var(--white); }
.product-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper); margin-bottom: 36px; }
.dark-card .product-label { color: var(--sage); }
.product-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 68px); line-height: 0.96; letter-spacing: -0.055em; margin-bottom: 26px; }
.product-card p { max-width: 580px; margin-bottom: 0; color: inherit; opacity: 0.82; font-size: 18px; }
.product-card .best-line { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 28px; line-height: 1.12; letter-spacing: -0.035em; opacity: 1; }
.dark-card .best-line { border-top-color: rgba(255,250,242,0.2); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,250,242,0.20); border: 1px solid rgba(255,250,242,0.20); margin-top: 52px; }
.feature { padding: 28px; background: rgba(255,250,242,0.045); min-height: 176px; }
.feature h3 { margin-bottom: 18px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; letter-spacing: -0.035em; color: var(--white); }
.feature p { margin: 0; color: rgba(255,250,242,0.80); font-size: 14px; line-height: 1.5; }
.light-feature-grid { background: var(--line); border: 1px solid var(--line); }
.light-feature-grid .feature { background: rgba(255,250,242,0.55); }
.light-feature-grid .feature h3 { color: var(--forest); }
.light-feature-grid .feature p { color: #3d382f; }

.section-head { margin-bottom: 52px; }
.stack-card .ledger-title h2 { max-width: 360px; }
.stack-records .record { grid-template-columns: 118px 1fr; }
.compact-section { padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(64px, 7vw, 104px); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tier { background: rgba(255,250,242,0.62); padding: clamp(28px, 3.4vw, 42px); min-height: 430px; display: flex; flex-direction: column; }
.tier.featured { background: var(--forest); color: var(--white); }
.tier .product-label { margin-bottom: 26px; }
.tier.featured .product-label { color: var(--sage); }
.tier h3 { margin-bottom: 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 6vw, 86px); line-height: 0.9; letter-spacing: -0.06em; }
.tier h3 span { margin-left: 8px; font-family: var(--sans); font-size: 15px; letter-spacing: 0.04em; color: #736d62; }
.tier.featured h3 span { color: rgba(255,250,242,0.70); }
.tier-note { color: #3d382f; font-size: 16px; line-height: 1.48; min-height: 112px; }
.tier.featured .tier-note { color: rgba(255,250,242,0.78); }
.tier ul { margin: auto 0 0; padding: 24px 0 0 18px; border-top: 1px solid var(--line); color: #3d382f; font-size: 14px; line-height: 1.7; }
.tier.featured ul { border-top-color: rgba(255,250,242,0.22); color: rgba(255,250,242,0.78); }

.quote-band { padding: clamp(72px, 9vw, 132px) 44px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.quote { max-width: 1130px; margin: 0 auto; font-family: var(--serif); font-size: clamp(36px, 5.6vw, 82px); line-height: 1.02; letter-spacing: -0.055em; color: var(--forest); }
.cta-section { padding: clamp(84px, 9vw, 150px) 44px; background: var(--ink); color: var(--white); }
.cta-grid { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: 1fr 0.66fr; gap: 60px; align-items: end; }
.cta-section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 7vw, 104px); line-height: 0.94; letter-spacing: -0.06em; margin-bottom: 24px; }
.cta-section p { color: rgba(255,250,242,0.74); font-size: 19px; max-width: 660px; }
.cta-section .button { border-color: rgba(255,250,242,0.78); color: var(--white); }
.cta-section .button.primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 44px; background: var(--ink); color: rgba(255,250,242,0.58); border-top: 1px solid rgba(255,250,242,0.14); font-family: var(--mono); font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; }

@media (max-width: 1120px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .nav { padding: 0 22px; }
  .navlinks a:not(.nav-cta) { display: none; }
  .hero, .split, .product-grid, .pricing-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 72px 22px 48px; }
  .hero-panel { padding: 8px 22px 54px; }
  .section, .quote-band, .cta-section { padding-left: 22px; padding-right: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .tier { min-height: 0; }
  .tier-note { min-height: 0; }
  .tier ul { margin-top: 24px; }
  .footer { padding: 28px 22px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
