/* quikform landing: the quikform world (ink, one coral "selected" dot, Plus Jakarta Sans, 8px radii) on a white page. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #141414;
  --coral: #f04e37; /* the selected dot, nothing else */
  --muted: #595959; /* 7:1 on white */
  --line: #d9d9d6;
  --line-strong: #8a8a8a;
  --paper: #ffffff;
  --wash: #f6f6f4;
  --code-bg: #141414;
  --code-ink: #ecebe6;
  --code-dim: #9b9a94; /* 6.6:1 on code-bg */
  --code-key: #a9a79f; /* 7.4:1 on code-bg */
  --code-str: #f4f3ef;
  --radius: 8px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  font-kerning: normal;
  word-spacing: 0.04em; /* Plus Jakarta's space reads tight at text sizes */
}
::selection {
  background: #e3e3df;
  color: var(--ink);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
code,
pre {
  font-family: var(--mono);
  font-size: 0.875rem;
}
pre {
  scrollbar-color: #55544f transparent;
  scrollbar-width: thin;
}
:not(pre) > code {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  font-size: 0.85em;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.top .brand img {
  height: 30px;
  width: auto;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9375rem;
}
.top nav a {
  text-decoration: none;
}
.top nav a:hover {
  text-decoration: underline;
}
.top .lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 16px;
  font-weight: 600;
  font-size: 0.8125rem;
}

/* The radio dot: the logo's "selected" state, reused as the page's only marker */
.dot {
  --s: 18px;
  flex: none;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  border: calc(var(--s) * 0.19) solid var(--ink);
  background: radial-gradient(circle, var(--coral) 0 calc(var(--s) * 0.17), transparent calc(var(--s) * 0.17 + 0.5px));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover {
  background: #333;
  border-color: #333;
}
.btn-line:hover {
  background: var(--wash);
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover svg.arrow {
  transform: translateX(3px);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(56px, 8vw, 112px);
}
.hero h1 {
  font-size: clamp(2.375rem, 1.5rem + 3vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 22px;
  word-spacing: 0;
  text-wrap: balance;
}
.hero h1 span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}
.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  max-width: 34em;
  margin: 0 0 28px;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 28px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.facts .dot {
  --s: 14px;
}
.cmd {
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 28px;
  overflow-x: auto;
  line-height: 1.7;
}
.cmd .p {
  color: var(--code-dim);
  user-select: none;
}
.cmd .ok {
  color: var(--code-dim);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.shot {
  margin: 0;
  justify-self: center;
  width: min(100%, 340px);
}
.phone {
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 10px;
  background: var(--paper);
}
.phone img {
  border-radius: 19px;
  border: 1px solid var(--line);
}
.shot figcaption,
.note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* Sections */
section {
  padding-top: clamp(64px, 9vw, 120px);
}
section > .wrap > h2,
.h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 16px;
  text-wrap: balance;
}
.intro {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38em;
  margin: 0 0 40px;
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* How it works: radio tabs (the signature) */
.how {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: s;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.steps h3 {
  font-size: 1.125rem;
  margin: 0 0 6px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.steps h3 code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.92em;
  font-weight: 600;
}
.steps h3::before {
  content: counter(s);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 600;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.tabs {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.tabs legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tablist input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tablist label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}
.tablist label:hover {
  border-color: var(--ink);
}
.tablist .dot {
  --s: 16px;
  border-color: var(--line-strong);
  background: none;
  transition: border-color 0.15s ease-out;
}
.tablist input:checked + label {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.tablist input:checked + label .dot {
  border-color: var(--ink);
  background: radial-gradient(circle, var(--coral) 0 calc(var(--s) * 0.17), transparent calc(var(--s) * 0.17 + 0.5px));
}
.tablist input:focus-visible + label {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.panel {
  display: none;
  margin: 0;
}
.tabs:has(#t1:checked) .p1,
.tabs:has(#t2:checked) .p2,
.tabs:has(#t3:checked) .p3 {
  display: block;
  animation: in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@supports not selector(:has(*)) {
  .panel {
    display: block;
    margin-bottom: 16px;
  }
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
pre.code {
  font-size: 0.8125rem;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0;
  overflow-x: auto;
  line-height: 1.65;
  tab-size: 2;
}
pre.code .k {
  color: var(--code-key);
}
pre.code .s {
  color: var(--code-str);
}
pre.code .c,
pre.code .p {
  color: var(--code-dim);
}
pre.code .p {
  user-select: none;
}
.panel-shot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: var(--wash);
  border-radius: var(--radius);
  padding: 20px;
}
.panel-shot img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Use cases: a ruled list, not cards */
.cases {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 5vw, 72px);
}
.cases li {
  padding: 24px 0 26px;
  border-top: 1px solid var(--line);
}
.cases h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.cases p {
  margin: 0 0 10px;
  color: var(--muted);
}
.cases .fields {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
}

/* Why: htmx-style questions in a narrow column */
.why {
  max-width: 44rem;
}
.why ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.why li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.4;
  font-weight: 600;
  padding: 10px 0;
}
.why li .dot {
  --s: 14px;
  transform: translateY(1px);
}
.why p {
  font-size: 1.125rem;
  margin: 0;
  max-width: 36em;
}

/* Inside: features left, code right (PocketBase) */
.inside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.inside dl {
  margin: 0;
}
.inside dt {
  font-weight: 700;
  font-size: 1.0625rem;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.inside dd {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 1rem;
}
.inside .sticky {
  position: sticky;
  top: 24px;
}

/* Install */
.install {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.install p {
  margin: 0 0 16px;
}

/* Close */
.close {
  padding-bottom: clamp(64px, 9vw, 120px);
}
.close .box {
  border-top: 2px solid var(--ink);
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: end;
  justify-content: space-between;
}
.close .box p {
  max-width: 34em;
  margin: 8px 0 0;
  color: var(--muted);
}

footer {
  background: var(--wash);
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 0.9375rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  justify-content: space-between;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
footer .legal {
  color: var(--muted);
  max-width: 28em;
}
footer .legal img {
  height: 24px;
  width: auto;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .hero,
  .how,
  .inside,
  .install {
    grid-template-columns: minmax(0, 1fr);
  }
  .inside .sticky {
    position: static;
  }
  .shot {
    width: min(100%, 320px);
  }
}
@media (max-width: 640px) {
  .top nav a:not(.lang) {
    display: none;
  }
  .cases {
    grid-template-columns: minmax(0, 1fr);
  }
  /* both steps stay full width and readable: swipe from step 1 to step 2 */
  .panel-shot {
    display: flex;
    gap: 12px;
    padding: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .panel-shot img {
    flex: 0 0 88%;
    scroll-snap-align: center;
  }
  .tablist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .tablist label {
    flex-direction: column;
    gap: 6px;
    padding: 10px 4px;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.25;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  pre.code,
  .cmd {
    font-size: 0.75rem;
    padding: 16px;
  }
  /* code keeps its shape and scrolls sideways, with an edge glow while more is hidden */
  pre.code,
  .cmd {
    background:
      linear-gradient(to right, var(--code-bg) 30%, transparent) left / 32px 100% no-repeat local,
      linear-gradient(to left, var(--code-bg) 30%, transparent) right / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgb(255 255 255 / 0.22), transparent) left / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgb(255 255 255 / 0.22), transparent) right / 12px 100% no-repeat scroll,
      var(--code-bg);
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
