:root {
  --bg: #f7f9f8;
  --bg-alt: #eef3f0;
  --surface: #ffffff;
  --surface-2: #f2f5f3;
  --text: #14201a;
  --text-muted: #4d5b54;
  --border: #dde5e0;
  --primary: #1f8f4e;
  --primary-hover: #187a42;
  --primary-ink: #ffffff;
  --primary-soft: #e3f4ea;
  --online: #22a55b;
  --away: #e3a008;
  --focus: #1f8f4e;
  --shadow: 0 1px 2px rgba(16, 40, 28, .06), 0 8px 24px rgba(16, 40, 28, .08);
  --shadow-lg: 0 2px 4px rgba(16, 40, 28, .06), 0 24px 60px rgba(16, 40, 28, .14);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1411;
    --bg-alt: #111a16;
    --surface: #16201b;
    --surface-2: #1c2822;
    --text: #e7eee9;
    --text-muted: #a3b1a9;
    --border: #2a3832;
    --primary: #2fae66;
    --primary-hover: #3cc275;
    --primary-ink: #04150b;
    --primary-soft: #183526;
    --online: #2fbf6a;
    --focus: #5fd394;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .45);
  }
}

*, *::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(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--primary-ink); padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .container { padding: 0 16px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; margin: -3px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links a.lang-switch { padding: 4px 9px; border: 1px solid var(--border); border-radius: 8px; font-size: .8rem; font-weight: 650; letter-spacing: .04em; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--primary-ink); }
@media (max-width: 820px) { .nav-links .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; line-height: 1.2;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-ink); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { color: var(--text); border-color: var(--text-muted); }
.btn-disabled, .btn-disabled:hover { opacity: .6; cursor: default; transform: none; }
.btn-sm { padding: 9px 16px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 72px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--online) 18%, transparent), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600;
  color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--online); display: inline-block; flex: none; }
.dot-away { background: var(--away); }
.hero .lead { font-size: 1.2rem; color: var(--text-muted); max-width: 34em; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.fine { font-size: .9rem; color: var(--text-muted); }
@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 480px) { .cta-row .btn { width: 100%; } }

/* Popup mock */
.popup-stage { display: flex; justify-content: center; }
.popup {
  width: 100%; max-width: 340px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: .95rem;
}
.popup-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.popup-head .brand { font-size: 1rem; }
.popup-head .brand img { width: 26px; height: 26px; }
.popup-gear { width: 20px; height: 20px; color: var(--text-muted); }
.popup-status { display: flex; align-items: center; gap: 12px; padding: 18px 16px; background: var(--primary-soft); }
.popup-status .pulse { position: relative; width: 14px; height: 14px; flex: none; }
.popup-status .pulse::before, .popup-status .pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--online);
}
.popup-status .pulse::after { animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .popup-status .pulse::after { animation: none; } }
.popup-status strong { display: block; font-size: 1.05rem; }
.popup-status span { color: var(--text-muted); font-size: .85rem; }
.popup-rows { padding: 6px 0; }
.popup-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.popup-row + .popup-row { border-top: 1px solid var(--border); }
.svc { display: flex; align-items: center; gap: 12px; }
.svc-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; flex: none; }
.svc-teams { background: #5b5fc7; }
.svc-slack { background: #4a154b; }
.svc small { display: block; color: var(--text-muted); font-size: .8rem; line-height: 1.3; }
.svc b { font-weight: 650; }
.toggle { width: 42px; height: 24px; border-radius: 999px; background: var(--primary); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.popup-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); font-size: .82rem; }
.popup-foot svg { width: 16px; height: 16px; flex: none; }

/* Sections */
section { scroll-margin-top: 72px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }
.kicker { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: 10px; display: block; }
@media (max-width: 700px) { .section { padding: 60px 0; } .section-head { margin-bottom: 32px; } }

/* Problem */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.timeline { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; padding: 12px 0; }
.timeline li + li { border-top: 1px dashed var(--border); }
.timeline time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-muted); font-size: .92rem; }
.timeline .what { display: flex; gap: 10px; align-items: baseline; }
.timeline .what .dot { position: relative; top: 1px; }
@media (max-width: 820px) { .problem-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary); font-weight: 800; margin-bottom: 16px;
}
.step p { color: var(--text-muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--text-muted); margin: 0; font-size: .97rem; }
.feature .icon-pair { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.feature .icon-pair img { width: 40px; height: 40px; margin: -4px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Schedule */
.schedule-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 8px; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231F8F4E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.day-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.day-card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.day-card h3 small { font-weight: 500; color: var(--text-muted); font-size: .85rem; }
.daybar { display: flex; height: 40px; border-radius: 10px; overflow: hidden; margin: 18px 0 8px; border: 1px solid var(--border); }
.daybar span { display: block; }
.seg-off { background: var(--surface-2); }
.seg-on { background: var(--online); }
.seg-break { background: repeating-linear-gradient(135deg, var(--away) 0 6px, color-mix(in srgb, var(--away) 70%, var(--surface)) 6px 12px); }
.dayticks { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-size: .88rem; color: var(--text-muted); }
.legend span { display: inline-flex; gap: 8px; align-items: center; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.weekdays { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.weekdays span { width: 36px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: .8rem; font-weight: 650; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.weekdays .on { background: var(--primary-soft); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
@media (max-width: 860px) { .schedule-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Privacy band */
.privacy-band { background: linear-gradient(160deg, #0f5a33, #0a3d23); color: #eaf6ef; border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.privacy-band h2 { color: #fff; }
.privacy-band p { color: #c7e3d3; }
.privacy-band a { color: #9ef0c0; }
.privacy-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.privacy-band li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px; }
.privacy-band li strong { display: block; color: #fff; }
.privacy-band li span { font-size: .93rem; color: #c7e3d3; }
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; padding: 32px 22px; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; justify-content: center; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan .badge { position: absolute; top: -13px; left: 30px; background: var(--primary); color: var(--primary-ink); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 2px; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.plan .sub { color: var(--text-muted); font-size: .95rem; margin-bottom: 20px; }
.plan .checklist { margin-bottom: 24px; flex: 1; font-size: .97rem; }
.pricing-note { text-align: center; color: var(--text-muted); margin-top: 26px; font-size: .95rem; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 20px 18px; color: var(--text-muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .cta-row { justify-content: center; }
.cta-band img { width: 72px; height: 72px; margin: 0 auto 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 36px; font-size: .92rem; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.site-footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.disclaimer { border-top: 1px solid var(--border); padding-top: 20px; font-size: .84rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Article / prose pages */
.prose-wrap { padding: 56px 0 80px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); }
.prose h2 { font-size: 1.55rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose .meta { color: var(--text-muted); font-size: .95rem; margin-bottom: 28px; }
.prose .lede { font-size: 1.15rem; color: var(--text-muted); }
.breadcrumb { font-size: .9rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); }
.callout { background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: var(--radius); padding: 18px 20px; margin: 1.6em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { background: color-mix(in srgb, var(--away) 14%, var(--surface)); border-color: color-mix(in srgb, var(--away) 45%, transparent); }
.option { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin: 1.2em 0; }
.option h3 { margin-top: 0; }
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: .95rem; }
.procon strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 4px; }
.procon ul { margin: 0; }
@media (max-width: 560px) { .procon { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--surface); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.article-cta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; margin: 2.4em 0; display: flex; gap: 18px; align-items: center; }
.article-cta img { width: 56px; height: 56px; flex: none; }
.article-cta p { margin: 0 0 12px; color: var(--text-muted); }
.article-cta h2 { margin: 0 0 6px; font-size: 1.2rem; }
@media (max-width: 560px) { .article-cta { flex-direction: column; align-items: flex-start; } }
.related { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.related a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 600; }
.review-banner { background: color-mix(in srgb, var(--away) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--away) 50%, transparent); border-radius: 12px; padding: 14px 18px; margin-bottom: 28px; font-size: .95rem; }

@media (prefers-color-scheme: dark) {
  .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235FD394' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E"); }
}

@media (max-width: 560px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { display: block; border-bottom: 1px solid var(--border); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: block; border-bottom: 0; padding: 4px 14px; }
  table.stack td:first-child { padding-top: 12px; font-weight: 650; }
  table.stack td:last-child { padding-bottom: 12px; color: var(--text-muted); }
}
td code { overflow-wrap: anywhere; }
