/* 224 Sync visitor site. Clean white page, the 224 green (#14B8A6, the app's brand colour) for actions and bands,
   black sections to break the page. Geist + Geist Mono and the app's status shapes (circle = compliant,
   square = at risk, diamond = blocked). Sections with class .dark (and the footer) swap the tokens. */
:root {
  --bg: #ffffff; --bg-2: #f5f7f7; --tint: #effaf8; --card: #ffffff; --line: #e3e8ea; --line-2: #c9d1d5;
  --head: #0a0b0d; --text: #1d2326; --muted: #525c63; --faint: #6b757c;
  --green: #14b8a6; --green-2: #2dd4bf; --green-ink: #04201d; --green-text: #0f766e; --green-soft: rgba(20, 184, 166, 0.12);
  --black: #0a0b0d; --amber: #e0921a; --red: #e5484d;
  --focus: #0f766e; --r: 14px; --wrap: 1200px;
  --mono: "Geist Mono", ui-monospace, monospace;
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
  -webkit-text-size-adjust: 100%;
}
.dark, .foot {
  --bg: #0a0b0d; --bg-2: #111417; --tint: #111417; --card: #14171b; --line: #262a30; --line-2: #3a4049;
  --head: #ffffff; --text: #e8eaed; --muted: #a3a9b3; --faint: #8a919b; --green-text: #2dd4bf; --focus: #2dd4bf;
  background: var(--bg); color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 60; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { color: var(--head); line-height: 1.1; margin: 0; letter-spacing: -0.03em; font-weight: 600; }
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 19px; letter-spacing: -0.015em; }
.tag { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-text); margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 18px 0 0; }
.hint { font-size: 13px; color: var(--faint); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn.accent { background: var(--green); color: var(--green-ink); }
.btn.accent:hover { background: var(--green-2); }
.btn.line { background: transparent; color: var(--head); border-color: var(--line-2); }
.btn.line:hover { border-color: var(--green-text); }
.btn.black { background: var(--black); color: #fff; }
.btn.black:hover { background: #22272c; }
.btn.wa { background: #25d366; color: #0b2e1c; }
.btn.wa:hover { background: #3be07a; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; color: var(--head); letter-spacing: -0.02em; }
.links { display: flex; gap: 2px; }
.links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); padding: 8px 12px; border-radius: 8px; }
.links a:hover, .links a[aria-current] { color: var(--head); background: var(--tint); }
.links a[aria-current] { color: var(--green-text); }
.links .m-only { display: none; }
.nav-cta { display: flex; gap: 8px; margin-left: auto; }
.nav-cta .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.menu { display: none; margin-left: auto; align-items: center; gap: 4px; flex-direction: column; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
.menu span { width: 20px; height: 2px; background: var(--head); border-radius: 2px; }
.menu b { position: absolute; left: -999px; }
@media (max-width: 1040px) {
  .nav-cta { display: none; }
  .menu { display: flex; }
  .links { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px 20px 20px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.25); }
  .links.open { display: flex; }
  .links a { padding: 14px 12px; font-size: 17px; }
  .links .m-only { display: block; }
  .links .m-only.cta { background: var(--green); color: var(--green-ink); text-align: center; margin-top: 6px; }
}

/* status shapes, as in the app */
.st { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.st::before { content: ""; width: 9px; height: 9px; }
.st.good::before { background: var(--green); border-radius: 50%; }
.st.att::before { background: var(--amber); border-radius: 1px; }
.st.crit::before { background: var(--red); transform: rotate(45deg); border-radius: 1px; }
.states { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }

/* home hero: white, copy left, the real control room right */
.hero { position: relative; overflow: hidden; background: radial-gradient(800px 460px at 88% 18%, rgba(20, 184, 166, 0.16), transparent 62%), #fff; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%); -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding: 84px 20px 92px; }
.hero h1 span { color: var(--green-text); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-text); background: var(--tint); border: 1px solid rgba(20, 184, 166, 0.35); border-radius: 999px; padding: 7px 14px; margin: 0 0 22px; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hero-art { position: relative; padding-bottom: 40px; }
.hero-art .phone { position: absolute; right: -6px; bottom: 0; width: 30%; max-width: 190px; }
@media (max-width: 960px) { .hero-in { grid-template-columns: 1fr; padding: 56px 20px 64px; } .hero-art { margin-top: 8px; } }

/* screen + phone frames (the app is dark, so the frames are too) */
.screen { margin: 0; border: 1px solid #2a2f35; border-radius: 12px; overflow: hidden; background: #101215; box-shadow: 0 30px 70px -30px rgba(10, 30, 30, 0.45); }
.screen .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #262a30; background: #16191d; }
.screen .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4049; }
.phone { margin: 0; border: 6px solid #15181c; border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 24px 60px -20px rgba(10, 30, 30, 0.55); }

/* green band of facts */
.facts { background: var(--green); color: var(--green-ink); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-in div { padding: 28px 20px; display: grid; gap: 4px; }
.facts-in div + div { border-left: 1px solid rgba(4, 32, 29, 0.18); }
.facts-in b { font-weight: 600; font-size: 17px; }
.facts-in span { font-size: 14px; color: #0a3b36; }
@media (max-width: 800px) { .facts-in { grid-template-columns: 1fr 1fr; } .facts-in div:nth-child(3) { border-left: 0; } .facts-in div:nth-child(n+3) { border-top: 1px solid rgba(4, 32, 29, 0.18); } }

section { scroll-margin-top: 80px; }
.sec-head { margin-bottom: 36px; }
.tour, .feat-sec, .roles-sec, .start, .detail, .benefits, .more-sec, .f-shot { padding: 88px 0; }

/* tabs (tour + features) */
.tabs, .ftabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar, .ftabs::-webkit-scrollbar { display: none; }
.tabs button, .ftabs button { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.tabs button:hover, .ftabs button:hover { color: var(--head); border-color: var(--line-2); }
.tabs button span { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.tabs button[aria-selected="true"], .ftabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.tabs button[aria-selected="true"] span { color: var(--green-ink); }
.panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; }
.panel-copy p:not(.tag) { color: var(--muted); font-size: 17px; }
.panel-copy h3 { font-size: 26px; margin-bottom: 12px; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; gap: 24px; } }
.show-cap { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.show-cap p { color: var(--muted); margin: 6px 0 0; max-width: 70ch; }
@media (max-width: 700px) { .show-cap { flex-direction: column; align-items: flex-start; } }
.all-feat { margin: 32px 0 0; }

/* cards */
.group { font-size: 22px; margin: 44px 0 18px; }
.group:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.card:hover { border-color: var(--green); box-shadow: 0 12px 30px -18px rgba(15, 118, 110, 0.45); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 8px; color: var(--green-text); font-weight: 600; font-size: 14px; }
.thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #101215; margin-bottom: 8px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* roles on a light green tint */
.roles-sec { background: var(--tint); }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role { background: #fff; padding: 26px 24px; border-radius: var(--r); border: 1px solid var(--line); border-top: 3px solid var(--green); }
.role p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .roles { grid-template-columns: 1fr; } }

.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow li { border-top: 2px solid var(--green); padding-top: 18px; }
.flow .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--green-ink); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.flow h3 { margin: 12px 0 8px; }
.flow p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* inner pages */
.p-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 360px at 92% 0%, rgba(20, 184, 166, 0.14), transparent 62%), #fff; }
.p-hero h1 { max-width: 22ch; }
.back { margin: 0 0 18px; font-size: 14px; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--green-text); }
.f-shot { padding-bottom: 0; }
.f-shot .with-phone { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: end; }
@media (max-width: 760px) { .f-shot .with-phone { grid-template-columns: 1fr; } .f-shot .with-phone .phone { max-width: 240px; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.benefits { background: var(--black); --head: #fff; --text: #e8eaed; --green-text: #2dd4bf; --focus: #2dd4bf; }
.benefits .ticks { grid-template-columns: 1fr 1fr; gap: 14px 32px; font-size: 17px; }
@media (max-width: 700px) { .benefits .ticks { grid-template-columns: 1fr; } }
.f-shot { position: relative; background: linear-gradient(180deg, #fff 0, #fff 55%, var(--black) 55%); }
.detail-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; }
@media (max-width: 860px) { .detail-in { grid-template-columns: 1fr; } }
.prose h2 { font-size: 24px; margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin: 0; font-size: 17px; max-width: 68ch; }
.prose a { color: var(--green-text); }
.box { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 24px; }
.box h2 { font-size: 22px; margin-bottom: 16px; }
.box h3 { margin-bottom: 14px; }
.box p { color: var(--muted); }
.box a { color: var(--green-text); }
aside .box { background: var(--tint); border-color: rgba(20, 184, 166, 0.3); }
aside .box + .box { margin-top: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.three-col .box { border-top: 3px solid var(--green); }
@media (max-width: 860px) { .two-col, .three-col { grid-template-columns: 1fr; } }
.detail + .detail { padding-top: 0; }
.more-sec { background: var(--bg-2); }
.facts-big { padding: 56px 0 0; }
.facts-big-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts-big-in div { border-radius: var(--r); padding: 24px; background: var(--black); display: grid; gap: 6px; }
.facts-big-in b { font-family: var(--mono); font-weight: 500; font-size: 38px; color: var(--green-2); letter-spacing: -0.02em; }
.facts-big-in span { color: #c4cad1; font-size: 14px; }
.facts-big .hint { margin: 14px 0 0; }
@media (max-width: 800px) { .facts-big-in { grid-template-columns: 1fr 1fr; } }

/* demo form */
.signup { padding: 72px 0 88px; background: radial-gradient(700px 360px at 92% 0%, rgba(20, 184, 166, 0.14), transparent 62%), #fff; }
.signup-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 48px; align-items: start; }
.signup-in > div:first-child { grid-column: 1; grid-row: 1; }
.signup-in .form { grid-column: 2; grid-row: 1 / span 2; }
.signup-in .login-box { grid-column: 1; grid-row: 2; align-self: start; }
@media (max-width: 860px) { .signup-in { grid-template-columns: 1fr; } .signup-in > *, .signup-in .form, .signup-in .login-box { grid-column: 1; grid-row: auto; } }
.login-box p { margin: 0 0 16px; }
.form { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 26px; display: grid; gap: 4px; box-shadow: 0 24px 50px -30px rgba(10, 30, 30, 0.3); }
.form p { margin: 0 0 12px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--head); }
.form .opt { color: var(--faint); font-weight: 400; }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 8px; border: 1px solid #848d94; background: #fff; color: var(--text); font: inherit; font-size: 16px; }
.form textarea { min-height: 90px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--green-text); }
.form .btn { justify-self: start; margin-top: 6px; }
.alt { font-size: 14px; color: var(--muted); }
.alt a { color: var(--green-text); }
#demo-msg { font-size: 14px; }
#demo-msg.err { color: #b42318; }
#demo-msg.ok { color: var(--green-text); }

/* green call to action band */
.cta-band { background: var(--green); color: var(--green-ink); --head: #04201d; --focus: #04201d; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 64px 20px; }
.cta-in p { color: #0a3b36; margin: 10px 0 0; max-width: 60ch; }
.cta-in .ctas { margin: 0; flex: none; }
.cta-band .btn.line { border-color: rgba(4, 32, 29, 0.45); color: var(--green-ink); }
.cta-band .btn.line:hover { border-color: var(--green-ink); }
@media (max-width: 800px) { .cta-in { flex-direction: column; align-items: flex-start; } }

.foot { padding: 56px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid p { color: var(--muted); max-width: 40ch; }
.foot h3 { font-size: 13px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 12px; }
.foot-grid a:not(.logo) { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.foot-grid a:not(.logo):hover { color: #fff; }
.foot .e { color: #c4f63c; }
.foot-base { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; color: var(--faint); font-size: 13px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
