/* MatterOwl marketing site. Fonts are self-hosted (SIL OFL 1.1; licences beside the files). */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1B2A41;
  --navy-deep: #0E1726;
  --navy-soft: #2E4468;
  --amber: #E0A33B;
  --amber-text: #9A6417;
  --ivory: #F7F4EC;
  --paper: #FFFFFF;
  --line: #E4DED0;
  --muted: #4A5468;
  --pdf: #A3241C;
  --draft: #1F57B0;
  --sheets: #16704A;
  --radius: 16px;
  --wrap: 1120px;
  --gutter: 16px;
  --head: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-text); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber-text); margin: 0 0 0.75em;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px;
  background: var(--navy); color: var(--ivory); border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 8px; color: var(--ivory); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.site-head { background: var(--ivory); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--head); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--navy); }
.brand .logo-mark { width: 40px; height: 36px; color: var(--navy); flex: none; }
.brand-img { width: 40px; height: 40px; flex: none; }
.lockup { display: block; width: 160px; height: auto; }
.lockup-rev { width: 190px; margin-left: -6px; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: transparent; border: 2px solid var(--navy); border-radius: 10px;
  font: 600 0.95rem var(--body); color: var(--navy); cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.site-nav a[aria-current="page"] { background: #EDE6D4; }
.site-nav a.btn { margin-left: 8px; }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { width: 100%; }
  .site-nav a.btn { margin: 8px 0 0; justify-content: center; }
  .site-head .wrap { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; padding-bottom: 12px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 2px solid transparent; font: 700 1rem var(--body); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--amber); color: var(--navy-deep); }
.btn-primary:hover { background: #EBB451; color: var(--navy-deep); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--ivory); }
.site-nav a.btn-primary { min-height: 44px; }
.on-navy .btn-ghost { border-color: var(--ivory); color: var(--ivory); }
.on-navy .btn-ghost:hover { background: var(--ivory); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.on-white { background: var(--paper); }
.on-navy { background: var(--navy); color: var(--ivory); }
.on-navy a { color: var(--ivory); }
.on-navy .eyebrow { color: var(--amber); }
.on-navy .muted, .on-navy .lede { color: #C9D0DC; }
.section-head { max-width: 46em; margin-bottom: 40px; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero .wrap { grid-template-columns: 1.35fr 1fr; } }
.hero h1 { max-width: 16em; }
.hero-art { display: flex; justify-content: center; }
.hero-art .barnaby, .hero-art img { width: min(340px, 62vw); height: auto; }
.promise-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.promise-list li { display: flex; gap: 12px; align-items: flex-start; }
.tick { flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--navy); position: relative; }
.tick::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px; border: solid var(--amber); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.on-navy .tick { background: var(--amber); }
.on-navy .tick::after { border-color: var(--navy); }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.on-white .card { background: var(--ivory); }
.on-navy .card { background: var(--navy-soft); border-color: #3B5378; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card a.more { font-weight: 600; }
.icon-tile { width: 64px; height: 64px; margin-bottom: 14px; display: block; }
.card .avatar, .feature-block > div > .avatar { display: block; width: 64px; height: 64px; margin-bottom: 14px; }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: #F4E5C6; color: #6B4610; vertical-align: middle; margin-left: 6px;
}
.badge-live { background: #DCEADF; color: #1D5131; }
h3 .badge, h2 .badge { position: relative; top: -2px; }

/* Problem list */
.problems { counter-reset: p; }
.problem { border-top: 3px solid var(--navy); padding-top: 18px; }
.problem h3 { font-size: 1.1rem; }

/* Hosting steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: s; background: var(--navy-soft); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: var(--navy-deep); font: 800 1rem var(--head); margin-bottom: 12px; }
.steps h3 { color: var(--ivory); }

/* Feature detail page */
.feature-block { display: grid; gap: 24px; padding: 56px 0; border-top: 1px solid var(--line); }
.feature-block:first-of-type { border-top: 0; }
@media (min-width: 880px) { .feature-block { grid-template-columns: 1fr 1.6fr; gap: 48px; } }
.feature-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .checklist.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 12px; border-radius: 3px; background: var(--amber); }
.checklist li.soon::before { background: transparent; border: 2px solid var(--amber-text); }
.checklist strong { font-weight: 650; }
.legend { font-size: 0.95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 20px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--amber); display: inline-block; }
.legend i.soon { background: transparent; border: 2px solid var(--amber-text); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.93rem; }

/* Chat mock (illustrative, clearly labelled) */
.chat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.chat .row { display: flex; gap: 12px; align-items: flex-start; }
.chat .row.me { justify-content: flex-end; }
.chat .bubble { padding: 12px 16px; border-radius: 14px; max-width: 34em; font-size: 0.97rem; }
.chat .me .bubble { background: var(--navy); color: var(--ivory); border-bottom-right-radius: 4px; }
.chat .owl .bubble { background: var(--ivory); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat .avatar { flex: none; width: 40px; height: 40px; }
.chat-note { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price { font: 800 2rem var(--head); margin: 6px 0 2px; letter-spacing: -0.02em; }
.price small { font: 500 1rem var(--body); color: var(--muted); }
.price-card .checklist { margin: 18px 0 24px; flex-grow: 1; }
.price-card.featured { border: 2px solid var(--navy); }
.placeholder { background: #FFF1CF; outline: 1px dashed #B07A1E; border-radius: 4px; padding: 0 4px; }

/* Notices */
.notice { border-left: 6px solid var(--amber); background: #FFF6E2; padding: 18px 20px; border-radius: 8px; margin: 0 0 32px; }
.notice strong { display: block; font-family: var(--head); font-size: 1.1rem; }
.draft-banner { background: #7A1F17; color: #fff; text-align: center; padding: 10px var(--gutter); font-weight: 700; letter-spacing: 0.04em; }

/* Prose (legal pages) */
.prose { max-width: 46em; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 1.08rem var(--head); padding: 14px 0; min-height: 44px; list-style-position: outside; }
.faq details p { color: var(--muted); }

/* Form */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 0.9rem; color: var(--muted); margin: 4px 0 0; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--navy); background: var(--paper);
  border: 2px solid #8E97A6; border-radius: 10px; padding: 10px 12px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); outline: 3px solid var(--amber); outline-offset: 1px; }
.email-big { font: 800 clamp(1.3rem, 4vw, 1.8rem) var(--head); word-break: break-all; }

/* CTA band */
.cta .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .cta .wrap { grid-template-columns: 1.6fr 1fr; } }
.cta-art { display: flex; justify-content: center; }
.cta-art .barnaby, .cta-art img { width: 220px; height: auto; }

/* Footer */
.site-foot { background: var(--navy); color: #C9D0DC; padding: 48px 0 32px; font-size: 0.95rem; }
.site-foot a { color: var(--ivory); }
.site-foot .cols { display: grid; gap: 28px; }
@media (min-width: 720px) { .site-foot .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-foot h2 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-foot ul a { display: inline-block; padding: 6px 0; }
.site-foot .brand { color: var(--ivory); }
.site-foot .brand .logo-mark { color: var(--ivory); }
.site-foot .legal-line { border-top: 1px solid #3B5378; margin-top: 32px; padding-top: 20px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-head, .site-foot, .cta { display: none; } body { background: #fff; } }

/* Small utilities (the CSP allows no inline styles) */
.hero-short { padding-bottom: 36px; }
.hero .wrap.wrap-block { display: block; }
.items-center { align-items: center; }
.pt-48 { padding-top: 48px; }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; }
