/* Home page showcase: WerkLens UI rebuilt in HTML with the example project
   that ships in the app ("Dakkapel plaatsen", Berkenlaan 41, Zwolle).
   Widget sizes follow iOS points: small 158, medium 338 x 158. */

:root {
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", var(--font);
  --proj: #14B8A6;
  --ink-dark: #131211;
  --ink-dark-2: #1D1C1A;
  --ink-dark-3: #2B2A28;
}

.rounded { font-family: var(--rounded); }

/* ---------- hero ---------- */

.hero-x { background: radial-gradient(120% 90% at 85% 10%, #2B2A28 0%, var(--ink-dark) 58%); color: #fff; padding: 56px 0 64px; overflow: hidden; }
.hero-x .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .hero-x .wrap { grid-template-columns: 1fr 1fr; gap: 40px; } .hero-x { padding: 88px 0 96px; } }
.hero-x .eyebrow { color: var(--accent-bright); }
.hero-x h1 { color: #fff; }
.hero-x h1 em { font-style: normal; color: var(--accent); }
.hero-x .lede { color: rgba(255, 255, 255, 0.78); }
.hero-x .hero-note { color: rgba(255, 255, 255, 0.6); }
.hero-x .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.16); }
.hero-x .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.hero-x .soon { background: #fff; color: #0A0A0C; }

.stage { position: relative; display: grid; gap: 14px; justify-items: center; }
@media (min-width: 560px) {
  .stage { grid-template-columns: 158px 338px; grid-template-rows: auto auto; gap: 16px; justify-content: center; align-items: start; }
  .stage .w-project { grid-column: 1 / 3; justify-self: end; }
  .stage .photo-card { grid-column: 2; grid-row: 2; }
  .stage .w-small { grid-column: 1; grid-row: 2; }
}
.stage .note { position: absolute; }
.stage-cap { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); margin-top: 6px; text-align: center; grid-column: 1 / -1; }

@media (prefers-reduced-motion: no-preference) {
  .stage > .w-project { animation: rise 0.7s cubic-bezier(.2,.8,.2,1) both; }
  .stage > .w-small { animation: rise 0.7s 0.08s cubic-bezier(.2,.8,.2,1) both; }
  .stage > .photo-card { animation: rise 0.7s 0.16s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

/* ---------- widgets (iOS-sized) ---------- */

.w { border-radius: 22px; overflow: hidden; position: relative; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 18px 40px rgba(0, 0, 0, 0.35); }
.w-small { width: 158px; height: 158px; }
.w-medium { width: min(338px, 100%); height: 158px; }

.w-project { background: #1D1C1A; }
.w-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.78) 100%); }
.w-project .in { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; z-index: 1; }
.phase { align-self: flex-start; font-family: var(--rounded); font-size: 9px; font-weight: 900; letter-spacing: 0.04em; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,0.32); border: 0.6px solid rgba(255,255,255,0.18); }
.w-project .name { font-family: var(--rounded); font-weight: 900; font-size: 17px; line-height: 1.15; margin-top: auto; }
.w-project .place { font-size: 11px; color: rgba(255,255,255,0.72); margin-top: 2px; }
.w-project .step { display: flex; gap: 6px; align-items: baseline; font-size: 11px; margin-top: 8px; }
.w-project .step b { font-family: var(--rounded); font-weight: 900; font-size: 10px; letter-spacing: 0.03em; color: var(--accent-bright); }
.ring { position: absolute; right: 14px; top: 12px; width: 44px; height: 44px; z-index: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--rounded); font-weight: 900; font-size: 12px; }

.w-plan { background: #fff; color: #0A0A0C; padding: 13px 14px; display: flex; flex-direction: column; gap: 6px; }
.w-plan .day { font-family: var(--rounded); font-weight: 900; font-size: 13px; color: #D8362A; letter-spacing: 0.02em; }
.w-plan .big { font-family: var(--rounded); font-weight: 900; font-size: 26px; line-height: 1; margin-top: -2px; }
.w-plan .ev { border-left: 3px solid var(--proj); padding-left: 7px; font-size: 11px; line-height: 1.25; }
.w-plan .ev small { display: block; color: rgba(10,10,12,0.55); font-size: 10px; }
.w-plan .todo { font-size: 10.5px; color: rgba(10,10,12,0.7); display: flex; gap: 5px; align-items: center; }
.w-plan .todo i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(10,10,12,0.35); flex: none; }

.w-money { background: #1D1C1A; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.w-money .lbl { font-weight: 800; font-size: 10px; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); }
.w-money .row { display: flex; justify-content: space-between; font-size: 12px; font-variant-numeric: tabular-nums; }
.w-money .row span:first-child { color: rgba(255,255,255,0.7); }
.w-money .keep { margin-top: auto; font-family: var(--rounded); font-weight: 900; font-size: 22px; color: #34C759; font-variant-numeric: tabular-nums; }
.w-money .sub { font-size: 10px; color: rgba(255,255,255,0.55); }

.w-camera { background: linear-gradient(135deg, #FF9F0A, #FFB340); display: grid; place-items: center; }
.w-camera .ico { width: 64px; height: 64px; border-radius: 50%; border: 9px solid #fff; display: grid; place-items: center; }
.w-camera .ico::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.w-camera .t { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-family: var(--rounded); font-weight: 900; font-size: 12px; color: #2B1600; }

.w-quick { background: #1D1C1A; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w-quick span { border-radius: 14px; background: #2B2A28; display: grid; place-items: center; align-content: center; gap: 4px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.85); }
.w-quick svg { width: 20px; height: 20px; color: var(--accent); }

.w-card { background: #F7F5F0; color: #1D1C1A; display: flex; padding: 16px; gap: 14px; align-items: center; }
.w-card .who { flex: 1; min-width: 0; }
.w-card .co { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: #8F5200; text-transform: uppercase; }
.w-card .nm { font-family: var(--rounded); font-weight: 900; font-size: 19px; margin-top: 4px; }
.w-card .rl { font-size: 11.5px; color: rgba(29,28,26,0.65); }
.w-card .ct { font-size: 10.5px; color: rgba(29,28,26,0.7); margin-top: 8px; line-height: 1.4; }
.w-card .qr { width: 108px; height: 108px; background: #fff; border-radius: 10px; padding: 6px; flex: none; }
.w-card .qr svg { width: 100%; height: 100%; display: block; }

/* the stamped photo, as the camera saves it */
.photo-card { margin: 0; width: min(338px, 100%); border-radius: 22px; overflow: hidden; position: relative; box-shadow: 0 18px 40px rgba(0,0,0,0.35); background: #1D1C1A; }
.photo-card img { width: 100%; aspect-ratio: 338 / 158; object-fit: cover; }
.photo-card.tall img { aspect-ratio: 4 / 3; }
.stamp-line { position: absolute; left: 10px; bottom: 10px; right: 10px; font-family: var(--font-mono); font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.photo-card figcaption.cap { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,0.5); color: #fff; }

/* ---------- project tracking ---------- */

.track { display: grid; gap: 28px; }
@media (min-width: 980px) { .track { grid-template-columns: 340px 1fr; gap: 48px; align-items: start; } .track .sum { position: sticky; top: 84px; } }
.sum { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.sum .top { padding: 20px; border-bottom: 1px solid var(--line); }
.sum .top .tag { display: inline-flex; gap: 6px; align-items: center; font-family: var(--rounded); font-weight: 900; font-size: 11px; letter-spacing: 0.04em; color: var(--accent-ink); }
.sum .top .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--proj); }
.sum h3 { font-family: var(--rounded); font-size: 1.4rem; font-weight: 900; margin-top: 8px; }
.sum .meta { color: var(--text-2); font-size: 0.92rem; margin-top: 4px; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); }
.counts div { padding: 14px 10px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.counts div:nth-child(3n) { border-right: 0; }
.counts div:nth-last-child(-n+3) { border-bottom: 0; }
.counts b { display: block; font-family: var(--rounded); font-size: 1.25rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.counts span { font-size: 0.78rem; color: var(--muted); }
.next-step { margin: 0; padding: 14px 20px; background: var(--accent-soft); font-size: 0.92rem; display: flex; gap: 10px; align-items: baseline; }
.next-step b { font-family: var(--rounded); font-weight: 900; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--accent-ink); white-space: nowrap; }

.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--proj), color-mix(in srgb, var(--proj) 20%, transparent)); border-radius: 2px; }
.tl > li { position: relative; padding: 0 0 28px 34px; }
.tl > li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 4px var(--proj); }
.tl > li.future::before { box-shadow: inset 0 0 0 2px var(--proj); }
.tl .when { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tl h4 { margin: 4px 0 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.items { display: grid; gap: 8px; }
@media (min-width: 720px) { .items.two { grid-template-columns: 1fr 1fr; align-items: start; } }
.it { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 0.92rem; }
.it .k { flex: none; font-family: var(--rounded); font-weight: 900; font-size: 0.68rem; letter-spacing: 0.04em; padding: 3px 7px; border-radius: 6px; background: var(--surface-hi); color: var(--text-2); margin-top: 1px; }
.it .k.note { background: rgba(59,130,246,0.14); color: #1E40AF; }
.it .k.hours { background: rgba(20,184,166,0.16); color: #0F766E; }
.it .k.cost { background: rgba(239,68,68,0.12); color: #B42318; }
.it .k.done { background: rgba(34,197,94,0.16); color: #15803D; }
.it .k.appt { background: rgba(168,85,247,0.14); color: #7E22CE; }
.it .k.inv { background: var(--accent-soft); color: var(--accent-ink); }
.it .v { flex: 1; min-width: 0; }
.it .amt { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.it.photo { padding: 0; overflow: hidden; display: block; position: relative; }
.it.photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.it.photo .stamp-line { font-size: 10.5px; }
.it.photo .cap { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,0.5); color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .it .k.note { color: #93C5FD; }
  :root:not([data-theme="light"]) .it .k.hours { color: #5EEAD4; }
  :root:not([data-theme="light"]) .it .k.cost { color: #FCA5A5; }
  :root:not([data-theme="light"]) .it .k.done { color: #86EFAC; }
  :root:not([data-theme="light"]) .it .k.appt { color: #D8B4FE; }
}
:root[data-theme="dark"] .it .k.note { color: #93C5FD; }
:root[data-theme="dark"] .it .k.hours { color: #5EEAD4; }
:root[data-theme="dark"] .it .k.cost { color: #FCA5A5; }
:root[data-theme="dark"] .it .k.done { color: #86EFAC; }
:root[data-theme="dark"] .it .k.appt { color: #D8B4FE; }

/* ---------- split rows (text + visual) ---------- */

.row2 { display: grid; gap: 32px; align-items: center; }
@media (min-width: 980px) { .row2 { grid-template-columns: 1fr 1fr; gap: 64px; } .row2.flip > :first-child { order: 2; } }
.row2 h2 { margin-bottom: 12px; }
.row2 > div > p { color: var(--text-2); font-size: 1.06rem; }
.row2 .ticks { margin-top: 18px; }

/* planning board */
.board { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: 18px; display: grid; gap: 14px; }
.board h4 { margin: 0; font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.appt { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); border-left: 4px solid var(--proj); }
.appt .d { text-align: center; font-family: var(--rounded); font-weight: 900; line-height: 1.05; }
.appt .d small { display: block; font-size: 0.68rem; font-weight: 800; color: #D8362A; text-transform: uppercase; }
.appt .d b { font-size: 1.35rem; }
.appt .t { font-size: 0.93rem; }
.appt .t small { display: block; color: var(--muted); font-size: 0.8rem; }
.task { display: flex; gap: 10px; align-items: center; font-size: 0.93rem; padding: 4px 2px; }
.task i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.task.done { color: var(--muted); text-decoration: line-through; }
.task.done i { background: var(--proj); border-color: var(--proj); }
.task.done i::after { content: ""; width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.task em { margin-left: auto; font-style: normal; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.hours-bar { display: grid; gap: 8px; }
.hb { display: grid; grid-template-columns: 110px 1fr 54px; gap: 10px; align-items: center; font-size: 0.88rem; }
.hb .bar { height: 10px; border-radius: 99px; background: var(--surface-hi); overflow: hidden; }
.hb .bar span { display: block; height: 100%; border-radius: 99px; background: var(--proj); }
.hb b { text-align: right; font-variant-numeric: tabular-nums; }

/* invoice paper */
.paper { background: #fff; color: #1D1C1A; border-radius: 6px; padding: 26px 26px 22px; box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 24px 48px rgba(10,10,12,0.16); font-size: 12.5px; max-width: 470px; margin: 0 auto; width: 100%; transform: rotate(-0.6deg); }
.paper .hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.paper .logo { width: 96px; height: 36px; border: 1.5px dashed rgba(29,28,26,0.3); border-radius: 6px; display: grid; place-items: center; font-size: 10px; color: rgba(29,28,26,0.55); }
.paper .ttl { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; text-align: right; }
.paper .ttl small { display: block; font-size: 11px; font-weight: 500; color: rgba(29,28,26,0.6); letter-spacing: 0; }
.paper .to { margin: 18px 0 14px; line-height: 1.45; color: rgba(29,28,26,0.8); }
.paper table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.paper th { text-align: left; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(29,28,26,0.55); font-weight: 700; padding: 0 0 6px; border-bottom: 1.5px solid #1D1C1A; }
.paper td { padding: 7px 0; border-bottom: 1px solid rgba(29,28,26,0.1); vertical-align: top; }
.paper td.n, .paper th.n { text-align: right; white-space: nowrap; padding-left: 10px; }
.paper .tot { margin-top: 10px; display: grid; gap: 3px; justify-content: end; grid-template-columns: auto 100px; text-align: right; font-variant-numeric: tabular-nums; }
.paper .tot .big { font-weight: 800; font-size: 15px; padding-top: 4px; border-top: 1.5px solid #1D1C1A; margin-top: 3px; }
.paper .ft { margin-top: 16px; display: flex; gap: 12px; align-items: center; color: rgba(29,28,26,0.7); font-size: 11px; }
.paper .payqr { width: 52px; height: 52px; border-radius: 6px; background: repeating-linear-gradient(45deg, rgba(29,28,26,0.08) 0 4px, transparent 4px 8px); border: 1.5px solid rgba(29,28,26,0.25); display: grid; place-items: center; font-size: 9px; font-weight: 800; flex: none; }
.money { display: grid; gap: 10px; margin-top: 20px; }
.money .mrow { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; font-size: 0.93rem; }
.money .bar { height: 12px; border-radius: 99px; background: var(--surface-hi); overflow: hidden; }
.money .bar span { display: block; height: 100%; border-radius: 99px; }
.money b { font-variant-numeric: tabular-nums; }

/* home screen */
.home-screen { border-radius: 36px; padding: 22px; background: radial-gradient(120% 120% at 0% 0%, #3B2A12 0%, #1D1C1A 50%, #131211 100%); display: grid; gap: 16px; justify-content: center; grid-template-columns: repeat(2, 158px); }
@media (min-width: 760px) { .home-screen { grid-template-columns: repeat(4, 158px); gap: 20px; padding: 32px; } }
.home-screen .w-medium { width: 338px; grid-column: span 2; }
@media (max-width: 420px) {
  .home-screen { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 12px; border-radius: 28px; }
  .home-screen .w-small { width: 100%; height: auto; aspect-ratio: 1; }
  .home-screen .w-medium { width: 100%; }
}
.wlabel { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* business card */
.card-big { margin: 0 auto; max-width: 440px; width: 100%; aspect-ratio: 85 / 55; border-radius: 18px; background: #F7F5F0; color: #1D1C1A; box-shadow: 0 24px 48px rgba(10,10,12,0.2); display: flex; gap: 18px; padding: 24px; align-items: center; transform: rotate(1.2deg); }
.card-big .who { flex: 1; min-width: 0; }
.card-big .co { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8F5200; }
.card-big .nm { font-family: var(--rounded); font-weight: 900; font-size: clamp(20px, 4vw, 26px); margin-top: 6px; }
.card-big .rl { font-size: 13px; color: rgba(29,28,26,0.65); }
.card-big .ct { font-size: 12px; color: rgba(29,28,26,0.75); margin-top: 12px; line-height: 1.5; }
.card-big .qr { width: 34%; max-width: 140px; aspect-ratio: 1; background: #fff; border-radius: 10px; padding: 8px; flex: none; }
.card-big .qr svg { width: 100%; height: 100%; display: block; }

/* share */
.share { text-align: center; max-width: 36em; margin: 0 auto; }
.share p { color: var(--text-2); margin-top: 12px; }
.share .actions { justify-content: center; margin-top: 22px; }
.share-ok { font-size: 0.9rem; color: var(--ok); min-height: 1.4em; margin-top: 10px; }

.example-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
