@font-face {
  font-family: "Inter Variable";
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Variable";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f2eb;
  --surface: #ffffff;
  --surface-alt: #ebe7de;
  --stage-mat: #d9d4c9;
  --ink: #16191d;
  --ink-muted: #4b5260;
  --border: #ddd8cd;
  --border-control: #6e737b;
  --accent: #145343;
  --accent-hover: #0e3d31;
  --accent-soft: #e4f1ed;
  --focus-ring: #0f62fe;
  --ok: #1d4ed8;
  --ok-soft: #eff6ff;
  --warn-soft: #fef3c7;
  --warn-border: #b45309;
  --warn-ink: #78350f;
  --danger-soft: #fef2f2;
  --danger-border: #b91c1c;
  --danger-ink: #991b1b;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(22, 25, 29, 0.05), 0 6px 18px rgba(22, 25, 29, 0.04);
  --shadow-sheet: 0 10px 26px rgba(22, 25, 29, 0.14), 0 2px 6px rgba(22, 25, 29, 0.08);
  --font-sans: "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@view-transition {
  navigation: auto;
}

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

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

a {
  color: var(--accent);
  font-weight: 500;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-alt);
  padding: 0.12em 0.36em;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 6px;
}

.ribbon {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.82rem;
  padding: 0.48rem 1rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1.25rem;
}

.nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.025em;
  min-height: 44px;
}

.brand-link:hover {
  color: var(--accent);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  padding: 0 0.7rem;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-links a.nav-cta {
  background: var(--accent);
  color: #ffffff;
  margin-left: 0.25rem;
}

.nav-links a.nav-cta:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.container {
  max-width: 1120px;
  margin: 1.75rem auto 3.5rem;
  padding: 0 1.25rem;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.13;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.lead {
  font-size: 1.04rem;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
  max-width: 52ch;
  line-height: 1.58;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  align-items: center;
}

.hero-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0 0.25rem;
}

.hero-text-link:hover {
  text-decoration: underline;
}

.hero-meta {
  margin: 1.15rem 0 0.35rem;
  font-size: 0.83rem;
  color: var(--ink-muted);
  max-width: 54ch;
  line-height: 1.48;
}

.hero-footnote {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  max-width: 54ch;
  line-height: 1.45;
  opacity: 0.9;
}

/* Miniature X-Ray Preview Card on Landing Hero */
.hero-xray-mat {
  background: var(--stage-mat);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border);
}

.mini-sheet {
  background: var(--surface);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow-sheet);
}

.mini-sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.mini-issue-count {
  color: var(--danger-ink);
  font-weight: 700;
}

.mini-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: stretch;
}

.mini-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mini-col-right {
  justify-content: center;
}

.mini-gutter-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mini-box {
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  font-size: 0.76rem;
  line-height: 1.35;
  border: 1.5px solid var(--border-control);
  background: var(--bg);
}

.mini-box strong {
  display: block;
  font-size: 0.79rem;
}

.mini-box-ok {
  border-color: var(--ok);
  background: var(--ok-soft);
}

.mini-box-danger {
  border-color: var(--danger-border);
  background: var(--danger-soft);
}

.mini-box-warn {
  border-color: var(--warn-border);
  background: var(--warn-soft);
}

.mini-sheet-foot {
  margin-top: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.mini-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}

.mini-tag-danger {
  background: var(--danger-border);
}

.mini-tag-warn {
  background: var(--warn-border);
}

.mini-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.section-heading {
  margin: 2rem 0 0.85rem;
}

.section-heading h2 {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.notice {
  background: var(--warn-soft);
  border: 1px solid var(--warn-border);
  color: var(--warn-ink);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.grid-2 > .card,
.grid-3 > .card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.card p,
.clean-list li,
.notice {
  max-width: 62ch;
}

.card .cta-row {
  margin-top: auto;
  padding-top: 0.75rem;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1rem;
}

.trust-pill {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

.pill-danger-soft {
  background: var(--danger-soft);
  color: var(--danger-ink);
}

.card-before {
  border-top: 3px solid var(--danger-border);
}

.card-after {
  border-top: 3px solid var(--accent);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 620px;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0.7rem;
  text-align: left;
  vertical-align: middle;
}

.compare-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  background: var(--surface-alt);
}

.compare-highlight {
  background: var(--accent-soft);
}

.compare-highlight th[scope="row"] {
  color: var(--accent);
}

/* Visual Inputs -> Tool -> Outputs Flow Strip */
.flow-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.85rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.flow-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.38rem;
}

.flow-stage-core {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.flow-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.flow-badge-row {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.flow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 0.4rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
}

.fb-id { background: #881337; }
.fb-cv { background: #0f766e; }
.fb-wd { background: #1e40af; }
.fb-ro { background: var(--accent); }
.fb-csv { background: #334155; }
.fb-htm { background: #92400e; }
.fb-pdf { background: #991b1b; }

.flow-sub {
  font-size: 0.77rem;
  color: var(--ink-muted);
}

.flow-arrow {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* Multi-Currency Pricing Toggle */
.pricing-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.85rem;
}

.currency-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.currency-btn {
  min-height: 44px;
  padding: 0.38rem 0.7rem;
  border-radius: 7px;
  border: 1.5px solid var(--border-control);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.currency-btn:hover {
  background: var(--surface-alt);
}

.currency-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.card-featured {
  border-color: var(--accent);
  border-top: 4px solid var(--accent);
}

.tier-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0.35rem 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.price-sub {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.62rem 1.15rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid var(--border-control);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-control);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.clean-list {
  padding-left: 1.2rem;
  margin: 0.65rem 0;
}

.clean-list li {
  margin-bottom: 0.45rem;
}

.trust-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.35rem;
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 1.25rem;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.95rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 0.875rem;
    margin: 1rem auto 2.5rem;
  }
  .hero,
  .card {
    padding: 1.15rem;
  }
  .mini-flow {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .mini-gutter-svg {
    display: none;
  }
  .flow-strip {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .cta-row .btn {
    width: 100%;
  }
}

/* Feedback Drawer & Trigger */
.feedback-trigger {
  background: transparent;
  border: 1.5px solid var(--border-control);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  min-height: 44px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.feedback-trigger:hover {
  background: var(--accent-soft);
}

.feedback-backdrop[hidden] {
  display: none;
}

.feedback-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 25, 29, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
  animation: roBackdropFade 160ms ease-out;
}

.feedback-drawer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sheet);
  width: 100%;
  max-width: 440px;
  max-height: 94vh;
  overflow-y: auto;
  padding: 1.35rem;
  animation: roDrawerSlide 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

@keyframes roBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes roDrawerSlide {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

.feedback-form .cta-row {
  justify-content: flex-end;
  margin-top: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .feedback-backdrop,
  .feedback-drawer {
    animation: none;
  }
}

.feedback-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.feedback-label {
  font-size: 0.84rem;
  font-weight: 700;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--border-control);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--surface);
  color: var(--ink);
}

.feedback-form textarea {
  min-height: 104px;
  resize: vertical;
}

.feedback-ok {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}

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