:root {
  --ink: #243247;
  --ink-2: #334660;
  --paper: #fffdf8;
  --parchment: #f4efe5;
  --parchment-2: #e9e0d0;
  --copper: #a7643a;
  --copper-dark: #7f4727;
  --sage: #637b6c;
  --sage-light: #e6eee8;
  --burgundy: #8a3f4b;
  --burgundy-light: #f5e7e9;
  --charcoal: #25282d;
  --muted: #616773;
  --border: #d8cfbf;
  --shadow: 0 14px 35px rgba(36, 50, 71, 0.10);
  --radius: 16px;
  --wrap: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--charcoal);
  background: var(--parchment);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--copper-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--burgundy); }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .72rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
button:hover, .button:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); }
.button.secondary, button.secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.button.secondary:hover, button.secondary:hover { background: var(--ink); color: #fff; }
.button.copper, button.copper { background: var(--copper); }
.button.copper:hover, button.copper:hover { background: var(--copper-dark); }
.button.quiet, button.quiet { background: transparent; color: var(--ink); border-color: var(--border); }
.button.quiet:hover, button.quiet:hover { background: var(--paper); color: var(--ink); }
.button.danger, button.danger { background: var(--burgundy); }

.skip-link { position: absolute; left: -9999px; top: .5rem; z-index: 1000; }
.skip-link:focus { left: .5rem; background: #fff; color: #000; padding: .7rem 1rem; border-radius: 8px; }
.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(900px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); font-weight: 800; text-decoration: none; }
.brand img { width: 46px; height: 46px; flex: 0 0 46px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text small { margin-top: .25rem; color: var(--muted); font-size: .73rem; font-weight: 600; letter-spacing: .04em; }
.nav-toggle { display: none; }
.primary-nav ul { display: flex; align-items: center; gap: .15rem; list-style: none; padding: 0; margin: 0; }
.primary-nav a { display: block; padding: .65rem .75rem; border-radius: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--parchment); color: var(--copper-dark); }

.hero { padding: clamp(3.5rem, 8vw, 7.5rem) 0 4rem; background: linear-gradient(145deg, var(--paper), var(--parchment)); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.eyebrow { margin: 0 0 .65rem; color: var(--copper-dark); font-size: .83rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); line-height: 1.16; }
h1 { margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.035em; }
h2 { margin-top: 0; font-size: clamp(1.75rem, 4vw, 2.85rem); }
h3 { font-size: 1.25rem; }
.lead { max-width: 760px; margin: 0 0 1.4rem; color: #404652; font-size: clamp(1.05rem, 2.2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0; }
.trust-strip { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.trust-strip span { padding: .46rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--ink); font-size: .9rem; font-weight: 700; }
.hero-visual { background: var(--ink); color: #fff; border-radius: 24px; padding: 1.25rem; box-shadow: var(--shadow); }
.hero-visual h2 { color: #fff; font-size: 1.25rem; }
.timeline-demo { display: grid; gap: .75rem; }
.timeline-row { display: grid; grid-template-columns: 95px 1fr auto; align-items: center; gap: .7rem; padding: .75rem; border-radius: 12px; background: rgba(255,255,255,.1); }
.timeline-row strong { color: #f0c2a1; }
.timeline-row small { color: #dfe6ef; }
.timeline-row span:last-child { color: #fff; font-weight: 800; }

.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--border); }
.section-intro { max-width: 800px; margin-bottom: 2rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.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(--border); border-radius: var(--radius); padding: 1.35rem; box-shadow: 0 8px 24px rgba(36,50,71,.05); }
.card h3 { margin-top: 0; }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .8rem; border-radius: 12px; background: var(--sage-light); color: var(--ink); font-weight: 900; }
.callout { padding: 1.25rem; border-left: 5px solid var(--copper); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.callout.warning { border-color: var(--burgundy); background: var(--burgundy-light); }
.callout.success { border-color: var(--sage); background: var(--sage-light); }
.kicker { color: var(--copper-dark); font-weight: 800; }
.clean-list { padding-left: 1.1rem; }
.clean-list li + li { margin-top: .45rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.75rem; margin: .65rem 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 900; }

.breadcrumbs { padding: 1rem 0 0; color: var(--muted); font-size: .92rem; }
.breadcrumbs a { color: var(--muted); }
.page-hero { padding: 2.7rem 0 2rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); }
.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.8rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; background: var(--paper); }
.prose th, .prose td { padding: .7rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--parchment); color: var(--ink); }

.tool-shell { background: var(--paper); border: 1px solid var(--border); border-radius: 20px; padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: .35rem; color: var(--ink); font-weight: 700; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: .7rem .75rem; border: 1px solid #b9b1a5; border-radius: 9px; background: #fff; color: var(--charcoal);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(167,100,58,.2); border-color: var(--copper); }
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
legend { padding: 0 .45rem; color: var(--ink); font-weight: 800; }
.inline-options { display: flex; flex-wrap: wrap; gap: .8rem; }
.inline-options label { display: flex; align-items: center; gap: .4rem; font-weight: 600; }
.inline-options input { width: auto; min-height: auto; }
.result-box { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: var(--sage-light); border: 1px solid #b9cabb; }
.result-box strong { color: var(--ink); }
.error-box { background: var(--burgundy-light); border-color: #d7a9b0; }
.small { font-size: .9rem; color: var(--muted); }

.ad-note { max-width: 900px; margin: 1.5rem auto; color: var(--muted); font-size: .8rem; text-align: center; }

.site-footer { background: var(--ink); color: #e8edf4; padding: 3.4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h3 { margin-top: 0; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .45rem; }
.site-footer a { color: #dfe7f2; }
.site-footer a:hover { color: #ffd7bd; }
.footer-brand { max-width: 330px; }
.footer-bottom { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; color: #cdd6e1; font-size: .88rem; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; padding: .55rem .75rem; }
  .primary-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--border); padding: .7rem 1rem 1rem; }
  .primary-nav.open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; }
  .hero-grid, .grid-3 { grid-template-columns: 1fr; }
  .hero-visual { max-width: 680px; }
}
@media (max-width: 700px) {
  .wrap, .narrow { width: min(100% - 1.15rem, var(--wrap)); }
  .brand-text small { display: none; }
  .grid-2, .grid-4, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .timeline-row { grid-template-columns: 78px minmax(0,1fr); }
  .timeline-row span:last-child { grid-column: 2; }
  .hero { padding-top: 2.7rem; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.55rem); }
  .site-header { position: relative; }
  .primary-nav { top: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .hero-actions, .nav-toggle, .ad-note, .button, button { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .tool-shell { box-shadow: none; border-color: #aaa; }
  a { color: #000; text-decoration: none; }
}
