/* OffcutVault Studio — Self-Hosted Font & Design Tokens (Zero External CDN) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/inter-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #F6F3EC;
  --bg-header: #1B2023;
  --bg-pill: #2C3338;
  --surface: #FFFFFF;
  --surface-warm: #EFE9DC;
  --surface-muted: #FAF8F4;
  --surface-subtle: #FCFBF8;
  --surface-wood: #F3EFE6;
  --surface-vault: #F4FBF6;
  --surface-locked: #FFF9F3;
  --ink: #1C2124;
  --ink-nav: #E7DFD3;
  --muted: #5A636A;
  --border: #D9D1C3;
  --border-wood: #B7AC99;
  --border-dashed: #7D7466;
  --accent: #B85D19;
  --accent-dark: #93460E;
  --green: #1E6B45;
  --green-bg: #E7F4EC;
  --amber: #9A5B13;
  --amber-bg: #FDF3E3;
  --red: #A62B21;
  --red-bg: #FDECEB;
  --radius: 10px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

header.site-header { view-transition-name: site-header; }
main { view-transition-name: main-content; }

::view-transition-old(main-content),
::view-transition-new(main-content) {
  animation-duration: 160ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

a { color: var(--accent-dark); }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
  background: var(--surface-warm);
  padding: 1px 5px;
  border-radius: 4px;
}
input, select, button, textarea {
  font-family: inherit;
  max-width: 100%;
  min-width: 0;
}
:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

header.site-header {
  background: var(--bg-header);
  color: var(--bg);
  border-bottom: 2px solid var(--accent);
  padding: 12px 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bg);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  min-height: 44px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}

nav.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
}

nav.top-links a {
  color: var(--ink-nav);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  min-height: 44px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  transition: background-color 150ms ease, color 150ms ease;
}

nav.top-links a:hover {
  color: var(--surface);
  background: rgba(255, 255, 255, 0.08);
}

nav.top-links a[aria-current="page"] {
  color: var(--surface);
  background: var(--bg-pill);
  box-shadow: inset 0 -2px 0 var(--accent);
}

main { padding: 24px 0 48px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}

main.container > .card > p,
main.container > .card > ul {
  max-width: 68ch;
}

.card-featured { border: 2px solid var(--accent); }
.card-hero { padding: 24px; }
.hero-title { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.2; margin: 12px 0; max-width: 28ch; }
.hero-lead { font-size: 16px; color: var(--muted); max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.section-title { font-size: 24px; line-height: 1.25; margin-bottom: 12px; }
.tier-title { margin: 10px 0 4px; line-height: 1.25; }
.tier-price { font-size: 28px; font-weight: 800; line-height: 1.2; margin: 6px 0; font-variant-numeric: tabular-nums; }
.tier-unit { font-size: 14px; font-weight: 400; color: var(--muted); }
.tier-list { padding-left: 18px; color: var(--muted); font-size: 14px; }
.card-title-sm { margin-top: 0; font-size: 18px; line-height: 1.3; }
.muted-copy { color: var(--muted); margin-bottom: 0; }
.ppp-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.full-width { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  min-height: 44px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.btn:hover { background: var(--surface-warm); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: #7D3B0B; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-sm { min-height: 44px; padding: 8px 12px; font-size: 13px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.grid-3 > *, .grid-2 > * { min-width: 0; }
.pricing-grid .card { display: flex; flex-direction: column; margin-bottom: 0; }
.pricing-grid .card .btn { margin-top: auto; }
@media (max-width: 820px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 12px; }
  .card { padding: 14px; }
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  background: var(--surface-warm);
}

.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-warm);
  padding: 24px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
}

.feedback-trigger-link {
  background: none;
  border: 0;
  padding: 4px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: underline;
  cursor: pointer;
}
.feedback-trigger-link:hover { color: var(--ink); }

.status-box {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
}
.status-info { background: var(--surface-warm); color: var(--ink); border-color: var(--border-wood); }
.status-ok { background: var(--green-bg); color: var(--green); border-color: var(--green); }
.status-err { background: var(--red-bg); color: var(--red); border-color: var(--red); }

.feedback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(27, 32, 35, 0.56);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  animation: ov-fade-in 150ms ease;
}
@keyframes ov-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (min-width: 641px) {
  .feedback-backdrop { align-items: center; }
}
.feedback-panel {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.25);
}
.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.feedback-title { margin: 0; font-size: 18px; line-height: 1.25; }
.feedback-intro { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.feedback-form { display: flex; flex-direction: column; gap: 12px; }
.feedback-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.feedback-field select,
.feedback-field input,
.feedback-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-wood);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  min-height: 44px;
}
.feedback-field textarea { min-height: 96px; resize: vertical; }
.feedback-turnstile { min-height: 0; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 10px; }

.flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
}
.flow-monogram {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  color: #fff;
}
.flow-monogram-in { background: var(--amber); }
.flow-monogram-ov { background: var(--accent-dark); }
.flow-monogram-out { background: var(--green); }
.flow-step-title { margin: 0 0 2px; font-size: 15px; line-height: 1.25; }
.flow-step-copy { margin: 0; font-size: 13px; color: var(--muted); }

.before-after-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--surface-muted);
}
.before-after-box.after-win {
  border: 1.5px solid var(--green);
  background: var(--surface-vault);
}
.before-after-stat {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0;
}

.pricing-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pricing-header-row .section-title { margin: 0; }
.currency-toggle {
  display: inline-flex;
  background: var(--bg-pill);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.currency-btn {
  border: 0;
  background: transparent;
  color: var(--ink-nav);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  min-height: 44px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.currency-btn.active {
  background: var(--accent-dark);
  color: #fff;
}

.table-wrap { overflow-x: auto; max-width: 100%; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--surface-muted);
}
.compare-table td.ov-col,
.compare-table th.ov-col {
  background: var(--surface-vault);
  font-weight: 700;
  color: var(--ink);
}

.sub-details {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.sub-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sub-details[open] summary {
  margin-bottom: 10px;
  color: var(--ink);
}

@media (max-width: 760px) {
  .flow-strip { grid-template-columns: 1fr; }
}

@media print {
  .feedback-backdrop,
  .feedback-trigger-link {
    display: none !important;
  }
}
