:root {
  --ink: #261f2d;
  --muted: #6f6675;
  --cream: #fff8f1;
  --paper: #ffffff;
  --pink: #ff6f91;
  --pink-dark: #d94771;
  --lavender: #8268d8;
  --line: #eadfe7;
  --soft: #fff0f4;
  --shadow: 0 22px 70px rgba(60, 34, 64, .12);
  font-family: "DM Sans", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans Myanmar", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); }
a { color: inherit; }
button, select { font: inherit; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 14px; background: #fff; border-radius: 8px; }

.site-header { position: sticky; top: 0; z-index: 10; min-height: 72px; padding: 0 5vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; background: rgba(255,248,241,.9); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(234,223,231,.75); }
.brand { display: inline-flex; width: max-content; align-items: center; gap: 10px; text-decoration: none; font-size: 25px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { display: block; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; clip-path: inset(0 round 12px); object-fit: cover; }
#main-nav, #footer-nav { display: flex; align-items: center; gap: 28px; }
#main-nav a, #footer-nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
#main-nav a:hover, #main-nav a[aria-current="page"], #footer-nav a:hover { color: var(--pink-dark); }
.language-picker { position: relative; justify-self: end; }
.language-trigger { display: inline-flex; min-width: 172px; height: 44px; padding: 0 15px; align-items: center; gap: 10px; color: var(--ink); background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; box-shadow: 0 4px 16px rgba(60,34,64,.04); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.language-trigger:hover, .language-trigger:focus-visible, .language-trigger[aria-expanded="true"] { outline: none; border-color: rgba(217,71,113,.45); background: #fff; box-shadow: 0 8px 24px rgba(60,34,64,.1); }
.language-globe { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; color: var(--pink-dark); border: 1.5px solid currentColor; border-radius: 50%; font-size: 0; }
.language-globe::before { content: ""; width: 8px; height: 18px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; border-radius: 50%; }
#language-current { flex: 1; text-align: start; font-weight: 600; white-space: nowrap; }
.language-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.language-trigger[aria-expanded="true"] .language-chevron { transform: rotate(225deg) translate(-2px,-1px); }
.language-menu { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: 224px; padding: 8px; overflow: hidden; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 50px rgba(60,34,64,.16); backdrop-filter: blur(18px); }
.language-menu[hidden] { display: none; }
.language-option { position: relative; display: flex; width: 100%; min-height: 44px; padding: 0 14px 0 40px; align-items: center; color: var(--ink); background: transparent; border: 0; border-radius: 12px; cursor: pointer; text-align: start; }
.language-option:hover, .language-option:focus-visible { outline: none; background: var(--soft); }
.language-option[aria-selected="true"] { color: var(--pink-dark); background: #fff2f6; font-weight: 700; }
.language-option[aria-selected="true"]::before { content: "✓"; position: absolute; left: 15px; font-size: 16px; }

main { min-height: 66vh; }
.hero { position: relative; overflow: hidden; min-height: 660px; padding: 110px 7vw 90px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: center; gap: 70px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero::before { width: 430px; height: 430px; right: -100px; top: -130px; background: rgba(255,166,188,.25); }
.hero::after { width: 280px; height: 280px; left: -120px; bottom: -70px; background: rgba(130,104,216,.13); }
.eyebrow { margin: 0 0 16px; color: var(--pink-dark); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
h1 { margin: 0; max-width: 760px; font-size: clamp(48px, 6.7vw, 92px); line-height: .98; letter-spacing: -.055em; }
.hero-copy > p:not(.eyebrow) { max-width: 620px; margin: 26px 0 34px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.65; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 700; border: 1px solid var(--line); background: #fff; }
.button.primary { color: #fff; background: var(--ink); border-color: var(--ink); }
.button.disabled { cursor: default; opacity: .72; }
.phone-stage { position: relative; min-height: 480px; display: grid; place-items: center; }
.phone { width: min(320px, 74vw); aspect-ratio: .57; padding: 10px; border-radius: 42px; background: #2d2633; box-shadow: var(--shadow); transform: rotate(4deg); }
.phone-screen { height: 100%; padding: 30px 20px 20px; overflow: hidden; border-radius: 34px; background: linear-gradient(160deg,#fff 0%,#fff4f5 60%,#eee9ff 100%); }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.avatar-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 34px; }
.avatar { position: relative; aspect-ratio: .82; border-radius: 22px; overflow: hidden; background: linear-gradient(145deg,#ffd4df,#aa98ed); }
.avatar:nth-child(2) { background: linear-gradient(145deg,#c9ecff,#7f9ce4); }
.avatar:nth-child(3) { background: linear-gradient(145deg,#ffe1a7,#ff8d93); }
.avatar:nth-child(4) { background: linear-gradient(145deg,#d4f3db,#8acbb8); }
.avatar::before { content:""; position:absolute; width:52%; aspect-ratio:1; border-radius:50%; top:17%; left:24%; background:rgba(255,255,255,.85); }
.avatar::after { content:""; position:absolute; width:78%; height:48%; border-radius:50% 50% 16% 16%; bottom:-12%; left:11%; background:rgba(255,255,255,.7); }
.chat-pill { margin-top: 18px; padding: 13px 16px; border-radius: 16px 16px 5px 16px; color: #fff; background: var(--pink); font-size: 13px; }

.feature-section { padding: 95px 7vw; background: var(--paper); }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature-card { min-height: 230px; padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: #fffaf8; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px; border-radius: 16px; color: #fff; background: var(--pink); font-size: 22px; }
.feature-card:nth-child(2) .feature-icon { background: var(--lavender); }
.feature-card:nth-child(3) .feature-icon { background: #e79b48; }
.feature-card h3 { margin: 0 0 10px; font-size: 22px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.safety-band { padding: 80px 7vw; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.safety-band h2 { margin: 0; font-size: clamp(34px,4vw,58px); letter-spacing: -.04em; }
.safety-list { display: grid; gap: 14px; }
.safety-list p { margin: 0; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(60,34,64,.06); }

.legal-shell { width: min(960px, 90vw); margin: 0 auto; padding: 80px 0 110px; }
.legal-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-header h1 { font-size: clamp(40px,6vw,68px); line-height: 1.05; }
.updated { margin-top: 16px; color: var(--muted); }
.legal-notice { margin: 28px 0; padding: 18px 20px; border-radius: 16px; background: var(--soft); color: #6d3445; line-height: 1.6; }
.legal-content { line-height: 1.78; font-size: 16px; }
.legal-content section { padding-top: 30px; scroll-margin-top: 90px; }
.legal-content h2 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.02em; }
.legal-content p { margin: 0 0 14px; color: #4d4552; }
.legal-content ul, .legal-content ol { margin: 10px 0 16px; padding-inline-start: 24px; color: #4d4552; }
.legal-content li { margin: 7px 0; }
.legal-content table { width: 100%; margin: 20px 0; border-collapse: collapse; border: 1px solid var(--line); }
.legal-content th, .legal-content td { padding: 14px; text-align: start; vertical-align: top; border: 1px solid var(--line); }
.legal-content th { background: #fff8fa; }
.contact-card { margin-top: 32px; padding: 26px; border-radius: 22px; background: var(--ink); color: #fff; }
.contact-card p { color: #e9e2eb; }
.contact-card a { color: #fff; font-weight: 700; }

.site-footer { padding: 54px 5vw; display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: start; border-top: 1px solid var(--line); background: #fff; }
.footer-brand { margin-bottom: 12px; }
.site-footer p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
.footer-meta { text-align: end; }
.footer-meta a { color: var(--pink-dark); font-weight: 600; }

@media (max-width: 860px) {
  .site-header { grid-template-columns: auto 1fr; padding: 0 20px; }
  #main-nav { display: none; }
  .language-picker { grid-column: 2; }
  .language-trigger { min-width: 148px; }
  .language-menu { width: min(224px, calc(100vw - 40px)); }
  .hero { grid-template-columns: 1fr; padding: 76px 6vw; text-align: center; gap: 30px; }
  .hero-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .button-row { justify-content: center; }
  .phone-stage { min-height: 420px; }
  .feature-grid { grid-template-columns: 1fr; }
  .safety-band { grid-template-columns: 1fr; gap: 36px; }
  .site-footer { grid-template-columns: 1fr; }
  #footer-nav { flex-wrap: wrap; gap: 16px 24px; }
  .footer-meta { text-align: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .phone { animation: float 5s ease-in-out infinite; }
  @keyframes float { 0%,100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-12px); } }
}
