@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito[wght].ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.picmatic-page {
  --pm-bg: #faf9f8;
  --pm-surface: rgba(250, 248, 255, 0.76);
  --pm-surface-strong: rgba(250, 248, 255, 0.92);
  --pm-line: rgba(0, 0, 0, 0.07);
  --pm-line-strong: rgba(0, 0, 0, 0.1);
  --pm-text: #1a1a1a;
  --pm-text-soft: #6b7280;
  --pm-text-faint: #9ca3af;
  --pm-accent: #7c3aed;
  --pm-accent-strong: #6d28d9;
  --pm-radius-sm: 0.75rem;
  --pm-radius-md: 1.25rem;
  min-height: 100vh;
  background: linear-gradient(180deg, #fefefe 0%, var(--pm-bg) 100%);
  color: var(--pm-text);
  font-family: 'Satoshi', sans-serif;
  line-height: 1.6;
}

.picmatic-page ::selection {
  background: rgba(124, 58, 237, 0.15);
  color: var(--pm-text);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.pm-nav,
.pm-footer,
main {
  position: relative;
  z-index: 1;
}

.pm-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Nav ---- */

.pm-brand {
  text-decoration: none;
  color: var(--pm-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pm-nav__link,
.pm-footer__link {
  text-decoration: none;
  color: var(--pm-text-soft);
  font-size: 0.82rem;
}

.pm-nav {
  padding-top: 28px;
}

.pm-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pm-nav__links,
.pm-hero__actions,
.pm-footer__links,
.pm-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.pm-nav__link,
.pm-footer__link,
.pm-text-link {
  transition: color 180ms ease;
}

.pm-nav__link:hover,
.pm-nav__link:focus-visible,
.pm-footer__link:hover,
.pm-footer__link:focus-visible,
.pm-text-link:hover,
.pm-text-link:focus-visible {
  color: var(--pm-text);
}

.pm-text-link {
  color: var(--pm-accent-strong);
  text-decoration: none;
  font-size: 0.92rem;
}

/* ---- Button ---- */

.pm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--pm-radius-sm);
  background: #1a1a1a;
  color: #f8f8f8;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.pm-button:hover,
.pm-button:focus-visible {
  background: #333333;
}

.pm-button--ghost {
  background: transparent;
  color: var(--pm-text);
  border-color: rgba(0, 0, 0, 0.12);
}

.pm-button--ghost:hover,
.pm-button--ghost:focus-visible {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.18);
}

/* ---- Typography ---- */

.pm-kicker {
  margin: 0;
  color: var(--pm-accent-strong);
  font-size: 0.82rem;
  font-weight: 500;
}

.pm-display,
.pm-title,
.pm-step h3,
.pm-legal h2 {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  letter-spacing: -0.04em;
  color: var(--pm-text);
}

.pm-display {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.98;
  max-width: 10ch;
  text-wrap: balance;
}

.pm-display--legal {
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  max-width: none;
}

.pm-title {
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  line-height: 1.08;
  text-wrap: balance;
}

.pm-lead,
.pm-copy,
.pm-proofline,
.pm-step p,
.pm-legal-hero__meta p,
.pm-legal p,
.pm-legal li {
  color: var(--pm-text-soft);
}

.pm-lead {
  margin: 0;
  max-width: 30rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.pm-copy {
  margin: 0;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.8;
}

/* ---- Hero ---- */

.pm-hero {
  padding: 56px 0 40px;
}

.pm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 140px);
}

.pm-hero__copy {
  display: grid;
  gap: 20px;
  align-content: center;
}

.pm-proofline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.9rem;
}

.pm-proofline span {
  position: relative;
  padding-left: 15px;
}

.pm-proofline span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pm-accent);
  transform: translateY(-50%);
}

.pm-hero__visual {
  display: flex;
  justify-content: center;
}

.pm-hero__img {
  width: min(100%, 14rem);
  border-radius: var(--pm-radius-md);
}

/* ---- Workflow / Steps ---- */

.pm-section {
  padding: 64px 0;
}

.pm-section--workflow {
  padding-top: 72px;
}

.pm-story {
  display: grid;
  gap: 28px;
}

.pm-story__intro {
  display: grid;
  gap: 14px;
  max-width: 38rem;
}

.pm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pm-step {
  padding: 24px 0;
  border-top: 1px solid var(--pm-line-strong);
  min-height: 12rem;
}

.pm-step__index {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--pm-accent);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pm-step h3 {
  font-size: 1.2rem;
  line-height: 1.15;
}

.pm-step p {
  margin: 10px 0 0;
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ---- Screenshot gallery ---- */

.pm-section--gallery {
  padding: 0;
}

.pm-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 0 28px 24px;
}

.pm-gallery::-webkit-scrollbar {
  display: none;
}

.pm-gallery__img {
  flex: 0 0 auto;
  height: min(60vh, 420px);
  width: auto;
  border-radius: var(--pm-radius-md);
  scroll-snap-align: start;
}

/* ---- CTA ---- */

.pm-section--cta {
  padding-bottom: 48px;
}

.pm-cta {
  display: grid;
  gap: 20px;
  padding-top: 48px;
  border-top: 1px solid var(--pm-line-strong);
}

/* ---- Footer ---- */

.pm-footer {
  padding: 0 0 28px;
}

.pm-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--pm-line);
  color: var(--pm-text-soft);
  font-size: 0.78rem;
}

/* ---- Legal pages ---- */

.pm-legal-page {
  padding: 48px 0 56px;
}

.pm-legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 26px;
  padding: 22px 0 28px;
}

.pm-legal-hero__label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--pm-text-faint);
}

.pm-legal-hero__meta {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-top: 1px solid var(--pm-line-strong);
}

.pm-legal-hero__meta strong {
  font-family: 'Nunito', sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.pm-legal-card,
.pm-legal-cta {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--pm-radius-md);
  background: var(--pm-surface);
}

.pm-legal-card {
  padding: 8px;
}

.pm-legal {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 32px 28px 34px;
  border-radius: var(--pm-radius-md);
  background: var(--pm-surface-strong);
}

.pm-legal h2 {
  margin-top: 28px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.pm-legal h2:first-child {
  margin-top: 0;
}

.pm-legal p,
.pm-legal li {
  margin: 10px 0 0;
  font-size: 0.96rem;
  line-height: 1.75;
}

.pm-legal ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.pm-legal a {
  color: var(--pm-accent-strong);
  text-decoration: none;
}

.pm-legal-cta {
  margin-top: 22px;
  padding: 24px;
}

.pm-legal-cta__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* ---- Reveal animation ---- */

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

.js-enabled [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms cubic-bezier(0.19, 1, 0.22, 1), transform 600ms cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---- Focus states ---- */

.pm-nav__link:focus-visible,
.pm-brand:focus-visible,
.pm-footer__link:focus-visible,
.pm-button:focus-visible,
.pm-text-link:focus-visible,
.pm-legal a:focus-visible {
  outline: 2px solid rgba(124, 58, 237, 0.5);
  outline-offset: 3px;
}

/* ---- Responsive ---- */

@media (max-width: 1080px) {
  .pm-legal-hero,
  .pm-legal-cta__row {
    grid-template-columns: 1fr;
  }

  .pm-steps {
    grid-template-columns: 1fr;
  }

  .pm-step {
    min-height: 0;
  }

  .pm-legal-cta__row {
    display: grid;
  }
}

@media (max-width: 920px) {
  .pm-hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pm-hero__visual {
    justify-content: center;
  }

  .pm-hero__img {
    width: min(100%, 12rem);
  }
}

@media (max-width: 720px) {
  .pm-shell {
    padding: 0 18px;
  }

  .pm-display {
    max-width: 11ch;
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .pm-title {
    font-size: clamp(1.65rem, 8vw, 2.4rem);
  }

  .pm-gallery {
    padding: 0 18px 20px;
  }

  .pm-gallery__img {
    height: min(50vh, 340px);
  }

  .pm-legal,
  .pm-legal-cta {
    padding: 22px;
  }

  .pm-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pm-button,
  .pm-nav__link,
  .pm-footer__link,
  .pm-text-link,
  .js-enabled [data-reveal],
  .js-enabled [data-reveal].revealed {
    transition: none;
    transform: none;
  }
}
