/* ───────── 폰트 ───────── */
@font-face { font-family: 'GabiaSai'; src: url('assets/fonts/GabiaSai.woff2?v=6') format('woff2'); font-display: swap; }
@font-face { font-family: 'SUITE'; font-weight: 400; src: url('assets/fonts/SUITE-Regular.woff2?v=6') format('woff2'); font-display: swap; }
@font-face { font-family: 'SUITE'; font-weight: 500; src: url('assets/fonts/SUITE-Medium.woff2?v=6') format('woff2'); font-display: swap; }
@font-face { font-family: 'SUITE'; font-weight: 700; src: url('assets/fonts/SUITE-Bold.woff2?v=6') format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 500; src: url('assets/fonts/Poppins-Medium.woff2?v=6') format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 600; src: url('assets/fonts/Poppins-SemiBold.woff2?v=6') format('woff2'); font-display: swap; }

/* ───────── 토큰 (Figma A안 기준) ───────── */
:root {
  --ink: #070A0C;
  --primary: #F1FF84;
  --secondary: #C2FF64;
  --point: #A7D7EE;
  --light: #E5EED1;
  --paper: #F7F8F1;
  --muted: #5B635C;
  --soft: #B9C0B4;
  --line: #CBD3BC;

  --f-display: 'GabiaSai', 'SUITE', sans-serif;
  --f-body: 'SUITE', -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --f-en: 'Poppins', 'SUITE', sans-serif;

  --gutter: clamp(20px, 3.9vw, 56px);   /* 모바일 20 → 데스크톱 56 */
  --sec: clamp(56px, 8.3vw, 120px);     /* 섹션 위아래 여백 */
  --max: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body); color: var(--ink); background: var(--paper);
  line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
figure { overflow: hidden; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }

/* 화면 크기별 보이기 */
.only-m, .only-m-block { display: none; }
@media (max-width: 959px) {
  .only-d, .only-d-block { display: none !important; }
  .only-m { display: inline; } .only-m-block { display: block; }
}

/* 로고·아이콘 (SVG 마스크 → 색 자유) */
.logo, .ico {
  display: inline-block; background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
}
.logo--en   { --src: url('assets/icons/LOGO-EN-horizontal.svg'); aspect-ratio: 320.31 / 79.37; width: 120px; }
.logo--kr-v { --src: url('assets/icons/LOGO-KR-vertical.svg'); aspect-ratio: 96.38 / 229.61; width: 40px; }
.ico { aspect-ratio: 1; width: 56px; }
.ico-a { --src: url('assets/icons/icon-a.svg'); } .ico-b { --src: url('assets/icons/icon-b.svg'); }
.ico-c { --src: url('assets/icons/icon-c.svg'); } .ico-d { --src: url('assets/icons/icon-d.svg'); }
.ico-e { --src: url('assets/icons/icon-e.svg'); } .ico-f { --src: url('assets/icons/icon-f.svg'); }

/* ───────── 글자 ───────── */
.label { font-family: var(--f-en); font-weight: 500; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.display { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 3.9vw, 56px); line-height: 1.2; letter-spacing: -.02em; }
.title { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.35vw, 48px); line-height: 1.25; }
.lead, .body { font-size: clamp(15px, 1.1vw, 16px); line-height: 1.75; color: var(--muted); }
.body { max-width: 520px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 500; transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.link { font-size: 14px; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ───────── 공지·메뉴 ───────── */
.announce { background: var(--ink); color: var(--paper); text-align: center; font-size: 12px; letter-spacing: .02em; padding: 10px 16px; }
/* backdrop-filter 를 쓰면 모바일 메뉴(fixed)가 메뉴 바 안에 갇혀서 단색 배경 사용 */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav__in {
  max-width: var(--max); margin: 0 auto; height: 64px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav__logo { display: flex; justify-self: center; }
.nav__menu, .nav__util { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav__util { justify-self: end; gap: 28px; }
.nav__menu a:hover, .nav__util a:hover { opacity: .6; }
.nav__toggle { display: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 6px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .25s; }
.nav[data-open="true"] .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 960px) { .nav__in { height: 72px; } .logo--en { width: 120px; } }
@media (max-width: 959px) {
  .logo--en { width: 100px; }
  .nav__toggle { display: flex; }
  .nav__util { font-size: 13px; }
  .nav__menu {
    position: fixed; inset: var(--nav-bottom, 64px) 0 0 0; z-index: 40; background: var(--paper);
    flex-direction: column; gap: 0; padding: 8px var(--gutter);
    font-family: var(--f-display); font-size: 28px; font-weight: 400;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility 0s linear .25s;
  }
  .nav__menu a { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav[data-open="true"] .nav__menu { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
}

/* ───────── 첫 화면 ───────── */
.hero { display: grid; background: var(--light); }
.hero__media { aspect-ratio: 1; background: var(--paper); }
.hero__media img { object-position: 50% 60%; }
.hero__copy { padding: 36px var(--gutter) 48px; display: flex; flex-direction: column; gap: 20px; }
.hero__cta { display: flex; align-items: center; gap: 24px; margin-top: 8px; }
@media (max-width: 959px) { .hero__cta .btn { flex: 1; padding: 16px; font-size: 15px; } }
@media (min-width: 960px) {
  .hero { grid-template-columns: 53fr 47fr; }
  .hero__media { aspect-ratio: auto; height: min(820px, calc(100svh - 110px)); min-height: 560px; }
  .hero__copy { justify-content: center; gap: 28px; padding: 64px clamp(48px, 6.7vw, 96px); }
  .hero__copy .lead { max-width: 440px; }
}

/* ───────── 특징 ───────── */
.values { border-bottom: 1px solid var(--line); }
.values__in { display: grid; padding-top: 28px; padding-bottom: 28px; }
.values__in > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.values__in b { font-weight: 700; }
.values__in span { color: var(--muted); font-size: 13px; text-align: right; }
@media (min-width: 960px) {
  .values__in { grid-template-columns: repeat(3, 1fr); padding-top: 40px; padding-bottom: 40px; }
  .values__in > div { flex-direction: column; gap: 6px; padding: 0; border: 0; font-size: 15px; }
  .values__in span { text-align: left; font-size: 14px; }
}

/* ───────── 섹션 공통 ───────── */
.section { padding: var(--sec) 0; scroll-margin-top: 64px; }
.section--light { background: var(--light); }
.section--tight-top { padding-top: 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: clamp(24px, 3.3vw, 48px); }
.head .label { margin-bottom: 12px; }

/* 티밤이란 */
.about { display: grid; gap: 96px; align-items: center; }
.about__copy { display: flex; flex-direction: column; gap: 20px; }
.about__media { aspect-ratio: 350 / 400; }
.facts { margin-top: 8px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; }
.facts dt { font-weight: 700; }
.facts dd { color: var(--muted); text-align: right; }
@media (min-width: 960px) {
  .about { grid-template-columns: 1fr 560px; }
  .about__copy { gap: 28px; }
  .about__media { aspect-ratio: 560 / 700; }
}

/* 라인업: 모바일 가로 스크롤 → 데스크톱 4열 */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 0 var(--gutter) 4px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.product { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.product__photo { position: relative; aspect-ratio: 316 / 400; }
.product__photo img { transition: transform .5s; }
.product:hover .product__photo img { transform: scale(1.04); }
.product__shape {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 99px;
  background: rgba(247, 248, 241, .9); font-size: 12px; font-weight: 700;
}
.product__ball { aspect-ratio: 316 / 400; display: grid; place-items: center; }
.product__ball img { width: 78%; height: auto; aspect-ratio: 1; transition: transform .4s; }
.product:hover .product__ball img { transform: rotate(-6deg) scale(1.03); }
.product__ball--rose { background: #FCE9EE; } .product__ball--blue { background: #E8EAFB; }
.product__ball--chamomile { background: #FBF6DC; } .product__ball--chai { background: #F4E9DF; }
.product__meta { display: flex; justify-content: space-between; gap: 8px; }
.product h3 { font-size: 15px; font-weight: 700; }
.product p { font-size: 13px; color: var(--muted); }
.product b { font-family: var(--f-en); font-weight: 500; font-size: 14px; white-space: nowrap; }
@media (min-width: 960px) {
  .rail { max-width: var(--max); margin: 0 auto; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 24px; overflow: visible; }
  .product { gap: 16px; }
  .product h3 { font-size: 16px; }
  .product b { font-size: 15px; }
}

/* 티밤은 이렇게 변해요 */
.head__note { font-size: 15px; font-weight: 500; color: var(--muted); }
.how { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
.how figure { background: var(--paper); display: grid; place-items: center; padding: 12px; margin-bottom: 12px; }
.how img { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; }
.how h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.how h3 span { font-family: var(--f-en); font-weight: 500; font-size: 12px; }
.how p { margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--muted); }
@media (max-width: 959px) { .how p br { display: none; } }
@media (min-width: 960px) {
  .how { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .how figure { padding: 24px; margin-bottom: 16px; }
  .how h3 { font-size: 22px; gap: 12px; } .how h3 span { font-size: 14px; }
  .how p { margin-top: 8px; font-size: 15px; line-height: 1.65; }
}

/* 즐기는 법 (예전 섹션, 지금은 쓰지 않음) */
.steps { display: grid; margin-top: 24px; }
.steps li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--ink); }
.steps .no { font-family: var(--f-en); font-weight: 500; font-size: 13px; }
.steps .ico { width: 44px; order: 3; }
.steps h3 { font-size: 17px; font-weight: 700; }
.steps p { font-size: 14px; color: var(--muted); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
  .steps li { grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 20px; padding: 28px 0 0; }
  .steps .ico { width: 56px; order: 0; justify-self: end; }
  .steps li > div { grid-column: 1 / -1; }
  .steps h3 { font-size: 22px; margin-bottom: 8px; }
  .steps p { font-size: 15px; }
}

/* 브랜드 이야기 */
.story { display: grid; background: var(--ink); color: var(--paper); scroll-margin-top: 64px; }
.story__media { order: -1; aspect-ratio: 390 / 300; }
.story__copy { padding: 24px var(--gutter) 48px; display: flex; flex-direction: column; gap: 16px; }
.story blockquote { font-family: var(--f-display); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.4; }
.story p { font-size: clamp(14px, 1.05vw, 15px); line-height: 1.75; color: var(--soft); }
@media (min-width: 960px) {
  .story { grid-template-columns: 1fr 1fr; }
  .story__media { order: 0; aspect-ratio: 720 / 640; }
  .story__copy { justify-content: center; gap: 32px; padding: 64px clamp(48px, 6.7vw, 96px); }
  .logo--kr-v { width: 48px; }
}

/* 선물 세트 */
.gift { display: grid; gap: 20px; }
.gift__visual { background: var(--light); display: grid; place-items: center; padding: 40px; }
.gift__visual .ico { width: min(180px, 46vw); }
.gift__copy { display: contents; }
.gift__copy .label { order: -3; } .gift__copy .title { order: -2; } .gift__visual { order: -1; }
.gift__copy .body { display: none; }
.opts li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--ink); }
.opts b { display: block; font-size: 15px; }
.opts span { display: none; font-size: 13px; color: var(--muted); }
.opts em { font-style: normal; font-family: var(--f-en); font-weight: 500; font-size: 15px; white-space: nowrap; }
.gift .btn { width: 100%; }
@media (min-width: 960px) {
  .gift { grid-template-columns: 560px 1fr; gap: 96px; align-items: center; }
  .gift__visual { order: 0; aspect-ratio: 1; }
  .gift__visual .ico { width: 300px; }
  .gift__copy { display: flex; flex-direction: column; gap: 28px; }
  .gift__copy .label, .gift__copy .title { order: 0; }
  .gift__copy .body { display: block; max-width: 480px; }
  .opts li { padding: 20px 0; }
  .opts b { font-size: 16px; } .opts span { display: block; margin-top: 4px; }
  .opts em { font-size: 16px; }
  .gift .btn { width: auto; align-self: flex-start; }
}

/* FAQ */
.faq { display: grid; gap: 24px; }
.faq__head { display: flex; flex-direction: column; gap: 20px; }
.faq__head .label { display: none; }
.faq__head .ico { width: 96px; }
.faq__list details { border-top: 1px solid var(--ink); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-size: 15px; font-weight: 500;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: '+'; font-family: var(--f-en); font-size: 20px; line-height: 1; }
.faq__list details[open] summary::after { content: '–'; }
.faq__list p { padding: 0 32px 18px 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
@media (min-width: 960px) {
  .faq { grid-template-columns: 420px 1fr; gap: 96px; align-items: start; }
  .faq__head .label { display: block; }
  .faq__list summary { padding: 24px 0; font-size: 18px; }
  .faq__list summary::after { font-size: 24px; }
  .faq__list p { padding-bottom: 24px; font-size: 15px; max-width: 640px; }
}

/* 하단 */
.footer { padding: 48px 0 32px; }
.footer__top { display: flex; flex-direction: column; gap: 28px; }
.footer__slogan { font-family: var(--f-display); font-size: clamp(22px, 1.95vw, 28px); line-height: 1.4; }
.footer__cols { display: flex; gap: 40px; }
.footer__cols div { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer__cols b { font-family: var(--f-en); font-weight: 600; font-size: 11px; letter-spacing: .1em; }
.footer__cols a { color: var(--muted); }
.footer__cols a:hover { color: var(--ink); }
.footer__legal { margin-top: 28px; font-size: 11px; color: var(--muted); }
@media (min-width: 960px) {
  .footer { padding: 72px 0 40px; }
  .footer__top { flex-direction: row; justify-content: space-between; }
  .footer__cols { gap: 72px; }
  .footer__cols div { gap: 10px; font-size: 14px; }
  .footer__cols b { font-size: 12px; }
  .footer__legal { margin-top: 56px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* 문의하기 */
.contact { display: grid; gap: 28px; }
.contact__head { display: flex; flex-direction: column; gap: 20px; }
.contact__list li a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; border-top: 1px solid var(--ink); transition: padding .2s;
}
.contact__list li:last-child a { border-bottom: 1px solid var(--ink); }
.contact__list li a:hover { padding-left: 8px; }
.contact__list b { display: block; font-size: 16px; }
.contact__list span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.contact__list em { font-style: normal; font-size: 14px; font-weight: 500; white-space: nowrap; }
@media (min-width: 960px) {
  .contact { grid-template-columns: 500px 1fr; gap: 96px; align-items: center; }
  .contact__list li a { padding: 28px 0; }
  .contact__list b { font-size: 18px; }
  .contact__list span { font-size: 14px; }
  .contact__list em { font-size: 15px; }
}
.opts em .link { font-family: var(--f-body); }
.btn--sm { padding: 10px 18px; font-size: 13px; }
@media (max-width: 959px) { .nav__util .btn--sm { padding: 8px 14px; font-size: 12px; } }
.footer { border-top: 1px solid var(--line); }
/* 주소가 아직 없는 링크: 눌러도 이동하지 않으므로 손가락 커서·움직임 없앰 */
a[data-todo] { cursor: default; }
.contact__list li a[data-todo]:hover { padding-left: 0; }
/* 한글 가로 로고 (하단) */
.logo--kr-h { --src: url('assets/icons/LOGO-KR-horizontal.svg'); aspect-ratio: 235.28 / 79.37; width: 132px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
