.pk-landing {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  color: var(--ui-text);
  background: var(--ui-bg);
}
.pk-landing :where(h1, h2, h3, p, figure) { margin: 0; }
.pk-landing :is(section, #apps)[id] { scroll-margin-top: 24px; }

@media (min-width: 1600px) {
  .pk-landing .pk-wrap { width: min(80vw, 1536px); }
}

.pk-visually-hidden, .pk-skip:not(:focus) {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.pk-skip:focus {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--ui-radius-public-control);
  background: var(--ui-panel);
}

.pk-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.pk-nav, .pk-footer-nav { display: flex; align-items: center; gap: 20px; }
.pk-nav { gap: clamp(18px, 3vw, 34px); }
.pk-footer-nav a {
  min-height: var(--ui-size-comfortable);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ui-muted);
  font-size: 14px;
  font-weight: 570;
  white-space: nowrap;
}
.pk-footer-nav a:hover {
  color: var(--ui-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pk-sign-in { justify-self: end; color: var(--ui-text); font-weight: 650; }

.pk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--ui-size-comfortable);
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--ui-radius-public-control);
  font-size: 14px;
  font-weight: 670;
  text-align: center;
}
.pk-button-primary { background: var(--ui-action); color: var(--ui-on-accent); }
.pk-button-primary:hover { background: var(--ui-action-hover); }

.pk-hero {
  display: grid;
  grid-template-columns: minmax(300px, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 50px);
  padding-block: clamp(50px, 4.55vw, 66px) clamp(34px, 3.2vw, 46px);
}
.pk-hero h1 {
  font-size: clamp(43px, 4.8vw, 70px);
  font-weight: 690;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.pk-hero h1 span { display: block; }
.pk-hero-copy p {
  max-width: 38ch;
  margin-top: 21px;
  color: var(--ui-muted);
  font-size: 17px;
  line-height: 1.65;
}
.pk-hero-copy .pk-button { margin-top: 24px; }
.pk-workspace-preview-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pk-workspace-preview-link::before { position: absolute; inset: 0; content: ""; cursor: zoom-in; }
.pk-workspace-preview-link:focus-visible::before { outline: 2px solid var(--ui-focus); outline-offset: -3px; }
.pk-workspace-preview-link:hover { color: var(--ui-text); }

.pk-research, .pk-pricing {
  padding-block: clamp(28px, 3.4vw, 48px);
  border-top: 1px solid var(--ui-border);
}
.pk-landing h2 {
  font-size: clamp(29px, 3.2vw, 44px);
  font-weight: 680;
  letter-spacing: -.04em;
  line-height: 1.12;
}
.pk-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: var(--ui-size-comfortable);
  margin-bottom: clamp(16px, 2vw, 24px);
}
.pk-tools-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.pk-tool-button {
  display: grid;
  place-items: center;
  width: var(--ui-size-comfortable);
  height: var(--ui-size-comfortable);
  padding: 0;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-public-control);
  background: var(--ui-chrome);
  color: var(--ui-text);
}
.pk-tool-button:hover:not([aria-disabled="true"]) { background: var(--ui-control-bg); }
.pk-tool-button[aria-disabled="true"] { opacity: .45; cursor: default; }
.pk-tool-button svg, .pk-tool-placeholder svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pk-tool-list {
  --pk-tool-gap: 12px;
  --pk-tools-visible: 3;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-columns: calc((100% + var(--pk-tool-gap)) / var(--pk-tools-visible) - var(--pk-tool-gap));
  gap: var(--pk-tool-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pk-tool-list::-webkit-scrollbar { display: none; }
.pk-tool-list[data-scrollable] { cursor: grab; user-select: none; }
.pk-tool-list.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.pk-tool-list.is-dragging a.pk-tool-thumbnail { cursor: inherit; }
.pk-tool-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1vw, 14px);
  min-width: 0;
  padding: clamp(10px, 1.1vw, 15px);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-feature);
  background: var(--ui-panel);
  scroll-snap-align: start;
}
.pk-tool-card h3 { font-size: 16px; font-weight: 670; line-height: 1.25; }
.pk-tool-card p {
  margin-top: 5px;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.45;
}
.pk-tool-thumbnail {
  position: relative;
  display: block;
  width: clamp(72px, 7.5vw, 100px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-control);
  background: var(--ui-chrome);
}
a.pk-tool-thumbnail { cursor: zoom-in; }
a.pk-tool-thumbnail:hover { border-color: var(--ui-focus); }
.pk-tool-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
a.pk-tool-thumbnail::after, .pk-workspace-preview-link::after {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 20px;
  height: 20px;
  content: "";
  border: 1px solid var(--ui-border);
  border-radius: 4px;
  background: var(--ui-chrome) center / 13px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3H3v3m7-3h3v3M3 10v3h3m7-3v3h-3' fill='none' stroke='%23edf1f5' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");
}
.pk-workspace-preview-link::after { position: static; width: 17px; height: 17px; flex: none; }
.pk-tool-placeholder {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--ui-accent-text) 5%, var(--ui-chrome));
  color: var(--ui-accent-text);
}
.pk-tool-placeholder svg { width: 27px; height: 27px; }

.pk-tool-dialog {
  width: max-content;
  min-width: min(290px, calc(100% - 24px));
  max-width: min(1120px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-feature);
  background: var(--ui-panel);
  color: var(--ui-text);
  overscroll-behavior: contain;
}
.pk-workspace-dialog { max-width: min(1440px, calc(100% - 24px)); }
.pk-tool-dialog::backdrop { background: rgb(5 8 12 / 80%); }
.pk-tool-dialog form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 10px 6px 16px;
}
.pk-tool-dialog form h2 { font-size: 17px; letter-spacing: normal; line-height: 1.3; }
.pk-tool-dialog form button { flex: none; }
.pk-tool-dialog-media { background: var(--ui-chrome); border-top: 1px solid var(--ui-border); }
.pk-tool-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 118px);
  margin-inline: auto;
  object-fit: contain;
}
.pk-tool-dialog .pk-tool-dialog-note {
  padding: 8px 16px;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.4;
}
html:has(.pk-tool-dialog[open]) { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .pk-tool-list:not(.is-dragging) { scroll-behavior: smooth; }
}

@media (max-width: 1040px) {
  .pk-tool-list { --pk-tools-visible: 2; }
}
@media (min-width: 1800px) {
  .pk-tool-list { --pk-tools-visible: 4; }
}

.pk-periods {
  display: flex;
  flex: none;
  padding: 3px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-public-control);
  background: var(--ui-chrome);
}
.pk-periods button {
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--ui-radius-control);
  background: transparent;
  color: var(--ui-muted);
  font-size: 14px;
  font-weight: 630;
}
.pk-periods button:hover { background: var(--ui-hover-bg); color: var(--ui-text); }
.pk-periods button[aria-pressed="true"] { background: var(--ui-selected-bg); color: var(--ui-text); }
.pk-yearly-savings, .pk-plan-savings {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ui-success) 12%, transparent);
  color: var(--ui-success);
  font-size: 12px;
  font-weight: 650;
}
.pk-yearly-savings { display: inline-block; margin-inline-start: 3px; white-space: nowrap; }

.pk-pricing-grid, .pk-plan-benefits { list-style: none; padding: 0; margin: 0; }
.pk-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-panel);
  background: var(--ui-panel);
}
.pk-plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(17px, 2.3vw, 29px);
}
.pk-plan + .pk-plan { border-inline-start: 1px solid var(--ui-border); }
.pk-plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: 24px;
}
.pk-plan h3 { font-size: 18px; font-weight: 670; }
.pk-plan-recommended {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ui-action);
  color: var(--ui-on-accent);
  font-size: 11px;
  font-weight: 700;
}
.pk-plan-reference {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-top: 7px;
  color: var(--ui-muted);
  font-size: 13px;
}
.pk-plan-reference s { font-weight: 650; }
.pk-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-top: 7px;
  color: var(--ui-muted);
  font-size: 14px;
}
.pk-price strong {
  color: var(--ui-text);
  font-size: clamp(29px, 3.25vw, 46px);
  font-weight: 680;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.pk-plan-savings { margin-top: 8px; }
.pk-yearly-savings:empty, .pk-plan-reference:empty, .pk-plan-savings:empty { display: none; }
.pk-plan-benefits {
  margin-top: 14px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ui-border);
  display: grid;
  gap: 5px;
  color: var(--ui-text-secondary);
  font-size: 14px;
  line-height: 1.4;
}
.pk-plan-subscribe { margin-top: auto; }
.pk-pricing .pk-pricing-note { color: var(--ui-muted); margin-top: 10px; font-size: 12px; line-height: 1.5; }

.pk-footer {
  margin-block-start: auto;
  border-top: 1px solid var(--ui-border);
  background: var(--ui-chrome);
}
.pk-footer-main, .pk-footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.pk-footer-main { padding-block: clamp(20px, 1.6vw, 24px); }
.pk-footer .pk-brand { align-self: center; gap: 12px; font-size: 34px; font-weight: 760; }
.pk-footer .pk-mark { width: 38px; }
.pk-footer-nav { flex-wrap: wrap; gap: 0 20px; }
.pk-footer-nav a { font-size: 13px; }
.pk-footer-legal {
  padding-block: 5px;
  border-top: 1px solid var(--ui-border);
}
.pk-footer-legal nav { flex: none; }
.pk-footer .pk-disclosure { color: var(--ui-muted); font-size: 12px; line-height: 1.5; }
.pk-app-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pk-app-store { position: relative; min-width: 0; }
.pk-store-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--ui-size-comfortable);
  padding: 0 12px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-public-control);
  background: var(--ui-panel);
  color: var(--ui-text);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.pk-store-entry:hover, .pk-store-entry[aria-expanded="true"] {
  background: var(--ui-hover-bg);
  border-color: var(--ui-focus);
}
.pk-store-entry span, .pk-store-popover a span { color: var(--ui-muted); }
.pk-store-trigger { position: relative; z-index: 3; }
.pk-store-trigger::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: var(--ui-muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M1 1h7v7H1zm2 2v3h3V3zm9-2h7v7h-7zm2 2v3h3V3zM1 12h7v7H1zm2 2v3h3v-3zm9-2h3v3h-3zm3 3h4v4h-4zm3-4h1v3h-1zm-8 6h2v2h-2z' fill-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pk-store-popover {
  position: absolute;
  z-index: 2;
  inset-inline-end: 0;
  bottom: calc(100% + 8px);
  padding: 11px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-public-control);
  background: var(--ui-panel);
  box-shadow: 0 8px 24px #0006;
}
.pk-store-popover.is-below { top: calc(100% + 8px); bottom: auto; }
.pk-store-popover.is-beside {
  top: var(--pk-store-preview-top);
  bottom: auto;
  inset-inline-end: var(--pk-store-preview-offset);
}
.pk-store-popover::after {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  height: 9px;
  content: "";
}
.pk-store-popover.is-below::after { top: auto; bottom: 100%; }
.pk-store-popover.is-beside::after {
  top: var(--pk-store-hover-top);
  inset-inline: 100% auto;
  width: var(--pk-store-preview-offset);
  height: var(--ui-size-comfortable);
}
.pk-store-popover-content {
  display: grid;
  justify-items: center;
  gap: 5px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
.pk-store-popover img {
  display: block;
  width: var(--pk-store-qr-size, 270px);
  height: var(--pk-store-qr-size, 270px);
  border-radius: var(--ui-radius-public-control);
  image-rendering: pixelated;
}
.pk-store-popover a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--ui-size-comfortable);
  padding-inline: 4px;
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.pk-store-popover a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .pk-footer .pk-brand { gap: 10px; font-size: clamp(27px, 7vw, 32px); }
  .pk-footer .pk-mark { width: 34px; }
}

@media (max-width: 840px) {
  .pk-hero { grid-template-columns: 1fr; gap: 28px; padding-block: 46px; }
  .pk-hero h1 { font-size: clamp(44px, 8vw, 64px); }
  .pk-hero-copy p { max-width: 48ch; margin-top: 12px; }
  .pk-hero-copy .pk-button { margin-top: 17px; }
}

@media (max-width: 680px) {
  .pk-pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .pk-plan + .pk-plan { border-inline-start: 0; border-block-start: 1px solid var(--ui-border); }
}

@media (max-width: 720px) {
  .pk-tool-list { --pk-tools-visible: 1; }
}

@media (max-width: 560px) {
  .pk-header-inner { gap: 11px; }
  .pk-nav { gap: 13px; }
  .pk-hero { padding-block: 38px 34px; }
  .pk-hero h1 { font-size: clamp(38px, 10.2vw, 53px); }
  .pk-hero-copy p { font-size: 16px; }
  .pk-tool-list { --pk-tool-gap: 9px; }
  .pk-tool-thumbnail { width: clamp(58px, 19vw, 90px); }
  .pk-tool-card h3 { font-size: 15px; }
  .pk-tool-card p { font-size: 13px; }
  .pk-plan-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 9px; }
  .pk-footer-main, .pk-footer-legal { align-items: stretch; flex-direction: column; }
  .pk-footer .pk-brand { align-self: flex-start; }
  .pk-footer-legal { gap: 0; padding-top: 12px; }
}

@media (max-width: 350px) {
  .pk-header-inner, .pk-nav { gap: 10px; }
  .pk-periods button { padding-inline: 9px; }
}
