*,*::before,*::after{box-sizing:border-box}

:root{
  /* === Flutter 앱 AppColors 와 동일 === */
  --primary:#6C5CE7;
  --primary-dark:#5847D1;
  --primary-soft:#EFEDFD;
  --pink:#FF6B9D;          /* hot */
  --yellow:#FFD166;         /* saleYellow */
  --yellow-text:#23263A;    /* saleYellowText */
  --bg:#F7F8FA;
  --surface:#FFFFFF;
  --text:#1B1D26;           /* textPrimary */
  --text-2:#6B6F7B;         /* textSecondary */
  --text-3:#B0B4C0;         /* textTertiary */
  --border:#EEF0F4;         /* divider */
  --dark:#1B1D26;
  --dark-2:#2C2F3F;
  --shadow-sm:0 4px 14px rgba(0,0,0,0.06);
  --shadow-md:0 12px 28px rgba(27,29,38,0.10);
  --shadow-lg:0 24px 60px rgba(27,29,38,0.16);
  --radius-sm:10px;
  --radius:14px;
  --radius-lg:20px;
  --radius-xl:28px;
  --max:1080px;
}

html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Pretendard','Noto Sans KR',Roboto,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  /* 한글은 단어 단위로 줄바꿈 — 어색한 자리 끊김 방지 */
  word-break:keep-all;
  overflow-wrap:break-word;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3{margin:0;letter-spacing:-0.5px}

/* sticky nav 만큼 앵커 오프셋 */
section[id]{scroll-margin-top:100px}

/* ========== Nav ========== */
.nav{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,0.88);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--border);
}
.nav__inner{
  max-width:var(--max);margin:0 auto;padding:10px 20px;
  display:flex;justify-content:space-between;align-items:center;
}
.nav__brand{display:flex;align-items:center;gap:10px}
.nav__logo{height:54px;width:auto;object-fit:contain;display:block}
.nav__brand-name{
  font-weight:900;font-size:22px;letter-spacing:-0.6px;color:var(--text);
}
.nav__links{display:flex;align-items:center;gap:22px;font-size:14px;font-weight:600;color:var(--text-2)}
.nav__links a:hover{color:var(--text)}
.nav__cta{
  background:var(--primary);color:#fff !important;
  padding:9px 16px;border-radius:999px;font-weight:700;
  box-shadow:0 4px 12px rgba(108,92,231,0.32);
}
.nav__cta:hover{background:var(--primary-dark)}

/* ========== Buttons ========== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-size:15px;font-weight:700;letter-spacing:-0.2px;
  padding:14px 22px;border-radius:14px;
  transition:transform .08s ease,opacity .15s ease,background .15s ease;
  cursor:pointer;text-align:left;
}
.btn:active{transform:translateY(1px)}
.btn--primary{
  background:var(--primary);color:#fff;
  box-shadow:0 8px 22px rgba(108,92,231,0.35);
}
.btn--primary:hover{background:var(--primary-dark)}
.btn--ghost{
  background:var(--surface);
  color:var(--text);
  border:1.5px solid var(--text);
}
.btn--ghost:hover{
  background:var(--text);
  color:#fff;
  border-color:var(--text);
}
.btn--store{
  background:var(--dark);color:#fff;padding:13px 20px;
  font-size:14px;font-weight:700;
}
.btn--store[aria-disabled="true"]{opacity:0.55;cursor:default}
.btn__icon{font-size:20px}
.btn__small{display:block;font-size:11px;font-weight:600;color:#9CA0AB;letter-spacing:0.3px}
.btn__big{display:block;font-size:15px;font-weight:800;letter-spacing:-0.2px}

/* ========== Sections ========== */
.section__title{
  font-size:32px;font-weight:900;text-align:center;
  margin:0 0 12px;letter-spacing:-1.2px;line-height:1.2;
}
.section__sub{
  text-align:center;color:var(--text-2);font-size:15px;
  margin:0 0 36px;line-height:1.7;
}

/* ========== Hero ========== */
.hero{
  max-width:var(--max);margin:0 auto;padding:64px 20px 56px;
}
.hero__inner{
  display:grid;grid-template-columns:1.1fr 0.9fr;gap:48px;align-items:center;
}
.hero__badge{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--primary-soft);color:var(--primary);
  font-size:13px;font-weight:700;letter-spacing:-0.2px;
  padding:6px 12px;border-radius:999px;margin-bottom:18px;
}
.hero__title{
  font-size:48px;font-weight:900;line-height:1.18;letter-spacing:-1.5px;
  margin-bottom:18px;
}
.hero__title--accent{
  background:linear-gradient(120deg,var(--primary),var(--pink));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero__sub{
  font-size:17px;color:var(--text-2);margin:0 0 28px;
  line-height:1.65;max-width:480px;
}
.hero__cta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}
.hero__meta{
  display:flex;gap:6px;flex-wrap:wrap;align-items:center;
}
.hero__meta > span{
  display:inline-flex;align-items:center;gap:5px;
  background:var(--surface);
  border:1px solid var(--border);
  padding:6px 11px;border-radius:999px;
  font-size:12.5px;font-weight:700;color:var(--text);
  letter-spacing:-0.2px;
}

/* Hero — phone art (overlap) */
.hero__art{
  position:relative;display:flex;justify-content:center;align-items:center;
  min-height:580px;
}
.phone{
  width:280px;
  background:#1B1D26;border-radius:42px;padding:14px;
  box-shadow:var(--shadow-lg);
  position:relative;
}
.phone--map{height:560px;z-index:2;transform:rotate(-3deg);}
.phone--detail{
  height:440px;width:230px;z-index:1;
  position:absolute;right:-30px;top:60px;transform:rotate(8deg);
  opacity:0.95;
}
.phone__notch{
  position:absolute;left:50%;top:14px;transform:translateX(-50%);
  width:80px;height:18px;background:#000;border-radius:0 0 14px 14px;z-index:5;
}
.phone__screen{
  width:100%;height:100%;border-radius:30px;overflow:hidden;
  background:#EDEFF4;position:relative;
}
.phone__topbar{
  position:absolute;top:14px;left:14px;right:14px;
  display:flex;justify-content:space-between;z-index:3;
}
.phone__chip{
  display:inline-flex;align-items:center;gap:5px;
  font-size:11px;font-weight:700;
  background:#fff;padding:5px 9px;border-radius:999px;
  border:1px solid rgba(0,0,0,0.06);
  box-shadow:0 4px 8px rgba(0,0,0,0.06);
}
.phone__chip-logo{width:14px;height:14px;object-fit:contain}
.phone__chip--filter{background:#fff;color:var(--text)}
.phone__map{
  position:absolute;inset:0;
  background-image:
    linear-gradient(#D8DCE5 1px,transparent 1px),
    linear-gradient(90deg,#D8DCE5 1px,transparent 1px);
  background-size:36px 36px;
}
.phone__radius{
  position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);
  border-radius:50%;border:1px solid;
}
.phone__radius--lg{width:200px;height:200px;background:rgba(108,92,231,0.06);border-color:rgba(108,92,231,0.2)}
.phone__radius--md{width:130px;height:130px;background:rgba(108,92,231,0.10);border-color:rgba(108,92,231,0.32)}
.phone__pin{
  position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);
  width:16px;height:16px;border-radius:50%;
  background:var(--primary);border:3px solid #fff;
  box-shadow:0 0 0 8px rgba(108,92,231,0.18);
}
.phone__store{
  position:absolute;width:32px;height:32px;border-radius:50%;
  background:#fff;display:flex;align-items:center;justify-content:center;
  font-size:15px;box-shadow:0 4px 12px rgba(0,0,0,0.14);
}
.phone__store--a{left:38px;top:88px}
.phone__store--b{right:42px;top:74px}
.phone__store--c{right:30px;bottom:170px}
.phone__store--d{left:46px;bottom:200px}
.phone__card{
  position:absolute;left:14px;right:14px;bottom:18px;
  background:#fff;border-radius:18px;padding:14px 16px;
  box-shadow:var(--shadow-md);
}
.phone__card-row{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.phone__pill{
  background:var(--primary);color:#fff;
  font-size:11px;font-weight:800;letter-spacing:-0.2px;
  padding:3px 8px;border-radius:6px;
}
.phone__store-name{font-size:11px;color:var(--text-3);font-weight:600}
.phone__card-title{font-size:14px;font-weight:800;letter-spacing:-0.3px;margin-bottom:6px}
.phone__card-meta{font-size:11px;color:var(--primary);font-weight:700}

/* Detail mockup — 앱 _DiscountHero 와 동일 (다크 그라데이션 + 노랑 스티커) */
.detail-hero{
  position:relative;
  margin:18px 14px 6px;border-radius:28px;
  /* topLeft → bottomRight 그라데이션 */
  background:linear-gradient(135deg,#1B1D26 0%,#2C2F3F 100%);
  padding:20px 18px 16px;color:#fff;
}
.detail-hero__chip{
  display:inline-flex;align-items:center;gap:3px;
  color:var(--yellow);font-size:9px;font-weight:800;
  letter-spacing:1.4px;
}
.detail-hero__chip::before{content:"⚡";font-size:11px;letter-spacing:0}
.detail-hero__title{
  font-size:18px;font-weight:900;line-height:1.25;letter-spacing:-0.6px;
  color:#fff;margin-top:14px;
}
.detail-hero__divider{
  height:1px;background:rgba(255,255,255,0.10);margin:14px 0 8px;
}
.detail-hero__meta{
  display:flex;align-items:center;gap:4px;
  font-size:10px;font-weight:800;color:#fff;letter-spacing:-0.2px;
}
.detail-hero__meta--mute{color:rgba(255,255,255,0.6);font-weight:500}
.detail-hero__sticker{
  position:absolute;top:-8px;right:-4px;
  background:var(--yellow);color:var(--yellow-text);
  padding:8px 12px;border-radius:10px;
  font-size:14px;font-weight:900;letter-spacing:-0.5px;line-height:1;
  transform:rotate(5.7deg);
  box-shadow:0 3px 8px rgba(0,0,0,0.15);
}
.detail-cta{
  margin:14px;background:var(--primary);color:#fff;
  border-radius:20px;padding:14px;text-align:center;
  font-size:14px;font-weight:800;letter-spacing:-0.5px;
  display:flex;align-items:center;justify-content:center;gap:6px;
  box-shadow:0 6px 18px rgba(108,92,231,0.32);
}
.detail-cta::after{content:"→";font-weight:800}

/* ========== Features ========== */
.features{max-width:var(--max);margin:0 auto;padding:72px 20px 56px}
.features__grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px;
}
.feature{
  background:var(--surface);border-radius:18px;border:1px solid var(--border);
  padding:26px 22px;transition:transform .15s ease,box-shadow .15s ease;
}
.feature:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.feature__icon{
  font-size:30px;width:52px;height:52px;border-radius:14px;
  background:var(--primary-soft);color:var(--primary);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:14px;
}
.feature h3{font-size:17px;font-weight:800;margin-bottom:8px;letter-spacing:-0.4px}
.feature p{font-size:14px;color:var(--text-2);margin:0;line-height:1.6}

/* ========== Owner ========== */
.owner{
  background:#fff;border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.owner__inner{
  max-width:var(--max);margin:0 auto;padding:80px 20px;
  display:grid;grid-template-columns:1.05fr 0.95fr;gap:56px;align-items:center;
}
.owner__badge{
  display:inline-block;background:#FFF0F5;color:var(--pink);
  font-size:13px;font-weight:800;padding:6px 12px;border-radius:999px;
  margin-bottom:16px;letter-spacing:-0.2px;
}
.owner__title{
  font-size:38px;font-weight:900;line-height:1.22;letter-spacing:-1.2px;
  margin-bottom:18px;
}
.owner__sub{
  color:var(--text-2);font-size:16px;line-height:1.7;margin:0 0 24px;
}
.owner__list{
  list-style:none;padding:0;margin:0 0 28px;
}
.owner__list li{
  font-size:15px;color:var(--text-2);line-height:1.6;
  padding:10px 0 10px 28px;position:relative;
  border-bottom:1px solid var(--border);
}
.owner__list li:last-child{border-bottom:none}
.owner__list li::before{
  content:"✓";position:absolute;left:0;top:10px;
  width:20px;height:20px;border-radius:50%;
  background:var(--primary-soft);color:var(--primary);
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:900;
}
.owner__list strong{color:var(--text);font-weight:700}

.dashboard{
  background:linear-gradient(160deg,var(--dark) 0%,var(--dark-2) 100%);
  color:#fff;border-radius:22px;padding:24px;
  box-shadow:0 24px 60px rgba(27,29,38,0.32);
}
.dashboard__head{
  display:flex;justify-content:space-between;align-items:center;
  padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,0.10);
  margin-bottom:8px;
}
.dashboard__brand{
  display:flex;align-items:center;gap:8px;
  font-size:13px;font-weight:800;letter-spacing:-0.3px;
}
.dashboard__logo{
  width:22px;height:22px;object-fit:contain;
  filter:brightness(0) invert(1);
}
.dashboard__date{font-size:11px;color:#9CA0AB;font-weight:600}
.dashboard__stats{display:flex;flex-direction:column}
.dashboard__stat{
  padding:18px 0;border-bottom:1px solid rgba(255,255,255,0.08);
  display:grid;grid-template-columns:1fr auto;gap:6px;
  align-items:center;row-gap:0;
}
.dashboard__stat:last-child{border-bottom:none}
.dashboard__label{font-size:13px;color:#C8CAD3;grid-column:1}
.dashboard__value{
  font-size:24px;font-weight:900;color:#fff;letter-spacing:-0.5px;
  grid-row:1 / 3;grid-column:2;text-align:right;
}
.dashboard__delta{
  font-size:11px;color:var(--yellow);grid-column:1;font-weight:700;
}
.dashboard__delta--mute{color:#9CA0AB}

/* ========== Steps ========== */
.steps{max-width:var(--max);margin:0 auto;padding:72px 20px}
.steps__grid{
  display:grid;
  grid-template-columns:1fr 24px 1fr 24px 1fr;gap:18px;
  align-items:stretch;
  margin-top:32px;
}
.step{
  background:var(--surface);border-radius:18px;border:1px solid var(--border);
  padding:26px;text-align:center;
}
.step__num{
  width:36px;height:36px;border-radius:50%;
  background:var(--primary);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:16px;font-weight:900;
  margin:0 auto 14px;
}
.step h3{font-size:17px;font-weight:800;margin-bottom:8px;letter-spacing:-0.4px}
.step p{font-size:14px;color:var(--text-2);margin:0;line-height:1.6}
.step--arrow{
  background:none;border:none;padding:0;
  display:flex;align-items:center;justify-content:center;
  color:var(--text-3);font-size:22px;font-weight:800;
}
.step--arrow::after{content:"→"}

/* ========== Download ========== */
.download{
  padding:80px 20px;text-align:center;
  background:linear-gradient(180deg,#fff 0%,var(--primary-soft) 100%);
}
.download__buttons{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:8px}

/* ========== Footer ========== */
.footer{padding:56px 20px 28px;background:var(--surface);border-top:1px solid var(--border)}
.footer__inner{max-width:var(--max);margin:0 auto}
.footer__top{
  display:grid;grid-template-columns:1fr 2fr;gap:48px;
  padding-bottom:36px;border-bottom:1px solid var(--border);
}
.footer__brand{display:flex;flex-direction:column;gap:14px}
.footer__logo{width:120px;height:auto;object-fit:contain}
.footer__tagline{
  margin:0;color:var(--text-2);font-size:13px;line-height:1.7;
}
.footer__links{
  display:grid;grid-template-columns:repeat(3,1fr);gap:24px;
}
.footer__col{display:flex;flex-direction:column;gap:8px}
.footer__col-title{
  font-size:12px;font-weight:800;color:var(--text);letter-spacing:0.3px;
  text-transform:uppercase;margin-bottom:4px;
}
.footer__col a{font-size:13px;color:var(--text-2)}
.footer__col a:hover{color:var(--text)}

.footer__company{
  padding:28px 0;border-bottom:1px solid var(--border);
}
.footer__company-title{
  font-size:12px;font-weight:800;color:var(--text-3);letter-spacing:0.5px;
  text-transform:uppercase;margin-bottom:14px;
}
.footer__company-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px 24px;
  font-size:12px;color:var(--text-2);
}
.footer__company-grid > div{display:flex;flex-direction:column;gap:2px;min-width:0}
.footer__company-grid span{color:var(--text-3);font-size:11px}
.footer__company-grid strong{color:var(--text-2);font-weight:600;line-height:1.5}
.footer__company-grid--full{grid-column:1 / -1}

.footer__bottom{
  display:flex;justify-content:space-between;
  padding-top:20px;font-size:12px;color:var(--text-3);
  flex-wrap:wrap;gap:8px;
}

/* ========== Mobile ========== */
@media (max-width: 920px){
  .features__grid{grid-template-columns:repeat(2,1fr)}
  .footer__company-grid{grid-template-columns:repeat(2,1fr)}
  .footer__company-grid--full{grid-column:1 / -1}
}
@media (max-width: 720px){
  .nav__links a:not(.nav__cta){display:none}
  .hero{padding:40px 20px}
  .hero__inner{grid-template-columns:1fr;gap:36px}
  .hero__title{font-size:36px}
  .hero__art{order:-1;min-height:480px}
  .phone--map{width:240px;height:480px}
  .phone--detail{display:none}
  .owner__inner{grid-template-columns:1fr;gap:36px;padding:56px 20px}
  .owner__title{font-size:30px}
  .section__title{font-size:26px}
  .steps__grid{grid-template-columns:1fr;gap:12px}
  .step--arrow{transform:rotate(90deg);padding:8px 0}
  .footer__top{grid-template-columns:1fr;gap:32px}
  .footer__links{grid-template-columns:repeat(3,1fr);gap:16px}
  .footer__company-grid{grid-template-columns:1fr 1fr}
  .footer__bottom{flex-direction:column;align-items:flex-start}
}
/* 작은 폰 (375px 이하) — 줄밀림 방지 + 스케일 다운 */
@media (max-width: 480px){
  .nav__inner{padding:8px 16px}
  .nav__logo{height:44px}
  .nav__brand-name{font-size:18px}
  .nav__cta{padding:7px 12px;font-size:13px}
  .hero{padding:32px 16px 40px}
  .hero__title{font-size:30px;letter-spacing:-1px}
  .hero__sub{font-size:15px}
  .hero__badge{font-size:12px}
  .hero__art{min-height:420px}
  .phone--map{width:220px;height:440px}
  .features{padding:48px 16px 36px}
  .features__grid{gap:12px}
  .feature{padding:20px 18px}
  .feature h3{font-size:16px}
  .feature p{font-size:13px}
  .owner__inner{padding:48px 16px}
  .owner__title{font-size:26px}
  .owner__sub{font-size:15px}
  .owner__list li{font-size:14px}
  .steps{padding:48px 16px}
  .download{padding:48px 16px}
  .footer{padding:36px 16px 24px}
  .footer__links{grid-template-columns:repeat(2,1fr);gap:14px}
  .footer__company-grid{grid-template-columns:1fr;gap:10px}
  .section__title{font-size:22px}
  .section__sub{font-size:14px}
  .btn{padding:13px 18px;font-size:14px}
}
