:root {
  --bg: #fffdf8; --card: #ffffff; --ink: #1b1a17; --sub: #6f6a60; --faint: #c9c4b8; --line: #e9e4d8;
  --fill: #f4f1e9; --hl: #ffe36e; --hl-ink: #1b1a17; --accent: #ff5a36; --paper: #ffffff; --paper-ink: #1b1a17;
  --paper-art: #fbf9f3; --paper-sub: #77726a; --inverse: #fffdf8; --tape: rgba(255, 227, 110, 0.62);
  --shadow: 0 18px 50px rgba(40, 33, 15, 0.12), 0 2px 6px rgba(40, 33, 15, 0.06);
  --rounded: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Nunito", "Quicksand", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110; --card: #1c1b19; --ink: #f3f0e8; --sub: #a8a297; --faint: #4a4741; --line: #2f2c28; --fill: #24221f;
    --accent: #ff6b4a; --paper: #f4f1e9; --paper-art: #fffdf8; --paper-sub: #6f6a60; --inverse: #121110;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand, .num { font-family: var(--rounded); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, 100% - 44px); margin-inline: auto; }
.lead { color: var(--sub); font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 9; background: var(--ink); color: var(--inverse); padding: 10px 16px; border-radius: 999px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* line art that draws itself */
.doodle { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.doodle [fill="#000"] { fill: currentColor; }
/* Offset a little past the start, or round line ends leave a dot before anything is drawn. */
.js .draw .ln { stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; }
.js .draw .dot { opacity: 0; }
.js .draw.on .ln { animation: ink 0.75s cubic-bezier(0.6, 0.1, 0.3, 1) forwards; animation-delay: calc(var(--i, 0) * 95ms); }
.js .draw.on .dot { animation: pop 0.25s ease forwards; animation-delay: calc(var(--i, 0) * 95ms + 0.3s); }
@keyframes ink { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* header */
header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand:hover img { animation: spin 1.2s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--inverse); border: 0; border-radius: 999px; padding: 10px 18px; font-size: 0.95rem; font-weight: 700; text-decoration: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; min-height: min(780px, calc(100svh - 72px)); padding-block: 36px 70px; }
h1 { font-size: clamp(4rem, 11vw, 8.2rem); letter-spacing: -0.06em; line-height: 0.88; }
h1 span { display: block; }
.under { position: relative; width: max-content; }
.under svg { position: absolute; left: 3%; bottom: -0.2em; width: 94%; height: 0.2em; overflow: visible; }
.under path { fill: none; stroke: var(--hl); stroke-width: 5; stroke-linecap: round; }
.js .under path { stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; animation: ink 0.8s 0.35s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
.hero .lead { margin: 48px 0 28px; max-width: 30em; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.status small { color: var(--sub); font-size: 0.95rem; }

.demo { display: flex; flex-direction: column; align-items: center; gap: 22px; min-width: 0; }
.polaroid { position: relative; background: var(--paper); color: var(--paper-ink); padding: 16px 16px 14px; border-radius: 5px; box-shadow: var(--shadow); }
.polaroid::before { content: ""; position: absolute; z-index: 1; top: -15px; left: 50%; width: 104px; height: 31px; background: var(--tape); transform: translateX(-50%) rotate(-2deg); }
.polaroid .art { aspect-ratio: 1; background: var(--paper-art); padding: 9%; }
.polaroid .cap { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 12px; color: var(--paper-sub); font-size: 0.8rem; font-weight: 600; }
.polaroid .cap b { color: var(--paper-ink); font: 800 1.12rem/1.2 var(--rounded); letter-spacing: -0.02em; min-height: 1.35em; }
#story { width: min(370px, 82vw); transform: rotate(2deg); transition: transform 0.5s cubic-bezier(0.2, 1.5, 0.4, 1); }
#story.flip { transform: rotate(-2deg) scale(0.97); }
.said { width: min(440px, 100%); min-height: 7.4em; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; font-size: 1.05rem; line-height: 1.55; }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-bottom: 8px; color: var(--ink); }
.wave i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform: scaleY(0.16); }
.talking .wave i { animation: talk 0.9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -137ms); }
@keyframes talk { 0% { transform: scaleY(0.16); } 45% { transform: scaleY(0.9); } 100% { transform: scaleY(0.34); } }
.said span { border-radius: 5px; padding: 1px 2px; transition: opacity 0.2s; }
.js .said span { opacity: 0.22; }
.js .said span.heard { opacity: 1; }
.said span.now { background: var(--hl); color: var(--hl-ink); }
.dots { display: flex; gap: 4px; align-items: center; }
.dots button { width: 34px; height: 34px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.dots button::before { content: ""; width: 9px; height: 9px; border-radius: 9px; background: var(--faint); transition: width 0.25s, background 0.25s; }
.dots button[aria-pressed="true"]::before { width: 26px; background: var(--ink); }
.dots .pause { margin-left: 4px; font-size: 0.85rem; font-weight: 700; width: auto; padding-inline: 10px; color: var(--sub); }
.dots .pause::before { display: none; }

section { padding-block: clamp(72px, 11vw, 140px); }
[id] { scroll-margin-top: 88px; }
.head { max-width: 720px; display: grid; gap: 18px; margin-bottom: 46px; }

/* wall */
.wall { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; }
.cell { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 22%; padding: 14%; background: var(--card); transition: transform 0.35s cubic-bezier(0.2, 1.6, 0.4, 1), background 0.2s, color 0.2s; }
.cell.rest { background: none; border-style: dashed; }
@media (hover: hover) { .cell:not(.rest):hover { transform: scale(1.55) rotate(-4deg); z-index: 2; background: var(--hl); color: var(--hl-ink); border-color: transparent; } }

/* features */
.band { background: var(--fill); }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 30px 28px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.card p { color: var(--sub); font-size: 1.02rem; }
.card.wide { grid-column: span 3; padding-bottom: 0; }
.card.wide .shot { margin: 18px auto 0; width: min(330px, 92%); height: 400px; overflow: hidden; border: 9px solid #1b1a17; border-bottom: 0; border-radius: 46px 46px 0 0; background: #fffdf8; }
.icon { width: 58px; height: 58px; margin-bottom: 8px; }

/* doodle pad */
.pad { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pad .polaroid { width: min(430px, 100%); justify-self: center; transform: rotate(-1.6deg); }
.pad canvas { display: block; width: 100%; aspect-ratio: 1; background: var(--paper-art); touch-action: none; cursor: crosshair; border-radius: 2px; }
.pad .head { margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.ghost { background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 18px; font-size: 0.95rem; font-weight: 700; }
.pill:disabled, .ghost:disabled { opacity: 0.35; cursor: default; }

/* privacy + price */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.two li { padding-left: 34px; position: relative; color: var(--sub); }
.two li b { color: var(--ink); }
.two li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 9px; border: solid var(--ink); border-width: 0 0 3px 3px; border-radius: 2px; transform: rotate(-45deg); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 800px; }
.plan { border: 1px solid var(--line); background: var(--card); border-radius: 28px; padding: 28px; display: grid; gap: 8px; align-content: start; }
.plan.best { border: 2.5px solid var(--ink); padding: 26.5px; }
.num { font-size: clamp(2.6rem, 5vw, 3.5rem); letter-spacing: -0.05em; }
.num small { font: 600 1rem var(--body); color: var(--sub); letter-spacing: 0; }
.plan p { color: var(--sub); font-size: 1rem; }
.tag { justify-self: start; background: var(--hl); color: var(--hl-ink); font-size: 0.85rem; font-weight: 800; border-radius: 999px; padding: 3px 12px; }
.fine { color: var(--sub); font-size: 0.92rem; margin-top: 22px; max-width: 800px; }

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font: 800 1.2rem/1.35 var(--rounded); letter-spacing: -0.015em; padding: 20px 40px 20px 0; cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 8px; top: 15px; font-size: 1.6rem; line-height: 1.3; transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--sub); padding: 0 40px 24px 0; max-width: 760px; }

footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--sub); font-size: 0.92rem; }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; color: var(--ink); }

/* plain pages: privacy, terms, support */
.doc { width: min(720px, 100% - 44px); margin-inline: auto; padding-block: 48px 90px; }
.doc h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); letter-spacing: -0.05em; line-height: 1; }
.doc h2 { font-size: 1.6rem; letter-spacing: -0.025em; line-height: 1.2; margin: 44px 0 12px; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 84%, var(--bg)); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.doc .date { color: var(--sub); margin: 14px 0 26px; }
.doc .short { background: var(--fill); border-radius: 22px; padding: 22px 24px; }

/* facts, blog */
.links { display: flex; align-items: center; gap: 22px; font-weight: 700; }
.links a:not(.pill) { text-decoration: none; }
.links a:not(.pill):hover { text-decoration: underline; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(120px, 0.8fr) 2fr; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; color: var(--sub); }
.blog { padding-block: 56px 100px; }
.blog h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); letter-spacing: -0.05em; line-height: 0.98; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.post { position: relative; display: grid; gap: 10px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 24px; transition: transform 0.3s cubic-bezier(0.2, 1.5, 0.4, 1); }
.post:hover { transform: translateY(-4px) rotate(-0.5deg); }
.post h2, .post h3 { font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.post a { text-decoration: none; }
.post a::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.post p, .post time { color: var(--sub); font-size: 1rem; margin: 0; }
.post time { font-size: 0.88rem; font-weight: 600; }
.thumb { height: 150px; padding: 18px; border-radius: 18px; background: var(--fill); }
.big { width: 132px; height: 132px; margin-bottom: 14px; }
.center { text-align: center; } .center .big { margin-inline: auto; }
.crumbs { font-size: 0.95rem; color: var(--sub); margin-bottom: 26px; }
.article h1 { font-size: clamp(2.4rem, 6.4vw, 3.7rem); line-height: 1.02; }
.article h3 { font-size: 1.22rem; margin: 28px 0 8px; }
.article .short { margin-bottom: 30px; }
.article .short h2 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -0.01em; }
.article .post h3 { margin: 0; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; display: block; overflow-x: auto; margin: 20px 0; }
.article th, .article td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); min-width: 130px; }
.cta { margin: 56px 0 20px; display: grid; gap: 12px; }
.cta.short h2 { font-size: 1.8rem; letter-spacing: -0.03em; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; gap: 54px; padding-top: 28px; }
  .wall { grid-template-columns: repeat(7, 1fr); }
  .cell:nth-child(n + 43) { display: none; }
  .card, .card.wide { grid-column: 1 / -1; }
  .pad, .two, .plans { grid-template-columns: 1fr; gap: 36px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .plans { gap: 16px; }
}
@media (max-width: 420px) { .nav .pill { font-size: 0.85rem; padding: 8px 14px; } .brand { font-size: 1.3rem; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .draw .ln, .js .under path { stroke-dashoffset: 0; }
  .js .draw .dot, .js .said span { opacity: 1; }
}
