/* Smile link-in-bio — plain CSS, no build step.
   Values copied from Smile CRM glass recipe (~/clawd/skills/smile-glass-ui/SKILL.md §1-§6, §9):
   light-grey page + faint mesh, soft cards, Apple deceleration easing, a11y fallbacks. */

:root {
  --ease-apple: cubic-bezier(0.32, 0.72, 0, 1);

  --bg: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --card: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.06);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 10px 28px rgba(0, 0, 0, 0.07);
  --avatar-ring: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
  --accent: #0a84ff;
  --mesh-a: rgba(10, 132, 255, 0.05);
  --mesh-b: rgba(94, 92, 230, 0.04);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0f;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --card: rgba(17, 24, 39, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.4);
    --avatar-ring: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.5);
    --mesh-a: rgba(10, 132, 255, 0.08);
    --mesh-b: rgba(94, 92, 230, 0.07);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    radial-gradient(at 25% 15%, var(--mesh-a) 0, transparent 50%),
    radial-gradient(at 80% 85%, var(--mesh-b) 0, transparent 50%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI",
    "PingFang HK", "Microsoft JhengHei", sans-serif;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 16px calc(24px + env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

@media (min-width: 600px) {
  .page { padding-top: 48px; }
}

/* ---------- Header ---------- */
.profile { text-align: center; }

.avatar {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  padding: 3px;
  border-radius: 50%;
  background: #fff; /* Corp logo is a transparent PNG: always sits on white */
  object-fit: contain;
  box-shadow: var(--avatar-ring);
}

h1 {
  margin: 0;
  letter-spacing: -0.022em;
  line-height: 1.1;
}
h1 .zh { display: block; font-size: 26px; font-weight: 700; }
h1 .en { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.sub {
  margin: 14px auto 0;
  max-width: 34em;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: balance;
}

.intro {
  margin: 14px auto 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg);
  opacity: 0.82;
  text-wrap: pretty;
}

/* ---------- Link buttons (card-soft) ---------- */
.links {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link,
.social a {
  border: 1px solid var(--card-border);
  background: var(--card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.12s var(--ease-apple),
    box-shadow 0.18s var(--ease-apple),
    background-color 0.18s var(--ease-apple),
    border-color 0.18s var(--ease-apple);
  -webkit-tap-highlight-color: transparent;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px; /* >= 52px tap target */
  padding: 10px 14px 10px 12px;
  border-radius: 16px;
  animation: rise 0.5s var(--ease-apple) backwards;
}
.links li:nth-child(1) .link { animation-delay: 0.02s; }
.links li:nth-child(2) .link { animation-delay: 0.06s; }
.links li:nth-child(3) .link { animation-delay: 0.10s; }
.links li:nth-child(4) .link { animation-delay: 0.14s; }
.links li:nth-child(5) .link { animation-delay: 0.18s; }
.links li:nth-child(6) .link { animation-delay: 0.22s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (hover: hover) {
  .link:hover,
  .social a:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
  }
  .link:hover .chev { transform: translateX(2px); }
}
.link:active,
.social a:active { transform: scale(0.98); }

.link:focus-visible,
.social a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

.label {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.011em;
  overflow-wrap: anywhere;
}
.label .paren { color: var(--muted); font-weight: 500; white-space: nowrap; }

.chev {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted);
  opacity: 0.7;
  transition: transform 0.18s var(--ease-apple);
}

/* ---------- Icon tiles ---------- */
.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #fff;
}
.ico svg { width: 22px; height: 22px; }
.ico-whatsapp  { background: #25d366; }
.ico-facebook  { background: #1877f2; }
.ico-instagram  { background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5 100%); }
.ico-website { background: #3f9d92; }
.ico-doc { background: #3f9d92; }
.ico-ai  { background: linear-gradient(135deg, #0a84ff 0%, #0066e8 60%, #5e5ce6 100%); }

/* ---------- Bottom social row ---------- */
.social {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.social a svg { width: 22px; height: 22px; }
.social .s-whatsapp { color: #25d366; }
.social .s-facebook { color: #1877f2; }
.social .s-instagram { color: #d62976; }
.social .s-website, .social .s-doc { color: #3f9d92; }
.social .s-ai { color: #0a84ff; }

.foot {
  margin: auto 0 0;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Root chooser (brand cards) ---------- */
.brand-card { min-height: 84px; padding: 12px 16px 12px 12px; gap: 14px; }
.brand-card .logo {
  flex: none;
  width: 60px;
  height: 60px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.brand-card .label .zh { display: block; font-size: 17px; }
.brand-card .label .en { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* ---------- Accessibility fallbacks (skill §6) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .link:hover, .social a:hover, .link:active, .social a:active, .link:hover .chev { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .link, .social a { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-transparency: reduce) and (prefers-color-scheme: dark) {
  .link, .social a { background: #111827; }
}

@media (prefers-contrast: more) {
  :root { --card-border: rgba(0, 0, 0, 0.45); --muted: #424245; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --card-border: rgba(255, 255, 255, 0.4); --muted: #d1d1d6; }
}
