/* wobblr.app: pencil and clay, everything on warm paper. Light only (like the app). */
@font-face {
  font-family: "Kalam";
  src: url("/fonts/kalam-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Kalam";
  src: url("/fonts/kalam-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4efe4;
  --grain: #e9e1d1;
  --card: #fbf8f1;
  --ink: #46505f;
  --ink-soft: #5d6674;
  --clay: #b98a6e;
  --clay-deep: #9c6f55;
  --sage: #8fa38a;
  --blue: #8297ae;
  --mustard: #c4aa72;
  --rose: #c29393;
  --brick: #b0706a;
  --faint: #8a8880;
  --hand: "Noteworthy", "Kalam", "Bradley Hand", cursive;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --page: 1120px;
  --gutter: 24px;
}

* { 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-color: var(--paper);
  background-image: radial-gradient(var(--grain) 1.2px, transparent 1.3px);
  background-size: 30px 30px;
  color: var(--ink);
  font: 17px/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--clay-deep); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, .hand { font-family: var(--hand); font-weight: 700; line-height: 1.15; letter-spacing: 0; }
h1 { font-size: clamp(38px, 6vw, 64px); margin: 0 0 16px; }
h2 { font-size: clamp(30px, 4.2vw, 44px); margin: 0 0 12px; }
h3 { font-size: 24px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 34em; }
.quiet { color: var(--faint); font-size: 15px; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 9vw, 104px) 0; position: relative; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Hand-drawn decorations: js/sketch.js draws an SVG into any [data-sketch] element. */
[data-sketch] { position: relative; }
.sketch-layer { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.sketch-layer path { fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); gap: 16px; }
.top .logo img { height: 40px; width: auto; display: block; }
.top nav { display: flex; gap: 22px; font-size: 16px; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
@media (max-width: 640px) { .top nav .hide-small { display: none; } }

/* ---- Hero */
.hero { padding-top: clamp(24px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ipad { padding: 10px; border-radius: 22px; } .ipad .screen { border-radius: 12px; } }
.hero h1 .under { position: relative; white-space: nowrap; }
.hero .note { margin-top: 10px; }

/* ---- Waitlist form */
.join { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin-top: 22px; max-width: 520px; }
.join input[type="email"] {
  flex: 1 1 240px; min-height: 54px; padding: 0 16px; border: 0; background: var(--card);
  font: 18px var(--body); color: var(--ink); border-radius: 10px;
}
.join input::placeholder { color: var(--faint); }
.join .cf-turnstile { flex-basis: 100%; }
.join-msg { min-height: 1.4em; margin-top: 8px; font-size: 15px; }
.join-msg.bad { color: var(--brick); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px;
  font: 700 21px var(--hand); color: var(--ink); background: rgba(185, 138, 110, 0.16); border: 0;
  cursor: pointer; text-decoration: none; border-radius: 6px;
}
.btn:hover { background: rgba(185, 138, 110, 0.26); color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---- The board (hero picture and demo player frame) */
.ipad { padding: 18px; background: var(--ink); border-radius: 34px; box-shadow: 0 18px 40px rgba(70, 80, 95, 0.18); }
.ipad .screen {
  aspect-ratio: 4 / 3; background-color: var(--paper); border-radius: 18px; overflow: hidden; position: relative;
  background-image: radial-gradient(var(--grain) 1.2px, transparent 1.3px); background-size: 22px 22px;
}
.ipad .screen > img, .ipad .screen > video { width: 100%; height: 100%; object-fit: contain; display: block; }
.said { margin: 18px 8px 0; color: var(--ink-soft); font-size: clamp(17px, 1.8vw, 20px); text-align: center; }
.said .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #4d6b94; margin-right: 10px; vertical-align: middle; }
.caption-you, .caption-buddy {
  position: absolute; left: 50%; transform: translateX(-50%); max-width: 86%; padding: 6px 14px;
  font: 700 clamp(13px, 1.6vw, 17px) var(--hand); text-align: center; border-radius: 14px;
}
.caption-you { top: 5%; background: rgba(251, 248, 241, 0.92); color: var(--ink); }
.caption-buddy { bottom: 5%; color: var(--ink-soft); }

/* ---- How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px 24px 22px; background: rgba(251, 248, 241, 0.7); }
.step .num { font: 700 20px var(--hand); color: var(--clay-deep); }
.step img { height: 110px; width: auto; display: block; margin: 6px auto 10px; }

/* ---- Features: alternating picture and words */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: 36px 0; }
.feature:nth-child(even) .feature-pic { order: 2; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature-pic { order: 0; } }
.feature-pic { background: var(--card); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.feature-pic img { max-height: 100%; }
.feature ul { padding-left: 1.1em; margin: 0; }
.feature li { margin-bottom: 6px; }

/* ---- Use-case wall */
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
@media (max-width: 900px) { .wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wall { grid-template-columns: 1fr; } }
.tile { padding: 20px 18px 16px; background: rgba(251, 248, 241, 0.75); text-align: center; }
.tile img { height: 110px; max-width: 80%; width: auto; display: block; margin: 6px auto 14px; object-fit: contain; }
.tile h3 { font-size: 21px; }
.tile p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---- Privacy band and FAQ */
.band { background: rgba(251, 248, 241, 0.6); }
.faq { max-width: 760px; margin: 28px auto 0; }
.faq details { padding: 16px 4px; border-bottom: 1px dashed var(--grain); }
.faq summary { cursor: pointer; font: 700 21px var(--hand); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--clay-deep); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---- Margin doodles: decoration only, hidden from screen readers and on small screens */
.doodle { position: absolute; opacity: 0.5; pointer-events: none; width: auto; height: 90px; }
@media (max-width: 1240px) { .doodle { display: none; } }

/* ---- Footer */
footer { padding: 48px 0 56px; color: var(--faint); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }

/* ---- Text pages (privacy, terms, press, thanks) */
.doc { max-width: 720px; margin: 0 auto; padding: 24px var(--gutter) 40px; }
.doc h1 { margin-top: 18px; }
.doc h2 { font-size: 28px; margin-top: 34px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.center .join { justify-content: center; }
