/* Fount notes — "Maak je eigen bladzijde" (/demo/). Een getrouwe browserversie van de leesweergave in de app:
   zelfde knoppen, menu's en volgorde als FountNotesApp.swift (readerMeta, readerFooter, readerTools). */

.demo-hero { position: relative; overflow: hidden; }
.demo-hero .wrap { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy device" "steps device"; column-gap: clamp(40px, 6vw, 96px); row-gap: 32px; align-items: start; }
.demo-copy { grid-area: copy; display: flex; flex-direction: column; gap: 20px; padding-top: clamp(0px, 3vw, 40px); }
.demo-copy .h1 { color: var(--on-cloth-strong); font-size: clamp(44px, 5.6vw, 76px); }
.demo-copy .lede { max-width: 520px; }
.demo-device-col { grid-area: device; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.demo-caption { margin: 0; font-size: 14px; color: var(--on-cloth-quiet); text-align: center; max-width: 340px; }
.demo-side { grid-area: steps; display: flex; flex-direction: column; gap: 20px; max-width: 520px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid rgba(250, 245, 227, .18); }
.steps li { counter-increment: step; position: relative; padding: 16px 0 16px 52px; border-bottom: 1px solid rgba(250, 245, 227, .18); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(250, 245, 227, .4); display: grid; place-items: center; font: 600 15px/1 var(--ui); color: var(--on-cloth); transition: background-color 300ms, border-color 300ms; }
.steps li.done::before { content: ""; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3d37' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: var(--gold); }
.steps strong { display: block; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.15; color: var(--on-cloth-strong); }
.steps span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.45; color: var(--on-cloth-soft); }
.steps li.done strong { color: var(--gold); }
.demo-privacy { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--on-cloth-quiet); }
.demo-privacy svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.demo-done { display: none; border: 1px solid rgba(227, 204, 158, .5); border-radius: 16px; padding: 20px 22px; background: rgba(250, 245, 227, .06); flex-direction: column; gap: 12px; }
.demo-done.show { display: flex; animation: rise 600ms var(--ease-out) both; }
.demo-done h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--on-cloth-strong); }
.demo-done p { margin: 0; color: var(--on-cloth-soft); }

@media (max-width: 900px) {
  .demo-hero .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "device" "steps"; }
  .demo-copy { padding-top: 0; }
}

/* ---------------------------------------------------------------- het toestel */

.device { --app-bg: #b9c6ad; --paper-c: #fcfaf2; --rule-c: rgba(143, 164, 171, .42); --ctl: #667556; --txt: #2e382e;
  position: relative; width: 372px; height: min(780px, max(600px, calc(100svh - 150px))); border: 11px solid #0e1d1a; border-radius: 56px; background: var(--app-bg);
  box-shadow: 0 0 0 1px #2b3b37, 0 30px 70px rgba(0, 0, 0, .45), 0 8px 18px rgba(0, 0, 0, .25); overflow: hidden; isolation: isolate;
  font-family: -apple-system, "SF Pro Text", var(--ui); color: var(--txt); user-select: none; -webkit-user-select: none; }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; }
.ios-status { flex: none; height: 50px; padding: 14px 30px 0 34px; display: flex; justify-content: space-between; align-items: center; font: 600 16px/1 -apple-system, var(--ui); color: #1d2420; }
.ios-status .island { position: absolute; left: 50%; top: 10px; width: 112px; height: 32px; margin-left: -56px; border-radius: 20px; background: #0e1d1a; }
.ios-status svg { height: 13px; width: auto; }
.ios-status .sys { display: flex; gap: 6px; align-items: center; }

.app-nav { flex: none; height: 44px; display: flex; align-items: center; padding: 0 8px; gap: 2px; }
.app-nav .title { flex: 1; text-align: center; font: 600 15.5px/1.2 -apple-system, var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.app-nav button { min-width: 40px; height: 40px; }
.app-nav .back { display: inline-flex; align-items: center; gap: 0; padding: 0 2px; font-size: 14px; width: 92px; justify-content: flex-start; }
.app-nav .back .ic { width: 20px; height: 20px; }
.app-nav .right { display: flex; width: 80px; justify-content: flex-end; }
.app-nav .right button { min-width: 36px; }
.device button { font: inherit; color: var(--ctl); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.device button:focus-visible { outline: 2px solid #1f3d37; outline-offset: -2px; border-radius: 10px; }
.device svg { display: block; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Papier */
.paper { position: relative; flex: 1; min-height: 0; margin: 4px 12px 0; background: var(--paper-c); border-radius: 6px 14px 14px 6px; box-shadow: 0.65px 1px 0 0 #e9e4d7, 2px 4px 8px rgba(59, 68, 52, .16); display: flex; flex-direction: column; }
.paper.turn-next { animation: turn-next 300ms var(--ease-out); }
.paper.turn-prev { animation: turn-prev 300ms var(--ease-out); }
@keyframes turn-next { from { transform: translateX(26px) rotateY(-6deg); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes turn-prev { from { transform: translateX(-26px) rotateY(6deg); opacity: .3; } to { transform: none; opacity: 1; } }
.meta { flex: none; height: 46px; margin: 10px 18px 0 14px; display: flex; align-items: center; border-bottom: 1px solid #e3ddcd; }
.meta button { width: 44px; height: 44px; }
.meta .aa { font: 500 15px/1 -apple-system, var(--ui); letter-spacing: .02em; }
.meta .spacer { flex: 1; }
.meta .review[aria-pressed="true"] svg { fill: currentColor; }
.rec-status { gap: 4px; width: auto !important; padding: 0 6px; color: #b4472d !important; font: 600 13px/1 -apple-system, var(--ui); }
.rec-status[hidden] { display: none; }
.rec-status .badge { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #b4472d; color: #fff; font-size: 11px; display: grid; place-items: center; margin-left: -8px; margin-top: -14px; }
.rec-status.live svg { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.sheet { position: relative; flex: 1; min-height: 0; overflow: hidden; margin-top: 8px; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--rule-c) 31px, var(--rule-c) 32px); touch-action: pan-y; }
.pg-text { position: relative; min-height: 100%; padding: 0 20px 0 22px; outline: none; font: 400 18.5px/32px "EB Garamond", Georgia, serif; color: var(--txt); user-select: text; -webkit-user-select: text; caret-color: #1f3d37; overflow-wrap: anywhere; }
.pg-text > div { min-height: 32px; }
.pg-text.is-empty::before { content: attr(data-placeholder); position: absolute; left: 22px; top: 0; color: #8e968a; pointer-events: none; }
.pg-text .heading { font-weight: 600; font-size: 22px; }
.pg-text .large { font-size: 24px; }
.pg-text .small { font-size: 16px; }
.pg-text .bullet, .pg-text .task { position: relative; padding-left: 26px; }
.pg-text .bullet::before { content: ""; position: absolute; left: 8px; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pg-text .task::before { content: ""; position: absolute; left: 2px; top: 8px; width: 15px; height: 15px; border: 1.4px solid #667556; border-radius: 50%; cursor: pointer; }
.pg-text .task.checked { color: #8e968a; text-decoration: line-through; text-decoration-color: rgba(46, 56, 46, .4); }
.pg-text .task.checked::before { background: #667556 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcfaf2' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pg-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pg-ink .hl { mix-blend-mode: multiply; }
.drawing .pg-ink { pointer-events: auto; touch-action: none; cursor: crosshair; }
.erasing .pg-ink { cursor: cell; }
.drawing .pg-text { pointer-events: none; }

.foot { flex: none; height: 48px; margin: 0 14px 4px 18px; display: flex; align-items: center; border-top: 1px solid #e3ddcd; }
.foot .index { font: 400 14px/1 -apple-system, var(--ui); color: var(--txt); min-width: 64px; height: 44px; justify-content: flex-start !important; padding-left: 6px !important; }
.foot .spacer { flex: 1; }
.foot button { width: 44px; height: 44px; color: var(--txt); }
.undo { width: 40px !important; height: 40px !important; border-radius: 50%; background: rgba(251, 248, 236, .93) !important; border: 1px solid #d7d8c6 !important; color: #667556 !important; }
.undo[hidden] { display: none; }

/* Gereedschap */
.toolbar { flex: none; margin: 10px 12px 14px; height: 62px; border-radius: 24px; background: rgba(250, 248, 240, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 2px 8px rgba(40, 60, 40, .08); display: flex; align-items: center; justify-content: space-around; padding: 0 4px; }
.toolbar button { flex: 1; height: 54px; flex-direction: column; gap: 3px; border-radius: 18px; font: 500 10.5px/1 -apple-system, var(--ui); color: #5b6a52; }
.toolbar button[aria-pressed="true"] { background: rgba(102, 117, 86, .16); color: #1f3d37; }
.toolbar .aa-ic { font: 500 17px/22px -apple-system, var(--ui); height: 22px; }
.toolbar .rec.live { color: #b4472d; }
.toolbar .rec.live .ic { animation: pulse 1s ease-in-out infinite; }

.formatbar { position: absolute; left: 50%; bottom: 84px; z-index: 3; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; opacity: 0; pointer-events: none; transition: opacity 160ms; }
.formatbar.show { opacity: 1; pointer-events: auto; }
.formatbar .group { display: flex; height: 50px; padding: 0 4px; border-radius: 25px; background: rgba(250, 248, 240, .94); box-shadow: 0 4px 16px rgba(40, 60, 40, .16), inset 0 0 0 1px rgba(205, 199, 181, .6); }
.formatbar .group button { width: 52px; flex-direction: column; gap: 2px; font: 500 10px/1 -apple-system, var(--ui); color: #4c5a46; }
.formatbar .group button[aria-pressed="true"] { color: #1f3d37; background: rgba(102, 117, 86, .16); border-radius: 16px; margin: 4px 0; }
.formatbar .group .ic { width: 19px; height: 19px; }
.formatbar .kb { width: 42px; height: 42px; border-radius: 50%; background: rgba(250, 248, 240, .94); box-shadow: 0 4px 16px rgba(40, 60, 40, .16), inset 0 0 0 1px rgba(205, 199, 181, .6); }

/* Menu (Aa) */
.popmenu { position: absolute; z-index: 6; left: 26px; top: 148px; min-width: 210px; padding: 6px 0; border-radius: 14px; background: rgba(252, 251, 246, .97); box-shadow: 0 12px 34px rgba(30, 45, 30, .25), inset 0 0 0 1px rgba(205, 199, 181, .5); }
.popmenu[hidden] { display: none; }
.popmenu button { width: 100%; justify-content: flex-start !important; padding: 0 16px !important; height: 44px; font: 400 16px/1 -apple-system, var(--ui) !important; color: #1d2420 !important; }
.popmenu button + button { border-top: 1px solid #ebe6d8; }

/* Onderbladen */
.scrim { position: absolute; inset: 0; z-index: 7; background: rgba(20, 35, 30, .28); opacity: 0; pointer-events: none; transition: opacity 200ms; }
.scrim.show { opacity: 1; pointer-events: auto; }
.panel { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 8; max-height: 78%; overflow: auto; border-radius: 34px; background: #f6f3ea; padding: 18px 20px 20px; transform: translateY(105%); transition: transform 260ms var(--ease-out); box-shadow: 0 -8px 30px rgba(20, 35, 30, .18); }
.panel:not(.show) { pointer-events: none; }
.panel.show { transform: none; }
.panel header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel h3 { margin: 0; font: 600 26px/1.1 "EB Garamond", Georgia, serif; color: #1d2420; }
.panel .pill-btn { height: 36px; padding: 0 16px; border-radius: 18px; background: #e7e4d9 !important; color: #1d2420 !important; font: 600 15px/1 -apple-system, var(--ui) !important; }
.panel h4 { margin: 16px 0 8px; font: 500 13px/1.2 -apple-system, var(--ui); color: #5d665c; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.presets button { flex-direction: column; gap: 6px; height: 74px; border-radius: 12px; border: 1px solid #d9d5c8 !important; background: #fcfaf3 !important; font: 500 12px/1 -apple-system, var(--ui) !important; color: #2e382e !important; }
.presets button[aria-pressed="true"] { border: 1.5px solid #1f3d37 !important; box-shadow: inset 0 0 0 1px #1f3d37; }
.presets svg { width: 70px; height: 22px; }
.inks { display: flex; gap: 12px; }
.inks button { width: 34px; height: 34px; border-radius: 50%; background: var(--c) !important; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.inks button[aria-pressed="true"] { box-shadow: 0 0 0 2px #f6f3ea, 0 0 0 4px var(--c); }
.width-row { display: flex; align-items: center; gap: 12px; font: 500 13px/1 -apple-system, var(--ui); color: #2e382e; }
.width-row input { flex: 1; accent-color: #1f3d37; }
.width-row output { min-width: 36px; text-align: right; }
.panel .preview { margin-top: 16px; height: 56px; border-radius: 12px; background: #fcfaf3; border: 1px solid #e3ddcd; }
.clips { display: flex; flex-direction: column; gap: 10px; }
.clip { border-radius: 18px; background: #ebe8de; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.clip .row { display: flex; justify-content: space-between; font: 500 15px/1.2 -apple-system, var(--ui); color: #1d2420; }
.clip button { align-self: flex-start; gap: 8px; height: 32px; color: #1d2420 !important; font: 400 15px/1 -apple-system, var(--ui) !important; }
.clip button svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.page-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.page-list button { aspect-ratio: 3 / 4; border-radius: 6px 10px 10px 6px; background: #fcfaf3 !important; border: 1px solid #ddd8ca !important; flex-direction: column; justify-content: space-between !important; align-items: stretch !important; padding: 6px !important; text-align: left; overflow: hidden; }
.page-list button[aria-current="page"] { border: 1.5px solid #1f3d37 !important; }
.page-list .n { font: 600 11px/1 -apple-system, var(--ui); color: #5d665c; }
.page-list .t { font: 400 9.5px/1.25 "EB Garamond", Georgia, serif; color: #2e382e; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.page-list .m { display: flex; gap: 3px; color: #8e968a; }
.page-list .m svg { width: 11px; height: 11px; }

.toast { position: absolute; left: 22px; right: 22px; top: 166px; z-index: 9; padding: 12px 14px; border-radius: 14px; background: rgba(31, 47, 41, .94); color: #faf5e3; font: 400 14px/1.4 -apple-system, var(--ui); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(-6px); transition: opacity 200ms, transform 200ms; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 520px) {
  .demo-hero .wrap { padding-left: 12px; padding-right: 12px; }
  .demo-copy, .demo-side { padding-left: 4px; padding-right: 4px; }
  .device { width: 100%; max-width: 400px; height: min(720px, calc(100svh - 72px)); min-height: 560px; border-width: 8px; border-radius: 40px; }
  .ios-status { height: 40px; padding-top: 10px; }
  .ios-status .island { top: 8px; height: 26px; width: 96px; margin-left: -48px; }
}
@media (prefers-reduced-motion: reduce) {
  .paper.turn-next, .paper.turn-prev, .demo-done.show { animation: none; }
  .panel, .toast, .scrim { transition: none; }
}

/* ---------------------------------------------------------------- daaronder: demo en app naast elkaar */

.compare { width: 100%; border-collapse: collapse; font-size: 17px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font: 600 14px/1.2 var(--label-font); letter-spacing: .08em; text-transform: uppercase; color: var(--label); padding-top: 0; }
.compare tbody th { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.15; width: 18%; color: var(--ink); }
.compare td { color: var(--body); width: 41%; }
.compare td.no { color: var(--muted); font-style: italic; }
@media (max-width: 720px) {
  .compare thead { display: none; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .compare th, .compare td { border: 0; padding: 4px 0; width: auto; }
  .compare tbody th { grid-column: 1 / -1; font-size: 22px; padding-bottom: 6px; }
  .compare td::before { content: attr(data-label); display: block; font: 600 12px/1.3 var(--label-font); letter-spacing: .08em; text-transform: uppercase; color: var(--label); margin-bottom: 4px; font-style: normal; }
}
.app-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 64px; }
.app-shots figure { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.app-shots .screen { max-width: 260px; margin: 0 auto; }
.app-shots figcaption { display: flex; flex-direction: column; gap: 6px; }
.app-shots figcaption strong { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.15; }
.app-shots figcaption span { color: var(--body); font-size: 16px; }
.app-shots .condition { font-size: 13px; }
