/* ==========================================================================
   Clickt — homepage
   ========================================================================== */

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(40px, 6vw, 84px)); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .glow--blue { width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; left: -12%; top: -24%; }
.hero-bg .glow--peach { width: 50vw; height: 50vw; max-width: 760px; max-height: 760px; right: -10%; top: -10%; }
.hero-bg .glow--violet { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; left: 32%; top: 28%; opacity: 0.35; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(11, 16, 32, 0.09) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 35%, #000, transparent 75%); }
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-in .slate { padding: 8px 16px 8px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .display { margin-top: 28px; max-width: none; font-size: clamp(2.7rem, 7.2vw, 6.6rem); }
.hero .display .ln { display: block; }
.hero .lead { margin: 26px auto 0; max-width: 56ch; }
.hero-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-cta .store-row { justify-content: center; }
.hero-note { font-size: 0.86rem; color: var(--mute); }

.hero-stage-wrap { margin-top: clamp(44px, 6vw, 84px); perspective: 1600px; }
.hero-stage { --p: 0; width: 100%; transform: translate3d(0, calc((1 - var(--p)) * 40px), 0) scale(calc(0.94 + var(--p) * 0.06)); transform-origin: 50% 0; will-change: transform; padding: clamp(28px, 4vw, 56px); min-height: 520px; }
.stage-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.stage-glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.stage-glow--a { width: 420px; height: 420px; right: 6%; top: -14%; background: radial-gradient(circle, rgba(31, 75, 255, 0.4), transparent 65%); }
.stage-glow--b { width: 380px; height: 380px; left: 4%; bottom: -20%; background: radial-gradient(circle, rgba(255, 176, 120, 0.55), transparent 65%); }
.stage-phones { position: relative; height: 560px; display: flex; justify-content: center; align-items: center; }
.stage-phones .phone { position: absolute; transition: transform 0.8s var(--ease); }
.stage-phones .phone:nth-child(1) { --w: 250px; transform: translate(-58%, 12px) rotate(-6deg); z-index: 1; }
.stage-phones .phone:nth-child(2) { --w: 262px; transform: translate(34%, -14px) rotate(5deg); z-index: 2; }
.hero-stage:hover .stage-phones .phone:nth-child(1) { transform: translate(-64%, 4px) rotate(-8deg); }
.hero-stage:hover .stage-phones .phone:nth-child(2) { transform: translate(40%, -22px) rotate(7deg); }
@media (max-width: 900px) {
  .stage-grid { grid-template-columns: 1fr; }
  .stage-phones { height: 440px; }
  .stage-phones .phone:nth-child(1) { --w: 190px; transform: translate(-56%, 8px) rotate(-6deg); }
  .stage-phones .phone:nth-child(2) { --w: 200px; transform: translate(30%, -8px) rotate(5deg); }
}

/* --- Proof strip -------------------------------------------------------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-top: clamp(56px, 7vw, 96px); }
.proof > div { padding: clamp(24px, 3vw, 40px) clamp(14px, 2vw, 32px); border-left: 1px solid var(--line); text-align: center; }
.proof > div:first-child { border-left: 0; }
.proof .kpi { display: block; }
.proof p { margin-top: 10px; font-size: 0.86rem; color: var(--mute); max-width: 22ch; margin-inline: auto; }
@media (max-width: 760px) { .proof { grid-template-columns: repeat(2, 1fr); } .proof > div:nth-child(3) { border-left: 0; } .proof > div:nth-child(n + 3) { border-top: 1px solid var(--line); } }

/* --- Chapter 01: sticky story ------------------------------------------- */
.story-head { max-width: 760px; }
.story-head .slate { margin-bottom: 20px; }
.story-head .lead { margin-top: 22px; }
.story-body { margin-top: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: clamp(32px, 6vw, 120px); align-items: start; }
.story-step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; opacity: 0.28; transition: opacity 0.6s var(--ease); max-width: 520px; }
.story-step.is-active { opacity: 1; }
.story-step .h-serif { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.02; }
.story-step p { color: var(--ink-2); font-size: 1.08rem; }
.story-step .step-shot { display: none; }
.story-stage { position: sticky; top: max(84px, calc(50vh - 350px)); height: min(700px, calc(100vh - 100px)); display: grid; place-items: center; }
.story-stage .phone { --w: min(316px, calc((100vh - 170px) * 0.46)); z-index: 2; }
.story-glow { position: absolute; z-index: 0; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: 0.55; background: radial-gradient(circle, var(--mc, var(--blue)), transparent 65%); transition: background 0.8s var(--ease); }
.story-stage .phone .screen { background: #0b0e17; }
.shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.shot.is-active { opacity: 1; transform: none; }
.story-dots { position: absolute; left: -36px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; z-index: 3; }
.story-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: all 0.4s var(--ease); }
.story-dots i.is-active { height: 26px; border-radius: 8px; background: var(--mc, var(--blue)); }
@media (max-width: 860px) {
  .story-body { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 28px 0; border-top: 1px solid var(--line); }
  .story-step .step-shot { display: block; width: 100%; padding: 28px 0 8px; }
  .story-step .step-shot .phone { --w: 210px; margin-inline: auto; }
}

/* --- Devices ------------------------------------------------------------ */
.dev-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dev-stage { position: relative; margin-top: clamp(28px, 4vw, 48px); min-height: 640px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 40px 20px 60px; }
.dev-panel { min-width: 0; width: 100%; grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px) scale(0.98); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), visibility 0.6s; display: grid; justify-items: center; }
.dev-panel.is-active { opacity: 1; visibility: visible; transform: none; }
.dev-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.seg--sub { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.dev-pair { display: flex; gap: clamp(14px, 3vw, 36px); justify-content: center; align-items: flex-start; }
.dev-pair .phone:nth-child(even) { margin-top: 44px; }
.dev-pair--3 .phone:nth-child(2) { margin-top: 0; }
.dev-pair--3 .phone:nth-child(odd) { margin-top: 44px; }
.dev-panel .phone { --w: 290px; }
.dev-panel .tablet { --w: 430px; }
.dev-panel .mac { max-width: 860px; }
.dev-note { margin-top: 24px; font-size: 0.9rem; color: var(--mute); text-align: center; }
@media (max-width: 700px) { .dev-stage { min-height: 560px; } .dev-panel .tablet { --w: 320px; } .dev-panel .phone { --w: 240px; } }

/* --- Nepal / industries -------------------------------------------------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind { display: flex; flex-direction: column; gap: 6px; min-height: 210px; }
.ind h3 { margin-top: auto; }
.ind p { font-size: 0.9rem; }
.ind .arrow-out { position: absolute; top: 24px; right: 24px; width: 20px; height: 20px; color: var(--faint); transition: transform 0.4s var(--ease), color 0.3s; }
.ind:hover .arrow-out { transform: translate(3px, -3px); color: var(--blue); }
@media (max-width: 1000px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ind-grid { grid-template-columns: 1fr; } .ind { min-height: 0; } }
.price-band { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.price-band p { max-width: 62ch; color: rgba(255, 255, 255, 0.85); }
.price-band .btn { --bg: #fff; --fg: var(--ink); }

/* --- Click T custom software -------------------------------------------- */
.custom { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(28px, 5vw, 72px); border-radius: var(--r-xl); background: var(--paper-2); border: 1px solid var(--line); }
.custom p { color: var(--ink-2); margin-top: 18px; max-width: 58ch; }
.custom .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-grid .chip { padding: 11px 18px; font-size: 0.92rem; background: #fff; }
@media (max-width: 900px) { .custom { grid-template-columns: 1fr; } }

/* --- Founder note ------------------------------------------------------- */
.founder { max-width: 820px; margin-inline: auto; text-align: center; }
.founder blockquote { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.22; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.founder blockquote a { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
.founder .by { margin-top: 28px; font-size: 0.92rem; color: var(--mute); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; align-items: center; }
.founder .by a { color: var(--blue); font-weight: 600; }


@media (max-width: 560px) {
  .stage-phones { height: 420px; }
  .stage-phones .phone:nth-child(1) { display: none; }
  .stage-phones .phone:nth-child(2) { --w: 210px; transform: rotate(3deg); position: relative; }
  .hero-stage { min-height: 0; }
}

/* --- First-visit splash: logo + 0 → 100 ------------------------------------ */
.splash { display: none; }
html.splash-lock { overflow: hidden; }
html.splash-lock .splash { display: grid; }
.splash { position: fixed; inset: 0; z-index: 300; place-items: center; overflow: hidden; background: var(--paper); transition: transform 0.9s var(--ease-io), opacity 0.6s 0.25s; }
.splash-glow { animation: none; }
.splash-glow--a { width: 60vmax; height: 60vmax; left: -20%; top: -30%; }
.splash-glow--b { width: 50vmax; height: 50vmax; right: -15%; bottom: -25%; }
.splash-inner { position: relative; display: grid; justify-items: center; gap: 26px; padding: 24px; }
.splash-logo { width: min(320px, 70vw); height: auto; animation: splash-in 1s var(--ease) both; }
.splash-count { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-display); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.splash-count span { font-size: clamp(3.4rem, 9vw, 5.6rem); letter-spacing: -0.03em; min-width: 2.1ch; text-align: right; }
.splash-count small { font-size: 1.4rem; color: var(--mute); }
.splash-bar { width: min(280px, 60vw); height: 2px; background: var(--line-2); overflow: hidden; border-radius: 2px; }
.splash-bar i { display: block; height: 100%; background: var(--ai); transform: scaleX(0); transform-origin: left; }
.splash.is-leaving { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.splash.is-leaving .splash-inner { transform: translateY(-40px) scale(1.04); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.5s; }
@keyframes splash-in { from { opacity: 0; transform: translateY(14px) scale(0.96); filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) { .splash { display: none !important; } html.splash-lock { overflow: auto; } }

@media (max-width: 640px) {
  .hero .display { font-size: clamp(2.3rem, 10.4vw, 3.2rem); }
  .hero-stage { padding: 20px 14px; }
  .proof .kpi { font-size: 2.8rem; }
  .story-step .h-serif { font-size: 2rem; }
  .dev-head .seg { max-width: 100%; }
  .dev-controls { flex-direction: column; align-items: center; margin-top: 24px; }
  .dev-controls .seg { max-width: 100%; }
  .dev-stage { min-height: 0; padding: 24px 12px 28px; }
  .dev-panel { max-width: 100%; }
  .dev-panel .phone { --w: min(210px, 52vw); }
  .dev-pair { max-width: 100%; }
  .dev-pair .phone { --w: min(160px, 38vw) !important; }
  .dev-pair--3 { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 8px 16px; margin-inline: -12px; width: calc(100% + 24px); -webkit-overflow-scrolling: touch; }
  .dev-pair--3 .phone { --w: min(170px, 44vw) !important; scroll-snap-align: center; }
  .dev-pair--3 .phone:nth-child(odd) { margin-top: 0; }
  .dev-panel .tablet { --w: min(300px, 78vw); }
  .dev-panel .mac { max-width: 100%; }
  .price-band { padding: 20px; }
  .custom { padding: 26px 20px; }
  .founder blockquote { font-size: 1.5rem; }
  .faq summary { font-size: 1.02rem; padding: 20px 2px; }
}

@media (max-width: 900px) {
  .stage-phones .phone:nth-child(1) { transform: translate(-56%, 8px); }
  .stage-phones .phone:nth-child(2) { transform: translate(30%, -8px); }
  .hero-stage:hover .stage-phones .phone:nth-child(1) { transform: translate(-56%, 8px); }
  .hero-stage:hover .stage-phones .phone:nth-child(2) { transform: translate(30%, -8px); }
}
@media (max-width: 560px) {
  .stage-phones .phone:nth-child(2) { transform: none; }
  .hero-stage:hover .stage-phones .phone:nth-child(2) { transform: none; }
}
