/* ZiloOne website. Flat, square corners, no shadows. */
:root {
  --ink: #13222f;
  --muted: #51667a;
  --line: #dfe5ea;
  --bg: #ffffff;
  --alt: #f4f7f8;
  --teal: #02b19c;
  --teal-deep: #00806f;
  --teal-pale: #e6f7f4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, video, svg { max-width: 100%; height: auto; }
a { color: var(--teal-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); max-width: 21ch; }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; flex: none; }
.logo { height: 26px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 22px; flex: 1; }
.nav a { color: var(--ink); text-decoration: none; font-size: 16px; }
.nav a:hover, .nav a[aria-current] { color: var(--teal-deep); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-btn { display: none; margin-left: auto; font: inherit; font-size: 15px; background: #fff; color: var(--ink); border: 1px solid var(--ink); padding: 7px 14px; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border: 1px solid var(--ink); color: var(--ink); background: #fff; text-decoration: none; font-weight: 600; font-size: 16px; font-family: inherit; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--alt); color: var(--ink); }
.btn-primary, .nav a.btn-primary { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-primary:hover, .nav a.btn-primary:hover { background: #006b5d; border-color: #006b5d; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

/* Sections */
.hero { padding: 64px 0 0; }
.head { padding: 40px 0 8px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 68ch; }
.sec { padding: 64px 0; }
.alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sub { color: var(--muted); max-width: 70ch; margin-bottom: 26px; }
.mt { margin-top: 32px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--teal-deep); margin-bottom: 14px; }
.eyebrow .ico { width: 32px; height: 32px; }
.more { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--teal); padding-bottom: 1px; }
.crumbs { padding-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

.facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.facts li { padding: 16px 18px; border-right: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.facts li:last-child { border-right: 0; }
.facts strong { display: block; color: var(--ink); font-size: 24px; line-height: 1.2; }

.shot { display: block; width: 100%; border: 1px solid var(--line); background: #fff; }
.hero-shot { margin-top: 40px; }
.video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0d1820; border: 1px solid var(--line); }

/* Grids and cards */
.grid { display: grid; gap: 16px; }
.grid.apps { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.themes { grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--line); background: #fff; }
.pad { padding: 22px; }
.pad p:last-child { margin-bottom: 0; }
.card.pad p { color: var(--muted); }
.app { display: flex; gap: 14px; align-items: flex-start; padding: 16px; text-decoration: none; color: var(--ink); }
.app:hover { border-color: var(--teal-deep); color: var(--ink); }
.ico { width: 44px; height: 44px; flex: none; display: block; }
.mark { display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.eyebrow .mark { font-size: 11px; }
.app-t { display: flex; flex-direction: column; min-width: 0; }
.app-t span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.group { margin: 36px 0 14px; font-size: 20px; }
.group:first-of-type { margin-top: 0; }
.group span { color: var(--muted); font-weight: 400; font-size: 16px; margin-left: 8px; }
.note { border-left: 4px solid var(--teal); background: var(--teal-pale); }
.plan h2 { font-size: 26px; }
.also { color: var(--muted); margin-top: 22px; }

.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); background: #fff; }
.chain li { padding: 18px 16px; border-right: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.chain li:last-child { border-right: 0; }
.chain a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); margin-bottom: 6px; }
.chain span { display: block; line-height: 1.45; }

.row { display: grid; grid-template-columns: 5fr 7fr; gap: 44px; align-items: center; padding: 34px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row.flip .row-t { order: 2; }
.row-t p { color: var(--muted); }
.row-t .eyebrow { color: var(--teal-deep); }

.themes figure { margin: 0; }
.themes figcaption { font-size: 15px; color: var(--muted); padding-top: 8px; }

.chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); padding: 7px 14px; font-size: 15px; background: #fff; }
.ticks { list-style: none; padding: 0; margin: 0 0 14px; }
.ticks li { padding: 5px 0 5px 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 6px; border-left: 3px solid var(--teal-deep); border-bottom: 3px solid var(--teal-deep); transform: rotate(-45deg); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; }
.steps p { color: var(--muted); margin: 0; }

.faq details { border: 1px solid var(--line); border-bottom: 0; background: #fff; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; }
.faq details p { padding: 0 18px 18px; margin: 0; color: var(--muted); }
.faq { margin-bottom: 22px; }
.qa h2 { font-size: 22px; margin-top: 30px; }
.qa p { color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--alt); font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { white-space: nowrap; }

/* Band and footer */
.band { background: var(--ink); color: #fff; padding: 60px 0; }
.band p { color: #c3ced8; max-width: 60ch; }
.band .btn { border-color: #fff; background: transparent; color: #fff; }
.band .btn:hover { background: #22384a; }
.band .btn-primary { background: var(--teal); border-color: var(--teal); color: #06231f; }
.band .btn-primary:hover { background: #19c9b4; border-color: #19c9b4; color: #06231f; }
.foot { border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.foot h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 10px; }
.foot ul + h2 { margin-top: 22px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { padding: 3px 0; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--teal-deep); text-decoration: underline; }
.foot-end { display: flex; gap: 22px; flex-wrap: wrap; border-top: 1px solid var(--line); margin: 32px 0 0; padding-top: 18px; color: var(--muted); }

/* Forms */
.form { margin-top: 28px; border: 1px solid var(--line); padding: 24px; background: #fff; }
.form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #9fb0bd; background: #fff; color: var(--ink); font: inherit; border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--teal); outline-offset: 0; border-color: var(--teal-deep); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.opt { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.6em; margin: 0 0 12px; font-weight: 600; }
.form-msg.bad { color: #b3261e; }
.form-msg.ok { color: var(--teal-deep); }
.form p:last-child { margin: 0; }

@media (max-width: 980px) {
  .grid.apps, .grid.three { grid-template-columns: repeat(2, 1fr); }
  .chain { grid-template-columns: repeat(3, 1fr); }
  .chain li:nth-child(3) { border-right: 0; }
  .chain li:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: 1fr; gap: 20px; }
  .row.flip .row-t { order: 0; }
  .nav-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav-end { margin: 12px 0 0; flex-direction: column; align-items: stretch; gap: 0; }
  .nav a.btn-primary { text-align: center; border-bottom: 0; margin-top: 12px; padding: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .sec { padding: 44px 0; }
  .grid.apps, .grid.two, .grid.three, .grid.themes, .f2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(2) { border-right: 0; }
  .facts li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .chain { grid-template-columns: 1fr 1fr; }
  .chain li { border-bottom: 1px solid var(--line); }
  .chain li:nth-child(3) { border-right: 1px solid var(--line); }
  .chain li:nth-child(2n) { border-right: 0; }
  .chain li:nth-last-child(-n + 2) { border-bottom: 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .group span { display: block; margin: 2px 0 0; }
  table.wide thead { display: none; }
  table.wide tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.wide th, table.wide td { display: block; border: 0; padding: 3px 16px; white-space: normal; }
  table.wide td::before { content: attr(data-l) ": "; color: var(--muted); }
  .form { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
