/* ============================================================
   コイノワ (KOINOWA) — landing page
   palette: cream #FBF6F0 / ink #3B2F2A / coral #D14B58
            bordeaux #6E3B41 / gold #B99B5B
   type:    Shippori Mincho (display) + Noto Sans JP (body)
   ============================================================ */

:root {
  --cream: #FBF6F0;
  --paper: #FFFDFB;
  --ink: #3B2F2A;
  --ink-soft: #7A6A62;
  --coral: #D14B58;
  --coral-deep: #B93E4A;
  --bordeaux: #63353B;
  --bordeaux-deep: #522B30;
  --gold: #B99B5B;
  --line: rgba(59, 47, 42, 0.14);
  --shadow-soft: 0 10px 30px rgba(59, 47, 42, 0.10);
  --shadow-pop: 0 14px 34px rgba(209, 75, 88, 0.28);
  --radius: 18px;
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(209, 75, 88, 0.72);
  outline-offset: 3px;
}
[id] { scroll-margin-top: 5.2rem; }

.sp-br { display: inline; }
.pc-br { display: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- grain ---------- */
.grain, .hero, .bonus { position: relative; }
.hero::before, .bonus::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 1em 1.7em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: none; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-color 0.2s ease-out;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  color: #FFF; background: linear-gradient(180deg, #DB5A67 0%, var(--coral) 55%, var(--coral-deep) 100%);
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(209, 75, 88, 0.34); }

.btn-outline {
  color: var(--ink); background: rgba(255, 253, 251, 0.75);
  box-shadow: inset 0 0 0 1.5px rgba(59, 47, 42, 0.35);
  backdrop-filter: blur(2px);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }

.btn-outline-dark {
  color: var(--ink); background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(59, 47, 42, 0.5);
}
.btn-outline-dark:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }

.btn-light {
  color: var(--bordeaux-deep); background: var(--cream);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.btn-light:hover { transform: translateY(-2px); }

.btn-large { font-size: 1.1rem; padding: 1.1em 2.2em; }

.linklike {
  background: none; border: none; color: inherit;
  text-decoration: underline; text-underline-offset: 3px;
  font-size: inherit; line-height: inherit;
}
.linklike:hover { opacity: 0.75; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(251, 246, 240, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0.65rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 0.45rem; }
.brand-mark { display: inline-flex; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  letter-spacing: 0.06em;
}
.header-nav { display: none; gap: 1.6rem; font-size: 0.88rem; font-weight: 500; }
.header-nav a { position: relative; padding: 0.2rem 0; }
.header-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px; background: var(--coral);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease-out;
}
.header-nav a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { padding: 6.2rem 1.25rem 3.2rem; overflow: hidden; }
.hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; gap: 2.4rem; align-items: center;
}
.hero-badge { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.hero-badge span {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--coral-deep); background: rgba(209, 75, 88, 0.09);
  border: 1px solid rgba(209, 75, 88, 0.25);
  padding: 0.28em 0.9em; border-radius: 999px;
}
.hero-catch {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.55rem); line-height: 1.5;
  letter-spacing: 0.02em; margin-bottom: 1.1rem;
}
@media (max-width: 359px) {
  .hero-catch { font-size: 1.38rem; }
}
.hero-catch em {
  font-style: normal; color: var(--coral);
  background-image: linear-gradient(transparent 68%, rgba(209, 75, 88, 0.18) 68%);
}
.hero-sub { color: var(--ink-soft); font-weight: 500; margin-bottom: 1.7rem; }
.hero-actions { display: flex; flex-direction: column; gap: 0.8rem; }
.hero-actions .btn { width: 100%; }
.hero-note { margin-top: 0.9rem; font-size: 0.78rem; color: var(--ink-soft); }

.hero-visual { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.hero-photo {
  border-radius: 26px 26px 26px 90px; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 42%; }
.hero-reward-card {
  position: absolute; left: -0.6rem; bottom: -1.4rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 0.8rem 1.3rem;
  box-shadow: var(--shadow-soft); text-align: center;
  animation: floaty 4.5s ease-in-out infinite;
}
.hero-reward-label { font-size: 0.72rem; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; }
.hero-reward-amount { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.15; color: var(--coral-deep); }
.hero-reward-amount strong { font-size: 2.1rem; letter-spacing: -0.02em; }
.hero-reward-note { font-size: 0.78rem; font-weight: 700; color: var(--ink); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- free strip ---------- */
.free-strip { background: var(--ink); color: var(--cream); padding: 1.35rem 1.25rem; }
.free-strip ul {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0.9rem; text-align: center;
}
.free-strip li { font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; justify-content: center; gap: 0.8em; }
.free-strip em {
  font-style: normal; font-family: var(--font-display);
  color: var(--gold); font-size: 0.85rem; letter-spacing: 0.14em;
  border: 1px solid rgba(185, 155, 91, 0.55); border-radius: 999px;
  padding: 0.1em 0.85em;
}
.free-strip li + li { position: relative; }
.free-strip li + li::before {
  content: ""; position: absolute; top: -0.45rem; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: rgba(251, 246, 240, 0.4);
}

/* ---------- section head ---------- */
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-lead { color: var(--coral-deep); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.12em; margin-bottom: 0.5rem; }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: 0.04em; line-height: 1.4;
}
.section-title::after {
  content: ""; display: block; width: 34px; height: 2px;
  background: var(--gold); margin: 1rem auto 0;
}

/* ---------- pains ---------- */
.pains { padding: 4.2rem 1.25rem 4.6rem; max-width: 760px; margin: 0 auto; }
.pains-list { display: grid; gap: 1rem; }
.pains-list li {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px 18px 18px 18px; padding: 1rem 1.3rem;
  color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
  max-width: 560px; box-shadow: 0 4px 14px rgba(59, 47, 42, 0.05);
}
.pains-list li:nth-child(even) { margin-left: auto; border-radius: 18px 4px 18px 18px; }
.pains-answer {
  text-align: center; margin-top: 2.4rem;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
}
.pains-answer strong { color: var(--coral); }

/* ---------- bonus ---------- */
.bonus { background: linear-gradient(180deg, var(--bordeaux) 0%, var(--bordeaux-deep) 100%); color: var(--cream); padding: 4.6rem 1.25rem 4rem; }
.bonus-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.bonus-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem); line-height: 1.5; letter-spacing: 0.04em;
}
.bonus-amount { display: block; font-size: clamp(2.4rem, 7vw, 3.6rem); color: #F3D9A0; line-height: 1.2; margin: 0.4rem 0; }
.bonus-amount strong { font-size: 1.25em; letter-spacing: -0.01em; }
.bonus-amount small { font-size: 0.42em; margin-left: 0.1em; }
.bonus-lead { margin-top: 1rem; font-weight: 500; opacity: 0.94; }
.bonus-steps {
  margin: 2.6rem auto 0; max-width: 860px;
  display: grid; gap: 1.4rem; text-align: left;
}
.bonus-steps li {
  background: rgba(251, 246, 240, 0.07);
  border: 1px solid rgba(251, 246, 240, 0.18);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.3rem; position: relative;
}
.bonus-step-num {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--bordeaux-deep); background: #F3D9A0;
  padding: 0.22em 0.8em; border-radius: 999px; margin-bottom: 0.7rem;
}
.bonus-steps h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; margin-bottom: 0.35rem; }
.bonus-steps p { font-size: 0.9rem; opacity: 0.85; }
.bonus-action { margin-top: 2.6rem; }
.bonus-action .btn { width: 100%; max-width: 460px; font-size: 0.95rem; }
@media (max-width: 420px) {
  .bonus-action .btn { font-size: 0.86rem; padding: 1em 1em; }
}
.bonus-contact { margin-top: 1rem; font-size: 0.88rem; opacity: 0.9; }
.bonus-notes { margin-top: 1.8rem; font-size: 0.74rem; opacity: 0.62; display: grid; gap: 0.15rem; }

/* ---------- 老虎机式抽奖（bonus 区内，金色 x 酒红）
   动画技法参考 josex2r/jQuery-SlotMachine（MIT）：
   竖向 strip 真 translateY 滚动 + 转动 blur 分档 + 窗口上下渐隐遮罩 + ease-out 停轮 ---------- */
.lottery { margin-top: 1.2rem; }   /* 机器往上提：紧贴 lead 文案 */
.lottery-machine {
  position: relative;
  max-width: 480px; margin: 0 auto;
  background: linear-gradient(180deg, #4A2530 0%, #331820 100%);
  border: 2px solid rgba(243, 217, 160, 0.75);
  border-radius: 22px; padding: 1.5rem 1.1rem 1.2rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
/* 顶部跑灯：抽奖时交替闪烁 */
.lottery-lights {
  position: absolute; top: 10px; left: 18px; right: 18px;
  display: flex; justify-content: space-between;
}
.lottery-lights i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7A5A2E; transition: background-color 0.2s, box-shadow 0.2s;
}
.lottery-lights.on i { background: #F3D9A0; box-shadow: 0 0 8px 2px rgba(243, 217, 160, 0.65); }
.lottery-lights.on i:nth-child(odd) { background: #FFF6DC; }
.lottery-lights.on i:nth-child(3n) { animation: lightblink 0.5s ease-in-out infinite alternate; }
@keyframes lightblink {
  from { box-shadow: 0 0 4px 1px rgba(243, 217, 160, 0.4); }
  to { box-shadow: 0 0 12px 4px rgba(243, 217, 160, 0.9); }
}
.lottery-reels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
  background: linear-gradient(180deg, #2A1218 0%, #1E0D12 100%);
  border-radius: 16px; padding: 0.75rem;
  border: 3px solid #F3D9A0;
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.55);
}
.reel {
  position: relative;
  height: 4rem; overflow: hidden; border-radius: 10px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2E7D6 55%, #E4D4BC 100%);
  border: 1px solid rgba(59, 47, 42, 0.25);
  box-shadow: inset 0 6px 12px rgba(59, 47, 42, 0.16), inset 0 -6px 12px rgba(59, 47, 42, 0.16);
}
/* 窗口上下渐隐（滚进滚出有纵深） */
.reel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(59,47,42,0.34) 0%, rgba(59,47,42,0) 26%, rgba(59,47,42,0) 74%, rgba(59,47,42,0.34) 100%);
}
/* 竖向字符条：translateY 真滚动 */
.reel-strip { will-change: transform; }
.reel-strip span {
  display: flex; align-items: center; justify-content: center;
  height: 4rem;
  font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--ink);
}
.reel.spinning .reel-strip { filter: blur(4px); }
.reel.decel .reel-strip { filter: blur(1.5px); }
.reel.hit .reel-strip { filter: none; animation: reelhit 0.5s cubic-bezier(0.22, 1.6, 0.36, 1); }
@keyframes reelhit {
  0%, 100% { transform: translateY(var(--reel-stop)); }
  55% { transform: translateY(calc(var(--reel-stop) + 0.16rem)); }
}
.reel.hit .reel-strip span:last-child { color: var(--coral); }
.lottery-btn {
  margin-top: 1.1rem; width: 100%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  background: linear-gradient(180deg, #E4697A 0%, var(--coral) 55%, var(--coral-deep) 100%);
  color: #FFF; font-family: var(--font-body); font-weight: 700; font-size: 1.02rem;
  border: none; border-radius: 14px; padding: 0.95em 1em;
  box-shadow: 0 10px 26px rgba(209, 75, 88, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease-out, filter 0.15s ease-out;
}
.lottery-btn:hover { filter: brightness(1.07); }
.lottery-btn:active { transform: scale(0.98); }
.lottery-btn[disabled] { pointer-events: none; filter: grayscale(0.35) brightness(0.9); }
.lottery-note { margin-top: 0.7rem; font-size: 0.74rem; opacity: 0.7; }
/* 当選ライン提示条 */
.lottery-prizebar {
  margin-top: 0.8rem; display: flex; align-items: center; justify-content: center; gap: 0.5em;
  font-size: 0.8rem; color: #F3D9A0;
}
.lottery-prizebar .prize-label { opacity: 0.75; }
.lottery-prizebar .prize-chip {
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em;
  background: rgba(243, 217, 160, 0.12); border: 1px solid rgba(243, 217, 160, 0.5);
  border-radius: 999px; padding: 0.15em 0.9em;
}
/* lead 里的最高额小字 */
.bonus-lead-max { display: inline-block; margin-left: 0.4em; font-size: 0.72em; opacity: 0.72; }
/* 中奖结果卡 */
.lottery-result {
  max-width: 480px; margin: 0 auto;
  background: linear-gradient(180deg, #FFF8EC 0%, #FFEFCE 100%);
  border: 2px solid #E9C877; border-radius: 20px;
  padding: 1.7rem 1.4rem 1.5rem; text-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  animation: result-in 0.5s ease-out;
}
@keyframes result-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lottery-result-badge { font-size: 0.95rem; font-weight: 700; color: #8A6A1F; }
.lottery-result-amount { font-family: var(--font-display); font-size: clamp(3.2rem, 10vw, 4.6rem); font-weight: 600; color: var(--coral-deep); line-height: 1.1; margin: 0.35rem 0 0.1rem; }
.lottery-result-amount small { font-size: 0.4em; margin-left: 0.08em; }
.lottery-result-name { font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.lottery-result-note { margin-top: 0.7rem; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.8; }
.lottery-claim {
  margin-top: 1.2rem; width: 100%; max-width: 380px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  background: var(--coral); color: #FFF; font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  border: none; border-radius: 12px; padding: 0.9em 1em;
  box-shadow: 0 10px 24px rgba(209, 75, 88, 0.35);
  transition: background-color 0.2s ease-out, transform 0.2s ease-out;
}
.lottery-claim:hover { background: var(--coral-deep); transform: translateY(-1px); }

/* ---------- features ---------- */
.features { padding: 4.6rem 1.25rem; max-width: 1020px; margin: 0 auto; }
.features-grid { display: grid; gap: 1.6rem; }
.feature {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: 0 6px 18px rgba(59, 47, 42, 0.05);
}
.feature img { border-radius: 12px; margin-bottom: 1.1rem; }
.feature h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; }
.feature h3::before { content: "― "; color: var(--gold); }
.feature p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- reports ---------- */
.reports { padding: 4.6rem 1.25rem; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reports-grid { max-width: 980px; margin: 0 auto; display: grid; gap: 1.8rem; }
.report { display: grid; gap: 0.9rem; align-content: start; }
.report img { border-radius: var(--radius); box-shadow: var(--shadow-soft); aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; width: 100%; }
.report figcaption { display: grid; gap: 0.4rem; }
.report-pair { font-size: 0.78rem; font-weight: 700; color: var(--gold); letter-spacing: 0.08em; }
.report q {
  font-family: var(--font-display); font-size: 1.02rem; line-height: 1.8;
  quotes: "「" "」";
}
.report-textcard {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.reports-note { text-align: center; margin-top: 2.2rem; font-size: 0.74rem; color: var(--ink-soft); }

/* ---------- safety ---------- */
.safety { padding: 4.6rem 1.25rem; max-width: 1020px; margin: 0 auto; }
.safety-list { display: grid; gap: 1.6rem; max-width: 860px; margin: 0 auto; }
.safety-list li {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  display: grid; grid-template-columns: 56px 1fr; gap: 0.4rem 1.1rem; align-items: center;
}
.safety-list img { grid-row: span 2; }
.safety-list h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; }
.safety-list p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- howto ---------- */
.howto { padding: 4.6rem 1.25rem; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.howto-steps { max-width: 920px; margin: 0 auto; display: grid; gap: 2.2rem; counter-reset: step; }
.howto-steps li { position: relative; text-align: center; }
.howto-steps img { max-width: 300px; margin: 0 auto 1rem; border-radius: 12px; }
.howto-num {
  position: absolute; top: -0.9rem; left: 50%; transform: translateX(-50%);
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--coral); color: #FFF; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(209, 75, 88, 0.35);
}
.howto-steps h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; margin-bottom: 0.3rem; }
.howto-steps p { font-size: 0.88rem; color: var(--ink-soft); max-width: 300px; margin: 0 auto; }

/* ---------- faq ---------- */
.faq { padding: 4.6rem 1.25rem; max-width: 760px; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 2.6rem 1.15rem 0.2rem;
  font-weight: 700; font-size: 0.96rem;
  transition: color 0.2s ease-out;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0.4rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--coral);
  transition: transform 0.25s ease-out;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--coral-deep); }
.faq-a { padding: 0 0.2rem 1.3rem; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- final cta ---------- */
.final-cta {
  position: relative; padding: 5.4rem 1.25rem;
  background: var(--ink); color: var(--cream); overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/last_couple.jpg") center 40% / cover no-repeat;
  opacity: 0.28;
}
.final-cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(59, 47, 42, 0.55), rgba(59, 47, 42, 0.82));
}
.final-inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }
.final-catch {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 4.4vw, 2.2rem); line-height: 1.55; margin-bottom: 2rem;
}
.final-actions { display: grid; gap: 0.9rem; }
.final-actions .btn { width: 100%; }
.final-cta .btn-outline-dark { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(251, 246, 240, 0.6); }
.final-cta .btn-outline-dark:hover { box-shadow: inset 0 0 0 1.5px var(--cream); }
.store-badges { margin-top: 1.8rem; display: flex; justify-content: center; gap: 0.8rem; }
.store-badges img { border-radius: 8px; height: 44px; width: auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); text-align: center; padding: 3rem 1.25rem 2.2rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.08em; }
.footer-brand span { display: block; font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.34em; color: rgba(251, 246, 240, 0.55); margin-top: 0.2rem; }
.footer-links { margin: 1.6rem 0 1.2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; font-size: 0.82rem; }
.footer-links a { color: rgba(251, 246, 240, 0.8); transition: color 0.2s ease-out; }
.footer-links a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.footer-note { font-size: 0.74rem; color: rgba(251, 246, 240, 0.55); }
.footer-copy { font-size: 0.72rem; color: rgba(251, 246, 240, 0.4); margin-top: 0.4rem; }

/* ---------- floating fab stack (app download + chat) ---------- */
.fab-stack {
  position: fixed; right: 0.9rem; bottom: calc(1.2rem + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem;
}
.dl-fab, .chat-fab {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.8em 1.1em; border-radius: 999px;
  font-family: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: var(--shadow-pop);
  transition: transform 0.2s ease-out;
}
.dl-fab { background: var(--coral); color: #FFF; border: 2px solid var(--coral); animation: dl-pulse 2.4s ease-out infinite; text-decoration: none; }
.dl-fab-label, .chat-fab-label { line-height: 1; white-space: nowrap; }
.chat-fab { background: var(--paper); color: var(--coral); border: 2px solid var(--coral); }
.dl-fab:hover, .chat-fab:hover { transform: scale(1.05); }
.dl-fab:active, .chat-fab:active { transform: scale(0.96); }
.dl-fab.loading { opacity: 0.75; pointer-events: none; }
@keyframes dl-pulse {
  0% { box-shadow: var(--shadow-pop), 0 0 0 0 rgba(209, 75, 88, 0.45); }
  70% { box-shadow: var(--shadow-pop), 0 0 0 14px rgba(209, 75, 88, 0); }
  100% { box-shadow: var(--shadow-pop), 0 0 0 0 rgba(209, 75, 88, 0); }
}
.chat-fab-dot {
  position: absolute; top: 4px; right: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: #F3D9A0; border: 2px solid var(--paper);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(243, 217, 160, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(243, 217, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 217, 160, 0); }
}

.chat-drawer {
  position: fixed; right: 0.9rem; bottom: calc(0.9rem + env(safe-area-inset-bottom)); z-index: 60;
  width: min(360px, calc(100vw - 1.8rem)); height: min(560px, 78vh);
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(59, 47, 42, 0.25);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right;
  animation: drawer-in 0.28s ease-out;
}
/* 左上角拖拽把手：改聊天窗大小（桌面端；尺寸记忆在浏览器里） */
.chat-resize { position: absolute; left: 0; top: 0; width: 34px; height: 34px; cursor: nwse-resize; z-index: 3; }
.chat-resize::before {
  content: ""; position: absolute; left: 8px; top: 8px; width: 13px; height: 13px;
  border-left: 2px solid rgba(251, 246, 240, 0.55); border-top: 2px solid rgba(251, 246, 240, 0.55);
  border-radius: 4px 0 0 0; transition: border-color 0.2s ease-out;
}
.chat-resize:hover::before { border-color: #FFF; }
/* 手机上聊天窗近全屏，不需要拖拽把手 */
@media (max-width: 640px) {
  .chat-drawer { left: 0.5rem; right: 0.5rem; width: auto; height: min(88vh, 680px); }
  .chat-resize { display: none; }
}
.chat-drawer[hidden] { display: none; }
@keyframes drawer-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-head {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--ink); color: var(--cream); padding: 0.85rem 1rem;
}
.chat-head-avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(251, 246, 240, 0.55); flex-shrink: 0;
}
.chat-head-text { flex: 1; }
.chat-title { font-weight: 700; font-size: 0.92rem; }
.chat-status { font-size: 0.72rem; color: rgba(251, 246, 240, 0.7); display: flex; align-items: center; gap: 0.35em; }
.chat-online-dot { width: 7px; height: 7px; border-radius: 50%; background: #8FCB9B; display: inline-block; }
.chat-close {
  background: none; border: none; color: var(--cream);
  font-size: 1.5rem; line-height: 1; padding: 0.1rem 0.3rem; border-radius: 8px;
}
.chat-reset {
  display: grid; place-items: center; width: 2rem; height: 2rem;
  background: none; border: none; color: var(--cream); border-radius: 8px;
}
.chat-reset:hover, .chat-close:hover { background: rgba(251, 246, 240, 0.12); }
.chat-reset[hidden] { display: none; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: grid; gap: 0.7rem; align-content: start; background: var(--cream); }
.chat-msg { max-width: 82%; padding: 0.7rem 1rem; font-size: 0.88rem; line-height: 1.6; border-radius: 14px; }
.chat-msg p { margin: 0; }
.chat-msg--bot { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg--user { background: var(--coral); color: #FFF; border-bottom-right-radius: 4px; justify-self: end; }
.chat-row { display: flex; gap: 0.5rem; align-items: flex-end; justify-self: start; width: 100%; }
.chat-row .chat-msg { max-width: 88%; }
.chat-msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--line);
}
.chat-quick { display: flex; gap: 0.4rem; padding: 0.6rem 0.8rem; flex-wrap: wrap; border-top: 1px solid var(--line); }
.chat-quick button {
  font-size: 0.74rem; font-weight: 500; color: var(--coral-deep);
  background: rgba(209, 75, 88, 0.08); border: 1px solid rgba(209, 75, 88, 0.3);
  border-radius: 999px; padding: 0.35em 0.9em;
  transition: background-color 0.2s ease-out;
}
.chat-quick button:hover { background: rgba(209, 75, 88, 0.16); }
.chat-form { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.7rem 0.8rem calc(0.7rem + env(safe-area-inset-bottom) * 0); border-top: 1px solid var(--line); }
.chat-form textarea {
  flex: 1; border: 1px solid var(--line); border-radius: 18px;
  padding: 0.55em 1.1em; font-family: inherit; font-size: 0.88rem; line-height: 1.5; background: var(--cream);
  resize: none; overflow-y: auto; min-height: 2.7em; max-height: 7.5em;
}
.chat-form textarea:focus { outline: none; border-color: var(--coral); }
.chat-form button {
  border: none; border-radius: 999px; background: var(--coral); color: #FFF;
  font-weight: 700; font-size: 0.84rem; padding: 0 1.2em; height: 2.7em; flex-shrink: 0;
  transition: background-color 0.2s ease-out;
}
.chat-form button:hover { background: var(--coral-deep); }
/* 发图按钮（圆圈小图标） */
.chat-form .chat-attach {
  width: 2.7em; height: 2.7em; padding: 0; border-radius: 50%;
  background: rgba(59, 47, 42, 0.05); color: var(--ink-soft); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.chat-form .chat-attach:hover { background: rgba(209, 75, 88, 0.10); color: var(--coral); border-color: var(--coral); }
.chat-form .chat-attach[hidden] { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.65s ease-out, transform 0.65s ease-out; }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-reward-card, .chat-fab-dot, .dl-fab { animation: none; }
  .reel-strip { transition: none !important; }
  .reel.spinning .reel-strip, .reel.decel .reel-strip { filter: none; }
  .lottery-lights.on i { animation: none; }
  .lottery-result { animation: none; }
}

/* ============ pc ============ */
@media (min-width: 900px) {
  .sp-br { display: none; }
  .pc-br { display: inline; }
  .header-nav { display: flex; }

  .hero { padding: 8.2rem 1.25rem 4.4rem; }
  .hero-inner { grid-template-columns: 1.08fr 0.92fr; gap: 3.4rem; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }
  .hero-visual { max-width: none; }
  .hero-reward-card { left: -2.2rem; bottom: -1.8rem; }

  .free-strip ul { flex-direction: row; justify-content: center; gap: 3.2rem; }
  .free-strip li + li::before { top: 50%; left: -1.6rem; transform: translateY(-50%); }

  .pains-list li:nth-child(1), .pains-list li:nth-child(3) { margin-left: 0; }
  .pains-list li:nth-child(2), .pains-list li:nth-child(4) { margin-right: 0; }

  .bonus-steps { grid-template-columns: repeat(3, 1fr); text-align: left; }
  .bonus-action .btn { width: auto; }

  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .feature:nth-child(even) { transform: translateY(1.6rem); }
  .features { padding-bottom: 6.2rem; }

  .reports-grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem; }
  .report:nth-child(even) { transform: translateY(1.8rem); }

  .safety-list { grid-template-columns: repeat(3, 1fr); }
  .safety-list li { grid-template-columns: 1fr; align-items: start; gap: 0.5rem; }
  .safety-list img { grid-row: auto; }

  .howto-steps { grid-template-columns: repeat(3, 1fr); }

  .final-actions { grid-template-columns: repeat(2, 1fr); max-width: 620px; margin: 0 auto; }
  .final-actions .btn { width: auto; }
}

/* ---------- chat: system msg & download card (v2) ---------- */
.chat-system {
  text-align: center; font-size: 0.74rem; color: var(--ink-soft);
  background: rgba(59, 47, 42, 0.06); border-radius: 999px;
  padding: 0.3em 1em; margin: 0.2rem auto; width: fit-content; max-width: 90%;
}
.chat-row--me { justify-content: flex-end; }
/* 下载卡片：图片横幅 + 图标 + 标题 + 卖点 + 大按钮 */
.chat-card { padding: 0.95rem 1rem; min-width: 15.5rem; }
.card-img { width: 100%; height: auto; max-height: 150px; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 0.7rem; cursor: pointer; }
.card-head { display: flex; align-items: center; gap: 0.6rem; }
.card-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px;
  background: rgba(209, 75, 88, 0.10); border: 1px solid rgba(209, 75, 88, 0.22);
  display: grid; place-items: center;
}
.card-meta { display: flex; flex-direction: column; line-height: 1.35; }
.card-title { font-weight: 700; font-size: 0.95rem; }
.card-sub { font-size: 0.74rem; color: var(--ink-soft); }
.card-points {
  display: flex; flex-wrap: wrap; gap: 0.3rem; list-style: none;
  margin: 0.7rem 0 0.1rem; padding: 0;
}
.card-points li {
  font-size: 0.68rem; font-weight: 700; color: var(--coral-deep);
  background: rgba(209, 75, 88, 0.08); border: 1px solid rgba(209, 75, 88, 0.22);
  border-radius: 999px; padding: 0.2em 0.7em;
}
.card-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.6rem; }
.card-dl {
  display: block; text-align: center; margin-top: 0.75rem; width: 100%;
  background: var(--coral); color: #FFF; font-weight: 700; font-size: 0.9rem;
  border: none; cursor: pointer; font-family: inherit;
  border-radius: 11px; padding: 0.7em 1em; text-decoration: none;
  box-shadow: 0 8px 20px rgba(209, 75, 88, 0.22);
  transition: background-color 0.2s ease-out, transform 0.2s ease-out;
}
.card-dl:hover { background: var(--coral-deep); transform: translateY(-1px); }
.card-dl.loading { pointer-events: none; opacity: 0.85; }
.card-dl.loading::before {
  content: ""; display: inline-block; width: 0.95em; height: 0.95em; margin-right: 0.55em;
  border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #FFF; border-radius: 50%;
  animation: cardspin 0.7s linear infinite; vertical-align: -0.18em;
}
@keyframes cardspin { to { transform: rotate(360deg); } }
.card-detail { display: block; text-align: center; font-size: 0.74rem; color: var(--ink-soft); margin-top: 0.55rem; }
/* 聊天里的图片 */
.chat-msg--img { padding: 4px !important; overflow: hidden; }
.chat-msg--img img { display: block; border-radius: 11px; max-height: 320px; width: auto; cursor: zoom-in; }
.chat-img-pending { font-size: 0.78rem; color: var(--ink-soft); padding: 0.2em 0.4em; }
.quick-item { margin-bottom: 0.5em; }
.quick-item:last-child { margin-bottom: 0; }
