:root {
  color-scheme: light;
  --ink: #14182c;
  --muted: #50586e;
  --accent: #3445d9;
  --paper: #f8f9fd;
  --line: #dde1ed;
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; letter-spacing: -.045em; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 8; transform: translateY(-170%); padding: .7rem 1rem; background: #fff; }
.skip:focus { transform: none; }

.site-header { position: relative; z-index: 4; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; gap: 2rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.23rem; font-weight: 750; letter-spacing: -.045em; text-decoration: none; }
.brand img { border-radius: 23%; }
.main-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.main-nav a, footer nav a { font-weight: 590; font-size: .94rem; text-decoration: none; }
.main-nav a:hover, footer nav a:hover { color: var(--accent); text-decoration: underline; }
.languages { position: relative; }
.languages summary { cursor: pointer; list-style: none; border: 1px solid #cfd4e5; border-radius: 999px; padding: .52rem 1.9rem .52rem .9rem; color: var(--ink); font-size: .94rem; font-weight: 650; white-space: nowrap; }
summary::-webkit-details-marker { display: none; }
.languages summary::after { content: ''; position: absolute; right: .85rem; top: .94rem; width: .43rem; height: .43rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.languages nav { position: absolute; right: 0; top: calc(100% + .5rem); display: grid; min-width: 9rem; padding: .35rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 12px 30px #161b3920; }
.languages nav a { padding: .52rem .75rem; border-radius: .55rem; font-size: .94rem; text-decoration: none; }
.languages nav a:hover, .languages nav a[aria-current] { background: #edf0ff; color: var(--accent); }

.hero { display: grid; grid-template-columns: 1fr 1.03fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5.6vw, 5.25rem) 3.75rem; }
.hero-copy { padding-bottom: 1.6rem; }
.hero h1 { max-width: 12ch; font-size: clamp(3rem, 5.7vw, 5.3rem); line-height: 1.015; letter-spacing: -.07em; text-wrap: balance; }
.hero-copy > p { max-width: 29rem; margin-top: 1.5rem; font-size: clamp(1.07rem, 1.7vw, 1.25rem); }
.hero-actions { display: flex; align-items: center; gap: .8rem 1rem; flex-wrap: wrap; margin-top: 1.9rem; }
.action { display: inline-flex; align-items: center; min-height: 3.35rem; padding: .75rem 1.35rem; border-radius: .8rem; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.action:hover { background: #2534b4; }
.availability { color: var(--muted); font-size: .91rem; font-weight: 590; }
.hero-figure { margin: 0; min-width: 0; }
.hero-scene { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; min-height: clamp(25rem, 47vw, 34rem); padding: 1.8rem; border: 1px solid #dfe4fa; border-radius: 2rem; background-color: #ebefff; background-image: radial-gradient(#c0c8ee 1px, transparent 1px); background-size: 20px 20px; }
.phone { position: relative; overflow: hidden; border: .43rem solid #161a2c; border-radius: 1.95rem; background: #fff; box-shadow: 0 25px 52px #2736634d, 0 3px 8px #27366355; }
.phone img { width: 100%; height: auto; }
.hero-phone { width: clamp(11rem, 18vw, 13.75rem); transform: rotate(-6deg); }
.rail { position: absolute; z-index: -1; width: 75%; height: 38%; border: .47rem solid; border-radius: 6rem; transform: rotate(-27deg); }
.rail::before, .rail::after { position: absolute; display: block; content: ''; width: 1rem; height: 1rem; border: .23rem solid currentColor; background: #ebefff; border-radius: 50%; }
.rail::before { left: 20%; top: -.72rem; }
.rail::after { bottom: -.72rem; right: 23%; }
.rail-green { color: #77aa9a; left: -18%; bottom: 21%; }
.rail-purple { color: #a0a8eb; right: -17%; top: 23%; }
figcaption { margin-top: .72rem; color: var(--muted); font-size: .88rem; text-align: center; }

.how-section { padding-block: 4rem; border-block: 1px solid #e0e4f1; background: #eef1fe; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); padding: 0; margin: 2rem 0 0; list-style: none; }
.steps li { border-top: 1px solid #bfc7ec; padding-top: 1.15rem; }
.step-number { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; margin-bottom: .75rem; border-radius: .65rem; background: #dce4ff; color: #2638ac; font-weight: 700; }
.steps h3 { font-size: 1.2rem; line-height: 1.23; margin-bottom: .38rem; }
.nearby-section { display: grid; grid-template-columns: .95fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 6.5rem); padding-top: clamp(3rem, 8vw, 6rem); }
.nearby-visual { display: grid; place-items: center; overflow: hidden; min-height: 23rem; padding: 2rem 1rem 0; border-radius: 2rem; background: #dcefe9; }
.nearby-phone { width: 13.75rem; max-width: 63%; align-self: end; margin-bottom: -5.5rem; }
.nearby-copy { max-width: 29rem; }
.nearby-copy p { margin-top: 1rem; font-size: 1.1rem; }

.faq-section { display: grid; grid-template-columns: .5fr 1fr; gap: 2rem; padding-block: clamp(3rem, 7vw, 6rem); }
.faq-items { border-top: 1px solid var(--line); }
.faq-items details { border-bottom: 1px solid var(--line); }
.faq-items summary { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq-toggle::after { content: '+'; color: var(--accent); font-size: 1.25rem; }
.faq-items details[open] .faq-toggle::after { content: '−'; }
.faq-items p { padding-bottom: 1.2rem; }

.editorial { max-width: 46rem; min-height: 64vh; padding-block: 3.5rem 5rem; }
.editorial h1 { margin: 1.2rem 0 1rem; font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.09; letter-spacing: -.06em; }
.editorial .intro { font-size: 1.16rem; }
.editorial section { padding-top: 1.75rem; margin-top: 1.75rem; border-top: 1px solid var(--line); }
.editorial h2 { font-size: 1.4rem; margin-bottom: .5rem; letter-spacing: -.02em; }
.support-steps { display: grid; gap: .9rem; padding-inline-start: 1.5rem; margin: 1.5rem 0; color: var(--muted); line-height: 1.7; }
.back, .text-link { color: var(--accent); font-weight: 650; }

footer { border-top: 1px solid var(--line); }
.footer-inner { justify-content: space-between; }
.footer-inner nav { display: flex; gap: 1rem 1.5rem; flex-wrap: wrap; }

html:lang(ko) h1, html:lang(ja) h1, html:lang(zh-Hans) h1 { letter-spacing: -.035em; font-size: clamp(2.5rem, 4.9vw, 4.1rem); }
html:lang(ko) h1, html:lang(ko) h2 { word-break: keep-all; }
html:lang(ja) .hero h1, html:lang(zh-Hans) .hero h1 { max-width: 15ch; }

@media (max-width: 800px) {
  .wrap { width: min(100% - 2.25rem, 43rem); }
  .header-inner { gap: 1rem; }
  .main-nav { gap: .85rem; }
  .hero { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .hero h1 { font-size: clamp(2.5rem, 6.4vw, 3.7rem); }
  .hero-scene { min-height: 24rem; padding-inline: 1rem; }
  .hero-phone { width: min(80%, 10.8rem); }
}

@media (max-width: 610px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .75rem; padding-block: .8rem; }
  .languages { grid-area: 1 / 2; }
  .main-nav { display: flex; grid-column: 1 / -1; gap: .75rem 1.3rem; margin: 0; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; padding-block: 2.6rem 2.7rem; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 3.9rem); }
  .hero-copy > p { margin-top: .9rem; }
  .hero-actions { margin-top: 1.2rem; }
  .hero-scene { min-height: 25rem; border-radius: 1.55rem; }
  .hero-phone { width: 11rem; }
  .how-section { padding-block: 2.5rem; }
  .steps, .nearby-section, .faq-section { grid-template-columns: 1fr; }
  .steps { gap: 1.25rem; margin-top: 1.3rem; }
  .nearby-copy { grid-row: 1; }
  .nearby-visual { min-height: 20rem; border-radius: 1.55rem; }
  .faq-section { gap: 1rem; }
  .footer-inner { flex-wrap: wrap; padding-block: 1rem; gap: 1rem; }
}
