:root {
  --leaf-50: #effbf3;
  --leaf-100: #dcf5e4;
  --leaf-200: #b8eac9;
  --leaf-300: #84d9a3;
  --leaf-400: #4cc47a;
  --leaf-500: #22a95a;
  --leaf-600: #16944b;
  --leaf-700: #13823f;
  --leaf-800: #106c34;
  --ink: #15281d;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }
body { font-feature-settings: "palt"; letter-spacing: .02em; }
::selection { background: var(--leaf-200); color: var(--ink); }
:focus-visible { outline: 3px solid var(--leaf-400); outline-offset: 3px; border-radius: 12px; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Header ---------- */
#siteHeader { border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
#siteHeader.is-scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--leaf-100);
}
#siteHeader.is-scrolled > div { padding-top: .7rem; padding-bottom: .7rem; }
#siteHeader > div { transition: padding .3s var(--ease); }

.nav-link {
  display: block; padding: .5rem 1rem; border-radius: 999px;
  color: rgba(21, 40, 29, .75); transition: background .2s, color .2s;
}
.nav-link:hover { background: var(--leaf-50); color: var(--leaf-700); }
.nav-link.is-current { background: var(--leaf-700); color: #fff; }

.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem; border-radius: 1rem; font-weight: 700;
}
.mobile-link:hover { background: var(--leaf-50); }
.mobile-menu:not([hidden]) { animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(184, 234, 201, .55), transparent 60%),
    radial-gradient(40rem 25rem at 0% 90%, rgba(220, 245, 228, .9), transparent 60%),
    linear-gradient(#fff, #fff);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(19, 130, 63, .14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%);
}

.pulse-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-500);
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--leaf-400); animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.marker {
  position: relative; color: var(--leaf-700); white-space: nowrap;
  background: linear-gradient(transparent 62%, var(--leaf-100) 62%, var(--leaf-100) 92%, transparent 92%);
}

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--leaf-700); color: #fff; }
.btn-primary:hover { background: var(--leaf-800); }
.btn-ghost { background: #fff; color: var(--leaf-800); border: 1.5px solid var(--leaf-200); }
.btn-ghost:hover { border-color: var(--leaf-400); background: var(--leaf-50); }

.hero-card {
  position: relative; overflow: hidden; border-radius: 2.2rem;
  background: #fff; border: 1px solid var(--leaf-200);
}
.hero-sky {
  position: relative; height: 290px; overflow: hidden;
  background: linear-gradient(180deg, #e6f8ec 0%, #f6fcf8 70%);
}
.mountains { position: absolute; inset: auto 0 0 0; width: 100%; height: 78%; }
.sun {
  position: absolute; top: 34px; right: 54px; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle, #fff 40%, rgba(255, 255, 255, 0) 70%);
  outline: 14px solid rgba(255, 255, 255, .45);
}
.cloud {
  position: absolute; height: 18px; border-radius: 999px; background: #fff;
  animation: drift 18s linear infinite;
}
.cloud::before {
  content: ""; position: absolute; left: 22%; bottom: 6px; width: 46%; height: 26px;
  border-radius: 999px; background: #fff;
}
.cloud.c1 { top: 52px; left: 10%; width: 90px; }
.cloud.c2 { top: 100px; left: 55%; width: 64px; animation-duration: 24s; animation-delay: -8s; opacity: .85; }
@keyframes drift { 0% { transform: translateX(-40px); } 50% { transform: translateX(40px); } 100% { transform: translateX(-40px); } }

.hero-tile {
  display: block; padding: 1.15rem; border-radius: 1.4rem;
  background: var(--leaf-50); border: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.hero-tile:hover { background: #fff; border-color: var(--leaf-300); }
.tile-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: var(--leaf-700); color: #fff;
}

.float-chip {
  position: absolute; display: flex; align-items: center; gap: .6rem;
  padding: .6rem 1rem .6rem .6rem; border-radius: 999px; background: #fff;
  border: 1px solid var(--leaf-200);
  animation: float 6s ease-in-out infinite; animation-delay: var(--f, 0s);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: .5rem;
  font-size: 10px; letter-spacing: .3em; color: var(--leaf-700);
}
.scroll-cue .line { width: 1px; height: 38px; background: var(--leaf-200); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--leaf-700); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }
@media (min-width: 1024px) { .scroll-cue { display: flex; } }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 11px; font-weight: 700; letter-spacing: .28em; color: var(--leaf-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--leaf-400); }
.section-title {
  margin-top: .6rem; font-family: "Zen Maru Gothic", sans-serif; font-weight: 900;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.35; letter-spacing: .01em;
}
.section-num {
  display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 22px;
  font-family: "Zen Maru Gothic", sans-serif; font-weight: 900; font-size: 1.4rem;
  background: #fff; color: var(--leaf-700); border: 1px solid var(--leaf-200);
}
#korei .section-num { background: var(--leaf-700); color: #fff; border-color: var(--leaf-700); }
.sub-title {
  display: flex; align-items: center; gap: .5rem;
  font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--leaf-800);
}
.dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(19, 130, 63, .12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, #000, transparent 50%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 50%);
}

/* ---------- Finder ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  padding: .7rem 1.1rem; border-radius: 999px; font-size: .875rem; font-weight: 700;
  background: #fff; color: rgba(21, 40, 29, .75); border: 1.5px solid var(--leaf-100);
  transition: background .25s, border-color .25s, color .25s;
}
.chip:hover { border-color: var(--leaf-300); color: var(--leaf-700); }
.chip.is-active { background: var(--leaf-700); border-color: var(--leaf-700); color: #fff; }

.finder-card { height: 100%; }
.finder-card button {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%;
  text-align: left; padding: 1.4rem; border-radius: 1.6rem;
  background: #fff; border: 1px solid var(--leaf-100);
  transition: border-color .3s, background .3s;
}
.finder-card button:hover { border-color: var(--leaf-400); background: var(--leaf-50); }
.finder-card .arrow {
  position: absolute; right: 1.2rem; top: 1.2rem; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--leaf-50); color: var(--leaf-700);
  transition: background .3s, color .3s;
}
.finder-card button:hover .arrow { background: var(--leaf-700); color: #fff; }
.finder-card .kind {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: .2rem .55rem; border-radius: 999px;
}
.finder-card .kind.child { background: var(--leaf-100); color: var(--leaf-800); }
.finder-card .kind.senior { background: var(--leaf-700); color: #fff; }
.finder-card.enter { animation: cardIn .5s var(--ease) both; animation-delay: var(--i, 0s); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.empty-state {
  grid-column: 1 / -1; padding: 3rem; text-align: center; border-radius: 1.6rem;
  border: 1.5px dashed var(--leaf-200); color: rgba(21, 40, 29, .6);
}

/* ---------- Cards ---------- */
.info-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 15px;
  background: var(--leaf-100); color: var(--leaf-700);
  transition: background .3s, color .3s;
}
.info-card {
  display: flex; gap: 1rem; padding: 1.4rem; border-radius: 1.5rem;
  background: #fff; border: 1px solid var(--leaf-100);
  transition: border-color .3s;
}
.info-card:hover { border-color: var(--leaf-400); }
.info-card:hover .info-icon { background: var(--leaf-700); color: #fff; }
.tag {
  display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--leaf-50); color: var(--leaf-700); border: 1px solid var(--leaf-200);
}

.feature-rings {
  position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  outline: 40px solid rgba(255, 255, 255, .04);
}

/* Range */
.range { -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; background: var(--leaf-100); cursor: pointer; }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 6px solid var(--leaf-700);
}
.range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--leaf-700);
}
.visit-dot {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; transition: all .35s var(--ease);
}
.visit-dot.paid { background: var(--leaf-600); color: #fff; transform: scale(1); }
.visit-dot.free { background: #fff; border: 2px solid var(--leaf-300); color: var(--leaf-600); }
.visit-dot.off { background: var(--leaf-50); color: transparent; transform: scale(.7); }

/* Tabs */
.tabs {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  padding: .4rem; border-radius: 1.4rem; background: var(--leaf-50); border: 1px solid var(--leaf-100);
}
.tab {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .9rem .5rem; border-radius: 1rem; font-weight: 700; font-size: .9rem;
  color: rgba(21, 40, 29, .6); transition: color .3s;
}
.tab span { white-space: nowrap; }
.tab[aria-selected="true"] { color: #fff; }
.tab-indicator {
  position: absolute; top: .4rem; bottom: .4rem; left: .4rem; border-radius: 1rem;
  background: var(--leaf-700);
  transition: transform .5s var(--ease), width .5s var(--ease);
}
@media (max-width: 640px) {
  .tab { flex-direction: column; gap: .25rem; font-size: .72rem; padding: .75rem .25rem; }
  .tab span { white-space: normal; text-align: center; line-height: 1.3; }
}
.tab-panel:not([hidden]) { animation: panelIn .55s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }

.senior-card {
  padding: 1.75rem; border-radius: 1.75rem; background: #fff; border: 1px solid var(--leaf-100);
  transition: border-color .3s;
}
.senior-card:hover { border-color: var(--leaf-400); }
.senior-card:hover .info-icon { background: var(--leaf-700); color: #fff; }
.mini-item {
  display: flex; align-items: flex-start; gap: .55rem; padding: .9rem 1rem; border-radius: 1rem;
  background: var(--leaf-50); font-size: .85rem; font-weight: 500; line-height: 1.5;
}
.mini-item svg { flex-shrink: 0; margin-top: .15rem; color: var(--leaf-600); }

.watch-visual { position: relative; height: 170px; display: grid; place-items: center; }
.watch-visual .core {
  position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--leaf-700); color: #fff;
}
.watch-visual .ring {
  position: absolute; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--leaf-300);
  animation: radiate 3.6s var(--ease) infinite;
}
.watch-visual .r2 { animation-delay: 1.2s; }
.watch-visual .r3 { animation-delay: 2.4s; }
@keyframes radiate { from { transform: scale(1); opacity: .9; } to { transform: scale(2.7); opacity: 0; } }

.quote-card {
  padding: 2rem; border-radius: 1.75rem;
  background: linear-gradient(135deg, var(--leaf-50), #fff); border: 1px solid var(--leaf-100);
}

/* ---------- Values band ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 2rem; width: max-content;
  font-family: "Zen Maru Gothic", sans-serif; font-weight: 900; font-size: clamp(2rem, 6vw, 4rem);
  color: transparent; -webkit-text-stroke: 1px rgba(184, 234, 201, .5);
  animation: marquee 40s linear infinite;
}
.marquee-track i { font-style: normal; font-size: .3em; color: var(--leaf-300); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.value-item {
  padding: 1.75rem; border-radius: 1.5rem; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12); color: #fff;
}
.value-item svg { color: var(--leaf-300); }

/* ---------- FAQ ---------- */
.faq {
  border-radius: 1.4rem; background: #fff; border: 1px solid var(--leaf-100);
  transition: border-color .3s;
}
.faq[open] { border-color: var(--leaf-300); }
.faq summary {
  display: flex; align-items: center; justify-content: flex-start; gap: 1rem;
  padding: 1.3rem 1.4rem; cursor: pointer; list-style: none; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px;
  background: var(--leaf-100); color: var(--leaf-700); font-family: "Zen Maru Gothic", sans-serif; font-weight: 900;
}
.faq-icon { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--leaf-50); margin-left: auto; transition: background .3s, transform .4s var(--ease); }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; border-radius: 2px;
  background: var(--leaf-700); transform: translate(-50%, -50%); transition: transform .4s var(--ease), background .3s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq-icon { background: var(--leaf-700); transform: rotate(180deg); }
.faq[open] .faq-icon::before { background: #fff; }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); background: #fff; }
.faq-body { padding: 0 1.4rem 1.4rem 4.1rem; font-size: .9rem; line-height: 1.9; color: rgba(21, 40, 29, .7); }
.faq[open] .faq-body { animation: panelIn .45s var(--ease); }

/* ---------- CTA ---------- */
.cta-card {
  position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); border-radius: 2.4rem;
  background: var(--leaf-700); color: #fff;
}
.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(30rem 18rem at 100% 0%, rgba(132, 217, 163, .4), transparent 60%),
    radial-gradient(24rem 14rem at 0% 100%, rgba(16, 108, 52, .6), transparent 60%);
}
.contact-row {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 1.3rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  transition: background .3s, border-color .3s;
}
.contact-row:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%; background: var(--leaf-700); color: #fff;
  border: 2px solid #fff;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease), background .2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--leaf-800); }

/* ---------- Dialog ---------- */
.detail-dialog {
  width: min(92vw, 520px); padding: 0; border: 1px solid var(--leaf-200); border-radius: 2rem; color: var(--ink);
}
.detail-dialog::backdrop { background: rgba(21, 40, 29, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.detail-dialog[open] { animation: dlgIn .45s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.dlg-point {
  display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border-radius: 1.1rem;
  background: var(--leaf-50); border: 1px solid var(--leaf-100); font-weight: 700; color: var(--leaf-800);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
