/* 혼술러 사장웹 랜딩·다운로드 (정적). 카피 기본값은 lib 의 tx() 키와 같다. */
:root {
  --cream: #F7F3EE;
  --accent: #B5573F;
  --accent-deep: #8F3A28;
  --ink: #1D1A17;
  --body: #5A524C;
  --muted: #6B625A;
  --line: #E8DFD4;
  --marker: #FBE7A6;
  --green-dark: #2F7F61;
  --salmon: #E9B7A8;
  --canvas: #F7F5F2;
  --content: 1200px;
  --nav: 72px;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
@font-face {
  font-family: Pretendard;
  src: url("fonts/pretendard-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Pretendard;
  src: url("fonts/pretendard-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Pretendard;
  src: url("fonts/pretendard-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Pretendard;
  src: url("fonts/pretendard-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Pretendard;
  src: url("fonts/pretendard-bold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: block;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--cream); color: var(--ink); }
body { -webkit-font-smoothing: antialiased; }
button, input, textarea { font-family: inherit; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.band {
  width: min(100%, calc(var(--content) + 48px));
  margin: 0 auto;
  padding: 0 24px;
}

/* splash covers everything until fonts (and Flutter first frame when booting) */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  transition: opacity .35s ease;
}
#splash.is-out { opacity: 0; pointer-events: none; }
#splash img { width: 84px; height: 84px; border-radius: 0; object-fit: contain; }

html[data-page="download"] #page-landing,
html[data-page="landing"] #page-download { display: none; }
html.boot-flutter #page-landing,
html.boot-flutter #page-download { display: none !important; }
html.boot-flutter body { background: var(--canvas); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  height: var(--nav);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; color: var(--ink); }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.logo-name { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; }
.logo-owner { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: 30px; }
.nav-links a, .nav-links button.linkish {
  background: none; border: none; padding: 0 4px; height: 40px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.2px;
  color: var(--body); cursor: pointer; text-decoration: none;
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; background: none; border: none; color: var(--ink);
  width: 44px; height: 44px; cursor: pointer;
}
.menu-panel {
  display: none; position: absolute; right: 16px; top: calc(var(--nav) - 8px);
  background: #fff; border-radius: 16px; padding: 8px;
  box-shadow: 0 12px 32px rgba(29,26,23,.12);
  min-width: 200px;
}
.menu-panel.is-open { display: block; }
.menu-panel a, .menu-panel button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; padding: 12px 14px;
  font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer;
  border-radius: 10px; text-decoration: none;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--cream); }

/* sticker / pills */
.sticker { background: var(--stick-shadow, var(--line)); border-radius: var(--r, 24px); padding-bottom: var(--d, 6px); }
.sticker > .inner { background: var(--stick-bg, #fff); border-radius: var(--r, 24px); }
.pill {
  --d: 5px; --r: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--stick-shadow, var(--accent-deep));
  border: 0; border-radius: 999px; padding: 0;
  cursor: pointer; text-decoration: none; color: inherit;
}
.pill[disabled] { opacity: .6; cursor: default; }
.pill > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--h, 40px); padding: 0 var(--pad, 20px);
  background: var(--stick-bg, var(--accent));
  color: var(--stick-ink, #fff);
  border-radius: 999px;
  font-size: var(--fs, 15px); font-weight: 800; letter-spacing: -0.3px;
  border: var(--bd, 0px) solid var(--stick-ink, #fff);
  margin-bottom: var(--d, 5px);
  white-space: nowrap;
}
.pill.white { --stick-bg: #fff; --stick-ink: var(--ink); --stick-shadow: var(--line); }
.pill.ghost {
  --stick-bg: transparent; --stick-ink: #fff; --stick-shadow: transparent; --d: 0px; --bd: 2px;
}

/* typography helpers */
.eyebrow {
  color: var(--accent); font-weight: 700; letter-spacing: .14em;
  font-size: 14px;
}
.hl { background-image: linear-gradient(transparent 62%, var(--marker) 62%); }
h1, h2, h3 { margin: 0; }
.center-title {
  text-align: center; font-weight: 800; letter-spacing: -1.2px; line-height: 1.25;
}

/* hero */
.hero { padding: 40px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1fr 510px; gap: 40px; align-items: center; position: relative; }
.hero h1 { font-size: 64px; line-height: 1.2; font-weight: 800; letter-spacing: -1.92px; }
.hero .sub { margin: 18px 0 0; color: var(--body); font-size: 22px; line-height: 1.6; font-weight: 400; letter-spacing: -0.4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { --r: 18px; --d: 3px; }
.chip .inner { padding: 8px 14px; color: var(--body); font-size: 14px; font-weight: 700; letter-spacing: -0.3px; }
.chip .accent { color: var(--accent); }
.capy-glass {
  position: absolute; right: 566px; bottom: 22px; width: 160px; height: 156px;
  pointer-events: none;
}
.capy-glass .saucer {
  position: absolute; left: 0; right: 0; bottom: 12px; height: 9px;
  background: var(--line); border-radius: 2px;
  transform: rotate(-5.7deg);
}
.capy-glass img { position: absolute; left: 30px; bottom: 26px; width: 100px; transform: rotate(-2.9deg); }

/* login card */
.login-wrap { position: relative; padding-top: 50px; }
.login-card { --r: 28px; --d: 8px; }
.login-card .inner { padding: 32px 28px 28px; }
.login-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; }
.login-card .hint { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; font-weight: 500; }
.field-label { margin: 20px 0 6px; font-size: 13px; font-weight: 700; color: var(--body); }
.field-label:first-of-type { margin-top: 20px; }
.login-card input[type="email"],
.login-card input[type="password"],
.login-card input[type="text"] {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #FBF8F4; color: var(--ink); font-size: 16px; outline: none;
}
.login-card input:focus { border-color: var(--accent); background: #fff; }
.login-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.remember { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--body); font-size: 14px; font-weight: 500; }
.remember input { width: 16px; height: 16px; accent-color: var(--accent); }
.help-links { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.help-links button { background: none; border: 0; color: var(--body); font-weight: 600; font-size: 14px; cursor: pointer; padding: 0; }
.notice { margin-top: 12px; color: var(--accent); font-weight: 600; line-height: 1.4; min-height: 0; }
.login-card .pill { width: 100%; margin-top: 18px; --h: 56px; --fs: 17px; --d: 5px; }
.login-foot { margin-top: 12px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 500; }
.login-foot button { background: none; border: 0; color: var(--accent); font-weight: 800; font-size: 14px; cursor: pointer; }
.login-capy { position: absolute; top: 0; right: 8px; width: 104px; pointer-events: none; }

/* why */
.why { padding: 80px 0; }
.why .center-title { font-size: 40px; margin-top: 24px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.why-card { --r: 24px; --d: 6px; height: 100%; }
.why-card .inner { padding: 28px 24px 30px 28px; min-height: 282px; }
.why-ico {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.why-ico svg { width: 26px; height: 26px; display: block; }
.why-card h3 { margin: 20px 0 10px; font-size: 22px; line-height: 1.4; font-weight: 800; letter-spacing: -0.6px; white-space: pre-line; }
.why-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; letter-spacing: -0.3px; }

/* screens */
.screen { padding: 80px 0; }
.screen-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.screen-grid.flip { grid-template-columns: .85fr 1.15fr; }
.screen-grid.flip .screen-copy { order: -1; }
.screen-frame { width: 100%; }
.screen-kicker { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 800; font-size: 15px; }
.screen-kicker .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 13px;
}
.screen h2 { margin-top: 14px; font-size: 36px; line-height: 1.3; font-weight: 800; letter-spacing: -1px; white-space: pre-line; }
.screen .sub { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.points { margin: 22px 0 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; font-weight: 700; font-size: 16px; }
.points li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; flex: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='10' fill='%23B5573F'/><path d='M5.5 10.2l3 3 6-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/20px no-repeat;
}
.tag { display: inline-block; margin-top: 16px; padding: 4px 10px; border-radius: 999px; background: rgba(181,87,63,.12); color: var(--accent); font-size: 12px; font-weight: 800; }
.screen.sales { background: #2B2420; color: #fff; }
.screen.sales .screen-kicker, .screen.sales .tag { color: var(--salmon); }
.screen.sales .screen-kicker .num { background: var(--salmon); color: #2B2420; }
.screen.sales h2 { color: #fff; }
.screen.sales .sub { color: rgba(255,255,255,.78); }
.screen.sales .points li { color: #fff; }
.screen.sales .points li::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='10' fill='%23E9B7A8'/><path d='M5.5 10.2l3 3 6-6' fill='none' stroke='%232B2420' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.screen.shop { background: #FBEAE4; }
.screen.settle { background: #E8EFE8; }

/* steps + cta */
.steps { background: #fff; padding: 88px 0 20px; }
.steps .center-title { font-size: 40px; margin-top: 24px; }
.steps-lead { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 18px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.step-card { --stick-bg: var(--cream); --stick-shadow: #EADFD3; --r: 24px; --d: 6px; }
.step-card .inner { padding: 22px 24px 24px; text-align: center; min-height: 212px; }
.step-num { width: 56px; margin: 0 auto; --stick-bg: var(--accent); --stick-shadow: var(--accent-deep); --r: 28px; --d: 5px; }
.step-num .inner { height: 56px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 800; }
.step-card h3 { margin: 12px 0 10px; font-size: 22px; font-weight: 800; }
.step-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.cta { margin-top: 16px; }
.cta-bar {
  background: var(--accent); border-radius: 28px; padding: 34px 40px 36px;
  display: flex; align-items: center; gap: 20px; position: relative; overflow: hidden;
  box-shadow: 0 6px 0 var(--accent-deep); color: #fff;
}
.cta-bar h2 { font-size: 30px; line-height: 1.35; font-weight: 800; letter-spacing: -0.8px; white-space: pre-line; }
.cta-bar p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.86); }
.cta-actions { margin-left: auto; display: flex; gap: 12px; flex: none; }
.cta-capy { width: 96px; flex: none; }
.dl-link { display: block; margin: 8px auto 0; text-align: center; color: var(--body); font-size: 15px; font-weight: 700; background: none; border: 0; cursor: pointer; padding: 6px 10px; text-decoration: none; }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 20px 0 40px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px 20px; }
.footer-links a { color: #5A524C; font-size: 13px; font-weight: 700; text-decoration: underline; }
.biz { margin-top: 18px; font-size: 11px; line-height: 1.4; font-weight: 500; color: #8A847C; }
.biz-row { display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; }
.biz-row span + span::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 12px; background: rgba(138,132,124,.35); vertical-align: middle; }
.trade { margin-top: 10px; white-space: pre-line; }

/* download page */
#page-download { background: var(--canvas); min-height: 100%; }
.dl-nav { padding: 20px 0 8px; }
.dl-nav-inner { display: flex; align-items: center; padding: 0 48px; }
.dl-nav .logo-name { font-size: 20px; }
.dl-nav .to-owner { margin-left: auto; color: #8A847C; font-size: 14px; font-weight: 600; text-decoration: none; }
.dl-hero { max-width: 1280px; margin: 0 auto; padding: 56px 120px 72px; display: grid; grid-template-columns: 1fr 330px; gap: 80px; align-items: center; }
.dl-kicker { color: #B85C45; font-size: 16px; font-weight: 700; }
.dl-hero h1 { margin-top: 14px; font-size: 52px; line-height: 1.18; font-weight: 700; letter-spacing: -1.8px; white-space: pre-line; color: #1C1B19; }
.dl-hero .sub { margin-top: 18px; color: #8A847C; font-size: 17px; line-height: 1.6; font-weight: 500; white-space: pre-line; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #1C1B19; color: #fff; border-radius: 12px;
  padding: 10px 18px 10px 16px; text-decoration: none; border: 0; cursor: pointer;
}
.badge.soon { opacity: .55; cursor: default; }
.badge .cap { font-size: 10px; line-height: 1.2; opacity: .7; }
.badge .store { font-size: 16px; line-height: 1.2; font-weight: 700; }
.badge.light { background: var(--canvas); color: #1C1B19; }
.dl-hero img.phone { width: 330px; height: 560px; object-fit: contain; }
.dl-divider { max-width: 1280px; margin: 0 auto; padding: 0 120px; border: 0; border-top: 1px solid #E7E1D8; }
.dl-steps { max-width: 1280px; margin: 0 auto; padding: 64px 120px; }
.dl-steps h2 { font-size: 30px; font-weight: 700; color: #1C1B19; }
.dl-steps .lead { margin-top: 8px; color: #8A847C; font-size: 16px; font-weight: 500; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; margin-top: 36px; }
.dl-step .shot { height: 380px; background: #EFEBE5; border-radius: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dl-step .shot img { max-height: 100%; width: auto; object-fit: contain; }
.dl-step .n { margin-top: 16px; font-size: 13px; font-weight: 800; color: #B85C45; }
.dl-step h3 { margin-top: 4px; font-size: 18px; font-weight: 700; }
.dl-step p { margin-top: 6px; color: #8A847C; font-size: 14px; line-height: 1.55; font-weight: 500; }
.dl-step p strong { color: #1C1B19; font-weight: 700; }
.dl-cta { background: #1C1B19; color: var(--canvas); padding: 48px 120px; display: flex; align-items: center; gap: 24px; }
.dl-cta h2 { font-size: 24px; font-weight: 700; margin: 0; flex: 1; }
.dl-cta .badges { margin: 0; }
#page-download .site-footer { background: var(--canvas); }

/* mobile landing */
@media (max-width: 1279px) {
  .hero-grid { grid-template-columns: 1fr 440px; }
  .hero h1 { font-size: 56px; letter-spacing: -1.68px; }
  .capy-glass { display: none; }
  .login-capy { width: 84px; }
}
@media (max-width: 1023px) {
  :root { --nav: 64px; }
  .hero-grid, .screen-grid, .screen-grid.flip { grid-template-columns: 1fr; }
  .screen-grid.flip .screen-copy { order: 0; }
  .hero { padding: 36px 0; }
  .hero h1 { font-size: 42px; letter-spacing: -1.26px; }
  .hero .sub { font-size: 17px; }
  .why { padding: 56px 0; }
  .why .center-title, .steps .center-title { font-size: 30px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
  .why-card .inner { min-height: 250px; padding: 22px; }
  .screen { padding: 56px 0; }
  .screen h2 { font-size: 28px; }
  .steps { padding: 56px 0 20px; }
  .steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .cta-bar { flex-direction: column; align-items: stretch; padding: 28px 22px; }
  .cta-actions { margin: 0; flex-direction: column; }
  .cta-bar h2 { font-size: 26px; }
  .logo-name { font-size: 19px; }
}
@media (max-width: 959px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 639px) {
  .band { padding: 0 20px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card .inner { min-height: 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .pill, .cta-actions .pill { width: 100%; }
  .hero h1 { font-size: 36px; }
  .dl-nav-inner, .dl-hero, .dl-divider, .dl-steps, .dl-cta { padding-left: 24px; padding-right: 24px; }
  .dl-hero { grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 0; gap: 0; }
  .dl-hero img.phone { display: none; }
  .dl-hero h1 { font-size: 32px; letter-spacing: -1px; }
  .dl-grid { grid-template-columns: 1fr; gap: 32px; }
  .dl-step .shot { height: 420px; }
  .dl-cta { flex-direction: column; align-items: stretch; padding-top: 32px; padding-bottom: 32px; }
  .dl-divider { display: none; }
  .store-btn {
    display: flex; width: 100%; height: 54px; align-items: center; justify-content: center; gap: 10px;
    background: #1C1B19; color: #fff; border: 0; border-radius: 14px;
    font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  }
  .store-btn.soon { background: #E7E1D8; color: #8A847C; cursor: default; }
  .badges.wide-only { display: none; }
  .mobile-stores { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
}
@media (min-width: 640px) {
  .mobile-stores { display: none; }
}
@media (max-width: 399px) {
  .nav-apply { display: none; }
  .logo-owner { display: none; }
}

.dl-hero .sub.wide-only { display: block; }
.dl-hero .sub.narrow-only { display: none; }
@media (max-width: 899px) {
  .dl-hero .sub.wide-only { display: none; }
  .dl-hero .sub.narrow-only { display: block; }
  .dl-hero { grid-template-columns: 1fr; gap: 0; padding: 20px 24px 0; }
  .dl-hero img.phone { display: none; }
  .dl-nav-inner { padding: 0 20px; }
  .dl-steps { padding: 48px 24px; }
  .dl-steps h2 { font-size: 24px; }
  .dl-steps .lead { display: none; }
  .dl-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 24px; }
  .dl-cta { padding: 32px 24px; flex-direction: column; align-items: stretch; }
  .dl-divider { display: none; }
  .badges.wide-only { display: none; }
}
@media (min-width: 900px) {
  .mobile-stores { display: none; }
}
