:root {
  --bg: #ffffff;
  --bg-alt: #f4f7f6;
  --text: #13201e;
  --muted: #5b6b68;
  --line: #dde5e3;
  --brand: #0f766e;
  --brand-dark: #0b5a54;
  --accent: #fbbf24;
  --card: #ffffff;
  --radius: 12px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0.2em 0 0.4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.6em 0 0.5em; }
h3, .h3 { font-size: 1.2rem; margin: 0 0 0.4em; }
.section > .container > h2:first-child, .section > .container.narrow > h2:first-child { margin-top: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 720px; }
.center.sub { margin: 0 auto 2rem; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.lead { font-size: 1.2rem; color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--brand); }
.site-nav a.btn { color: #fff; }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 820px) {
  .nav-toggle-label { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text);
  }
  .nav-toggle-label span { top: 21px; }
  .nav-toggle-label span::before { top: -7px; left: 0; right: 0; }
  .nav-toggle-label span::after { top: 7px; left: 0; right: 0; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .site-nav li a { display: block; padding: 12px 0; }
  .nav-toggle:checked ~ .site-nav { display: block; }
}

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.95rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 16px 0; margin: 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs.container ol { padding-left: 0; padding-right: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, #ecf6f4 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.page-hero { padding: 40px 0 8px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 1rem 0; }
.ticks li { position: relative; padding-left: 28px; margin: 0.4em 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.hero .ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; font-size: 0.95rem; }
@media (max-width: 520px) { .hero .ticks { grid-template-columns: 1fr; } }

/* Product mock */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(15,118,110,0.35); overflow: hidden; font-size: 0.9rem; }
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-row > div { flex: 1; min-width: 0; }
.mock-row b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row small { color: var(--muted); }
.mock-row.head, .mock-row.foot { justify-content: space-between; }
.mock-row.head em { color: var(--muted); font-style: normal; }
.mock-row.foot { border-bottom: 0; background: #fffbeb; font-size: 0.85rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.a { background: var(--brand); } .dot.b { background: var(--accent); } .dot.c { background: #6366f1; }
.tag { font-size: 0.75rem; padding: 3px 8px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); white-space: nowrap; }
.tag.ok { background: #dcfce7; color: #166534; }
.tag.go { background: #fef3c7; color: #92400e; }

/* Answer box (AEO: concise, quotable definition near the top) */
.answer-box { border-left: 4px solid var(--brand); background: var(--bg-alt); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.answer-box h2 { margin-top: 0; font-size: 1.35rem; }
.answer-box p:last-child, .answer-box ul:last-child { margin-bottom: 0; }
.answer-section { padding-bottom: 0; }

/* Grids & cards */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; margin: 2rem 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); }
.card a { font-weight: 600; text-decoration: none; }
.link-card { display: block; color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.link-card:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; }
.link-card .more { color: var(--brand); font-weight: 600; }
.feature-row h3 { color: var(--brand-dark); }
.feature-row p { margin-top: 0; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 24px 60px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps p { margin: 0; color: var(--muted); }

/* Table */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-alt); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; white-space: nowrap; }
@media (max-width: 620px) { tbody th { white-space: normal; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { display: inline; font-size: 1.1rem; margin: 0; }
.faq-answer p { margin-top: 0; color: var(--muted); }

/* Table of contents */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.toc a { font-size: 0.9rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); }
.toc a:hover { border-color: var(--brand); color: var(--brand); }
[id] { scroll-margin-top: 80px; }

/* Prose */
.prose h3 { margin-top: 1.5em; }
.prose li { margin: 0.35em 0; }

/* CTA */
.cta { background: var(--brand); color: #fff; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: #d7efec; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); }
.cta .btn-primary:hover { background: var(--accent); color: var(--text); }

/* Form */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; max-width: var(--max); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; margin-bottom: 16px; font-size: 0.95rem; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }

/* Footer */
.site-footer { background: #0d1f1d; color: #c9d6d3; padding: 56px 0 24px; font-size: 0.95rem; }
.site-footer a { color: #e6f0ee; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo { color: #fff; }
.site-footer .muted { color: #9fb2ae; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-h { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.footer-base { border-top: 1px solid #23403c; margin-top: 40px; padding-top: 20px; font-size: 0.85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
