:root {
  --navy: #06245c;
  --navy-2: #0d4fa3;
  --blue: #1677e8;
  --ink: #10213c;
  --muted: #637087;
  --line: #dce5f0;
  --surface: #ffffff;
}

* { box-sizing: border-box; }

html { background: #edf3fa; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(22, 119, 232, .13), transparent 30rem),
    radial-gradient(circle at 90% 8%, rgba(6, 36, 92, .10), transparent 25rem),
    linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%);
}

a { color: inherit; }

.bio-shell {
  width: min(100%, 680px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 18px max(34px, env(safe-area-inset-bottom));
}

.profile {
  position: relative;
  overflow: hidden;
  padding: 26px 20px 22px;
  text-align: center;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(6,36,92,.09);
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(6,36,92,.10);
}

.flag-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  height: 6px;
}

.flag-ribbon span:nth-child(1), .flag-ribbon span:nth-child(3) { background: var(--blue); }
.flag-ribbon span:nth-child(2) { background: var(--navy); }

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 4px solid white;
  box-shadow: 0 0 0 2px #9fc9f8, 0 12px 28px rgba(6,36,92,.16);
}

.eyebrow {
  display: inline-flex;
  margin: 17px 0 5px;
  padding: 6px 11px;
  color: var(--navy-2);
  background: #edf4ff;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

h1 {
  margin: 4px 0 6px;
  color: var(--blue);
  font-family: Outfit, sans-serif;
  font-size: clamp(2.1rem, 10vw, 3rem);
  line-height: 1;
  letter-spacing: -.04em;
}

h1 span { color: var(--navy); }

.tagline {
  margin: 12px auto 17px;
  color: #33445e;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.trust-row span {
  padding: 6px 9px;
  color: var(--navy);
  background: #eaf4ff;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
}

.links, .services { margin-top: 27px; }

.section-heading { margin: 0 4px 12px; }

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
}

.section-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.link-card {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  margin: 10px 0;
  padding: 12px 16px 12px 12px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(18,48,89,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.link-card:hover, .link-card:focus-visible {
  transform: translateY(-2px);
  border-color: #aabbd0;
  box-shadow: 0 14px 30px rgba(18,48,89,.12);
  outline: none;
}

.qr-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 16px;
  margin: 10px 0 14px;
  padding: 14px;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
  border: 1px solid #bfd8f4;
  border-radius: 20px;
}

.qr-card img {
  display: block;
  width: 132px;
  height: 132px;
  padding: 7px;
  background: white;
  border: 1px solid #d6e6f7;
  border-radius: 14px;
}

.qr-card h3 {
  margin: 5px 0 2px;
  color: var(--navy);
  font-size: 1rem;
}

.qr-card p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}

.qr-card p strong { color: var(--navy-2); }

.qr-label {
  display: inline-flex;
  padding: 4px 8px;
  color: white;
  background: var(--navy-2);
  border-radius: 999px;
  font-family: Outfit, sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: white;
  border-radius: 15px;
  font-family: Outfit, sans-serif;
  font-size: .8rem;
  font-weight: 800;
}

.line .social-icon { background: #06c755; }
.facebook .social-icon { background: #1877f2; font-size: 1.75rem; }
.tiktok .social-icon { background: #101114; font-size: 1.45rem; text-shadow: 2px 1px #fe2c55, -2px -1px #25f4ee; }

.link-copy { display: flex; flex-direction: column; min-width: 0; }
.link-copy strong { color: var(--ink); font-size: .98rem; }
.link-copy small { color: var(--muted); font-size: .81rem; }
.arrow { color: var(--navy); font-size: 1.8rem; line-height: 1; }

.service-list {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(18,48,89,.06);
}

details + details { border-top: 1px solid var(--line); }
summary {
  display: grid;
  grid-template-columns: 42px 1fr 22px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary:focus-visible { outline: 3px solid rgba(24,119,242,.25); outline-offset: -3px; }
summary > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
summary strong { color: var(--navy); font-size: .94rem; }
summary small { color: var(--muted); font-size: .76rem; }
summary i { color: var(--blue); font-style: normal; font-size: 1.35rem; transition: transform .2s ease; }
details[open] summary i { transform: rotate(45deg); }

.service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: linear-gradient(145deg, var(--navy-2), var(--navy));
  border-radius: 13px;
  font-family: Outfit, "Noto Sans Thai", sans-serif;
  font-size: .82rem;
  font-weight: 800;
}

details p {
  margin: -2px 14px 14px 68px;
  padding: 10px 12px;
  color: #4f5d70;
  background: #f5f8fc;
  border-radius: 12px;
  font-size: .84rem;
  line-height: 1.6;
}

.website-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 15px 17px;
  color: white;
  text-decoration: none;
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  border-radius: 16px;
  font-size: .9rem;
  font-weight: 700;
}

.website-link span { color: #91c8ff; font-size: 1.3rem; }

footer { padding: 30px 16px 5px; text-align: center; }
footer strong { color: var(--navy); font-family: Outfit, sans-serif; font-size: 1.05rem; }
footer p { margin: 4px 0 9px; color: #46556a; font-size: .82rem; }
footer small { color: #7a8597; font-size: .72rem; }

@media (min-width: 560px) {
  .bio-shell { padding-inline: 28px; }
  .profile { padding-block: 32px 27px; }
  .link-card { min-height: 82px; }
}

@media (max-width: 390px) {
  .qr-card { grid-template-columns: 106px 1fr; gap: 12px; }
  .qr-card img { width: 106px; height: 106px; }
  .qr-card p br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
