/* ============================================
   TS Plastic Surgery — Eye Revision Landing
   Wide layout, cinematic hero, asymmetric,
   Playfair Display + Pretendard, BEM-style
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --c1: #0d3d38;   /* deep teal */
  --c2: #155e55;   /* teal */
  --c3: #1a7a6d;   /* mint-dark */
  --c4: #2db49e;   /* mint primary */
  --c5: #5cd4c0;   /* mint light */
  --c6: #a8ece2;   /* mint pale */
  --c7: #dff8f4;   /* mint wash */
  --c8: #f3fcfa;   /* mint ghost */
  --ink: #0f1a18;
  --txt: #2d3a37;
  --sub: #6b7f7a;
  --mute: #a0b0ab;
  --line: #d6e3e0;
  --bg: #f5f9f8;
  --white: #fff;
  --err: #c0392b;
  --gold: #f5b731;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  --r: 10px;
  --r2: 16px;
  --shadow: 0 4px 24px rgba(13,61,56,.08);
  --shadow-lg: 0 12px 48px rgba(13,61,56,.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  color: var(--txt);
  background: var(--white);
  overflow-x: hidden;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c4); text-decoration: none; }
.hidden { display: none !important; }

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── HEADER ── */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 58px;
}
.header__logo {
  font-weight: 900; font-size: 1.2rem; color: var(--c2);
  text-decoration: none; letter-spacing: -.03em;
}
.header__logo span { font-weight: 500; color: var(--sub); }
.header__nav { display: flex; gap: 8px; align-items: center; }
.header__btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .76rem; font-weight: 600; padding: 7px 13px;
  border-radius: 100px; text-decoration: none; transition: .2s;
}
.header__btn--phone {
  color: var(--c3); border: 1.5px solid var(--c6);
}
.header__btn--phone:hover { background: var(--c8); }
.header__btn--phone svg { width: 15px; height: 15px; fill: none; stroke: var(--c4); stroke-width: 2; }
.header__btn--kakao {
  color: #3c1e1e; background: #FEE500; font-weight: 700;
}
.header__btn--kakao:hover { filter: brightness(.94); }
.header__btn--kakao img { border-radius: 0; }

/* ── HERO: cinematic split ── */
.hero {
  background: linear-gradient(160deg, var(--c1) 0%, #081f1c 60%, #0a1210 100%);
  color: var(--white);
  padding: 52px 0 60px;
}
.hero__inner {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 36px;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--c5); font-weight: 500;
}
.hero__rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c4); color: var(--white);
  font-size: .78rem; font-weight: 800;
}
.hero__title {
  font-family: var(--sans);
  font-size: 2rem; font-weight: 800; line-height: 1.32;
  margin: 16px 0; letter-spacing: -.03em;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--c5), var(--c4));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__desc {
  font-size: .92rem; line-height: 1.8;
  color: rgba(255,255,255,.72); max-width: 420px;
}
.hero__desc strong { color: var(--white); }
.hero__trust {
  display: flex; gap: 20px; margin-top: 8px;
}
.hero__trust-item {
  text-align: center;
}
.hero__trust-item strong {
  display: block; font-size: 1.3rem; font-weight: 800; color: var(--c5);
  font-family: var(--serif); letter-spacing: -.02em;
}
.hero__trust-item span {
  font-size: .7rem; color: rgba(255,255,255,.55);
}

/* Hero form card */
.hero__form-card {
  background: var(--white); border-radius: var(--r2);
  padding: 28px 24px; color: var(--txt);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.form__title {
  font-size: 1.05rem; font-weight: 700; text-align: center;
  margin-bottom: 18px; color: var(--ink);
}
.form__field { margin-bottom: 12px; }
.form__field input[type="text"],
.form__field input[type="tel"] {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  font-size: .92rem; font-family: var(--sans); outline: none;
  transition: border .2s;
}
.form__field input:focus { border-color: var(--c4); }
.form__field input.invalid { border-color: var(--err); }
.form__error { display: block; font-size: .73rem; color: var(--err); margin-top: 3px; min-height: .9em; }
.form__label { font-size: .8rem; font-weight: 600; color: var(--txt); margin-bottom: 6px; }
.form__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--sans); font-size: .76rem; font-weight: 500;
  padding: 6px 13px; border: 1.5px solid var(--line); border-radius: 100px;
  background: var(--white); color: var(--sub); cursor: pointer; transition: .2s;
}
.chip:hover { border-color: var(--c5); color: var(--c3); }
.chip.active { background: var(--c4); color: var(--white); border-color: var(--c4); }
.form__agree {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: .76rem; color: var(--sub); margin: 10px 0 4px; cursor: pointer;
}
.form__agree input { margin-top: 3px; accent-color: var(--c4); }
.form__agree a { color: var(--c4); text-decoration: underline; }
.btn-cta {
  display: flex; align-items: center; justify-content: center; width: 100%;
  padding: 14px 24px; border: none; border-radius: var(--r);
  background: linear-gradient(135deg, var(--c3), var(--c4));
  color: var(--white); font-family: var(--sans); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: .25s; text-decoration: none;
  box-shadow: 0 4px 18px rgba(45,180,158,.28);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(45,180,158,.38); }
.btn-cta--sm { width: auto; padding: 12px 28px; font-size: .88rem; display: inline-flex; }
.btn-cta--white { background: var(--white); color: var(--c2); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.btn-cta--white:hover { box-shadow: 0 8px 32px rgba(0,0,0,.22); }
.btn-cta__spinner { display: inline-block; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__success { text-align: center; padding: 24px 0; }
.form__success-icon { width: 48px; height: 48px; margin: 0 auto 10px; background: var(--c4); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; }
.form__error-box { background: #fef2f2; color: var(--err); padding: 12px; border-radius: var(--r); font-size: .85rem; margin-top: 10px; }
.hero__privacy-note { font-size: .7rem; color: rgba(255,255,255,.35); text-align: center; margin-top: 10px; }
.btn-outline { display: block; margin: 24px auto 0; padding: 12px 28px; border: 1.5px solid var(--c5); border-radius: var(--r); background: transparent; color: var(--c3); font-family: var(--sans); font-size: .88rem; font-weight: 600; cursor: pointer; transition: .2s; }
.btn-outline:hover { background: var(--c8); }

/* ── STATS RIBBON ── */
.stats-ribbon {
  background: var(--c4); color: var(--white); overflow: hidden;
}
.stats-ribbon__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 14px 24px; flex-wrap: wrap;
  font-size: .78rem; font-weight: 500;
  max-width: 960px; margin: 0 auto;
}
.stats-ribbon__item strong { font-weight: 700; }
.stats-ribbon__dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }

/* ── HEADINGS ── */
.heading {
  font-family: var(--sans); font-size: 1.7rem; font-weight: 800;
  line-height: 1.35; color: var(--ink); text-align: center;
  margin-bottom: 8px; letter-spacing: -.03em;
}
.heading em {
  font-style: normal; font-family: var(--serif);
  color: var(--c3);
}
.heading--light { color: var(--white); }
.heading--light em { color: var(--c5); }
.subtext { font-size: .88rem; color: var(--sub); text-align: center; margin-bottom: 36px; }
.subtext--light { color: rgba(255,255,255,.6); }

/* ── PROBLEMS: icon card grid ── */
.problems { padding: 64px 0; background: var(--white); }
.problems__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px;
}
.problems__card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r2);
  padding: 22px 18px; transition: border-color .2s, transform .2s;
}
.problems__card:hover { border-color: var(--c5); transform: translateY(-3px); }
.problems__icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--c7); font-size: 1.1rem; margin-bottom: 12px;
  color: var(--c3);
}
.problems__card h3 { font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.problems__card p { font-size: .8rem; color: var(--sub); line-height: 1.6; }
.problems__card strong { color: var(--c3); font-weight: 600; }
.problems__cta-box {
  background: var(--c1); color: var(--white); border-radius: var(--r2);
  padding: 22px; text-align: center; font-size: .95rem; line-height: 1.6;
}
.problems__cta-box strong { color: var(--c5); }

/* ── PROCESS: dark section, horizontal steps ── */
.process {
  padding: 64px 0;
  background: linear-gradient(160deg, var(--c1), #091c19);
  color: var(--white);
}
.process__track {
  display: flex; flex-direction: column; gap: 0; margin-bottom: 28px;
}
.process__step {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r2); padding: 22px 20px; text-align: center;
}
.process__num {
  font-family: var(--serif); font-size: .85rem; font-weight: 600;
  color: var(--c5); margin-bottom: 8px;
}
.process__step h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.process__step p { font-size: .78rem; color: rgba(255,255,255,.6); line-height: 1.5; }
.process__connector {
  width: 2px; height: 20px; background: var(--c5); margin: 0 auto; opacity: .4;
}
.process__callout {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r2); padding: 22px 20px; text-align: center;
  font-size: .88rem; line-height: 1.75; color: rgba(255,255,255,.8);
}
.process__callout strong { color: var(--c5); }

/* ── TYPES: horizontal scroll ── */
.types { padding: 64px 0; background: var(--bg); }
.types__scroll {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.types__scroll::-webkit-scrollbar { height: 4px; }
.types__scroll::-webkit-scrollbar-thumb { background: var(--c6); border-radius: 2px; }
.types__card {
  flex: 0 0 160px; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r2);
  padding: 20px 16px; text-align: center; transition: border-color .2s;
}
.types__card:hover { border-color: var(--c4); }
.types__card span {
  display: block; font-family: var(--serif); font-size: .78rem;
  color: var(--c4); font-weight: 600; margin-bottom: 8px;
}
.types__card h3 { font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.types__card p { font-size: .72rem; color: var(--sub); }

/* ── REVIEWS: stacked quote cards ── */
.reviews { padding: 64px 0; background: var(--white); }
.reviews__stack { display: flex; flex-direction: column; gap: 16px; }
.review-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r2); padding: 24px 20px;
  border-left: 4px solid var(--c4);
  transition: transform .2s, box-shadow .2s;
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review-card blockquote {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  color: var(--ink); line-height: 1.5; margin-bottom: 14px;
  font-style: italic;
}
.review-card mark {
  background: rgba(45,180,158,.12); color: var(--c3); padding: 1px 5px;
  border-radius: 3px; font-style: normal;
}
.review-card__body { font-size: .84rem; line-height: 1.7; }
.review-card__before { color: var(--sub); margin-bottom: 8px; }
.review-card__before s { color: var(--mute); text-decoration-color: rgba(192,57,43,.35); }
.review-card__after { color: var(--txt); }
.review-card__after strong { color: var(--ink); }
.review-card__tag { display: inline-block; margin-top: 10px; font-size: .72rem; color: var(--mute); }

/* ── AUDIENCE: dark section ── */
.audience {
  padding: 64px 0;
  background: linear-gradient(160deg, var(--c2), var(--c1));
  color: var(--white);
}
.audience__grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.audience__item {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 16px 18px;
}
.audience__item span {
  flex-shrink: 0; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c4); color: var(--white); border-radius: 50%;
  font-size: .78rem; font-weight: 700;
}
.audience__item p { font-size: .88rem; color: rgba(255,255,255,.85); }
.audience__item strong { color: var(--white); }

/* ── GALLERY: comparison grid ── */
.gallery { padding: 64px 0; background: var(--bg); }
.gallery__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}
.gallery__grid--extra { display: none; margin-top: 0; }
.gallery__pair {
  background: var(--white); border-radius: var(--r2); padding: 10px;
  box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.gallery__img {
  position: relative; border-radius: var(--r); overflow: hidden;
}
.gallery__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.gallery__img span {
  position: absolute; top: 6px; left: 6px;
  font-size: .6rem; font-weight: 700; letter-spacing: .06em;
  background: rgba(0,0,0,.5); color: #fff; padding: 2px 7px; border-radius: 3px;
}
.gallery__img--after span { background: var(--c4); }
.gallery__caption {
  grid-column: 1/-1; font-size: .72rem; color: var(--sub); padding-top: 2px;
}

/* ── DOCTOR: asymmetric ── */
.doctor {
  padding: 64px 0;
  background: var(--white);
}
.doctor__inner {
  max-width: 920px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.doctor__photo {
  width: 180px; border-radius: var(--r2);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 4px solid var(--c7);
}
.doctor__bio { text-align: center; }
.doctor__label {
  font-size: .7rem; font-weight: 700; color: var(--c4);
  letter-spacing: .12em; margin-bottom: 4px;
}
.doctor__name {
  font-size: 1.5rem; font-weight: 800; color: var(--ink);
  margin-bottom: 4px;
}
.doctor__name span { font-weight: 400; font-size: 1rem; color: var(--sub); }
.doctor__title-line {
  font-size: .85rem; color: var(--sub); margin-bottom: 16px;
}
.doctor__list {
  list-style: none; text-align: left;
  margin-bottom: 20px; display: inline-block;
}
.doctor__list li {
  font-size: .84rem; color: var(--txt); padding: 4px 0 4px 20px;
  position: relative; line-height: 1.55;
}
.doctor__list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c4);
}

/* ── FAQ: native details/summary ── */
.faq { padding: 64px 0; background: var(--bg); }
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.faq__item {
  background: var(--white); border-radius: var(--r); overflow: hidden;
  border-left: 3px solid var(--c4);
  box-shadow: var(--shadow);
}
.faq__item summary {
  padding: 16px 18px; font-size: .92rem; font-weight: 600;
  color: var(--ink); cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; font-size: 1.2rem; color: var(--mute);
  transition: transform .3s;
}
.faq__item[open] summary::after { content: '\2212'; color: var(--c4); }
.faq__item p {
  padding: 0 18px 16px; font-size: .84rem; color: var(--sub); line-height: 1.7;
}

/* ── FINAL CTA ── */
.cta-final {
  padding: 64px 0; text-align: center;
  background: linear-gradient(160deg, var(--c3), var(--c1));
  color: var(--white);
}
.cta-final h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; line-height: 1.4; }
.cta-final p { font-size: .92rem; color: rgba(255,255,255,.7); margin-bottom: 24px; }
.cta-final .btn-cta--white {
  width: auto; display: inline-flex; padding: 14px 40px;
  animation: glow 2.5s ease-in-out infinite;
}
@keyframes glow {
  0%,100% { box-shadow: 0 4px 20px rgba(0,0,0,.15); }
  50% { box-shadow: 0 4px 32px rgba(255,255,255,.25); }
}

/* ── FOOTER ── */
.footer {
  background: var(--ink); color: rgba(255,255,255,.6);
  padding: 36px 0 28px; font-size: .8rem; line-height: 1.7;
}
.footer__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.footer__brand { font-weight: 800; font-size: 1.1rem; color: var(--white); }
.footer__contact { display: flex; gap: 12px; }
.footer__contact a { color: var(--c5); font-weight: 600; }
.footer__details { margin-bottom: 16px; }
.footer__warn {
  font-size: .7rem; color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; margin-bottom: 6px;
}
.footer__copy { font-size: .7rem; color: rgba(255,255,255,.25); }

/* ── FAB ── */
.fab {
  position: fixed; bottom: 24px; right: 20px; z-index: 150;
  display: flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, var(--c3), var(--c4));
  color: var(--white); padding: 12px 18px; border-radius: 100px;
  font-size: .84rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 24px rgba(45,180,158,.35);
  opacity: 0; transform: translateY(20px); transition: .3s; pointer-events: none;
}
.fab.visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(45,180,158,.45); }
.fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── MODAL ── */
.modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.5); display: flex; align-items: center;
  justify-content: center; padding: 20px;
}
.modal__box {
  background: var(--white); border-radius: var(--r2);
  max-width: 460px; width: 100%; padding: 28px 24px; position: relative;
}
.modal__close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; font-size: 1.6rem; color: var(--mute); cursor: pointer;
}
.modal__box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.modal__body { font-size: .82rem; color: var(--sub); line-height: 1.7; margin-bottom: 18px; }
.modal__body p { margin-bottom: 6px; }

.blocked-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.blocked-page h1 { font-size: 1.1rem; color: var(--sub); }

/* ── DESKTOP ── */
@media (min-width: 768px) {
  .hero__inner { flex-direction: row; align-items: flex-start; gap: 48px; }
  .hero__text { flex: 1; padding-top: 16px; }
  .hero__form-col { flex: 0 0 360px; }
  .hero__title { font-size: 2.4rem; }
  .heading { font-size: 2rem; }

  .problems__grid { grid-template-columns: repeat(4, 1fr); }

  .process__track {
    flex-direction: row; align-items: stretch;
  }
  .process__step { flex: 1; }
  .process__connector { width: 20px; height: auto; min-height: unset; margin: auto 0; }

  .audience__grid { grid-template-columns: 1fr 1fr; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .doctor__inner { flex-direction: row; text-align: left; gap: 40px; }
  .doctor__bio { text-align: left; }
  .doctor__photo { width: 240px; }
}
