/* Habion: cobalt and paper, with tangerine kept for one meaning only: something is on. */
:root {
  --cobalt: #2253d2;
  --cobalt-deep: #173a99;
  --ink: #0d1733;
  --paper: #eef1f7;
  --card: #ffffff;
  --mute: #56607a;
  --line: #d9deea;
  --on: #fe9217;
  --display: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "PingFang SC", system-ui, sans-serif;
  --text: system-ui, -apple-system, "PingFang SC", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
}

/* One language at a time; the page is written in both. */
html[data-lang="en"] [lang="zh"],
html[data-lang="zh"] [lang="en"] { display: none; }

a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--on); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

/* Header */
.top { background: var(--cobalt); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 1rem; padding-block: 1.1rem; }
.mark { display: inline-flex; align-items: center; gap: 0.6rem; font: 700 1.25rem/1 var(--display); text-decoration: none; }
.mark svg { width: 1.9rem; height: 1.9rem; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }
.top nav a { text-decoration: none; opacity: 0.85; }
.top nav a:hover { opacity: 1; text-decoration: underline; }
.lang {
  font: inherit; color: inherit; cursor: pointer;
  background: transparent; border: 1.5px solid rgb(255 255 255 / 0.5); border-radius: 999px;
  padding: 0.3rem 0.85rem;
}
.lang:hover { border-color: #fff; }

/* Hero */
.hero { background: var(--cobalt); color: #fff; padding-block: 2.5rem 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; align-items: end; }
.hero h1 {
  font: 800 clamp(2.4rem, 5.6vw, 4.4rem) / 1.04 var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
html[data-lang="zh"] .hero h1 { line-height: 1.18; letter-spacing: 0; }
.hero p { max-width: 34rem; margin: 0 0 1.1rem; font-size: 1.15rem; color: rgb(255 255 255 / 0.9); }
.hero .status { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0.6rem 0 3.5rem; font-size: 1rem; }
.hero .status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--on); }

/* The list: the app's own row, from every platform, working. */
.phone {
  background: var(--paper); color: var(--ink);
  border-radius: 2.4rem 2.4rem 0 0;
  padding: 1.6rem 1.1rem 0;
  box-shadow: 0 0 0 0.55rem var(--cobalt-deep);
  max-width: 24rem; width: 100%; justify-self: end;
}
.phone h2 { font: 700 1.05rem/1.3 var(--display); margin: 0 0 0.7rem 0.6rem; display: flex; align-items: center; gap: 0.55rem; }
.phone h2::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--line); transition: background 0.2s; }
.phone h2.lit::before { background: var(--on); }
.rows { list-style: none; margin: 0; padding: 0 0.9rem; background: var(--card); border-radius: 1.3rem 1.3rem 0 0; }
.rows li { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.badge {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(34 83 210 / 0.1); color: var(--cobalt);
  transition: background 0.2s, color 0.2s;
}
.badge svg { width: 1.25rem; height: 1.25rem; }
li.on .badge { background: var(--on); color: #fff; }
.name { flex: 1; min-width: 0; }
.name b { display: block; font-weight: 600; line-height: 1.25; }
.name small { color: var(--mute); font-size: 0.86rem; }
.via { transition: opacity 0.25s; }
.phone.unified .via { opacity: 0; }
.switch {
  flex: none; width: 3.1rem; height: 1.85rem; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: #c9cfdd; position: relative; transition: background 0.2s;
}
.switch::after {
  content: ""; position: absolute; top: 0.16rem; left: 0.16rem; width: 1.53rem; height: 1.53rem;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(13 23 51 / 0.3); transition: transform 0.2s;
}
.switch[aria-checked="true"] { background: var(--on); }
.switch[aria-checked="true"]::after { transform: translateX(1.25rem); }
.reveal {
  display: block; width: 100%; margin-top: -0.1rem; padding: 0.85rem 0.6rem 1rem;
  font: 500 0.92rem var(--text); color: var(--cobalt); background: var(--card); border: 0;
  border-top: 1px solid var(--line); cursor: pointer; text-align: left; padding-left: 0.9rem;
}

/* Sections */
section { padding-block: 5rem; }
h2.big { font: 800 clamp(1.8rem, 3.4vw, 2.6rem) / 1.12 var(--display); letter-spacing: -0.015em; margin: 0 0 1.2rem; max-width: 24ch; text-wrap: balance; }
html[data-lang="zh"] h2.big { line-height: 1.3; letter-spacing: 0; }
.lede { max-width: 38rem; color: var(--mute); margin: 0; }

.platforms { background: var(--card); }
.platforms ul {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  border-top: 1px solid var(--line);
}
.platforms li { padding: 1.1rem 0.2rem; border-bottom: 1px solid var(--line); }
.platforms li b { display: block; font: 700 1.15rem/1.3 var(--display); }
.platforms li span { color: var(--mute); font-size: 0.92rem; }

.claims .wrap { display: grid; gap: 4.5rem; }
.claim { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.claim p { margin: 0 0 1rem; max-width: 36rem; }
.claim p:last-child { margin-bottom: 0; }
.claim h2.big { margin: 0; }

.keys { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.keys li { background: var(--card); border-radius: 0.9rem; padding: 0.7rem 1.1rem; font-weight: 600; }

.plain { background: var(--ink); color: #fff; }
.plain .lede { color: rgb(255 255 255 / 0.75); }
.plain dl { margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 3rem; }
.plain dt { font: 700 1.15rem/1.3 var(--display); margin-bottom: 0.4rem; }
.plain dd { margin: 0; color: rgb(255 255 255 / 0.78); font-size: 0.98rem; }
.plain a.more { display: inline-block; margin-top: 2.5rem; font-weight: 600; }

footer { padding-block: 2.5rem 3.5rem; color: var(--mute); font-size: 0.9rem; }
footer .wrap { display: grid; gap: 0.9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--ink); font-weight: 600; }
footer p { margin: 0; max-width: 60rem; }

/* The policy page: a document, not a brochure. */
.doc { padding-block: 3.5rem 5rem; }
.doc .wrap { width: min(100% - 2.5rem, 44rem); }
.doc h1 { font: 800 clamp(2rem, 4vw, 2.8rem) / 1.1 var(--display); margin: 0 0 0.5rem; }
.doc .date { color: var(--mute); margin: 0 0 2.5rem; }
.doc h2 { font: 700 1.3rem/1.3 var(--display); margin: 2.6rem 0 0.7rem; }
.doc p, .doc li { max-width: 40rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.5rem; }
.doc table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.96rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; gap: 1rem; }
  .hero .status { margin-bottom: 2rem; }
  .phone { justify-self: center; }
  .claim { grid-template-columns: 1fr; gap: 1.2rem; }
  section { padding-block: 3.5rem; }
  .top nav a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
