/* DynaBuddy site. Oat felt under dabs of impressionist color. The island stays black and its eyes stay cyan. */
:root {
  --felt: #d9ceb9;
  --patch: #e6dcc9;
  --p-blue: #cfd7dc;
  --p-sage: #d3dcc7;
  --p-lilac: #ddd2dd;
  --p-peach: #ecd3bf;
  --p-ochre: #e6dcae;
  --ink: #2a2240;
  --muted: #483e59;
  --link: #8a3f22;
  --link-hover: #6a2c16;
  --sage-ink: #3a5640;
  --blue-ink: #3a5a82;
  --stitch: rgba(42, 34, 64, 0.38);
  --line: rgba(42, 34, 64, 0.2);
  --eye: #6bedff;
  --island: #050506;
  --island-text: #f3eefb;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(60% 9% at 12% 3%, rgba(143, 168, 196, 0.42), transparent 72%),
    radial-gradient(48% 8% at 88% 11%, rgba(232, 169, 138, 0.36), transparent 72%),
    radial-gradient(55% 10% at 20% 46%, rgba(185, 163, 201, 0.34), transparent 72%),
    radial-gradient(50% 9% at 85% 70%, rgba(217, 184, 106, 0.3), transparent 72%),
    radial-gradient(70% 10% at 40% 98%, rgba(157, 179, 154, 0.42), transparent 72%),
    var(--felt);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
::selection { background: rgba(232, 169, 138, 0.6); color: var(--ink); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: -0.01em; }

/* ---- Painting and felt layers ---- */
.paint { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* Wool grain and fibers, generated by noise filters so no image files ship. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.62;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='g' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .15  0 0 0 0 .1  1.25 0 0 0 -.5'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='380' height='380'><filter id='f' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.014 .5' numOctaves='2' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .96  0 0 0 0 .88  1.6 0 0 0 -.78'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='440' height='440'><filter id='h' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.45 .016' numOctaves='2' seed='21' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .22  0 0 0 0 .16  1.5 0 0 0 -.75'/></filter><rect width='100%25' height='100%25' filter='url(%23h)'/></svg>");
  background-size: 320px 320px, 380px 380px, 440px 440px;
}
header, main, footer { position: relative; z-index: 2; }

/* ---- The island, hanging from the top edge ---- */
.island-dock {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.island {
  pointer-events: auto;
  position: relative;
  width: 168px;
  height: 40px;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--island-text);
  background: linear-gradient(var(--island), #0d0d10);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 26px rgba(42, 34, 64, 0.32), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  transition: width 420ms cubic-bezier(.2, 1.4, .4, 1), height 420ms cubic-bezier(.2, 1.4, .4, 1), border-radius 420ms;
  overflow: hidden;
}
/* The flared shoulders where it meets the top edge. */
.island::before, .island::after {
  content: "";
  position: absolute;
  top: 0;
  width: 9px;
  height: 9px;
  background: radial-gradient(circle at 0 100%, transparent 8.5px, var(--island) 9px);
}
.island::before { left: -9px; transform: scaleX(-1); }
.island::after { right: -9px; }
.island:hover { width: 214px; height: 46px; }
.island[aria-expanded="true"] { width: min(440px, 92vw); height: 150px; border-radius: 0 0 30px 30px; cursor: default; }
#face { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 300px; height: 80px; }
.island-menu {
  position: absolute;
  inset: 70px 18px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-content: center;
  opacity: 0;
  transition: opacity 200ms 120ms;
}
.island[aria-expanded="true"] .island-menu { opacity: 1; }
.island:not([aria-expanded="true"]) .island-menu { visibility: hidden; }
.island-menu a {
  font: 600 0.88rem/1 var(--body);
  color: var(--island-text);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}
.island-menu a:hover { background: rgba(107, 237, 255, 0.16); color: var(--eye); }
.island :focus-visible, .island-menu a:focus-visible { outline-color: var(--eye); }
.island-speech {
  margin: 10px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #121216;
  color: var(--island-text);
  font: 600 0.85rem/1.3 var(--body);
  box-shadow: 0 6px 18px rgba(42, 34, 64, 0.3);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms, transform 200ms;
}
.island-speech.show { opacity: 1; transform: none; }

/* ---- Hero ---- */
.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(9rem, 22vh, 13rem) 24px 5rem;
  text-align: center;
}
.kicker {
  margin: 0 0 1rem;
  font: 500 0.82rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
}
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; }
h1 {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  max-width: 40rem;
  margin: 1.6rem auto 2.4rem;
  font-size: 1.16rem;
  color: var(--muted);
  text-wrap: pretty;
}
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
/* Felt patches: a soft body with a stitched edge sewn just inside it. */
.button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 250px;
  padding: 14px 22px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  background: var(--patch);
  box-shadow: 0 8px 16px rgba(60, 45, 30, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  outline: 1.5px dashed var(--stitch);
  outline-offset: -6px;
  transition: transform 180ms, box-shadow 180ms;
}
.button:hover { transform: translateY(-2px) rotate(-0.4deg); color: var(--ink); box-shadow: 0 12px 22px rgba(60, 45, 30, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.button.primary { background: var(--ink); color: #f6f0e4; outline-color: rgba(107, 237, 255, 0.7); box-shadow: 0 10px 22px rgba(42, 34, 64, 0.3); }
.button.primary:hover { color: #fff; box-shadow: 0 14px 26px rgba(42, 34, 64, 0.38); }
.button.primary .button-title { color: var(--eye); }
.button:focus-visible, .doc-more a:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; }
.button.primary:focus-visible { outline-color: var(--eye); outline-offset: 4px; box-shadow: 0 0 0 3px var(--ink), 0 10px 22px rgba(42, 34, 64, 0.3); }
.button-title { font: 700 1.1rem/1.2 var(--display); }
.button-note { font-size: 0.84rem; opacity: 0.8; }
.version { margin-top: 1.4rem; font-size: 0.92rem; color: var(--muted); }

/* ---- Sections ---- */
main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 5rem 0; border-top: 1.5px dashed var(--stitch); }
h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 750;
  font-stretch: 85%;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.section-lede { max-width: 42rem; color: var(--muted); margin: 0.9rem 0 2.4rem; }

.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.tool-list li {
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: var(--patch);
  box-shadow: 0 8px 16px rgba(60, 45, 30, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  outline: 1.5px dashed var(--stitch);
  outline-offset: -8px;
}
.tool-list li:nth-child(5n + 1) { background: var(--p-blue); }
.tool-list li:nth-child(5n + 2) { background: var(--p-sage); }
.tool-list li:nth-child(5n + 3) { background: var(--p-lilac); }
.tool-list li:nth-child(5n + 4) { background: var(--p-peach); }
.tool-list li:nth-child(5n + 5) { background: var(--p-ochre); }
.tool-list h3 { margin: 0 0 0.4rem; font-size: 1.3rem; font-weight: 700; }
.tool-list p { margin: 0; font-size: 0.97rem; color: var(--muted); }
.where { display: flex; gap: 6px; margin-top: 0.9rem !important; }
.where span {
  font: 500 0.72rem/1 var(--mono);
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px dashed var(--stitch);
  color: var(--muted);
}
.where .on { border: 1px solid var(--sage-ink); color: var(--sage-ink); background: rgba(255, 255, 255, 0.3); }

.look-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 26px 18px;
}
.look-grid li { text-align: center; }
.look-grid img { width: 100%; max-width: 200px; height: auto; display: block; margin: 0 auto 6px; transition: transform 300ms cubic-bezier(.2, 1.6, .4, 1); }
.look-grid li:hover img { transform: translateY(-4px) rotate(-1.5deg) scale(1.04); }
.look-grid span { display: block; font: 700 1.05rem/1.2 var(--display); }
.look-grid small { color: var(--muted); font-size: 0.82rem; }

.install-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.install-card {
  padding: 26px;
  border-radius: 22px;
  background: var(--p-blue);
  box-shadow: 0 8px 16px rgba(60, 45, 30, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  outline: 1.5px dashed var(--stitch);
  outline-offset: -8px;
}
.install-card:nth-child(2) { background: var(--p-lilac); }
.install-card h3 { margin: 0 0 0.8rem; font-size: 1.5rem; }
.install-card ol { margin: 0; padding-left: 1.3rem; }
.install-card li { margin-bottom: 0.55rem; }
.install-card li::marker { font-family: var(--mono); color: var(--link); }
.note { margin: 1rem 0 0; font-size: 0.9rem; color: var(--muted); }
.beta { display: inline-block; vertical-align: middle; margin-left: 0.4rem; padding: 0.1rem 0.55rem; border: 1px solid var(--link); border-radius: 999px; color: var(--link); font: 600 0.75rem/1.4 var(--body); letter-spacing: 0.04em; text-transform: uppercase; }

.changelog { display: grid; gap: 22px; }
.release { display: grid; grid-template-columns: 7.5rem 1fr; gap: 18px; }
.release h3 { margin: 0; font: 500 1rem/1.6 var(--mono); color: var(--link); }
.release ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.release li { margin-bottom: 0.3rem; }

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 24px 5rem;
  border-top: 1.5px dashed var(--stitch);
  color: var(--muted);
  font-size: 0.95rem;
}
footer p { max-width: 46rem; }
.fine { font-size: 0.86rem; }

/* ---- Footer legal links ---- */
.legal-links { margin: 0 0 0.6rem; font-size: 0.92rem; }
.legal-links a { white-space: nowrap; }

/* ---- Legal pages: Privacy, Terms, Security ---- */
.doc-bar {
  max-width: 46rem;
  margin: 0 auto;
  padding: 22px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.doc-home { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.1rem/1 var(--display); }
.doc-home:hover { color: var(--link); }
.doc-home img { border-radius: 9px; }
.doc-switch { display: flex; gap: 6px; }
.doc-switch a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font: 600 0.88rem/1 var(--body);
  border: 1.5px solid transparent;
}
.doc-switch a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.4); }
.doc-switch a[aria-current="page"] { color: var(--link); border: 1.5px dashed var(--link); }

.doc { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 8vh, 5rem) 24px 4rem; animation: doc-in 520ms cubic-bezier(.2, .8, .2, 1) both; }
.doc h1 { max-width: none; margin: 0; font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: 1; }
.doc-meta { margin: 1.3rem 0 0; font: 500 0.82rem/1.4 var(--mono); color: var(--muted); }
.doc-summary {
  margin: 2rem 0 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--p-sage);
  box-shadow: 0 8px 16px rgba(60, 45, 30, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  outline: 1.5px dashed var(--stitch);
  outline-offset: -7px;
}
.doc-summary p { margin: 0; color: var(--ink); }
.doc-block { margin-top: 2.6rem; }
.doc h2 { font-size: clamp(1.4rem, 3.4vw, 1.75rem); font-weight: 700; font-stretch: 90%; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 0.7rem; }
.doc h3 { margin: 1.4rem 0 0.2rem; font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.doc p { margin: 0 0 0.9rem; color: var(--muted); }
.doc p b { color: var(--ink); }
.doc ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.doc li { margin-bottom: 0.55rem; }
.doc li::marker { color: var(--link); }
.doc-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 3.2rem; padding-top: 2rem; border-top: 1.5px dashed var(--stitch); }
.doc-more a {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--patch);
  color: var(--ink);
  text-decoration: none;
  font: 600 0.92rem/1 var(--body);
  box-shadow: 0 5px 10px rgba(60, 45, 30, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  outline: 1.5px dashed var(--stitch);
  outline-offset: -5px;
  transition: transform 160ms;
}
.doc-more a:hover { transform: translateY(-2px) rotate(-0.4deg); color: var(--ink); }
.doc-page footer { max-width: 46rem; }
@keyframes doc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .hero { padding-top: 8rem; }
  .button { min-width: 100%; }
  .release { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .island, .look-grid img, .button, .island-speech, .doc-more a { transition: none; }
  .doc { animation: none; }
}
