/* Pensil landing page — "Sketch Clay" tokens from design/assets/styles.css */
:root {
  --paper: #F6F1E7;
  --paper-2: #EFE7D7;
  --dot: #DCD1BC;
  --surface: #FFFFFF;
  --navy: #1D2440;
  --navy-2: #2A3256;
  --muted: #6F6858;
  --lime: #D8F26A;
  --coral: #FF6B4A;
  --coral-ink: #D9431F;
  --lavender: #CFC2FF;
  --peach: #FFD4BF;
  --mint: #C5F0DA;
  --sky: #BFE3FF;
  --sticky: #FFE27A;
  --pink: #FFC9D6;
  --line: rgba(29,36,64,.32);
  --shadow: 2px 2px 0 rgba(29,36,64,.20), 0 6px 16px rgba(29,36,64,.06);
  --shadow-lg: 3px 3px 0 rgba(255,107,74,.6), 0 14px 30px rgba(29,36,64,.18);
  --soft: 0 1px 2px rgba(60,40,10,.04), 0 10px 26px rgba(60,40,10,.08);
  --hand: 'Caveat', cursive;
  --wrap: 1160px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif; color: var(--navy); line-height: 1.5;
  background: radial-gradient(circle, var(--dot) 1px, transparent 1.4px) 0 0 / 22px 22px, var(--paper);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
.hand { font-family: var(--hand); font-weight: 700; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px;
  border-radius: 99px; font-weight: 600; font-size: 17px; text-decoration: none; border: 1px solid var(--line);
  transition: transform .25s var(--spring), box-shadow .25s var(--ease);
}
.btn:hover { transform: translate(-1px,-2px); }
.btn:active { transform: translate(1px,1px); }
.btn.lime { background: var(--lime); box-shadow: var(--shadow); }
.btn.navy { background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.btn.white { background: var(--surface); box-shadow: var(--shadow); }
.btn.sm { height: 44px; padding: 0 18px; font-size: 15px; }
.play-btn { padding: 0 10px 0 22px; gap: 14px; }
.play-btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .3px; text-transform: uppercase; line-height: 1; }
.play-btn b { display: block; font-size: 18px; line-height: 1.15; }
.play-btn .arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--navy); display: grid; place-items: center; transition: transform .3s var(--spring); }
.play-btn:hover .arrow { transform: rotate(-12deg) scale(1.08); }
.btn.lime .arrow { background: var(--navy); color: var(--lime); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.top.stuck { background: rgba(246,241,231,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(29,36,64,.08); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--shadow); transition: transform .4s var(--spring); }
.logo:hover img { transform: rotate(-8deg) scale(1.06); }
.logo span { font-family: var(--hand); font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: .3px; }
.logo span i { font-style: normal; color: var(--coral); }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 99px; transition: background .2s; }
.top nav a:hover { background: rgba(29,36,64,.07); }
.lang { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.lang a { text-decoration: none; padding: 4px 10px; border-radius: 99px; }
.lang a[aria-current] { background: var(--navy); color: #fff; }
@media (max-width: 900px) { .top nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 520px) { .top .btn { display: none; } }

/* ---------- Shared bits ---------- */
.mark { position: relative; white-space: nowrap; display: inline-block; }
.mark svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; pointer-events: none; }
.mark path { fill: none; stroke: var(--coral); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.1s var(--ease) .25s; }
.in .mark path, .mark.in path { stroke-dashoffset: 0; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 6px 14px 6px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tag i { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.pro { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; background: var(--coral); color: #fff; padding: 2px 7px; border-radius: 6px; vertical-align: middle; }
.free { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; background: var(--lime); color: var(--navy); padding: 2px 7px; border-radius: 6px; vertical-align: middle; border: 1px solid var(--line); }
.washi { position: absolute; width: 74px; height: 22px; background: var(--lime); opacity: .85; left: 50%; top: -11px; margin-left: -37px; transform: rotate(-4deg); z-index: 2; }
.washi.pink { background: var(--pink); } .washi.sky { background: var(--sky); } .washi.sticky { background: var(--sticky); } .washi.lav { background: var(--lavender); }
section { position: relative; }
.sec { padding: 110px 0 0; }
.sec-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.sec-head .kicker { font-family: var(--hand); font-size: 26px; color: var(--coral-ink); font-weight: 700; display: inline-block; transform: rotate(-2deg); }
.sec-head h2 { text-wrap: balance; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -1.6px; font-weight: 600; margin-top: 4px; }
.sec-head p { text-wrap: pretty; font-size: 19px; color: var(--muted); margin-top: 16px; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.4vw, 76px); line-height: .98; letter-spacing: -3px; font-weight: 600; margin: 22px 0 22px; }
.hero h1 .l1 { white-space: nowrap; } .hero h1 .l2 { display: block; }
.hero .lead { font-size: 21px; color: var(--muted); max-width: 520px; }
.hero .lead b { color: var(--navy); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.promises { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.promises li { display: inline-flex; align-items: center; gap: 6px; }
.promises svg { color: var(--coral); flex: none; }
.hero-note { position: relative; margin-top: 46px; display: inline-flex; align-items: center; gap: 14px; }
.hero-note .avatars { display: flex; }
.hero-note .avatars img { width: 46px; height: 46px; border-radius: 12px; border: 2px solid #fff; box-shadow: var(--soft); background: #fff; object-fit: cover; }
.hero-note .avatars img + img { margin-left: -12px; }
.hero-note .avatars img:nth-child(odd) { transform: rotate(-6deg); } .hero-note .avatars img:nth-child(even) { transform: rotate(5deg); }
.hero-note p { font-size: 15px; color: var(--muted); line-height: 1.3; }
.hero-note p b { color: var(--navy); font-size: 17px; }

/* The desk + phone lens */
.stage { position: relative; justify-self: center; width: 100%; max-width: 470px; }
.scene {
  position: relative; aspect-ratio: 1086 / 1448; border-radius: 30px; overflow: hidden; touch-action: pan-y;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); cursor: none; background: #c49a6c; user-select: none; -webkit-user-select: none;
}
.scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene .done { clip-path: circle(0% at var(--cx,50%) var(--cy,50%)); transition: clip-path 1.6s var(--ease); }
.scene.traced .done { clip-path: circle(150% at var(--cx,50%) var(--cy,50%)); }
.lens {
  --w: 44%; position: absolute; left: 0; top: 0; width: var(--w); aspect-ratio: 9 / 17.5; border-radius: 26px; overflow: hidden;
  border: 7px solid #141A30; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 24px 40px rgba(20,16,8,.38), 0 4px 10px rgba(20,16,8,.25);
  transform: translate3d(var(--lx,0px), var(--ly,0px), 0) rotate(var(--lr,0deg)); will-change: transform; transition: opacity .4s, scale .4s var(--spring);
  pointer-events: none;
}
.lens img { position: absolute; left: 0; top: 0; max-width: none; transform: translate3d(var(--ix,0px), var(--iy,0px), 0); }
.lens::before { content: ""; position: absolute; top: 6px; left: 50%; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: #141A30; z-index: 3; }
.lens .hud { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; display: flex; justify-content: center; gap: 4px; }
.lens .hud span { font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 99px; background: rgba(20,26,48,.82); color: #fff; white-space: nowrap; }
.lens .hud span.on { background: var(--lime); color: var(--navy); }
.scene.traced .lens { opacity: 0; scale: .85; }
.stage .hint { position: absolute; right: -14px; top: -40px; font-family: var(--hand); font-weight: 700; font-size: 24px; color: var(--coral-ink); transform: rotate(6deg); display: flex; align-items: flex-end; gap: 4px; pointer-events: none; transition: opacity .4s; }
.stage .hint svg { margin-bottom: -18px; }
.stage.touched .hint { opacity: 0; }
.tada {
  position: absolute; right: 18px; top: 18px; z-index: 4; background: var(--sticky); padding: 12px 18px 14px; border-radius: 4px;
  box-shadow: 0 10px 24px rgba(30,20,0,.25); font-family: var(--hand); font-weight: 700; font-size: 26px; line-height: 1; transform: rotate(6deg) scale(0); transform-origin: top right;
  transition: transform .5s var(--spring) .9s;
}
.tada small { display: block; font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600; margin-top: 6px; }
.scene.traced .tada { transform: rotate(6deg) scale(1); }
.picker { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.picker .pick { width: 62px; padding: 4px 4px 9px; background: #fff; border: 1px solid #E9E0CE; border-radius: 6px; box-shadow: var(--soft); transition: transform .3s var(--spring); }
.picker .pick:nth-child(odd) { transform: rotate(-4deg); } .picker .pick:nth-child(even) { transform: rotate(3deg); }
.picker .pick:hover { transform: rotate(0) translateY(-4px); }
.picker .pick[aria-pressed="true"] { outline: 3px solid var(--navy); outline-offset: 2px; transform: rotate(0) scale(1.06); }
.picker .pick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.picker .btn { margin-left: 4px; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero .copy { text-align: center; }
  .hero .lead { margin: 0 auto; }
  .cta-row, .promises { justify-content: center; }
  .hero-note { display: flex; justify-content: center; }
  .stage .hint { right: 0; }
}
@media (max-width: 520px) {
  .hero h1 { letter-spacing: -2px; }
  .hero .lead { font-size: 18px; }
  .stage .hint { font-size: 20px; top: -34px; }
}

/* ---------- Template wall ---------- */
.wall { padding: 90px 0 0; overflow: hidden; }
.wall .sec-head { margin-bottom: 40px; }
.count { font-variant-numeric: tabular-nums; }
.marquee { display: flex; gap: 22px; width: max-content; padding: 18px 0 22px; animation: slide 70s linear infinite; }
.marquee.rev { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tcard { position: relative; flex: none; width: 196px; background: #fff; border-radius: 22px; padding: 9px; border: 1px solid #EBE3D3; box-shadow: var(--soft); transition: transform .35s var(--spring), box-shadow .3s; }
.tcard:hover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: var(--shadow-lg); }
.tcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 15px; background: #FFFDF8; }
.tcard .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 4px 2px; }
.tcard b { font-family: var(--hand); font-size: 22px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 980px; margin: 26px auto 0; padding: 0 24px; list-style: none; }
.cats li { font-size: 14px; font-weight: 500; padding: 6px 13px; border-radius: 99px; background: rgba(255,255,255,.7); border: 1px solid rgba(29,36,64,.16); transition: background .2s, transform .25s var(--spring); }
.cats li:hover { background: var(--lime); transform: translateY(-2px) rotate(-2deg); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; list-style: none; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); }
.step .art { height: 200px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 22px; overflow: hidden; position: relative; }
.step:nth-child(1) .art { background: var(--lavender); } .step:nth-child(2) .art { background: var(--mint); } .step:nth-child(3) .art { background: var(--peach); }
.step .num { position: absolute; top: -18px; left: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--lime); display: grid; place-items: center; font-family: var(--hand); font-size: 28px; font-weight: 700; box-shadow: var(--shadow-lg); }
.step h3 { font-size: 23px; letter-spacing: -.5px; font-weight: 600; }
.step p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.mini-cards { display: flex; gap: 10px; }
.mini-cards img { width: 86px; border-radius: 12px; background: #fff; padding: 5px; box-shadow: var(--soft); transition: transform .4s var(--spring); }
.mini-cards img:nth-child(1) { transform: rotate(-8deg) translateY(6px); } .mini-cards img:nth-child(3) { transform: rotate(8deg) translateY(6px); }
.step:hover .mini-cards img:nth-child(1) { transform: rotate(-14deg) translate(-8px, 2px); } .step:hover .mini-cards img:nth-child(3) { transform: rotate(14deg) translate(8px, 2px); }
.step:hover .mini-cards img:nth-child(2) { transform: translateY(-8px) scale(1.05); }
.glass-ill svg { width: 220px; height: 180px; overflow: visible; }
.glass-ill .phone-g { animation: settle 3.6s var(--ease) infinite; transform-origin: 110px 60px; }
@keyframes settle { 0%, 12% { transform: translateY(-40px) rotate(-8deg); opacity: 0; } 32%, 88% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
.trace-ill { width: 100%; height: 100%; }
.trace-ill path.guide { fill: none; stroke: var(--coral); stroke-width: 3; stroke-dasharray: 7 6; opacity: .8; }
.trace-ill path.ink { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: ink 4s var(--ease) infinite; }
@keyframes ink { 15% { stroke-dashoffset: 520; } 75%, 100% { stroke-dashoffset: 0; } }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 40px; } }

/* ---------- Modes ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mode { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 30px; box-shadow: var(--shadow); }
.mode.ar { background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.mode h3 { font-size: 28px; letter-spacing: -.8px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.mode p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.mode.ar p { color: #B9BED6; }
.mode ul { list-style: none; margin-top: 18px; display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.mode li { display: flex; gap: 8px; align-items: flex-start; }
.mode li svg { flex: none; margin-top: 3px; color: var(--coral); }
.mode.ar li svg { color: var(--lime); }
.demo { position: relative; height: 270px; border-radius: 22px; margin-top: 24px; overflow: hidden; background: linear-gradient(135deg, #C79A67, #B8865A); }
.demo .sheet { position: absolute; left: 50%; top: 50%; width: 190px; height: 236px; margin: -118px 0 0 -95px; background: #FAF8F3; box-shadow: 0 6px 14px rgba(40,20,0,.25); transform: rotate(-3deg); }
.demo .sheet .pencil-lines { position: absolute; inset: 22px; background: url(img/templates/moonlit_fox-lines.webp) center / contain no-repeat; opacity: .28; }
.demo .ph { position: absolute; left: 50%; top: 50%; width: 132px; height: 200px; margin: -100px 0 0 -66px; border-radius: 20px; border: 6px solid #141A30; overflow: hidden; box-shadow: 0 18px 30px rgba(20,10,0,.35); animation: nudge 5s var(--ease) infinite; }
.demo .ph .sheet-in { position: absolute; left: 50%; top: 50%; width: 190px; height: 236px; margin: -118px 0 0 -95px; transform: rotate(-3deg); }
.demo .ph .sheet-in i { position: absolute; inset: 22px; background: var(--coral); -webkit-mask: url(img/templates/moonlit_fox-lines.webp) center / contain no-repeat; mask: url(img/templates/moonlit_fox-lines.webp) center / contain no-repeat; }
.mode.ar .demo .ph .sheet-in { animation: counter 5s var(--ease) infinite; }
.mode.ar .demo .ph .sheet-in i { background: var(--lime); filter: drop-shadow(0 0 1px rgba(0,0,0,.3)); }
@keyframes nudge { 0%, 20% { transform: none; } 40%, 60% { transform: translate(34px, -16px) rotate(6deg); } 80%, 100% { transform: none; } }
@keyframes counter { 0%, 20% { transform: rotate(-3deg); } 40%, 60% { transform: translate(-34px, 16px) rotate(-9deg); } 80%, 100% { transform: rotate(-3deg); } }
.demo .label { position: absolute; left: 12px; bottom: 12px; font-family: var(--hand); font-size: 21px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }

/* ---------- Feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.tile { grid-column: span 3; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 28px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.tile.w2 { grid-column: span 2; } .tile.w4 { grid-column: span 4; }
.tile h3 { font-size: 25px; letter-spacing: -.6px; font-weight: 600; line-height: 1.15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile > p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.tile.lav { background: var(--lavender); } .tile.mint { background: var(--mint); } .tile.peach { background: var(--peach); } .tile.sky { background: var(--sky); }
.tile.lav > p, .tile.mint > p, .tile.peach > p, .tile.sky > p { color: rgba(29,36,64,.72); }
.seg { display: inline-flex; padding: 4px; border-radius: 99px; background: #fff; border: 1px solid var(--line); gap: 2px; margin-top: 18px; }
.seg button { padding: 7px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; transition: background .25s; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.ps { position: relative; margin-top: 16px; aspect-ratio: 4 / 3.2; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.ps img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity .5s; }
.ps img.on { opacity: 1; }
.ps .scan { position: absolute; top: 0; bottom: 0; width: 34%; left: -40%; background: linear-gradient(90deg, transparent, rgba(216,242,106,.75), transparent); mix-blend-mode: multiply; pointer-events: none; }
.ps.scanning .scan { animation: scan .7s var(--ease); }
@keyframes scan { to { left: 110%; } }
.letter-in { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.letter-in input { flex: 1 1 220px; height: 50px; border-radius: 16px; border: 1px solid var(--line); padding: 0 16px; font: inherit; font-size: 17px; background: #fff; color: var(--navy); }
.letter-in input:focus { outline: 3px solid var(--coral); outline-offset: 1px; }
.fonts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.fonts button { height: 40px; min-width: 52px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 19px; transition: transform .25s var(--spring), background .2s; }
.fonts button:hover { transform: translateY(-2px); }
.fonts button[aria-pressed="true"] { background: var(--lime); }
.lined { margin-top: 16px; height: 170px; border-radius: 20px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden;
  background: repeating-linear-gradient(transparent 0 33px, rgba(29,36,64,.09) 33px 34px), #FFFDF8; }
.lined svg { width: 100%; height: 100%; }
.lined text { fill: rgba(255,107,74,.07); stroke: var(--navy); stroke-width: 1.4; stroke-dasharray: 5 4; paint-order: stroke; }
.lined text.draw { animation: dash 1.2s var(--ease); }
@keyframes dash { from { stroke-dashoffset: 300; opacity: .2; } to { stroke-dashoffset: 0; opacity: 1; } }
.cal { margin-top: 18px; background: #fff; border-radius: 22px; border: 1px solid var(--line); padding: 16px; }
.cal .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.flame { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.flame svg { transition: transform .5s var(--spring); }
.flame.pop svg { transform: scale(1.45) rotate(-10deg); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.days span { font-size: 12px; color: var(--muted); font-weight: 600; }
.days button, .days i { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; font-style: normal; }
.days i.ok { background: var(--lime); border: 1px solid var(--line); }
.days i.ok::after, .days button.ok::after { content: ""; width: 12px; height: 7px; border: solid var(--navy); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px,-1px); }
.days i.ok { font-size: 0; }
.days button { border: 2px dashed var(--coral); color: var(--coral-ink); animation: breathe 1.8s ease-in-out infinite; }
.days button.ok { background: var(--lime); border: 1px solid var(--line); font-size: 0; animation: pop .5s var(--spring); }
@keyframes breathe { 50% { transform: scale(1.1); } }
@keyframes pop { from { transform: scale(.4); } }
.chal { display: flex; align-items: center; gap: 14px; margin-top: 14px; background: var(--sticky); border-radius: 18px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); }
.chal img { width: 56px; height: 56px; border-radius: 12px; background: #fff; }
.chal small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; opacity: .7; }
.chal b { font-family: var(--hand); font-size: 24px; line-height: 1; }
.color-ref { position: relative; margin-top: 16px; aspect-ratio: 1; max-height: 320px; margin-inline: auto; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); touch-action: pan-y; cursor: ew-resize; }
.color-ref img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.color-ref .col { clip-path: inset(0 0 0 var(--p, 50%)); }
.color-ref .handle { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 3px; margin-left: -1.5px; background: var(--navy); }
.color-ref .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--lime); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; box-shadow: var(--shadow); }
.tl { position: relative; margin-top: 16px; aspect-ratio: 1; max-height: 240px; margin-inline: auto; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.tl i { position: absolute; inset: 14px; background: var(--navy); -webkit-mask: url(img/templates/moonlit_fox-lines.webp) center / contain no-repeat; mask: url(img/templates/moonlit_fox-lines.webp) center / contain no-repeat; animation: wipe 6s steps(24) infinite; }
@keyframes wipe { 0% { clip-path: inset(0 0 100% 0); } 80%, 100% { clip-path: inset(0 0 0 0); } }
.tl .rec { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(29,36,64,.85); padding: 4px 9px; border-radius: 99px; display: flex; align-items: center; gap: 6px; }
.tl .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tl .speed { position: absolute; right: 10px; bottom: 10px; font-family: var(--hand); font-size: 22px; font-weight: 700; }
.mini-list { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.mini-list li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.65); border-radius: 16px; padding: 10px 12px; font-weight: 500; }
.mini-list li i { width: 34px; height: 34px; border-radius: 11px; background: #fff; display: grid; place-items: center; font-style: normal; flex: none; }
@media (max-width: 960px) { .tile, .tile.w2, .tile.w4 { grid-column: span 6; } }
@media (max-width: 520px) { .tile { padding: 22px; border-radius: 26px; } }

/* ---------- Gallery ---------- */
.gallery { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 10px 0; }
.pol { position: relative; width: 196px; background: #fff; padding: 10px 10px 14px; border: 1px solid #EEE7D8; box-shadow: 0 10px 26px rgba(40,25,0,.14); transition: transform .45s var(--spring); }
.pol:nth-child(1) { transform: rotate(-5deg); } .pol:nth-child(2) { transform: rotate(3deg) translateY(16px); } .pol:nth-child(3) { transform: rotate(-2deg); }
.pol:nth-child(4) { transform: rotate(5deg) translateY(12px); } .pol:nth-child(5) { transform: rotate(-4deg); }
.pol:hover { transform: rotate(0) translateY(-10px) scale(1.04); z-index: 2; }
.pol img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pol figcaption { font-family: var(--hand); font-size: 24px; font-weight: 700; text-align: center; margin-top: 8px; line-height: 1; }
.pol figcaption small { display: block; font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }
@media (max-width: 520px) { .pol { width: 44%; padding: 7px 7px 10px; } .pol figcaption { font-size: 19px; } .gallery { gap: 14px; } }

/* ---------- Privacy band ---------- */
.band { margin: 120px auto 0; max-width: calc(var(--wrap) + 120px); background: var(--navy); color: #fff; padding: 90px 0; border-radius: 48px; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.band .wrap { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.band h2 { font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -1.8px; font-weight: 600; }
.band h2 em { font-style: normal; color: var(--lime); }
.band .wrap > div > p { color: #B9BED6; font-size: 19px; margin-top: 16px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pitem { background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 22px; transition: transform .35s var(--spring), border-color .3s; }
.pitem:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--lime); }
.pitem .ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--lime); color: var(--navy); margin-bottom: 14px; }
.pitem:nth-child(2) .ic { background: var(--coral); color: #fff; } .pitem:nth-child(3) .ic { background: var(--sky); } .pitem:nth-child(4) .ic { background: var(--lavender); }
.pitem h3 { font-size: 19px; font-weight: 600; }
.pitem p { color: #B9BED6; font-size: 15px; margin-top: 4px; }
@media (max-width: 900px) { .band .wrap { grid-template-columns: 1fr; } .band { border-radius: 32px; margin-left: 10px; margin-right: 10px; padding: 64px 0; } }
@media (max-width: 520px) { .pgrid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 920px; margin: 0 auto; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.pro-plan { background: var(--lime); box-shadow: var(--shadow-lg); position: relative; }
.plan .name { font-size: 15px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.plan .price { font-size: 44px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.1; margin-top: 6px; }
.plan .price small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan.pro-plan .price small { color: rgba(29,36,64,.7); }
.plan ul { list-style: none; display: grid; gap: 10px; margin: 22px 0 28px; font-size: 16px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plan .sticker { position: absolute; top: -20px; right: 22px; background: var(--coral); color: #fff; font-family: var(--hand); font-size: 23px; font-weight: 700; padding: 6px 16px; border-radius: 14px; transform: rotate(5deg); box-shadow: var(--shadow); }
.plan .fine { font-size: 13px; color: rgba(29,36,64,.7); margin-top: 12px; text-align: center; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--soft); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; font-size: 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 2v10M2 7h10' stroke='%231D2440' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; border: 1px solid var(--line); transition: transform .35s var(--spring); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); font-size: 16px; }

/* ---------- Final CTA + doodle ---------- */
.final { margin-top: 120px; }
.final .card { background: #fff; border: 1px solid var(--line); border-radius: 40px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; }
.final .copy { padding: 56px; }
.final h2 { font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -1.8px; font-weight: 600; }
.final .copy > p { color: var(--muted); font-size: 19px; margin: 14px 0 28px; }
.doodle { position: relative; background: var(--paper-2); border-left: 1px solid var(--line); display: grid; place-items: center; padding: 30px; min-height: 360px; }
.doodle .pad { position: relative; width: 100%; max-width: 330px; aspect-ratio: 1; background: #fff; box-shadow: 0 8px 22px rgba(40,25,0,.14); transform: rotate(2deg); }
.doodle svg, .doodle canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.doodle canvas { cursor: crosshair; touch-action: none; }
.doodle .guide { fill: none; stroke: var(--coral); stroke-width: 3; stroke-dasharray: 8 8; stroke-linecap: round; opacity: .75; }
.doodle .cap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--hand); font-size: 24px; font-weight: 700; pointer-events: none; }
.doodle .meter { position: absolute; left: 18px; right: 18px; top: 14px; height: 6px; border-radius: 99px; background: #F0EADF; overflow: hidden; }
.doodle .meter i { display: block; height: 100%; width: 0; background: var(--navy); border-radius: 99px; transition: width .2s; }
.doodle .yay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(255,255,255,.9); opacity: 0; pointer-events: none; transition: opacity .4s; padding: 20px; }
.doodle .yay b { font-family: var(--hand); font-size: 38px; line-height: 1; display: block; }
.doodle .yay small { display: block; color: var(--muted); font-size: 15px; margin-top: 8px; }
.doodle .yay button { pointer-events: auto; margin-top: 10px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doodle.won .yay { opacity: 1; pointer-events: auto; }
.doodle .scribble { position: absolute; top: 14px; left: 22px; font-family: var(--hand); font-size: 22px; font-weight: 700; color: var(--coral-ink); transform: rotate(-4deg); }
@media (max-width: 860px) { .final .card { grid-template-columns: 1fr; } .doodle { border-left: 0; border-top: 1px solid var(--line); } .final .copy { padding: 36px 26px; text-align: center; } .final .cta-row { justify-content: center; } }
.confetti { position: fixed; pointer-events: none; z-index: 200; width: 10px; height: 14px; border-radius: 2px; }

/* ---------- Footer ---------- */
footer { padding: 70px 0 50px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; border-top: 1px dashed rgba(29,36,64,.25); padding-top: 34px; }
footer p, footer a { font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; } footer a:hover { color: var(--navy); text-decoration: underline; }

/* Pencil cursor that follows the pointer over the hero scene */
.pencil-cursor { position: absolute; left: 0; top: 0; width: 34px; height: 34px; pointer-events: none; z-index: 6; transform: translate3d(var(--px,-99px), var(--py,-99px), 0); margin: -32px 0 0 -2px; transition: opacity .2s; }
.scene:not(:hover) .pencil-cursor { opacity: 0; }
@media (hover: none) { .pencil-cursor { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .tcard.dup { display: none; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 520px) { .hero-note { flex-direction: column; gap: 10px; } .hero-note p { text-align: center; } }
