:root {
  --navy: #1B3855;
  --navy-2: #244a6e;
  --lime: #D4E02B;
  --ivory: #F6F5EF;
  --white: #fff;
  --muted: #4c6176;
  --line: rgba(27, 56, 85, .14);
  --line-soft: rgba(27, 56, 85, .08);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--navy); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Type */
h1, h2, h3, .wordmark { font-family: var(--display); letter-spacing: -.025em; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.5rem); line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; font-weight: 700; }
h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 500; letter-spacing: -.012em; }
.eyebrow { font: 500 .8rem/1.3 var(--mono); color: var(--muted); margin-bottom: 14px; }
h1 .eyebrow { display: block; letter-spacing: normal; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 33em; margin-top: 22px; }
.mark { background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 92% / 100% .34em; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; border-radius: 10px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-line { border-color: var(--line); background: transparent; }
.btn-line:hover { border-color: var(--navy); }
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-lime:hover:not(:disabled) { background: #c6d21f; }
.btn:disabled { background: var(--line-soft); color: #6b7d8f; cursor: not-allowed; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246, 245, 239, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-weight: 700; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1; }
.wordmark svg { display: inline-block; width: .56em; height: .56em; margin: 0 .02em; vertical-align: baseline; }
.nav-links { display: flex; gap: 30px; font-size: .95rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--navy); }

/* Hero */
.hero { padding-top: clamp(36px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.sheet { background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.demo { padding: 22px; position: relative; z-index: 1; }
.demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.demo-title { font: 500 1.2rem/1.25 var(--display); letter-spacing: -.015em; }
.demo-head p:not(.demo-title) { font-size: .9rem; color: var(--muted); }
.tag { font: 500 .72rem/1 var(--mono); padding: 6px 8px; background: var(--ivory); border-radius: 6px; white-space: nowrap; }

.slider-block { margin-top: 16px; padding: 14px; background: var(--ivory); border-radius: 12px; }
.slider-block label { display: flex; justify-content: space-between; align-items: baseline; font-size: .92rem; font-weight: 500; }
.slider-block output { font: 500 1rem var(--mono); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 6px 0 0; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--navy); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--navy); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--lime); border: 3px solid var(--navy); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--lime); border: 3px solid var(--navy); }

.calc { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .9rem; }
.calc th, .calc td { padding: 6px 0; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line-soft); }
.calc thead th { font: 500 .72rem var(--mono); color: var(--muted); }
.calc tbody th { font-weight: 500; }
.calc .n { text-align: right; font-family: var(--mono); font-size: .84rem; padding-left: 10px; white-space: nowrap; }
.calc thead .n { font-size: .72rem; }
.calc .sub th { font-weight: 400; color: var(--muted); }

.total { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.total > span:first-child { font-size: .95rem; font-weight: 500; }
.total strong { font: 500 1.9rem/1 var(--mono); letter-spacing: -.03em; background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 100% / 100% 7px; padding-bottom: 3px; }

.versions { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.versions-head { display: flex; justify-content: space-between; align-items: center; }
.versions h3 { font-size: .98rem; }
#version-list { margin-top: 6px; }
#version-list li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: .88rem; color: var(--muted); }
#version-list li:first-child { color: var(--navy); font-weight: 500; }
#version-list b { font: 500 .86rem var(--mono); }
.note { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* Woven bands */
.band { position: relative; width: 100%; height: 90px; margin-top: clamp(40px, 6vw, 72px); overflow: hidden; }
.band svg { position: absolute; left: 0; top: 0; }
.band .cell { animation: rise .45s both; animation-delay: calc(var(--d) * 1ms); }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding-top: 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(32px, 4vw, 52px); }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--line); }
.steps li { position: relative; }
.num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); font: 500 .95rem var(--mono); margin-bottom: 18px; box-shadow: 0 0 0 6px var(--ivory); }
.steps p { color: var(--muted); font-size: .96rem; margin-top: 8px; }

/* Design generation */
.designer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .92fr); overflow: hidden; }
.d-col, .d-preview { padding: 24px; }
.d-col { border-right: 1px solid var(--line-soft); }
.d-spec { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.order { margin-top: 12px; }
.order li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 84px; align-items: center; gap: 10px; padding: 5px 0; font-size: .95rem; }
.chip { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); }
.designer input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--navy); font: 500 16px var(--mono); text-align: right; }
.designer input:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: transparent; }
.d-repeat { min-height: 2.9em; margin-top: 10px; padding: 8px 10px; background: var(--ivory); border-radius: 9px; font-size: .86rem; line-height: 1.4; }
.breakup .swatch-cell { display: flex; align-items: center; gap: 7px; }
.breakup .swatch-cell i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line); }
.breakup .sum th, .breakup .sum td { font-weight: 600; border-bottom: 0; }
#check { display: block; width: 100%; aspect-ratio: 1; margin-top: 14px; border-radius: 10px; background: var(--ivory); }
.d-length { display: grid; grid-template-columns: minmax(0, 1fr) 120px; align-items: center; gap: 10px; margin-top: 14px; font-size: .92rem; font-weight: 500; }
.d-preview .total strong { font-size: 1.45rem; white-space: nowrap; }
.d-preview .total > span:first-child { font-size: .9rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.features article { padding: 28px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin: 0 -1px -1px 0; }
.features p { color: var(--muted); font-size: .96rem; margin-top: 8px; }
.viz { width: 100%; height: 64px; margin-bottom: 20px; }
.viz-buyers { display: flex; flex-direction: column; justify-content: space-between; }
.viz-buyers span { display: block; width: var(--w); padding: 0 8px; font: 500 .7rem/18px var(--mono); background: var(--ivory); border-left: 3px solid var(--navy); }
.viz-files { display: flex; gap: 10px; align-items: stretch; }
.viz-files span { position: relative; width: 56px; display: flex; align-items: flex-end; padding: 6px; font: 500 .72rem var(--mono); background: var(--ivory); border: 1px solid var(--line); border-radius: 6px; }
.viz-files span:first-child { background: var(--lime); border-color: transparent; }
.viz-roles { border-collapse: collapse; font: 500 .7rem/1 var(--mono); }
.viz-roles td { padding: 3px 6px 3px 0; height: 21px; }
.viz-roles td:not(:first-child) { width: 28px; }
.viz-roles b, .viz-roles s { display: block; width: 16px; height: 16px; border-radius: 4px; }
.viz-roles b { background: var(--navy); }
.viz-roles s { background: var(--line-soft); }

/* Coming soon */
.soon { padding-top: 0; }
.band-loom { height: 150px; margin: 0 0 clamp(44px, 6vw, 72px); }
.roadmap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 80px); }
.roadmap li { padding: 20px 0 20px 28px; border-top: 1px solid var(--line); position: relative; }
.roadmap li::before { content: ""; position: absolute; left: 0; top: 26px; width: 14px; height: 14px; border-radius: 50%; border: 2px dashed var(--navy); }
.roadmap p { color: var(--muted); font-size: .98rem; margin-top: 5px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; font: 500 1.08rem/1.3 var(--display); letter-spacing: -.012em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 500 1.3rem/1 var(--mono); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 32px 18px 0; color: var(--muted); font-size: .98rem; }

/* Contact */
.contact { background: var(--lime); padding: clamp(56px, 8vw, 96px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact p { margin-top: 12px; font-size: 1.1rem; max-width: 26em; }
.contact-links a { display: block; padding: 18px 0; text-decoration: none; border-top: 1px solid rgba(27, 56, 85, .35); }
.contact-links a:last-child { border-bottom: 1px solid rgba(27, 56, 85, .35); }
.contact-links span { display: block; font: 500 .8rem var(--mono); }
.contact-links strong { display: block; font: 500 clamp(1.15rem, 2.5vw, 1.65rem)/1.25 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact-links .contact-actions a { display: inline-flex; border: 0; padding: 0 16px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 18px; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: rgba(27, 56, 85, .08); }
.contact-links a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

.footer { padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .wordmark { font-size: 1.15rem; }
.footer p { font-size: .88rem; color: var(--muted); }
.footer-about { flex: 1 1 320px; max-width: 34em; }

@media (max-width: 980px) {
  .hero-grid, .contact-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .designer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-preview { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); }
  #check { aspect-ratio: 2 / 1; }
  .d-col:nth-child(2) { border-right: 0; }
  .demo { max-width: 620px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .steps::before { left: 17px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .steps li { padding-left: 58px; }
  .num { position: absolute; left: 0; top: -4px; margin: 0; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .features, .roadmap, .designer { grid-template-columns: minmax(0, 1fr); }
  .d-col, .d-preview { padding: 18px; }
  .d-col { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .d-preview { border-top: 0; }
  #check { aspect-ratio: 1; }
  .features article { padding: 22px; }
  .cta-row .btn { flex: 1 1 100%; }
  .demo { padding: 16px; }
  .band { height: 72px; }
  .band-loom { height: 110px; }
}

@media (max-width: 460px) {
  .hide-xs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band .cell { animation: none; }
}
