/* Page structure shared by both sites. Identity (fonts, colours, radius) comes from each page's :root. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem .8rem; z-index: 20; }

/* nav */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; text-decoration: none; font-size: 1.08rem; white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: 1.5rem; font-weight: 500; font-size: .98rem; }
.top nav a.plain { text-decoration: none; color: var(--muted); }
.top nav a.plain:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.15rem; border-radius: var(--btn-radius); font-weight: 600; text-decoration: none; background: var(--ink); color: var(--white); border: 2px solid var(--ink); white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--focus); border-color: var(--focus); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--white); border-color: var(--ink); }
.top .short { display: none; }

/* hero */
.hero { text-align: center; padding: 4rem 0 2.5rem; }
.hero .invite { display: inline-flex; align-items: center; gap: .55rem; font: 500 .85rem/1.3 var(--mono); color: var(--muted); border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .35rem .8rem; margin-bottom: 1.5rem; }
.hero .invite i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.04; max-width: 19ch; margin: 0 auto 1.25rem; text-wrap: balance; }
.hero p.lede { font-size: 1.2rem; color: var(--muted); margin: 0 auto 2rem; max-width: 36rem; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.hero-stage { max-width: 62rem; margin: 0 auto 3.5rem; }
.hero-stage .stage { padding: clamp(.9rem, 3vw, 2.25rem); }

/* trust */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding: 1.75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust b { display: block; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.45rem; letter-spacing: var(--display-track); line-height: 1.2; }
.trust span { color: var(--muted); font-size: .95rem; }

/* sections */
section.band { padding: 5rem 0 0; }
section.band.ruled { border-top: 1px solid var(--line); padding-bottom: 5rem; margin-top: 5rem; }
section.band.ruled + section.band.ruled { margin-top: 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; margin-bottom: .75rem; max-width: 22ch; text-wrap: balance; }
p.intro { color: var(--muted); margin: 0; max-width: 34rem; font-size: 1.1rem; }

.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; }
.cells > div { padding: 1.5rem; border-left: 1px solid var(--line); }
.cells > div:first-child { border-left: 0; }
.cells h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: .5rem; }
.cells p { margin: 0; color: var(--muted); }

.feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; padding: 3rem 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.feature.flip .copy { order: 2; }
.feature .n { font-family: var(--display); font-weight: var(--display-weight); font-size: 2.4rem; line-height: 1; color: var(--accent); display: block; margin-bottom: .5rem; }
.feature h3 { font-size: 1.65rem; line-height: 1.15; margin-bottom: .6rem; }
.feature .copy p { color: var(--muted); margin: 0 0 1rem; max-width: 30rem; }
.feature ul.points { list-style: none; margin: 0; padding: 0; max-width: 30rem; }
.feature ul.points li { padding: .45rem 0 .45rem 1.4rem; position: relative; border-top: 1px solid var(--line); }
.feature ul.points li::before { content: ""; position: absolute; left: 0; top: 1rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; padding-top: 0; }
.checks li::before { content: "✓"; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ink); color: var(--white); font-size: .78rem; font-weight: 700; display: grid; place-items: center; margin-top: .15rem; }
.checks b { display: block; }
.checks span { color: var(--muted); }

pre.code { margin: 0; background: var(--white); border: 1.5px solid var(--ink); border-radius: 14px; padding: 1.25rem 1.4rem; overflow-x: auto; font: 400 .92rem/1.65 var(--mono); color: var(--ink); }
pre.code .k { color: var(--focus); font-weight: 500; }
pre.code .s { color: var(--string); }

.faq { max-width: 46rem; margin-top: 2rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 1.2rem; color: var(--muted); max-width: 40rem; }

.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; background: var(--ink); color: var(--white); border-radius: 22px; padding: 2.75rem; }
.cta h2 { color: var(--white); margin: 0 0 .4rem; max-width: none; }
.cta p { margin: 0; color: var(--on-ink-muted); }
.cta .btn { background: var(--cta); border-color: var(--cta); color: var(--ink); }
.cta .btn:hover { background: var(--white); border-color: var(--white); }

footer { margin-top: 1rem; padding: 2.5rem 0 3rem; color: var(--muted); font-size: .95rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
footer b { display: block; color: var(--ink); margin-bottom: .4rem; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: .25rem 0; }
footer a { text-decoration: none; }
footer > div:first-child a { text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .feature, .feature.flip, .split { grid-template-columns: 1fr; gap: 1.75rem; }
  .feature.flip .copy { order: 0; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells { grid-template-columns: 1fr; }
  .cells > div { border-left: 0; border-top: 1px solid var(--line); }
  .cells > div:first-child { border-top: 0; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .top nav a.plain { display: none; }
  .top .btn { padding: .55rem .9rem; font-size: .92rem; }
  .top .full { display: none; }
  .top .short { display: inline; }
  .hero { padding: 2.5rem 0 2rem; }
  .cta { padding: 1.75rem; }
  section.band { padding-top: 3.5rem; }
  section.band.ruled { padding-bottom: 3.5rem; margin-top: 3.5rem; }
  .feature { padding: 2.25rem 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .faq summary::after { transition: none; } }
