/* 텐써마 메인 리뉴얼 — 정적 시안 (모든 규칙은 tm- 로 시작: 기존 style.css 와 안 섞이게) */
:root{
  --tm-navy:#0d3f8f;
  --tm-navy-d:#0a2f6b;
  --tm-blue:#1f5cff;
  --tm-blue-l:#5b8def;
  --tm-q:#1d4fa3;
  --tm-ink:#111;
  --tm-gray:#6b7280;
  --tm-line:#e5e7eb;
  --tm-bg-sky:#eaf2ff;
  --tm-bg-gray:#f2f3f5;
  --tm-dark:#05081a;
  --tm-inner:1200px;
  --tm-header-h:84px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body.tm{margin:0;background:#fff;color:var(--tm-ink);font-family:Pretendard,"Pretendard Variable",-apple-system,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;-webkit-font-smoothing:antialiased;word-break:keep-all;overflow-x:hidden}
.tm img{max-width:100%;display:block}
.tm a{color:inherit;text-decoration:none}
.tm ul,.tm ol{list-style:none;margin:0;padding:0}
.tm h2,.tm h3,.tm p{margin:0}
.tm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tm-inner{width:min(var(--tm-inner),100% - 40px);margin:0 auto}
.tm-inner--narrow{width:min(1000px,100% - 40px)}
.tm-pc{display:inline}
@media (max-width:767px){.tm-pc{display:none}}

.tm-h2{font-size:clamp(28px,3.4vw,48px);font-weight:800;letter-spacing:-.02em;line-height:1.25;text-align:center}
.tm-h2--left{text-align:left}
.tm-h2--white{color:#fff}
.tm-h3{font-size:clamp(28px,3.2vw,46px);font-weight:800;letter-spacing:-.02em;line-height:1.25}

.tm-btn{display:inline-flex;align-items:center;gap:10px;height:56px;padding:0 34px;border-radius:999px;border:0;font:inherit;font-size:17px;font-weight:700;cursor:pointer;transition:transform .2s,background .2s}
.tm-btn--navy{background:var(--tm-navy);color:#fff}
.tm-btn--navy:hover{background:var(--tm-navy-d);transform:translateY(-2px)}
.tm-btn span{font-size:22px;line-height:1}

/* 시안 표시 */
.tm-draft{position:fixed;left:12px;bottom:12px;z-index:200;padding:6px 10px;border-radius:6px;background:rgba(255,80,40,.92);color:#fff;font-size:12px;font-weight:700;pointer-events:none}

/* ===== 상단 메뉴 ===== */
.tm-header{position:fixed;inset:0 0 auto 0;z-index:100;height:var(--tm-header-h);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4.5vw,80px);background:linear-gradient(#000c,#0000);transition:background .3s}
.tm-header.is-scrolled{background:rgba(5,8,26,.88);backdrop-filter:blur(10px)}
.tm-header__logo img{height:26px;width:auto}
.tm-header__nav{display:flex;gap:16px;align-items:center}
.tm-pill{display:flex;align-items:center;gap:4px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.08)}
.tm-pill a{display:block;padding:8px 12px;color:#e5e7eb;font-size:15px;font-weight:500;border-radius:999px;transition:color .2s,background .2s}
.tm-pill a:hover,.tm-pill a.is-current{color:#fff;background:rgba(255,255,255,.1)}
.tm-sns{width:34px;height:34px;padding:0!important;display:grid!important;place-items:center}
.tm-sns::before{content:"";width:18px;height:18px;background:#e5e7eb;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.tm-sns--insta{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm5 3.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM17.5 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E")}
.tm-sns--yt{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.6 7.2a2.5 2.5 0 0 0-1.8-1.8C18.2 5 12 5 12 5s-6.2 0-7.8.4A2.5 2.5 0 0 0 2.4 7.2C2 8.8 2 12 2 12s0 3.2.4 4.8a2.5 2.5 0 0 0 1.8 1.8C5.8 19 12 19 12 19s6.2 0 7.8-.4a2.5 2.5 0 0 0 1.8-1.8c.4-1.6.4-4.8.4-4.8s0-3.2-.4-4.8zM10 15V9l5.2 3L10 15z'/%3E%3C/svg%3E")}
.tm-header__burger{display:none}
@media (max-width:1360px){
  .tm-pill a{padding:8px 9px;font-size:14px}
}
@media (max-width:1199px){
  :root{--tm-header-h:64px}
  .tm-header__logo img{height:20px}
  .tm-header__burger{display:grid;gap:5px;width:44px;height:44px;place-content:center;border:0;background:none;cursor:pointer}
  .tm-header__burger span{display:block;width:24px;height:2px;background:#fff;transition:transform .3s,opacity .3s}
  .tm-header__burger[aria-expanded=true] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .tm-header__burger[aria-expanded=true] span:nth-child(2){opacity:0}
  .tm-header__burger[aria-expanded=true] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .tm-header__nav{position:fixed;inset:var(--tm-header-h) 0 auto 0;flex-direction:column;align-items:stretch;gap:10px;padding:16px 20px 28px;background:rgba(5,8,26,.97);transform:translateY(-12px);opacity:0;visibility:hidden;transition:.3s}
  .tm-header__nav.is-open{transform:none;opacity:1;visibility:visible}
  .tm-pill{flex-direction:column;align-items:stretch;border-radius:16px;padding:8px}
  .tm-pill a{padding:13px 14px;font-size:16px}
  .tm-pill--sub{flex-direction:row;flex-wrap:wrap}
  .tm-pill--sub a{font-size:14px}
}

/* ===== ① 메인 영상 ===== */
.tm-hero{position:relative;height:100vh;height:100svh;min-height:520px;background:#0b0c10;overflow:hidden}
.tm-hero__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tm-hero__placeholder{position:absolute;inset:auto 0 90px;display:flex;justify-content:center;pointer-events:none}
.tm-hero__placeholder span{padding:8px 14px;border:1px dashed #fff6;border-radius:8px;color:#fffa;font-size:13px}
.tm-hero__scroll{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);color:#fffb;font-size:11px;letter-spacing:.3em;padding-bottom:34px}
.tm-hero__scroll::after{content:"";position:absolute;left:50%;bottom:0;width:1px;height:26px;background:#fff8;animation:tm-scrollline 1.8s ease-in-out infinite}
@keyframes tm-scrollline{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}

/* ===== ② 효과는 텐써마 ===== */
.tm-effect{position:relative;background:#02040d;color:#fff;overflow:hidden}
.tm-effect__stage{position:relative;height:100vh;height:100svh;min-height:640px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:calc(var(--tm-header-h) + 10px) 20px 40px}
.tm-laser{position:absolute;inset:0;pointer-events:none}
.tm-laser__beam{position:absolute;left:50%;top:50%;width:160vmax;height:3px;margin-left:-80vmax;border-radius:3px;background:linear-gradient(90deg,transparent 0%,#1f5cff00 18%,#3d7bff 46%,#e8f0ff 50%,#3d7bff 54%,#1f5cff00 82%,transparent 100%);box-shadow:0 0 18px 4px #2f6bff99,0 0 60px 14px #1f5cff55;filter:blur(.4px);opacity:0}
.tm-laser__beam--1{transform:rotate(28deg) scaleX(.2)}
.tm-laser__beam--2{transform:rotate(-28deg) scaleX(.2)}
.tm-laser__beam--3{transform:rotate(62deg) scaleX(.2);height:2px}
.tm-laser__beam--4{transform:rotate(-62deg) scaleX(.2);height:2px}
.tm-laser__core{position:absolute;left:50%;top:50%;width:60vmin;height:60vmin;margin:-30vmin 0 0 -30vmin;border-radius:50%;background:radial-gradient(#2f6bff66,#1f5cff22 40%,transparent 70%);opacity:0}
.tm-effect__head{position:relative;z-index:2;text-align:center}
.tm-effect__logo{height:22px;width:auto;margin:0 auto 14px}
.tm-effect__title{font-size:clamp(34px,4.4vw,64px);font-weight:800;letter-spacing:-.02em}
.tm-effect__device{position:relative;z-index:1;margin-top:clamp(16px,3vh,36px);height:min(52vh,520px);aspect-ratio:180/385;-webkit-mask:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent);mask:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent)}
/* 임시 이미지 뒤 네모 배경 숨김 — 투명 배경 원본 받으면 이 마스크 2개 삭제 */
.tm-effect__device img{width:100%;height:100%;object-fit:contain;filter:brightness(.15);-webkit-mask:linear-gradient(#000 85%,transparent);mask:linear-gradient(#000 85%,transparent)}
.tm-effect__flow{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;background:linear-gradient(180deg,transparent 0%,transparent 40%,#7fb0ff55 47%,#e6f0ffcc 50%,#7fb0ff55 53%,transparent 60%,transparent 100%);background-size:100% 260%;background-position:0 -130%;opacity:0;-webkit-mask:linear-gradient(90deg,transparent 18%,#000 30%,#000 70%,transparent 82%);mask:linear-gradient(90deg,transparent 18%,#000 30%,#000 70%,transparent 82%)}
.tm-effect__flow.is-on{opacity:1;animation:tm-flow 3.2s linear infinite}
@keyframes tm-flow{to{background-position:0 130%}}
.tm-effect__desc{position:relative;z-index:2;margin-top:clamp(16px,3vh,32px);color:#d9e2f2;font-size:clamp(15px,1.3vw,19px);text-align:center}

/* ===== ③ 이런 분이라면 ===== */
.tm-who{padding:clamp(90px,11vw,160px) 0}
.tm-who__list{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:clamp(50px,6vw,90px);text-align:center}
.tm-who__list p{margin-top:26px;font-size:clamp(15px,1.3vw,18px);font-weight:500;line-height:1.55;color:#222}
.tm-glass{position:relative;display:block;width:clamp(104px,9vw,128px);aspect-ratio:1;margin:0 auto;border-radius:28%;overflow:hidden}
.tm-glass img{width:100%;height:100%;object-fit:cover}
.tm-glass::after{content:"";position:absolute;inset:-40%;background:linear-gradient(115deg,transparent 40%,#ffffffd0 50%,transparent 60%);transform:translateX(-120%);pointer-events:none}
.tm-glass.is-shine::after{animation:tm-shine 1.4s ease-out forwards}
@keyframes tm-shine{to{transform:translateX(120%)}}
@media (max-width:767px){.tm-who__list{grid-template-columns:repeat(2,1fr);row-gap:44px}}

/* ===== ④ 기술력 ===== */
.tm-tech{padding:clamp(80px,10vw,150px) 0;background:linear-gradient(180deg,#d5e5ff 0%,#e7f0ff 55%,#f4f8ff 100%)}
.tm-tech__row{display:grid;grid-template-columns:1.25fr 1fr;align-items:center;gap:clamp(30px,6vw,90px)}
.tm-tech__row+.tm-tech__row{margin-top:clamp(90px,11vw,160px)}
.tm-tech__row--rev{grid-template-columns:1fr 1.25fr}
.tm-tech__row--rev .tm-tech__media{order:2}
.tm-tech__media{border-radius:6px;overflow:hidden;aspect-ratio:16/9;background:#cfe0f7}
.tm-tech__media--dark{background:#020617}
.tm-tech__media video{width:100%;height:100%;object-fit:cover;display:block}
.tm-tech__text p{margin-top:24px;font-size:clamp(15px,1.3vw,19px);line-height:1.7;color:#222}
@media (max-width:767px){
  .tm-tech__row,.tm-tech__row--rev{grid-template-columns:1fr}
  .tm-tech__row--rev .tm-tech__media{order:0}
}

/* ===== ⑤ 텐써마 팁 ===== */
.tm-tip{position:relative;background:radial-gradient(60% 70% at 10% 100%,#cfe0ff 0%,#eef4ff 45%,#fff 75%)}
.tm-tip__stage{position:relative;height:100vh;height:100svh;min-height:620px;width:min(var(--tm-inner),100% - 40px);margin:0 auto;display:grid;grid-template-columns:1fr 1.1fr 1fr;align-items:center;gap:30px;padding-top:var(--tm-header-h)}
.tm-tip__head{align-self:start;padding-top:clamp(40px,9vh,110px)}
.tm-tip__head p{margin-top:18px;font-size:16px;line-height:1.6;color:#333}
.tm-tip__visual{position:relative;height:min(70vh,620px);aspect-ratio:208/212;max-width:100%;justify-self:center;align-self:end}
.tm-tip__img{position:absolute;inset:0;margin:0;opacity:0;transform:translateY(40px) scale(.97);transition:opacity .6s,transform .8s cubic-bezier(.2,.7,.2,1)}
.tm-tip__img.is-active{opacity:1;transform:none}
.tm-tip__img img{width:100%;height:100%;object-fit:contain;object-position:center bottom;mix-blend-mode:multiply} /* 임시 이미지 흰 배경 숨김 */
.tm-tip__glow{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);border-radius:10px;pointer-events:none}
.tm-tip__glow::before{content:"";position:absolute;inset:-2px;border-radius:inherit;padding:2px;background:conic-gradient(from var(--a,0deg),transparent 0 70%,#9cc2ff 80%,#fff 85%,#9cc2ff 90%,transparent 100%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);animation:tm-spin 2.4s linear infinite;filter:drop-shadow(0 0 6px #6aa1ff)}
.tm-tip__glow::after{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(#9cc2ff55,transparent 70%);animation:tm-pulse 2.4s ease-in-out infinite}
@property --a{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes tm-spin{to{--a:360deg}}
@keyframes tm-pulse{50%{opacity:.35}}
.tm-tip__list{align-self:center}
.tm-tip__list li{padding:20px 0 18px;border-bottom:1px solid #cfd6e2;color:#b8bec8;transition:color .4s}
.tm-tip__list li strong{display:block;font-size:clamp(22px,2vw,30px);font-weight:700}
.tm-tip__list li span{display:block;margin-top:4px;font-size:15px}
.tm-tip__list li.is-active{color:var(--tm-ink);border-bottom-color:#555}
@media (max-width:767px){
  .tm-tip__stage{grid-template-columns:1fr;grid-template-rows:auto 1fr auto;gap:14px;min-height:560px;padding-bottom:24px}
  .tm-tip__head{padding-top:24px}
  .tm-tip__visual{height:min(44vh,360px);align-self:center}
  .tm-tip__list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}
  .tm-tip__list li{padding:10px 0;border-bottom-width:2px}
  .tm-tip__list li strong{font-size:16px}
  .tm-tip__list li span{font-size:12px}
}

/* ===== ⑥ Why 5? + ⑦ 정품 ===== */
.tm-dark{position:relative;padding:clamp(90px,11vw,160px) 0;background:radial-gradient(50% 45% at 0% 0%,#1f4fd8 0%,#0b1d5c 35%,transparent 70%),radial-gradient(40% 40% at 0% 100%,#10307f 0%,transparent 70%),var(--tm-dark);color:#fff;overflow:hidden}
.tm-dark::before{content:"";position:absolute;left:0;top:0;width:45%;height:520px;background:linear-gradient(#ffffff10 1px,transparent 1px) 0 0/56px 56px,linear-gradient(90deg,#ffffff10 1px,transparent 1px) 0 0/56px 56px;-webkit-mask:radial-gradient(70% 70% at 30% 40%,#000,transparent);mask:radial-gradient(70% 70% at 30% 40%,#000,transparent);pointer-events:none}
.tm-why{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:clamp(30px,5vw,80px);align-items:center}
.tm-why__text p{margin-top:22px;font-size:clamp(15px,1.25vw,18px);line-height:1.75;color:#d6deeb}
.tm-why__text b{color:#fff}
.tm-why__text small{font-size:13px;color:#9aa6bd}
.tm-why__media{aspect-ratio:1;max-width:460px;justify-self:end;width:100%;border-radius:4px;overflow:hidden;background:#040713}
.tm-why__media video{width:100%;height:100%;object-fit:cover;display:block}
.tm-genuine{display:grid;grid-template-columns:1fr 1fr;gap:clamp(30px,5vw,80px);align-items:center;margin-top:clamp(110px,13vw,180px)}
.tm-genuine__img{max-width:440px;justify-self:center}
.tm-genuine__img img{-webkit-mask:radial-gradient(65% 60% at 50% 50%,#000 60%,transparent);mask:radial-gradient(65% 60% at 50% 50%,#000 60%,transparent)} /* 임시 이미지 네모 배경 숨김 */
.tm-genuine__text p{margin-top:20px;font-size:16px;line-height:1.7;color:#d6deeb}
.tm-genuine__text em{font-style:normal;color:var(--tm-blue-l);font-weight:600}
.tm-genuine__form{display:flex;gap:10px;margin-top:30px;max-width:520px}
.tm-genuine__form input{flex:1;min-width:0;height:48px;padding:0 16px;border:0;border-radius:8px;font:inherit;font-size:16px}
.tm-genuine__form button{height:48px;padding:0 22px;border:0;border-radius:8px;background:var(--tm-blue-l);color:#fff;font:inherit;font-size:16px;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .2s}
.tm-genuine__form button:hover{background:#3f74e0}
@media (max-width:767px){
  .tm-why,.tm-genuine{grid-template-columns:1fr}
  .tm-why__media{justify-self:center}
  .tm-genuine__img{order:2;max-width:300px}
  .tm-genuine__form{flex-direction:column}
  .tm-genuine__form input{flex:none}
}

/* ===== ⑧ FAQ ===== */
.tm-faq{padding:clamp(90px,11vw,150px) 0;background:var(--tm-bg-gray)}
.tm-faq__list{margin-top:clamp(40px,5vw,70px);display:grid;gap:16px}
.tm-faq__item{background:#fff;border-radius:18px}
.tm-faq__q{position:relative;width:100%;padding:30px 70px 30px 34px;border:0;background:none;font:inherit;font-size:clamp(18px,1.6vw,24px);font-weight:700;color:var(--tm-q);text-align:left;cursor:pointer}
.tm-faq__q::after{content:"";position:absolute;right:34px;top:50%;width:14px;height:2px;background:var(--tm-q);box-shadow:none;transition:transform .3s}
.tm-faq__q::before{content:"";position:absolute;right:40px;top:50%;width:2px;height:14px;margin-top:-6px;background:var(--tm-q);transition:transform .3s,opacity .3s}
.tm-faq__item.is-open .tm-faq__q::before{transform:rotate(90deg);opacity:0}
.tm-faq__a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease}
.tm-faq__a>div{overflow:hidden}
.tm-faq__item.is-open .tm-faq__a{grid-template-rows:1fr}
.tm-faq__a p{padding:0 34px 30px;font-size:15px;line-height:1.75;color:#333}
.tm-faq__note{margin-top:34px;text-align:center;font-size:14px;color:#555}

/* ===== ⑨ 병원 찾기 ===== */
.tm-hospital{position:relative;overflow:hidden;background:linear-gradient(180deg,#f3f7ff,#e3edff)}
.tm-hospital__bg{position:absolute;inset:auto 0 6% 0;display:grid;gap:0;pointer-events:none;padding-left:6%}
.tm-hospital__word{font-size:clamp(90px,15vw,230px);font-weight:900;font-style:italic;letter-spacing:-.04em;line-height:.95;color:transparent;-webkit-text-stroke:1.5px #c3d4f3;opacity:.35;white-space:nowrap}
.tm-hospital__word--1{animation:tm-blink 2.4s ease-in-out infinite}
.tm-hospital__word--2{animation:tm-blink 2.4s ease-in-out 1.2s infinite}
@keyframes tm-blink{0%,100%{opacity:.25}30%{opacity:1;-webkit-text-stroke-color:#9ab8ef}60%{opacity:.25}}
.tm-hospital__inner{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:620px;padding:80px 0 0}
.tm-hospital__text p{margin:16px 0 32px;font-size:17px;color:#333}
.tm-hospital__device{align-self:end;justify-self:center;height:540px;aspect-ratio:208/212}
.tm-hospital__device img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
@media (max-width:767px){
  .tm-hospital__inner{grid-template-columns:1fr;text-align:center;padding-top:80px;min-height:0}
  .tm-hospital__text .tm-h2{text-align:center}
  .tm-hospital__device{height:360px;margin-top:30px}
}

/* ===== ⑩ 문의하기 ===== */
.tm-contact{padding:clamp(90px,11vw,150px) 0;background:#f0f5ff}
.tm-contact__lead{margin-top:16px;text-align:center;font-size:17px;color:#333}
.tm-form{display:grid;grid-template-columns:1fr 1fr;gap:20px 50px;margin-top:clamp(40px,5vw,60px);padding:clamp(28px,4vw,50px) clamp(24px,5vw,60px);background:#fff;border-radius:28px;box-shadow:0 20px 50px #1f5cff12}
.tm-form__col{display:flex;flex-direction:column;gap:20px}
.tm-form label{display:flex;flex-direction:column;gap:10px;font-size:15px;font-weight:700}
.tm-form input,.tm-form textarea{width:100%;height:48px;padding:0 16px;border:1px solid #d5d9e0;border-radius:10px;font:inherit;font-size:15px;font-weight:400;transition:border-color .2s,box-shadow .2s}
.tm-form textarea{flex:1;min-height:200px;padding:14px 16px;resize:vertical}
.tm-form input:focus,.tm-form textarea:focus{outline:0;border-color:var(--tm-blue-l);box-shadow:0 0 0 3px #5b8def33}
.tm-form__grow{flex:1}
.tm-form__foot{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.tm-check{flex-direction:row!important;align-items:center;gap:8px!important;font-weight:400!important;font-size:14px!important;color:#333}
.tm-check input{width:18px;height:18px}
@media (max-width:767px){.tm-form{grid-template-columns:1fr}.tm-form__foot .tm-btn{width:100%;justify-content:center}}

/* ===== 푸터 ===== */
.tm-footer{padding:44px 0 50px;background:#0b0d12;color:#9aa1ad;font-size:13px;line-height:1.7}
.tm-footer__notice{padding-bottom:22px;border-bottom:1px solid #222733}
.tm-footer__row{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-top:22px}
.tm-footer a{color:#e5e7eb;font-weight:700}
.tm-footer b{color:#d1d5db}

/* ===== 등장 효과 기본 상태 (효과 꺼짐·스크립트 없음이면 그냥 보임) ===== */
.tm-js [data-reveal]{opacity:0;transform:translateY(34px)}
@media (prefers-reduced-motion:reduce){
  .tm-js [data-reveal]{opacity:1;transform:none}
  .tm-hospital__word,.tm-tip__glow::before,.tm-tip__glow::after,.tm-effect__flow.is-on,.tm-hero__scroll::after{animation:none!important}
}

/* ===== 서브: 정품 인증 결과 화면 (cert_*.html) ===== */
.tm-sub{min-height:100vh;min-height:100svh;padding:calc(var(--tm-header-h) + 70px) 0 110px;background:radial-gradient(60% 50% at 50% 0%,#dfeaff 0%,#f3f7ff 55%,#f7f9fc 100%)}
.tm-sub .tm-header{background:rgba(5,8,26,.92)}
.tm-card{width:min(760px,100% - 40px);margin:0 auto;padding:clamp(30px,5vw,56px);background:#fff;border-radius:28px;box-shadow:0 24px 60px #1f5cff14}
.tm-result{text-align:center}
.tm-result__icon{width:76px;height:76px;margin:0 auto 22px;border-radius:50%;display:grid;place-items:center}
.tm-result__icon svg{width:38px;height:38px}
.tm-result__icon--ok{background:#e6efff;color:var(--tm-blue)}
.tm-result__icon--ng{background:#fff0ee;color:#e5484d}
.tm-result h1{margin:0;font-size:clamp(24px,2.6vw,34px);font-weight:800;letter-spacing:-.02em}
.tm-result p{margin:14px 0 0;color:#444;font-size:16px;line-height:1.7}
.tm-code{display:inline-flex;align-items:center;gap:10px;margin-top:22px;padding:10px 18px;border-radius:10px;background:#f2f5fb;font-size:15px;color:#555}
.tm-code b{font-size:20px;letter-spacing:.12em;color:var(--tm-ink)}
.tm-sub .tm-form{grid-template-columns:1fr 1fr;margin-top:34px;padding:0;box-shadow:none;border-radius:0;gap:18px 24px}
.tm-sub .tm-form .tm-form__full{grid-column:1/-1}
.tm-req{color:#e5484d;margin-left:2px}
.tm-terms{grid-column:1/-1;padding:16px 18px;border-radius:10px;background:#f6f7f9;font-size:13px;line-height:1.7;color:#555}
.tm-terms b{color:#333}
.tm-actions{grid-column:1/-1;display:flex;justify-content:center;gap:12px;margin-top:8px;flex-wrap:wrap}
.tm-btn--line{background:#fff;color:#333;border:1px solid #cfd5df}
.tm-btn--line:hover{background:#f4f6fa}
.tm-btn--blue{background:var(--tm-blue-l);color:#fff}
.tm-btn--blue:hover{background:#3f74e0}
.tm-help{display:grid;grid-template-columns:150px 1fr;gap:22px;align-items:center;margin-top:34px;padding:20px;border-radius:16px;background:#f6f8fc;text-align:left}
.tm-help img{width:150px;border-radius:12px;background:#0b1430}
.tm-help p{margin:0;font-size:14px;color:#555}
.tm-help strong{display:block;margin-bottom:4px;font-size:15px;color:#222}
@media (max-width:767px){
  .tm-sub .tm-form{grid-template-columns:1fr}
  .tm-help{grid-template-columns:1fr;text-align:center}
  .tm-help img{margin:0 auto}
  .tm-actions .tm-btn{flex:1;justify-content:center}
}
.tm-sub .tm-form{text-align:left}
.tm-sub .tm-form label:not(.tm-check){display:block}
.tm-sub .tm-form label:not(.tm-check) input,.tm-sub .tm-form label:not(.tm-check) textarea{display:block;margin-top:10px}
.tm-sub .tm-form textarea{min-height:180px}
.tm-pill a{white-space:nowrap}
.tm-page-sub .tm-header{background:rgba(5,8,26,.92)}

/* ===== ① 메인 영상 — 유튜브 배경 (11/18) ===== */
.tm-hero{background:#000}
.tm-hero__still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .9s}
.tm-hero__yt{position:absolute;inset:0;overflow:hidden;pointer-events:none;opacity:0;transition:opacity .9s}
.tm-hero__yt iframe{position:absolute;left:50%;top:50%;width:max(100vw,177.78vh);height:max(56.25vw,100vh);transform:translate(-50%,-50%);border:0}
.tm-hero.is-playing .tm-hero__yt{opacity:1}
.tm-hero.is-playing .tm-hero__still{opacity:0}
.tm-hero.has-video .tm-hero__placeholder{display:none}
/* 모바일: 세로 화면에서 잘리지 않게 영상 비율(16:9) 그대로 */
@media (max-width:767px){
  .tm-hero{height:calc(56.25vw + var(--tm-header-h));min-height:0;margin-top:0}
  .tm-hero__still,.tm-hero__yt{top:var(--tm-header-h);height:56.25vw}
  .tm-hero__yt iframe{width:100%;height:100%}
  .tm-hero__scroll,.tm-hero__placeholder{display:none}
}

/* ===== 2026-11-18 실제 반영 추가 ===== */
.tm-draft{display:none!important}
.tm-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.tm-footer__admin{margin-left:10px;color:#9aa1ad!important;font-weight:400!important}
.tm-footer__admin img{display:inline-block;width:16px;height:16px;vertical-align:-3px;opacity:.6}
.tm-adminbar{position:fixed;left:50%;bottom:14px;z-index:300;transform:translateX(-50%);display:flex;gap:4px;align-items:center;flex-wrap:wrap;justify-content:center;max-width:calc(100% - 24px);padding:8px 12px;border-radius:12px;background:#111827ee;color:#fff;font-size:13px;box-shadow:0 10px 30px #0005}
.tm-adminbar b{margin-right:6px;color:#fbbf24}
.tm-adminbar a{padding:6px 10px;border-radius:8px;color:#e5e7eb}
.tm-adminbar a:hover{background:#ffffff1a;color:#fff}
.tm-admin-note{margin:0;padding:14px;text-align:center;background:#fffbea;font-size:14px}
.tm-js{scroll-behavior:auto!important} /* 2026-11-19 고정 구간과 CSS 부드러운 이동이 부딪혀 메뉴 이동은 JS 로 */

/* ===== 2026-11-19 좁은 화면(320px) 넘침 고침 ===== */
@media (max-width:767px){
  .tm-hospital__inner{grid-template-columns:minmax(0,1fr)}
  .tm-hospital__device{height:auto;width:min(100%,320px);aspect-ratio:208/212}
  .tm-tip__stage{grid-template-columns:minmax(0,1fr)}
  .tm-tip__visual{max-width:100%}
  .tm-tip__list li{min-width:0}
}
@media (max-width:360px){
  .tm-tip__list li strong{font-size:14px}
  .tm-tip__list li span{font-size:11px}
}

/* ===== 2026-11-19 메인 영상: 유튜브 제목줄·로고가 메뉴 로고와 겹치지 않게 25% 키워 위아래를 잘라 냄 ===== */
.tm-hero__yt iframe{width:calc(max(100vw,177.78vh) * 1.25);height:calc(max(56.25vw,100vh) * 1.25)}
@media (max-width:767px){
  .tm-hero__yt iframe{width:125%;height:125%;left:50%;top:50%}
}

/* ===== 2026-11-19 링크로 만든 버튼 글자색: ".tm a{color:inherit}" 가 이겨서 짙은 파란 버튼에 검은 글자였음 ===== */
.tm a.tm-btn--navy,.tm a.tm-btn--navy:hover,.tm a.tm-btn--navy:visited,.tm a.tm-btn--blue,.tm a.tm-btn--blue:visited{color:#fff}
.tm a.tm-btn--line,.tm a.tm-btn--line:visited{color:#222}
.tm a.tm-btn:focus-visible{outline:3px solid #9cc2ff;outline-offset:3px}

/* ===== 2026-11-19 태블릿(768~1023px): 텐써마 팁 3칸 배치가 넘쳐 모바일처럼 위아래로 ===== */
@media (min-width:768px) and (max-width:1023px){
  .tm-tip__stage{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:14px;padding-bottom:28px}
  .tm-tip__head{padding-top:28px}
  .tm-tip__visual{height:min(46vh,460px);max-width:100%;align-self:center}
  .tm-tip__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;text-align:center}
  .tm-tip__list li{padding:12px 0;min-width:0}
  .tm-tip__list li strong{font-size:22px}
}
