/* 잇데이 홍보 사이트 — 2026-10-14 탭형 개편.
   구조는 매일내림 랜딩(얇은 헤더 · 좌우 히어로 + 정보 4칸 · 옅은 띠 섹션)을 따르고,
   색은 앱 css/tokens.css 를 따른다: #D58A95 · #BC6675 · #F7EFF0 · 잉크 #191F28.
   흰 글씨를 올리는 버튼은 대비 때문에 짙은 로즈 #A94F60 을 쓴다(4.5:1 이상).
   하지 않는 것: 그라데이션 배경 · 떠다니는 칩 · 기울인 폰 · 스크롤 등장 모션 · 이모지. */
/* 웹폰트: assets/fonts/fonts.css 와 같은 정의(첫 화면 요청을 하나 줄이려고 여기 합침). 라이선스 assets/fonts/OFL.txt */
@font-face { font-family: 'Itdasy Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('assets/fonts/itdasy-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Itdasy Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('assets/fonts/itdasy-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Itdasy Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('assets/fonts/itdasy-sans-700.woff2') format('woff2'); }
@font-face { font-family: 'Itdasy Sans'; font-weight: 800; font-style: normal; font-display: swap; src: url('assets/fonts/itdasy-sans-800.woff2') format('woff2'); }
:root {
  --brand: #D58A95;
  --brand-strong: #BC6675;
  --brand-deep: #A94F60;
  --brand-bg: #F7EFF0;
  --band: #FAF6F6;
  --ink: #191F28;
  --text2: #4E5968;
  --text3: #5F6B78;  /* 띠 배경 #FAF6F6 위에서도 5.07:1 (AA) */
  --line: #ECE6E8;
  --line-strong: #DDD3D6;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Itdasy Sans', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--ink); background: #fff; font-size: 16px; line-height: 1.6; letter-spacing: -.015em;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 3px; border-radius: 6px; }
ul, ol { list-style: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
section { scroll-margin-top: 72px; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skip-link { position: fixed; top: -100px; left: 16px; background: #fff; padding: 12px 16px; z-index: 300; border-radius: 14px; }
.skip-link:focus { top: 12px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; border-radius: 14px; border: 1px solid transparent; transition: background .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-sm { height: 44px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; height: 50px; font-size: 15px; }
.btn-primary { background: var(--brand-deep); color: #fff; }
.btn-primary:hover { background: #963F50; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--brand-bg); }
.text-link { font-size: 15px; font-weight: 700; color: var(--text2); text-decoration: underline; text-decoration-color: var(--line-strong); padding: 12px 4px; }
.text-link:hover { color: var(--brand-deep); }

/* 로고: 로즈 세로선 + 이름 + 영문 */
.logo { display: inline-grid; grid-template-columns: auto; padding-left: 12px; border-left: 4px solid var(--brand-strong); text-decoration: none; line-height: 1.15; }
.logo-name { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.logo-sub { font-size: 10px; font-weight: 600; letter-spacing: .18em; color: var(--text3); }

/* 헤더 */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 32px; height: 68px; display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--text2); text-decoration: none; padding: 10px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.lang-switcher { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 10px; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--text2); border-radius: 14px; }
.lang-btn:hover { background: var(--band); }
.lang-caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lang-dropdown { display: none; position: absolute; right: 0; top: 46px; width: 140px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 12px 28px rgba(25, 31, 40, .08); }
.lang-switcher.open .lang-dropdown { display: block; }
.lang-option { display: block; width: 100%; border: 0; background: #fff; border-radius: 10px; padding: 11px 12px; text-align: left; font-size: 14px; }
.lang-option.active, .lang-option:hover { background: var(--brand-bg); font-weight: 700; }

/* 공통 머리 */
.pill { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand-deep); background: var(--brand-bg); padding: 6px 14px; border-radius: 999px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--brand-deep); margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.35; letter-spacing: -.035em; }
.sec-sub { font-size: 16px; line-height: 1.7; color: var(--text2); margin-top: 10px; }
.sec-sub a { color: var(--brand-deep); font-weight: 700; }
.capture-note { font-size: 12px; color: var(--text3); margin-top: 12px; text-align: center; }

/* 히어로 */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero-lead { margin-top: 22px; font-size: 16px; line-height: 1.65; color: var(--text2); }
.hero-title { margin-top: 10px; font-size: clamp(36px, 4.6vw, 54px); font-weight: 800; line-height: 1.22; letter-spacing: -.04em; }
.hero-title em { font-style: normal; color: var(--brand-strong); }
.hero-desc { margin-top: 18px; font-size: 17px; line-height: 1.7; color: var(--text2); max-width: 520px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 14px 14px 14px 0; }
.facts > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts dt { font-size: 15px; font-weight: 700; }
.facts dd { font-size: 13px; color: var(--text3); margin-top: 2px; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.fine { margin-top: 10px; font-size: 13px; color: var(--text3); }

.hero-visual { margin: 0; }
.hero-card { position: relative; height: 540px; border-radius: 28px; background: var(--brand-bg); overflow: hidden; }
.hero-card img { position: absolute; left: 50%; top: 44px; width: 270px; transform: translateX(-50%); border: 8px solid var(--ink); border-radius: 40px; background: #fff; box-shadow: 0 24px 48px -24px rgba(80, 30, 45, .35); }

/* 기능 탭 */
.features { padding: 64px 0; }
.features .sec-head { margin-bottom: 28px; display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: baseline; }
.features .kicker { grid-column: 1 / -1; }
.features .sec-sub { margin-top: 0; }
.ft { display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.ft-tabs { display: flex; flex-direction: column; gap: 2px; }
.ft-group { font-size: 12px; font-weight: 700; color: var(--text3); letter-spacing: .02em; padding: 0 14px 6px; }
.ft-group:not(:first-child) { margin-top: 18px; }
.ft-tabs [role="tab"] { text-align: left; border: 0; background: transparent; font-size: 16px; font-weight: 600; color: var(--text2); padding: 11px 14px; border-radius: 14px; border-left: 3px solid transparent; }
.ft-tabs [role="tab"]:hover { background: #fff; color: var(--ink); }
.ft-tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--brand-deep); font-weight: 800; border-left-color: var(--brand-strong); box-shadow: 0 1px 0 var(--line); }

.ft-panel { padding-top: 8px; }
.ft-panel h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.35; letter-spacing: -.03em; }
.ft-panel > p:first-of-type { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--text2); }
.ft-steps { counter-reset: s; margin-top: 24px; border-top: 1px solid var(--line); }
.ft-steps li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.ft-steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-bg); color: var(--brand-deep); font-size: 13px; font-weight: 800; display: inline-grid; place-items: center; transform: translateY(-1px); }
.ft-points { margin-top: 24px; border-top: 1px solid var(--line); }
.ft-points li { padding: 14px 0 14px 18px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; position: relative; }
.ft-points li::before { content: ''; position: absolute; left: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--brand-strong); }
.ft-asks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ft-asks li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; font-size: 15px; font-weight: 600; }
.ft-note { margin-top: 16px; font-size: 13px; line-height: 1.65; color: var(--text3); }

.ft-stage-wrap { margin: 0; }
.ft-stage { position: relative; width: 100%; aspect-ratio: 640 / 1440; }
.ft-stage iframe { position: absolute; left: 0; top: 0; width: 640px; height: 1440px; border: 0; transform-origin: 0 0; background: transparent; opacity: 0; transition: opacity .2s; }
/* 시연 페이지가 embed 모드로 바뀌기 전 화면(릴스 원본)이 잠깐 비치지 않게, 다 뜬 뒤에 보인다 */
.ft-stage iframe.ready { opacity: 1; }
/* 시연 iframe 안의 폰(640×1300)과 같은 자리·크기로 맞춘다 */
.ft-shot { position: absolute; left: 0; top: 0; width: 100%; height: 90.3%; border: 9px solid #16181D; border-radius: 14% / 7%; overflow: hidden; background: #fff; }
.ft-shot[hidden] { display: none; }
.ft-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* 요금 */
.pricing { padding: 64px 0; }
.pr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.pr-grid .sec-head { padding-right: 16px; }
.pr-note { margin-top: 16px; font-size: 13px; line-height: 1.7; color: var(--text3); }
.pr-note a { color: var(--brand-deep); font-weight: 700; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 26px 26px; }
.plan-pro { border: 2px solid var(--brand-strong); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.plan-name { font-size: 15px; font-weight: 700; color: var(--text2); }
.plan-pro .plan-name { color: var(--brand-deep); }
.plan > .plan-name { min-height: 36px; display: flex; align-items: center; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.plan-price b { font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.plan-price span { font-size: 14px; color: var(--text3); }
.save { font-style: normal; font-size: 12px; font-weight: 700; color: var(--brand-deep); background: var(--brand-bg); padding: 3px 10px; border-radius: 999px; }
.plan-desc { font-size: 14px; color: var(--text2); margin-top: 2px; }
.plan-list { margin: 18px 0 24px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; flex: 1; }
.plan-list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.55; }
.plan-list li::before { content: ''; flex: none; width: 14px; height: 14px; margin-top: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BC6675' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.cycle { display: inline-flex; padding: 3px; background: var(--band); border: 1px solid var(--line); border-radius: 14px; }
.cycle button { border: 0; background: transparent; font-size: 14px; font-weight: 700; color: var(--text2); min-height: 44px; padding: 0 16px; border-radius: 11px; }
.cycle button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(25, 31, 40, .12); }
.plan-pro[data-cycle="month"] .only-year,
.plan-pro[data-cycle="year"] .only-month { display: none; }

/* FAQ */
.faq { padding: 64px 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: transparent; border: 0; text-align: left; font-size: 16px; font-weight: 700; padding: 18px 2px; line-height: 1.5; }
.faq-icon { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--text3); stroke-width: 2.2; stroke-linecap: round; transition: transform .2s; }
.faq-a { display: none; padding: 0 2px 20px; font-size: 15px; line-height: 1.8; color: var(--text2); }
.faq-a a { color: var(--brand-deep); font-weight: 700; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* 믿고 쓰는 이유 */
.trust { padding: 56px 0 8px; }
.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line-strong); }
.trust-list li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.trust-list b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.trust-list span { font-size: 14.5px; line-height: 1.7; color: var(--text2); }
.trust-list a { color: var(--brand-deep); font-weight: 700; }

/* 출시 알림 신청 */
.notify { padding: 56px 0; background: var(--brand-bg); scroll-margin-top: 68px; }
.notify-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.notify h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.035em; line-height: 1.35; }
.notify h2 + p { margin-top: 8px; font-size: 16px; color: var(--text2); }
.notify-form { display: grid; gap: 10px; min-width: 0; }
.nf-label { font-size: 14px; font-weight: 700; }
.nf-row { display: flex; gap: 8px; }
.nf-row input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.nf-row input:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(169, 79, 96, .18); }
.nf-row .btn { height: 52px; padding: 0 22px; font-size: 15px; }
.nf-row .btn:disabled { opacity: .6; cursor: progress; }
.nf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 600; cursor: pointer; padding: 6px 0; min-height: 44px; }
.nf-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand-deep); }
.nf-terms { font-size: 12.5px; line-height: 1.7; color: var(--text3); }
.nf-terms a { color: var(--brand-deep); font-weight: 700; }
.nf-status { min-height: 1.6em; font-size: 14.5px; font-weight: 700; }
.nf-status[data-kind="ok"] { color: #157347; }
.nf-status[data-kind="err"] { color: #C8322F; }
.nf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 푸터 */
.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a { min-height: 44px; display: flex; align-items: center; font-size: 13px; color: var(--text2); text-decoration: none; }
.footer-links a:first-child { font-weight: 700; color: var(--ink); }
.footer-links a:hover { text-decoration: underline; }
.footer-biz { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 16px; font-size: 12px; line-height: 1.8; color: var(--text3); }
.footer-biz b { font-weight: 600; color: var(--text2); margin-right: 4px; }
.footer-biz a { color: var(--text3); }
.footer-copy { margin-top: 12px; font-size: 12px; color: var(--text3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-icon { transition: none; }
}

/* 태블릿: 기능 탭이 위로 올라가 가로로 스크롤된다 */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { height: 440px; max-width: 560px; margin: 0 auto; }
  .ft { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
  .ft-tabs { grid-column: 1 / -1; flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -32px; padding: 0 32px 4px; }
  .ft-tabs::-webkit-scrollbar { display: none; }
  .ft-group { display: none; }
  .ft-tabs [role="tab"] { flex: none; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 9px 16px; font-size: 15px; }
  .ft-tabs [role="tab"][aria-selected="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; box-shadow: none; }
  .pr-grid { grid-template-columns: 1fr 1fr; }
  .pr-grid .sec-head { grid-column: 1 / -1; padding-right: 0; max-width: 640px; }
  .faq-grid, .trust-grid, .notify-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* 휴대폰 */
@media (max-width: 640px) {
  .wrap, .nav-inner { padding: 0 16px; }
  .nav-inner { height: 60px; gap: 8px; }
  .nav .logo-sub { display: none; }
  .nav .btn-sm { padding: 0 12px; }
  .hero { padding: 32px 0 48px; }
  .hero-desc { font-size: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 12px 12px 12px 0; }
  .facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-actions .text-link { margin: 0 auto; }
  .hero-card { height: 380px; border-radius: 24px; }
  .hero-card img { width: 220px; top: 32px; border-width: 7px; border-radius: 34px; }
  .features, .pricing, .faq { padding: 48px 0; }
  .ft { grid-template-columns: 1fr; gap: 24px; }
  .features .sec-head { display: block; }
  .features .sec-sub { margin-top: 8px; }
  .ft-tabs { margin: 0 -16px; padding: 0 16px 4px; }
  .ft-stage-wrap { width: 230px; margin: 0 auto; }
  /* 좁은 화면에선 시연 화면 아래에 단계 자막이 이미 나오므로 목록은 뺀다 */
  .ft-steps { display: none; }
  .pr-grid { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr; }
  /* 휴대폰: 이메일 → 동의 → 버튼 순서로(동의 전에 버튼부터 누르지 않게) */
  .notify-form { display: flex; flex-direction: column; gap: 10px; }
  .nf-row { display: contents; }
  .nf-row input { order: 1; flex: none; width: 100%; }
  .nf-consent { order: 2; }
  .nf-row .btn { order: 3; width: 100%; }
  .nf-terms { order: 4; }
  .nf-status { order: 5; }
}
