/* Tenant Magnet. Smart Syndicator Brand Kit (Smart Syndicator Workspace CLAUDE.md): Ink + Sage, Inter only, flat (no shadows, no gradients), cards 7px.
   Sage #5A7A65 is the one accent (4.76:1 with white text). Text on tinted/grey surfaces and links use Sage Deep #3D5C48 (7.6:1).
   Kit's #B0B0B0 label gray fails 4.5:1 for text, so labels use the kit's Mid gray #6B6B6B (5.3:1 on white). */

@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #0a0a0a;
  --dark: #3a3a3a;
  --muted: #6b6b6b;
  --sage: #5a7a65;
  --sage-deep: #3d5c48;
  --sage-mid: #8fb8a0;
  --sage-light: #c8ddd1;
  --sage-tint: #eef3f0;
  --smoke: #f7f7f7;
  --line: #767676;
  --soft-line: #e4e4e4;
  --white: #ffffff;
  --bg: #ffffff;
  --radius: 7px;
  --footer-text: #b0b0b0;
  --footer-link: #c8ddd1;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background: var(--bg);
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 500; }
.wrap > h3:not(:first-child) { margin-top: 2rem; }
h4 { font-size: 1.05rem; font-weight: 500; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }

a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

/* Visible focus on every interactive element */
:focus-visible {
  outline: 3px solid var(--sage-deep);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
}
.site-footer :focus-visible, .on-dark :focus-visible {
  outline-color: var(--sage-mid);
  box-shadow: 0 0 0 6px var(--ink);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 0.5rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--sage-mid);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0.5rem;
}
.skip-link:focus { top: 0.5rem; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* Header: white with a soft shadow and the Smart Syndicator logo, as on smartsyndicator.com */
.site-header { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--soft-line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 8.75rem; height: auto; }
.brand-name { font-family: var(--font); font-weight: 600; letter-spacing: -0.01em; font-size: 1.15rem; padding-left: 0.75rem; border-left: 2px solid var(--soft-line); line-height: 1.2; }
.brand:hover .brand-name { text-decoration: underline; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; }
.site-header nav a { display: inline-block; padding: 0.4rem 0; color: var(--ink); }
.site-header nav a.nav-cta { background: var(--sage); color: var(--white); text-decoration: none; font-weight: 600; padding: 0.5rem 1.25rem; border-radius: var(--radius); }
.site-header nav a.nav-cta:hover { background: var(--sage-deep); text-decoration: underline; }

/* Buttons */
.button {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.65rem 1.4rem;
  border: 2px solid var(--sage);
  border-radius: var(--radius);
  background: var(--sage);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.secondary:hover { background: var(--smoke); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Hero */
.hero { background: var(--smoke); padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--soft-line); }
.hero .lede { font-size: 1.125rem; max-width: 52rem; }
.hero p { max-width: 52rem; }

.section { padding: 2.5rem 0; }
.section.alt { background: var(--smoke); }
.section-intro { max-width: 46rem; color: var(--muted); }

/* Calculator */
.card { background: var(--smoke); border: 1px solid var(--soft-line); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; }
.card > h3, .card > h2 { margin-bottom: 0.25rem; }
.card-sub { color: var(--muted); margin-bottom: 1rem; }
.badge { display: inline-block; margin: 0 0 0.5rem; padding: 0.15rem 0.7rem; border: 2px solid var(--ink); border-radius: 999px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

fieldset { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
legend { font-size: 1.1rem; font-weight: 700; padding: 0; margin-bottom: 0.75rem; }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem 1.5rem; }
.field { min-width: 0; }
.field label { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.hint { display: block; color: var(--muted); font-size: 0.9rem; margin: 0 0 0.35rem; }
.input-row { display: flex; align-items: stretch; }
.input-row .affix { display: flex; align-items: center; padding: 0 0.75rem; background: var(--smoke); border: 2px solid var(--line); border-right: 0; border-radius: 0.5rem 0 0 0.5rem; font-weight: 700; }
input[type="number"] {
  width: 100%; min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font: inherit; color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 0.5rem;
}
.input-row .affix + input { border-radius: 0 0.5rem 0.5rem 0; }
input[aria-invalid="true"] { border-color: #b91c1c; border-width: 3px; }
.error { margin: 0.35rem 0 0; color: #b91c1c; font-weight: 700; font-size: 0.95rem; }
.error:empty { display: none; }
.error:not(:empty)::before { content: "Error: "; }
.stale { margin: 0 0 1rem; padding: 0.6rem 0.9rem; border: 2px solid #b91c1c; border-radius: 0.5rem; color: #7f1d1d; font-weight: 700; }
.stale[hidden] { display: none; }

/* Range sliders */
.slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
output.slider-value { font-size: 1.5rem; font-weight: 800; color: var(--sage-deep); }
input[type="range"] { width: 100%; height: 2.5rem; margin: 0; background: transparent; accent-color: var(--sage-deep); -webkit-appearance: none; appearance: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 0.5rem; background: #6b6b6b; border-radius: 999px; }
input[type="range"]::-moz-range-track { height: 0.5rem; background: #6b6b6b; border-radius: 999px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 1.75rem; height: 1.75rem; margin-top: -0.625rem; border-radius: 50%; background: var(--sage); border: 3px solid var(--ink); }
input[type="range"]::-moz-range-thumb { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--sage); border: 3px solid var(--ink); }
.range-ends { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--muted); }

/* Results */
.results h4 { margin-top: 1.5rem; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin: 0; }
.result { margin: 0; padding: 1rem; border: 2px solid var(--soft-line); border-radius: 0.5rem; background: var(--smoke); min-width: 0; }
.result.key { border-color: var(--ink); background: var(--white); }
.result dt { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 0.25rem; }
.result dd { margin: 0; }
.result .value { display: block; font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 800; overflow-wrap: anywhere; }
.result .note { display: block; font-size: 0.9rem; color: var(--muted); }

.summary { margin: 1.25rem 0; padding: 1.25rem; border-radius: var(--radius); background: var(--ink); color: var(--white); text-align: center; border: 4px solid var(--sage-mid); }
.summary.negative { border-style: dashed; }
.summary .label { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.summary .big { display: block; font-size: clamp(1.75rem, 8vw, 3rem); font-weight: 800; overflow-wrap: anywhere; }
.summary .pct { display: inline-block; margin: 0.25rem 0 0.75rem; padding: 0.2rem 1rem; border: 2px solid var(--white); border-radius: 999px; font-size: 1.25rem; font-weight: 800; }
.summary p { margin: 0 auto; max-width: 32rem; }

.pricing { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 1.25rem; }
.pricing div { flex: 1 1 10rem; padding: 0.75rem 1rem; border: 2px solid var(--ink); border-radius: 0.5rem; }
.pricing dt { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.pricing dd { margin: 0; font-size: 1.5rem; font-weight: 800; }

.explain { margin-top: 1rem; padding: 1rem; border-left: 6px solid var(--sage); background: var(--smoke); }
.explain h5 { margin: 0 0 0.5rem; font-size: 1rem; }
.explain p { margin: 0 0 0.35rem; overflow-wrap: anywhere; }
.explain p.gap { margin-top: 0.75rem; }
.assumption { max-width: 52rem; margin-top: 1rem; padding: 1rem; background: var(--smoke); border-radius: 0.5rem; }

/* Features, testimonial, FAQ */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.grid-4 li { padding: 1.25rem; border: 1px solid var(--soft-line); border-radius: var(--radius); background: var(--smoke); }
.grid-4 h3 { font-size: 1.15rem; }
.grid-4 p { margin: 0; }

figure.testimonial { margin: 1.5rem 0 0; padding: 1.25rem; border-left: 6px solid var(--sage); background: var(--white); max-width: 54rem; }
figure.testimonial blockquote { margin: 0; }
figure.testimonial figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 0.5rem; }

details { border: 1px solid var(--soft-line); border-radius: var(--radius); margin: 0 0 0.75rem; background: var(--smoke); }
summary { cursor: pointer; padding: 0.9rem 1rem; font-weight: 700; font-size: 1.05rem; }
details[open] > summary { border-bottom: 2px solid var(--soft-line); }
details .answer { padding: 1rem; }
details .answer > :last-child { margin-bottom: 0; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--footer-text); padding: 2rem 0; }
.site-footer a { color: var(--footer-link); }
.site-footer ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer p { margin: 0; font-size: 0.95rem; }

@media (max-width: 30rem) {
  .card { padding: 1rem; }
  .button { width: 100%; }
}

/* Honor Windows high contrast / forced colors */
@media (forced-colors: active) {
  .summary, .result, .card { border: 2px solid CanvasText; }
}
main:focus{outline:none}
