/* StickyNotch — Nook's "sunroom glass" page (the owner asked for it to match nook.newmac.app), recoloured with
   sticky-note gradients. Own CSS, no shared style.css.
   A sunny room: a cream wash, a lemon glow in one corner, sky-blue window light in the other, a rose pool below and
   soft window-pane beams. After dark, a warm lamplit room. New York serif headlines, each with one italic phrase
   underlined by a lemon → peach → rose ribbon (the colours of the notes). Glass panels carry the content. Below the
   page styles: the time tape, the page's notch and the working demo. Motion is off under Reduce Motion. */
:root {
  --bg-0: #fffaf0; --bg-1: #fff6ea; --bg-2: #fdf0f2;
  --ink: #24201e; --ink-2: #5d554f; --ink-3: #8c827a;
  --line: rgba(70, 45, 30, .11); --line-2: rgba(70, 45, 30, .2);
  --glass: rgba(255, 255, 255, .5); --glass-2: rgba(255, 255, 255, .78); --glass-edge: rgba(255, 255, 255, .95);
  --violet: #d9570f; --rose: #d9447a; --lamp: #e8a10c; --teal: #1f7a84;
  --ribbon: linear-gradient(100deg, #ffc933 0%, #ff9a5c 50%, #ff6f9e 100%);
  --action: linear-gradient(95deg, #e57f0e, #e8582c 55%, #d9447a);
  --shadow: 0 18px 50px rgba(80, 45, 40, .10);
  --serif: ui-serif, "New York", "Iowan Old Style", "Charter", Georgia, serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* What the working model (and its shared helpers) expect. */
  --font: var(--text); --font-serif: var(--serif); --font-mono: var(--mono);
  --text-c: var(--ink); --muted: var(--ink-2); --faint: var(--ink-3); --card: var(--glass-2); --sunk: rgba(70, 45, 30, .05);
  --radius: 18px; --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-0: #1b1714; --bg-1: #1c1618; --bg-2: #18141c;
    --ink: #f4eee6; --ink-2: #c9c0b6; --ink-3: #8f857b;
    --line: rgba(255, 240, 230, .10); --line-2: rgba(255, 240, 230, .2);
    --glass: rgba(255, 245, 240, .045); --glass-2: rgba(255, 245, 240, .08); --glass-edge: rgba(255, 245, 240, .18);
    --violet: #ffa25c; --rose: #ff86b4; --lamp: #ffd166; --teal: #5cc6cf;
    --shadow: 0 22px 60px rgba(8, 4, 12, .5);
    --sunk: rgba(255, 245, 240, .05);
    color-scheme: dark;
  }
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 var(--text); color: var(--ink); background: linear-gradient(165deg, var(--bg-0), var(--bg-1) 55%, var(--bg-2)); background-attachment: fixed; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
code, .mono { font-family: var(--mono); font-size: .88em; }
h1, h2, h3 { font-family: var(--serif); margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: min(1140px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(860px, 100% - 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg-0); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; margin: 0 1px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--glass-2); font: 500 11.5px var(--mono); color: var(--ink-2); vertical-align: 1px; }

/* The signature: an italic serif phrase with the bookmark ribbon drawn underneath it. */
.ribbon { font-style: italic; font-weight: 500; background: var(--ribbon) no-repeat 0 92% / 100% .1em; padding-bottom: .04em; }
.js .reveal .ribbon, .js .reveal.ribbon { background-size: 0 .1em; transition: background-size 1.1s cubic-bezier(.6, 0, .2, 1) .35s; }
.js .reveal.in .ribbon { background-size: 100% .1em; }
@media (prefers-reduced-motion: reduce) { .js .reveal .ribbon { background-size: 100% .1em; transition: none; } }

/* ── The room: lamp, window light, rose pool and three beams through the panes ── */
.room { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.room .glow { position: absolute; border-radius: 50%; }
.room .lamp { width: 70vw; height: 70vw; right: -26vw; top: -30vw; background: radial-gradient(circle, rgba(255, 214, 90, .55), transparent 62%); }
.room .window { width: 75vw; height: 75vw; left: -32vw; top: -28vw; background: radial-gradient(circle, rgba(120, 196, 255, .26), transparent 62%); }
.room .rose { width: 70vw; height: 60vw; left: 20vw; bottom: -40vw; background: radial-gradient(circle, rgba(255, 130, 170, .18), transparent 62%); }
.room .beam { position: absolute; top: -10vh; height: 130vh; transform: skewX(-24deg); transform-origin: top; background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); }
.room .b1 { left: 14vw; width: 13vw; } .room .b2 { left: 31vw; width: 5vw; opacity: .8; } .room .b3 { left: 39vw; width: 2.5vw; opacity: .6; }
@media (prefers-color-scheme: dark) {
  .room .lamp { background: radial-gradient(circle, rgba(255, 196, 80, .2), transparent 62%); }
  .room .window { background: radial-gradient(circle, rgba(90, 170, 230, .2), transparent 62%); }
  .room .rose { background: radial-gradient(circle, rgba(255, 111, 163, .12), transparent 62%); }
  .room .beam { background: linear-gradient(rgba(255, 236, 220, .05), rgba(255, 236, 220, 0) 70%); }
}
@media (prefers-reduced-motion: no-preference) {
  .room .beam { animation: sway 18s ease-in-out infinite alternate; }
  .room .b2 { animation-delay: -6s; } .room .b3 { animation-delay: -12s; }
  .room .lamp { animation: flicker 9s ease-in-out infinite alternate; }
}
@keyframes sway { to { transform: skewX(-20deg) translateX(3vw); } }
@keyframes flicker { 50% { opacity: .82; } }

/* ── Glass ── */
.glass { position: relative; background: linear-gradient(165deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); border-radius: var(--r);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge); }

/* ── Reveal on scroll (site.js adds .in) ── */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg-0) 72%, transparent); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px var(--serif); color: var(--ink); text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-by { color: var(--ink-3); font-size: 13px; text-decoration: none; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .hide-sm, .nav-by { display: none; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 14px; font: 600 16px var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s cubic-bezier(.2, .9, .3, 1.3), box-shadow .25s, background .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn-ribbon { color: #fff; background: var(--action); box-shadow: 0 8px 22px rgba(232, 88, 44, .3), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ribbon:hover { box-shadow: 0 12px 30px rgba(217, 68, 122, .36), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-glass { color: var(--ink); background: var(--glass-2); border-color: var(--line-2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 var(--glass-edge); }
.btn-glass:hover { background: var(--glass); border-color: var(--line-2); }

/* ── Hero ── */
.hero { padding: 64px 0 30px; text-align: center; overflow-x: clip; }
.hero-in { display: grid; justify-items: center; gap: 22px; }
.pill-new { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; padding: 6px 8px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); background: var(--glass-2); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.pill-new b { color: #fff; background: var(--action); padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 12.5px; }
.pill-new a { text-decoration: none; padding-right: 6px; }
h1 { font-size: clamp(44px, 7.6vw, 92px); line-height: 1.02; max-width: 13ch; text-wrap: balance; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fine { font-size: 13.5px; color: var(--ink-3); }
.fine a { color: var(--ink-2); }

.hero-stage { position: relative; margin: 52px auto 0; width: min(640px, 100% - 40px); }
  background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }


/* Bookmark slips floating around the hero card. */
@keyframes bob { 50% { translate: 0 -9px; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.97); } }

/* ── Sections ── */
section.sec { padding: 104px 0 0; }
section.sec h2 { font-size: clamp(32px, 4.8vw, 56px); line-height: 1.08; text-align: center; max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.sec-lead { text-align: center; color: var(--ink-2); font-size: 19px; max-width: 34em; margin: 16px auto 0; }

/* ── The working model, framed like a window on the desk ── */
.frame { margin-top: 40px; padding: 12px; border-radius: 26px; }
.frame .mac-window { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.keys-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 4px 2px; }
.keys-legend button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font: 500 13px var(--text); cursor: pointer; transition: background .2s, transform .2s, color .2s; }
.keys-legend button:hover { background: var(--glass-2); color: var(--ink); transform: translateY(-1px); }
.keys-legend button.hit { color: #fff; background: var(--action); border-color: transparent; }
.keys-legend button.hit kbd { color: #fff; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); }
.frame-cap { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }
@media (max-width: 640px) { .keys-legend button:nth-child(n+4) { display: none; } .frame { padding: 6px; } }

/* ── Features: glass tiles, three of them marked New with a ribbon tab ── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.tile { padding: 24px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; transition: transform .35s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tile h3 { font-size: 21px; }
.tile p { color: var(--ink-2); font-size: 15px; }
.t-wide { grid-column: span 2; }
.tile.new { padding-top: 34px; }
.badge { position: absolute; top: 0; right: 22px; padding: 6px 9px 9px; font: 700 10.5px var(--text); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--action); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .t-wide { grid-column: auto; } }
.viz { margin-top: auto; padding-top: 16px; }

/* ── The real windows ── */
.gallery { margin-top: 40px; }
.gallery-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; margin-bottom: 18px; }
.gallery-bar .tabs, .gallery-bar .looks { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.gallery-bar button { min-height: 32px; padding: 0 13px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: 500 13.5px var(--text); cursor: pointer; }
.gallery-bar button:hover { color: var(--ink); }
.gallery-bar [aria-selected="true"], .gallery-bar [aria-pressed="true"] { color: #fff; background: var(--action); }
.shot { margin: 0; }
.shot img { margin: 0 auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ── Privacy ── */
.privacy { padding: 44px 40px; text-align: center; }
.privacy h2 { font-size: clamp(28px, 3.6vw, 42px); }
.trust { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.trust li { color: var(--ink-2); font-size: 15px; padding-left: 16px; border-left: 3px solid; border-image: var(--ribbon) 1; }
.trust b { display: block; color: var(--ink); font: 600 18px var(--serif); margin-bottom: 3px; }
@media (max-width: 820px) { .trust { grid-template-columns: 1fr; } .privacy { padding: 32px 22px; } }

/* ── Comparison ── */
.cmp-wrap { margin-top: 40px; overflow-x: auto; padding: 6px 4px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.cmp th, .cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font: 600 11.5px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cmp tbody th { font-weight: 600; color: var(--ink); }
.cmp td { color: var(--ink-2); }
.cmp .us { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--violet) 9%, transparent); }
.cmp thead .us { color: var(--violet); font: 600 italic 17px var(--serif); letter-spacing: 0; text-transform: none; }
.cmp-note { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }

/* ── Pricing ── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; align-items: stretch; }
.plan { padding: 32px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; transition: transform .35s var(--ease); }
.plan:hover { transform: translateY(-5px); }
.plan-pop { border: 1.5px solid transparent; background: linear-gradient(165deg, var(--pop-1), var(--pop-2)) padding-box, var(--ribbon) border-box; --pop-1: #ffffff; --pop-2: #fff6ea; }
@media (prefers-color-scheme: dark) { .plan-pop { --pop-1: #2c2420; --pop-2: #221c1e; } }
/* site.js adds a 1 · 3 · 5 picker and tick marks for small screens; this page shows all three cards instead. */
.plan-switch, .plan-tick { display: none; }
.plans-soon[hidden] { display: none; }
.plan-badge { position: absolute; top: -13px; left: 50%; translate: -50% 0; font: 600 12px var(--text); color: #fff; padding: 4px 12px; border-radius: 999px; background: var(--action); box-shadow: 0 6px 16px rgba(232, 88, 44, .35); }
.plan h3 { font-size: 26px; }
.plan-for { color: var(--ink-3); font-size: 14px; }
.plan-price { font: 600 42px var(--serif); letter-spacing: -.02em; margin-top: 14px; }
.plan-once { color: var(--ink-3); font-size: 13.5px; margin-bottom: 20px; }
.plan-btn { margin-top: auto; width: 100%; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plans-soon { text-align: center; margin-top: 18px; color: var(--ink-2); }
.perks { text-align: center; margin-top: 26px; color: var(--ink-2); font-size: 15px; }
.owned { text-align: center; margin-top: 10px; font-size: 14px; color: var(--ink-3); }

/* ── FAQ ── */
.faq { margin-top: 40px; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--glass); border: 1px solid var(--line); transition: background .25s; }
.faq details[open] { background: var(--glass-2); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 22px; font: 600 18px var(--serif); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--text); color: var(--violet); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); font-size: 15.5px; }

/* ── Closing: the reading lamp ── */
section.sec.closing { text-align: center; padding-bottom: 104px; }
.closing .cta-row { margin-top: 28px; }
.next-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; text-align: left; }
.next-links a { padding: 22px 24px; text-decoration: none; color: var(--ink); display: grid; gap: 4px; transition: transform .3s; }
.next-links a b { font: 600 18px var(--serif); }
.next-links a:hover { transform: translateY(-3px); }
.next-links span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 720px) { .next-links { grid-template-columns: 1fr; } }

/* ── Footer ── */
footer { border-top: 1px solid var(--line); padding: 48px 0 36px; font-size: 14px; color: var(--ink-3); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 2fr 1fr 1fr; gap: 28px; }
.foot-about p { margin-top: 10px; max-width: 26em; }
footer h2 { font: 600 12px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-apps ul { grid-template-columns: repeat(3, 1fr); }
footer a { color: var(--ink-2); text-decoration: none; } footer a:hover { color: var(--ink); }
footer a[aria-current] { color: var(--violet); }
footer .brand { font: 600 17px var(--serif); }
.pw-mark { width: 26px; height: 26px; } .pw-mark .t1 { fill: #ffc933; } .pw-mark .t2 { fill: var(--rose); } .pw-mark .p { fill: var(--violet); } .pw-mark .s { stroke: #fff; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-apps ul { grid-template-columns: repeat(2, 1fr); } }



/* ════════════════ StickyNotch: notes, the time tape, the notch ════════════════ */
:root {
  --lemon: #ffe97f; --peach: #ffcda8; --mint: #c2efcd; --sky: #c4e2ff; --lilac: #dfd0ff; --rosep: #ffc6d4; --graphite: #3b3b3e;
  --note-ink: #2a2519; --calm: #1f7a84; --soon: #d98a0f; --urgent: #e0601e; --over: #d7373f;
}
.lemon { --paper: var(--lemon); } .peach { --paper: var(--peach); } .mint { --paper: var(--mint); } .sky { --paper: var(--sky); }
.lilac { --paper: var(--lilac); } .rose-p { --paper: var(--rosep); } .graphite { --paper: var(--graphite); --note-ink: #f3f1ec; }

/* The time tape: the strip holding a note up; its length is the time left, its colour how close. */
.tp { --f: .5; --c: var(--calm); position: relative; display: block; width: 120px; height: 18px; background: rgba(255, 255, 255, .62);
  clip-path: polygon(2% 0, 98% 0, 100% 25%, 98% 50%, 100% 75%, 98% 100%, 2% 100%, 0 75%, 2% 50%, 0 25%); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .1)); }
.tp::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--f) * 100%); min-width: 8px; background: var(--c); opacity: .9; transition: width .6s linear, background .3s; }
.tp.soon { --c: var(--soon); } .tp.urgent { --c: var(--urgent); } .tp.over { --c: var(--over); }
.tp.over::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 6px); }
.tp.paused::before { opacity: .3; width: 100%; }
.tp .lbl { position: absolute; inset: 0; display: grid; place-items: center; font: 700 10.5px/1 var(--mono); color: var(--note-ink); mix-blend-mode: normal; }
.tp:not(.paused):not(.over) .lbl { color: var(--note-ink); }
.tp.over .lbl { color: #fff; }

/* A sticky note. */
.note { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 14px 12px; border-radius: 8px; color: var(--note-ink); text-align: left;
  background: linear-gradient(170deg, color-mix(in srgb, var(--paper) 88%, #fff), var(--paper)); box-shadow: 0 16px 30px -14px rgba(60, 35, 20, .35), inset 0 0 0 1px rgba(0, 0, 0, .05); }
.note > .tp { position: absolute; top: 8px; left: 50%; width: 60%; max-width: 128px; translate: -50% 0; rotate: -1.4deg; }
.note .t { font: 600 16px/1.3 ui-rounded, "SF Pro Rounded", var(--text); }
.note .b { font: 14px/1.4 ui-rounded, "SF Pro Rounded", var(--text); opacity: .75; }
.note .due { font: 600 11.5px/1 var(--mono); opacity: .72; margin-top: auto; }

/* Hero: three notes on a glass desk, ticking. */
.hero-stage { position: relative; margin: 52px auto 0; width: min(760px, 100% - 40px); }
.hero-stage::before { content: ""; position: absolute; inset: 8% -14% -10%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 51, .32), rgba(255, 111, 158, .16) 45%, transparent 70%); filter: blur(24px); }
.hero-desk { padding: 54px 28px 32px; border-radius: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hero-desk .note { min-height: 168px; }
.hero-desk .note:nth-child(2) { rotate: 1.6deg; translate: 0 10px; } .hero-desk .note:nth-child(3) { rotate: -1.2deg; } .hero-desk .note:nth-child(1) { rotate: -2deg; }
.mini-notch { position: absolute; top: 0; left: 50%; translate: -50% 0; display: flex; align-items: center; height: 28px; border-radius: 0 0 12px 12px; background: #000; color: #fff; font: 700 12px var(--mono); font-variant-numeric: tabular-nums; }
.mini-notch .ear { width: 62px; display: inline-flex; justify-content: center; gap: 5px; align-items: center; }
.mini-notch .cam { width: 120px; }
.ear.soon { color: #f5b13d; } .ear.urgent { color: #ff8a4c; } .ear.over { color: #ff6369; }
@media (max-width: 680px) { .hero-desk { grid-template-columns: 1fr; padding: 48px 18px 22px; } .hero-desk .note:nth-child(n) { rotate: 0deg; translate: 0 0; min-height: 120px; } }
@media (prefers-reduced-motion: no-preference) { .hero-desk { animation: rise 1s var(--ease) both; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.97); } }

/* The page's own notch, fixed at the top: ears with a live countdown; point at it and the sections drop down. */
.pnotch { position: fixed; top: 0; left: 50%; translate: -50% 0; z-index: 70; display: flex; flex-direction: column; align-items: center; }
.pnotch-bar { display: flex; align-items: center; height: 30px; padding: 0; border: 0; background: #000; color: #fff; border-radius: 0 0 12px 12px; cursor: pointer; font: inherit; }
.pnotch-bar .ear { width: 64px; display: inline-flex; justify-content: center; gap: 5px; font: 700 12px/1 var(--mono); font-variant-numeric: tabular-nums; }
.pnotch-bar .cam { width: 150px; height: 30px; }
.pnotch-tray { display: flex; gap: 10px; padding: 0 16px; background: #000; border-radius: 0 0 24px 24px; margin-top: -1px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s var(--ease), opacity .2s, padding .35s var(--ease); }
.pnotch.open .pnotch-tray { max-height: 200px; opacity: 1; padding: 6px 16px 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.tcard { width: 124px; height: 104px; padding: 24px 10px 8px; text-decoration: none; font-size: 12px; line-height: 1.3; }
.tcard > .tp { width: 66px; height: 12px; top: 7px; }
.tcard b { font: 600 15px var(--serif); }
.tcard span { opacity: .72; }
.tcard:hover { translate: 0 -2px; }
@media (max-width: 860px) { .pnotch { display: none; } }

/* The working demo: Quick Note above a desk with its own notch. */
.qn { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 10px 10px 18px; border-radius: 16px; color: var(--note-ink); background: linear-gradient(170deg, #fff4b8, var(--lemon)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.qn input { flex: 1 1 260px; min-width: 0; border: 0; background: transparent; font: 600 19px/1.3 ui-rounded, "SF Pro Rounded", var(--text); color: var(--note-ink); padding: 8px 0; }
.qn input:focus { outline: none; }
.qn input::placeholder { color: rgba(42, 37, 25, .45); }
.qn-parse { font: 600 12.5px/1 var(--mono); color: var(--note-ink); opacity: .8; }
.desk { position: relative; margin-top: 12px; height: 440px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(800px 460px at 100% 100%, rgba(255, 201, 51, .5), transparent 60%), radial-gradient(700px 420px at 0% 0%, rgba(120, 196, 255, .45), transparent 60%), linear-gradient(135deg, #ffd9c2, #f7c6d9 50%, #ffe9b0); }
@media (prefers-color-scheme: dark) { .desk { background: radial-gradient(800px 460px at 100% 100%, rgba(255, 170, 60, .25), transparent 60%), radial-gradient(700px 420px at 0% 0%, rgba(90, 150, 230, .25), transparent 60%), linear-gradient(135deg, #2b2230, #3a2730 50%, #2f2a22); } }
.desk::before { content: ""; position: absolute; inset: 0 0 auto; height: 26px; background: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.desk-notes { position: absolute; inset: 46px 18px 18px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 18px; }
.dn { width: 200px; min-height: 156px; animation: drop .35s var(--ease); }
.dn .acts { display: flex; gap: 4px; margin-top: auto; }
.dn button { border: 0; background: rgba(0, 0, 0, .07); color: inherit; font: 700 11.5px/1 var(--text); padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.dn button:hover { background: rgba(0, 0, 0, .14); }
.dn.ring { box-shadow: 0 0 0 3px var(--over), 0 16px 30px -14px rgba(60, 35, 20, .35); animation: shake .5s; }
.dn .ringbar { display: none; margin: 4px -14px -12px; padding: 7px 10px; background: var(--over); color: #fff; border-radius: 0 0 8px 8px; font: 700 12px/1 var(--text); align-items: center; gap: 6px; }
.dn.ring .ringbar { display: flex; } .dn.ring .acts { display: none; }
.dn .ringbar button { background: rgba(255, 255, 255, .22); color: #fff; border-radius: 99px; padding: 5px 8px; }
.dn .ringbar button.ok { background: #fff; color: var(--over); margin-left: auto; }
@keyframes drop { from { transform: translateY(-14px) rotate(-2deg); opacity: 0; } }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.dnotch { position: absolute; top: 0; left: 50%; translate: -50% 0; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.dnotch-bar { display: flex; align-items: center; height: 26px; border: 0; padding: 0; background: #000; color: #fff; border-radius: 0 0 10px 10px; cursor: pointer; font: inherit; }
.dnotch-bar .ear { width: 54px; font: 700 11.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
.dnotch-bar .cam { width: 110px; height: 26px; }
.dnotch-tray { display: flex; gap: 8px; background: #000; border-radius: 0 0 20px 20px; padding: 0 12px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s var(--ease), opacity .2s, padding .3s; max-width: min(640px, 92vw); }
.dnotch.open .dnotch-tray { max-height: 180px; opacity: 1; padding: 8px 12px 12px; }
.dn-empty { color: #aaa; font-size: 13px; padding: 10px 6px; width: 260px; text-align: center; }
.tn { width: 134px; height: 106px; padding: 24px 9px 6px; border: 0; cursor: pointer; flex: none; font: 600 12.5px/1.25 ui-rounded, "SF Pro Rounded", var(--text); }
.tn > .tp { width: 84px; height: 14px; top: 6px; }
.tn small { display: block; margin-top: 6px; font: 600 10px/1 var(--mono); opacity: .65; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 4px 2px; font-size: 14px; color: var(--ink-2); }
.speed { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.keys-legend { padding: 0; }
@media (max-width: 560px) { .dn { width: 100%; } .desk { height: auto; min-height: 460px; } .desk-notes { position: relative; inset: auto; padding: 46px 14px 14px; } }

/* Feature tiles' little pictures. */
.viz-tapes { display: grid; gap: 10px; }
.viz-tapes span { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.viz-tapes .tp { background: var(--lemon); }
.viz-notch { position: relative; height: 110px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #ffd9c2, #f7c6d9 50%, #c4e2ff); }
.viz-notch .mini-notch { height: 24px; font-size: 11px; } .viz-notch .mini-notch .ear { width: 48px; } .viz-notch .mini-notch .cam { width: 84px; }
.viz-notch .tray { position: absolute; top: 23px; left: 50%; translate: -50% 0; display: flex; gap: 6px; padding: 6px 10px 10px; border-radius: 0 0 16px 16px; background: #000; }
.viz-notch .tray i { width: 52px; height: 44px; border-radius: 5px; background: var(--paper); }
.viz-ring { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: #fff; background: var(--over); font: 700 13px var(--text); }
.viz-ring b { margin-left: auto; padding: 3px 9px; border-radius: 99px; background: #fff; color: var(--over); font-size: 12px; }
.viz-ring em { font-style: normal; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .22); font-size: 12px; }
.viz-quick { padding: 10px 14px; border-radius: 12px; background: linear-gradient(170deg, #fff4b8, var(--lemon)); color: var(--note-ink); font: 600 16px ui-rounded, "SF Pro Rounded", var(--text); }
.viz-quick small { display: block; margin-top: 6px; font: 600 11.5px var(--mono); opacity: .75; }
.viz-papers { display: flex; gap: 6px; } .viz-papers i { flex: 1; height: 34px; border-radius: 6px; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }

/* Closing: a little stack of notes. */
.pad { position: relative; width: 150px; height: 130px; margin: 0 auto 30px; }
.pad i { position: absolute; inset: 0; border-radius: 8px; background: var(--paper); box-shadow: 0 14px 30px -14px rgba(60, 35, 20, .4); }
.pad i:nth-child(1) { rotate: -8deg; } .pad i:nth-child(2) { rotate: 5deg; } .pad i:nth-child(3) { rotate: -1deg; }
.pad .tp { position: absolute; top: -6px; left: 50%; width: 90px; translate: -50% 0; rotate: -3deg; }
.shot.narrow img { max-width: 640px; width: 100%; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 760px) { .split2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dn, .dn.ring, .hero-desk { animation: none; } .pnotch-tray, .dnotch-tray, .tp::before { transition: none; } }
