:root{
  --ink:#22303c; --body:#4a5a68; --muted:#7d8d99;
  --line:#e2e9ed; --bg:#eef3f5; --surface:#ffffff;
  --blue:#2e6c90; --teal:#58a6ae; --deep:#3d4a57;
  --shadow:0 1px 2px rgba(34,48,60,.05), 0 12px 32px -12px rgba(34,48,60,.18);
  --radius:18px;
}
@media (prefers-color-scheme:dark){:root{
  --ink:#eaf1f4; --body:#b3c2cc; --muted:#8595a1;
  --line:#2b3a45; --bg:#131c23; --surface:#1b262e;
  --blue:#4b93b8; --teal:#6fbfc6; --deep:#c7d5dd;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
}}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans","PingFang SC",
    "Hiragino Sans GB","Microsoft YaHei","Noto Sans Mongolian",Roboto,Helvetica,Arial,sans-serif;
  font-size:16px; line-height:1.5;
  -webkit-font-smoothing:antialiased;
  min-height:100dvh;
}
a{color:inherit; text-decoration:none; -webkit-tap-highlight-color:transparent}
.wrap{max-width:460px; margin:0 auto; padding:0 16px 40px}

/* ── header ─────────────────────────────────────────────── */
.hero{
  position:relative; margin:0 -16px 0; padding:34px 24px 76px;
  background:linear-gradient(150deg,#58a6ae 0%,#3d84a0 46%,#2e5f83 100%);
  color:#fff; text-align:center; overflow:hidden;
}
.hero::after{
  content:""; position:absolute; inset:auto -20% -60% -20%; height:70%;
  background:radial-gradient(ellipse at 50% 0,rgba(255,255,255,.14),transparent 70%);
}
.langbar{display:flex; gap:6px; justify-content:center; margin-bottom:26px; position:relative; z-index:1}
.langbar a{
  font-size:12px; letter-spacing:.02em; font-weight:600;
  padding:6px 13px; border-radius:999px; color:rgba(255,255,255,.82);
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18);
  transition:background .15s;
}
.langbar a[aria-current]{background:#fff; color:var(--blue); border-color:#fff}
.avatar{
  width:96px; height:96px; margin:0 auto 18px; border-radius:26px;
  background:#fff; display:grid; place-items:center; position:relative; z-index:1;
  box-shadow:0 8px 24px -8px rgba(12,38,52,.5);
}
.avatar img{width:70px; height:70px; object-fit:contain; display:block}
.name{margin:0; font-size:27px; line-height:1.2; font-weight:700; letter-spacing:-.01em; position:relative; z-index:1}
.title{margin:7px 0 0; font-size:15px; font-weight:500; color:rgba(255,255,255,.9); position:relative; z-index:1}
.org{
  margin:16px auto 0; max-width:19em; font-size:12.5px; line-height:1.45;
  color:rgba(255,255,255,.72); position:relative; z-index:1;
  border-top:1px solid rgba(255,255,255,.2); padding-top:14px;
}

/* ── contact rows ───────────────────────────────────────── */
.card{
  position:relative; z-index:2; margin-top:-56px;
  background:var(--surface); border-radius:var(--radius); box-shadow:var(--shadow);
  overflow:hidden;
}
.row{
  display:flex; align-items:center; gap:14px; padding:14px 16px;
  border-bottom:1px solid var(--line); transition:background .12s;
}
.row:last-child{border-bottom:0}
@media (hover:hover){ a.row:hover{background:rgba(88,166,174,.07)} }
a.row:active{background:rgba(88,166,174,.13)}
.bubble{
  flex:0 0 40px; width:40px; height:40px; border-radius:12px;
  background:linear-gradient(145deg,rgba(88,166,174,.16),rgba(46,108,144,.16));
  color:var(--blue); display:grid; place-items:center;
}
.ico{width:19px; height:19px}
.rowtext{min-width:0; flex:1}
.lbl{
  display:block; font-size:10.5px; font-weight:700; letter-spacing:.07em;
  text-transform:uppercase; color:var(--muted); margin-bottom:2px;
}
.val{
  display:block; font-size:15.5px; font-weight:500; color:var(--ink);
  overflow-wrap:anywhere;
}
.val.tel{font-variant-numeric:tabular-nums; letter-spacing:.01em}
.chev{flex:0 0 auto; color:var(--muted); opacity:.5; font-size:13px}

/* ── save button ────────────────────────────────────────── */
.saveWrap{margin-top:16px}
.save{
  display:flex; align-items:center; justify-content:center; gap:10px; width:100%;
  padding:16px 20px; border:0; border-radius:15px; cursor:pointer;
  font:inherit; font-size:16px; font-weight:650; color:#fff;
  background:linear-gradient(135deg,var(--teal),var(--blue));
  box-shadow:0 10px 22px -10px rgba(46,108,144,.75);
  transition:transform .12s, box-shadow .12s;
}
.save:active{transform:translateY(1px) scale(.995); box-shadow:0 6px 14px -8px rgba(46,108,144,.7)}
.save .ico{width:20px; height:20px}
.hint{
  margin:12px 4px 0; font-size:11.5px; line-height:1.5; color:var(--muted); text-align:center;
}
.foot{margin:26px 0 0; text-align:center; font-size:11px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--muted); opacity:.8}

/* ── toast ──────────────────────────────────────────────── */
.toast{
  position:fixed; left:50%; bottom:28px; transform:translate(-50%,14px);
  background:var(--deep); color:var(--surface); font-size:13.5px; font-weight:600;
  padding:11px 20px; border-radius:999px; opacity:0; pointer-events:none;
  transition:opacity .2s, transform .2s; z-index:50;
}
@media (prefers-color-scheme:dark){ .toast{background:#e8f0f4; color:#16222b} }
.toast.on{opacity:1; transform:translate(-50%,0)}

/* ── in-app browser sheet ───────────────────────────────── */
.sheet{
  position:fixed; inset:0; z-index:100; display:none;
  background:rgba(16,28,36,.62); backdrop-filter:blur(3px);
  align-items:flex-end; justify-content:center;
}
.sheet.on{display:flex}
.sheetbox{
  width:100%; max-width:460px; background:var(--surface);
  border-radius:22px 22px 0 0; padding:26px 22px calc(26px + env(safe-area-inset-bottom));
  animation:rise .26s cubic-bezier(.22,.9,.3,1);
}
@keyframes rise{from{transform:translateY(100%)}to{transform:translateY(0)}}
.arrow{
  position:fixed; top:8px; right:14px; color:#fff; font-size:34px; line-height:1;
  animation:bob 1.1s ease-in-out infinite;
}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.sheet h2{margin:0 0 10px; font-size:18px; line-height:1.35; color:var(--ink)}
.sheet p{margin:0 0 20px; font-size:14px; line-height:1.6; color:var(--body)}
.ghost{
  display:flex; align-items:center; justify-content:center; gap:9px; width:100%;
  padding:14px; border-radius:13px; border:1.5px solid var(--line);
  background:transparent; color:var(--ink); font:inherit; font-size:15px;
  font-weight:600; cursor:pointer;
}
.ghost + .ghost{margin-top:9px}
.ghost.plain{border-color:transparent; color:var(--muted); font-weight:500}

/* ── language picker page ───────────────────────────────── */
.pick{min-height:100dvh; display:flex; flex-direction:column; justify-content:center;
  align-items:center; padding:40px 20px calc(40px + env(safe-area-inset-bottom))}
.lock{display:flex; align-items:center; gap:15px; margin-bottom:20px}
/* The mark contains white linework, so it always sits on a light tile —
   otherwise those strokes vanish on a dark background. */
.lock .tile{
  width:74px; height:74px; border-radius:20px; background:#fff;
  display:grid; place-items:center; box-shadow:var(--shadow); flex:0 0 74px;
}
.lock .tile img{width:54px; height:54px; object-fit:contain; display:block}
/* Wordmark is CSS text, not baked into the image, so it stays legible in dark mode. */
.lock .wm{font-size:40px; font-weight:700; letter-spacing:.005em; color:var(--deep); line-height:1}
.pick .whose{margin:0 0 30px; font-size:13.5px; font-weight:500; color:var(--muted); text-align:center}
.pick h1{margin:0 0 6px; font-size:20px; font-weight:650; text-align:center; color:var(--ink)}
.pick .sub{margin:0 0 34px; font-size:13px; color:var(--muted); text-align:center}
.opts{width:100%; max-width:340px; display:flex; flex-direction:column; gap:11px}
.opt{
  display:flex; align-items:center; gap:15px; padding:17px 20px;
  background:var(--surface); border-radius:15px; box-shadow:var(--shadow);
  border:1.5px solid transparent; transition:transform .12s, border-color .12s;
}
.opt:active{transform:scale(.985)}
.opt[data-suggested]{border-color:var(--teal)}
.opt .flag{
  flex:0 0 38px; width:38px; height:38px; border-radius:11px; display:grid; place-items:center;
  background:linear-gradient(145deg,rgba(88,166,174,.16),rgba(46,108,144,.16));
  color:var(--blue); font-size:13px; font-weight:800; letter-spacing:.01em;
}
.opt .nm{flex:1; font-size:17px; font-weight:600; color:var(--ink)}
.opt .go{color:var(--muted); opacity:.5}
.pick .brand{margin-top:38px; font-size:10.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); text-align:center; max-width:22em; line-height:1.7}
