/* Yaya Tech design system: professional, clean, enterprise consulting.
 * One file for yaya.tech (home + docs + agent widget). Other Yaya properties link it:
 *   <link rel="stylesheet" href="https://yaya.tech/assets/yaya.css">
 * Style guide: https://yaya.tech/assets/STYLE.md
 */
:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --surface-2: #eef2f5;
  --border: #e3e8ee;
  --border-strong: #cfd7df;
  --text: #0b1726;
  --text-2: #3d4a5c;
  --muted: #6b7788;
  --brand: #0b2540;          /* deep navy: headings, primary buttons */
  --brand-contrast: #ffffff;
  --accent: #0f7b64;         /* teal from the Yaya green, darkened for AA on white */
  --accent-soft: #e6f4f0;
  --accent-bright: #5fd7af;  /* original brand green: dark mode, highlights only */
  --ok: #0f7b64;
  --warn: #9a6700;
  --warn-soft: #fff6e0;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11,23,38,.04), 0 4px 16px rgba(11,23,38,.06);
  --shadow-lg: 0 12px 40px rgba(11,23,38,.14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f16; --surface: #111822; --surface-2: #16202c; --border: #1f2a37; --border-strong: #2b3a4b;
    --text: #e8edf3; --text-2: #b6c2cf; --muted: #8494a6;
    --brand: #e8edf3; --brand-contrast: #0a0f16;
    --accent: #5fd7af; --accent-soft: rgba(95,215,175,.12);
    --ok: #5fd7af; --warn: #f0c36a; --warn-soft: rgba(240,195,106,.1); --danger: #f3857a; --danger-soft: rgba(243,133,122,.1);
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f16; --surface: #111822; --surface-2: #16202c; --border: #1f2a37; --border-strong: #2b3a4b;
  --text: #e8edf3; --text-2: #b6c2cf; --muted: #8494a6;
  --brand: #e8edf3; --brand-contrast: #0a0f16;
  --accent: #5fd7af; --accent-soft: rgba(95,215,175,.12);
  --ok: #5fd7af; --warn: #f0c36a; --warn-soft: rgba(240,195,106,.1); --danger: #f3857a; --danger-soft: rgba(243,133,122,.1);
  --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: .9em; }
h1, h2, h3 { color: var(--brand); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand small { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: 0; padding-left: 10px; border-left: 1px solid var(--border); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.nav-links a { color: var(--text-2); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current] { color: var(--text); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px;
  font: 600 15px/1 var(--font); border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { text-decoration: none; border-color: var(--text-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-contrast); border-color: var(--brand); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, var(--accent)); border-color: transparent; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-arrow { font-weight: 600; font-size: 15px; }
.link-arrow::after { content: " →"; }

/* ── sections ── */
section { padding: 96px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 720px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .lead { margin-top: 16px; }
.muted { color: var(--muted); }

/* ── hero ── */
.hero { padding: 96px 0 88px; border-bottom: 1px solid var(--border);
  background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-top: 22px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-note b { color: var(--text); font-weight: 600; }
.logos { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.logos span:first-child { color: var(--text-2); }

/* ── cards & grids ── */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.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(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); }
a.card { color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15px; }
.card .kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.card .foot { margin-top: auto; padding-top: 20px; font-weight: 600; font-size: 14.5px; color: var(--accent); }
.card .foot::after { content: " →"; }
.card-feature { flex-direction: row; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: 20px;
  background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.card-feature h3, .card-feature p { color: var(--brand-contrast); }
.card-feature p { opacity: .82; }
.card-feature .kicker { color: var(--accent-bright); }
.card-feature .btn { background: var(--brand-contrast); color: var(--brand); border-color: transparent; flex-shrink: 0; }
.card-feature > div { flex: 1; min-width: 260px; }

/* services */
.svc .num { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.price { margin: 4px 0 18px; font-size: 14px; color: var(--muted); }
.price b { font-size: 26px; color: var(--brand); letter-spacing: -0.02em; font-weight: 700; margin: 0 2px; }
ul.check { list-style: none; margin: 0 0 8px; padding: 0; font-size: 14.5px; color: var(--text-2); }
ul.check li { position: relative; padding: 5px 0 5px 26px; }
ul.check li::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230f7b64' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.note { margin-top: 28px; font-size: 15px; color: var(--text-2); }
.note b { color: var(--text); }

/* TCB comparison */
.tcb { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.tcb-row { display: grid; grid-template-columns: 1.1fr .9fr 1.5fr; gap: 20px; padding: 15px 24px; border-top: 1px solid var(--border); font-size: 15px; align-items: center; }
.tcb-row:first-child { border-top: 0; }
.tcb-row.head { background: var(--surface); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tcb-row .who { font-weight: 600; color: var(--text); }
.tcb-row .risk { color: var(--danger); font-size: 14px; }
.tcb-row .fix { color: var(--text-2); font-size: 14px; }
.tcb-row.gone .who { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--danger); }
.tcb-row.stays { background: var(--surface); }
.tcb-row.stays .risk { color: var(--warn); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.gray { background: var(--surface-2); color: var(--text-2); }
.stats { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 32px; }
.stat b { display: block; font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: var(--brand); }
.stat span { color: var(--muted); font-size: 14.5px; }
.stat.bad b { color: var(--danger); }
.stat.good b { color: var(--accent); }

/* verification report */
.report { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow-lg); overflow: hidden; }
.report-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--border); background: var(--surface); }
.report-head b { font-size: 14.5px; color: var(--text); }
.report-head span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.report ul { list-style: none; margin: 0; padding: 8px 0; }
.report li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 11px 22px; font-size: 14.5px; }
.report li small { display: block; color: var(--muted); font-size: 12.5px; font-family: var(--mono); margin-top: 2px; word-break: break-all; }
.report .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.report .ic.ok { background: var(--accent-soft); color: var(--accent); }
.report .ic.info { background: var(--warn-soft); color: var(--warn); }
.report-foot { padding: 14px 22px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.caption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--accent); padding-top: 20px; }
.steps li::before { content: "0" counter(s); display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 8px; letter-spacing: .06em; }
.steps b { display: block; font-size: 17px; color: var(--brand); margin-bottom: 6px; }
.steps p { color: var(--text-2); font-size: 15px; }

/* proof list */
.status { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.status-row { display: flex; gap: 18px; padding: 18px 24px; border-top: 1px solid var(--border); align-items: baseline; font-size: 15px; }
.status-row:first-child { border-top: 0; }
.status-row .pill { width: 84px; text-align: center; flex-shrink: 0; }
.status-row b { color: var(--text); }
.status-row span.d { color: var(--text-2); }

/* faq */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 17px; color: var(--brand); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 40px 22px 0; color: var(--text-2); }

/* ── scheduler ── */
.call-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.call-steps { list-style: none; padding: 0; margin: 28px 0 0; }
.call-steps li { position: relative; padding: 0 0 22px 40px; color: var(--text-2); font-size: 15px; }
.call-steps li b { display: block; color: var(--text); }
.call-steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230f7b64' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.sched { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 30px; box-shadow: var(--shadow-lg); }
.sched h3 { font-size: 20px; }
.tzline { color: var(--muted); font-size: 13.5px; margin: 4px 0 6px; }
.lbl { display: block; color: var(--text-2); font-size: 13px; font-weight: 600; margin: 20px 0 8px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.day, .slot, .seg button { font: inherit; cursor: pointer; background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0; transition: border-color .12s, background .12s; }
.day { flex: 0 0 auto; width: 64px; padding: 8px 0; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.3; }
.day b { display: block; font-size: 19px; color: var(--text); font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; min-height: 42px; }
.slot { padding: 9px 0; font-size: 14px; font-weight: 500; }
.day:hover, .slot:hover, .seg button:hover { border-color: var(--accent); }
.day[aria-pressed="true"], .slot[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-contrast); border-color: var(--brand); }
.day[aria-pressed="true"] b { color: var(--brand-contrast); }
.empty { color: var(--muted); font-size: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .full { grid-column: 1 / -1; }
.input, .sched input, .sched select, .sched textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); outline: none; transition: border-color .12s, box-shadow .12s; }
.sched textarea { min-height: 96px; resize: vertical; }
.sched input:focus, .sched select:focus, .sched textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sched ::placeholder { color: var(--muted); }
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; padding: 10px 6px; font-size: 14px; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { margin-top: 22px; width: 100%; }
.form-msg { margin-top: 12px; font-size: 14px; color: var(--danger); min-height: 20px; }
.done { display: none; text-align: left; }
.done.show { display: block; }
.done h3 { color: var(--accent); font-size: 22px; }
.done p { color: var(--text-2); margin-top: 10px; }
.done .when { color: var(--text); font-size: 18px; font-weight: 600; margin-top: 14px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ── footer ── */
.footer { border-top: 1px solid var(--border); padding: 48px 0 96px; font-size: 14px; color: var(--muted); background: var(--surface); }
.footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer a { color: var(--text-2); }
.footer .legal { margin-top: 24px; font-size: 13px; }
.footer .legal a { color: var(--muted); }

/* ── docs ── */
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); max-width: 1200px; margin: 0 auto; }
.docs-side { border-right: 1px solid var(--border); padding: 32px 20px 48px 24px; }
.docs-side nav { position: sticky; top: 92px; display: flex; flex-direction: column; font-size: 14.5px; }
.docs-side .sec { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 22px 0 6px; }
.docs-side a { color: var(--text-2); padding: 5px 12px; border-radius: 6px; }
.docs-side a:hover { background: var(--surface); text-decoration: none; color: var(--text); }
.docs-side a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.docs-menu { display: none; }
.docs-main { padding: 48px 56px 72px; min-width: 0; }
.prose { max-width: 760px; font-size: 16.5px; line-height: 1.7; color: var(--text-2); }
.prose h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 20px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose code { background: var(--surface); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; }
.prose .table { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--surface); color: var(--text); font-weight: 600; font-size: 13.5px; }
.prose tr:last-child td { border-bottom: 0; }
.docs-cta { max-width: 760px; margin-top: 56px; border-radius: var(--radius); background: var(--brand); color: var(--brand-contrast); padding: 28px;
  display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.docs-cta b { display: block; font-size: 18px; }
.docs-cta span { opacity: .8; font-size: 15px; }
.docs-cta .btn { background: var(--brand-contrast); color: var(--brand); border-color: transparent; }
.docs-cta .btn.ghost { background: transparent; color: var(--brand-contrast); border-color: color-mix(in srgb, var(--brand-contrast) 40%, transparent); }
.docs-foot { max-width: 760px; margin-top: 40px; font-size: 13.5px; color: var(--muted); }

/* ── responsive ── */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .grid-3, .grid-2, .call-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .tcb-row { grid-template-columns: 1fr 1fr; }
  .tcb-row .fix { grid-column: 1 / -1; }
  .tcb-row.head .fix { display: none; }
  .nav-links a.hide-sm { display: none; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { border-right: 0; border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .docs-side nav { position: static; display: none; padding: 6px 0 10px; }
  .docs-side nav.open { display: flex; }
  .docs-menu { display: block; width: 100%; text-align: left; font: 600 14px var(--font); color: var(--text-2); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; cursor: pointer; }
  .docs-main { padding: 32px 16px 56px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 56px; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .sched { padding: 22px 16px; }
  .status-row { flex-direction: column; gap: 8px; }
  .tcb-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .tcb-row.head { display: none; }
  .brand small { display: none; }
  .nav-links { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
