/* Pinpal: paper, ink and one coral pin. System font (SF Pro on Apple devices), no web fonts, no framework.
   The living UI is sized in container units, so it is crisp at any size. Motion only with prefers-reduced-motion: no-preference. */

:root {
  --paper: #F7F6F3;
  --paper-2: #EFECE6;
  --ink: #16130F;
  --ink-2: #4A433C;
  --muted: #8A8178;
  --line: #E6E1DA;
  --coral: #F2724B;
  --coral-soft: rgba(242, 114, 75, .14);
  --white: #fff;
  --radius: 28px;
  --shadow: 0 1px 2px rgba(22, 19, 15, .06), 0 18px 50px -18px rgba(40, 30, 20, .28);
  --shadow-lg: 0 2px 6px rgba(22, 19, 15, .08), 0 50px 90px -30px rgba(40, 30, 20, .42);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(242, 114, 75, .6); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--coral); }
:focus-visible { outline: 2.5px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .88em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* ---------- logo ---------- */
.logo { display: inline-block; font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--ink); white-space: nowrap; }
.logo-i { position: relative; display: inline-block; }
.logo-dot { position: absolute; left: 50%; top: .115em; width: .2em; height: .2em; margin-left: -.08em; border-radius: 50%; background: var(--coral); }
.logo-dot::after { content: ""; position: absolute; left: .034em; top: .032em; width: .072em; height: .072em; border-radius: 50%; background: #fff; }
/* the pin drops onto the i: on load, and again when the logo is hovered */
@keyframes pin-drop { 0% { transform: translateY(-.9em); opacity: 0 } 55% { transform: translateY(.04em); opacity: 1 } 72% { transform: translateY(-.05em) } 86% { transform: translateY(.012em) } 100% { transform: none } }
.logo .logo-dot { animation: pin-drop .7s cubic-bezier(.3,.7,.4,1) .25s both; }
.logo:hover .logo-dot { animation: pin-drop .7s cubic-bezier(.3,.7,.4,1) both; }
@media (prefers-reduced-motion: reduce) { .logo .logo-dot, .logo:hover .logo-dot { animation: none; } }
.logo-sm { font-size: 20px; }
.pin { width: 44px; height: 44px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .12)); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(247, 246, 243, .82); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { text-decoration: none; font-size: 27px; margin-right: auto; padding-top: 2px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(22, 19, 15, .05); color: var(--ink); }
.nav a[aria-current] { color: var(--ink); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 720px) {
  .top-in { gap: 8px; height: 58px; }
  .brand { font-size: 24px; }
  .top .btn-small { display: none; }
  .nav { gap: 0; margin-right: -8px; }
  .nav a { font-size: 15px; padding: 7px 9px; }
}
@media (max-width: 360px) { .nav a { padding: 7px 6px; font-size: 14px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s var(--ease), background .15s; }
.btn:hover { transform: translateY(-1px); background: #2a251f; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--white); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.appstore { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px 0 16px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; line-height: 1.05; font-weight: 600; font-size: 20px; letter-spacing: -.02em; transition: transform .15s var(--ease); }
.appstore:hover { transform: translateY(-1px); }
.appstore svg { width: 24px; height: 28px; margin-top: -3px; }
.appstore small { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: 0; opacity: .85; margin-bottom: 1px; }
.appstore.soon { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: default; }
.appstore.soon:hover { transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); }
.hero-in { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-split .hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.hero h1 { font-size: clamp(44px, 7.4vw, 100px); letter-spacing: -.05em; line-height: .96; text-wrap: balance; }
.hero h1 em, .sec-head h2 em { font-style: normal; color: var(--coral); }
.eyebrow { color: var(--coral); font-weight: 600; font-size: 15px; letter-spacing: -.005em; margin-bottom: 18px; }
.eyebrow a { text-decoration: none; }
.lead { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; color: var(--ink-2); margin: 26px 0 0; max-width: 34em; text-wrap: pretty; }
.hero-note { font-size: 14.5px; color: var(--muted); margin: 16px 0 0; }
.hero-vis { display: flex; justify-content: center; }
.hero-plain .hero-copy { max-width: 900px; }
@media (max-width: 899px) {
  .hero-split .hero-in { grid-template-columns: 1fr; }
}

/* ---------- film ---------- */
.film { position: relative; width: min(100%, 360px); transform: rotate(1.6deg); }
.film-v { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; background: #ccc; box-shadow: var(--shadow-lg); }
.pin-film { position: absolute; top: -20px; left: 50%; margin-left: -22px; z-index: 2; }
.sound { position: absolute; left: 14px; bottom: 14px; border: 0; border-radius: 999px; padding: 8px 14px 8px 32px; font: 600 13px var(--font); color: #fff; background: rgba(0, 0, 0, .45) no-repeat 12px 50% / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='m22 9-6 6M16 9l6 6'/%3E%3C/svg%3E"); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; }
.sound[aria-pressed="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E"); }
@media (max-width: 899px) { .film { width: min(78%, 330px); margin-top: 8px; } }

/* ---------- photos and the pinned composition ---------- */
.photo { position: relative; overflow: hidden; border-radius: 22px; background: #2b2722; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.photo img, .photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.photo video { opacity: 0; transition: opacity .6s; }
.photo video.playing { opacity: 1; }
.pinned { position: relative; margin: 0; width: min(100%, 520px); padding: 0 12% 14% 0; }
.pinned .photo { transform: rotate(-1.4deg); }
.pinned-card { position: absolute; right: 0; bottom: 0; width: 50%; transform: rotate(3deg); z-index: 2; }
.pinned-card > .pin { position: absolute; top: -18px; left: 50%; margin-left: -22px; z-index: 3; }
.pinned-card .ui-phone .phone { aspect-ratio: 9 / 13.5; }
.pinned figcaption { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* ---------- living UI: shared ---------- */
.ui { container-type: inline-size; width: 100%; }
.box { display: inline-block; flex: none; width: 1.2em; height: 1.2em; border-radius: .3em; border: .1em solid #CFC8BE; position: relative; background: transparent; }
.ck .box, .td.tick .box, .td.done .box { background: var(--coral); border-color: var(--coral); }
.ck .box::after, .td.tick .box::after, .td.done .box::after { content: ""; position: absolute; left: .33em; top: .1em; width: .3em; height: .58em; border: solid #fff; border-width: 0 .13em .13em 0; transform: rotate(45deg); }
.ck.open .box { background: transparent; border-color: #CFC8BE; }
.ck.open .box::after { display: none; }
.ck span, .td.tick span, .td.done span { transition: color .3s; }
.ck:not(.open) span, .td.tick span, .td.done span { color: #A39B90; text-decoration: line-through; text-decoration-color: rgba(163, 155, 144, .7); }
.who { display: flex; align-items: center; gap: .5em; color: var(--muted); font-weight: 500; }
.who i { width: .55em; height: .55em; border-radius: 50%; background: var(--coral); display: inline-block; }

/* the phone */
.ui-phone .phone { aspect-ratio: 9 / 19; border-radius: 13cqw; background: #1b1916; padding: 2.6cqw; box-shadow: var(--shadow-lg); }
.ui-phone .screen, .dev-iphone .screen { width: 100%; height: 100%; border-radius: 10.6cqw; background: #FBF8F3; overflow: hidden; position: relative; padding: 17cqw 7.5cqw 0; font-size: 4.4cqw; color: var(--ink); text-align: left; }
.sb { position: absolute; top: 0; left: 0; right: 0; height: 13cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 9cqw; font-size: 3.8cqw; font-weight: 600; }
.sb .island { position: absolute; left: 50%; top: 3.2cqw; width: 28cqw; height: 7.6cqw; margin-left: -14cqw; background: #000; border-radius: 5cqw; }
.sb-r { letter-spacing: -.1em; font-size: 2.6cqw; }
.app-nav { display: flex; justify-content: space-between; color: var(--coral); font-size: 1em; margin-bottom: 1.1em; }
.ui .note-title, .dev .note-title { font-size: 1.85em; font-weight: 700; letter-spacing: -.02em; margin-bottom: .25em; line-height: 1.1; }
.ui .note-meta, .dev .note-meta { font-size: .9em; color: var(--muted); margin-bottom: 1em; }
.nsec h4 { font-size: 1.22em; font-weight: 650; letter-spacing: -.01em; margin: 0 0 .35em; }
.nsec { margin-bottom: 1em; }
.ui ul, .dev ul { list-style: none; margin: 0; padding: 0; }
.ck { display: flex; align-items: center; gap: .65em; font-size: 1.1em; padding: .22em .25em; margin: 0 -.25em; border-radius: .4em; line-height: 1.25; }
.ck.gf { background: var(--coral-soft); }

/* the chat bubble */
.ui-chat .chat { background: var(--white); border-radius: 7cqw; padding: 6.5cqw 7cqw 7cqw; box-shadow: var(--shadow-lg); text-align: left; }
.ui-chat .who { font-size: 3.6cqw; margin-bottom: 2.6cqw; }
.ui-chat .msg { font-size: 6cqw; line-height: 1.25; font-weight: 500; letter-spacing: -.015em; margin: 0; min-height: 3.75em; color: var(--ink); }
.ui-chat .msg b { color: var(--coral); font-weight: 650; }
.caret { display: inline-block; width: .09em; height: 1.05em; background: var(--coral); vertical-align: -.16em; margin-left: .06em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* the projects card */
.ui-card .card-app { background: var(--white); border-radius: 5.5cqw; padding: 6.5cqw 6.5cqw 6cqw; box-shadow: var(--shadow-lg); font-size: 3.9cqw; text-align: left; }
.app-head { display: flex; gap: .8em; align-items: center; margin-bottom: 1.2em; }
.ui .app-head h3 { font-size: 1.55em; letter-spacing: -.02em; }
.ui .app-head p { margin: .2em 0 0; color: var(--muted); font-size: .9em; }
.proj-dot { width: 1.5em; height: 1.5em; border-radius: .45em; background: var(--coral); flex: none; }
.tickets { display: grid; gap: .1em; }
.tk { position: relative; display: grid; grid-template-columns: 2em 1fr auto; align-items: center; gap: .6em; padding: .7em 0; border-top: 1px solid var(--line); line-height: 1.25; }
.tk-n { color: var(--muted); font-family: var(--mono); font-size: .9em; }
.tk-t { font-weight: 500; }
.pill { font-size: .78em; font-weight: 600; padding: .3em .75em; border-radius: 999px; white-space: nowrap; }
.pill.new { background: #E8EEF7; color: #3B5B8C; }
.pill.progress { background: #FFF1D6; color: #8F5D00; }
.pill.blocked { background: #FDE3DA; color: #B03F25; }
.pill.done { background: #E3F2E6; color: #2E7342; }
.tk.flip .pill.progress { display: none; }
.tk.flip .pill.after { grid-column: 3; grid-row: 1; }
.thread { margin-top: 1em; background: var(--paper); border-radius: 1em; padding: .9em 1em; font-size: .95em; }
.thread .who { font-size: .85em; margin-bottom: .35em; }
.ui .thread p:last-child { margin: 0; }

/* the todo list */
.addrow { display: flex; justify-content: space-between; align-items: center; background: var(--coral); color: #fff; border-radius: .75em; padding: .75em .9em; font-size: 1.05em; font-weight: 500; margin: .4em 0 .8em; }
.addrow .add-text.placeholder { opacity: .8; }
.plus { font-weight: 600; font-size: 1.3em; line-height: .8; }
.todos .td { display: flex; align-items: center; gap: .7em; padding: .62em 0; border-bottom: 1px solid var(--line); font-size: 1.08em; }
.todos .box { width: 1.35em; height: 1.35em; border-radius: 50%; }
.todos .box::after { left: .4em !important; top: .17em !important; }
.ui .quiet { color: var(--muted); font-size: .85em; margin-top: 1.2em; font-style: italic; }

/* ---------- motion: only when allowed and only with script (site.js adds .js and .in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-anim]:not(.in) .ui-notes .nsec, .js .ui-notes[data-anim]:not(.in) .nsec { opacity: 0; transform: translateY(1.2em); }
  .js .ui-notes[data-anim].in .nsec { animation: rise .55s var(--ease) both; animation-delay: calc(.25s + var(--s) * .14s); }
  .js .ui-notes[data-anim]:not(.in) .ck .box { background: transparent; border-color: #CFC8BE; }
  .js .ui-notes[data-anim]:not(.in) .ck .box::after { opacity: 0; }
  .js .ui-notes[data-anim]:not(.in) .ck span { color: var(--ink); text-decoration-color: transparent; }
  .js .ui-notes[data-anim].in .ck:not(.open) .box { animation: tick .28s var(--ease) both; animation-delay: calc(1.2s + var(--i) * .13s); }
  .js .ui-notes[data-anim].in .ck:not(.open) .box::after { animation: fadein .2s both; animation-delay: calc(1.25s + var(--i) * .13s); }
  .js .ui-notes[data-anim].in .ck:not(.open) span { animation: strike .3s both; animation-delay: calc(1.25s + var(--i) * .13s); }
  .js .ui-notes[data-anim].in .ck.gf { animation: glow 2.2s ease-out both; animation-delay: .9s; }

  .js .ui-projects[data-anim]:not(.in) .tk.new, .js .ui-projects[data-anim]:not(.in) .thread { opacity: 0; }
  .js .ui-projects[data-anim].in .tk { animation: rise .5s var(--ease) both; animation-delay: calc(.15s + var(--i) * .1s); }
  .js .ui-projects[data-anim].in .tk.new { animation: arrive .7s var(--ease) both; animation-delay: 1s; }
  .js .ui-projects[data-anim].in .tk.new { background: linear-gradient(90deg, var(--coral-soft), transparent 70%) no-repeat; background-size: 100% 100%; }
  .js .ui-projects[data-anim].in .tk.flip .pill.progress { display: inline; grid-column: 3; grid-row: 1; animation: fadeout .3s both 2.1s; }
  .js .ui-projects[data-anim].in .tk.flip .pill.after { animation: pop .4s var(--ease) both 2.3s; }
  .js .ui-projects[data-anim].in .thread { animation: rise .6s var(--ease) both 2.7s; }

  .js .ui-todo[data-anim]:not(.in) .td.arrive { opacity: 0; }
  .js .ui-todo[data-anim]:not(.in) .td.tick .box { background: transparent; border-color: #CFC8BE; }
  .js .ui-todo[data-anim]:not(.in) .td.tick .box::after { opacity: 0; }
  .js .ui-todo[data-anim]:not(.in) .td.tick span { color: var(--ink); text-decoration-color: transparent; }
  .js .ui-todo[data-anim].in .td.arrive { animation: arrive .6s var(--ease) both 1.35s; }
  .js .ui-todo[data-anim].in .td.tick .box { animation: tick .3s var(--ease) both 2.4s; }
  .js .ui-todo[data-anim].in .td.tick .box::after { animation: fadein .2s both 2.45s; }
  .js .ui-todo[data-anim].in .td.tick span { animation: strike .3s both 2.45s; }

  .js [data-reveal]:not(.in) { opacity: 0; transform: translateY(24px); }
  .js [data-reveal].in { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * .08s); }
}
@keyframes rise { from { opacity: 0; transform: translateY(1.2em); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(-.8em) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes tick { 0% { background: transparent; border-color: #CFC8BE; transform: scale(1); } 50% { transform: scale(1.18); } 100% { background: var(--coral); border-color: var(--coral); transform: scale(1); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeout { from { opacity: 1; } to { opacity: 0; display: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes strike { from { color: var(--ink); text-decoration-color: transparent; } to { color: #A39B90; text-decoration-color: rgba(163, 155, 144, .7); } }
@keyframes glow { 0% { background: transparent; box-shadow: 0 0 0 0 rgba(242, 114, 75, 0); } 30% { background: rgba(242, 114, 75, .22); box-shadow: 0 0 0 .3em rgba(242, 114, 75, .16); } 100% { background: var(--coral-soft); box-shadow: 0 0 0 0 rgba(242, 114, 75, 0); } }

/* ---------- product hero stacks ---------- */
.stack-hero { position: relative; width: min(100%, 520px); padding-bottom: 18%; }
.stack-main { position: relative; transform: rotate(-2deg); }
.stack-main > .pin { position: absolute; top: -18px; left: 50%; margin-left: -22px; z-index: 3; }
.stack-chat { position: absolute; right: -2%; bottom: 0; width: 64%; transform: rotate(2.5deg); z-index: 2; }
.stack-todo .stack-main { width: 62%; margin-left: 4%; }
.stack-todo .stack-main .phone { aspect-ratio: 9 / 15.5; }
.stack-projects .stack-main { width: 90%; }
.stack-projects { padding-bottom: 26%; }
@media (max-width: 899px) { .stack-hero { width: min(100%, 440px); } }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 10vw, 136px) 0; }
.tone-white { background: var(--white); }
.tone-ink { background: var(--ink); color: var(--paper); }
.tone-ink .eyebrow { color: var(--coral); }
.sec-head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(36px, 5.2vw, 68px); letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.sec-lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); margin-top: 20px; max-width: 38em; }
.sec-lead p:last-child { margin: 0; }
.tone-ink .sec-lead { color: #CFC8BE; }
.prose { max-width: 44em; font-size: 19px; line-height: 1.65; }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 1.6em 0 .55em; letter-spacing: -.035em; line-height: 1.1; }
.prose h3 { font-size: 23px; margin: 1.5em 0 .5em; letter-spacing: -.02em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose pre { background: var(--ink); color: #EDE8E1; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: 14.5px; line-height: 1.55; }
.prose :not(pre) > code { background: var(--paper-2); padding: .12em .38em; border-radius: 6px; overflow-wrap: anywhere; }
.prose .lead { font-size: 22px; color: var(--ink-2); margin-top: 0; }
.prose blockquote { margin: 1.4em 0; padding-left: 1em; border-left: 3px solid var(--coral); color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sec-text .sec-head { margin-bottom: 24px; }
.sec-text .prose { font-size: 21px; }
.sec-legal .prose, .api-doc { font-size: 17.5px; }
.legal h2 { font-size: 28px; }
.api-doc h2 { font-size: 28px; scroll-margin-top: 80px; }
.api-doc section { scroll-margin-top: 80px; }
.api-doc .toc { background: var(--paper); border-radius: 18px; padding: 20px 24px; margin: 24px 0; }
.api-doc .toc ol { columns: 2; column-gap: 32px; margin: 0; }
@media (max-width: 600px) { .api-doc .toc ol { columns: 1; } }

/* beats */
.beats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.beat-vis { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; margin-bottom: 26px; }
.beat-vis > .photo { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; box-shadow: none; }
.beat:nth-child(2) .beat-vis { background: #2b2722 center 30% / cover url(/media/kitchen-640.webp); }
.beat:nth-child(2) .beat-vis::before { content: ""; position: absolute; inset: 0; background: rgba(12, 10, 8, .5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.beat:nth-child(2) .ui-chat { position: relative; width: 86%; }
.beat:nth-child(3) .beat-vis { place-items: start center; }
.beat:nth-child(3) .ui-phone { width: 74%; margin-top: 11%; }
.beat-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.beat > h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.035em; margin-bottom: 8px; }
.beat > p:not(.beat-n) { color: var(--ink-2); }
@media (max-width: 860px) { .beats { grid-template-columns: 1fr; gap: 56px; } .beat-vis { max-width: 460px; aspect-ratio: 1 / 1; } }

/* apps */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app-card { position: relative; background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.app-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.app-card-link { position: absolute; inset: 0; z-index: 1; }
.app-card-vis { aspect-ratio: 5 / 4; background: var(--paper-2); display: grid; place-items: start center; overflow: hidden; padding-top: 9%; }
.app-card-vis .ui-phone { width: 54%; }
.app-card-vis .ui-card { width: 86%; margin-top: -1%; }
.app-card-vis .ui-card .thread { display: none; }
.app-card-copy { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.app-name { display: flex; align-items: baseline; gap: 6px; font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.app-name span:last-child { color: var(--coral); letter-spacing: -.02em; }
.app-card-copy h3 { font-size: 28px; letter-spacing: -.035em; margin-bottom: 10px; }
.app-card-copy p { color: var(--ink-2); font-size: 16.5px; }
.app-card .meta { color: var(--muted); font-size: 14.5px; margin-top: auto; padding-top: 6px; }
.app-card-act { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.more { font-weight: 600; font-size: 15.5px; text-decoration: none; }
@media (max-width: 980px) { .apps { grid-template-columns: 1fr; max-width: 560px; } }

/* pinned */
.pinned-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.pinned-copy h2 { font-size: clamp(38px, 5vw, 64px); margin: 0 0 .4em; letter-spacing: -.045em; line-height: 1; }
.pinned-copy p { font-size: 21px; color: var(--ink-2); }
.pinned-copy strong { color: var(--ink); }
@media (max-width: 860px) { .pinned-wrap { grid-template-columns: 1fr; } }

/* works with */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work { border-radius: 24px; background: var(--paper); padding: 30px; }
.work-name { font-size: 30px; font-weight: 600; letter-spacing: -.035em; margin-bottom: 10px; }
.work p:last-child { color: var(--ink-2); margin: 0; font-size: 16.5px; }
@media (max-width: 860px) { .works { grid-template-columns: 1fr; } }

/* trust */
.trust { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.32; letter-spacing: -.02em; max-width: 30em; color: var(--ink); }
.trust a { white-space: nowrap; }

/* examples */
.examples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ex { background: var(--white); border-radius: 24px; padding: 26px 28px 24px; box-shadow: inset 0 0 0 1px var(--line); }
.ex-say { font-size: clamp(20px, 2vw, 24px); font-weight: 550; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 14px; }
.ex-say .who { font-size: 13px; letter-spacing: 0; margin-bottom: 10px; }
.ex-done { color: var(--ink-2); margin: 0; padding-left: 26px; position: relative; font-size: 16.5px; }
.ex-done::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 4px; background: var(--coral) no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 5 9l5-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 760px) { .examples { grid-template-columns: 1fr; } }

/* devices */
.devices { display: grid; gap: clamp(20px, 3vw, 40px); align-items: end; }
.devices-3 { grid-template-columns: .72fr 1.15fr 1.4fr; }
.devices-2 { grid-template-columns: .8fr 1.2fr; }
.devices-1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
.dev { margin: 0; container-type: inline-size; }
.dev-crop { position: relative; overflow: hidden; background: #FBF8F3; box-shadow: 0 0 0 1px rgba(22, 19, 15, .08), var(--shadow-lg); }
.dev-crop > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dev figcaption { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 22px; font-weight: 500; }
.dev-iphone .dev-crop { aspect-ratio: 9 / 13; border-radius: 13cqw 13cqw 4cqw 4cqw; border: 2.4cqw solid #1b1916; border-bottom: 0; transform: rotate(-2.2deg); }
.dev-iphone .screen { border-radius: 0; height: 100%; }
.dev-ipad .dev-crop { aspect-ratio: 4 / 3; border-radius: 4.5cqw; border: 1.6cqw solid #1b1916; transform: rotate(1.4deg); }
.dev-mac .dev-crop { aspect-ratio: 16 / 10.4; border-radius: 1.8cqw; transform: rotate(-.8deg); }
.screen.split { height: 100%; display: grid; grid-template-columns: 31% 1fr; position: relative; color: var(--ink); text-align: left; }
.dev-ipad .screen.split { font-size: 2.1cqw; padding-top: 5.5cqw; }
.dev-ipad .sb { height: 5.5cqw; font-size: 1.7cqw; padding: 0 3cqw; }
.dev-ipad .sb .island { display: none; }
.dev-mac .screen.split { font-size: 1.75cqw; padding-top: 4.2cqw; }
.lights { position: absolute; top: 0; left: 0; right: 0; height: 4.2cqw; display: flex; gap: .9cqw; align-items: center; padding-left: 2cqw; background: #EFECE6; border-bottom: 1px solid var(--line); }
.lights i { width: 1.25cqw; height: 1.25cqw; border-radius: 50%; background: #E46A5D; }
.lights i:nth-child(2) { background: #E9B64B; }
.lights i:nth-child(3) { background: #69B55B; }
.screen.split aside { background: #F1EEE8; padding: 1.6em 1em; border-right: 1px solid var(--line); }
.side-h { font-size: .8em; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8em; }
.side-i { display: flex; justify-content: space-between; padding: .5em .7em; border-radius: .6em; margin: 0 0 .2em; font-weight: 500; font-size: 1.02em; }
.side-i small { color: var(--muted); }
.side-i.on { background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.side-i.on span { color: var(--coral); }
.screen.split main { padding: 1.7em 2em 0; overflow: hidden; }
@media (max-width: 860px) {
  .devices-3, .devices-2 { grid-template-columns: repeat(6, 1fr); row-gap: 48px; }
  .devices-3 .dev-iphone { grid-column: 1 / span 3; }
  .devices-3 .dev-ipad { grid-column: 4 / span 3; align-self: center; }
  .devices-3 .dev-mac { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .devices-3 .dev-iphone { grid-column: 2 / span 4; }
  .devices-3 .dev-ipad, .devices-3 .dev-mac { grid-column: 1 / -1; }
}

/* connect */
.connect-box { background: var(--white); border-radius: 24px; padding: 26px 28px; box-shadow: inset 0 0 0 1px var(--line); max-width: 760px; }
.tone-white .connect-box { background: var(--paper); }
.connect-label { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.connect-row { display: flex; gap: 10px; align-items: center; background: var(--paper); border-radius: 14px; padding: 8px 8px 8px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.tone-white .connect-row { background: var(--white); }
.connect-row code { flex: 1; font-size: clamp(14px, 2.2vw, 19px); color: var(--ink); overflow-wrap: anywhere; }
.copy { border: 0; background: var(--ink); color: var(--paper); font: 600 14.5px var(--font); padding: 11px 18px; border-radius: 10px; cursor: pointer; }
.copy.done { background: var(--coral); }

/* price */
.price-card { position: relative; background: var(--paper); border-radius: var(--radius); padding: 44px 36px 36px; max-width: 560px; box-shadow: inset 0 0 0 1px var(--line); transform: rotate(-.6deg); }
.tone-paper .price-card { background: var(--white); }
.price-card > .pin { position: absolute; top: -18px; left: 40px; }
.price-big { font-size: clamp(64px, 9vw, 96px); font-weight: 600; letter-spacing: -.055em; line-height: 1; margin-bottom: 6px; }
.price-big span { font-size: 22px; letter-spacing: -.01em; color: var(--muted); font-weight: 500; margin-left: 6px; }
.price-trial { font-size: 22px; font-weight: 600; color: var(--coral); letter-spacing: -.02em; }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--ink-2); font-size: 16.5px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--coral-soft) no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 5 9l5-6' fill='none' stroke='%23F2724B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* faq */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: clamp(19px, 2vw, 22px); font-weight: 600; letter-spacing: -.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; color: var(--coral); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 42em; }

/* download band */
.sec-download { text-align: center; }
.sec-download .sec-head { margin-left: auto; margin-right: auto; }
.sec-download .sec-lead { margin-left: auto; margin-right: auto; }
.dl { display: flex; flex-wrap: wrap; gap: 20px 28px; justify-content: center; align-items: flex-end; }
.dl-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dl-name { font-weight: 600; margin: 0; font-size: 15px; }
.dl-note { margin: 26px 0 0; color: var(--muted); font-size: 15px; }
.tone-ink .appstore { background: var(--paper); color: var(--ink); }
.tone-ink .appstore.soon { background: transparent; color: #CFC8BE; box-shadow: inset 0 0 0 1.5px #4A433C; }
.tone-ink .btn-ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px #4A433C; }
.tone-ink .btn-ghost:hover { background: #2a251f; }
.tone-ink .dl-note { color: #A39B90; }

/* steps */
.steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; max-width: 820px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 62px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 17px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 6px; width: 2px; background: var(--line); }
.steps h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.3; }
.steps li > div { color: var(--ink-2); margin-top: 6px; }
.steps li > div p { margin: 0; }
.steps pre { background: var(--ink); color: #EDE8E1; padding: 14px 18px; border-radius: 12px; overflow-x: auto; margin: 12px 0 0; font-size: 14.5px; white-space: pre-wrap; word-break: break-all; }
.sec-steps .sec-head { margin-bottom: 8px; }
.sec-steps .prose { font-size: 18px; color: var(--ink-2); }

/* tools */
.tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; }
.tools code { display: inline-block; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); padding: 9px 14px; border-radius: 10px; font-size: 15px; }

/* cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card a { display: block; height: 100%; text-decoration: none; background: var(--white); border-radius: 24px; padding: 26px 28px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.card a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.card h3 { font-size: 24px; margin-bottom: 8px; letter-spacing: -.03em; }
.card p { color: var(--ink-2); margin: 0; font-size: 16.5px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* learn */
.art-group + .art-group { margin-top: 72px; }
.art-group h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.04em; margin-bottom: 28px; }
.art-group h2 small { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 8px; }
.arts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.art a { display: flex; flex-direction: column; gap: 8px; height: 100%; text-decoration: none; background: var(--white); border-radius: 22px; padding: 24px 24px 26px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.tone-white .art a { background: var(--paper); }
.art a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.art-tag { color: var(--coral); font-size: 13.5px; font-weight: 600; }
.art-t { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.art-d { color: var(--ink-2); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 980px) { .arts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .arts { grid-template-columns: 1fr; } }
.article { padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
.article h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.art-date { color: var(--muted); font-size: 15px; margin: 18px 0 40px; }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 18px 0 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

/* footer */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 15.5px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; }
.foot-brand .logo { font-size: 40px; }
.foot-line { font-size: 22px; font-weight: 600; letter-spacing: -.025em; margin: 18px 0 8px; }
.foot-brand .muted { max-width: 26em; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 8px 0; }
.foot li a { text-decoration: none; color: var(--ink-2); }
.foot li a:hover { color: var(--ink); }
.foot-legal { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div:nth-child(2) { grid-column: 1 / -1; order: 3; } }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .prose, .sec-text .prose { font-size: 18px; }
  .ex { padding: 22px; }
  .price-card { padding: 40px 24px 28px; }
  .connect-box { padding: 20px; }
  .connect-row { flex-direction: column; align-items: stretch; padding: 12px; }
  .copy { width: 100%; }
}
