/* oraefit — homepage styles (based on oraefit Design System tokens) */
:root {
  --navy-900: #001a47;
  --navy-800: #001f55;
  --navy-700: #002b74;
  --navy-600: #1b3e84;
  --navy-050: #edf1f8;
  --navy-pack: #152966;
  --white: #ffffff;
  --grey-050: #f9f9f6;
  --grey-200: #e5e5e5;
  --grey-300: #d6d6d6;
  --grey-400: #adadad;
  --grey-600: #6b6b6b;
  --grey-700: #4a4a4a;
  --grey-800: #2b2b2b;
  --grey-900: #111111;
  --cream-100: #fbf6ef;
  --cream-200: #f9e8d7;
  --sand-400: #d9bfa3;
  --espresso-700: #5a3a22;
  --on-dark-muted: rgba(255, 255, 255, .78);
  --line-on-dark: rgba(255, 255, 255, .28);
  --shadow-card: 0 2px 8px rgba(0, 26, 71, .06);
  --ease: cubic-bezier(.2, .6, .25, 1);
  --font: "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--grey-900);
  background: var(--white);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--navy-700); }
a:hover { color: var(--navy-600); }
:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 2px; }
.on-dark :focus-visible, .bg-navy :focus-visible, .bg-pack :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy-700); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }

/* ---------- Type ---------- */
h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.22; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.32; font-weight: 800; letter-spacing: -0.03em; }
h2 sup { font-size: .55em; }
.h2-sm { font-size: clamp(28px, 3vw, 38px); line-height: 1.35; }
h3 { font-size: 22px; line-height: 1.4; font-weight: 800; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--navy-700); letter-spacing: .02em; }
.eyebrow.caps { letter-spacing: .06em; }
.eyebrow.on-dark { color: rgba(255, 255, 255, .72); }
.body { font-size: 17px; line-height: 1.75; color: var(--grey-700); }
.body.on-dark { color: var(--on-dark-muted); font-size: 16px; }
.footnote { font-size: 13px; line-height: 1.6; color: var(--grey-600); }
.footnote.brown { color: var(--espresso-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 4px; font-family: inherit; font-weight: 800; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn:active { transform: scale(.985); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 700; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-xl { min-height: 56px; padding: 0 24px; font-size: 17px; }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-600); color: #fff; }
.btn-navy:active { background: var(--navy-800); }
.btn-white { background: #fff; color: var(--navy-700); }
.btn-white:hover { background: var(--navy-050); color: var(--navy-700); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); font-weight: 700; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-outline { background: #fff; color: var(--navy-700); border-color: var(--navy-700); font-weight: 700; font-size: 16px; }
.btn-outline:hover { background: var(--navy-050); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.grow { flex: 1 1 240px; }

.badge { display: inline-block; border-radius: 999px; font-weight: 700; }
.badge-glass { align-self: flex-start; padding: 6px 14px; background: rgba(255, 255, 255, .12); font-size: 13px; letter-spacing: .02em; }
.badge-navy { padding: 4px 12px; background: var(--navy-700); color: #fff; font-size: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px;
  min-height: 40px; padding: 8px 16px; background: var(--navy-900); color: #fff;
  font-size: 14px; font-weight: 500; text-align: center; text-decoration: none;
}
.topbar:hover { color: #fff; background: var(--navy-800); }
.topbar-cta { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.topbar:focus-visible { outline-color: #fff; outline-offset: -4px; }
@media (max-width: 760px) { .topbar { font-size: 13px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--grey-300); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: 26px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--grey-800); text-decoration: none; padding: 12px 0; }
.nav a:hover { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .nav { order: 3; width: 100%; gap: 0 18px; font-size: 14px; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy-pack); color: #fff; }
.hero-inner { max-width: 1440px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: stretch; }
.hero-copy {
  flex: 1 1 480px; min-width: 0;
  padding: 96px 40px 88px max(24px, calc((100% - 1200px) / 2 + 24px));
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.lead { max-width: 480px; font-size: 18px; line-height: 1.7; color: var(--on-dark-muted); }
.hero-note { font-size: 14px; color: rgba(255, 255, 255, .72); }
.hero-media { flex: 1 1 520px; min-width: 0; }
.hero-media img { width: 100%; height: 100%; min-height: 560px; max-height: 720px; object-fit: cover; }
@media (max-width: 760px) {
  .hero-copy { padding: 64px 24px 56px; }
  .hero-media img { min-height: 360px; }
}

/* ---------- Stats ---------- */
.stats { background: var(--grey-200); padding: 56px 0; }
.stats .wrap { display: flex; flex-direction: column; gap: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
@media (max-width: 760px) { .stat-grid { gap: 10px; } .stat-num b { font-size: 44px; } }
.stat-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow-card); padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stat-num { color: var(--navy-700); font-weight: 800; letter-spacing: -0.03em; font-size: 18px; }
.stat-num b { font-size: 52px; line-height: 1.1; margin-right: 2px; }
.stat-num.on-dark { color: #fff; }
.stat-sub { font-size: 13px; color: var(--grey-600); }
.stats .footnote { color: var(--grey-700); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
@media (max-width: 760px) { .section { padding: 72px 0; } }
.bg-cream { background: var(--cream-100); }
.bg-navy { background: var(--navy-700); color: #fff; }
.bg-sand { background: var(--cream-200); }
.bg-soft { background: var(--grey-050); }
.bg-pack { background: var(--navy-pack); color: #fff; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split-top { align-items: flex-start; }
.split-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split-media { flex: 1 1 460px; min-width: 0; }
.photo { width: 100%; height: 560px; object-fit: cover; }
.photo-tall { height: 640px; }
.photo-recipe { height: 600px; object-position: 70% 50%; }
@media (max-width: 760px) { .photo, .photo-tall, .photo-recipe { height: 380px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--navy-050); color: var(--navy-700); font-size: 14px; font-weight: 700; }

/* ---------- Product ---------- */
.options { margin: 0; padding: 0; border: 0; }
.options legend { padding: 0 0 10px; font-size: 14px; font-weight: 700; }
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.option {
  min-height: 88px; padding: 14px 10px; border-radius: 8px; font-family: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #fff; color: var(--grey-900); border: 1px solid var(--sand-400);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.option b { font-size: 16px; }
.option span { font-size: 13px; opacity: .85; }
.option:hover { border-color: var(--navy-700); }
.option[aria-pressed="true"] { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 20px 0; border-top: 1px solid var(--sand-400); border-bottom: 1px solid var(--sand-400); }
.price-off { font-size: 18px; font-weight: 800; color: var(--navy-700); }
.price-now { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.price-list { font-size: 15px; color: var(--grey-600); }
.price-per { font-size: 14px; color: var(--grey-700); margin-left: auto; }
.spec { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px 16px; font-size: 15px; line-height: 1.6; }
.spec dt { color: var(--grey-600); }
.spec dd { font-weight: 500; }

/* ---------- Points ---------- */
.bg-navy h2 { color: #fff; }
.band-photo { height: 420px; }
@media (max-width: 760px) { .band-photo { height: 280px; } }
.point-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.point { background: var(--navy-600); border-radius: 8px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.point-no { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .72); }
.point hr { border: 0; height: 1px; background: var(--line-on-dark); margin: 0; width: 100%; }
.point p:last-child { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .8); }

/* ---------- Equivalence ---------- */
.equiv { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 32px; }
.equiv-card { flex: 0 1 260px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-card); padding: 32px 24px; display: flex; flex-direction: column; gap: 6px; }
.equiv-card > p:first-child { font-size: 14px; color: var(--grey-700); }
.equiv-main { background: var(--navy-700); border-radius: 8px; box-shadow: none; }
.equiv-main > p:first-child { color: var(--on-dark-muted); }
.equiv-sign { font-size: 36px; font-weight: 800; color: var(--espresso-700); }

/* ---------- Recipe ---------- */
.tabs { display: flex; gap: 8px; }
.tabs button {
  min-height: 48px; min-width: 120px; padding: 0 20px; border-radius: 4px;
  border: 1px solid var(--navy-700); background: #fff; color: var(--navy-700);
  font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.tabs button:hover { background: var(--navy-050); }
.tabs button[aria-selected="true"] { background: var(--navy-700); color: #fff; }
.recipe { display: flex; flex-direction: column; gap: 20px; }
.recipe[hidden] { display: none; }
.steps li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--grey-300); }
.steps span { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: var(--navy-700); padding-top: 3px; }
.steps p { font-size: 17px; line-height: 1.6; }
.tip { padding: 16px 20px; background: var(--navy-050); border-radius: 8px; font-size: 14px; line-height: 1.65; color: var(--grey-800); }

.photo-band { background: var(--cream-200); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-band img { width: 100%; height: 480px; object-fit: cover; }
.photo-band .band-tote { object-position: 50% 42%; }
.photo-band .band-friends { object-position: 50% 30%; }
@media (max-width: 760px) {
  .photo-band { grid-template-columns: minmax(0, 1fr); }
  .photo-band img { height: 260px; }
}
.photo-story { object-position: 40% 50%; }

/* ---------- FAQ ---------- */
.faq-layout { display: flex; flex-wrap: wrap; gap: 48px; }
.faq-head { flex: 1 1 320px; min-width: 0; }
.faq-list { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--grey-900); }
.faq-list details { border-bottom: 1px solid var(--grey-300); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 0; font-size: 17px; font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.plus { font-size: 24px; font-weight: 400; color: var(--navy-700); transition: transform 200ms var(--ease); }
.faq-list details[open] .plus { transform: rotate(45deg); }
.faq-list details p { padding: 0 40px 22px 0; font-size: 15px; line-height: 1.75; color: var(--grey-700); }

/* ---------- Contact ---------- */
.bg-pack h2 { color: #fff; }
.b2b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; padding-top: 8px; }
.b2b-grid li { border: 1px solid var(--line-on-dark); border-radius: 8px; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.b2b-grid b { font-size: 15px; }
.b2b-grid span { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.contact-links { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; font-size: 16px; }
.contact-links a { color: #fff; font-weight: 700; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; align-self: flex-start; }
.form { flex: 1 1 460px; min-width: 0; background: #fff; color: var(--grey-900); border-radius: 12px; padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.form h3 { font-size: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 0 12px; border: 1px solid var(--grey-400); border-radius: 4px;
  font-family: inherit; font-size: 15px; background: #fff; color: var(--grey-900);
}
.field textarea { padding: 12px; line-height: 1.6; resize: vertical; }
.form-error { font-size: 14px; font-weight: 700; color: var(--navy-700); }
.form .footnote { font-size: 12px; }
@media (max-width: 760px) { .form { padding: 28px 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding: 56px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-top img { height: 24px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; }
.footer-nav a { color: #fff; text-decoration: none; padding: 12px 0; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer hr { border: 0; height: 1px; background: rgba(255, 255, 255, .2); margin: 0; }
.company { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.7; }
.company .copy { padding-top: 10px; }

/* 제품 사진은 원본 비율(5:4)대로 보여 박스·스틱이 잘리지 않게 */
.photo.photo-product { height: auto; aspect-ratio: 5 / 4; }

/* ---------- Footer links ---------- */
.company a { color: #fff; text-underline-offset: 3px; }

/* ---------- 모바일 다듬기 ---------- */
@media (max-width: 760px) {
  /* 메뉴가 옆으로 더 있다는 것을 알 수 있게 오른쪽 끝을 흐리게 */
  .nav {
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
            mask-image: linear-gradient(to right, #000 85%, transparent);
    padding-right: 24px; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 0; }
  .header-inner { padding-top: 8px; padding-bottom: 0; row-gap: 0; }

  /* 버튼을 화면 너비에 맞춰 같은 폭으로 */
  .hero .btn-row .btn,
  #product .btn-row .btn { flex: 1 1 100%; }

  /* 협업 카드 3개를 한 줄씩 정리 (2+1로 어긋나지 않게) */
  .b2b-grid { grid-template-columns: minmax(0, 1fr); }
  .b2b-grid li { flex-direction: row; align-items: baseline; gap: 12px; padding: 14px 16px; }
  .b2b-grid b { flex: 0 0 72px; }
}

/* ---------- CM송 가사 ---------- */
.lyric-band { background: var(--navy-700); color: #fff; overflow: hidden; padding: 22px 0; }
.lyric-track { display: flex; width: max-content; animation: lyric-scroll 38s linear infinite; }
.lyric-band:hover .lyric-track { animation-play-state: paused; }
.lyric-run { display: flex; flex: 0 0 auto; }
.lyric-run li { display: flex; align-items: center; font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.lyric-run li::after { content: "+"; margin: 0 28px; color: var(--sand-400); font-weight: 800; }
@keyframes lyric-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .lyric-track { animation: none; }
  .lyric-band { overflow-x: auto; }
}
@media (max-width: 760px) { .lyric-band { padding: 16px 0; } .lyric-run li::after { margin: 0 18px; } }

.lyric-quote {
  padding: 2px 0 2px 14px; border-left: 3px solid var(--sand-400);
  font-size: 15px; line-height: 1.7; font-weight: 700; color: var(--grey-600);
}



/* ---------- 레이아웃 보정 (태블릿·모바일) ---------- */
/* 영양 카드: 4칸 → 모바일 2칸 (3+1로 어긋나지 않게) */
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 세 가지 포인트: 3칸 → 좁으면 1칸 (2+1 방지) */
.point-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .point-grid { grid-template-columns: minmax(0, 1fr); } }

/* 협업 카드: 데스크톱·태블릿 3칸 고정 */
@media (min-width: 761px) { .b2b-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 단백질 환산 카드: 한 줄 그리드, 좁으면 오래핏 카드 위 + 두 카드 아래 */
.equiv { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr); max-width: 960px; gap: 16px 24px; }
.equiv-card { flex: none; }
@media (max-width: 899px) {
  .equiv { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; gap: 12px; }
  .equiv-main { grid-column: 1 / -1; }
  .equiv-sign { grid-column: 1 / -1; text-align: center; line-height: 1; transform: rotate(90deg); }
}

/* 태블릿 헤더: 메뉴를 둘째 줄로 내려 버튼이 밀리지 않게 */
@media (min-width: 761px) and (max-width: 1023px) {
  .nav { order: 3; width: 100%; gap: 0 24px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 0; }
  .header-inner { padding-bottom: 0; row-gap: 0; }
}

/* 태블릿 첫 화면: 사진이 화면을 다 덮지 않게 */
@media (min-width: 761px) and (max-width: 1023px) {
  .hero-copy { flex-basis: 100%; padding: 80px 24px 64px; }
  .hero-media { flex-basis: 100%; }
  .hero-media img { min-height: 0; height: 460px; }
  .photo, .photo-recipe { height: 480px; }
}

/* 데스크톱 좁은 폭에서 첫 화면 버튼이 두 줄로 쪼개지지 않게 */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-copy { padding-right: 32px; }
  .hero .btn-lg { padding: 0 20px; }
}
@media (max-width: 480px) {
  .equiv-card { padding: 24px 12px; align-items: center; }
  .equiv .stat-num b { font-size: 36px; }
  .equiv .stat-num { font-size: 15px; }
}

/* 포인트 섹션 원두 사진: 얼굴과 원두가 함께 보이게 */
.points-photo { object-position: 50% 40%; }
@media (max-width: 760px) { .points-photo { object-position: 58% 50%; } }
