/* The app's look on the web: frosted-glass cards on a warm pastel haze, one coral accent, Poppins. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/Poppins_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/Poppins_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/Poppins_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/Poppins_700Bold.ttf") format("truetype"); }

:root {
  --pearl: #f2f1f4;
  --peach: #f6e3df;
  --blush: #efd6e4;
  --lavender: #e2d3f0;
  --text: #26232b;
  --muted: #6b6573;
  --coral: #f0673b;
  --coral-deep: #d9532a;
  --coral-light: #ffb08a;
  --coral-soft: rgba(240, 103, 59, 0.12);
  --alert: #d93b4f;
  --alert-soft: rgba(217, 59, 79, 0.08);
  --surface: rgba(255, 255, 255, 0.6);
  --surface-2: rgba(255, 255, 255, 0.88);
  --rim: rgba(255, 255, 255, 0.95);
  --border: rgba(38, 35, 43, 0.08);
  --shadow: 0 8px 24px rgba(120, 80, 110, 0.08);
  --radius: 24px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:lang(ja) { --font: "Poppins", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif; }
:lang(ko) { --font: "Poppins", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--pearl);
  background-image: linear-gradient(180deg, var(--pearl) 0%, var(--pearl) 18%, var(--peach) 52%, var(--blush) 78%, var(--lavender) 100%);
  background-attachment: fixed;
  overflow-wrap: break-word;
}

a { color: var(--coral-deep); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.6rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 16px; }

.card {
  background: var(--surface);
  border: 1.5px solid var(--rim);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* Header */
.site-header { padding: 14px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; min-width: 0; }
.brand img { border-radius: 10px; flex: none; box-shadow: 0 4px 12px rgba(120, 80, 110, 0.15); }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lang-menu { position: relative; flex: none; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--rim);
  box-shadow: 0 4px 12px rgba(120, 80, 110, 0.1); font-size: 0.9rem; font-weight: 500;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 18px; height: 18px; color: var(--muted); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; margin: 0; padding: 6px; list-style: none;
  min-width: 210px; background: #fbf8fb; border: 1.5px solid var(--rim); border-radius: 18px;
  box-shadow: 0 16px 40px rgba(90, 50, 90, 0.18);
}
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 12px; color: var(--text); text-decoration: none; }
.lang-menu li a:hover { background: var(--coral-soft); }
.lang-menu li a[aria-current] { color: var(--coral-deep); font-weight: 600; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding-top: 40px; padding-bottom: 48px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-note { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }
.badge { display: inline-block; line-height: 0; }
.badge img { width: 200px; height: auto; margin-left: -12px; }

.orb-ring {
  justify-self: center; width: min(78vw, 340px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; padding: 18px;
  background: rgba(255, 255, 255, 0.45); border: 1.5px solid var(--rim);
  box-shadow: 0 24px 60px rgba(240, 103, 59, 0.28);
  animation: breathe 4s ease-in-out infinite;
}
.orb {
  width: 100%; height: 100%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #fff; text-align: center; font-weight: 600; font-size: clamp(1rem, 4vw, 1.3rem); line-height: 1.3; letter-spacing: 0.02em;
  background: var(--coral) radial-gradient(circle at 30% 24%, #fff4ec 0%, var(--coral-light) 12%, var(--coral) 52%, var(--coral) 100%);
  text-shadow: 0 1px 8px rgba(120, 30, 20, 0.25);
  padding: 0 12%;
}
.orb-play { width: 22%; height: auto; }
@keyframes breathe { 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .orb-ring { animation: none; } }

/* Sections */
.section { padding-top: 16px; padding-bottom: 32px; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.feature-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--coral-soft); color: var(--coral); margin-bottom: 12px;
}
.feature-icon svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px; }
.split p { color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 14px; min-height: 32px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--coral); color: #fff; font-weight: 600; font-size: 0.9rem;
}
.arrow-link { font-weight: 600; text-decoration: none; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface-2);
  border: 1.5px solid var(--rim); color: var(--text); text-decoration: none; font-size: 0.92rem;
}
.chips a:hover { border-color: var(--coral); }

.notice { display: flex; gap: 16px; padding: 24px; background: var(--alert-soft); border-color: rgba(217, 59, 79, 0.2); }
.notice-icon { flex: none; background: #fff; color: var(--alert); margin: 0; }
.notice p { margin: 0; color: var(--text); }

/* Legal pages */
.legal { padding-top: 24px; padding-bottom: 40px; }
.legal-card { max-width: 780px; margin: 0 auto; padding: clamp(22px, 5vw, 48px); }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.legal h2 { font-size: 1.15rem; margin-top: 1.8em; }
.legal .updated { color: var(--muted); font-size: 0.92rem; }
.legal .intro { font-size: 1.05rem; }
.legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }

/* Footer */
.site-footer { padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.footer-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.footer-nav a[aria-current] { color: var(--coral-deep); }
.footer-note, .footer-copy { margin: 0 0 4px; }

/* Root language picker (shown only if the redirect does not run) */
.root-picker { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.root-picker img { border-radius: 18px; }
.root-picker .chips { justify-content: center; max-width: 560px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .badge img { margin-left: 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .notice { flex-direction: column; }
  .lang-menu summary span { display: none; }
}
