:root {
  --ink: #10202b;
  --muted: #5a6b78;
  --line: #e2e8ee;
  --brand: #0b7a4b;
  --brand-dark: #075c38;
  --accent: #c8f169;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header ------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { height: 30px; width: auto; display: block; }
.brand span { font-size: 15px; letter-spacing: .2px; }

nav.main { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
nav.main a { color: var(--ink); font-size: 15px; }
nav.main a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  color: var(--muted);
}

/* hero --------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, #0b7a4b 0%, #075c38 55%, #063d27 100%);
  color: #fff;
  padding: 70px 0 64px;
}
.hero h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.25; margin: 0 0 16px; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: #d8ecdf; max-width: 46em; margin: 0 0 28px; }
.hero .tag {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 18px;
}
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  margin-right: 10px;
}
.btn-primary { background: var(--accent); color: #10351f; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.05); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { text-decoration: none; background: rgba(255, 255, 255, .1); }

/* sections ----------------------------------------------------------- */
section { padding: 62px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(22px, 2.8vw, 30px); margin: 0 0 18px; line-height: 1.3; }
h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 17px; color: var(--muted); }
.muted { color: var(--muted); }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #e8f5ee; color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px;
}

figure { margin: 0; }
figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* identity block ----------------------------------------------------- */
.identity { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.identity dl { margin: 0; display: grid; grid-template-columns: minmax(140px, 220px) 1fr; }
.identity dt, .identity dd { margin: 0; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.identity dt { background: var(--bg-alt); color: var(--muted); font-size: 14px; }
.identity dd { font-weight: 500; word-break: break-word; }
.identity tr:last-child dt, .identity dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* legal pages -------------------------------------------------------- */
.legal { max-width: 820px; }
.legal h2 { margin-top: 36px; }
.legal h3 { margin-top: 26px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); }
.notice {
  border-left: 3px solid var(--brand);
  background: #f0f8f4;
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
}

/* footer ------------------------------------------------------------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  background: #fafcfd;
  padding: 44px 0 34px;
  font-size: 14px;
  color: var(--muted);
}
footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 28px; }
footer h4 { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
footer a { color: var(--muted); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 6px; }
footer .legal-line {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  line-height: 1.9;
}
footer .legal-line strong { color: var(--ink); }

@media (max-width: 640px) {
  .identity dl { grid-template-columns: 1fr; }
  .identity dt { border-bottom: 0; padding-bottom: 0; }
  .identity dd { padding-top: 4px; }
  section { padding: 46px 0; }
}

/* products ----------------------------------------------------------- */
.products { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.product.lead-product { border-color: var(--brand); box-shadow: 0 0 0 3px #e8f5ee; }
.product .kind {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--brand-dark);
  background: #e8f5ee;
  border-radius: 999px;
  padding: 3px 11px;
  align-self: flex-start;
  margin-bottom: 12px;
}
.product h3 { font-size: 21px; margin-bottom: 4px; }
.product .sub { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.product ul { padding-left: 20px; margin: 0 0 16px; }
.product li { margin-bottom: 6px; }
.product .more { margin-top: auto; font-weight: 600; font-size: 15px; }

/* app screenshot gallery --------------------------------------------- */
.gallery {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 8px;
}
.shot { margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: block;
  background: #0e1a14;
}
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.shot figcaption strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.privacy-note {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 26px;
}

/* Phone screenshots are portrait, the trajectory view is landscape: mixing them in one
   auto-fit grid left every caption on a different baseline. */
.gallery { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.wide-shot {
  margin: 30px 0 0;
}
.wide-shot img {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: block;
  background: #0e1a14;
}
.wide-shot figcaption {
  max-width: 900px;
  margin: 10px auto 0;
  font-size: 14px;
  color: var(--muted);
}
.wide-shot figcaption strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
