/* berryful.net — 캔버스 「A안 확정 · 4종」 시안(홈 웹 · 홈 모바일 390 · 모바일 메뉴)을 옮긴 스타일.
   데스크톱(≥900px) = 「홈 · 웹」, 그 아래 = 「홈 · 모바일 390」.
   라이트/다크: 처음에는 기기 설정, 전환은 그 화면에서만(저장 안 함). */

:root {
  --brand: #43256E;
  --leaf: #1E5B33;
  --bg: #FFFFFF;
  --ink: #14213D;
  --ink-2: #4A5672;
  --line: #E3E6EE;
  --line-2: #C9CEDA;
  --surface: #F4F5F8;
  --arrow-bg: #F4F5F8;
  --card: #FFFFFF;
  --link: #43256E;
  --lang-cur: #EEEAF4;
  --tester-bg: #E4EFE7; --tester-ink: #1E5B33;
  --launch-bg: #EEEAF4; --launch-ink: #43256E;
  --font-body: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-display: Jua, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --font-num: Archivo, Pretendard, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1020; --ink: #EEF1F6; --ink-2: #A9B2C8; --line: #24304D; --line-2: #3A4766;
    --surface: #121A2E; --arrow-bg: #1A2440; --card: #121A2E; --link: #C7B6E6; --lang-cur: #2A1E44;
    --tester-bg: #17301F; --tester-ink: #A4D4B2; --launch-bg: #2A1E44; --launch-ink: #E4DAF5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1020; --ink: #EEF1F6; --ink-2: #A9B2C8; --line: #24304D; --line-2: #3A4766;
  --surface: #121A2E; --arrow-bg: #1A2440; --card: #121A2E; --link: #C7B6E6; --lang-cur: #2A1E44;
  --tester-bg: #17301F; --tester-ink: #A4D4B2; --launch-bg: #2A1E44; --launch-ink: #E4DAF5;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.hd :focus-visible, .ft :focus-visible { outline-color: #FFFFFF; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--bg); color: var(--ink); padding: 8px 14px; border-radius: 14px; }
.skip:focus { top: 8px; }

/* ---------------- Header ---------------- */
.hd { position: sticky; top: 0; z-index: 40; height: 48px; background: #43256E; color: #FFFFFF; }
.hd-bar { height: 48px; display: flex; flex-wrap: nowrap; align-items: center; padding: 0 4px 0 20px; }
.hd-logo { flex: 1 1 auto; display: inline-flex; align-items: center; height: 48px; text-decoration: none; }
.hd-logo img { height: 21px; width: auto; }
.gnb, .hd-lang, .hd-tools .hd-theme { display: none; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: #FFFFFF; cursor: pointer; padding: 0; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}

@media (min-width: 900px) {
  .hd-bar { max-width: 1200px; margin: 0 auto; padding: 0 24px; gap: 28px; }
  .hd-logo { flex: 0 0 auto; }
  .hd-logo img { height: 22px; }
  .gnb { display: flex; flex-wrap: nowrap; justify-content: space-evenly; align-items: stretch; gap: 4px; flex: 1 1 auto; min-width: 0; height: 48px; }
  .gnb-item { flex-shrink: 0; white-space: nowrap; display: flex; align-items: center; padding: 0 8px; height: 48px; font-size: 15px; font-weight: 600; color: #FFFFFF; background: transparent; border: 0; border-top: 2px solid transparent; border-bottom: 2px solid transparent; cursor: pointer; }
  .gnb-item.is-on { border-bottom-color: #FFFFFF; }
  .hd-tools { flex-shrink: 0; display: flex; align-items: center; gap: 4px; }
  .hd-lang { display: block; position: relative; }
  .hd-tools .hd-theme { display: inline-flex; }
  .menu-btn { display: none; }
  .mmenu { display: none !important; }
}
.lang-menu { position: absolute; right: 0; top: 44px; min-width: 148px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 2px; z-index: 50; }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.lang-menu a[aria-current="true"] { background: var(--lang-cur); }
.lang-menu .code { font-family: var(--font-num); }
.lang-menu .name { font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* ---------------- Mobile menu (모바일 메뉴 열림) ---------------- */
.mmenu { position: fixed; left: 0; right: 0; top: 48px; bottom: 0; z-index: 39; background: var(--bg); color: var(--ink); overflow: hidden; }
.mmenu[hidden] { display: none; }
.mmenu-nav { position: relative; z-index: 1; padding: 8px 20px 0; }
.mmenu-list { list-style: none; margin: 0; padding: 0; }
.mmenu-list li { border-bottom: 1px solid var(--line); }
.mmenu-item { display: flex; align-items: center; gap: 12px; width: 100%; height: 60px; padding: 0; background: transparent; border: 0; color: var(--ink); text-align: left; cursor: pointer; }
.mmenu-item .num { width: 20px; font-family: var(--font-num); font-weight: 600; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mmenu-item .label { flex: 1 1 auto; font-size: 18px; font-weight: 700; }
.mmenu-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.round-btn { width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); border: 1.5px solid var(--line-2); color: #43256E; cursor: pointer; padding: 0; }
:root[data-theme="dark"] .round-btn { color: #C7B6E6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .round-btn { color: #C7B6E6; } }
.mlang { display: flex; gap: 6px; }
.mlang[hidden] { display: none; }
.mlang a { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.mlang a[aria-current="true"] { border-color: #43256E; background: #43256E; color: #FFFFFF; }
.fb { position: absolute; right: -110px; bottom: -100px; width: 440px; height: 440px; pointer-events: none; }
.fb img { position: absolute; left: 0; top: 0; width: 440px; height: 440px; opacity: 0; transition: opacity 320ms ease-out; }
.fb img.is-on { opacity: 1; }
.fb .lid { position: absolute; border-radius: 50%; background: #43256E; transform-origin: 50% 0; transform: scaleY(0); transition: transform 80ms ease-in; }
.fb .line { position: absolute; top: 240px; height: 6px; border-radius: 6px; background: #FFFFFF; opacity: 0; }
.fb.blink .lid { transform: scaleY(1); }
.fb.blink .line { opacity: 1; }

/* ---------------- Toast (「곧 열려요」) ---------------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px; max-width: calc(100% - 32px); text-align: center; }
.toast[hidden] { display: none; }

/* ---------------- Hero carousel ---------------- */
.hero { position: relative; overflow: hidden; height: 680px; }
.hero-track { display: flex; height: 100%; transition: transform 560ms cubic-bezier(.2, 0, 0, 1); }
.slide { flex: 0 0 100%; height: 100%; background: var(--s-bg); color: var(--s-ink); }
.s1 { --s-bg: #545A6D; --s-ink: #FFFFFF; --s-btn: #FFFFFF; --s-btn-ink: #14213D; }
.s2 { --s-bg: #637B65; --s-ink: #FFFFFF; --s-btn: #FFFFFF; --s-btn-ink: #14213D; }
.s3 { --s-bg: #646F9B; --s-ink: #FFFFFF; --s-btn: #FFFFFF; --s-btn-ink: #14213D; }
.s4 { --s-bg: #9AB076; --s-ink: #14213D; --s-btn: #14213D; --s-btn-ink: #FFFFFF; }
.s5 { --s-bg: #BB7084; --s-ink: #0A1020; --s-btn: #14213D; --s-btn-ink: #FFFFFF; }
.s6 { --s-bg: #AD5B55; --s-ink: #FFFFFF; --s-btn: #FFFFFF; --s-btn-ink: #14213D; }
.slide-inner { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 24px 0; gap: 14px; }
.slide-text { display: contents; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #FFFFFF; color: #14213D; font-size: 12px; font-weight: 700; }
.slide h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.3; color: var(--s-ink); }
.slide p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--s-ink); }
.cta { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--s-btn); color: var(--s-btn-ink); font-size: 15px; font-weight: 700; border: 0; cursor: pointer; }
.cta svg { width: 14px; height: 14px; }
.phone-area { flex: 1 1 auto; align-self: stretch; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; margin-top: 4px; }
.phone { flex-shrink: 0; width: 190px; height: 400px; border-radius: 33px; background: #0A1020; padding: 5px; }
.phone-screen { position: relative; width: 180px; height: 390px; border-radius: 28px; overflow: hidden; }
.phone-screen img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone-screen .vivid { opacity: 0; transition: opacity 900ms cubic-bezier(.2, 0, 0, 1); }
.slide.is-vivid .phone-screen .vivid { opacity: 1; }
.hero-ctl { display: none; }
.hero-pause-m { position: absolute; right: 8px; top: 8px; }
.hero-dots-m { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; }
.dot { width: 28px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; padding: 0; }
.dot span { display: block; width: 8px; height: 8px; border-radius: 999px; background: var(--h-ink, #FFFFFF); opacity: .5; transition: width 240ms; }
.dot[aria-current="true"] span { width: 22px; opacity: 1; }
.hero .icon-btn { color: var(--h-ink, #FFFFFF); }
.pause-btn .i-play { display: none; }
.pause-btn[aria-pressed="true"] .i-play { display: block; }
.pause-btn[aria-pressed="true"] .i-pause { display: none; }

@media (min-width: 900px) {
  .hero { height: 560px; }
  .slide-inner { max-width: 1120px; margin: 0 auto; padding: 0 40px 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; text-align: left; }
  .slide-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .pill { height: 28px; padding: 0 12px; font-size: 13px; }
  .slide h2 { font-size: 48px; line-height: 1.25; }
  .slide p { font-size: 18px; max-width: 460px; }
  .cta { gap: 8px; height: 48px; padding: 0 22px; font-size: 16px; margin-top: 4px; }
  .cta svg { width: 16px; height: 16px; }
  .phone-area { display: flex; justify-content: center; align-items: center; overflow: visible; margin: 0; }
  .phone { width: 232px; height: 488px; border-radius: 40px; padding: 6px; }
  .phone-screen { width: 220px; height: 476px; border-radius: 34px; }
  .hero-pause-m, .hero-dots-m { display: none; }
  .hero-ctl { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; align-items: center; gap: 4px; color: var(--h-ink, #FFFFFF); }
  .hero-ctl .dot { width: 32px; }
  .dot[aria-current="true"] span { width: 24px; }
  .counter { font-family: var(--font-num); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; margin-left: 4px; }
}

/* ---------------- 공지사항 ---------------- */
.notice-in { padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 14px; }
.notice-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.notice-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.25; }
.more { display: inline-flex; align-items: center; height: 44px; padding-left: 8px; color: var(--link); background: transparent; border: 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.notice-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.notice-list li { border-bottom: 1px solid var(--line); }
.notice-item { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 8px 2px; background: transparent; border: 0; color: var(--ink); text-align: left; cursor: pointer; }
.topic { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.topic.tester { background: var(--tester-bg); color: var(--tester-ink); }
.topic.launch { background: var(--launch-bg); color: var(--launch-ink); }
.n-title { display: none; }
.n-short { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-info { display: none; }
.arrow { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--arrow-bg); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.arrow svg { width: 14px; height: 14px; }
@media (min-width: 900px) {
  .notice-in { max-width: 1120px; margin: 0 auto; padding: 32px 40px 72px; gap: 20px; }
  .notice-head { gap: 24px; }
  .notice-head h2 { font-size: 32px; }
  .more { padding: 0 4px 0 12px; }
  .notice-item { gap: 20px; min-height: 76px; padding: 14px 4px; }
  .topic { min-width: 92px; height: 28px; padding: 0 10px; font-size: 13px; }
  .n-title { display: block; flex: 1 1 auto; min-width: 0; font-size: 18px; font-weight: 700; line-height: 1.45; }
  .n-short { display: none; }
  .n-info { display: block; flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
  .arrow { width: 36px; height: 36px; }
  .arrow svg { width: 16px; height: 16px; }
}

/* ---------------- 앱 다운로드 ---------------- */
.appdl { background: var(--surface); color: var(--ink); }
.appdl-in { max-width: 1120px; margin: 0 auto; padding: 24px 20px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.appdl h2 { margin: 0 0 6px; align-self: stretch; text-align: left; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.25; }
.appdl-phrase { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 18.2px; line-height: 1.4; white-space: nowrap; color: var(--ink-2); }
.appdl-phrase span { display: block; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
.store { display: flex; align-items: center; gap: 12px; height: 56px; min-width: 188px; padding: 0 20px 0 12px; border-radius: 14px; background: #43256E; color: #FFFFFF; border: 0; text-align: left; cursor: pointer; }
.store-ic { width: 34px; height: 34px; border-radius: 10px; background: #FFFFFF; color: #43256E; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.store-ic svg { width: 18px; height: 18px; }
.store-tx { display: flex; flex-direction: column; line-height: 1.25; }
.store-tx .soon { font-size: 11px; color: rgba(255, 255, 255, .86); }
.store-tx .name { font-size: 17px; font-weight: 700; }
@media (min-width: 900px) {
  .appdl-in { padding: 32px 40px 56px; }
  .appdl h2 { font-size: 32px; }
  .appdl-phrase { font-size: 22.4px; }
  .appdl-phrase span { display: inline; }
}

/* ---------------- Footer ---------------- */
.ft { background: #43256E; color: #FFFFFF; }
.ft-in { max-width: 1120px; margin: 0 auto; padding: 28px 20px 32px; display: flex; flex-direction: column; gap: 18px; }
.ft-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.ft-links a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; white-space: nowrap; font-size: 14px; font-weight: 600; color: #FFFFFF; text-decoration: none; }
.ft-links a.strong { font-weight: 700; }
.ft-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; border-top: 1px solid rgba(255, 255, 255, .24); padding-top: 18px; }
.ft-logo { flex-shrink: 0; display: inline-flex; align-items: center; }
.ft-logo img { height: 22px; width: auto; }
.ft-info { margin: 0; flex: 1 1 480px; min-width: 0; font-size: 13px; font-weight: 300; line-height: 1.7; color: rgba(255, 255, 255, .86); }
.ft-info .sep { padding: 0 6px; }
.nw { white-space: nowrap; }

/* ---------------- 법적 페이지 「준비 중」 ---------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; display: flex; flex-direction: column; gap: 20px; }
.legal .eyebrow { font-size: 15px; font-weight: 700; color: var(--link); }
.legal h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.25; }
.soon-card { display: flex; align-items: center; gap: 16px; padding: 22px; background: var(--surface); border-radius: 18px; }
.mini-fb { position: relative; width: 52px; height: 58px; flex-shrink: 0; }
.mini-fb i { position: absolute; display: block; }
.mini-fb .leaf { left: 25px; top: 0; width: 14px; height: 9px; border-radius: 14px 0 14px 0; background: #1E5B33; }
.mini-fb .body { left: 0; top: 6px; width: 52px; height: 52px; border-radius: 50%; background: #43256E; }
.mini-fb .e1, .mini-fb .e2 { top: 26px; width: 7px; height: 7px; border-radius: 50%; background: #FFFFFF; }
.mini-fb .e1 { left: 16px; } .mini-fb .e2 { left: 29px; }
.soon-card strong { display: block; font-size: 18px; }
.soon-card span { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.doc-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc-list a { display: flex; align-items: center; gap: 12px; min-height: 56px; color: var(--ink); text-decoration: none; }
.doc-list .t { flex: 1 1 auto; font-size: 16px; font-weight: 600; }
.doc-list a[aria-current="page"] .t { font-weight: 700; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.btn-home { align-self: flex-start; display: inline-flex; align-items: center; height: 48px; padding: 0 22px; margin-top: 8px; border-radius: 999px; background: #43256E; color: #FFFFFF; font-size: 16px; font-weight: 700; text-decoration: none; }
@media (min-width: 900px) { .legal { padding: 72px 24px 96px; } .legal h1 { font-size: 40px; } }

/* 404 / 언어 중계 */
.center { max-width: 560px; margin: 0 auto; padding: 72px 20px 88px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.center h1, .center h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; }
.center p { margin: 0; color: var(--ink-2); }
.center .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.center .sep-line { width: 100%; border-top: 1px solid var(--line); margin: 18px 0 4px; }
.btn-line { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--line-2); color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-track, .phone-screen .vivid, .fb img, .fb .lid, .dot span { transition: none !important; }
}

/* 메일 링크 (고객문의 farmer@ · 개인정보 privacy@) */
a.gnb-item, a.mmenu-item, a.cta { text-decoration: none; }
.ft-info a { color: #FFFFFF; text-underline-offset: 3px; }
.soon-card a { color: var(--link); text-underline-offset: 3px; }
