/* TiyoLabs — site styles
   Direction: "Clarity" — light, trustworthy, SMB fintech. One accent (teal), navy ink,
   Plus Jakarta Sans throughout. Centered hero over a product surface; alternating rows. */

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --faint: #94a3b8;
  --accent: #0f766e;
  --accent-hover: #0b5f59;
  --accent-ink: #0b3d37;
  --accent-tint: #e6f4f1;
  --accent-tint-2: #1f5b53;
  --warn: #b45309;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.08);
  --max: 1200px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::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(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; letter-spacing: -0.03em; line-height: 1.08; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: calc(var(--gutter-l) + 16px);
  padding-right: calc(var(--gutter-r) + 16px);
}
@media (max-width: 640px) {
  .wrap { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
}
.section { padding-block: 112px; }
.section--tight { padding-block: 72px; }
@media (max-width: 760px) {
  .section { padding-block: 72px; }
  .section--tight { padding-block: 48px; }
}
.stack { display: flex; flex-direction: column; }
.center { align-items: center; text-align: center; }

/* Type scale */
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.display { font-size: clamp(44px, 6vw, 76px); line-height: 1.0; letter-spacing: -0.04em; }
.h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.035em; }
.h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.h4 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); }
.body-l { font-size: 17px; line-height: 1.6; color: var(--muted); }
.small { font-size: 13px; color: var(--muted-2); }
.measure { max-width: 640px; }
.measure-l { max-width: 760px; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 700; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #1e293b; color: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost-accent { border-color: var(--accent); color: var(--accent-ink); }
.btn--lg { min-height: 54px; padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.link { font-weight: 700; color: var(--accent); }
.link:hover { color: var(--accent-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav__links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 24px; }
.nav__links a { color: var(--muted); padding: 6px 0; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"] { font-weight: 700; }
.nav__cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav__toggle { display: inline-flex; }
  .nav__links, .nav__cta { display: none; width: 100%; margin-left: 0; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
  .nav.is-open .nav__links a { padding: 10px 0; font-size: 17px; }
  .nav.is-open .nav__cta { display: flex; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
}

/* Hero */
.hero { padding-block: 88px 40px; gap: 26px; }
@media (max-width: 760px) { .hero { padding-block: 56px 32px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: 13px; font-weight: 600; }
.pill__dot { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Product surface (dashboard mock) */
.surface-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 12px; box-shadow: var(--shadow-lg); }
.app { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; overflow: hidden; }
.app__side { flex: 0 1 220px; border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.app__side-title { font-size: 12px; font-weight: 700; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; padding: 0 10px 8px; }
.app__nav-item { padding: 9px 10px; border-radius: 8px; }
.app__nav-item.is-active { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.app__main { flex: 999 1 560px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.app__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.app__title { font-size: 18px; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.stat__label { font-size: 12px; color: var(--muted-2); font-weight: 600; }
.stat__value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.table__head { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; }
.table__row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.table__row > span:first-child { min-width: 0; }
.status { font-weight: 600; white-space: nowrap; }
.status--ok { color: var(--accent); }
.status--muted { color: var(--muted-2); }
.status--warn { color: var(--warn); }
@media (max-width: 640px) {
  .app__side { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; gap: 2px; padding: 12px; }
  .app__side-title { width: 100%; }
  .app__nav-item { padding: 7px 10px; font-size: 13px; }
  .app__main { padding: 16px; }
}

/* Product rows */
.rows { gap: 96px; }
@media (max-width: 760px) { .rows { gap: 64px; } }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: center; }
@media (max-width: 760px) { .row { gap: 28px; } }
.row__copy { display: flex; flex-direction: column; gap: 18px; }
.row__label { font-size: 14px; font-weight: 700; color: var(--accent); }
.row__art { background: var(--surface-2); border-radius: var(--radius-lg); padding: 36px; display: flex; justify-content: center; min-width: 0; }
@media (min-width: 761px) { .row--flip .row__art { order: -1; } }
@media (max-width: 640px) { .row__art { padding: 20px; } }
.card { width: 100%; background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.card--sm { max-width: 360px; }
.card--md { max-width: 420px; }
.line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.rule { height: 1px; background: var(--line); }
.total { display: flex; justify-content: space-between; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pay-btn { height: 50px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.pay-btn:hover { background: var(--accent-hover); }
.tag { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-tint); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.bullet { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.bullet__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); margin-top: 6px; flex-shrink: 0; }
.bullet__dot--accent { background: var(--accent); }
.chat { font-size: 14px; gap: 12px; }
.msg { max-width: 85%; padding: 10px 14px; line-height: 1.5; }
.msg--in { align-self: flex-start; background: var(--surface-2); border-radius: 14px 14px 14px 4px; }
.msg--out { align-self: flex-end; background: var(--accent-tint); color: var(--accent-ink); border-radius: 14px 14px 4px 14px; }

/* Dark band */
.band { background: var(--ink); color: #fff; }
.band .eyebrow { color: #5eead4; }
.band .muted { color: #b6c2d1; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.why { display: flex; flex-direction: column; gap: 12px; }
.why__icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 18px; background: #fff; }
.plan--featured { border: 2px solid var(--accent); }
.plan__name { font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan__price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan__price small { font-size: 15px; font-weight: 600; color: var(--muted-2); letter-spacing: 0; }
.plan__price--text { font-size: 30px; line-height: 40px; letter-spacing: -0.02em; }
.plan__desc { font-size: 15px; color: var(--muted); line-height: 1.55; }
.plan__list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list svg { flex-shrink: 0; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { border-top: 0; background: var(--surface); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 40%; }
.compare td { color: var(--muted); }
.compare .group td, .compare .group th { background: var(--surface); font-weight: 700; color: var(--ink); font-size: 13px; }
.check { color: var(--accent); font-weight: 700; }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; }
.faq__item { display: flex; flex-direction: column; gap: 8px; }
.faq__q { font-size: 17px; font-weight: 700; }
.faq__a { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; background: #fff; }
@media (max-width: 640px) { .form { padding: 20px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field .hint { font-size: 13px; color: var(--muted-2); }
.field.is-invalid input, .field.is-invalid select { border-color: #b91c1c; }
.field .error { font-size: 13px; color: #b91c1c; display: none; }
.field.is-invalid .error { display: block; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.form__success { display: none; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius-lg); background: var(--accent-tint); color: var(--accent-ink); }
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__success { display: flex; }
.contact-aside { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-item strong { font-size: 15px; }
.contact-item span { color: var(--muted); font-size: 15px; }
.contact-item .link { font-size: 15px; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-btn { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); }

/* CTA */
.cta { background: var(--accent-tint); border-radius: 24px; padding: 64px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
@media (max-width: 640px) { .cta { padding: 36px 24px; } }
.cta h2 { color: var(--accent-ink); font-size: clamp(30px, 3.4vw, 40px); }
.cta p { color: var(--accent-tint-2); font-size: 17px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; font-size: 14px; padding-block: 56px 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-col strong { font-weight: 700; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 20px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-2); }
.footer-bottom a { color: var(--muted-2); }

/* Page header (inner pages) */
.page-head { padding-block: 72px 48px; gap: 16px; }
@media (max-width: 760px) { .page-head { padding-block: 48px 32px; } }
