/* PayDay landing page — values from the "PayDay Landing" Claude Design file + brand tokens */
:root {
  --bg: #0A0A12;
  --band: #101018;
  --surface: #19191F;
  --surface-alt: #141421;
  --field: #121218;
  --line: #1E1E28;
  --line-2: #24242D;
  --line-3: #2A2A34;
  --primary: #7769EF;
  --primary-light: #8980F5;
  --primary-dark: #6659F4;
  --text: #FFFFFF;
  --text-2: #B4B4C4;
  --text-3: #A8A8B8;
  --muted: #8E8EA0;
  --good: #31CC98;
  --bad: #F16487;
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--text); }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
input::placeholder { color: #6E6E80; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---- Header ---- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 18, .85); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top-in { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; }
.logo img { height: 30px; width: auto; display: block; }
.top-nav { display: flex; align-items: center; gap: 28px; }
.top-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.top-links a { color: var(--text-2); }
.top-links a:hover { color: var(--text); }
.top-cta { display: flex; align-items: center; gap: 10px; }
.link-login { color: var(--text); font-size: 15px; font-weight: 600; padding: 10px 14px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; font-weight: 700;
  transition: background .15s, border-color .15s, filter .15s; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--primary); color: var(--text); }
.btn-primary:hover { background: var(--primary-light); color: var(--text); }
.btn-sm { font-size: 15px; padding: 10px 18px; border-radius: 12px; }
.btn-lg { font-size: 16px; padding: 16px 26px; }
.btn-glow { box-shadow: 0 8px 24px rgba(119, 105, 239, .25); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-3); color: var(--text); font-weight: 600; }
.btn-ghost:hover { border-color: var(--primary); color: var(--text); }
.btn-gradient { border: 0; height: 52px; margin-top: 4px; font-size: 16px; color: var(--text);
  background: linear-gradient(90deg, var(--primary-light), var(--primary-dark)); }
.btn-gradient:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---- Hero ---- */
.hero { padding-top: 96px; padding-bottom: 64px; }
.hero-copy { max-width: 820px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #2A2840; background: var(--surface-alt);
  border-radius: 999px; font-size: 13px; font-weight: 600; color: #B9B3FA; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin-top: 24px; text-wrap: balance; }
.hl { color: var(--primary-light); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text-2); margin-top: 24px; max-width: 620px; text-wrap: pretty; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

.hero-shots { position: relative; margin-top: 72px; padding-left: clamp(0px, 8vw, 120px); }
.browser, .frame { border-radius: 20px; border: 1px solid #26262F; background: var(--surface); padding: 10px; }
.browser { box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.dots { display: flex; gap: 6px; padding: 4px 6px 10px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #2E2E38; }
.shot { width: 100%; height: auto; display: block; object-fit: cover; object-position: top; }
.shot-desktop { border-radius: 12px; aspect-ratio: 1440 / 860; }
.shot-stats { border-radius: 12px; aspect-ratio: 1440 / 1000; object-position: top left; }
.shot-phone { border-radius: 24px; aspect-ratio: 390 / 780; }
.phone { border-radius: 32px; border: 1px solid #2E2E38; background: var(--bg); padding: 8px; }
.phone-float { position: absolute; left: 0; bottom: -40px; width: clamp(120px, 22%, 240px); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }

/* ---- Sections ---- */
.sec { padding-top: 110px; padding-bottom: 40px; }
.sec-features { padding-top: 120px; }
.sec-showcase { padding-top: 80px; padding-bottom: 80px; }
.sec-trust { padding-top: 100px; }
.sec-cta { padding-bottom: 120px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-light); }
.h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin-top: 14px; text-wrap: balance; }
.h2.narrow { max-width: 720px; }
.h2-sm { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; margin-top: 0; }
.h2-md { font-size: clamp(30px, 3.8vw, 44px); }
.h2-lg { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -.035em; margin-top: 0; }
#faq .h2 { margin-top: 0; }
.body { font-size: 17px; line-height: 1.6; color: var(--text-2); margin-top: 18px; text-wrap: pretty; }

.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 48px; }
.feature { padding: 28px; }
/* Hover: a slight tilt + lift (alternating direction); colour-only for reduced motion */
.feature { transition: transform .35s var(--ease, ease), border-color .3s ease, box-shadow .35s ease; }
@media (hover: hover) {
  .feature:hover { border-color: rgba(137, 128, 245, .45); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .features .feature:hover,
  .motion .features .feature.rv.in:hover { transform: rotate(-1.2deg) scale(1.03); }
  .features .feature:nth-child(even):hover,
  .motion .features .feature.rv.in:nth-child(even):hover { transform: rotate(1.2deg) scale(1.03); }
}
.ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(119, 105, 239, .14); color: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.ico-soft { background: rgba(241, 100, 135, .12); color: var(--bad); }
.pains .feature { background: var(--surface-alt); }
.feature h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-top: 18px; }
.feature p { font-size: 15px; line-height: 1.6; color: var(--text-3); margin-top: 10px; text-wrap: pretty; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; }
.split-center { align-items: center; }
.split-start { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.split-wide { gap: 64px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.chip-good { background: #1B2A26; color: var(--good); }
.chip-accent { background: #211F38; color: #B9B3FA; }
.chip-warn { background: #2C2818; color: #E8D27A; }
.chip-bad { background: #2E1A22; color: var(--bad); }

.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 0; }
.band .sec { padding-top: 110px; padding-bottom: 110px; }
/* Bottoms line up; the "Opret lån" phone is a bit larger, so its top sits higher. */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 20px; }
.phones .phone { width: min(42%, 240px); }
.phones .phone-big { width: min(50%, 285px); }
.steps { display: flex; flex-direction: column; gap: 4px; margin-top: 36px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid #22222C; }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; }
.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.step p { font-size: 15px; line-height: 1.6; color: var(--text-3); margin-top: 6px; text-wrap: pretty; }

#score { padding-top: 120px; }
.big-score { display: flex; align-items: baseline; gap: 14px; margin-top: 36px; }
.big-score span { font-size: 88px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--good); font-variant-numeric: tabular-nums; }
.big-score small { font-size: 15px; color: var(--text-3); }
.rules { padding: 8px 28px; }
.rule { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid #26262F; }
.rule:last-child { border-bottom: 0; }
.rule span { font-size: 16px; font-weight: 500; }
.rule b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rule .good { color: var(--good); }
.rule .bad { color: var(--bad); }

.card-lg { border-radius: 24px; padding: 36px; }
.card-lg h3 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin-top: 24px; }
.card-lg p { font-size: 16px; line-height: 1.6; color: var(--text-3); margin-top: 12px; text-wrap: pretty; }
.ico-good { width: 52px; height: 52px; border-radius: 14px; background: #1B2A26; color: var(--good); display: flex; align-items: center; justify-content: center; }

/* ---- FAQ (native <details>) ---- */
.faq { margin-top: 36px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: 18px; font-weight: 700; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex-shrink: 0; width: 24px; text-align: center; font-style: normal; font-size: 24px; font-weight: 400; color: var(--primary-light); }
.faq summary i::before { content: '+'; }
.faq details[open] summary i::before { content: '−'; }
.faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 6px; }
.faq details p { margin: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--text-2); max-width: 680px; text-wrap: pretty; }

/* ---- Sign-up CTA ---- */
.cta { background: var(--surface-alt); border: 1px solid #2A2840; border-radius: 28px; padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 48px; align-items: center; }
.cta .body { max-width: 440px; }
.form-card { border-color: #26262F; padding: 28px; }
#signup { display: flex; flex-direction: column; gap: 18px; }
#signup label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: #C8C8D4; }
#signup input { width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; background: var(--field); border: 1px solid var(--line-3);
  font: 500 16px 'Manrope', system-ui, sans-serif; color: var(--text); outline: none; }
#signup input:focus { border-color: var(--primary); }
#signup input.bad { border-color: var(--bad); }
#signup .hint { font-size: 13px; font-weight: 500; color: var(--muted); }
.form-error { font-size: 14px; font-weight: 600; color: var(--bad); }
.form-foot { text-align: center; font-size: 14px; color: #C8C8D4; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); }
.foot-in { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.foot-in > img { height: 26px; width: auto; display: block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; font-weight: 500; }
.foot-links a { color: var(--text-3); }
.foot-links a:hover { color: var(--text); }
.langs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 600; }
.langs a { padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; color: var(--text-3); }
.langs a:hover { color: var(--text); }
.langs a.on { border-color: #2E2E38; color: var(--text); }
.copy { padding-bottom: 40px; font-size: 13px; color: var(--muted); }

/* ---- Small screens ---- */
@media (max-width: 860px) {
  .top-links { display: none; }
}
@media (max-width: 600px) {
  .top-in { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .logo img { height: 26px; }
  .link-login { padding: 10px 6px; font-size: 14px; }
  .btn-sm { font-size: 14px; padding: 9px 14px; }
  .hero { padding-top: 56px; }
  .actions .btn { flex: 1 1 auto; }
  .hero-shots { margin-top: 48px; }
  .phone-float { border-radius: 22px; padding: 5px; bottom: -28px; }
  .phone-float .shot-phone { border-radius: 17px; }
  .sec, .sec-features, #score { padding-top: 80px; }
  .band .sec { padding-top: 80px; padding-bottom: 80px; }
  .phones { gap: 12px; }
  .phone { border-radius: 24px; padding: 6px; }
  .shot-phone { border-radius: 18px; }
  .big-score span { font-size: 72px; }
  .rules { padding: 4px 20px; }
  .card-lg { padding: 28px; }
  .faq summary { font-size: 17px; padding: 20px 0; }
  .form-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Motion (only with html.motion — set in <head> unless reduced motion is preferred) ---- */
:root { --ease: cubic-bezier(.2, .75, .2, 1); }
.top { transition: background .3s ease, box-shadow .3s ease; }
.top.scrolled { background: rgba(10, 10, 18, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.phone-float { transform: translate3d(0, var(--py, 0px), 0); }

@keyframes pd-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pd-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes pd-shot { from { opacity: 0; transform: translateY(56px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pd-phone { from { opacity: 0; transform: translate3d(-36px, 48px, 0) rotate(-4deg); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

/* Load: fill-mode "backwards" so nothing is stuck once the animation ends (keeps the parallax free). */
.motion .top { animation: pd-drop .6s var(--ease) backwards; }
.motion .hero .pill { animation: pd-rise .7s var(--ease) .05s backwards; }
.motion .hero h1 { animation: pd-rise .8s var(--ease) .14s backwards; }
.motion .hero .lead { animation: pd-rise .8s var(--ease) .26s backwards; }
.motion .hero .actions { animation: pd-rise .8s var(--ease) .38s backwards; }
.motion .hero .browser { animation: pd-shot 1.1s var(--ease) .5s backwards; }
.motion .hero .phone-float { animation: pd-phone 1s var(--ease) .85s backwards; }

/* Scroll reveals (classes added by the page script) */
.motion .rv { opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.motion .rv.rv-right { transform: translateX(36px); }
.motion .rv.rv-zoom { transform: translateY(36px) scale(.97); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .feature.rv.done { transition: transform .35s var(--ease), border-color .3s ease, box-shadow .35s ease; }
.motion .step.rv .step-n { transition: transform .5s var(--ease) calc(var(--d, 0ms) + .25s); transform: scale(.6); }
.motion .step.in .step-n { transform: none; }
