/* Layout: the App's own shape — a deep-green band with a faint star, and a pale sheet that rises over it
   with a 28px top radius. Phone first; from 900px the hero splits into copy + phone and modules go two-up. */
:root {
  --band-from: #00573A;
  --band-to: #003D29;
  --glow: #8BD44A;          /* the lime of the logo star */
  --sheet: #F6FAF7;
  --card: #FFFFFF;
  --ink: #17352B;
  --muted: #5B6B64;
  --line: #DCE8E1;
  --soft: #EAF5EE;
  --primary: #006241;
  --honey: #E7A93B;         /* warm marker for list bullets, set against the greens */
  --on-band: #FFFFFF;
  --on-band-muted: rgba(255, 255, 255, .74);
  --shadow: 0 1px 2px rgba(23, 53, 43, .05), 0 10px 30px rgba(23, 53, 43, .08);

  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: "Nunito", ui-rounded, "SF Pro Rounded", "Noto Sans SC", system-ui, sans-serif;
  --radius-sheet: 28px;
  --radius-card: 22px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sheet: #0E1914; --card: #16241D; --ink: #E6F1EA; --muted: #9DB0A6; --line: #253A30;
    --soft: #1B2E25; --primary: #5CC98E; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sheet: #0E1914; --card: #16241D; --ink: #E6F1EA; --muted: #9DB0A6; --line: #253A30;
  --soft: #1B2E25; --primary: #5CC98E; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 8px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* ---------- Top bar (sits on the band, scrolls away like the App's header) ---------- */
.band {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(165deg, var(--band-from) 0%, var(--band-to) 100%);
  color: var(--on-band);
}
.band::after {             /* the star from the logo, drawn as a faint outline */
  content: "";
  position: absolute;
  right: -90px; top: 40px;
  width: 420px; height: 420px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='white' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M50 6l12.6 27.4 29.9 3.2-22.4 20.1 6.3 29.4L50 71 23.6 86.1l6.3-29.4L7.5 36.6l29.9-3.2z'/%3E%3C/svg%3E");
  opacity: .08;
  pointer-events: none;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.topnav { display: none; gap: 28px; font-size: 15px; }
.topnav a { text-decoration: none; color: var(--on-band-muted); }
.topnav a:hover { color: var(--on-band); }
.topbar-cta {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--on-band);
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
}

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; display: grid; gap: 28px; padding-block: 18px 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--glow); }
.hero h1 { font-size: clamp(34px, 9vw, 56px); line-height: 1.18; font-weight: 900; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--glow); }
.hero-lead { font-size: 16px; color: var(--on-band-muted); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none;
}
.btn-light { background: #FFFFFF; color: #00573A; }
.btn-ghost { color: var(--on-band); border: 1px solid rgba(255,255,255,.35); }
.btn svg { width: 18px; height: 18px; flex: none; }
.hero-note { font-size: 13px; color: var(--on-band-muted); }

/* ---------- Phone mock: a drawing of the App's home screen ---------- */
.phone-stage { position: relative; display: flex; justify-content: center; }
.mascot {
  position: absolute; z-index: 2; width: 96px; height: 96px; border-radius: 24px;
  left: calc(50% - 168px); bottom: -14px; box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transform: rotate(-8deg);
}
.phone {
  width: 268px; max-width: 100%; aspect-ratio: 9 / 19; border-radius: 42px; padding: 9px;
  background: #0B1511; box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 1.5px rgba(255,255,255,.12);
}
.screen { height: 100%; border-radius: 34px; overflow: hidden; background: #F6FAF7; color: #17352B; display: flex; flex-direction: column; font-size: 11px; line-height: 1.45; }
.s-band { background: linear-gradient(165deg, #00573A, #003D29); color: #fff; padding: 30px 16px 34px; }
.s-band small { opacity: .72; font-size: 10px; }
.s-band b { display: block; font-size: 19px; line-height: 1.3; }
.s-sheet { flex: 1; margin-top: -20px; background: #F6FAF7; border-radius: 20px 20px 0 0; padding: 14px 12px; display: grid; gap: 9px; align-content: start; }
.s-card { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 4px 14px rgba(23,53,43,.07); display: grid; gap: 4px; }
.s-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.s-label { color: #5B6B64; }
.s-big { font-family: var(--font-num); font-weight: 900; font-size: 20px; color: #17352B; font-variant-numeric: tabular-nums; }
.s-chip { font-size: 9.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #EAF5EE; color: #006241; }
.s-chip.warn { background: #FFF4DE; color: #8A5300; }
.s-bar { height: 6px; border-radius: 99px; background: #EAF5EE; overflow: hidden; }
.s-bar i { display: block; height: 100%; width: 68%; background: #006241; border-radius: inherit; }
.s-tabs { display: flex; justify-content: space-around; padding: 8px 6px 14px; background: #fff; border-top: 1px solid #E5EEE8; color: #8A9A92; font-size: 9.5px; }
.s-tabs span:first-child { color: #006241; font-weight: 700; }

/* ---------- Sheet rising over the band ---------- */
.sheet { position: relative; z-index: 2; margin-top: calc(-1 * var(--radius-sheet)); background: var(--sheet); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; }
section { padding-block: 56px; }
section + section { padding-top: 8px; }
.sec-head { display: grid; gap: 8px; margin-bottom: 24px; max-width: 36em; }
.sec-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--primary); }
.sec-head h2 { font-size: clamp(24px, 6vw, 34px); line-height: 1.3; font-weight: 900; }
.sec-head p { color: var(--muted); }

/* Modules */
.modules { display: grid; gap: 14px; }
.module {
  background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow);
  padding: 20px; display: grid; gap: 12px; min-width: 0;
}
.module-top { display: flex; align-items: center; gap: 12px; }
.module-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.module-icon svg { width: 24px; height: 24px; }
.module h3 { font-size: 19px; font-weight: 700; }
.module-tag { font-size: 13px; color: var(--muted); }
.module ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.module li { position: relative; padding-left: 18px; color: var(--ink); font-size: 15px; }
.module li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--honey); }
.module li b { font-weight: 700; }

/* A store day: the order is the point, so it is a real timeline */
.day { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.day li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.day li::before { content: ""; position: absolute; left: 79px; top: 10px; bottom: -4px; width: 2px; background: var(--line); }
.day li:last-child::before { display: none; }
.day time { font-family: var(--font-num); font-weight: 800; font-size: 17px; color: var(--primary); font-variant-numeric: tabular-nums; text-align: right; line-height: 1.5; }
.day .step { position: relative; padding-left: 22px; min-width: 0; }
.day .step::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 3px solid var(--primary); }
.day .step b { display: block; font-size: 16px; }
.day .step span { color: var(--muted); font-size: 14px; }

/* Desktop admin */
.desk { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 18px; }
.desk-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.desk-list li { display: flex; gap: 10px; font-size: 15px; }
.desk-list svg { width: 20px; height: 20px; color: var(--primary); flex: none; margin-top: 3px; }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--sheet); font-size: 11px; }
.browser-bar { display: flex; gap: 5px; padding: 8px 10px; background: var(--soft); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.browser-body { display: grid; grid-template-columns: 72px 1fr; min-height: 170px; }
.b-side { background: var(--card); border-right: 1px solid var(--line); padding: 10px 8px; display: grid; gap: 6px; align-content: start; color: var(--muted); }
.b-side span:nth-child(2) { color: var(--primary); font-weight: 700; background: var(--soft); border-radius: 6px; padding: 0 4px; }
.b-main { display: flex; flex-direction: column; }
.b-band { background: linear-gradient(165deg, #00573A, #003D29); color: #fff; padding: 10px 12px 22px; font-weight: 700; font-size: 13px; }
.b-sheet { margin-top: -12px; background: var(--sheet); border-radius: 12px 12px 0 0; padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.b-kpi { background: var(--card); border-radius: 8px; padding: 6px 8px; display: grid; }
.b-kpi small { color: var(--muted); font-size: 9.5px; }
.b-kpi b { font-family: var(--font-num); font-size: 14px; }

/* Download */
.get { background: linear-gradient(165deg, var(--band-from), var(--band-to)); color: var(--on-band); border-radius: var(--radius-card); padding: 26px 22px; display: grid; gap: 18px; position: relative; overflow: hidden; }
.get h2 { font-size: clamp(22px, 5.6vw, 30px); font-weight: 900; line-height: 1.3; }
.get p { color: var(--on-band-muted); }
.get-icon { width: 72px; height: 72px; border-radius: 18px; }
.get-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--on-band-muted); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-num); color: var(--primary); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; color: var(--muted); font-size: 15px; }

footer { padding-block: 32px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot { display: grid; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--primary); }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .get { grid-template-columns: auto 1fr; align-items: center; padding: 32px; }
  .get .hero-actions { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .topnav { display: flex; }
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; padding-block: 40px 104px; }
  .hero-lead { font-size: 18px; }
  .phone { width: 300px; }
  .mascot { width: 116px; height: 116px; left: calc(50% - 200px); }
  section { padding-block: 88px; }
  section + section { padding-top: 16px; }
  .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .module.wide { grid-column: span 2; }
  .day { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .day li { grid-template-columns: 1fr; gap: 10px; padding-bottom: 0; }
  .day li::before { left: 0; right: -16px; top: 37px; bottom: auto; width: auto; height: 2px; }
  .day time { text-align: left; }
  .day .step { padding-left: 0; padding-top: 22px; }
  .day .step::before { left: 0; top: -7px; }
  .desk { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; padding: 32px; gap: 32px; }
  .browser { font-size: 12px; }
  .browser-body { min-height: 220px; grid-template-columns: 96px 1fr; }
  .get { grid-template-columns: auto 1fr auto; }
  .get .hero-actions { grid-column: auto; }
  .foot { grid-template-columns: 1fr auto; align-items: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .mascot { animation: pop .6s .35s cubic-bezier(.3,1.5,.5,1) both; }
  @keyframes rise { from { transform: translateY(24px); } to { transform: none; } }
  @keyframes pop { from { transform: rotate(-8deg) scale(.6); } to { transform: rotate(-8deg) scale(1); } }
}

/* ---------- Footer identity, links inside answers ---------- */
.foot-id { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-id a, .faq details p a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- Document pages (privacy, terms, support): compact band, as on the App's legal pages ---------- */
.doc-hero { position: relative; z-index: 1; display: grid; gap: 10px; padding-block: 10px 64px; max-width: 46em; }
.doc-hero h1 { font-size: clamp(30px, 8vw, 44px); line-height: 1.2; font-weight: 900; }
.doc-hero p { color: var(--on-band-muted); }
.doc-hero .crumb { font-size: 14px; color: var(--on-band-muted); text-decoration: none; }
.doc-hero .crumb:hover { color: var(--on-band); }
.doc { padding-block: 32px 56px; display: grid; gap: 14px; max-width: 760px; }
.doc-card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 10px; min-width: 0; }
.doc-card h2 { font-size: 18px; font-weight: 900; line-height: 1.4; }
.doc-card p, .doc-card li { color: var(--muted); font-size: 15px; line-height: 1.8; }
.doc-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.doc-card li { position: relative; padding-left: 16px; }
.doc-card li::before { content: ""; position: absolute; left: 1px; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.doc-card a { color: var(--primary); overflow-wrap: anywhere; }
.doc-meta { font-size: 13px; color: var(--muted); }
.contact-card { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 14px; }
.contact-mail { font-family: var(--font-num); font-size: clamp(18px, 5.4vw, 24px); font-weight: 800; color: var(--primary); overflow-wrap: anywhere; text-decoration: none; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-primary { background: var(--primary); color: var(--card); border: 0; cursor: pointer; font-family: inherit; }
.btn-outline { color: var(--primary); border: 1px solid var(--line); background: transparent; cursor: pointer; font-family: inherit; }
.copy-done { font-size: 14px; color: var(--primary); }
.tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tips li { position: relative; padding-left: 16px; color: var(--muted); font-size: 15px; }
.tips li::before { content: ""; position: absolute; left: 1px; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--honey); }
@media (min-width: 900px) {
  .doc-hero { padding-block: 24px 80px; }
  .doc { padding-block: 48px 80px; }
  .doc-card { padding: 26px 28px; }
}

/* ---------- Real screenshots: swipe sideways on phones, four across on wide screens ---------- */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(68%, 260px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r));
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); scroll-padding-left: var(--gutter-l);
  -webkit-overflow-scrolling: touch;
}
.shot { margin: 0; scroll-snap-align: start; display: grid; gap: 10px; min-width: 0; }
.shot img { width: 100%; height: auto; border-radius: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card); }
.shot figcaption { display: grid; gap: 2px; padding-left: 4px; }
.shot figcaption b { font-size: 15px; }
.shot figcaption span { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 22px; }
}
