:root {
  --paper: #f5f3ee;
  --paper-2: #ecE9e1;
  --card: #fffdf9;
  --ink: #15171a;
  --ink-2: #44484f;
  --ink-3: #5c6067;
  --line: #d9d5cb;
  --accent: #1d5c4b;
  --accent-ink: #ffffff;
  --accent-soft: #dcebe5;
  --focus: #0b57d0;
  --dark: #121513;
  --dark-2: #1c201d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 12px 32px -12px rgba(20, 22, 26, .22);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 32px); }
@media (min-width: 768px) { .wrap { width: min(1200px, 100% - 64px); } .wrap-narrow { width: min(820px, 100% - 64px); } }

/* Preview bar */
.preview-bar {
  background: #fff3c4; color: #4a3b00; font-size: 14px; text-align: center;
  padding: 8px 16px; border-bottom: 1px solid #e8d78c;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.wordmark-mark {
  width: 22px; height: 22px; border-radius: 6px; background: var(--ink);
  box-shadow: inset -7px -7px 0 0 var(--accent);
}
.nav-list { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-list a:not(.btn) { text-decoration: none; color: var(--ink-2); padding: 6px 0; }
.nav-list a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: "";
  }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a:not(.btn) { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-cta-item { padding-top: 12px; }
  .nav-cta-item .btn { width: 100%; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #164a3c; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }

/* Type helpers */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow-light { color: #9fd3c2; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: #fff1c2; color: #5b4500; border: 1px solid #ead79a; border-radius: 999px; padding: 2px 10px;
}
.fine { font-size: 14px; color: var(--ink-3); }
.note { margin-top: 28px; color: var(--ink-2); font-size: 15px; text-align: center; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero { padding: 88px 0 104px; } .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 600; letter-spacing: -0.03em; }
.hero h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--accent); letter-spacing: -0.01em; }
.lede { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 15px; color: var(--ink-2); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero-visual { margin: 0; }
.stack { position: relative; aspect-ratio: 16 / 12.4; }
.frame {
  position: absolute; width: 78%; border-radius: 12px; overflow: hidden; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.frame-bar { display: flex; gap: 6px; padding: 9px 12px; background: #e9e5dc; border-bottom: 1px solid var(--line); }
.frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: #c9c3b6; }
.frame-back { top: 0; right: 0; }
.frame-mid { top: 18%; left: 4%; }
.frame-front { bottom: 0; right: 8%; }
.hero-visual figcaption { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 600; letter-spacing: -0.025em; }
.section-lede { margin-top: 16px; font-size: 18px; color: var(--ink-2); }

/* Demo tabs */
.demo-tabs {
  display: flex; gap: 6px; padding: 6px; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tabs [role="tab"] {
  flex: 0 0 auto; min-height: 42px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent;
  font: 500 15px/1.2 var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.demo-tabs [role="tab"]:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.demo-tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.demo-panel { display: grid; gap: 32px; margin-top: 28px; align-items: start; }
.demo-panel[hidden] { display: none; }
@media (min-width: 960px) { .demo-panel { grid-template-columns: 1.6fr 1fr; gap: 48px; } }
.demo-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.demo-media-phone { max-width: 300px; margin-inline: auto; border-radius: 28px; border-width: 6px; border-color: var(--ink); }
.demo-notes h3 { font-size: 26px; margin-top: 12px; }
.demo-notes h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 24px 0 10px; }
.demo-config { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.demo-notes .fine { margin-top: 18px; }

/* Lists */
.ticks li, .dashes li { position: relative; padding-left: 28px; margin-top: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.dashes li::before { content: ""; position: absolute; left: 3px; top: .8em; width: 12px; height: 2px; background: var(--ink-3); }
.ticks-light li::before { border-color: #9fd3c2; }

/* Steps */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 600; margin-bottom: 18px;
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--ink-2); }
.step-tools { margin-top: 12px; font-size: 15px; padding-top: 12px; border-top: 1px dashed var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips li { font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: #134034; }

.split { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-col { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.split-col h3 { font-size: 19px; margin-bottom: 6px; }

/* Package cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(5, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card-muted { background: transparent; border-style: dashed; }

/* Fit */
.fit { display: grid; gap: 20px; }
@media (min-width: 900px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit-col { padding: 32px; border-radius: var(--radius); }
.fit-yes { background: var(--card); border: 1px solid var(--line); }
.fit-no { background: transparent; border: 1px dashed #b9b3a6; }
.fit-col h3 { font-size: 21px; margin-bottom: 8px; }
.fit-no strong { font-weight: 600; }
.fit-no li { color: var(--ink-2); }

/* Pricing */
.pricing { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .pricing { grid-template-columns: 0.9fr 1.1fr; gap: 40px; } }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.price-label { font-weight: 600; color: var(--ink-2); }
.price { font-size: 56px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; }
.price-from { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 28px; color: var(--ink-3); letter-spacing: 0; }
.price-sub { margin-top: 10px; color: var(--ink-2); }
.price-card .ticks { margin: 20px 0 26px; }
.price-foot { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.licence h3 { font-size: 24px; margin-bottom: 20px; }
.licence-grid { display: grid; gap: 14px; margin: 0; }
@media (min-width: 640px) { .licence-grid { grid-template-columns: 1fr 1fr; } }
.licence-grid div { padding: 20px; border-top: 3px solid var(--ink); background: var(--paper-2); border-radius: 0 0 10px 10px; }
.licence-grid dt { font-weight: 600; margin-bottom: 6px; }
.licence-grid dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* Final CTA */
.final { background: var(--dark); color: #eef0ec; }
.final-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .final-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.final h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 600; letter-spacing: -0.025em; margin-bottom: 18px; }
.final-copy > p { color: #c7ccc6; }
.final-copy .ticks { margin-top: 14px; }
.final-small { margin-top: 22px; font-size: 14px; }

.enquiry {
  display: grid; gap: 16px; background: var(--dark-2); border: 1px solid #2f3531; border-radius: 20px; padding: 28px;
}
@media (min-width: 640px) { .enquiry { grid-template-columns: 1fr 1fr; } .field-full, .enquiry-intro { grid-column: 1 / -1; } }
.enquiry-intro { color: #c7ccc6; font-size: 15px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: #e3e6e1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #4a524c; background: #0d0f0e; color: #f4f5f2; font: 16px/1.4 var(--sans);
}
.field textarea { resize: vertical; }
.field input::placeholder { color: #7d857f; }
.field [aria-invalid="true"] { border-color: #ff9d8a; }
.field-error { color: #ffb3a3; font-size: 13.5px; }
.enquiry :focus-visible { outline-color: #8ab4ff; }
.enquiry .btn-primary { background: #22745c; }
.enquiry .btn-primary:hover { background: #1b604c; }
.form-status:empty { display: none; }
.form-status { padding: 16px 18px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.form-status.is-warning { background: #3a2f0c; border: 1px solid #8a6d14; color: #ffe7a3; }
.form-status.is-success { background: #0f3327; border: 1px solid #2f8f73; color: #c9f2e2; }
.form-status.is-error { background: #3a1610; border: 1px solid #9a3b2b; color: #ffd0c6; }
.form-status strong { display: block; margin-bottom: 4px; }
.form-status textarea {
  width: 100%; margin-top: 10px; min-height: 120px; padding: 10px; border-radius: 8px;
  background: #0d0f0e; color: #f4f5f2; border: 1px solid #4a524c; font: 13.5px/1.45 ui-monospace, Menlo, monospace;
}
.form-status .btn { margin-top: 10px; min-height: 40px; padding: 8px 16px; font-size: 14px; background: #f4f5f2; color: var(--ink); }

/* Footer */
.site-footer { background: var(--dark); color: #9aa19b; border-top: 1px solid #2a2f2b; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 28px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 639px) {
  .demo-tabs { flex-wrap: wrap; width: auto; border-radius: 16px; overflow: visible; }
  .demo-tabs [role="tab"] { flex: 1 1 calc(50% - 6px); white-space: normal; text-align: center; padding: 8px 10px; font-size: 14px; }
}

/* Review fixes: preserve the established palette, improve clarity and resilience. */
[hidden] { display: none !important; }
::selection { color: #fff; background: #1d5c4b; }
a { text-underline-offset: .2em; }
input, textarea { caret-color: #a9dfca; }
.btn { text-align: center; }
.btn:disabled { cursor: not-allowed; opacity: .65; transform: none; }
.audience { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.hero { padding: 44px 0 64px; }
.hero-grid { gap: 32px; }
.hero h1 { font-size: clamp(36px, 4.3vw, 58px); text-wrap: balance; }
.lede { font-size: 18px; max-width: 43ch; }
.hero-facts { gap: 8px 16px; font-size: 14px; }
.hero-facts li::before { flex-shrink: 0; }
.hero-main { display: block; }
.screenshot-link { display: block; border-radius: 10px; overflow: hidden; background: var(--card); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.screenshot-link:hover { border-color: var(--accent); }
.screenshot-link:focus-visible { outline-offset: 4px; }
.hero-thumbnails { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.image-action { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 14px; font-weight: 500; background: var(--card); }
.hero-visual figcaption { margin-top: 12px; line-height: 1.5; }
.demo-media { box-shadow: none; }
.demo-media .screenshot-link { border: 0; border-radius: 0; }
.demo-notes h4 { text-transform: none; letter-spacing: 0; font-size: 16px; }
.section { padding: 64px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { text-wrap: balance; }
.cards { grid-template-columns: 1fr; gap: 0; }
.card { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 0; background: none; display: grid; gap: 8px; }
.card h3 { margin: 0; }
.card p { font-size: 16px; max-width: 68ch; }
.proposal-title { font-size: clamp(28px, 3vw, 36px); margin-top: 14px; text-wrap: balance; }
.price-card { box-shadow: none; }
.founder { margin-top: 28px; padding-top: 22px; border-top: 1px solid #6a786e; color: #e3e9e4; }
.founder p { margin-bottom: 8px; font-size: 15px; }
.founder a { overflow-wrap: anywhere; }
.enquiry { display: block; padding: 24px; }
.enquiry fieldset { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 16px; }
.enquiry fieldset:disabled { opacity: .7; }
.field { min-width: 0; }
.field input, .field select, .field textarea, .form-status textarea { border-color: #84968a; }
.field label span, .field-hint, .form-help { color: #c7d3ca; }
.field label span { font-weight: 400; }
.field-hint, .form-help { font-size: 14px; line-height: 1.6; }
.form-help { margin-top: 16px; overflow-wrap: anywhere; }
.field-full { grid-column: 1 / -1; }
.form-actions .btn { width: 100%; }
.form-status:not(:empty) { margin-top: 18px; }
.form-status { overflow-wrap: anywhere; }
.copy-hint { margin-top: 8px; }
.footer-disclosure { flex-basis: 100%; }
.document { max-width: 860px; padding-block: 56px 80px; }
.document h1 { font-size: clamp(34px, 5vw, 52px); margin: 24px 0; text-wrap: balance; }
.document h2 { font-size: 28px; margin: 40px 0 14px; }
.document h3 { font-size: 21px; margin: 24px 0 12px; }
.document p + p { margin-top: 16px; }
.document .fine { margin-top: 12px; }
.document figure { margin: 24px 0; }
.document figcaption { color: var(--ink-2); font-size: 15px; margin-top: 12px; }
.tour-step { padding-block: 32px; border-bottom: 1px solid var(--line); }
.tour-step h2 { margin-top: 0; }
.config-summary { margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.config-summary div { border-top: 1px solid #b4bcb3; padding-top: 12px; }
.config-summary dt { font-size: 14px; color: var(--ink-2); }
.config-summary dd { margin: 4px 0 0; font-weight: 600; }
.note-box { margin-top: 24px; padding: 20px; border: 1px solid #b8c7bd; border-radius: 12px; background: #e5eee8; }
.tour-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
@media (min-width: 700px) { .card { grid-template-columns: 220px 1fr; gap: 32px; } .enquiry fieldset { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .hero { padding: 64px 0 72px; } .hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; } .section { padding: 80px 0; } }
@media (max-width: 480px) { .enquiry, .fit-col, .price-card, .step { padding: 22px; } .hero-thumbnails .image-action { font-size: 12px; padding: 8px; } }
/* Progressive enhancement: navigation and demonstrations stay readable without JS. */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .demo-tabs { display: none; }
html:not(.js) .demo-panel { display: grid; }
html:not(.js) .demo-panel + .demo-panel { margin-top: 48px; }
@media (max-width: 899px) {
  html:not(.js) .site-header { position: static; }
  html:not(.js) .header-inner { height: auto; display: block; padding-block: 16px; }
  html:not(.js) .nav-list { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0 0; border: 0; }
  html:not(.js) .nav-list a:not(.btn) { font-size: 15px; padding: 4px 0; border: 0; }
  html:not(.js) .nav-cta-item { padding: 0; }
}
