/* Ozilo website. Colours and sizes match the old Flutter theme (lib/theme.dart). */
:root {
  --primary: #0B5C8E;
  --primary-dark: #08486F;
  --primary-50: #E7F1F8;
  --green: #22B07D;
  --green-hover: #1FA374;
  --green-text: #137A55;
  --green-50: #E3F6EE;
  --green-on-dark: #A7EBD0;
  --on-green: #06261A;
  --dark: #0F1B24;
  --ink: #14212B;
  --muted: #46525C;
  --body: #2C3943;
  --line: #DCE3E9;
  --bg2: #F4F7FA;
  --field-border: #8A98A4;
  --error: #B3261E;
  --gutter: 28px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 17px/1.6 Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.8px; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.6px; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.wrap { max-width: calc(1200px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(820px + var(--gutter) * 2); }
.center { text-align: center; }
.band { padding: 96px 0; }
.band.tint { background: var(--bg2); }
.page-top { padding-top: 72px; }
.lead { font-size: 1.22rem; color: var(--muted); margin-top: 14px; }
.note { color: var(--muted); font-size: 1rem; margin-top: 16px; }
.band > .wrap > .note.center { margin-top: 28px; }
.section-link { margin-top: 22px; font-weight: 700; }
.section-link a { text-decoration: none; }
.section-link a:hover { text-decoration: underline; }

.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  color: var(--green-text); font-weight: 700; letter-spacing: 1.3px; font-size: .83rem; text-transform: uppercase;
}
.center .eyebrow, .sec-head .eyebrow { justify-content: center; }
.sec-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }

.badge {
  display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; line-height: 1.4;
}
.badge-new { background: var(--green); color: var(--on-green); }
.badge-included { background: var(--primary-50); color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 8px 20px; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-50); }
.btn-accent { background: var(--green); color: var(--on-green); }
.btn-accent:hover { background: var(--green-hover); }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn[disabled] { opacity: .7; cursor: default; transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.center .cta-row { justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--primary); cursor: pointer; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo img { height: 48px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 500; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }
.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; flex-direction: column; justify-content: center; gap: 4px;
}
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .15s, opacity .15s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 85% 40%, var(--primary-50), rgba(231,241,248,0) 60%),
    linear-gradient(#F7FAFC, #fff);
  padding: 72px 0 80px;
}
.hero-cols { grid-template-columns: 115fr 95fr; gap: 40px; }
.hero .accent { color: var(--primary); }
.hero .lead { max-width: 680px; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 16px;
  background: var(--green-50); border: 1px solid #BDE9D6; border-radius: 999px;
  color: #0B5C40; font-weight: 700; font-size: 1rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,176,125,.2); }

/* Layout helpers */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.reversed > :first-child { order: 2; }
.art { display: flex; justify-content: center; }
.art img { width: 100%; max-width: 620px; border-radius: 28px; }
.hero .art img { max-width: 600px; border-radius: 0; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }

/* Plan / Visit / Approve */
.pva { border-block: 1px solid var(--line); padding: 36px 0; }
.pva-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pva-item { display: flex; gap: 16px; align-items: flex-start; }
.pva-item h3 { font-size: 1.25rem; font-weight: 800; }
.pva-item p { color: var(--muted); font-size: 1.03rem; line-height: 1.55; margin-top: 4px; }
.pva .icon-tile { width: 46px; height: 46px; border-radius: 14px; }

.icon-tile {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; background: var(--primary-50); color: var(--primary);
}
.icon-tile svg { width: 50%; height: 50%; }
.icon-tile.green { background: var(--green-50); color: var(--green-text); }

/* Module cards */
.module-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.module-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 16px 40px -20px rgba(11,92,142,.25); }
.module-card h3 { font-size: 1.25rem; font-weight: 800; margin-top: 18px; }
.module-card p { color: var(--muted); font-size: 1.03rem; margin-top: 8px; flex: 1; }
.module-card .more { color: var(--primary); font-weight: 700; margin-top: 16px; }

/* Tick lists */
.ticks { list-style: none; margin: 22px 0 0; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 34px; color: var(--body); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.ticks strong { color: var(--ink); }

/* Dark band (migration) */
.band.dark { background: var(--dark); }
.dark h1, .dark h2 { color: #fff; }
.dark .lead { color: #C9D6E0; }
.dark .eyebrow { color: var(--green-on-dark); }
.dark .ticks li, .dark .ticks strong { color: #E4ECF2; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 17px;
}
.step:nth-child(3)::before { background: var(--green); color: var(--on-green); }
.step p { color: var(--muted); font-size: 1.03rem; margin-top: 6px; }

/* Free-trial offer */
.offer {
  position: relative; overflow: hidden; padding: 88px 0; color: #D5E6F2;
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
}
.offer::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border: 56px solid rgba(255,255,255,.06); border-radius: 50%;
}
.offer .wrap { position: relative; }
.offer-cols { grid-template-columns: 12fr 10fr; gap: 56px; }
.offer h2 { color: #fff; }
.offer .lead { color: #D5E6F2; }
.offer .eyebrow { color: var(--green-on-dark); }
.offer-price { margin-top: 22px; font-size: 1rem; }
.offer-price a { color: #fff; font-weight: 700; }
.offer-points > div {
  padding: 20px 22px; margin-bottom: 14px; border-radius: 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
}
.offer-points h3 { color: #fff; font-size: 1.1rem; }
.offer-points p { font-size: 1.03rem; line-height: 1.55; margin-top: 4px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { flex: 1; font-size: 1.1rem; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--muted); }
.faq-sub { margin: 48px 0 8px; font-size: 1.5rem; }

/* Pricing */
.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1.3px; color: var(--green-text); }
.price { margin-top: 10px; }
.price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.6px; }
.price .per { color: var(--muted); font-size: 1rem; }
.plan-summary { color: var(--muted); margin-top: 8px; flex: 1; }
.plan-facts { margin: 20px 0 24px; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: .95rem; }
.plan-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.plan-facts dt { color: var(--muted); }
.plan-facts dd { margin: 0; font-weight: 600; text-align: right; }

.matrix-wrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.matrix { width: 100%; border-collapse: collapse; font-size: .97rem; }
.matrix th, .matrix td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix tbody th { text-align: left; font-weight: 600; }
.matrix thead th { font-size: 1rem; background: var(--bg2); }
.matrix thead th:first-child { text-align: left; }
.matrix-price { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }
.matrix .group th {
  background: var(--primary-50); color: var(--primary); font-size: .8rem; letter-spacing: 1.2px;
  text-transform: uppercase; font-weight: 800; padding-block: 10px;
}
.matrix .detail { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.matrix tbody:last-child tr:last-child > * { border-bottom: 0; }
.matrix td { width: 18%; }
.yes { color: var(--green-text); font-weight: 800; font-size: 1.15rem; }
.no { color: var(--field-border); }

/* Module page extras */
.crumbs { padding-top: 24px; font-size: .95rem; color: var(--muted); }
.crumbs + .band { padding-top: 48px; }
.related { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.related a {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.related a:hover { border-color: var(--primary); color: var(--primary); }
.cta-band { border-top: 1px solid var(--line); }
.cta-band .lead { max-width: 640px; margin-inline: auto; }

/* Demo form */
.demo-cols { grid-template-columns: 100fr 115fr; gap: 56px; align-items: start; }
.next-steps { color: var(--muted); padding-left: 26px; margin: 18px 0 0; }
.next-steps li { padding-top: 8px; }
.contact { color: var(--muted); margin-top: 24px; }
.lead-form, .thanks { border-radius: 22px; padding: 32px; box-shadow: 0 20px 50px -30px rgba(11,92,142,.22); }
.lead-form label, .intent legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.intent { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.intent legend { width: 100%; }
.intent label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; cursor: pointer;
  border: 1.5px solid var(--field-border); border-radius: 12px; font-weight: 600;
}
.intent label:has(input:checked) { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.intent input { accent-color: var(--primary); margin: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--field-border); border-radius: 12px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border: 2.5px solid var(--primary); padding: 12px 15px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.error, .form-error { color: var(--error); font-size: .9rem; margin-top: 6px; }
.form-error { margin: 0 0 14px; font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.thanks { padding: 40px; }
.thanks h3 { color: var(--green-text); font-size: 1.5rem; margin-bottom: 12px; }
.thanks .link-btn { margin-top: 18px; }

/* Footer */
.site-footer { background: var(--dark); color: #B9C7D2; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid p { margin-top: 14px; }
.footer-grid h2 { color: #fff; font-size: .8rem; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 4px 0; }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }

/* Breakpoints match the Flutter site: 1024 stacks columns, 900 collapses the nav, 600 is phone. */
@media (max-width: 1023px) {
  .two-col, .hero-cols, .offer-cols, .demo-cols { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reversed > :first-child { order: 0; }
  .art img { max-width: 520px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 18px; }
}
@media (max-width: 899px) {
  .menu-btn { display: flex; }
  .site-header .btn-small { margin-left: auto; }
  .header-row { gap: 10px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -12px rgba(0,0,0,.2);
    padding: 12px var(--gutter) 22px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .pva-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 16px; }
  .band, .offer { padding: 64px 0; }
  .page-top { padding-top: 48px; }
  .hero { padding: 40px 0 56px; }
  .lead { font-size: 1.12rem; }
  .logo img { height: 40px; }
  .btn-small { padding: 7px 14px; font-size: .9rem; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .grid-3, .pair { grid-template-columns: 1fr; }
  .pair { gap: 0; }
  .card { padding: 22px; }
  .lead-form, .thanks { padding: 22px; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
  .step::before { grid-row: span 2; margin: 0; }
  .step h3 { padding-top: 10px; }
  .matrix th, .matrix td { padding: 10px 8px; }
  .matrix { font-size: .9rem; }
  .matrix td { width: 15%; }
  .sec-head { margin-bottom: 36px; }
}
