/* Homepage: productbeelden in de stijl van de iOS-app. Kleuren volgen mobileapps/src/lib/thema.ts; data-ios-theme="site" volgt het thema van de site, "dark" blijft donker. */

.landing-product .land-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(32px, 6vh, 72px); }
.landing-product .land-hero h1 { font-size: clamp(44px, 6.2vw, 88px); line-height: 1; letter-spacing: -.045em; }
.landing-product .land-hero .cta { align-items: center; }
.product-text-link { color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 4px; }
.product-text-link:hover { color: var(--cream); }
.product-heading { margin-bottom: 28px; }
.product-heading h2 { margin-bottom: 0; }

/* Telefoon: alles schaalt mee met de breedte van het toestel (1em = 16pt op een iPhone van 375pt breed). */
.ios-device { --w: 280px; width: var(--w); aspect-ratio: 375 / 790; flex: none; padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .16); background: linear-gradient(145deg, #4a4252, #1b1720 45%, #3a3242); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 30px 60px -28px rgba(20,8,40,.55); container-type: inline-size; }
.ios-screen {
  --bg: #F7F5FA; --kaart: #FFFFFF; --rand: #E4E0E7; --tekst: #221532; --tekst2: #574D63; --zwak: #8C8594; --accent: #5B3FD6; --diep: #6B2FA3; --zacht: #E9E1F5; --mint: #A9DDCB; --goed: #1F9E72;
  font-size: 4.27cqw; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font); line-height: 1.25; color: var(--tekst);
  height: 100%; overflow: hidden; position: relative; border-radius: calc(var(--w) * .135); background: var(--bg); display: flex; flex-direction: column; text-align: left;
}
[data-ios-theme="dark"] .ios-screen, :root:not([data-theme="light"]) [data-ios-theme="site"] .ios-screen, :root:not([data-theme="light"]) [data-ios-theme="site"].ios-crop { --bg: #15111C; --kaart: #27232D; --rand: #34303B; --tekst: #F5F2F8; --tekst2: #A9A6AD; --zwak: #78747D; --accent: #8B6CFF; --diep: #C69CE0; --zacht: rgba(139,108,255,.16); --mint: #7FD8B8; --goed: #3DDDA1; }
.ios-status { flex: none; position: relative; display: flex; align-items: center; justify-content: space-between; height: 3.2em; padding: 0 1.9em 0 2.1em; font-weight: 600; font-size: .95em; }
.ios-island { position: absolute; left: 50%; top: .7em; width: 7.4em; height: 2.2em; transform: translateX(-50%); border-radius: 2em; background: #000; }
.ios-batterij { width: 1.6em; height: .8em; border: 1.5px solid currentColor; border-radius: .25em; padding: 1px; background: currentColor content-box; opacity: .9; }
.ios-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: .75em; padding: .5em 1em 0; -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
.ios-profile { display: flex; align-items: center; gap: .7em; padding: .2em 0 .3em; }
.ios-profile img { width: 2.2em; height: 2.2em; }
.ios-profile strong { display: block; font-size: 1.4em; letter-spacing: -.02em; }
.ios-profile small { display: block; color: var(--tekst2); font-size: .8em; }
.ios-card { flex: none; background: var(--kaart); border: 1px solid var(--rand); border-radius: 1em; padding: .9em 1em; display: flex; flex-direction: column; gap: .2em; }
.ios-card small { color: var(--tekst2); font-size: .78em; }
.ios-label { color: var(--zwak); font-size: .78em; font-weight: 500; }
.ios-card strong { font-size: 1.05em; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ios-card strong.ios-getal { font-size: 1.85em; letter-spacing: -.03em; line-height: 1.1; }
.ios-goed { color: var(--goed); }
.ios-balk { display: flex; gap: 2px; height: .7em; margin-top: .6em; border-radius: 1em; overflow: hidden; }
.ios-balk i, .ios-legenda i { background: var(--accent); }
.ios-balk i:nth-child(2), .ios-legenda span:nth-child(2) i { background: var(--diep); }
.ios-balk i:nth-child(3), .ios-legenda span:nth-child(3) i { background: var(--zacht); }
.ios-balk i:nth-child(4), .ios-legenda span:nth-child(4) i { background: var(--mint); }
.ios-legenda { display: grid; grid-template-columns: 1fr 1fr; gap: .35em .8em; margin-top: .55em; font-size: .72em; color: var(--tekst2); }
.ios-legenda span { display: flex; align-items: center; gap: .4em; }
.ios-legenda i { width: .6em; height: .6em; border-radius: .2em; flex: none; }
.ios-legenda b { margin-left: auto; color: var(--tekst); font-weight: 600; }
.ios-tiles { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: .75em; }
.ios-tiles .ios-card { padding: .8em; }
.ios-spark { width: 100%; height: 2.4em; margin-bottom: .3em; }
.ios-fan { width: 100%; height: auto; margin: .4em 0 .2em; }
.ios-lijn { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ios-pad { stroke: var(--zwak); stroke-width: 1.2; opacity: .45; }
.ios-band { fill: var(--accent); opacity: .12; }
.ios-punt { fill: var(--diep); }
.ios-ring { position: relative; width: 2.6em; height: 2.6em; margin-bottom: .3em; border-radius: 50%; background: conic-gradient(var(--goed) 0 94%, var(--rand) 94%); display: grid; place-items: center; }
.ios-ring::before { content: ''; position: absolute; inset: .3em; border-radius: 50%; background: var(--kaart); }
.ios-ring span { position: relative; font-size: .62em; font-weight: 700; }
.ios-next { flex-direction: row; align-items: center; gap: .7em; }
.ios-next > div { flex: 1; display: flex; flex-direction: column; gap: .1em; }
.ios-next b { font-size: .88em; }
.ios-next > span:last-child { color: var(--accent); font-weight: 700; }
.ios-next-icon { width: 2.2em; height: 2.2em; border-radius: .7em; background: var(--zacht); color: var(--accent); display: grid; place-items: center; flex: none; }
.ios-next-icon svg, .ios-tabbar svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ios-tabbar { flex: none; display: flex; justify-content: space-around; padding: .55em .5em 1.9em; border-top: 1px solid var(--rand); background: var(--kaart); }
.ios-tabbar span { display: flex; flex-direction: column; align-items: center; gap: .2em; color: var(--zwak); }
.ios-tabbar small { font-size: .62em; font-weight: 500; }
.ios-tabbar .selected { color: var(--accent); }
.ios-tabbar::after { content: ''; position: absolute; left: 50%; bottom: .5em; width: 8.5em; height: .3em; transform: translateX(-50%); border-radius: 1em; background: var(--tekst); opacity: .85; }

/* Hero: twee telefoons die elkaar overlappen. */
.phone-showcase { margin: 0; min-width: 0; }
.phone-stage { position: relative; height: clamp(440px, 46vw, 620px); display: flex; justify-content: center; align-items: center; isolation: isolate; }
.phone-glow { position: absolute; inset: 10% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .32), transparent); filter: blur(20px); }
.phone-stage .ios-device { --w: clamp(200px, 21vw, 290px); position: absolute; }
.phone-front { transform: translateX(22%) rotate(4deg); z-index: 1; }
.phone-rear { transform: translateX(-34%) translateY(-5%) rotate(-7deg) scale(.9); filter: brightness(.97); }
.phone-showcase figcaption, .product-single-phone figcaption { text-align: center; font-size: 11px; color: var(--text-faint); margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .phone-front { animation: telefoonIn .9s cubic-bezier(.2,.8,.2,1) both; }
  .phone-rear { animation: telefoonAchter 1s .1s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes telefoonIn { from { opacity: 0; transform: translateX(22%) translateY(8%) rotate(4deg); } }
@keyframes telefoonAchter { from { opacity: 0; transform: translateX(-34%) translateY(4%) rotate(-7deg) scale(.9); } }

/* Strook met onderwerpen. */
.product-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1400px; width: calc(100% - 2 * clamp(16px, 4vw, 48px)); margin: 0 auto; padding: 18px 0; border-top: 1px solid var(--border-faint); border-bottom: 1px solid var(--border-faint); color: var(--text-dim); font-size: 13px; }
.product-strip > div { display: flex; gap: 22px; }
.product-strip > div span { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; white-space: nowrap; }
.product-strip svg { width: 18px; height: 18px; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Drie functies, elk met een uitsnede uit de app. */
.product-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-feature h3 { margin: 6px 0 6px; font-size: 20px; letter-spacing: -.02em; text-transform: none; color: var(--text); }
.product-feature p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.product-feature-number { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.product-feature-art { height: 270px; margin-bottom: 18px; padding: 24px; overflow: hidden; border-radius: 22px; border: 1px solid var(--border); background: var(--panel-gradient); display: flex; justify-content: center; align-items: center; }
.ios-crop .ios-fan { height: 84px; }
.ios-crop .ios-tiles .ios-card { min-height: 150px; justify-content: flex-end; }
.ios-crop { --kaart: #FFFFFF; --rand: #E4E0E7; --tekst: #221532; --tekst2: #574D63; --zwak: #8C8594; --accent: #5B3FD6; --diep: #6B2FA3; --zacht: #E9E1F5; --mint: #A9DDCB; --goed: #1F9E72;
  width: 100%; max-width: 300px; font-size: 16px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font); line-height: 1.25; color: var(--tekst); text-align: left; filter: drop-shadow(0 18px 30px rgba(40,16,80,.18)); }
:root:not([data-theme="light"]) .ios-crop { filter: drop-shadow(0 18px 30px rgba(0,0,0,.4)); }
.ios-crop .ios-card { border-radius: 16px; }

/* Donkere band met één telefoon. */
.product-future { margin: clamp(24px, 5vh, 56px) 0; padding: clamp(48px, 9vh, 96px) clamp(16px, 4vw, 48px) 0; overflow: hidden; background: radial-gradient(90% 70% at 80% 100%, rgba(139,108,255,.35), transparent 70%), #15111C; color: #F5F2F8; }
.product-future-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 6vw, 96px); align-items: center; }
.product-future-inner > div { padding-bottom: clamp(48px, 9vh, 96px); }
.product-future .eyebrow { color: #C69CE0; }
.product-future h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.04em; margin: 12px 0 18px; color: inherit; }
.product-future p { max-width: 480px; color: rgba(245,242,248,.72); font-size: 16px; line-height: 1.6; }
.product-future-facts { display: flex; gap: 40px; margin-top: 28px; }
.product-future-facts b { display: block; font-size: 38px; letter-spacing: -.03em; }
.product-future-facts span { font-size: 13px; color: rgba(245,242,248,.6); }
.product-single-phone { margin: 0; align-self: end; height: clamp(360px, 38vw, 520px); overflow: hidden; }
.product-single-phone .ios-device { --w: clamp(220px, 22vw, 300px); }

/* Privacy en afsluiting. */
.product-private { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: 24px; border: 1px solid var(--border); background: var(--panel-gradient); }
.product-private h2 { margin-bottom: 0; }
.product-private .check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.product-private .check li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.product-private .check svg { width: 16px; height: 16px; stroke: var(--mint); fill: none; stroke-width: 2.4; stroke-linecap: round; flex: none; }
.product-final { text-align: center; padding: clamp(48px, 10vh, 110px) clamp(16px, 4vw, 48px); }
.product-final h2 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1; letter-spacing: -.045em; margin: 14px 0 28px; }
.product-final p { color: var(--text-dim); font-size: 14px; margin-top: 16px; }

@media (max-width: 960px) {
  .landing-product .land-hero { grid-template-columns: 1fr; text-align: left; }
  .phone-stage { height: 470px; }
  .phone-stage .ios-device { --w: 220px; }
  .product-strip { flex-direction: column; align-items: flex-start; }
  .product-strip > div { flex-wrap: wrap; gap: 10px 18px; }
  .product-feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-future-inner { grid-template-columns: 1fr; }
  .product-future-inner > div { padding-bottom: 0; }
  .product-single-phone { justify-self: center; height: 340px; }
  .product-private { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .landing-product .land-hero { padding-top: 32px; gap: 8px; }
  .landing-product .land-hero h1 { font-size: 46px; }
  .landing-product .land-hero .lead { font-size: 16px; }
  .phone-stage { height: 390px; }
  .phone-stage .ios-device { --w: 178px; }
  .phone-front { transform: translateX(20%) rotate(3deg); }
  .phone-rear { transform: translateX(-30%) translateY(-4%) rotate(-6deg) scale(.9); }
  .product-feature-art { height: 250px; padding: 20px; }
  .product-single-phone { height: 300px; }
  .product-single-phone .ios-device { --w: 200px; }
  .product-future-facts { gap: 28px; }
  .product-future-facts b { font-size: 30px; }
}
@media (max-width: 600px) {
  .landing-product .bento, .product-feature-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px; scrollbar-width: none; }
  .landing-product .bento::-webkit-scrollbar, .product-feature-grid::-webkit-scrollbar { display: none; }
  .landing-product .bento-kaart, .landing-product .bento-kaart.breed, .product-feature { grid-column: auto; scroll-snap-align: start; }
}

/* Portfolio-sectie en het portfolio-scherm in de telefoon. */
.ios-titel { font-size: 1.7em; letter-spacing: -.03em; padding: .1em 0; }
.ios-periodes { display: flex; justify-content: space-between; margin: .7em 0 .1em; font-size: .7em; font-weight: 600; color: var(--zwak); }
.ios-periodes span { padding: .3em .6em; border-radius: 1em; }
.ios-periodes .selected { background: var(--zacht); color: var(--accent); }
.ios-lijn-mint { stroke: var(--goed); }
.ios-candles { width: 100%; height: auto; margin: .5em 0 .1em; --op: var(--goed); --neer: #E05A6A; }
.ios-candles line, .demo-candles line { stroke-width: 1; }
.ios-candles .op line, .demo-candles .op line { stroke: var(--op); }.ios-candles .op rect, .demo-candles .op rect { fill: var(--op); }
.ios-candles .neer line, .demo-candles .neer line { stroke: var(--neer); }.ios-candles .neer rect, .demo-candles .neer rect { fill: var(--neer); }
.demo-candles { --op: var(--brand-green); --neer: var(--brand-coral); }
.ios-cats { gap: 0; padding: .3em 1em; }
.ios-cats > div { display: flex; align-items: center; gap: .6em; padding: .6em 0; border-bottom: 1px solid var(--rand); }
.ios-cats > div:last-child { border-bottom: 0; }
.ios-cats i { width: .55em; height: 1.9em; border-radius: .3em; background: var(--accent); flex: none; }
.ios-cats > div:nth-child(2) i { background: var(--diep); }
.ios-cats > div:nth-child(3) i { background: #E05A6A; }
.ios-cats > div:nth-child(4) i { background: var(--mint); }
.ios-cats span { display: flex; flex-direction: column; font-size: .85em; }
.ios-cats span:last-child { margin-left: auto; text-align: right; }
.ios-cats small { font-size: .82em; }
.product-portfolio { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.product-portfolio-phone { height: auto; overflow: visible; }
.product-lead { color: var(--text-dim); font-size: 16px; line-height: 1.6; max-width: 560px; margin: 0 0 22px; }
.product-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.product-cats span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-low); font-size: 13px; font-weight: 600; }
.product-cats svg { width: 16px; height: 16px; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-pf-lijst { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.product-pf-lijst li { display: flex; gap: 10px; }
.product-pf-lijst svg { width: 16px; height: 16px; margin-top: 2px; stroke: var(--mint); fill: none; stroke-width: 2.4; stroke-linecap: round; flex: none; }
.product-pf-lijst b { display: block; font-size: 15px; margin-bottom: 4px; }
.product-pf-lijst span { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }

/* Uitgebreide preview. */
.demo-stats.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-band { fill: var(--violet); opacity: .16; }
.demo-stop { stroke: var(--text-faint); stroke-dasharray: 4 4; }
.demo-graph text.demo-stop-label { fill: var(--cream); font-weight: 600; }
.demo-line-mint { stroke: var(--mint); }
.demo-assets section + section { margin-top: 14px; }
.demo-assets-kop { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 8px; border-bottom: 1px solid var(--border-faint); }
.demo-assets-kop h4 { margin: 0; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--text); }
.demo-assets-kop span { font-weight: 700; font-variant-numeric: tabular-nums; }
.demo-assets-kop small { margin-left: 8px; color: var(--text-faint); font-weight: 500; }
.demo-asset { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--border-faint); }
.demo-asset:last-child { border-bottom: 0; }
.demo-asset .avatar { width: 38px; height: 38px; border-radius: 50%; font-size: 9px; letter-spacing: 0; border: 2px solid var(--bg-base); background-color: var(--bg-base); }
.demo-asset .avatar { background-image: linear-gradient(var(--cream-dim), var(--cream-dim)); }
.demo-asset .avatar.crypto { background-image: linear-gradient(rgba(233,184,114,0.2), rgba(233,184,114,0.2)); color: var(--amber); }
.demo-asset .avatar.etf, .demo-asset .avatar.aandeel { background-image: linear-gradient(rgba(124,92,255,0.18), rgba(124,92,255,0.18)); color: var(--violet-soft); }
:root[data-theme="light"] .demo-asset .avatar.etf, :root[data-theme="light"] .demo-asset .avatar.aandeel { color: var(--brand-violet); }
:root[data-theme="light"] .demo-asset .avatar.crypto { color: #A8761F; }
.demo-asset > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.demo-asset b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-asset small { font-size: 12px; color: var(--text-dim); }
.demo-asset-waarde { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.demo-asset-waarde small.good-text { color: var(--brand-green); }.demo-asset-waarde small.bad-text { color: var(--brand-coral); }
.demo-view .demo-scenarios, #demo-view .card .demo-scenarios { margin-bottom: 14px; }
.demo-voet { margin-top: 14px; line-height: 1.6; }
.demo-sidebar [role=group] button span { margin-left: 0; }

@media (max-width: 960px) {
  .product-portfolio { grid-template-columns: 1fr; }
  .product-portfolio-phone { order: 2; justify-self: center; height: 420px; overflow: hidden; }
}
@media (max-width: 700px) {
  .demo-stats.c3 { grid-template-columns: 1fr 1fr; }
  .demo-stats.c3 .stat:first-child { grid-column: span 2; }
  .product-pf-lijst { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .demo-sidebar [role=group] { overflow-x: auto; scrollbar-width: none; }
  .demo-sidebar [role=group] button { flex: none; padding: 10px 12px; }
  .demo-sidebar [role=group] button span { display: inline; }
  .product-portfolio-phone { height: 360px; }
  .product-portfolio-phone .ios-device { --w: 210px; }
}
@media (max-width: 600px) {
  .demo-layout { grid-template-columns: minmax(0, 1fr); }
  .demo-sidebar, .demo-body { min-width: 0; }
}

/* Uitgaven per categorie, zoals in de app */
.ios-uit .ios-balk { margin: .5em 0 .2em; }
.ios-uit-rij { display: flex; align-items: center; gap: .6em; padding: .45em 0; border-bottom: 1px solid var(--rand); }
.ios-uit-rij:last-child { border-bottom: 0; }
.ios-uit-rij i { width: .55em; height: 1.9em; border-radius: .3em; flex: none; }
.ios-uit-rij span { display: flex; flex-direction: column; font-size: .85em; }
.ios-uit-rij span:last-child { margin-left: auto; text-align: right; }
.ios-uit-rij small { font-size: .82em; }
.ios-screen .ios-koraal, .ios-crop .ios-koraal { color: #E05A6A; }

/* Op een telefoon: de weg naar de app */
.land-app { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 16px 10px 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-low); color: var(--text); text-decoration: none; }
.land-app svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.land-app b { display: block; font-size: 15px; }
.land-app small { display: block; font-size: 13px; color: var(--text-dim); }
.land-app > span:last-child { margin-left: 6px; color: var(--text-dim); }
.demo-uit-lijst h4.uit-groep { margin-top: 10px; }
.demo-uit-lijst .uit-regel { min-height: 40px; }
