/* Partifier · Components
   Reusable building blocks. Mobile-first. */

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--ink-900);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--color-link); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--ink-900); color: #fff;
  padding: .6rem 1rem; border-radius: 6px;
  z-index: 10000;
  transition: top var(--dur-fast) var(--ease-standard);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: clamp(3rem, 6vw, 6rem);
}
.section--tight { padding-block: clamp(2rem, 4vw, 4rem); }
.section--dark  { background: var(--surface-900); color: var(--color-on-dark); }
.section--soft  { background: var(--surface-50); }
.section--brand-soft { background: var(--brand-50); }

.section--dark .eyebrow,
.section--dark p,
.section--dark li { color: var(--color-muted-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  color: var(--ink-900);
}
h3 { font-weight: 900; }
h1 { font-size: var(--fs-h1); }
.h-display { font-size: var(--fs-display); line-height: 1.05; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--space-4); color: var(--color-muted); }
.lead { font-size: 1.125rem; color: var(--color-muted); max-width: 60ch; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-700);
  margin-bottom: var(--space-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  font: 800 .69rem/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
  text-decoration: none;
  min-height: 44px;
}
.btn--primary { background: var(--ink-900); color: #fff; }
.btn--primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--accent  { background: var(--brand-700); color: #fff; }
.btn--accent:hover { background: var(--ink-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost   { background: transparent; color: var(--color-fg); border: 1px solid var(--surface-200); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-700); }

.btn-row {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  align-items: center;
}

/* App store badges */
.store-badges {
  display: flex; flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.store-badge img { height: 48px; width: auto; }
.store-badge { display: inline-block; transition: transform var(--dur-fast) var(--ease-standard); }
.store-badge:hover { transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  z-index: 1000;
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}
@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .site-header { background: rgba(255, 255, 255, 0.96); }
}
.nav {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: inline-flex; align-items: center; height: 100%; }
.nav__brand img { height: 26px; width: auto; display: block; }
.nav__menu {
  display: flex; align-items: center; gap: var(--space-5);
}
.nav__menu a {
  position: relative;
  font: 800 .68rem/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-700);
}
.nav__menu a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: var(--brand-500);
  transition: width var(--dur-med) var(--ease-standard);
}
.nav__menu a:not(.btn):hover::after { width: 100%; }
.nav__menu .btn {
  min-height: 30px;
  padding: .35rem .85rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.nav__menu a.btn--primary { color: #fff; }
.nav__menu a.btn--primary:hover { color: #fff; }
.nav__menu a.btn--primary::after { display: none; }

.nav__toggle {
  display: none;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: var(--surface-0);
  color: var(--brand-500);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  align-items: center; justify-content: center;
}

@media (max-width: 820px) {
  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: color-mix(in srgb, var(--color-bg) 95%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-6) var(--pad-x);
    gap: var(--space-5);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-med) var(--ease-standard),
                transform var(--dur-med) var(--ease-standard);
    box-shadow: var(--shadow-lg);
  }
  .nav__menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__menu a:not(.btn) { padding: .5rem 0; font-size: 1rem; }
  .nav__toggle { display: inline-flex; }
}

body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 5rem));
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero__copy h1 { margin-top: var(--space-2); }
.hero__brand { max-width: 460px; margin-bottom: var(--space-4); }
.hero__platforms {
  font-size: .75rem; color: var(--ink-500);
  font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  margin-top: var(--space-4);
  color: #b4b4b4;
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Split feature ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.feature--reverse .feature__media { order: 2; }
.feature__icon { width: 30px; height: 30px; margin-bottom: var(--space-3); }
.feature__icon img, .feature__icon svg { width: 100%; height: 100%; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
}

/* ---------- Media frame ---------- */
.media-frame {
  position: relative;
  width: 100%;
  background: transparent;
  aspect-ratio: 4 / 3;
}
.media-frame > video,
.media-frame > img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: transparent;
}
.media-frame--cover > video,
.media-frame--cover > img { object-fit: cover; }
.media-frame--tall { aspect-ratio: 3 / 4; max-width: 420px; margin-inline: auto; }
.media-frame--portrait {

  aspect-ratio: 3 / 4;
    max-width: 460px;

    margin-inline: auto;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:

        0 10px 30px rgba(0, 0, 0, 0.18),

        0 4px 12px rgba(0, 0, 0, 0.10);

}
.media-frame--shadow {

    aspect-ratio: 1;

    max-height: 410px;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:

        0 10px 30px rgba(0, 0, 0, 0.18),

        0 4px 12px rgba(0, 0, 0, 0.10);

}
.media-frame--wide { aspect-ratio: 16 / 9; }

/* ---------- Card grid (features / use cases) ---------- */
.card-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex; flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--dur-med) var(--ease-standard),
              box-shadow var(--dur-med) var(--ease-standard);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 1.4rem;
}
.card h3 { margin: 0; }
.card p  { margin: 0; }

.section--dark .card {
  background: var(--surface-950);
  border-color: rgba(255,255,255,.08);
}

/* ---------- HowTo steps ---------- */
.steps {
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.step {
  position: relative;
  padding: var(--space-6);
  padding-top: var(--space-7);
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px; left: var(--space-5);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-700);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.step h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.step p  { font-size: .98rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-3); }
.faq-item {
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-fg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand-700);
  transition: transform var(--dur-fast) var(--ease-standard);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item__body {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-muted);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial {
  background: var(--surface-0);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--surface-200);
}
.testimonial__stars { color: #F5A623; letter-spacing: 2px; margin-bottom: var(--space-3); }
.testimonial blockquote { margin: 0 0 var(--space-4); font-style: italic; color: var(--ink-700); }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--color-fg); }
.testimonial cite span { display: block; font-weight: 600; color: var(--ink-500); font-size: .9rem; }

/* ---------- Requirements ---------- */
.requirements {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.requirements div {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--surface-50);
}
.requirements strong { display: block; margin-bottom: var(--space-2); }

/* ---------- CTA banner ---------- */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: clamp(2.5rem, 6vw, 5rem);
}
.cta h2 { color: #fff; }
.cta p  { color: rgba(255,255,255,.86); max-width: 50ch; margin-inline: auto; }
.cta .store-badges { justify-content: center; }
.cta__icon {
  width: clamp(80px, 12vw, 120px);
  height: auto;
  display: block;
  margin: 0 auto var(--space-5);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25));
  animation: cta-float 4.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes cta-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cta__icon { animation: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-100);
  padding-block: var(--space-9) var(--space-6);
  margin-top: var(--space-9);
}
.site-footer__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.site-footer h2 {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-500);
  margin-bottom: var(--space-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer ul a {
  font-size: .72rem;
  font-weight: 600;
  color: rgb(153, 153, 153);
}
.site-footer a:hover { color: var(--brand-700); }
.site-footer__brand img { height: 36px; margin-bottom: var(--space-3); }
.site-footer__brand p { font-size: .82rem; font-weight: 500; max-width: 32ch; }
.site-footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--surface-200);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  color: var(--ink-500); font-size: .75rem; font-weight: 400;
}
@media (max-width: 820px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Error page ---------- */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-9) var(--pad-x);
}
.error-page__code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 var(--space-3);
  background: linear-gradient(135deg, var(--brand-700), var(--brand-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 { font-size: var(--fs-h2); margin-bottom: var(--space-3); }
.error-page p  { max-width: 42ch; margin-inline: auto; margin-bottom: var(--space-6); }

/* ---------- Legal page ---------- */
.legal {
  padding-top: calc(var(--header-h) + var(--space-9));
  padding-bottom: var(--space-9);
}
.legal .container { max-width: 760px; }
.legal h1 { font-size: var(--fs-h1); margin-bottom: var(--space-6); }
.legal h2 { font-size: var(--fs-h3); margin-top: var(--space-7); }
.legal p, .legal li { color: var(--ink-700); }
.legal ul { padding-left: 1.2rem; }

/* ---------- Helpers ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mx-auto { margin-inline: auto; }
.max-w-prose { max-width: 60ch; }
