/* Troubleshootly. Marketing-site styling: charcoal + orange + action blue, geometric headings, check-icon bullets. No build step. */

:root {
  --charcoal: #24272e;
  --charcoal-2: #2f333b;
  --orange: #f26a2e;
  --orange-dark: #d9561d;
  --blue: #3d7ff0;
  --blue-dark: #2f6bd6;
  --text: #26272c;
  --muted: #64686f;
  --line: #e1e3e7;
  --light: #f2f3f5;
  --white: #ffffff;
  --hit: #ffd84d;

  --head: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --print: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0.5rem; background: var(--charcoal); color: var(--white); padding: 0.5rem 0.75rem; z-index: 10; }
.skip-link:focus { left: 0.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { width: 1em; height: 1em; flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0 0 0.55em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 4.8vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
section { padding: 5.5rem 0; }
.center { text-align: center; }
.sub { font-size: 1.15rem; color: var(--muted); max-width: 44rem; }
.center.sub { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--body); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 1rem 1.6rem; border-radius: 6px; border: 2px solid transparent; text-decoration: none; cursor: pointer; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

/* Promo bar */
.promo { background: var(--orange); color: var(--white); display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.6rem 1rem; text-align: center; font-weight: 600; }
.promo p { margin: 0; }

/* Header */
.site-header { background: var(--charcoal); color: var(--white); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.6rem; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.logo-word { font-family: var(--head); font-weight: 600; font-size: 1.45rem; letter-spacing: 0.14em; margin: 0; }
.logo-sub { font-size: 0.72rem; color: #b7bcc4; letter-spacing: 0.02em; margin-top: 0.15rem; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 1.8rem; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 600; color: #e6e8eb; }
.site-nav a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; }

/* Hero */
.hero { background: var(--charcoal); color: var(--white); padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { color: var(--white); }
.ul { background-image: linear-gradient(var(--orange), var(--orange)); background-repeat: no-repeat; background-size: 100% 0.14em; background-position: 0 92%; padding-bottom: 0.05em; }
.lede { font-size: 1.2rem; color: #d7dbe0; max-width: 38rem; }

.analyzer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.5rem; background: var(--white); padding: 0.5rem; border-radius: 8px; margin-top: 1.8rem; max-width: 44rem; }
.analyzer input { min-width: 0; font: inherit; font-size: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 5px; color: var(--text); }
.analyzer input[type="url"] { grid-column: 1 / -1; }
.analyzer input[type="email"] { grid-column: 1 / 3; }
.analyzer .btn { white-space: nowrap; }

.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; padding: 0; margin: 1.2rem 0 0; color: #d7dbe0; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-points svg { color: var(--orange); }

.hero-visual { position: relative; }
.hero-visual img { border-radius: 10px; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 70% center; width: 100%; }
.hero-visual::before { content: ""; position: absolute; inset: -1.2rem -1.2rem 2rem 2rem; background: var(--orange); border-radius: 10px; z-index: 0; }
.hero-visual img { position: relative; z-index: 1; }
.float-card { position: absolute; left: -2rem; bottom: 2rem; z-index: 2; background: var(--white); color: var(--text); border-radius: 8px; padding: 0.9rem 1.1rem; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.45); max-width: 16rem; }
.fc-label { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.2rem; font-weight: 600; }
.fc-q { font-family: var(--head); font-weight: 700; font-size: 1.15rem; margin: 0 0 0.2rem; }
.fc-n { font-size: 0.88rem; margin: 0; color: var(--orange-dark); font-weight: 600; }

/* Platforms */
.platforms { background: var(--orange); color: var(--white); padding: 1.4rem 0; }
.platforms .wrap { display: flex; align-items: center; justify-content: center; gap: 1rem 2.5rem; flex-wrap: wrap; }
.platforms p { margin: 0; font-weight: 600; }
.platforms ul { list-style: none; display: flex; gap: 2rem; padding: 0; margin: 0; flex-wrap: wrap; }
.platforms li { font-family: var(--head); font-weight: 700; font-size: 1.35rem; opacity: 0.95; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 2rem 1.8rem; border-top: 4px solid var(--orange); }
.icon { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #fde9df; color: var(--orange); font-size: 1.5rem; margin-bottom: 1rem; }
.service p { color: var(--muted); }

/* Check-icon bullets */
.checks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.checks li { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.55rem; font-weight: 500; }
.checks svg { color: var(--orange); margin-top: 0.25em; font-size: 1.05rem; }
.big-checks li { font-weight: 400; margin-bottom: 1.1rem; }
.big-checks svg { font-size: 1.3rem; margin-top: 0.15em; }

/* Exhibit */
.exhibit-band { background: var(--light); }
.exhibit { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; margin-top: 2.5rem; }
.exhibit > * { min-width: 0; }
.exhibit figure { margin: 0; }
.exhibit figcaption { margin-top: 1rem; }
.manual-page { background: var(--white); border: 1px solid var(--line); padding: 1.6rem 1.5rem 0.9rem; font-family: var(--print); color: #3d4650; font-size: 0.8rem; line-height: 1.4; box-shadow: 10px 10px 0 #dfe2e7; transform: rotate(-0.8deg); }
.manual-running { letter-spacing: 0.08em; text-align: center; margin: 0 0 1rem; font-size: 0.85rem; }
.manual-page table { width: 100%; border-collapse: collapse; table-layout: fixed; overflow-wrap: break-word; }
.manual-page th { text-align: left; font-weight: 600; font-size: 0.72rem; border-bottom: 1px solid #9aa3ad; padding: 0 0.5rem 0.35rem 0; }
.manual-page td { vertical-align: top; padding: 0.55rem 0.6rem 0.55rem 0; border-bottom: 1px solid #e3e7eb; }
.manual-page th:first-child, .manual-page td:first-child { width: 26%; }
.manual-page th:nth-child(2), .manual-page td:nth-child(2) { width: 22%; }
.manual-hit td { background: rgba(255, 216, 77, 0.55); }
.manual-folio { text-align: center; margin: 1rem 0 0; font-size: 0.75rem; }
.article-window { border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; box-shadow: 0 24px 50px -26px rgba(36, 39, 46, 0.5); border-top: 4px solid var(--orange); }
.article-search { display: flex; align-items: center; gap: 0.5rem; margin: 0.9rem; padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.95rem; color: var(--muted); background: var(--light); }
.article-body { padding: 0.3rem 1.6rem 1.4rem; font-size: 0.98rem; }
.article-title { font-family: var(--head); font-weight: 700; font-size: 1.55rem; line-height: 1.15; margin: 0.3rem 0 0.7rem; }
.article-body ol { margin: 0 0 1rem; padding-left: 1.3rem; columns: 2; column-gap: 1.5rem; }
.article-body li { margin-bottom: 0.2rem; break-inside: avoid; }
.article-warning { margin: 0; padding: 0.7rem 0.9rem; border-left: 5px solid var(--hit); background: #fff8d9; font-size: 0.88rem; line-height: 1.45; }

/* Numbers */
.numbers { background: var(--charcoal); color: var(--white); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.numbers-grid > div { border-left: 3px solid var(--orange); padding-left: 1.2rem; }
.numbers .big { font-family: var(--head); font-weight: 800; font-size: 3.4rem; line-height: 1; margin: 0 0 0.5rem; color: var(--white); }
.numbers-grid p:last-child { color: #c7ccd3; margin: 0; }

/* Samples, blog-card style */
.samples-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.5rem; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; transition: box-shadow 0.2s ease; }
.card:hover { box-shadow: 0 18px 40px -22px rgba(36, 39, 46, 0.45); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-block; align-self: flex-start; background: #fde9df; color: var(--orange-dark); font-weight: 700; font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.8rem; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card-body > p:not(.tag):not(.meta) { color: var(--muted); font-size: 0.98rem; flex: 1; }
.meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--muted); margin: 0; }

/* Why */
.why { background: var(--light); }
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.why-grid > * { min-width: 0; }
.why-photo img { border-radius: 10px; aspect-ratio: 4 / 3.6; object-fit: cover; box-shadow: -18px 18px 0 var(--orange); }

/* How */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin: 3rem 0 0; padding: 0; }
.steps li { counter-increment: step; text-align: center; padding: 0 0.5rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--orange); color: var(--white); font-family: var(--head); font-weight: 800; font-size: 1.5rem; }
.steps p { color: var(--muted); margin: 0; }

/* Pricing */
.pricing { background: var(--light); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; align-items: stretch; }
.plan { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 2.2rem 1.9rem; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--orange); transform: translateY(-0.8rem); box-shadow: 0 24px 50px -28px rgba(36, 39, 46, 0.5); }
.badge { position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%); background: var(--orange); color: var(--white); font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.8rem; border-radius: 999px; margin: 0; white-space: nowrap; }
.price { font-family: var(--head); font-weight: 800; font-size: 2.9rem; line-height: 1; margin-bottom: 1.4rem; }
.price span { font-family: var(--body); font-weight: 500; font-size: 1rem; color: var(--muted); }
.plan .checks { flex: 1; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 4rem; align-items: center; }
.about-grid > * { min-width: 0; }
.portrait img { border-radius: 10px; aspect-ratio: 4 / 4.4; object-fit: cover; box-shadow: 18px 18px 0 var(--charcoal); }
.about p { font-size: 1.1rem; }
.about .checks svg { color: var(--orange); }

/* FAQ */
.faq { background: var(--light); }
.faq-wrap { max-width: 52rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.4rem; margin-bottom: 0.8rem; }
.faq summary { font-family: var(--head); font-weight: 700; font-size: 1.2rem; cursor: pointer; }
.faq details[open] summary { color: var(--orange-dark); }
.faq details p { margin: 0.7rem 0 0.2rem; color: var(--muted); }

/* Final CTA */
.final { background: var(--charcoal); color: var(--white); }
.final-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.final-grid > * { min-width: 0; }
.final h2 { color: var(--white); }
.final p { color: #d7dbe0; }
.final a { color: var(--white); }
.final .analyzer { margin-top: 0; }

/* Footer */
.site-footer { background: #1b1d22; color: #b7bcc4; padding: 2.5rem 0 3rem; font-size: 0.95rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer .logo-word { color: var(--white); font-size: 1.2rem; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0 0 0.4rem; }
.small { font-size: 0.85rem; }

/* Sample article pages (built by tools/build_samples.py) */
.doc { padding: 2.5rem 0 4rem; }
.doc .wrap { max-width: 50rem; }
.back { font-size: 1rem; }
.sample-banner { background: var(--light); border-left: 5px solid var(--orange); padding: 0.9rem 1.1rem; margin: 1rem 0 2rem; font-size: 0.95rem; }
.sample-banner p { margin: 0; }
.doc h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.doc h2 { font-size: 1.8rem; margin-top: 2.2rem; }
.doc blockquote { margin: 1rem 0; padding: 0.8rem 1rem; border-left: 5px solid var(--hit); background: #fff8d9; font-size: 0.98rem; }
.doc blockquote p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0 1.5rem; }
.doc th, .doc td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { border-bottom: 2px solid var(--charcoal); }
.doc hr { display: none; }
.doc a { overflow-wrap: anywhere; }
/* sample pages still use the old wordmark markup */
.wordmark { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--head); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); text-decoration: none; font-size: 1.2rem; }
.wordmark svg { width: 22px; height: 22px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .exhibit, .why-grid, .about-grid, .final-grid { grid-template-columns: minmax(0, 1fr); gap: 2.8rem; }
  .service-grid, .card-grid, .plans { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .numbers-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { max-width: 30rem; }
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  section { padding: 3.8rem 0; }
  .hero { padding: 3rem 0 3.5rem; }
  .analyzer { grid-template-columns: 1fr; }
  .analyzer input[type="email"] { grid-column: auto; }
  .manual-page { transform: none; padding: 1.1rem 0.9rem 0.6rem; font-size: 0.74rem; }
  .article-body ol { columns: 1; }
  .numbers-grid, .steps { grid-template-columns: 1fr; }
  .float-card { left: 0.5rem; bottom: 0.5rem; }
  .hero-visual::before { inset: -0.6rem -0.6rem 1rem 1rem; }
  .logo-sub { display: none; }
  .promo { font-size: 0.9rem; }
}
