/* One stylesheet for the landing, support and privacy pages. System fonts only (New York and
   Apple's handwriting faces on Apple devices), so the site loads nothing from anyone else and
   collects nothing. Animations are CSS only and stop with Reduce Motion. */
:root {
  --desk: #e6e1d7;
  --paper: #fdfcf8;
  --ink: #16181f;
  --ink-soft: #4a4d57;
  --rule: #c3cbd6;
  --edge: #d9d3c6;
  --red: #c8312b;
  --graphite: #8f8a82;
  --note: #6b665e;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --hand: "Bradley Hand", "Noteworthy", "Segoe Print", "Comic Neue", cursive;
  --row: 44px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
p { margin: 0 0 1em; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.hand { font-family: var(--hand); font-weight: 700; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
header.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px var(--serif); }
header.top .brand img { width: 36px; height: 36px; border-radius: 9px; }
header.top nav a { margin-left: 18px; color: var(--ink-soft); text-decoration: none; font-size: 15px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 28px 0 72px; }
.kicker { color: var(--red); font-size: 22px; margin: 0 0 6px; transform: rotate(-1.5deg); display: inline-block; }
.hero h1 { font: 600 clamp(38px, 5.4vw, 62px)/1.06 var(--serif); margin: 0 0 20px; letter-spacing: -0.015em; }
.circled { position: relative; display: inline-block; white-space: nowrap; }
.circled svg { position: absolute; left: -9%; top: -22%; width: 118%; height: 150%; fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; overflow: visible; }
.circled svg path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.1s 0.6s ease-out forwards; }
.hero .lead { font-size: 20px; color: var(--ink-soft); margin: 0 0 26px; max-width: 30em; }
.cta { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 13px 24px; border-radius: 999px; font-weight: 600; }
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
.note-soon { color: var(--ink-soft); font-size: 19px; }
.price-line { margin-top: 16px; color: var(--ink-soft); font-size: 15px; }

/* The example sheet in the hero: written in front of the visitor, once. */
.sheet { background: var(--paper); border: 1px solid var(--edge); border-radius: 3px; padding: 18px 18px 26px; transform: rotate(1.2deg);
  box-shadow: 0 1px 1px rgba(0,0,0,.10), 0 22px 46px rgba(60,50,30,.18); aspect-ratio: 210 / 260; position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 41px, var(--rule) 41px, var(--rule) 42px); background-position: 0 58px; }
.sheet-week { font: italic 12px var(--serif); color: var(--graphite); margin: 0 0 14px 4px; height: 26px; }
.sheet-cols { display: grid; grid-template-columns: repeat(3, 1fr); height: calc(100% - 40px); }
.sheet .col { border-left: 1.5px solid #8d887f; padding: 0 0 0 10px; position: relative; }
.sheet .col:first-child { border-left: none; padding-left: 4px; }
.sheet .todo { position: relative; height: 42px; line-height: 1; padding-top: 20px; margin: 0; font-family: var(--hand); font-weight: 700; font-size: clamp(13px, 1.4vw, 18px); white-space: nowrap; }
.sheet .todo .ink { display: inline-block; clip-path: inset(0 100% 0 0); animation: write 0.7s ease-out forwards; }
.sheet .w1 .ink { animation-delay: .3s; } .sheet .w2 .ink { animation-delay: .7s; } .sheet .w3 .ink { animation-delay: 1.1s; }
.sheet .w4 .ink { animation-delay: 1.5s; } .sheet .w5 .ink { animation-delay: 1.9s; } .sheet .w6 .ink { animation-delay: 2.3s; }
.sheet .w7 .ink { animation-delay: 2.7s; } .sheet .w8 .ink { animation-delay: 3.1s; } .sheet .w9 .ink { animation-delay: 3.5s; }
/* The squiggle sits on the rule under the current list and takes no room of its own. */
.sheet .squiggle { position: absolute; left: 0; top: 79px; width: 88%; height: 10px; fill: none; stroke: #6f6a62; stroke-width: 1.4; }
.sheet .done .ink { animation: write .7s 1.1s ease-out forwards, fade 0.5s 4.4s forwards; }
.sheet .strike, .demo .strike { position: absolute; left: -4px; top: 0; width: calc(100% + 8px); height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; overflow: visible; }
.sheet .strike { width: 90%; top: 9px; }
.sheet .strike path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .6s 4s ease-out forwards, gray .5s 4.4s forwards; }
.sheet .ring, .demo .ring { position: absolute; left: -10px; top: 4px; height: calc(100% - 8px); fill: none; stroke-width: 2.2; stroke-linecap: round; overflow: visible; }
.sheet .ring { width: 92%; top: 12px; height: 30px; stroke: var(--ink); }
.sheet .ring path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .9s 5s ease-out forwards, redden .4s 5.9s forwards; }

/* Sections */
section { padding: 60px 0; }
section h2 { font: 600 clamp(28px, 3.6vw, 40px)/1.14 var(--serif); margin: 0 0 12px; letter-spacing: -0.01em; }
section p.sub { color: var(--ink-soft); margin: 0 0 36px; max-width: 36em; font-size: 18px; }

/* Features: paper cards, deliberately uneven. */
.feature { background: var(--paper); border: 1px solid var(--edge); border-radius: 3px; padding: 24px; box-shadow: 0 1px 0 rgba(0,0,0,.06); margin-bottom: 28px; }
.feature h3 { font: 600 22px var(--serif); margin: 18px 0 6px; }
.feature p { color: var(--ink-soft); margin: 0; }
.feature.wide { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.feature.wide h3 { font-size: 28px; margin-top: 0; }
.feature.wide.flip { grid-template-columns: 1fr 1.3fr; }
.feature.wide.flip .demo { order: 2; }
.pair { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.pair .feature:first-child { transform: rotate(-0.4deg); }
.pair .feature.tall { margin-top: 26px; }

/* Demo strips: four ruled rows of real-looking handwriting, animated in a loop. */
.demo { position: relative; height: calc(var(--row) * 4); border-radius: 2px; overflow: hidden;
  background: #fffefb repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--row) - 1px), var(--rule) calc(var(--row) - 1px), var(--rule) var(--row)); }
.demo .row { position: absolute; left: 18px; height: var(--row); line-height: var(--row); margin: 0; font-size: 22px; white-space: nowrap; color: var(--ink); }
.demo .row::before { content: "•"; margin-right: 12px; font-family: var(--sans); }
.demo .r0 { top: 0; } .demo .r1 { top: var(--row); } .demo .r2 { top: calc(var(--row) * 2); }

/* Write anywhere: written low on the page, then it moves to the next free row. */
.write-demo .moving { animation: moveUp 7s ease-in-out infinite; }
.write-demo .reveal { display: inline-block; clip-path: inset(0 100% 0 0); animation: writeLoop 7s ease-out infinite; }
.write-demo .pen { position: absolute; width: 34px; height: 34px; left: 150px; top: 120px; fill: #2b2d33; animation: penMove 7s ease-out infinite; }
.write-demo .pen .tip { fill: #e8c79a; }

/* A line through it: done. */
.done-demo .target { color: var(--ink); animation: grayText 6s infinite; }
.done-demo .strike path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: strikeLoop 6s infinite; }

/* A circle round it: important, and it jumps to the top. */
.important-demo .ring { width: calc(100% + 20px); }
.important-demo .ring path { stroke-dasharray: 100; stroke-dashoffset: 100; stroke: var(--ink); animation: ringLoop 6.5s infinite; }
.important-demo .up { animation: toTop 6.5s ease-in-out infinite; }
.important-demo .down { animation: toSecond 6.5s ease-in-out infinite; }

/* Move it with a finger. */
.move-demo .lifted { animation: dragUp 7s ease-in-out infinite; }
.move-demo .pushed { animation: pushDown 7s ease-in-out infinite; }
.move-demo .finger { position: absolute; width: 40px; height: 50px; left: 190px; top: 98px; fill: #fffaf2; stroke: #2b2d33; stroke-width: 2; animation: fingerMove 7s ease-in-out infinite; }
.move-demo .finger .touch { fill: rgba(200,49,43,.18); stroke: none; transform-origin: 22px 6px; animation: touchPulse 7s ease-in-out infinite; }

/* Monday, quiet facts, price, FAQ, maker */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.paper-photo { margin: 0; background: var(--paper); border: 1px solid var(--edge); border-radius: 3px; padding: 16px 16px 10px; transform: rotate(0.8deg); box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 14px 30px rgba(60,50,30,.12); }
.paper-photo figcaption { color: var(--note); font-size: 17px; text-align: right; margin-top: 6px; }
.quiet .big { font: 500 clamp(22px, 2.6vw, 30px)/1.35 var(--serif); max-width: 30em; margin: 0; }
.price { text-align: center; border-top: 1px solid #bdb6a6; border-bottom: 1px solid #bdb6a6; margin: 20px 0; padding: 48px 0; }
.price p { color: var(--ink-soft); max-width: 34em; margin: 0 auto 10px; }
.price .small { font-size: 14px; color: var(--note); }
.faq details { border-bottom: 1px solid #cfc8b9; padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }
.maker { max-width: 40em; }
.maker p { font: 400 19px/1.55 var(--serif); color: var(--ink-soft); }
.maker .sign { font: 700 26px var(--hand); color: var(--ink); margin-top: 4px; }

footer { padding: 40px 0 56px; color: var(--ink-soft); font-size: 14px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; border-top: 1px solid #cfc8b9; }
footer a { color: var(--ink-soft); }

/* Text pages: support and privacy. */
.doc { background: var(--paper); border: 1px solid var(--edge); border-radius: 3px; padding: 36px 40px; margin: 12px auto 40px; max-width: 760px; }
.doc h1 { font: 600 36px var(--serif); margin: 0 0 8px; }
.doc h2 { font: 600 21px var(--serif); margin: 28px 0 6px; }
.doc .note { color: var(--note); font-size: 14px; }

/* Lazy animation: with the script on, a drawing waits until it is on screen and pauses
   when it scrolls away. Without the script, everything simply plays. */
.js .anim:not(.on), .js .anim:not(.on) * { animation-play-state: paused !important; }

/* A marked to-do: the ring and the strike measure the words, not the column. */
.sheet .mark { position: relative; display: inline-block; }
.sheet .mark .ring { left: -9px; top: -8px; width: calc(100% + 18px); height: calc(100% + 16px); }
.sheet .mark .strike { left: -4px; top: 0; width: calc(100% + 8px); height: 100%; }

.philosophy { max-width: 44em; }
.philosophy h2 { font-size: clamp(32px, 4.4vw, 48px); }

/* Keyframes */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@keyframes fade { to { color: var(--graphite); } }
@keyframes gray { to { stroke: var(--graphite); } }
@keyframes redden { to { stroke: var(--red); } }
@keyframes writeLoop { 0%, 8% { clip-path: inset(0 100% 0 0); } 34%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes moveUp { 0%, 44% { transform: translate(130px, calc(var(--row) * 1)) scale(1.12); opacity: 1; }
  60%, 90% { transform: translate(0, 0) scale(1); opacity: 1; } 97% { opacity: 0; } 100% { transform: translate(130px, calc(var(--row) * 1)) scale(1.12); opacity: 0; } }
@keyframes penMove { 0%, 6% { transform: translate(0, 0); opacity: 0; } 9% { opacity: 1; } 34% { transform: translate(150px, -4px); opacity: 1; } 42%, 100% { transform: translate(170px, -30px); opacity: 0; } }
@keyframes strikeLoop { 0%, 18% { stroke-dashoffset: 100; stroke: var(--ink); } 38% { stroke-dashoffset: 0; stroke: var(--ink); } 50%, 90% { stroke-dashoffset: 0; stroke: var(--graphite); } 100% { stroke-dashoffset: 0; stroke: var(--graphite); opacity: 0; } }
@keyframes grayText { 0%, 40% { color: var(--ink); } 52%, 100% { color: var(--graphite); } }
@keyframes ringLoop { 0%, 14% { stroke-dashoffset: 100; stroke: var(--ink); } 36% { stroke-dashoffset: 0; stroke: var(--ink); } 46%, 92% { stroke-dashoffset: 0; stroke: var(--red); } 100% { stroke-dashoffset: 0; stroke: var(--red); opacity: 0; } }
@keyframes toTop { 0%, 50% { transform: translateY(0); } 64%, 100% { transform: translateY(calc(var(--row) * -1)); } }
@keyframes toSecond { 0%, 50% { transform: translateY(0); } 64%, 100% { transform: translateY(var(--row)); } }
@keyframes dragUp { 0%, 22% { transform: translateY(0) scale(1); box-shadow: none; } 30% { transform: translateY(-2px) scale(1.04); }
  55%, 64% { transform: translateY(calc(var(--row) * -1 - 2px)) scale(1.04); } 72%, 100% { transform: translateY(calc(var(--row) * -1)) scale(1); } }
@keyframes pushDown { 0%, 40% { transform: translateY(0); } 55%, 100% { transform: translateY(var(--row)); } }
@keyframes fingerMove { 0%, 8% { transform: translate(20px, 30px); opacity: 0; } 18% { transform: translate(0, 0); opacity: 1; }
  30% { transform: translate(0, 2px) scale(.95); } 55%, 64% { transform: translate(0, calc(var(--row) * -1)) scale(.95); opacity: 1; } 76%, 100% { transform: translate(20px, -60px); opacity: 0; } }
@keyframes touchPulse { 0%, 22% { transform: scale(0); } 30%, 64% { transform: scale(1); } 72%, 100% { transform: scale(0); } }

/* Reduce Motion: show each demo's finished state, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  .write-demo .pen, .move-demo .finger { display: none; }
}

@media (max-width: 860px) {
  .hero, .split, .feature.wide, .feature.wide.flip, .pair { grid-template-columns: 1fr; gap: 28px; }
  .feature.wide.flip .demo { order: 0; }
  .pair .feature:first-child { transform: none; }
  .pair .feature.tall { margin-top: 0; }
  .sheet { transform: none; }
  .doc { padding: 26px 22px; }
  header.top nav a { margin-left: 12px; }
}
