/* CHIFLOW Landing — clean_responsive v3
   Based on keyacht_clean_responsive/assets/css/style.css */

:root{
  /* 신규 CHIFLOW 브랜드 컬러 */
  --primary:#0D1B5E;          /* 딥 네이비 블루 - 메인 */
  --secondary:#00C2D6;        /* 브라이트 아쿠아 블루 - 포인트 */
  --background:#F6FAFC;
  --text:#0D1B5E;
  --white:#FFFFFF;

  /* 레거시 별칭 (기존 코드 호환) — primary/secondary로 매핑 */
  --navy:var(--primary);
  --deep:#050e35;             /* primary 살짝 더 어둡게 (hover/dark 상태용) */
  --cyan:var(--secondary);
  --cyan-dark:#009AAB;        /* secondary 살짝 어둡게 */

  --muted:#5a6b8a;
  --line:#e0e6f0;
  --bg:var(--background);
  --card:var(--white);
  --shadow:0 16px 40px rgba(13,27,94,.10);
  --soft-shadow:0 10px 28px rgba(13,27,94,.07);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  color:var(--text);
  background:#fff; /* 이전엔 var(--bg) — 1440px 경계선처럼 보여서 흰색으로 통일 */
}
a{text-decoration:none;color:inherit}
button{font:inherit}

/* .page: 전체 폭 100% (배경/구분선이 좌우 끝까지 이어지도록).
   개별 섹션들이 각자 안쪽 내용을 max-width 1440px로 제한. */
.page{
  width:100%;
  min-height:100vh;
  margin:0;
  background:#fff;
  overflow:hidden;
}

/* --- 넓은 화면 대응 ---
   .page의 max-width를 없앴으므로, 콘텐츠가 아주 넓은 모니터에서 좌우로 벌어지지 않도록
   각 섹션의 좌우 padding을 자동으로 늘림. 배경/구분선은 100% 폭 유지. */
:root{
  --side-pad: max(58px, calc((100vw - 1440px) / 2 + 58px));
  --side-pad-70: max(74px, calc((100vw - 1440px) / 2 + 74px));
  --side-pad-90: max(92px, calc((100vw - 1440px) / 2 + 92px));
  --side-pad-80: max(82px, calc((100vw - 1440px) / 2 + 82px));
  --side-pad-54: max(54px, calc((100vw - 1440px) / 2 + 54px));
}

/* Header */
.site-header{
  height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 var(--side-pad);
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(18px);
  position:sticky;
  top:0;
  z-index:20;
}
.brand img{width:174px;height:auto;display:block}
.brand-text{
  font-size:28px;
  font-weight:950;
  letter-spacing:-.05em;
  color:var(--cyan);
  line-height:1;
}
.desktop-nav{
  display:flex;
  align-items:center;
  gap:54px;
  font-size:16px;
  font-weight:850;
  color:var(--primary);
}
.header-actions{
  display:flex;
  align-items:center;
  gap:14px;
}
.header-actions .nav-hello{color:var(--muted);font-weight:700;font-size:14px}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border-radius:9px;
  height:44px;
  padding:0 24px;
  font-weight:900;
  font-size:15px;
  transition:.18s ease;
  cursor:pointer;
  border:0;
}
.btn-dark{
  background:var(--navy);
  color:#fff;
  box-shadow:0 10px 22px rgba(8,42,85,.14);
}
.btn-dark:hover{transform:translateY(-1px);background:var(--deep)}
.btn-ghost{
  background:#fff;
  color:var(--navy);
  border:1.5px solid #97a9bd;
}
.btn-outline{
  background:#fff;
  color:var(--navy);
  border:1.5px solid #9badbf;
}
.btn-large{
  height:58px;
  min-width:230px;
  font-size:17px;
}

/* Hamburger + mobile menu */
.menu-btn{
  display:none;
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  padding:6px;
  cursor:pointer;
}
.menu-btn span{
  display:block;
  width:30px;
  height:4px;
  background:#111927;
  border-radius:10px;
  margin:5px auto;
}
.mobile-menu{
  display:none;
  padding:10px 24px 20px;
  border-bottom:1px solid var(--line);
  background:#fff;
}
.mobile-menu a{
  display:block;
  padding:14px 0;
  font-weight:850;
  color:var(--navy);
}

/* Flash */
.flash-container{padding:12px 20px 0}
.flash{padding:12px 16px;border-radius:10px;margin-bottom:8px;font-size:14px;font-weight:700}
.flash-error{background:#FEE2E2;color:#991B1B}
.flash-success{background:#D1FAE5;color:#065F46}
.flash-info{background:#DBEAFE;color:#1E40AF}

/* Pending link orders banner (신규 회원 홈 상단) */
.pending-link-banner{
  max-width:1440px;
  margin:16px auto;
  padding:14px 22px;
  background:#f0fbfd;
  border:1.5px solid var(--cyan);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  box-shadow:0 6px 18px rgba(24,184,199,.10);
}
.pending-link-content{display:flex;flex-direction:column;gap:4px}
.pending-link-content b{color:var(--navy);font-weight:900;font-size:15px}
.pending-link-content span{color:#3a4d68;font-size:13px;font-weight:600}
.pending-link-banner .btn{height:38px;padding:0 18px;font-size:14px;white-space:nowrap}

/* 구매 페이지 게스트 힌트 */
.guest-hint{
  margin:20px 0 28px;
  padding:16px 20px;
  background:#f0fbfd;
  border:1.5px solid var(--cyan);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.guest-hint > div{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#3a4d68}
.guest-hint b{color:var(--navy);font-weight:900;font-size:14px}
.guest-hint span b{font-size:13px}
.btn.btn-sm{height:36px;padding:0 14px;font-size:13px;white-space:nowrap}

/* 완료 페이지 비회원 CTA */
.guest-post-notice{
  margin:20px 0;
  padding:22px 26px;
  background:linear-gradient(135deg, #f0fbfd 0%, #ecfaff 100%);
  border:2px solid var(--cyan);
  border-radius:16px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.guest-post-icon{font-size:28px}
.guest-post-body h3{margin:0 0 8px;color:var(--navy);font-size:17px;font-weight:900}
.guest-post-body p{margin:0 0 8px;color:#3a4d68;font-size:13.5px;line-height:1.6;font-weight:600}
.guest-post-tip{background:#fff;padding:10px 14px;border-radius:8px;font-size:12px;color:var(--muted)!important}
.guest-post-notice .btn{align-self:stretch;justify-content:center}

@media(max-width:640px){
  .pending-link-banner{flex-direction:column;align-items:stretch}
  .pending-link-banner .btn{width:100%}
  .guest-hint{flex-direction:column;align-items:stretch}
  .guest-hint .btn{width:100%}
}

/* Hero */
.hero{
  min-height:520px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:34px;
  align-items:center;
  padding:58px var(--side-pad-90) 66px;
  background:
    radial-gradient(circle at 76% 45%, rgba(0,194,214,.10), transparent 26%),
    linear-gradient(180deg,#fbfdff,var(--background));
}
.hero-copy h1{
  margin:0;
  color:var(--navy);
  font-size:62px;
  line-height:1.14;
  letter-spacing:-.065em;
  font-weight:950;
}
.hero-copy h1 span{color:var(--cyan)}
.hero-copy p{
  margin:28px 0 0;
  color:#1f3354;
  font-size:20px;
  line-height:1.75;
  letter-spacing:-.02em;
  font-weight:600;
}
.hero-buttons{
  display:flex;
  gap:20px;
  margin-top:34px;
}
.trust-row{
  margin-top:44px;
  display:flex;
  align-items:center;
  gap:22px;
  color:#142b4e;
  font-size:16px;
  font-weight:850;
}
.trust-row i{
  width:1px;
  height:24px;
  background:#cbd6e1;
  display:block;
}

/* Hero visual — 회전된 앱 카드들 (요트 배경 없음) */
.hero-visual{
  position:relative;
  height:330px;
}
.app-card{
  position:absolute;
  width:136px;
  height:136px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  box-shadow:0 18px 42px rgba(17,42,76,.10);
  transform:rotate(var(--r));
}
.app-card span{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  line-height:1;
}
.hero-visual .youtube{left:44px;top:14px;--r:-8deg;color:#ff1616;font-size:58px}
.hero-visual .chatgpt{left:232px;top:0;--r:-4deg;color:#111;font-size:76px}
.hero-visual .gemini{left:426px;top:16px;--r:8deg;color:#697bff;font-size:78px}
.hero-visual .duolingo{left:156px;top:178px;--r:5deg;font-size:64px}
.hero-visual .watcha{left:318px;top:176px;--r:-5deg;color:#ff146f;font-size:68px}
.hero-visual .wavve{left:486px;top:184px;--r:8deg;color:#1e68ff;font-size:30px}

/* ===== 실시간 커피 쿠폰 배송 티커 ===== */
.ticker-section{
  background:#fff;
  padding:32px var(--side-pad-70);
  border-bottom:1px solid var(--line);
}
.ticker-container{
  max-width:820px;
  margin:0 auto;
  background:linear-gradient(135deg, #f0fbfd 0%, #ffffff 60%, #f0fbfd 100%);
  border:1.5px solid var(--secondary);
  border-radius:16px;
  padding:20px 24px;
  box-shadow:0 10px 30px rgba(0,194,214,.08);
}
.ticker-label{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  font-size:13px;
  font-weight:900;
  color:var(--primary);
}
.ticker-label b{
  color:#dc2626;
  font-size:11px;
  font-weight:900;
  letter-spacing:.05em;
}
.ticker-title{
  color:var(--muted);
  font-weight:800;
  font-size:12px;
  margin-left:4px;
}
.ticker-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#dc2626;
  box-shadow:0 0 0 0 rgba(220,38,38,.7);
  animation:ticker-dot-pulse 1.6s ease-out infinite;
}
@keyframes ticker-dot-pulse{
  0%   { box-shadow:0 0 0 0    rgba(220,38,38,.7); }
  70%  { box-shadow:0 0 0 10px rgba(220,38,38,0); }
  100% { box-shadow:0 0 0 0    rgba(220,38,38,0); }
}

.ticker-viewport{
  height:132px;   /* 3줄 표시 (44px * 3) */
  overflow:hidden;
  position:relative;
  mask-image:linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image:linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.ticker-list{
  list-style:none;
  margin:0;
  padding:0;
  will-change:transform;
}
.ticker-item{
  height:44px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 6px;
  font-size:14px;
  font-weight:700;
  color:var(--primary);
}
.ticker-item.ticker-loading{color:var(--muted);font-weight:600}
.ticker-emoji{
  font-size:18px;
  flex-shrink:0;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff9ec;
  border-radius:50%;
}
.ticker-name{
  font-weight:900;
  color:var(--primary);
}
.ticker-msg{
  color:#3a4d68;
  font-weight:600;
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ticker-ago{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  flex-shrink:0;
}

.ticker-hint{
  margin-top:12px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
  font-weight:600;
}

@media(max-width:640px){
  .ticker-section{padding:20px 16px}
  .ticker-container{padding:16px 18px}
  .ticker-item{font-size:13px;gap:8px}
  .ticker-emoji{width:28px;height:28px;font-size:15px}
  .ticker-msg{font-size:12.5px}
  .ticker-ago{font-size:11px}
}

/* Products */
.products-section{
  padding:34px var(--side-pad-70) 70px;
  background:#fff;
}
.section-head{
  text-align:center;
  margin-bottom:38px;
}
.section-head p{
  margin:0 0 8px;
  color:var(--cyan);
  font-size:17px;
  font-weight:950;
}
.section-head h2{
  margin:0;
  color:var(--navy);
  font-size:34px;
  line-height:1.2;
  letter-spacing:-.045em;
  font-weight:950;
}
.section-head span{
  display:block;
  margin-top:11px;
  color:#263b5d;
  font-size:16px;
  font-weight:600;
}
.product-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.product-card{
  position:relative;
  min-height:250px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:var(--soft-shadow);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:34px 26px 22px;
}
.pill{
  position:absolute;
  top:14px;
  left:14px;
  height:27px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  background:var(--cyan);
  color:#fff;
  font-size:13px;
  font-weight:900;
}
.product-logo{
  height:74px;
  min-width:100px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:13px 0 20px;
  font-weight:950;
}
.product-logo.youtube{color:#ff1616;font-size:54px}
.product-logo.chatgpt{color:#111;font-size:68px}
.product-logo.gemini{color:#6578ff;font-size:72px}
.product-logo.duolingo{font-size:58px}
.product-logo.watcha{color:#ff126f;font-size:70px}
.product-logo.wavve{color:#1e64ff;font-size:36px}
.product-logo.capcut{color:#000;font-size:52px}
.product-card h3{
  margin:0 0 8px;
  color:#0f274e;
  font-size:20px;
  font-weight:950;
}
.product-card p{
  margin:0 0 20px;
  color:#263f61;
  font-size:15px;
  line-height:1.5;
  font-weight:600;
}
.product-card .price{
  margin:-14px 0 12px;
  font-size:16px;
  font-weight:950;
  color:var(--navy);
}
.product-card a.card-cta{
  margin-top:auto;
  width:190px;
  height:38px;
  border:1.5px solid #8aa0b7;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#12305c;
  font-size:15px;
  font-weight:850;
}
.product-card a.card-cta.disabled{background:#f0f4f8;border-color:#d1dae4;color:var(--muted);cursor:not-allowed}

/* Why */
.why-section{
  padding:46px var(--side-pad-80) 58px;
  color:#fff;
  background:
    radial-gradient(circle at 75% 15%, rgba(0,194,214,.18), transparent 22%),
    linear-gradient(90deg,var(--primary),var(--deep) 56%,var(--primary));
}
.section-head.dark h2{color:#fff}
.why-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.why-grid article{
  text-align:center;
  padding:8px 20px 0;
}
.why-icon{
  width:78px;
  height:78px;
  margin:0 auto 18px;
  border:2px solid rgba(255,255,255,.75);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:36px;
}
.why-grid h3{
  margin:0 0 10px;
  font-size:18px;
  font-weight:950;
}
.why-grid p{
  margin:0;
  color:#d8e7f5;
  font-size:15px;
  line-height:1.65;
  font-weight:550;
}

/* How */
.how-section{
  padding:48px var(--side-pad-70) 82px;
  background:#fff;
}
.steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.steps article{
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px;
  box-shadow:var(--soft-shadow);
}
.steps b{
  color:var(--cyan);
  font-size:16px;
}
.steps h3{
  margin:14px 0 8px;
  color:var(--navy);
  font-size:19px;
  font-weight:950;
}
.steps p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
  font-weight:600;
}

/* Footer (신규 추가 — clean 목업엔 없지만 실서비스엔 필요) */
.footer{
  background:var(--primary);
  color:#dbeff5;
  padding:34px var(--side-pad-54) 22px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.55fr .75fr .9fr .9fr 1.35fr;
  gap:34px;
}
.footer-logo img{width:180px}
.footer-brand{
  font-size:32px;
  font-weight:950;
  letter-spacing:-.05em;
  color:var(--cyan);
  line-height:1;
  margin-bottom:4px;
}
.footer p{margin:16px 0 0;color:#d9e5f1;font-size:15px;line-height:1.75}
.footer h6{margin:10px 0 15px;font-size:17px;font-weight:950;color:#fff}
.footer ul{list-style:none;margin:0;padding:0;display:grid;gap:10px;color:#d9e5f1;font-size:14px;line-height:1.4}
.footer-bottom{margin-top:26px;padding-top:15px;border-top:1px solid rgba(255,255,255,.15);text-align:center;color:#d7e3ef;font-size:13px;line-height:1.8}

/* ===== Responsive ===== */
@media(max-width:1180px){
  .site-header{padding:0 34px}
  .desktop-nav{gap:30px}
  .hero{padding:50px 52px;grid-template-columns:1fr}
  .hero-visual{height:260px;max-width:720px}
  .hero-visual .youtube{left:24px;top:0}
  .hero-visual .chatgpt{left:190px;top:0}
  .hero-visual .gemini{left:356px;top:0}
  .hero-visual .duolingo{left:116px;top:154px}
  .hero-visual .watcha{left:282px;top:154px}
  .hero-visual .wavve{left:448px;top:154px}
  .footer-grid{grid-template-columns:1.4fr repeat(3,1fr)}
}

@media(max-width:900px){
  .desktop-nav,.header-actions{display:none}
  .menu-btn{display:block}
  .site-header{height:76px;padding:0 24px}
  .brand img{width:154px}
  .brand-text{font-size:24px}
  .mobile-menu.open{display:block}

  .hero{
    min-height:auto;
    display:block;
    padding:38px 30px 34px;
  }
  .hero-copy h1{font-size:38px;line-height:1.18}
  .hero-copy p{margin-top:22px;font-size:15px;line-height:1.7}
  .hero-buttons{
    margin-top:24px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .btn-large{height:48px;min-width:0;padding:0 12px;font-size:14px}
  .trust-row{
    margin-top:24px;
    padding:13px 12px;
    border-radius:8px;
    background:#fff;
    box-shadow:0 8px 22px rgba(17,42,76,.06);
    justify-content:center;
    gap:10px;
    font-size:12px;
    white-space:nowrap;
  }
  .trust-row i{height:14px}
  .hero-visual{display:none}

  .products-section{padding:30px 16px 0}
  .section-head{margin-bottom:22px}
  .section-head p{font-size:13px}
  .section-head h2{font-size:22px}
  .section-head span{font-size:13px}
  .product-grid{
    grid-template-columns:repeat(2,1fr);
    gap:12px;
  }
  .product-card{
    min-height:178px;
    padding:28px 10px 14px;
    border-radius:8px;
  }
  .pill{
    top:8px;
    left:8px;
    height:20px;
    padding:0 8px;
    font-size:10px;
  }
  .product-logo{
    height:46px;
    margin:8px 0 10px;
  }
  .product-logo.youtube{font-size:34px}
  .product-logo.chatgpt{font-size:43px}
  .product-logo.gemini{font-size:45px}
  .product-logo.duolingo{font-size:36px}
  .product-logo.watcha{font-size:43px}
  .product-logo.wavve{font-size:22px}
  .product-logo.capcut{font-size:32px}
  .product-card h3{font-size:14px;margin-bottom:5px}
  .product-card p{font-size:10px;line-height:1.45;margin-bottom:10px}
  .product-card .price{font-size:12px;margin:-6px 0 8px}
  .product-card a.card-cta{
    width:112px;
    height:26px;
    border-radius:5px;
    font-size:10px;
  }

  .why-section{padding:28px 16px 30px;margin-top:24px}
  .why-grid{grid-template-columns:repeat(3,1fr);gap:4px}
  .why-grid article{padding:0 4px}
  .why-icon{
    width:50px;
    height:50px;
    font-size:24px;
    margin-bottom:10px;
  }
  .why-grid h3{font-size:12px;margin-bottom:7px}
  .why-grid p{font-size:9px;line-height:1.5}

  .how-section{padding:28px 16px 44px}
  .steps{grid-template-columns:1fr 1fr;gap:12px}
  .steps article{padding:18px 14px}

  .footer{padding:26px 20px 30px}
  .footer-grid{grid-template-columns:1fr;gap:20px}
  .footer-logo img{width:150px}
}

@media(max-width:440px){
  .page{width:100%}
  .hero{padding:34px 24px 28px}
  .hero-copy h1{font-size:34px}
  .hero-buttons{grid-template-columns:1fr 1fr}
  .trust-row{
    transform:scale(.94);
    transform-origin:left center;
    width:106%;
  }
}
