/* Click Pain — landing. Same build as clickmoments/, cool palette instead of
   magenta: this app is about relief, not about a bright life log. */
:root {
  --bg:#0B0D11; --bg2:#0E1014; --surface:#171A20; --surface2:#1F232B; --border:#282D36;
  --text:#F2F4F7; --text2:#9AA3B0; --text3:#6B7482;
  --violet:#7C3AED; --blue:#2563EB; --teal:#22C3D6;
  --brand:linear-gradient(105deg,var(--violet),var(--blue) 55%,var(--teal));
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body {
  margin:0; background:var(--bg); color:var(--text);
  font-family:"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:17px; line-height:1.6; -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a { color:inherit; }
h1,h2,h3 { margin:0; font-weight:600; letter-spacing:-0.025em; line-height:1.1; }
p { margin:0; }
img { max-width:100%; display:block; }
.wrap { width:100%; max-width:1120px; margin:0 auto; padding-inline:20px; }
.i { width:24px; height:24px; display:block; }

.aura {
  position:fixed; inset:-60vh -25vw; z-index:0; pointer-events:none; will-change:transform;
  background:
    radial-gradient(32% 22% at 18% 34%, rgba(124,58,237,.62), transparent 72%),
    radial-gradient(36% 20% at 56% 54%, rgba(34,195,214,.30), transparent 74%),
    radial-gradient(38% 22% at 26% 70%, rgba(37,99,235,.40), transparent 74%);
}
.aura-right {
  position:fixed; inset:-90vh -25vw; z-index:0; pointer-events:none; will-change:transform;
  background:
    radial-gradient(26% 15% at 86% 40%, rgba(37,99,235,.78), transparent 70%),
    radial-gradient(30% 16% at 78% 56%, rgba(34,195,214,.32), transparent 72%),
    radial-gradient(28% 15% at 88% 70%, rgba(124,58,237,.36), transparent 72%);
}
body::after {
  content:""; position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.035;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position:relative; z-index:2; }

/* ── nav ── */
header {
  position:sticky; top:0; z-index:20;
  background:rgba(11,13,17,.72); backdrop-filter:saturate(160%) blur(16px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav { display:flex; align-items:center; justify-content:space-between; height:66px; gap:16px; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; font-weight:600; }
.brand img { width:32px; height:32px; border-radius:9px; }
.cta {
  display:inline-flex; align-items:center; justify-content:center; text-decoration:none;
  font-size:15px; font-weight:600; color:#fff; background:var(--brand);
  padding:10px 20px; border-radius:999px; white-space:nowrap;
  box-shadow:0 8px 26px -10px rgba(37,99,235,.9);
}
.cta.soon { background:none; color:var(--text); box-shadow:none; border:none; padding:0; cursor:default; }

/* ── hero ── */
.hero { padding-block:96px 40px; }
.hero-grid { display:grid; grid-template-columns:1.02fr .98fr; gap:56px; align-items:center; }
.eyebrow {
  display:inline-flex; align-items:center; gap:9px; font-size:12px; font-weight:600;
  text-transform:uppercase; letter-spacing:.1em; color:var(--text2);
  border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.04);
  padding:8px 15px; border-radius:999px;
}
h1 { font-size:clamp(40px,6.4vw,68px); font-weight:700; margin:24px 0 0; }
h1 .grad { background:var(--brand); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lede { font-size:19px; color:var(--text2); margin-top:22px; max-width:36ch; }
.actions { display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-top:34px; }
.badge-soon {
  display:inline-flex; align-items:center; gap:10px; height:54px; padding:0 20px;
  border-radius:12px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.03);
  color:var(--text); font-size:15px; font-weight:600;
}
.badge-soon svg { width:22px; height:22px; }
.badge-soon small { display:block; font-weight:500; font-size:11px; color:var(--text3); text-transform:uppercase; letter-spacing:.06em; }
.note { font-size:14px; color:var(--text3); }

/* ── iPhone — bezel only, the screenshot itself carries the status bar
   and the Dynamic Island, so no fake notch is drawn on top of it ── */
.device {
  position:relative; isolation:isolate; width:var(--dw,300px); aspect-ratio:1320/2868;
  border-radius:calc(var(--dw,300px) / 7.4);
  padding:calc(var(--dw,300px) / 46);
  background:linear-gradient(150deg,#3A3F49,#15171C 28%,#0C0E12 62%,#33383F);
  box-shadow:0 2px 0 rgba(255,255,255,.16) inset, 0 46px 90px -34px rgba(0,0,0,.9);
}
.device::before {
  content:""; position:absolute; inset:-16% -26%; z-index:-1; pointer-events:none;
  background:
    radial-gradient(46% 42% at 50% 46%, rgba(37,99,235,.55), transparent 70%),
    radial-gradient(58% 52% at 50% 54%, rgba(124,58,237,.28), transparent 72%);
}
.device::after {
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(128deg,rgba(255,255,255,.16),transparent 34%,transparent 72%,rgba(255,255,255,.07));
}
.device .screen {
  width:100%; height:100%; object-fit:cover; display:block;
  border-radius:calc(var(--dw,300px) / 8.6); background:#0E1014;
}
.hero .device { --dw:min(320px,74vw); transform:rotate(-1.2deg); }
.hero-phone { justify-self:center; will-change:transform; }

/* ── sekcije ── */
section { padding-block:96px; }
.sec-head { max-width:46ch; }
.sec-head h2 { font-size:clamp(30px,4.2vw,44px); }
.sec-head p { color:var(--text2); margin-top:16px; }

/* ── priča: tekst se pomera, telefon stoji ── */
.story-grid { display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:start; }
.story-phone { position:sticky; top:104px; justify-self:center; }
.story-phone .device { --dw:min(296px, calc((100vh - 160px) * 0.46)); }
.story-phone .stack { position:relative; }
.story-phone .stack .device { position:relative; }
.story-phone .screen { position:absolute; inset:0; width:100%; height:100%;
  opacity:0; transform:scale(1.015); transition:opacity .5s ease, transform .5s ease; }
.story-phone .screen.on { opacity:1; transform:none; position:relative; }
.step { min-height:76vh; display:flex; flex-direction:column; justify-content:center; }
.step-badge {
  display:grid; place-items:center; width:48px; height:48px; border-radius:15px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); color:var(--teal);
}
.step h3 { font-size:clamp(24px,2.7vw,31px); margin:20px 0 14px; }
.step p { color:var(--text2); max-width:40ch; }
.step .num { font-size:12px; font-weight:600; letter-spacing:.12em; color:var(--text3); text-transform:uppercase; margin-top:18px; }
.step-phone { display:none; margin-top:28px; }

/* ── privatnost: pilule bez kutije, plutaju na aura pozadini ── */
.vault { text-align:center; }
.vault .sec-head { margin:0 auto; }
.vault ul {
  list-style:none; margin:38px 0 0; padding:0;
  display:flex; flex-wrap:wrap; justify-content:center; gap:12px;
}
.vault li {
  display:flex; align-items:center; gap:10px; color:var(--text2); font-size:15px;
  border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.035);
  padding:12px 20px; border-radius:999px; text-align:left;
}
.vault li svg { flex:0 0 auto; width:18px; height:18px; color:var(--teal); }

/* ── kraj: mali telefon + dva chipa (Free/Pro) uz CTA ── */
.end { padding-block:64px 40px; }
.end-grid { display:grid; grid-template-columns:.86fr 1.14fr; gap:56px; align-items:center; text-align:left; }
.end .device { --dw:min(230px,58vw); transform:rotate(1.6deg); }
.end-phone { justify-self:center; }
.end h2 { font-size:clamp(32px,4.6vw,50px); }
.end .lede { margin:18px 0 0; max-width:44ch; }
.tier-row { display:flex; gap:12px; margin-top:26px; flex-wrap:wrap; }
.tier {
  display:flex; align-items:center; gap:9px; border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.035); padding:10px 16px; border-radius:12px; font-size:14px;
}
.tier b { font-weight:700; }
.tier .free b { color:var(--teal); }
.tier .pro b { color:var(--violet); }
.tier span.desc { color:var(--text3); }
.end .actions { justify-content:flex-start; margin-top:30px; }
@media (max-width:900px) { .end-grid { grid-template-columns:1fr; text-align:center; } .end .actions, .tier-row { justify-content:center; } .end-phone { order:-1; margin-bottom:8px; } }
footer { border-top:1px solid rgba(255,255,255,.07); padding-block:34px 48px; font-size:14px; color:var(--text3); }
.foot { display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.foot a { text-decoration:none; }
.foot a:hover { color:var(--text); }
.foot nav { display:flex; gap:24px; flex-wrap:wrap; }

/* ── otkrivanje pri skrolu ── */
html.js .reveal { opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity:1; transform:none; }

@media (max-width:900px) {
  .hero { padding-block:56px 24px; }
  .hero-grid { grid-template-columns:1fr; gap:44px; }
  section { padding-block:64px; }
  .story-grid { grid-template-columns:1fr; gap:0; }
  .story-phone { display:none; }
  .step { min-height:0; padding-block:44px; }
  .step-phone { display:block; }
  .step-phone .device { --dw:min(268px,68vw); }
  .vault { padding:28px; }
  .vault ul { grid-template-columns:1fr; }
  .lede { max-width:none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  html.js .reveal { opacity:1; transform:none; transition:none; }
  .story-phone .screen { transition:none; }
}
