:root {
  /* Brand navy sampled from the Forge wordmark (#142B43). Monochrome system. */
  --ink: #142b43;
  --ink-deep: #0e1f31;
  --ink-soft: #24405d;
  --paper: #ffffff;
  --surface: #fafbf6;
  --surface-alt: #f1f3f0;
  --muted: #5a6675;
  --border: #dde2e8;
  --border-strong: #c3ccd6;
  --on-dark: #ffffff;
  --on-dark-muted: #b9c6d6;

  --radius: 6px;
  --radius-lg: 10px;
  --wrap: 1080px;
  --shadow-card: 0 1px 2px rgba(20, 43, 67, 0.06);
  --shadow-lift: 0 6px 18px rgba(20, 43, 67, 0.1);
  --focus: 0 0 0 3px rgba(20, 43, 67, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--on-dark);
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 12px 0;
}

.logo img {
  display: block;
  height: 34px;
  width: auto;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 4px;
}

.site-header nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.site-header nav a:hover { color: var(--ink); }

.btn {
  display: inline-block;
  border-radius: var(--radius);
  padding: 12px 22px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.98rem;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--on-dark);
}

.btn-primary:hover { background: var(--ink-deep); }

.btn-outline {
  border-color: var(--border-strong);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover { border-color: var(--ink); }

.btn-invert {
  background: var(--on-dark);
  color: var(--ink);
}

.btn-invert:hover { background: #eef2f7; }

.btn-ghost-invert {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--on-dark);
  background: transparent;
}

.btn-ghost-invert:hover { border-color: var(--on-dark); }

.btn-sm { padding: 9px 16px; font-size: 0.92rem; }

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--on-dark);
  padding: 88px 0 80px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  margin: 0 0 18px;
  max-width: 18ch;
}

.hero p {
  color: var(--on-dark-muted);
  max-width: 56ch;
  margin: 0 0 32px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 32px;
  color: var(--on-dark-muted);
  font-size: 0.94rem;
}

.hero-points li {
  padding-left: 22px;
  position: relative;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--on-dark);
  opacity: 0.65;
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }

.section-head {
  max-width: 60ch;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 0 0 10px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ---------- Tools ---------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.tool-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.tool-card .desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.93rem;
  flex: 1;
}

.tool-card .price {
  font-weight: 700;
  font-size: 1.45rem;
  margin: 0 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.tool-card .price .per {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- How it works ---------- */

.how-it-works {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.steps li {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Reserve ---------- */

.reserve { background: var(--paper); }

.reserve-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

/* The form now stands alone in this section — cap it so the fields don't
   stretch to full page width on a desktop. */
.reserve-layout.is-single {
  grid-template-columns: minmax(0, 640px);
}

.reserve-form {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.reserve-form label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.reserve-form .optional {
  font-weight: 400;
  color: var(--muted);
}

.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}

.reserve-form input:focus,
.reserve-form select:focus,
.reserve-form textarea:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: var(--focus);
}

.reserve-form textarea { resize: vertical; }

.reserve-form button { justify-self: start; }

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.form-status.is-success {
  background: #eef4ee;
  border-color: #b9cdbb;
  color: #21492a;
}

.form-status.is-error {
  background: #fdf0ee;
  border-color: #e2b6ad;
  color: #7d2a1a;
}

/* Honeypot. Kept out of the layout and off the tab order without display:none,
   which some bots detect and skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.reserve-form button[type="submit"][disabled] {
  opacity: 0.6;
  cursor: default;
}

.aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.aside-card h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.aside-card p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0 0 18px;
}

.aside-card dl {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.aside-card dt {
  font-weight: 600;
  margin-bottom: 2px;
}

.aside-card dd {
  margin: 0 0 14px;
  color: var(--muted);
}

.aside-card dd:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-deep);
  color: var(--on-dark-muted);
  padding: 56px 0 32px;
}

.site-footer img.footer-logo {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin: 0 0 12px;
}

.site-footer p,
.site-footer li {
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
}

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

.footer-bottom {
  padding-top: 24px;
  font-size: 0.83rem;
}

.footer-bottom p { margin: 0; }

/* ---------- Legal page ---------- */

.wrap-narrow { max-width: 760px; }

.legal-page .section-head h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin: 0 0 12px;
}

.legal-meta {
  font-size: 0.86rem;
  color: var(--muted);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 0 36px;
}

.legal-meta strong { color: var(--ink); }

.legal h2 {
  font-size: 1.08rem;
  margin: 32px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legal h2:first-child { border-top: 0; padding-top: 0; }

.legal p,
.legal li { font-size: 0.95rem; }

.legal .warn { margin-top: 4px; }

/* Conspicuousness is a legal requirement for disclaimers and releases, not a
   styling preference — so these read louder than the prose around them. */
.legal-caps {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.88rem;
  line-height: 1.5;
  display: inline-block;
}

.legal ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
}

.legal ol li { margin-bottom: 8px; }

.legal-contact { margin-top: 44px; }

.legal-contact h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumb {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border-strong);
}

.breadcrumb a { text-decoration: none; }

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- Tool detail page ---------- */

.tool-hero {
  background: var(--ink);
  color: var(--on-dark);
  padding: 64px 0 56px;
}

.tool-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0 0 16px;
  max-width: 20ch;
}

.tool-hero .lede {
  color: var(--on-dark-muted);
  max-width: 60ch;
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 28px;
}

.price-block .amount {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}

.price-block .unit {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

.price-block .stock {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  white-space: nowrap;
}

.price-block .terms {
  color: var(--on-dark-muted);
  font-size: 0.88rem;
  flex-basis: 100%;
  margin: 0;
}

.tool-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 56px;
  align-items: start;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  margin: 0 0 16px;
  color: var(--muted);
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
}

.prose li { margin-bottom: 8px; }

.prose strong { color: var(--ink); }

.spec-list {
  margin: 0;
  border-top: 1px solid var(--border);
}

.spec-list > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}

.spec-list dt {
  font-weight: 600;
  margin: 0;
}

.spec-list dd {
  margin: 0;
  color: var(--muted);
}

.faq {
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--muted);
  line-height: 1;
}

.faq details[open] summary::after { content: "\2013"; }

.faq details > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 70ch;
}

/* Louder than .note — for the one thing that wrecks the tool if ignored. */
.warn {
  background: #fdf5ee;
  border: 1px solid #e2c4a8;
  border-left: 3px solid #a85b23;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.93rem;
  color: #6b3b12;
  margin: 0 0 16px;
}

.warn strong { color: #4d2a0c; }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ink-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 16px;
}

.sticky-cta {
  position: sticky;
  top: 92px;
}

.related {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 32px;
}

.link-list li { margin: 0; }

.link-list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  font-weight: 500;
}

.link-list a:hover { color: var(--ink-soft); text-decoration: underline; }

.pad-top { padding-top: 28px; }

.tool-card h3 a {
  text-decoration: none;
}

.tool-card h3 a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .tool-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sticky-cta { position: static; }

  .reserve-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .site-header .wrap { min-height: 60px; }
  .site-header nav { gap: 16px; }
  .site-header nav a.nav-link { display: none; }
  .logo img { height: 28px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
