/* pond.codes (site-3). Colours, radii and shadows are BoardUI's semantic tokens (boardui-tokens.css, MIT), the same ones
   Pond's sidebar uses, so the site and the app read as one system in light and dark. Components are plain-CSS ports of
   BoardUI's free Button, Chip and Divider recipes; an optional BoardUI Pro layer (vendor/boardui-pro/pro.css, gitignored,
   fetched at deploy time) may restyle the state chips. Without it the page is complete.

   Type scale (px): 13 caption, 15 small, 17 body, 20 lede and h3, 28-36 h2, 40-60 display. Spacing steps: 4 8 12 16 24
   32 48 64 96 128. One column grid: the container is 1120 wide, text runs at most 620. */

:root {
  --page: var(--color-background-full);
  --plate: var(--color-background-secondary-default);
  --ink: var(--color-text-primary);
  --ink-2: var(--color-text-secondary);
  --ink-3: var(--color-text-tertiary);
  --rule: var(--color-separator-border);
  --needs: #f59e0b;                 /* the blob's needs-you dot, as in the app */
  --wide: 1120px;
  --measure: 620px;
  --gutter: 24px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --plate: var(--color-neutral-900); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
code, kbd { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 0.88em; }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
/* Colour transitions sit on :hover only, so a style that resolves while the sheets load never animates from the UA's
   link blue (seen in the offscreen frames); leaving hover snaps back, which reads as quick, not broken. */
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-color: currentColor; transition: text-decoration-color 150ms ease; } }
:focus-visible { outline: 2px solid var(--color-border-focus-ring); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: var(--gutter); top: -48px; z-index: 10; padding: 8px 12px; border-radius: var(--radius-2lg);
        background: var(--color-background-primary-default); border: 1px solid var(--color-border-button-default); }
.skip:focus { top: 12px; }

/* ---- Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
         text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.top nav a:not(.btn) { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .top nav a:not(.btn):hover { color: var(--ink); transition: color 150ms ease; } }

/* ---- Buttons (BoardUI Button: primary = the accent gradient with a cross-faded hover layer; secondary = primary
   surface, button border, shadow-xs; press = scale .98) */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       height: 40px; padding: 0 16px; border-radius: var(--radius-2lg); font-size: 15px; font-weight: 500; line-height: 1;
       white-space: nowrap; text-decoration: none; border: 1px solid var(--color-border-button-default);
       background: var(--color-background-primary-default); color: var(--ink); box-shadow: var(--shadow-xs);
       transition: transform 160ms var(--ease-out); }
.btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--color-background-primary-hover); border-color: var(--color-border-button-hover);
               transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
}
.btn.primary { background: var(--gradient-button-primary-default); color: var(--color-text-white); border-color: transparent; }
.btn.primary::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
                       background: var(--gradient-button-primary-hover); transition: opacity 150ms ease; }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover::before { opacity: 1; } }
.btn.small { height: 32px; padding: 0 12px; font-size: 14px; }

/* ---- State chips (BoardUI Chip, free recipe; a Pro layer may restyle .tchip) */
.tchip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: var(--radius-md);
         border: 1px solid var(--color-border-button-default); background: var(--color-background-primary-default);
         color: var(--ink-2); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.15px; white-space: nowrap;
         vertical-align: middle; }
.tchip i { width: 6px; height: 6px; border-radius: 9999px; background: var(--ink-3); flex: none; }
.tchip.working i { background: var(--color-accent-500); }
.tchip.needs i { background: var(--needs); }
.tchip.ready i { background: var(--color-green-500); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
/* The chips only show states; they never react to the pointer, and no Pro transition may animate them in on load. */
.tchip { pointer-events: none; }
html[data-bui-pro] body .tchip { transition-property: none; }

/* ---- Hero */
.hero { padding: 72px 0 0; }
.hero h1 { max-width: 16em; font-size: clamp(40px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.032em; font-weight: 600; }
.lede { max-width: var(--measure); margin-top: 24px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.hero .plate { margin-top: 64px; }

/* ---- Media plates: a quiet secondary surface with a hairline; the frame sits in it edge to edge */
.plate { position: relative; overflow: hidden; border-radius: var(--radius-2xl); background: var(--plate);
         box-shadow: 0 0 0 1px var(--rule), var(--shadow-dropdown); }
.plate img, .plate video { width: 100%; }
.plate.inset { display: flex; align-items: center; justify-content: center; padding: 32px; }
.plate.inset img { width: auto; max-width: 100%; border-radius: var(--radius-xl); }
figure figcaption { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--ink-2); max-width: var(--measure); }

/* ---- Sections */
main > section { padding-top: 128px; }
.head { max-width: var(--measure); }
h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.022em; font-weight: 600; }
.head p { margin-top: 16px; color: var(--ink-2); }
.head p + p { margin-top: 12px; }
.head + figure { margin-top: 48px; }
h3 { font-size: 20px; line-height: 28px; letter-spacing: -0.012em; font-weight: 600; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 64px; }
.pair p, .cols p { margin-top: 8px; color: var(--ink-2); }
.pair p + p, .cols p + p { margin-top: 12px; }
.more { margin-top: 16px; font-size: 15px; }

/* How it works: four steps on one hairline */
.steps { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
         counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step); display: block; margin-bottom: 12px; font-size: 13px; line-height: 18px;
                    font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 17px; line-height: 24px; }
.steps p { margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--ink-2); }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.cols > div { padding-top: 20px; border-top: 1px solid var(--rule); }
.soon { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); max-width: var(--measure); font-size: 15px;
        line-height: 22px; color: var(--ink-2); }
.soon .tchip { margin-right: 8px; }

/* Closing call to action: one plate, one button */
.beta { margin-top: 128px; padding: 64px; border-radius: var(--radius-3xl); background: var(--plate);
        box-shadow: 0 0 0 1px var(--rule); }
.beta p { max-width: var(--measure); margin-top: 16px; color: var(--ink-2); }
.beta .actions { margin-top: 32px; }
.beta .fine { max-width: var(--measure); }

/* ---- Footer */
footer { margin-top: 96px; border-top: 1px solid var(--rule); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
               padding-top: 32px; padding-bottom: 48px; font-size: 14px; color: var(--ink-2); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { footer a:hover { color: var(--ink); transition: color 150ms ease; } }
footer .brand { color: var(--ink-2); font-size: 14px; font-weight: 500; gap: 8px; }
footer .brand img { width: 20px; height: 20px; }

/* ---- Privacy page (same parts, a reading column) */
.doc { max-width: 680px; padding: 72px 0 0; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.doc h2 { margin: 56px 0 12px; font-size: 22px; line-height: 30px; letter-spacing: -0.012em; scroll-margin-top: 24px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-top: 12px; }
.doc p strong, .doc li strong { color: var(--ink); font-weight: 600; }
.doc ul { margin-top: 12px; padding-left: 20px; }
.doc li { margin: 6px 0; }
.draft { margin-top: 24px; padding: 12px 16px; border-radius: var(--radius-xl); background: var(--plate);
         box-shadow: 0 0 0 1px var(--rule); font-size: 15px; line-height: 22px; color: var(--ink-2); }
.todo { padding: 1px 6px; border-radius: var(--radius-sm); font-size: 0.92em;
        background: color-mix(in srgb, var(--color-amber-400) 22%, transparent); color: var(--color-amber-700); }
@media (prefers-color-scheme: dark) { .todo { color: var(--color-amber-300); } }
.table { margin-top: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; color: var(--ink); }
td { color: var(--ink-2); }
td:first-child { white-space: nowrap; color: var(--ink); }

/* ---- Narrow screens */
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; line-height: 1.6; }
  .top { height: 64px; }
  .top nav { gap: 16px; }
  .hero { padding-top: 40px; }
  .lede { font-size: 18px; }
  .hero .plate { margin-top: 40px; }
  main > section { padding-top: 88px; }
  .head + figure { margin-top: 32px; }
  .pair, .cols { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .plate { border-radius: var(--radius-xl); }
  .plate.inset { padding: 20px; }
  .beta { margin-top: 88px; padding: 32px 20px; border-radius: var(--radius-2xl); }
  .doc { padding-top: 40px; }
  .doc h2 { margin-top: 44px; }
  table { font-size: 14px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn.primary::before, a { transition: none; }
  .btn:active { transform: none; }
}
