@font-face {
  font-family: "Caveat";
  src: url("/assets/caveat-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --wood-950: #120c09;
  --wood-900: #1a120e;
  --wood-800: #231812;
  --wood-700: #2f2119;
  --wood-600: #432f24;
  --paper: #faf8f3;
  --paper-2: #f1ece2;
  --paper-edge: #e4ddd0;
  --ink: #1c1c1e;
  --blue: #1f4fd8;
  --red: #e0322f;
  --green: #27a24a;
  --orange: #f5891f;
  --purple: #8b47d6;
  --gray: #8e8e93;
  --text: #f4ede4;
  --muted: #bfae9d;
  --faint: #8c7b6b;
  --accent: #e2a472;
  --glass: rgba(255, 244, 232, 0.07);
  --glass-strong: rgba(255, 244, 232, 0.12);
  --glass-line: rgba(255, 244, 232, 0.14);
  --radius: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Bradley Hand", "Caveat", "Segoe Print", cursive;
  --hand-web: "Caveat", "Bradley Hand", cursive;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--wood-900);
  background-image:
    radial-gradient(1200px 700px at 72% -10%, rgba(226, 164, 114, 0.22), transparent 60%),
    radial-gradient(900px 600px at 0% 30%, rgba(120, 72, 44, 0.18), transparent 70%),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--wood-800), var(--wood-950) 70%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(31, 79, 216, 0.45); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 10px; }

/* Nav: a floating glass capsule, like the app's palettes */
.nav {
  position: sticky; top: 14px; z-index: 50;
  width: min(1160px, 100% - 32px); margin: 14px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 14px;
  border-radius: 999px;
  background: rgba(35, 24, 18, 0.55);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav .btn { padding: 9px 16px; font-size: 14px; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--ink); background: var(--paper); }
@media (max-width: 720px) {
  .nav-links a.optional { display: none; }
}
@media (max-width: 460px) {
  .nav-links a:not(.btn) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--sans); text-decoration: none; letter-spacing: -0.005em;
  padding: 15px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--paper); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.06); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34), inset 0 -2px 0 rgba(0, 0, 0, 0.06); }
.btn-glass { background: var(--glass); color: var(--text); border-color: var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-glass:hover { background: var(--glass-strong); }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .6; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 3px; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 82px); font-weight: 750; }
h1 .hand { font-family: var(--hand-web); font-weight: 700; color: var(--paper); font-size: 1.12em; letter-spacing: 0; display: inline-block; transform: rotate(-2deg); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34ch; margin: 22px 0 32px; }
.lede strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--faint); font-size: 14px; }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta svg { width: 15px; height: 15px; color: var(--accent); }

/* The illustrated napkin in the hero */
.scene { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-left: auto; width: 100%; }
.napkin {
  position: absolute; inset: 6% 4% 12% 16%;
  transform: rotate(-3deg);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3));
}
.napkin .ply { position: absolute; inset: 0; background: var(--paper-2); border-radius: 3px; }
.napkin .ply:nth-child(1) { transform: translate(9px, 8px) rotate(1.2deg); background: #dcd4c6; }
.napkin .ply:nth-child(2) { transform: translate(5px, 5px) rotate(.6deg); background: #e7e1d5; }
.napkin .ply:nth-child(3) { transform: translate(2px, 2px) rotate(.2deg); background: #f0ebe2; }
.napkin .sheet {
  position: absolute; inset: 0; border-radius: 3px; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.07), transparent 5%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), transparent 5%),
    linear-gradient(124deg, transparent 38%, rgba(0, 0, 0, 0.05) 41%, rgba(255, 255, 255, 0.6) 43%, transparent 47%),
    linear-gradient(58deg, transparent 58%, rgba(0, 0, 0, 0.045) 60%, rgba(255, 255, 255, 0.55) 62%, transparent 66%),
    radial-gradient(120% 90% at 30% 20%, #fffefb, var(--paper) 55%, #efeae0);
}
.napkin .sheet::before {
  /* quilted band along the open edges */
  content: ""; position: absolute; right: 0; bottom: 0; left: 0; top: 0;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 9px);
  -webkit-mask: linear-gradient(#000, #000) right / 7% 100% no-repeat, linear-gradient(#000, #000) bottom / 100% 7% no-repeat;
  mask: linear-gradient(#000, #000) right / 7% 100% no-repeat, linear-gradient(#000, #000) bottom / 100% 7% no-repeat;
}
.napkin .sheet::after {
  /* embossed dotted border */
  content: ""; position: absolute; inset: 3% 9% 9% 3%;
  border: 2px dotted rgba(0, 0, 0, 0.09); border-radius: 2px;
}
.napkin svg.drawing { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.drawing .stroke { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.drawing .words { font-family: var(--hand-web); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .drawing .stroke { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw var(--dur, 1s) cubic-bezier(.5, .1, .3, 1) forwards; animation-delay: var(--delay, 0s); }
  .drawing .words { opacity: 0; animation: appear .5s ease forwards; animation-delay: var(--delay, 0s); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

.palette {
  position: absolute; display: flex; gap: 6px; padding: 8px;
  background: rgba(255, 250, 244, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
.palette.tools { flex-direction: column; left: 0; top: 16%; }
.palette.inks { left: 26%; bottom: 0; align-items: center; }
.palette .tool { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 248, 240, 0.86); }
.palette .tool.on { background: rgba(255, 255, 255, 0.9); color: var(--ink); }
.palette .tool svg { width: 17px; height: 17px; }
.palette .dot { width: 20px; height: 20px; border-radius: 50%; margin: 7px 4px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.palette .dot.on { outline: 2px solid rgba(255, 255, 255, 0.9); outline-offset: 3px; }
.palette .sep { width: 1px; align-self: stretch; margin: 6px 4px; background: rgba(255, 255, 255, 0.2); }
.palette.tools .sep { width: auto; height: 1px; margin: 2px 6px; }

/* Sections */
section { padding: clamp(56px, 9vw, 112px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
h2 { font-size: clamp(34px, 4.8vw, 54px); font-weight: 720; }
h2 .hand { font-family: var(--hand-web); font-weight: 700; color: var(--accent); letter-spacing: 0; font-size: 1.1em; }
.section-head p { color: var(--muted); font-size: clamp(17px, 1.8vw, 19px); margin: 18px 0 0; }

/* Paper notes */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.note {
  position: relative; background: var(--paper); color: var(--ink);
  border-radius: 4px; padding: 30px 28px 32px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35), 0 2px 3px rgba(0, 0, 0, 0.25);
  background-image: radial-gradient(130% 100% at 20% 0%, #fffefb, var(--paper) 60%, #efeae0);
}
.note:nth-child(1) { transform: rotate(-1.2deg); }
.note:nth-child(2) { transform: rotate(.8deg) translateY(10px); }
.note:nth-child(3) { transform: rotate(-.5deg); }
.note .scribble { font-family: var(--hand-web); font-weight: 700; font-size: 34px; line-height: 1; color: var(--blue); margin: 0 0 14px; }
.note:nth-child(2) .scribble { color: var(--red); }
.note:nth-child(3) .scribble { color: var(--green); }
.note h3 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 10px; }
.note p { margin: 0; color: #4a4642; font-size: 16px; }
kbd {
  font-family: var(--sans); font-size: .82em; font-weight: 600;
  display: inline-block; min-width: 1.9em; text-align: center;
  padding: .12em .45em; border-radius: 7px;
  background: linear-gradient(#fff, #efebe4); color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.18);
}

/* Comparison */
.compare {
  border-radius: var(--radius); overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.compare table { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 18px 22px; vertical-align: top; }
.compare thead th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 650; border-bottom: 1px solid var(--glass-line); }
.compare thead th.us { color: var(--paper); }
.compare tbody tr + tr td, .compare tbody tr + tr th { border-top: 1px solid rgba(255, 244, 232, 0.07); }
.compare tbody th { font-weight: 600; color: var(--text); width: 26%; }
.compare td { color: var(--muted); }
.compare td.us { color: var(--text); background: rgba(250, 248, 243, 0.045); font-weight: 500; }
.compare td.us::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }
.fine { color: var(--faint); font-size: 13px; margin-top: 14px; }
@media (max-width: 720px) {
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tbody tr { padding: 16px 18px; }
  .compare tbody tr + tr { border-top: 1px solid rgba(255, 244, 232, 0.08); }
  .compare tbody tr + tr td, .compare tbody tr + tr th { border-top: 0; }
  .compare th, .compare td { padding: 4px 0; }
  .compare td:not(.us)::before { content: "Typical: "; color: var(--faint); }
  .compare td.us { background: none; }
}

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 244, 232, 0.075), rgba(255, 244, 232, 0.03));
  border: 1px solid var(--glass-line);
  transition: transform .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(255, 244, 232, 0.24); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.swatches { display: flex; gap: 7px; margin-top: 14px; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25); }

/* Showcase */
.showcase { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.shot {
  margin: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--glass-line); background: var(--wood-800);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column;
}
.shot img { width: 100%; flex: 1; object-fit: cover; }
.shot.paper { background: #fff; }
.shot.paper img { object-fit: contain; padding: 6%; }
.shot figcaption { padding: 16px 20px; font-size: 15px; color: var(--muted); background: rgba(26, 18, 14, 0.92); border-top: 1px solid var(--glass-line); }
.shot figcaption strong { color: var(--text); font-weight: 600; }

/* Shortcuts */
.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.keys dl { margin: 0; }
.keys .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255, 244, 232, 0.08); }
.keys dt { color: var(--muted); font-size: 15.5px; }
.keys dd { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Privacy callout */
.privacy-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: clamp(26px, 4vw, 40px); border-radius: 28px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.privacy-card .badge { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: #eaf0ff; color: var(--blue); }
.privacy-card .badge svg { width: 36px; height: 36px; }
.privacy-card h2 { font-size: clamp(26px, 3.4vw, 36px); }
.privacy-card p { margin: 8px 0 0; color: #4a4642; }
.privacy-card a.link { color: var(--blue); font-weight: 600; text-decoration: none; white-space: nowrap; }
.privacy-card a.link:hover { text-decoration: underline; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid rgba(255, 244, 232, 0.1); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 68ch; }

/* Closing CTA */
.closer { text-align: center; }
.closer .icon { width: 112px; height: 112px; margin: 0 auto 26px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45)); }
.closer h2 { margin-bottom: 14px; }
.closer p { color: var(--muted); margin: 0 auto 30px; max-width: 46ch; font-size: 18px; }
.closer .cta-row { justify-content: center; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid rgba(255, 244, 232, 0.08); color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Document pages (privacy, support) */
.doc { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 100px); }
.doc-paper {
  width: min(820px, 100%); margin-inline: auto;
  background: var(--paper); color: var(--ink);
  border-radius: 6px; padding: clamp(28px, 6vw, 64px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.25);
  background-image: radial-gradient(130% 80% at 20% 0%, #fffefb, var(--paper) 50%, #f3efe7);
}
.doc-paper .scribble { font-family: var(--hand-web); font-weight: 700; font-size: 30px; color: var(--blue); margin: 0 0 6px; transform: rotate(-1.5deg); display: inline-block; }
.doc-paper h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.doc-paper .updated { color: #7a736b; font-size: 14px; margin: 0 0 30px; }
.doc-paper h2 { font-size: 23px; letter-spacing: -0.015em; margin: 38px 0 10px; }
.doc-paper p, .doc-paper li { color: #3d3934; font-size: 16.5px; }
.doc-paper ul { padding-left: 1.2em; }
.doc-paper li + li { margin-top: 6px; }
.doc-paper a { color: var(--blue); }
.doc-paper code { overflow-wrap: anywhere; font: 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: rgba(0, 0, 0, 0.05); padding: 2px 6px; border-radius: 5px; }
.doc-paper .summary { border-left: 4px solid var(--blue); background: #eef2fd; padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 0 0 8px; }
.doc-paper .summary p { margin: 0; color: #22324f; }
.contact-card { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin: 22px 0 6px; padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--paper-edge); }
.contact-card p { margin: 0; }
.contact-card .btn-primary { background: var(--ink); color: var(--paper); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .scene { margin: 8px auto 0; max-width: 500px; }
  .lede { max-width: 46ch; }
  .notes, .features { grid-template-columns: 1fr 1fr; }
  .note:nth-child(3), .feature:last-child { grid-column: span 2; }
  .showcase { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .notes, .features { grid-template-columns: 1fr; }
  .note:nth-child(3), .feature:last-child { grid-column: auto; }
  .note { transform: none !important; }
  .privacy-card { grid-template-columns: 1fr; gap: 18px; }
  .palette.tools { top: 10%; }
  .palette .tool { width: 28px; height: 28px; }
  .palette .tool svg { width: 15px; height: 15px; }
  .palette .dot { width: 16px; height: 16px; margin: 5px 3px; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature { transition: none; }
}
