/* Landing-page layout only. Every component below is real Squircle. */
      :root {
        --site-max: 1180px;
        --site-gold: #ae9d5d;
        --site-gold-soft: rgba(174, 157, 93, 0.14);
        --site-line: var(--sq-color-border, rgba(255, 255, 255, 0.1));
        --site-ink: var(--sq-color-text-primary, #eef1f7);
        --site-muted: var(--sq-color-text-secondary, #9aa6bd);
        --site-surface: var(--sq-color-surface, #0d1628);
        --site-raised: var(--sq-color-surface-elevated, #131e34);
      }
      * {
        box-sizing: border-box;
      }
      html {
        scroll-behavior: smooth;
      }
      body {
        margin: 0;
      }
      a {
        color: inherit;
      }
      .wrap {
        width: min(100% - 2.5rem, var(--site-max));
        margin-inline: auto;
      }
      .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        font: 600 0.72rem/1 var(--sq-font-mono, ui-monospace, monospace);
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--site-gold);
        background: var(--site-gold-soft);
        border: 1px solid rgba(174, 157, 93, 0.35);
        padding: 0.55rem 0.85rem;
        border-radius: 999px;
      }
      .eyebrow .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #35d07f;
        box-shadow: 0 0 12px #35d07f;
      }

      /* nav */
      .nav {
        position: sticky;
        top: 0;
        z-index: 50;
        backdrop-filter: blur(18px);
        background: color-mix(
          in srgb,
          var(--sq-color-background, #070d1a) 82%,
          transparent
        );
        border-bottom: 1px solid var(--site-line);
      }
      .nav__in {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        min-height: 68px;
        flex-wrap: wrap;
        padding-block: 0.5rem;
      }
      .nav__links {
        flex-wrap: wrap;
        row-gap: 0.4rem;
      }
      /* mobile: comfortable tap targets + wrapping demo tabs */
      @media (max-width: 47.99rem) {
        .nav__links a {
          padding: 0.45rem 0.2rem;
        }
        .brand small {
          display: none;
        }
      }
      .sq-tablist {
        flex-wrap: wrap;
      }
      .brand {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        text-decoration: none;
        font-weight: 700;
        letter-spacing: -0.02em;
        font-size: 1.1rem;
      }
      .brand img {
        width: 30px;
        height: 30px;
        border-radius: 8px;
      }
      .brand small {
        font:
          500 0.65rem/1 ui-monospace,
          monospace;
        color: var(--site-gold);
        border: 1px solid var(--site-line);
        padding: 0.2rem 0.35rem;
        border-radius: 5px;
        margin-left: 0.1rem;
      }
      .nav__links {
        display: flex;
        gap: 1.4rem;
        margin-left: auto;
        font-size: 0.88rem;
      }
      .nav__links a {
        color: var(--site-muted);
        text-decoration: none;
      }
      .nav__links a:hover {
        color: var(--site-ink);
      }
      @media (max-width: 760px) {
        .nav__links {
          display: none;
        }
      }

      /* hero */
      .hero {
        text-align: center;
        padding: clamp(4rem, 10vw, 8rem) 0 3rem;
      }
      .hero-logo {
        width: 96px;
        height: 96px;
        margin: 0 auto 1.8rem;
        display: block;
        border-radius: 26px;
      }
      @supports (corner-shape: squircle) {
        .hero-logo {
          corner-shape: squircle;
        }
      }
      .hero h1 {
        font-size: clamp(2.6rem, 6.4vw, 5.1rem);
        line-height: 1.03;
        letter-spacing: -0.05em;
        font-weight: 760;
        margin: 1.6rem auto 1.3rem;
        max-width: 16ch;
      }
      .hero h1 em {
        font-style: normal;
        color: var(--site-gold);
      }
      .hero p.lead {
        max-width: 60ch;
        margin: 0 auto 2rem;
        font-size: clamp(1rem, 1.6vw, 1.22rem);
        color: var(--site-muted);
        line-height: 1.7;
      }
      .cta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
      }
      .cta .sq-button {
        padding-inline: 1.3rem;
        min-height: 46px;
      }
      .install {
        margin: 2rem auto 0;
        max-width: 480px;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: var(--site-raised);
        border: 1px solid var(--site-line);
        border-radius: 12px;
        padding: 0.55rem 0.55rem 0.55rem 1rem;
        font:
          500 0.86rem/1.4 ui-monospace,
          monospace;
        color: var(--site-ink);
      }
      .install code {
        flex: 1;
        text-align: left;
        overflow-x: auto;
        white-space: nowrap;
      }
      .install .prompt {
        color: var(--site-gold);
        user-select: none;
      }
      .copy {
        flex: none;
        font:
          600 0.7rem/1 ui-monospace,
          monospace;
        letter-spacing: 0.06em;
      }

      /* window mockup */
      .showcase {
        padding: 2.5rem 0 1rem;
      }
      .window {
        border: 1px solid var(--site-line);
        border-radius: 16px;
        overflow: hidden;
        background: var(--site-surface);
        box-shadow:
          0 40px 90px -40px rgba(0, 0, 0, 0.8),
          0 0 0 1px rgba(174, 157, 93, 0.06);
      }
      .window__bar {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid var(--site-line);
        background: var(--site-raised);
      }
      .window__bar i {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #3c4964;
        display: block;
      }
      .window__bar i:first-child {
        background: #e07171;
      }
      .window__bar i:nth-child(2) {
        background: #d8b45f;
      }
      .window__bar i:nth-child(3) {
        background: #5fbf87;
      }
      .window__bar span {
        margin-left: 0.8rem;
        font:
          500 0.72rem/1 ui-monospace,
          monospace;
        color: var(--site-muted);
      }
      .preview {
        padding: clamp(1.25rem, 3vw, 2.25rem);
      }
      .preview__top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
      }
      .preview__top h3 {
        margin: 0 0 0.3rem;
        font-size: 1.15rem;
        letter-spacing: -0.02em;
      }
      .metrics {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
        gap: 0.85rem;
        margin-bottom: 1.1rem;
      }
      .metric {
        border: 1px solid var(--site-line);
        border-radius: 12px;
        padding: 1rem;
        background: var(--site-raised);
      }
      .metric b {
        display: block;
        font-size: 1.7rem;
        letter-spacing: -0.04em;
        line-height: 1;
        margin-bottom: 0.4rem;
      }
      .metric span {
        font-size: 0.74rem;
        color: var(--site-muted);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: 600;
      }

      /* generic sections */
      section.band {
        padding: clamp(3.5rem, 8vw, 6.5rem) 0;
        border-top: 1px solid var(--site-line);
      }
      .head {
        max-width: 62ch;
        margin-bottom: 2.5rem;
      }
      .head h2 {
        font-size: clamp(1.9rem, 3.6vw, 2.9rem);
        letter-spacing: -0.04em;
        line-height: 1.1;
        margin: 0.9rem 0 0.8rem;
      }
      .head p {
        color: var(--site-muted);
        line-height: 1.7;
        font-size: 1.02rem;
        margin: 0;
      }
      .grid-4 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
        gap: 1rem;
      }
      .feature {
        border: 1px solid var(--site-line);
        border-radius: 14px;
        padding: 1.5rem;
        background: linear-gradient(160deg, var(--site-raised), transparent);
      }
      .feature__icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        background: var(--site-gold-soft);
        border: 1px solid rgba(174, 157, 93, 0.3);
        color: var(--site-gold);
        font-size: 1.1rem;
        margin-bottom: 1rem;
      }
      .feature h3 {
        margin: 0 0 0.45rem;
        font-size: 1.02rem;
        letter-spacing: -0.01em;
      }
      .feature p {
        margin: 0;
        color: var(--site-muted);
        font-size: 0.9rem;
        line-height: 1.65;
      }

      /* gallery */
      .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
        gap: 1rem;
      }
      .demo {
        border: 1px solid var(--site-line);
        border-radius: 14px;
        background: var(--site-surface);
        overflow: hidden;
      }
      .demo__cap {
        padding: 0.7rem 1rem;
        border-bottom: 1px solid var(--site-line);
        font:
          600 0.7rem/1 ui-monospace,
          monospace;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--site-muted);
      }
      .demo__body {
        padding: 1.25rem;
      }
      .demo__body > * + * {
        margin-top: 1rem;
      }
      .row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        align-items: center;
      }

      /* playground */
      .play {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        border: 1px solid var(--site-line);
        border-radius: 14px;
        overflow: hidden;
        background: var(--site-line);
      }
      @media (max-width: 860px) {
        .play {
          grid-template-columns: 1fr;
        }
      }
      .play__pane {
        background: var(--site-surface);
        display: flex;
        flex-direction: column;
        min-width: 0;
      }
      .play__bar {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        padding: 0.65rem 0.85rem;
        border-bottom: 1px solid var(--site-line);
      }
      .play__bar strong {
        font:
          600 0.7rem/1 ui-monospace,
          monospace;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--site-muted);
        margin-right: auto;
      }
      .chip {
        font:
          600 0.7rem/1 ui-monospace,
          monospace;
        padding: 0.4rem 0.6rem;
        border-radius: 7px;
        border: 1px solid var(--site-line);
        background: transparent;
        color: var(--site-muted);
        cursor: pointer;
      }
      .chip:hover,
      .chip[aria-pressed="true"] {
        color: var(--site-ink);
        border-color: var(--site-gold);
        background: var(--site-gold-soft);
      }
      #pg-code {
        flex: 1;
        min-height: min(78vh, 880px);
        width: 100%;
        resize: vertical;
        border: 0;
        outline: 0;
        padding: 1.1rem;
        background: #070d1a;
        color: #cfe0ff;
        font:
          500 0.82rem/1.7 ui-monospace,
          SFMono-Regular,
          monospace;
        tab-size: 2;
      }
      #pg-preview {
        flex: 1;
        min-height: min(78vh, 880px);
        width: 100%;
        border: 0;
        background: #070d1a;
        display: block;
      }
      .play__hint {
        padding: 0.55rem 0.85rem;
        border-top: 1px solid var(--site-line);
        color: var(--site-muted);
        font-size: 0.76rem;
      }

      /* comparison */
      .compare {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
      }
      .compare th,
      .compare td {
        text-align: left;
        padding: 0.9rem 1rem;
        border-bottom: 1px solid var(--site-line);
        vertical-align: top;
      }
      .compare thead th {
        font:
          600 0.72rem/1 ui-monospace,
          monospace;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        color: var(--site-muted);
      }
      .compare tbody th {
        font-weight: 650;
        white-space: nowrap;
      }
      .compare td {
        color: var(--site-muted);
      }
      .compare .yes {
        color: #6fd7a0;
      }
      .compare .no {
        color: #c97878;
      }
      .scroll {
        overflow-x: auto;
        border: 1px solid var(--site-line);
        border-radius: 14px;
      }

      .stance {
        margin-top: 1.5rem;
        border: 1px solid rgba(174, 157, 93, 0.3);
        background: linear-gradient(
          120deg,
          var(--site-gold-soft),
          transparent 70%
        );
        border-radius: 14px;
        padding: 1.5rem 1.7rem;
      }
      .stance h3 {
        margin: 0 0 0.5rem;
        font-size: 1.1rem;
      }
      .stance p {
        margin: 0;
        color: var(--site-muted);
        line-height: 1.7;
      }

      /* roadmap */
      .road {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
        gap: 1rem;
      }
      .road__col {
        border: 1px solid var(--site-line);
        border-radius: 14px;
        padding: 1.4rem;
      }
      .road__col h3 {
        margin: 0 0 1rem;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }
      .road__col h3 b {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--site-gold);
        display: inline-block;
      }
      .road__col ul {
        margin: 0;
        padding-left: 1.1rem;
        color: var(--site-muted);
        font-size: 0.89rem;
        line-height: 1.9;
      }
      .road__col ul li::marker {
        color: var(--site-gold);
      }

      /* footer */
      .end {
        text-align: center;
        padding: clamp(4rem, 9vw, 7rem) 0 3rem;
      }
      .end h2 {
        font-size: clamp(2rem, 5vw, 3.4rem);
        letter-spacing: -0.045em;
        margin: 0 0 1rem;
      }
      .end p {
        color: var(--site-muted);
        max-width: 52ch;
        margin: 0 auto 1.8rem;
        line-height: 1.7;
      }
      footer {
        border-top: 1px solid var(--site-line);
        padding: 2rem 0;
        color: var(--site-muted);
        font-size: 0.85rem;
      }
      footer .fin {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
      }
      footer .fin span:last-child {
        margin-left: auto;
      }
      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }
      }
/*
 * Docs + landing extras for the non-Squircle sites.
 * Everything above this line is the Squircle site's own stylesheet, copied
 * verbatim. The rules below exist only because those sites have docs pages
 * and hero logos; they reuse the same tokens and shapes.
 */

/* hero logo (the Squircle site has no logo image in its hero) */
.hero__logo {
  width: clamp(72px, 9vw, 96px);
  height: auto;
  margin: 0 auto 1.6rem;
  display: block;
  border-radius: 24px;
}
@supports (corner-shape: squircle) {
  .hero__logo {
    corner-shape: squircle;
  }
}

/* long install commands wrap instead of scrolling inside the box */
.install code {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ---------- docs pages ---------- */
.docs {
  padding: 2.5rem 0 clamp(3.5rem, 8vw, 6.5rem);
}
.docs__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 64rem) {
  .docs__grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 3rem;
  }
}
.docs__aside {
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: var(--site-surface);
  padding: 1.4rem;
  position: sticky;
  top: 5.5rem;
}
@media (max-width: 63.99rem) {
  .docs__aside {
    position: static;
  }
}
.docs__aside strong {
  display: block;
  margin-bottom: 0.75rem;
  font:
    600 0.7rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--site-muted);
}
.docs__aside nav {
  display: grid;
  gap: 0.15rem;
}
.docs__aside a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: var(--site-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.docs__aside a:hover {
  color: var(--site-ink);
  background: var(--site-raised);
}
.docs__aside a[aria-current="page"] {
  color: var(--site-ink);
  background: var(--site-raised);
  box-shadow: inset 0 0 0 1px var(--site-line);
}

/* article body — same type scale as .head */
.article {
  min-width: 0;
}
.article h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0.9rem 0 0.8rem;
}
.article h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-block: 2.4rem 0.8rem;
  scroll-margin-top: 6rem;
}
.article h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-block: 1.8rem 0.6rem;
  scroll-margin-top: 6rem;
}
.article h4 {
  margin-block: 1.4rem 0.5rem;
  scroll-margin-top: 6rem;
}
.article > * + * {
  margin-block-start: 1rem;
}
.article p,
.article li {
  color: var(--site-muted);
  line-height: 1.75;
}
.article strong {
  color: var(--site-ink);
}
.article a {
  color: var(--sq-color-link, #4dd2ff);
}
.article ul,
.article ol {
  padding-inline-start: 1.4rem;
}
.article li + li {
  margin-block-start: 0.35rem;
}
/* blockquotes read as .stance callouts */
.article blockquote {
  margin: 1.4rem 0;
  padding: 1.5rem 1.7rem;
  border: 1px solid rgba(174, 157, 93, 0.3);
  background: linear-gradient(
    120deg,
    var(--site-gold-soft),
    transparent 70%
  );
  border-radius: 14px;
}
.article blockquote p {
  margin: 0;
  color: var(--site-ink);
}
.article img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--site-line);
}
.article hr {
  border: 0;
  border-top: 1px solid var(--site-line);
  margin: 2.4rem 0;
}

/* code blocks read exactly like the playground editor */
.article pre {
  background: #070d1a;
  color: #cfe0ff;
  border: 1px solid var(--site-line);
  border-radius: 14px;
  padding: 1.1rem;
  margin: 1.25rem 0;
  overflow-x: auto;
  font:
    500 0.82rem/1.7 ui-monospace,
    SFMono-Regular,
    monospace;
  tab-size: 2;
}
.article pre code {
  background: none;
  border: 0;
  padding: 0;
  white-space: inherit;
}

/* tables read exactly like the .compare table on the Squircle site */
.article .sq-table-scroll {
  border: 1px solid var(--site-line);
  border-radius: 14px;
  overflow-x: auto;
  margin: 1.25rem 0;
  background: var(--site-surface);
}
.article table.sq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 0;
}
.article table.sq-table th,
.article table.sq-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--site-line);
  vertical-align: top;
}
.article table.sq-table thead th {
  font:
    600 0.72rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--site-muted);
}
.article table.sq-table tbody th {
  font-weight: 650;
}
.article table.sq-table td {
  color: var(--site-muted);
}
.article table.sq-table tr:last-child th,
.article table.sq-table tr:last-child td {
  border-bottom: 0;
}

/* screenshots in window frames */
.shot {
  margin: 1.25rem 0;
}
.shot figcaption {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--site-line);
  color: var(--site-muted);
  font-size: 0.76rem;
}

/* ---------- overflow safety ---------- */
pre {
  max-width: 100%;
}
.sq-code {
  white-space: normal;
  overflow-wrap: anywhere;
}
main :is(p, h1, h2, h3, h4, h5, h6, li, dd, dt, figcaption, a, em, strong) {
  overflow-wrap: anywhere;
}
main img,
main svg,
main video {
  max-width: 100%;
}
html,
body {
  overflow-x: clip;
}

/* ---------- centered layout: every section, every site ---------- */
.nav__in {
  justify-content: center;
}
.nav__links {
  margin-left: 0;
  justify-content: center;
}
section.band .wrap,
.end .wrap {
  text-align: center;
}
.head {
  margin-inline: auto;
  text-align: center;
}
.grid-4 {
  text-align: center;
}
.feature__icon {
  margin-inline: auto;
}
.gallery {
  text-align: center;
}
.demo__cap {
  text-align: center;
}
.stance {
  margin-inline: auto;
  text-align: center;
}
.road {
  text-align: center;
}
.road__col ul {
  list-style-position: inside;
  padding-inline-start: 0;
}
.scroll {
  margin-inline: auto;
}
footer .fin {
  justify-content: center;
  text-align: center;
}
footer .fin span:last-child {
  margin-left: 0;
}

/* docs pages: centered reading, code and tables stay left inside their blocks */
.docs__aside {
  text-align: center;
}
.docs__aside nav a {
  text-align: center;
}
.article {
  text-align: center;
}
.article p,
.article li,
.article dd,
.article dt {
  margin-inline: auto;
  max-width: 70ch;
}
.article ul,
.article ol {
  list-style-position: inside;
  padding-inline-start: 0;
  margin-inline: auto;
  max-width: 70ch;
}
.article blockquote {
  text-align: center;
}
.article pre,
.article .sq-table-scroll,
.shot {
  margin-inline: auto;
  text-align: left;
}
.article table.sq-table {
  text-align: left;
}

/* ---------- timeline (ecosystem homepage) ---------- */
.timeline {
  max-width: 46rem;
  margin-inline: auto;
}
.timeline__row {
  padding: 1.1rem 0.5rem;
  border-top: 1px solid var(--site-line);
  text-align: center;
}
.timeline__row:last-child {
  border-bottom: 1px solid var(--site-line);
}
.timeline__date {
  display: block;
  margin-block-end: 0.4rem;
  font:
    600 0.72rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--site-gold);
}
.timeline__event {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.65;
}
.timeline__event strong {
  color: var(--site-ink);
}

/* the framework caps every <p> at --sq-font-measure — center the capped box at band level */
.wrap > p {
  margin-inline: auto;
}
.wrap > p:first-child {
  margin-block-start: 0;
}
