/* jot.clinic holding page. Colours and type are the product's tokens (prototype/tokens.css): click.clinic's design
   system plus jot.clinic's brand colours, the logo's blue → purple. Fonts are self-hosted (OFL): no third-party requests.
   Motion: only transform and opacity animate, and all of it is off under prefers-reduced-motion. */

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-v17-latin.woff2") format("woff2");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-v12-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --background: 220 20% 97%;
  --foreground: 220 30% 12%;
  --card: 0 0% 100%;
  --primary: 220 50% 15%;           /* navy: the one action colour */
  --primary-foreground: 210 40% 98%;
  --muted-foreground: 220 14% 34%;
  --border: 220 13% 91%;
  --ring: 215 40% 55%;
  --accent: 211 100% 56%;           /* the logo's top stroke, #1F8CFF: brand moments only, never text on white */
  --destructive: 0 72% 51%;
  --logo-navy: #0b1f5c;
  /* The logo's strokes, top to bottom. */
  --brand-1: #1f8cff; --brand-2: #2f6bff; --brand-3: #4c4cff; --brand-4: #cb6ce6;
  --brand-grad: linear-gradient(100deg, var(--brand-1) 0%, var(--brand-3) 55%, var(--brand-4) 100%);

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 0.625rem;
  --shadow-frame: 0 1px 2px rgb(11 31 92 / 0.05), 0 24px 48px -16px rgb(11 31 92 / 0.22);
  --shadow-soft: 0 1px 2px rgb(11 31 92 / 0.04), 0 12px 32px -12px rgb(11 31 92 / 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 20px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: hsl(var(--card)); color: hsl(var(--foreground)); overflow-x: hidden;
  font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); color: hsl(var(--primary)); margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
a { color: hsl(var(--primary)); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 640px; }
.muted { color: hsl(var(--muted-foreground)); }
/* Brand gradient text: large type only. `color` stays navy for contrast checks and for browsers without clip. */
.grad { color: hsl(var(--primary)); background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kicker { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.kicker::before { content: ""; display: inline-block; width: 18px; height: 2px; border-radius: 2px; margin-right: 10px; vertical-align: middle; background: var(--brand-grad); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: hsl(var(--card)); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- buttons: hover lifts (transform) and lightens (an overlay's opacity) ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgb(11 31 92 / 0.2);
  transition: transform 200ms var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; opacity: 0; transition: opacity 200ms var(--ease); }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:hover::after { opacity: 0.1; }
.btn:active { transform: translateY(0); }
.btn .arrow { display: inline-block; transition: transform 200ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-ghost { background: transparent; color: hsl(var(--primary)); box-shadow: inset 0 0 0 1px hsl(220 13% 84%); }
.btn-ghost::after { background: hsl(var(--primary)); }
.btn-ghost:hover::after { opacity: 0.05; }

/* ---------- header: transparent at the top, a soft background once scrolled ---------- */
.top { position: sticky; top: 0; z-index: 10; }
.top::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: hsl(var(--card) / 0.94); box-shadow: 0 1px 0 hsl(var(--border)), 0 8px 24px -16px rgb(11 31 92 / 0.18);
  transition: opacity 250ms var(--ease);
}
.top.scrolled::before { opacity: 1; }
.top-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--logo-navy); margin-right: auto; }
.lockup img { width: 36px; height: 32px; }
.wordmark { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.025em; white-space: nowrap; line-height: 1; }
.w-light { font-weight: 300; }
.w-bold { font-weight: 700; }
.top-nav { display: none; gap: 28px; margin-right: 12px; }
.top-nav a { font-size: 0.9375rem; font-weight: 500; color: hsl(var(--muted-foreground)); text-decoration: none; }
.top-nav a:hover { color: hsl(var(--primary)); }
@media (min-width: 820px) { .top-nav { display: flex; } }

/* ---------- glow: soft blue → purple light, drifting slowly ---------- */
.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.glow span { position: absolute; border-radius: 50%; will-change: transform; }
.glow .g1 { width: 720px; height: 720px; left: 50%; top: -360px; margin-left: -620px; background: radial-gradient(closest-side, rgb(31 140 255 / 0.22), transparent); }
.glow .g2 { width: 640px; height: 640px; left: 50%; top: -260px; margin-left: -40px; background: radial-gradient(closest-side, rgb(203 108 230 / 0.2), transparent); }
.glow .g3 { width: 560px; height: 560px; left: 50%; top: 80px; margin-left: -300px; background: radial-gradient(closest-side, rgb(76 76 255 / 0.12), transparent); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: 40px 0 72px; margin-top: -68px; padding-top: 108px; }
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-mark { width: 92px; height: 81px; margin-bottom: 28px; }
.mark-svg { width: 100%; height: 100%; overflow: visible; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: hsl(var(--card) / 0.8); box-shadow: inset 0 0 0 1px hsl(var(--border)), var(--shadow-soft);
  font-size: 0.875rem; font-weight: 500; color: hsl(var(--muted-foreground));
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand-2); opacity: 0; }
.hero h1 { margin-top: 24px; font-size: clamp(2.375rem, 8.4vw, 4.5rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; max-width: 18ch; }
.hero h1 .grad { display: inline-block; padding-bottom: 0.06em; }
.lede { margin-top: 24px; font-size: clamp(1.125rem, 2.4vw, 1.3125rem); line-height: 1.55; color: hsl(var(--muted-foreground)); max-width: 34em; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.devices { position: relative; margin-top: 64px; padding-right: 12%; }
.laptop { position: relative; }
.laptop-screen { padding: 1.4%; background: #0d1426; border-radius: 16px 16px 6px 6px; box-shadow: var(--shadow-frame), inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.laptop-screen img { border-radius: 4px; }
.laptop-base {
  position: relative; height: 12px; margin: 0 -4.5%; border-radius: 2px 2px 14px 14px;
  background: linear-gradient(#e9ecf2, #c5cad4); box-shadow: 0 18px 30px -18px rgb(11 31 92 / 0.45);
}
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 5px; margin-left: -7%; border-radius: 0 0 8px 8px; background: #b4bac6; }
.phone-float { position: absolute; right: 0; bottom: -28px; width: 26%; max-width: 232px; }
.phone { padding: 7px; border-radius: 34px; background: #0d1426; box-shadow: var(--shadow-frame), inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.phone img { border-radius: 27px; }
.hero-caption { margin-top: 48px; text-align: center; font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }
.hero-caption strong { color: hsl(var(--primary)); font-weight: 600; }

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .hero { padding-top: 148px; padding-bottom: 96px; }
  .devices { margin-top: 88px; padding: 0 9% 0 5%; }
  .phone-float { right: 3%; bottom: -44px; width: 20%; }
  .phone { padding: 9px; border-radius: 40px; }
  .phone img { border-radius: 31px; }
}

/* ---------- the living note ---------- */
.live { padding: 72px 0 88px; }
.live-in { display: grid; gap: 40px; align-items: center; }
.live h2, .section-head h2 { margin-top: 14px; font-size: clamp(1.875rem, 4.6vw, 2.875rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }
.live-text > p:last-child, .section-head > p:last-child:not(.kicker) { margin-top: 16px; font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 34em; }

.note-demo {
  position: relative; background: hsl(var(--card)); border-radius: 18px; padding: 24px;
  box-shadow: inset 0 0 0 1px hsl(var(--border)), var(--shadow-frame);
}
.note-demo::before { /* a hairline of the brand gradient along the top edge */
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; border-radius: 2px; background: var(--brand-grad); opacity: 0.8;
}
.nd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid hsl(var(--border)); }
.nd-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: hsl(var(--primary)); letter-spacing: -0.02em; }
.nd-pill { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; font: 500 0.8rem/1.6 var(--font); letter-spacing: 0; color: hsl(215 40% 38%); background: hsl(var(--ring) / 0.14); vertical-align: 2px; }
.nd-meta { margin-top: 4px; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.nd-saved { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: hsl(152 60% 26%); background: hsl(152 60% 40% / 0.12); }
.nd-body { padding: 18px 0 8px; min-height: 212px; }
.nd-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.nd-label + .nd-line { margin-top: 6px; }
.nd-line + .nd-label { margin-top: 18px; }
.nd-line { font-size: 1rem; line-height: 1.6; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: var(--brand-2); opacity: 0; }
.nd-versions { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid hsl(var(--border)); display: grid; gap: 6px; font-size: 0.875rem; }
.nd-versions li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; color: hsl(var(--muted-foreground)); }
.nd-versions .v3 { color: hsl(var(--primary)); background: hsl(var(--background)); font-weight: 500; }

@media (min-width: 960px) {
  .live { padding: 72px 0 80px; }
  .live-in { grid-template-columns: 5fr 6fr; gap: 72px; }
  .note-demo { padding: 32px; }
  .note-demo::before { left: 32px; right: 32px; }
}

/* ---------- what's coming ---------- */
.features { padding: 40px 0 48px; }
.section-head { max-width: 760px; }
.feature { display: grid; gap: 28px; padding: 48px 0; }
.features .section-head + .feature { margin-top: 24px; }
.feature h3 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.025em; }
.feature p { margin-top: 12px; font-size: 1.0625rem; color: hsl(var(--muted-foreground)); max-width: 28em; }
.panel {
  position: relative; overflow: hidden; border-radius: 22px; padding: 7% 6% 0;
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(31 140 255 / 0.12), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, rgb(203 108 230 / 0.12), transparent 60%),
    hsl(var(--background));
  box-shadow: inset 0 0 0 1px hsl(var(--border));
}
.window { border-radius: 12px 12px 0 0; overflow: hidden; background: hsl(var(--card)); box-shadow: var(--shadow-frame), 0 0 0 1px hsl(var(--border)); margin-bottom: -2px; }
.window-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--border)); }
.panel-phone { padding: 8% 0 0; display: flex; justify-content: center; }
.panel-phone .phone { width: min(240px, 62%); border-radius: 36px 36px 0 0; padding-bottom: 0; margin-bottom: -2px; }
.panel-phone .phone img { border-radius: 28px 28px 0 0; }

@media (min-width: 960px) {
  .features { padding-top: 56px; }
  .feature { grid-template-columns: 4fr 7fr; gap: 72px; align-items: center; padding: 56px 0; }
  .feature:nth-of-type(even) { grid-template-columns: 7fr 4fr; }
  .feature:nth-of-type(even) .feature-text { order: 2; }
  .panel-phone .phone { width: 240px; }
}

/* ---------- built by clinicians ---------- */
.clinicians { position: relative; isolation: isolate; overflow: hidden; margin-top: 56px; padding: 88px 0; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.clinicians h2, .clinicians h3 { color: #fff; }
.clinicians .kicker, .clinicians .section-head > p:last-child { color: hsl(215 35% 78%); }
.glow-dark .g1 { top: -300px; background: radial-gradient(closest-side, rgb(31 140 255 / 0.28), transparent); }
.glow-dark .g2 { top: auto; bottom: -380px; background: radial-gradient(closest-side, rgb(203 108 230 / 0.24), transparent); }
.points { display: grid; gap: 16px; margin-top: 48px; }
.point { padding: 24px; border-radius: 16px; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.point h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; }
.point p { margin-top: 8px; color: hsl(215 35% 82%); }
@media (min-width: 820px) { .points { grid-template-columns: repeat(3, 1fr); gap: 20px; } .clinicians { padding: 120px 0; } .point { padding: 28px; } }

/* ---------- stance, team ---------- */
.stance { padding: 104px 0 72px; }
.stance p { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; color: hsl(var(--primary)); font-size: clamp(1.75rem, 4.6vw, 3rem); line-height: 1.18; max-width: 24ch; }
.team { padding: 0 0 88px; }
.team p { font-size: 1.125rem; color: hsl(var(--muted-foreground)); }
.team a { color: hsl(var(--primary)); font-weight: 600; }

/* ---------- register ---------- */
.register { position: relative; isolation: isolate; padding: 24px 0 112px; }
.register::before { /* a still, soft wash of the brand colours behind the card */
  content: ""; position: absolute; inset: -40px 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 30% 45%, rgb(31 140 255 / 0.10), transparent 70%), radial-gradient(40% 50% at 70% 60%, rgb(203 108 230 / 0.10), transparent 70%);
}
.register-card { padding: 32px 24px; border-radius: 22px; background: hsl(var(--card)); box-shadow: inset 0 0 0 1px hsl(var(--border)), var(--shadow-frame); }
@media (min-width: 640px) { .register-card { padding: 48px; } }
.register h2 { font-size: clamp(1.75rem, 4.4vw, 2.25rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; }
.register .muted { margin-top: 12px; }
form { margin-top: 32px; }
.field { margin-bottom: 20px; }
label { display: block; font-weight: 500; font-size: 0.9375rem; margin-bottom: 6px; color: hsl(var(--foreground)); }
.optional { font-weight: 400; color: hsl(var(--muted-foreground)); margin-left: 6px; }
input, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid hsl(220 13% 80%);
  border-radius: calc(var(--radius) - 2px); background: hsl(var(--card)); color: hsl(var(--foreground));
  font: 400 1rem/1.5 var(--font);
}
textarea { resize: vertical; min-height: 96px; }
input:focus-visible, textarea:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 1px; border-color: hsl(var(--ring)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); margin: 4px 0 24px; }
.form-error { color: hsl(var(--destructive)); margin-bottom: 16px; }
form .btn { width: 100%; }
@media (min-width: 600px) { form .btn { width: auto; } }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.thanks { margin-top: 32px; padding: 28px; background: hsl(var(--background)); border-radius: var(--radius); }
.thanks h3 { font-size: 1.375rem; }
.thanks p { margin-top: 8px; color: hsl(var(--muted-foreground)); }
[hidden] { display: none !important; }

/* =====================================================================================================
   Motion. Everything below is inside prefers-reduced-motion: no-preference, so with reduced motion
   nothing moves and everything is simply there. Reveal states also need scripting (site.js adds .in).
   ===================================================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Glow drift: slow and small. */
  .glow .g1 { animation: drift-a 22s ease-in-out infinite alternate; }
  .glow .g2 { animation: drift-b 26s ease-in-out infinite alternate; }
  .glow .g3 { animation: drift-c 30s ease-in-out infinite alternate; }
  @keyframes drift-a { to { transform: translate3d(90px, 50px, 0) scale(1.08); } }
  @keyframes drift-b { to { transform: translate3d(-80px, 70px, 0) scale(0.94); } }
  @keyframes drift-c { to { transform: translate3d(60px, -40px, 0) scale(1.1); } }

  .pulse::after { animation: pulse 2.4s var(--ease) infinite; }
  @keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(2.8); opacity: 0; } }

  /* The mark, once on load: the pencil comes in, the strokes draw left to right, top to bottom, then it settles. */
  .mark-svg { animation: settle 700ms var(--ease) 1300ms both; }
  .mark-svg .st, .mark-svg .tip { transform-box: fill-box; transform-origin: 0% 50%; animation: draw 620ms var(--ease) both; }
  .mark-svg .st1 { animation-delay: 380ms; }
  .mark-svg .st2 { animation-delay: 520ms; }
  .mark-svg .st3 { animation-delay: 660ms; }
  .mark-svg .tip { animation-delay: 820ms; }
  .mark-svg .st4 { animation-delay: 900ms; }
  .mark-svg .pencil { transform-box: fill-box; transform-origin: 20% 90%; animation: pencil 900ms var(--ease) both; }
  @keyframes draw { from { transform: scaleX(0); opacity: 0; } 30% { opacity: 1; } to { transform: scaleX(1); opacity: 1; } }
  @keyframes pencil { from { transform: translate(28%, -22%) rotate(-10deg); opacity: 0; } 55% { opacity: 1; } to { transform: none; opacity: 1; } }
  @keyframes settle { 0% { transform: scale(1); } 40% { transform: scale(1.045); } 100% { transform: scale(1); } }

  /* Hero copy rises in after the mark, in order. */
  .h-anim { animation: rise 800ms var(--ease) both; }
  .h2 { animation-delay: 250ms; } .h3 { animation-delay: 350ms; } .h4 { animation-delay: 450ms; }
  .h5 { animation-delay: 550ms; } .h6 { animation-delay: 500ms; animation-duration: 1000ms; } .h7 { animation-delay: 800ms; }
  @keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

  /* The phone floats, gently. (Parallax moves its wrapper, so the two never fight.) */
  .floaty { animation: float 7s ease-in-out 1.6s infinite alternate; }
  @keyframes float { to { transform: translate3d(0, -10px, 0); } }
  [data-parallax] { will-change: transform; }
}

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  /* Scroll reveals: fade and rise as they come into view; site.js staggers them within each [data-stagger]. */
  .reveal { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
  .reveal.in { opacity: 1; transform: none; }

  /* The note writes itself, line by line, then saves as version 3. site.js adds .play when it's in view. */
  .note-demo .nd-body > *, .nd-saved, .nd-versions li { opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
  .note-demo.play .nd-body > *, .note-demo.play .nd-saved, .note-demo.play .nd-versions li { opacity: 1; transform: none; }
  .note-demo.play .s1 { transition-delay: 300ms; }
  .note-demo.play .s2 { transition-delay: 700ms; }
  .note-demo.play .s3 { transition-delay: 1300ms; }
  .note-demo.play .s4 { transition-delay: 1900ms; }
  .note-demo.play .s5 { transition-delay: 2600ms; }
  .note-demo.play .s6 { transition-delay: 3000ms; }
  .note-demo.play .v1 { transition-delay: 3900ms; }
  .note-demo.play .v2 { transition-delay: 4050ms; }
  .note-demo.play .v3 { transition-delay: 4200ms; }
  .note-demo.play .nd-saved { transition-delay: 4400ms; transform: none; }
  .nd-saved { transform: translate3d(0, 0, 0) scale(0.9); }
  .note-demo.play .caret { animation: caret 0.8s steps(1) 3200ms 2 both; }
  @keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .caret { display: none; }
}

/* ---------- footer (laid out as click.clinic's) ---------- */
.foot { background: hsl(var(--primary) / 0.04); border-top: 1px solid hsl(var(--border)); font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }
.foot-grid { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot .lockup img { width: 27px; height: 24px; }
.foot .wordmark { font-size: 1.125rem; }
.foot-tag { margin-top: 12px; }
.foot address { font-style: normal; font-size: 0.875rem; line-height: 1.6; margin-top: 12px; }
.foot address span { display: block; }
.foot-h { font-family: var(--font); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--foreground)); }
.foot ul { list-style: none; margin: 12px 0 0; padding: 0; }
.foot li + li { margin-top: 8px; }
.foot a { color: hsl(var(--foreground)); }
.foot-bar { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-size: 0.875rem; }
.foot-bar a { color: inherit; }
.foot-bar a:hover { color: #fff; }
.foot-bar .wrap { padding-top: 18px; padding-bottom: 18px; }

/* ---------- plain pages (privacy, thanks, 404) ---------- */
.page { padding: 64px 0 96px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; font-weight: 700; }
.page h2 { font-size: 1.25rem; font-weight: 700; margin-top: 40px; }
.page p, .page ul { margin-top: 12px; }
.page ul { padding-left: 1.25em; }
.page li + li { margin-top: 6px; }
.page .updated { margin-top: 12px; color: hsl(var(--muted-foreground)); font-size: 0.9375rem; }
