:root {
  --pink: #ffa8cd;
  --pink-soft: #ffe0ea;
  --black: #0b051d;
  --white: #ffffff;
  --off-white: #faf9f7;
  --grey: #6e6e73;
  --grey-light: #f0efed;
  --almond: #f1ded0;
  --lilac: #d7bbd4;
  --periwinkle: #a2b2d2;
  --stone: #d3dedc;
  --radius-pill: 999px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-soft: 0 24px 64px rgba(11, 5, 29, 0.08);
  --shadow-card: 0 8px 32px rgba(11, 5, 29, 0.06);
  --max: 1180px;
  --gutter: clamp(20px, 6vw, 72px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--off-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--off-white);
  border-bottom: 1px solid rgba(11, 5, 29, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--black);
}

.logo-sm .logo-mark {
  width: 28px;
  height: 28px;
}

.logo-sm .logo-text {
  font-size: 1.125rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-black {
  background: var(--black);
  color: var(--white);
}

.btn-black:hover {
  box-shadow: 0 12px 32px rgba(11, 5, 29, 0.22);
}

.btn-pink {
  background: var(--pink);
  color: var(--black);
}

.btn-pink:hover {
  background: #ffa0bb;
  box-shadow: 0 8px 24px rgba(255, 179, 199, 0.5);
}

.btn-sm {
  padding: 11px 22px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 32px;
  font-size: 1rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ── Hero ── */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--pink);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 28px;
}

.hero-title span {
  display: block;
}

.title-offset {
  margin-left: clamp(24px, 8vw, 72px);
  color: var(--black);
  position: relative;
}

.title-offset::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 0.14em;
  background: var(--pink);
  z-index: -1;
  border-radius: 2px;
}

.hero-lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--grey);
  max-width: 460px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-meta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey);
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.visual-stack {
  position: relative;
  display: flex;
  justify-content: center;
}

.shape-pink {
  position: absolute;
  width: 88%;
  height: 88%;
  top: 8%;
  right: -4%;
  background: var(--pink);
  border-radius: var(--radius-xl);
  z-index: 0;
}

.app-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(11, 5, 29, 0.06);
  overflow: hidden;
}

.app-window--dashboard {
  max-width: 500px;
}

.app-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--grey-light);
  border-bottom: 1px solid rgba(11, 5, 29, 0.05);
}

.app-window-title {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--grey);
  letter-spacing: -0.01em;
}

.app-window-bar span:not(.app-window-title) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(11, 5, 29, 0.12);
}

.app-window-bar span:nth-child(1) { background: #ff5f57; }
.app-window-bar span:nth-child(2) { background: #febc2e; }
.app-window-bar span:nth-child(3) { background: #28c840; }

.app-shell {
  display: flex;
  min-height: 380px;
}

.app-sidebar {
  width: 72px;
  flex-shrink: 0;
  background: var(--off-white);
  border-right: 1px solid rgba(11, 5, 29, 0.06);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.app-sidebar-logo {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.app-nav-item {
  font-size: 0.5625rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  color: var(--grey);
  line-height: 1.2;
}

.app-nav-item.active {
  background: var(--pink);
  color: var(--black);
}

.app-main {
  flex: 1;
  padding: 16px 18px 18px;
  min-width: 0;
}

.app-main-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.app-greeting {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-notif {
  position: relative;
  width: 32px;
  height: 32px;
  background: var(--grey-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
}

.app-notif svg {
  width: 16px;
  height: 16px;
}

.app-notif span {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: var(--pink);
  border-radius: 50%;
  font-size: 0.5625rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.app-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.app-stat-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(11, 5, 29, 0.05);
}

.app-stat-pink {
  background: var(--pink);
  border-color: transparent;
}

.app-stat-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(11, 5, 29, 0.65);
  margin-bottom: 4px;
}

.app-stat-value {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey);
  margin-bottom: 8px;
}

.app-purchase-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.app-purchase {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--off-white);
  border-radius: 10px;
  border: 1px solid rgba(11, 5, 29, 0.04);
}

.app-purchase-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.app-purchase-icon-dark {
  background: var(--black);
  color: var(--white);
}

.app-purchase-icon-almond {
  background: var(--almond);
}

.app-purchase-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-purchase-name {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-purchase-tag {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--grey);
}

.app-purchase-tag-due {
  color: var(--black);
  background: var(--pink);
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.app-purchase-price {
  font-size: 0.8125rem;
  font-weight: 800;
  flex-shrink: 0;
}

.app-purchase-price-accent {
  color: var(--black);
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-feature-chip {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 6px 10px;
  background: var(--grey-light);
  border-radius: var(--radius-pill);
  color: var(--black);
}

.app-feature-chip:nth-child(2) {
  background: var(--lilac);
}

.app-feature-chip:nth-child(3) {
  background: var(--almond);
}

/* ── Stats band ── */
.stats-band {
  background: var(--black);
  color: var(--white);
  padding: clamp(36px, 5vw, 56px) 0;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-text {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.72;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* ── Features ── */
.features {
  padding: clamp(80px, 12vw, 140px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.section-lead {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  font-weight: 500;
  color: var(--grey);
  line-height: 1.6;
  max-width: 520px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 36px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-pink { background: var(--pink); }
.feature-white { background: var(--white); border: 1px solid rgba(11, 5, 29, 0.06); }
.feature-almond { background: var(--almond); }
.feature-lilac { background: var(--lilac); }

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: var(--black);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(11, 5, 29, 0.72);
  line-height: 1.55;
  margin-top: auto;
}

/* ── How it works ── */
.how {
  padding: clamp(80px, 12vw, 120px) 0;
  background: var(--white);
}

.how-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(11, 5, 29, 0.08);
}

.step:first-child {
  padding-top: 0;
}

.step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--pink);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--grey);
  line-height: 1.55;
}

/* ── CTA ── */
.cta {
  padding: clamp(48px, 8vw, 80px) 0 clamp(80px, 12vw, 120px);
}

.cta-inner {
  display: flex;
  justify-content: center;
}

.cta-block {
  width: 100%;
  background: var(--pink);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 8vw, 80px) clamp(32px, 6vw, 64px);
  text-align: left;
  max-width: 900px;
}

.cta-block h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
  max-width: 520px;
}

.cta-block p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 500;
  color: rgba(11, 5, 29, 0.72);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── Footer (Klarna style) ── */
.site-footer {
  background: #0b051d;
  color: rgba(255, 255, 255, 0.88);
  padding: clamp(48px, 6vw, 72px) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(40px, 5vw, 56px);
}

.footer-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s;
  line-height: 1.4;
}

.footer-list a:hover {
  color: var(--white);
}

.market-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 240px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: left;
}

.market-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.market-flag {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-flag-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.market-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--white);
  transition: background 0.15s;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0 32px;
}

.footer-copy {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Market modal ── */
.market-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.market-modal[hidden] {
  display: none;
}

.market-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 5, 29, 0.55);
  backdrop-filter: blur(4px);
}

.market-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: min(80vh, 720px);
  background: var(--white);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 32px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(11, 5, 29, 0.25);
}

.market-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.market-modal-header h2 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
}

.market-modal-close {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--grey-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  flex-shrink: 0;
  transition: background 0.15s;
}

.market-modal-close:hover {
  background: var(--pink);
}

.market-modal-close svg {
  width: 20px;
  height: 20px;
}

.market-modal-lead {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--grey);
  margin-bottom: 24px;
}

.market-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.market-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid rgba(11, 5, 29, 0.08);
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}

.market-option:hover {
  background: #f3f3f5;
  border-color: rgba(11, 5, 29, 0.14);
}

.market-option.is-active {
  background: var(--white);
  border-color: var(--black);
}

.market-option-flag {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-option-flag .market-flag-img {
  border-color: rgba(11, 5, 29, 0.08);
}

.market-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.market-option-market {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}

.market-option-lang {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--grey);
}

.market-option-check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0;
  color: var(--black);
}

.market-option.is-active .market-option-check {
  opacity: 1;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--black);
  color: var(--white);
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(11, 5, 29, 0.25);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-layout,
  .how-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-visual {
    order: -1;
  }

  .title-offset {
    margin-left: clamp(16px, 5vw, 48px);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-divider {
    display: none;
  }

  .stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-actions .btn-sm {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-col-market {
    grid-column: 1 / -1;
  }

  .market-modal-grid {
    grid-template-columns: 1fr;
  }

  .cta-block {
    text-align: left;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
