/* Secure AI website: web/ is served as the site root at secure.chineseman.net
   (mirrored at secure.chinesepowered.com). System fonts; the only third-party
   script is AdSense on the landing page. */
:root {
  --top: #342ea5;
  --bottom: #7c3aed;
  --brand: #4f46e5;
  --brand-ink: #4338ca;
  --brand-soft: #eef0ff;
  --ink: #12111c;
  --soft: #55546a;
  --faint: #8a899d;
  --bg: #ffffff;
  --panel: #f6f5fc;
  --line: #e8e6f4;
  --shadow: 0 30px 70px rgba(35, 20, 110, 0.22);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-ink: #a9a4ff;
    --brand-soft: #1f1c3d;
    --ink: #f2f1f8;
    --soft: #b7b6c9;
    --faint: #8e8da3;
    --bg: #0d0c17;
    --panel: #171527;
    --line: #27243e;
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-ink); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 44px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.nav nav a { color: var(--soft); text-decoration: none; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav nav .optional { display: none; } }

/* Hero */
.hero { background: linear-gradient(150deg, var(--top), var(--bottom)); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; padding-top: 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); letter-spacing: -0.035em; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); margin: 22px 0 30px; opacity: 0.93; max-width: 36em; }
.hero .fine { font-size: 14px; opacity: 0.82; margin-top: 16px; }
.hero .fine a { color: #fff; }
/* The phone rises out of the bottom edge of the band. */
.hero .shot { align-self: end; justify-self: center; max-width: 360px; margin-bottom: -56px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .stores { justify-content: center; }
  .hero .shot { max-width: 280px; }
}

/* Store badge */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores img { height: 54px; width: auto; }

/* Screenshots */
.shot { border-radius: 36px; box-shadow: var(--shadow); overflow: hidden; background: #f2f2f7; }
.shot img { width: 100%; }

/* Sections */
section { padding: 92px 0; }
section.alt { background: var(--panel); }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }
.intro { max-width: 720px; margin-bottom: 44px; }
.intro p { color: var(--soft); font-size: 19px; margin-top: 16px; }

/* Cards: how it works, features */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--panel); border-radius: 22px; padding: 24px; }
section.alt .card { background: var(--bg); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--soft); margin-top: 8px; font-size: 16px; }

/* Tour: a row of phones that scrolls sideways on small screens */
.tour { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 28px; }
.tour figure { margin: 0; scroll-snap-align: center; }
.tour .shot { border-radius: 30px; box-shadow: 0 18px 44px rgba(35, 20, 110, 0.16); }
.tour figcaption { margin-top: 14px; font-weight: 650; }
.tour figcaption span { display: block; color: var(--soft); font-weight: 400; font-size: 15px; margin-top: 2px; }
.ipad { margin-top: 48px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; align-items: center; }
.ipad .shot { border-radius: 26px; }
.ipad p { color: var(--soft); font-size: 18px; margin-top: 12px; }
@media (max-width: 860px) { .ipad { grid-template-columns: 1fr; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan { border: 1px solid var(--line); border-radius: 24px; padding: 30px; background: var(--bg); }
.plan.pro { border: 2px solid var(--brand); }
.plan h3 { font-size: 24px; }
.plan .what { color: var(--soft); margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; }
.plan li { padding: 7px 0 7px 30px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }
.plan .note { color: var(--faint); font-size: 14px; margin-top: 18px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-ink); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--soft); margin-top: 10px; }

/* Call to action */
.cta { background: linear-gradient(150deg, var(--top), var(--bottom)); color: #fff; text-align: center; }
.cta p { opacity: 0.9; font-size: 19px; margin: 14px auto 28px; max-width: 34em; }
.cta .stores { justify-content: center; }
.cta img.mark { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25); }

/* Footer */
footer { padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .made { margin-left: auto; }

/* Documents: privacy, terms */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 22px 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; }
.doc .updated { color: var(--faint); margin: 10px 0 34px; }
.doc h2 { font-size: 24px; margin: 38px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--soft); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
