/* pointfarm.xyz 메인 — 앱 1.4 확정 디자인(검정 #16161A · 흰 카드 · 회색 바탕). 상태 페이지는 site.css 를 그대로 쓴다. */
:root {
  --ink: #16161A;
  --ink-2: #2A2A30;
  --line-dark: #3A3A42;
  --bg: #F2F3F5;
  --card: #FFFFFF;
  --sub: #55555C;
  --mute: #6B6B73;
  --soft: #C9C9CF;
  --hair: #E4E5E8;
  --green: #16A34A;
  --mint: #2ECC71;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  font-variant-numeric: tabular-nums; overflow-x: hidden; -webkit-font-smoothing: antialiased; word-break: keep-all;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 10; padding: 12px 18px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 16px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 검정 띠 */
.band { background: var(--ink); color: #fff; border-radius: 0 0 48px 48px; padding-bottom: 40px; overflow: hidden; }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; font-weight: 800; color: #fff; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav-link { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 600; padding: 12px 14px; border-radius: 12px; }
.nav-link:hover { color: #fff; }
.nav-cta { margin-left: 8px; background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; padding: 12px 20px; border-radius: 999px; }

/* 언어 선택 (한국어 · English · 日本語) — 모바일에서도 보인다 (nav-link 만 숨긴다). */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--soft); font-size: 15px; font-weight: 600; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: #fff; background: rgba(255, 255, 255, .08); }
.lang summary:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.lang .ico { width: 18px; height: 18px; stroke-width: 1.8; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 156px; padding: 6px; display: flex; flex-direction: column; background: var(--card); border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .28); }
.lang-menu a { padding: 11px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.lang-menu a:hover { background: var(--bg); }
.lang-menu a[aria-current="page"] { color: var(--green); }
.lang-menu a[aria-current="page"]::after { content: " ✓"; }

.hero { padding-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 56px; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.eyebrow { margin-bottom: 18px; font-size: 16px; font-weight: 600; color: var(--soft); }
.hero h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.hero-lead { margin-top: 24px; max-width: 520px; font-size: 19px; line-height: 1.65; color: var(--soft); }
.hero-note { margin-top: 18px; font-size: 14px; color: #8E8E95; }
.stores { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 16px; text-decoration: none; font-size: 17px; font-weight: 700; }
.store-light { background: #fff; color: var(--ink); }
.store-dark { background: var(--ink-2); color: #fff; }

.hero-visual { flex: 0 1 420px; position: relative; display: flex; justify-content: center; padding-top: 24px; }
.phone { width: 300px; padding: 10px; border-radius: 48px; background: #0B0B0D; }
.phone img { display: block; width: 100%; height: auto; border-radius: 38px; }
.hero-phone { border: 1px solid #33333A; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }

.toasts { position: absolute; right: 0; top: 72px; width: 172px; height: 56px; }
.toast { position: absolute; inset: 0; opacity: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 16px 32px rgba(0, 0, 0, .25); }
.toast b { font-size: 17px; font-weight: 800; color: var(--green); }
.toast span { font-size: 14px; font-weight: 600; color: var(--sub); }

.today-wrap { position: absolute; left: 0; bottom: 64px; }
.today { width: 236px; padding: 18px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 20px 40px rgba(0, 0, 0, .28); }
.today-title { margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.today ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.today li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check { width: 24px; height: 24px; flex: none; border-radius: 12px; border: 2px solid var(--soft); color: #fff; display: flex; align-items: center; justify-content: center; }
.check .ico { width: 13px; height: 13px; stroke-width: 3.2; }
.today-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid #E7E8EB; display: grid; }
.today-foot p { grid-area: 1 / 1; font-size: 13px; }
.note-a { font-weight: 600; color: var(--sub); }
.note-b { opacity: 0; display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--green); }
.note-b .ico { width: 16px; height: 16px; stroke-width: 2.2; }

.marquee-box { margin-top: 72px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { display: flex; width: max-content; }
.marquee ul { list-style: none; margin: 0; padding: 0 12px 0 0; display: flex; gap: 12px; }
.marquee li { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-dark); color: #E4E5E8; font-size: 15px; font-weight: 600; white-space: nowrap; }
.marquee li::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--mint); }

/* 세 줄 약속 */
.promises { padding-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.promise { flex: 1 1 220px; max-width: 360px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--line-dark); }
.promise i { width: 36px; height: 36px; flex: none; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.promise .ico { width: 18px; height: 18px; }

/* 섹션 공통 */
.section { padding-top: 120px; }
.kicker { font-size: 16px; font-weight: 700; color: var(--sub); }
.section h2 { margin-top: 10px; font-size: clamp(28px, 4.5vw, 40px); line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; }
.grid3 { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.card { height: 100%; padding: 32px; border-radius: 28px; background: var(--card); }
.card h3 { font-size: 22px; font-weight: 800; }
.card p { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--sub); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.card-top span { font-size: 15px; font-weight: 700; color: var(--mute); }
.tile { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.tile .ico { width: 24px; height: 24px; }
.tile-soft { width: 44px; height: 44px; border-radius: 14px; background: var(--bg); color: var(--ink); margin-bottom: 22px; }
.tile-soft .ico { width: 22px; height: 22px; }
.trust .card h3 { font-size: 20px; }
.trust .card p { font-size: 15px; line-height: 1.7; }

/* 기능 */
.features { display: flex; flex-direction: column; gap: 24px; }
.feat { border-radius: 36px; background: var(--card); overflow: hidden; }
.feat-label { font-size: 15px; font-weight: 700; color: var(--green); }
.feat h3 { margin-top: 10px; font-size: 32px; line-height: 1.35; font-weight: 800; }
.feat-text { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--sub); }
.feat-wide { padding: 56px 56px 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.feat-wide.reverse { flex-wrap: wrap-reverse; }
.feat-copy { flex: 1 1 380px; min-width: 0; padding-bottom: 56px; align-self: center; }
.feat-shot { flex: 0 1 300px; height: 460px; overflow: hidden; }
.feat-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.feat-tall { height: 100%; padding: 48px 48px 0; display: flex; flex-direction: column; gap: 32px; }
.feat-tall h3 { font-size: 28px; }
.feat-tall .feat-text { margin-top: 14px; font-size: 16px; }
.feat-tall .feat-shot { flex: none; height: 380px; display: flex; justify-content: center; }
.feat-tall .phone { width: 280px; height: fit-content; border-radius: 46px; }
.feat-tall .phone img { border-radius: 36px; }
.fine { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--mute); }
.chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 10px 16px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 600; }

.goal { margin-top: 28px; max-width: 380px; padding: 18px 20px; border-radius: 20px; background: var(--bg); }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 700; }
.goal-pct { font-size: 15px; font-weight: 800; }
.goal-track { margin-top: 10px; height: 10px; border-radius: 5px; background: var(--hair); overflow: hidden; }
.goal-fill { height: 100%; border-radius: 5px; background: #FF5A4E; width: 72%; }

.mini { margin-top: 22px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--bg); }
.mini-tile { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--ink); color: var(--mint); display: flex; align-items: center; justify-content: center; }
.mini-tile .ico { width: 24px; height: 24px; stroke-width: 2.2; }
.mini-body { flex: 1; min-width: 0; }
.mini-head { display: grid; font-size: 14px; }
.mini-head span { grid-area: 1 / 1; font-weight: 700; }
.mini-head .harvest { justify-self: end; opacity: 0; font-weight: 800; color: var(--green); }
.mini-track { margin-top: 8px; height: 8px; border-radius: 4px; background: var(--hair); overflow: hidden; }
.mini-fill { width: 6%; height: 100%; border-radius: 4px; background: var(--green); }

.ranks { margin-top: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ranks small { margin-right: 4px; font-size: 13px; font-weight: 700; color: var(--sub); }
.rank { min-width: 64px; text-align: center; padding: 10px 0; border-radius: 12px; background: var(--bg); color: var(--mute); font-size: 15px; font-weight: 800; }

/* 다운로드 · 바닥 */
.download { padding: 72px 48px; border-radius: 40px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; text-align: center; }
.download img { width: 72px; height: 72px; border-radius: 18px; }
.download h2 { margin-top: 24px; }
.download p { margin-top: 14px; font-size: 17px; color: var(--soft); }
.download .stores { margin-top: 32px; justify-content: center; }
.footer { padding-top: 64px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer strong { font-size: 17px; font-weight: 800; }
.footer-tag { margin-top: 8px; font-size: 14px; color: var(--sub); }
.footer-biz { margin-top: 20px; font-size: 13px; line-height: 1.7; color: var(--mute); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-content: flex-start; }
.footer nav a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 12px 0; }
.footer nav a:hover { color: var(--sub); }

/* ── 움직임 ── */
@keyframes pfUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pfRise { from { opacity: 0; transform: translateY(90px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pfSlide { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes pfFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.in { animation: pfUp .8s var(--ease) both; }
.in-2 { animation-delay: .08s; } .in-3 { animation-delay: .16s; } .in-4 { animation-delay: .24s; } .in-5 { animation-delay: .32s; }
.rise { animation: pfRise 1s var(--ease) .35s both; }
.float { animation: pfFloat 6s ease-in-out 1.4s infinite; }
.today-wrap { animation: pfSlide .8s var(--ease) .9s both; }

/* 오늘 할 일: 하나씩 체크 → 상자 열림 (8초 반복) */
@keyframes pfC1 { 0%, 6% { background: transparent; border-color: var(--soft); transform: scale(1); } 9% { background: var(--green); border-color: var(--green); transform: scale(1.3); } 12%, 90% { background: var(--green); border-color: var(--green); transform: scale(1); } 94%, 100% { background: transparent; border-color: var(--soft); } }
@keyframes pfC2 { 0%, 24% { background: transparent; border-color: var(--soft); transform: scale(1); } 27% { background: var(--green); border-color: var(--green); transform: scale(1.3); } 30%, 90% { background: var(--green); border-color: var(--green); transform: scale(1); } 94%, 100% { background: transparent; border-color: var(--soft); } }
@keyframes pfC3 { 0%, 42% { background: transparent; border-color: var(--soft); transform: scale(1); } 45% { background: var(--green); border-color: var(--green); transform: scale(1.3); } 48%, 90% { background: var(--green); border-color: var(--green); transform: scale(1); } 94%, 100% { background: transparent; border-color: var(--soft); } }
@keyframes pfNoteA { 0%, 49% { opacity: 1; transform: none; } 52%, 91% { opacity: 0; transform: translateY(-8px); } 95%, 100% { opacity: 1; transform: none; } }
@keyframes pfNoteB { 0%, 50% { opacity: 0; transform: translateY(8px) scale(.9); } 54% { opacity: 1; transform: scale(1.08); } 57%, 90% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; } }
@keyframes pfShake { 0%, 54%, 66%, 100% { transform: rotate(0); } 57% { transform: rotate(-14deg); } 60% { transform: rotate(12deg); } 63% { transform: rotate(-6deg); } }
.c1 { animation: pfC1 8s ease-out 1.6s infinite; }
.c2 { animation: pfC2 8s ease-out 1.6s infinite; }
.c3 { animation: pfC3 8s ease-out 1.6s infinite; }
.note-a { animation: pfNoteA 8s ease-out 1.6s infinite; }
.note-b { animation: pfNoteB 8s ease-out 1.6s infinite; }
.note-b .ico { animation: pfShake 8s ease-out 1.6s infinite; }

/* 포인트 알림 */
@keyframes pfToast { 0% { opacity: 0; transform: translateY(16px) scale(.9); } 6% { opacity: 1; transform: none; } 26% { opacity: 1; transform: translateY(-6px); } 33%, 100% { opacity: 0; transform: translateY(-28px); } }
.toast { animation: pfToast 6s ease-out infinite; }
.toast:nth-child(1) { animation-delay: 1.8s; } .toast:nth-child(2) { animation-delay: 3.8s; } .toast:nth-child(3) { animation-delay: 5.8s; }

/* 흐르는 띠 */
@keyframes pfMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { animation: pfMarquee 42s linear infinite; }

/* 교환 목표 막대: 빨강 → 주황 → 초록 (앱과 같은 색) */
@property --gp { syntax: '<integer>'; inherits: true; initial-value: 0; }
@keyframes pfGoal { 0%, 6% { --gp: 0; } 70%, 94% { --gp: 100; } 100% { --gp: 0; } }
@keyframes pfGoalColor { 0%, 6% { background: #FF5A4E; } 38% { background: #FFA62B; } 70%, 94% { background: var(--mint); } 100% { background: #FF5A4E; } }
.goal { animation: pfGoal 6s ease-in-out infinite; counter-reset: gp var(--gp); }
.goal-fill { width: calc(var(--gp) * 1%); animation: pfGoalColor 6s ease-in-out infinite; }
.goal-pct::after { content: counter(gp) "%"; }

/* 팜: 새싹이 자라고 막대가 참 */
@keyframes pfGrow { 0%, 8% { transform: scale(.45) translateY(6px); } 60%, 92% { transform: scale(1); } 100% { transform: scale(.45) translateY(6px); } }
@keyframes pfBar { 0%, 8% { width: 6%; } 60%, 92% { width: 100%; } 100% { width: 6%; } }
@keyframes pfHarvest { 0%, 58% { opacity: 0; transform: translateY(6px); } 62%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.mini-tile .ico { animation: pfGrow 5s cubic-bezier(.3, .7, .3, 1) infinite; transform-origin: 50% 100%; }
.mini-fill { animation: pfBar 5s cubic-bezier(.3, .7, .3, 1) infinite; }
.mini-head .harvest { animation: pfHarvest 5s ease-out infinite; }

/* 추첨: 3등 → 2등 → 1등 */
@keyframes pfR3 { 0%, 12% { background: var(--bg); color: var(--mute); transform: none; } 16% { background: var(--ink); color: #fff; transform: scale(1.15); } 20%, 88% { background: var(--ink); color: #fff; transform: none; } 94%, 100% { background: var(--bg); color: var(--mute); } }
@keyframes pfR2 { 0%, 32% { background: var(--bg); color: var(--mute); transform: none; } 36% { background: var(--ink); color: #fff; transform: scale(1.15); } 40%, 88% { background: var(--ink); color: #fff; transform: none; } 94%, 100% { background: var(--bg); color: var(--mute); } }
@keyframes pfR1 { 0%, 52% { background: var(--bg); color: var(--mute); transform: none; } 56% { background: var(--green); color: #fff; transform: scale(1.2); } 60%, 88% { background: var(--green); color: #fff; transform: none; } 94%, 100% { background: var(--bg); color: var(--mute); } }
.r3 { animation: pfR3 6s ease-out infinite; }
.r2 { animation: pfR2 6s ease-out infinite; }
.r1 { animation: pfR1 6s ease-out infinite; }

@keyframes pfBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-4deg); } }
.download img { animation: pfBob 3.2s ease-in-out infinite; }

/* 마우스를 올리면 */
.lift { transition: transform .3s var(--ease), box-shadow .3s; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(22, 22, 26, .10); }
.lift .tile, .lift .tile-soft { transition: transform .3s var(--ease); }
.lift:hover .tile, .lift:hover .tile-soft { transform: rotate(-8deg) scale(1.08); }
.lift .phone img { transition: transform .5s var(--ease); }
.lift:hover .phone img { transform: translateY(-14px); }
.store, .nav-cta { transition: transform .2s var(--ease), box-shadow .2s; }
.store:hover, .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.store:active, .nav-cta:active { transform: scale(.97); }
a:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

/* 스크롤하면 나타나기 — 스크립트가 rv-on 을 붙였을 때만 숨긴다 (스크립트가 없으면 그냥 보임) */
.rv-on .rv { opacity: 0; transform: translateY(48px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv-on .rv-phone { opacity: 0; transform: translateY(140px); transition: opacity 1s var(--ease) .1s, transform 1s var(--ease) .1s; }
.rv-on .rv.on, .rv-on .rv-phone.on { opacity: 1; transform: none; }

@media (max-width: 480px) {
  /* 언어 선택이 들어가 머리가 넘친다 (일본어 브랜드명이 길다). 바로 아래 큰 다운로드 버튼이 있어 머리의 '앱 받기' 는 뺀다. */
  .nav-cta { display: none; }
}

@media (max-width: 720px) {
  .nav-link { display: none; }
  .lang summary span { display: none; }
  .band { border-radius: 0 0 32px 32px; }
  .hero { padding-top: 32px; gap: 40px; }
  .hero-lead { font-size: 17px; }
  .phone { width: 260px; }
  .today-wrap { bottom: 32px; }
  .section { padding-top: 88px; }
  .feat-wide { padding: 32px 24px 0; }
  .feat-tall { padding: 32px 24px 0; }
  .feat h3 { font-size: 26px; }
  .feat-copy { padding-bottom: 32px; }
  .download { padding: 56px 24px; }
  .rank { min-width: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .note-b, .toast, .mini-head .harvest { display: none; }
  .goal-fill { width: 72%; background: #FFA62B; }
  .goal-pct::after { content: "72%"; }
}
