/* Portal home page. Document-style pages (install, privacy, terms) use style.css. */
:root {
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --blue-soft: #eff6ff;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f5f7fb;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --orange: #d97706;
  --orange-soft: #fef3c7;
  --red: #dc2626;
  --purple: #7c3aed;
  --purple-soft: #ede9fe;
  --teal: #0d9488;
  --teal-soft: #ccfbf1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--body); background: #fff;
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav .links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav .links a { color: var(--body); }
.nav .links a:hover { color: var(--blue); }
.nav .links a.btn, .nav .links a.btn:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: 14px; border: 0; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3); }
.btn.small { padding: 9px 18px; font-size: 14px; border-radius: 11px; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--blue); border: 1px solid #bfdbfe; box-shadow: none; }

/* hero */
.hero { background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue); background: #dbeafe; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 46px; line-height: 1.22; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: 18px; color: var(--muted); margin: 20px 0 30px; max-width: 30em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* phone mockups, drawn in CSS so they always match the real screens' wording */
.phones { position: relative; height: 520px; }
.phone {
  position: absolute; width: 250px; height: 500px; border-radius: 36px; background: #0f172a; padding: 9px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
}
.phone .screen { width: 100%; height: 100%; border-radius: 28px; background: var(--bg); overflow: hidden; padding: 18px 14px; font-size: 12px; line-height: 1.5; color: var(--ink); }
.phone.parent { left: 0; top: 0; z-index: 2; }
.phone.child { right: 0; top: 40px; transform: rotate(4deg); }
.m-title { font-size: 17px; font-weight: 700; }
.m-sub { color: var(--muted); font-size: 11px; }
.m-card { background: #fff; border-radius: 14px; padding: 12px; margin-top: 10px; }
.m-row { display: flex; align-items: center; justify-content: space-between; }
.m-big { font-size: 22px; font-weight: 700; white-space: nowrap; }
.m-chip { white-space: nowrap; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.m-chip.green { background: var(--green-soft); color: var(--green); }
.m-bars { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 8px; }
.m-bars i { flex: 1; background: #dbeafe; border-radius: 3px; }
.m-bars i.on { background: var(--blue-2); }
.m-app { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.m-app b { width: 22px; height: 22px; border-radius: 6px; display: inline-block; }
.m-app span { flex: 1; }
.m-app em { font-style: normal; color: var(--muted); }
.m-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.m-actions div { background: #fff; border-radius: 12px; padding: 9px 0; text-align: center; font-size: 11px; font-weight: 600; }
.m-block { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 8px; }
.m-shield { width: 58px; height: 58px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.m-shield svg { width: 30px; height: 30px; fill: #fff; }
.m-block h4 { margin: 0 0 6px; font-size: 15px; }
.m-block p { color: var(--muted); font-size: 11px; }
.m-btn { width: 100%; border-radius: 11px; padding: 9px 0; font-weight: 700; font-size: 12px; margin-top: 8px; }
.m-btn.fill { background: var(--blue); color: #fff; margin-top: 18px; }
.m-btn.line { border: 1px solid #bfdbfe; color: var(--blue); background: #fff; }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--bg); }
.head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.head h2 { font-size: 32px; line-height: 1.3; }
.head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.why .num { font-size: 13px; font-weight: 700; color: var(--blue); }
.why h3 { font-size: 20px; margin: 8px 0 10px; }
.why p { color: var(--muted); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border-radius: 20px; padding: 26px; border: 1px solid var(--line); }
.icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.blue { background: var(--blue-soft); color: var(--blue); }
.icon.orange { background: var(--orange-soft); color: var(--orange); }
.icon.green { background: var(--green-soft); color: var(--green); }
.icon.purple { background: var(--purple-soft); color: var(--purple); }
.icon.teal { background: var(--teal-soft); color: var(--teal); }
.icon.red { background: #fee2e2; color: var(--red); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); counter-increment: s; }
.step::before { content: counter(s); display: flex; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promise .box { border-radius: 20px; padding: 28px; }
.promise .no { background: #fff; border: 1px solid var(--line); }
.promise .yes { background: var(--blue); color: #dbeafe; }
.promise .yes h3 { color: #fff; }
.promise h3 { font-size: 20px; margin-bottom: 12px; }
.promise ul { margin: 0; padding-left: 20px; }
.promise li { margin: 6px 0; font-size: 15px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 600; }
td.ok { color: var(--green); font-weight: 600; }
td.part { color: var(--orange); font-weight: 600; }
td.na { color: var(--muted); }
.table-note { color: var(--muted); font-size: 14px; margin-top: 14px; text-align: center; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.download { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: #dbeafe; }
.download .head h2 { color: #fff; }
.download .head p { color: #dbeafe; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl .box { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 20px; padding: 28px; }
.dl h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.dl p { font-size: 15px; }
.dl .btn { background: #fff; color: var(--blue); margin-top: 18px; box-shadow: none; }
.dl .meta { font-size: 13px; margin-top: 12px; opacity: 0.85; }
.dl a.text { color: #fff; text-decoration: underline; }

footer { background: #0f172a; color: #94a3b8; font-size: 14px; padding: 36px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer a { color: #cbd5e1; }
footer .right { margin-left: auto; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 16px; }
  .m-big { font-size: 17px; }
  .m-title { font-size: 14px; }
  .m-sub { font-size: 9.5px; }
  .m-card { padding: 9px; margin-top: 8px; }
  .m-bars { height: 30px; }
  .m-app { margin-top: 6px; }
  .m-app b { width: 18px; height: 18px; }
  .m-block h4 { font-size: 12.5px; }
  .phones { height: 430px; max-width: 360px; margin: 0 auto; width: 100%; }
  .phone { width: 205px; height: 410px; border-radius: 30px; }
  .phone .screen { border-radius: 23px; padding: 14px 11px; font-size: 10.5px; }
  .three, .features, .steps, .promise, .dl { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .head h2 { font-size: 26px; }
  .nav .links a:not(.btn) { display: none; }
  footer .right { margin-left: 0; }
}
