/* abbild landing page. hansenexus tokens (hansenexus/design packages/tokens, light): paper,
   warm ink, one lime accent. Fonts are self-hosted (OFL), see build.ts. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --page: #f4f0e6;
  --band: #ede8dc;
  --card: #fbf8f1;
  --ink: #16140f;
  --body: #3a352c;
  --muted: #6b6456;
  --line: #d8cfbd;
  --line-strong: #8a8273;
  --lime: #42c501;
  --lime-hover: #8be45f;
  --lime-text: #2b7300;
  --tint: #e1ecd0;
  --crit: #b3261e;
  --radius: 14px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px / 1.55 var(--sans);
}
img,
svg {
  max-width: 100%;
}
a {
  color: var(--lime-text);
}
a:hover {
  color: #1f5500;
}
h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 600;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
}
p {
  margin: 0 0 1em;
  color: var(--body);
}
:focus-visible {
  outline: 3px solid var(--lime-text);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--card);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
  z-index: 10;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 760px;
}
.band {
  background: var(--band);
  padding: 72px 0;
}
section.wrap {
  padding-top: 72px;
  padding-bottom: 72px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(244, 240, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  font: 600 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--lime-hover);
  color: var(--ink);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.95rem;
}
.link {
  font-weight: 500;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero-narrow {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
}
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-text);
  margin-bottom: 0.8em;
}
.lead {
  font-size: 1.2rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 28px 0 12px;
}
.fine {
  font-size: 0.9rem;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
}
.hero-art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hero-art figure {
  padding: 12px;
}
.hero-art figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.price {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  background: var(--tint);
  border-color: #c9dbb0;
}
.price-label {
  flex-basis: 100%;
  font-size: 0.9rem;
  color: var(--body);
}
.price-value {
  font: 500 1.6rem var(--mono);
}
.price-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.plan {
  display: block;
  width: 100%;
  height: auto;
}
.plan .wall {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
}
.plan .gap {
  stroke: var(--card);
  stroke-width: 6;
}
.plan .win {
  stroke: var(--ink);
  stroke-width: 1;
}
.plan .obj rect {
  fill: rgba(107, 100, 86, 0.12);
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 3 2;
}
.plan .fixture {
  fill: rgba(107, 100, 86, 0.22);
  stroke: var(--muted);
  stroke-width: 1;
}
.plan text {
  font: 18px var(--mono);
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: middle;
}
.plan text.l {
  text-anchor: end;
}
.plan text.r {
  text-anchor: start;
}
.plan .obj-label text,
.plan .obj-label-t {
  font: 14px var(--sans);
  fill: var(--muted);
}

.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--card);
  font: 500 0.95rem var(--mono);
  margin-bottom: 14px;
}
.steps p {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.tier-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 600;
}
.tier-head strong {
  font: 500 2rem var(--mono);
}
.tier-sub {
  color: var(--muted);
  font-size: 0.95rem;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--body);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  background: var(--lime);
}
.plain {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  color: var(--body);
}

.form-section {
  max-width: 760px;
}
.wl {
  display: grid;
  gap: 18px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fields label:first-child {
  grid-column: 1 / -1;
}
.fields label {
  display: grid;
  gap: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}
.opt {
  color: var(--muted);
  font-weight: 400;
}
input[type="email"],
input[type="text"],
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem var(--sans);
}
[aria-invalid="true"] {
  border-color: var(--crit);
}
.check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.95rem;
  color: var(--body);
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--lime-text);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.status {
  margin: 0;
  min-height: 1.5em;
  font-weight: 500;
}
.status.ok {
  color: var(--lime-text);
}
.status.err {
  color: var(--crit);
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  min-height: 56px;
  display: flex;
  align-items: center;
  font-weight: 600;
}
.faq details p {
  margin: 0 0 18px;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 1.8em;
}
.prose h3 {
  margin-top: 1.4em;
}
.prose code {
  font: 0.9em var(--mono);
  background: var(--band);
  padding: 1px 5px;
  border-radius: 4px;
}
.result {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 20px;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  font-size: 0.95rem;
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.foot p {
  margin: 8px 0 0;
  color: var(--muted);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.foot nav a {
  color: var(--ink);
}

@media (max-width: 860px) {
  .hero,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .band,
  section.wrap {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
@media (max-width: 520px) {
  .steps,
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .top nav a:not(.btn) {
    display: none;
  }
  .hero-art {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
