/* KUGI — homepage styles. Requires base.css (loaded first). */

/* ---------- Buttons (home only) ---------- */
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); transform: translateY(-2px); }

/* ---------- Layout overrides ---------- */
section { position: relative; }
.brand img { width: 60px; height: 60px; border-radius: 11px; }

/* ---------- Store badges ---------- */
.stores { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-badge-link { display: inline-flex; transition: transform .15s ease; }
.store-badge-link:hover { transform: translateY(-2px); }
.store-badge-img { height: 54px; width: auto; display: block; }
.store-note { font-size: 13px; color: var(--text-faint); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 40px; overflow: hidden; }
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand-deep);
  background: var(--brand-dim); border: 1px solid rgba(7,220,46,0.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
h1.hero-title {
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.03;
  font-weight: 900; letter-spacing: -0.035em; margin-bottom: 20px;
  text-wrap: balance;
}
h1.hero-title em { font-style: normal; color: var(--brand-deep); }
.hero-sub { font-size: clamp(16px, 1.9vw, 19px); color: var(--text-dim); max-width: 500px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-direction: column; gap: 14px; }
.hero-mockup-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-mockup { width: 100%; max-width: 1180px; height: auto; }

/* ---------- Trust bar ---------- */
.trust { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust-inner { display: flex; align-items: stretch; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.trust-stat { text-align: center; flex: 1; min-width: 150px; }
.trust-stat .n { font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -0.03em; }
.trust-stat .n em { font-style: normal; color: var(--brand-deep); }
.trust-stat .t { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

/* ---------- Section heading ---------- */
.section-pad { padding: 100px 0; }
.head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.eyebrow { color: var(--brand-deep); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
h2.head-title { font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.head p { color: var(--text-dim); font-size: 18px; margin-top: 16px; }

/* ---------- Feature grid ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-grid .feat-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-card);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feat-grid .feat-card:hover { transform: translateY(-6px); border-color: rgba(7,220,46,0.4); box-shadow: 0 20px 44px -22px var(--brand-glow); }
.feat-ic {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: #0a0b0c; border: 1px solid #0a0b0c;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
}
.feat-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.feat-ic svg.filled { fill: currentColor; stroke: none; }
.feat-card h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.feat-card p { font-size: 14.5px; color: var(--text-dim); }

/* ---------- Alternating showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 120px; }
.showcase:last-child { margin-bottom: 0; }
.showcase.rev .sc-text { order: 2; }
.sc-text .eyebrow { text-align: left; display: block; }
.sc-text h3 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 18px; text-wrap: balance; }
.sc-text p { color: var(--text-dim); font-size: 17px; margin-bottom: 24px; }
.sc-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.sc-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text); }
.sc-list li .ck { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%230a0b0c'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M7.3 12.3l3.1 3.1 6.3-6.6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.sc-visual {
  position: relative; padding: 0;
  display: flex; align-items: center; justify-content: center;
}

/* in-app screenshot */
.sc-shot { width: 100%; max-width: 380px; height: auto; position: relative; z-index: 2;
  border-radius: 22px; border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  transition: transform .25s ease; }
.sc-shot:hover { transform: translateY(-6px); }

/* photo + floating screenshot composite */
.combo { position: relative; width: 100%; max-width: 500px; margin: 0 auto; z-index: 2; }
.combo-bg { width: 100%; height: auto; display: block; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); }
.combo .combo-card { position: absolute; right: -10%; bottom: 20%; width: 60%; max-width: none; z-index: 3; }
.combo .combo-watch { position: absolute; left: -22%; bottom: 12%; width: 62%; max-width: none; z-index: 3; }

/* routine list card */
.routine-card { width: 100%; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 11px; }
.routine-item { background: #ffffff; border: 1px solid var(--border); border-radius: 15px; padding: 15px 16px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 14px; transition: transform .2s ease, border-color .2s ease; }
.routine-item:hover { transform: translateX(4px); border-color: rgba(7,220,46,0.4); }
.routine-item .ri-t { font-weight: 700; font-size: 15px; }
.routine-item .ri-s { font-size: 12px; color: var(--text-faint); margin-top: 1px; }
.routine-item .ri-go { margin-left: auto; color: var(--text-faint); }

/* set-logging visual card */
.stat-card { width: 100%; max-width: 380px; position: relative; z-index: 2; background: #ffffff; border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-pop); }
.stat-card .scd-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.stat-card .scd-ex { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.stat-card .scd-sub { font-size: 12px; color: var(--text-faint); }
.lc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 14px; }
.lc-row:first-of-type { border-top: 0; }
.lc-n { width: 24px; height: 24px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-faint); font-weight: 700; flex-shrink: 0; }
.lc-w { font-weight: 700; } .lc-x { color: var(--text-faint); margin: 0 3px; }
.lc-chk { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border-strong); }
.lc-chk svg { width: 13px; height: 13px; stroke: #ffffff; opacity: 0; }
.lc-chk.done { background: var(--brand); border-color: var(--brand); }
.lc-chk.done svg { opacity: 1; }
.lc-pr { font-size: 10px; font-weight: 800; color: #7a5900; background: var(--gold-dim); border: 1px solid rgba(245,179,1,0.35); padding: 2px 7px; border-radius: 6px; letter-spacing: .04em; }
.rest-pill { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.rest-pill b { font-variant-numeric: tabular-nums; }
.rest-pill .rest-label { color: var(--text-faint); }

/* watch */
.watch-img { width: 100%; max-width: 384px; height: auto; position: relative; z-index: 2; filter: drop-shadow(0 30px 60px rgba(10,11,12,0.45)); transition: transform .25s ease; }
.watch-img:hover { transform: translateY(-6px); }

/* ---------- Testimonials marquee ---------- */
.marquee { position: relative; width: 100%; overflow: hidden; padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); }
.marquee + .marquee { margin-top: 6px; }
.marquee-track { display: flex; width: max-content; animation: marquee-left 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-rev .marquee-track { animation-name: marquee-right; }
@keyframes marquee-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-track .t-card { flex: 0 0 320px; width: 320px; margin-right: 18px; white-space: normal; }
.t-card { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-card); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.t-card:hover { transform: translateY(-6px); border-color: rgba(7,220,46,0.45); box-shadow: 0 16px 38px -18px var(--brand-glow); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.t-card .stars { margin-bottom: 14px; }
.t-card p { font-size: 15px; color: var(--text); margin-bottom: 18px; line-height: 1.6; }
.t-card .who .nm { font-weight: 700; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #ffffff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .fx { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: var(--text-dim);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.faq-item[open] summary .fx { transform: rotate(45deg); background: var(--brand); border-color: var(--brand); color: #04120a; }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--text-dim); font-size: 15px; }

/* ---------- CTA ---------- */
.cta-section { padding: 110px 0; }
.cta-box {
  position: relative; overflow: hidden;
  border-radius: 32px; padding: 74px 50px; text-align: center;
  background: linear-gradient(180deg, #0d0f11 0%, #08090a 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
}
.cta-box h2 { position: relative; z-index: 2; font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.cta-box h2 em { font-style: normal; color: var(--brand); }
.cta-box p { position: relative; z-index: 2; color: rgba(255,255,255,0.72); font-size: 19px; margin: 18px auto 34px; max-width: 560px; }
.cta-box .stores { position: relative; z-index: 2; justify-content: center; flex-direction: column; gap: 12px; }
.cta-box .store-note { color: rgba(255,255,255,0.55); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-mockup-wrap { order: -1; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .showcase, .showcase.rev .sc-text { grid-template-columns: 1fr; order: 0; }
  .showcase { gap: 36px; margin-bottom: 90px; }
  .brand img { width: 52px; height: 52px; border-radius: 10px; }
}
@media (max-width: 560px) {
  .trust-inner { gap: 26px 12px; }
  .trust-stat { min-width: 40%; }
  .feat-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 54px 24px; }
  .section-pad { padding: 72px 0; }
  .hero { padding: 44px 0 36px; }
  h1.hero-title { font-size: 38px; }
  .hero-actions { align-items: flex-start; }
  .combo { max-width: 360px; }
  .combo .combo-card { right: 3%; bottom: 9%; width: 64%; }
  .combo .combo-watch { left: -16%; bottom: 10%; width: 62%; }
}
