/* Simple Fulfilment — rebuilt from the Framer site.
   Breakpoints match Framer: desktop >= 1200px, tablet 768–1199px, phone < 768px. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/sora-latin.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;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/sora-latin-ext.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;
}

:root {
  /* Colours taken from the Framer design tokens */
  --bg: #05071a;
  --bg-header: rgba(5, 7, 26, 0.8);
  --surface: #101636;          /* stats box, card inner glow */
  --surface-deep: #0a0e28;     /* FAQ answer */
  --border: #1c244c;           /* card outlines */
  --text: #ffffff;
  --text-muted: #9ea3bf;
  --text-soft: #8e95bb;        /* FAQ intro */
  --accent: #3a6ef2;           /* primary button */
  --line-faq: rgba(255, 255, 255, 0.15);
  --line-soft: rgba(158, 163, 191, 0.2);
  --line-faint: rgba(158, 163, 191, 0.1);
  --line-btn: rgba(158, 163, 191, 0.25);

  --font: "Sora", "Sora Placeholder", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);

  --wide: 1200px;    /* header, FAQ, footer */
  --narrow: 1020px;  /* features, pricing */
  --header-h: 119px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
p, h1, h2 { margin: 0; }
h1, h2 { font-weight: 400; color: var(--text); }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.blank { height: 1.8em; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--bg-header);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  position: relative;
  max-width: var(--wide);
  height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.site-header__logo img { width: 205px; height: 56px; object-fit: contain; }

.site-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 32px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }

.menu-toggle { display: none; }

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

/* Framer's hero is a fixed-height box with its content centred vertically
   (600px on desktop/tablet, 678px on phones). */
.hero {
  min-height: 600px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.hero__title {
  font-size: 80px;
  line-height: 1.15;
  letter-spacing: -3px;
}

.hero__text { max-width: 928px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line-btn);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.btn__icon {
  position: relative;
  width: 14px;
  height: 14px;
  overflow: hidden;
  flex: none;
}

.btn__icon img {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  transition: transform 0.4s var(--ease);
}

.btn__icon-hover { transform: translate(-21px, 21px); }

.btn:hover .btn__icon-normal,
.btn:focus-visible .btn__icon-normal { transform: translate(21px, -21px); }
.btn:hover .btn__icon-hover,
.btn:focus-visible .btn__icon-hover { transform: translate(0, 0); }

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: var(--bg);
  border-radius: 32px;
  box-shadow:
    inset 0 -10px 40px 0 var(--surface),
    inset 0 0 0 1px var(--border);
}

/* ---------- Features ---------- */

.features {
  max-width: var(--narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.feature {
  display: grid;
  grid-template-columns: 453px 500px;
  justify-content: space-between;
  align-items: center;
}
.feature--reverse { grid-template-columns: 500px 453px; }

.feature__text { padding-bottom: 92px; }   /* Framer sat the copy slightly above centre */
.feature__title {
  font-size: 40px;
  line-height: 1.4;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.feature__media {
  aspect-ratio: 500 / 460;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.feature__media img { object-fit: contain; }
.feature__media--orders img { width: 400px; height: 326px; }
.feature__media--reports img { width: 375px; height: 240px; }

.stats {
  width: 336px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.stats__row { display: flex; align-items: center; gap: 20px; }

.stats__number {
  color: var(--text);
  font-size: 40px;
  line-height: 1.4;
  letter-spacing: -1px;
}

.stats__trend {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}
.stats__trend img { width: 20px; height: 20px; }

/* ---------- Integrations ---------- */

.integrations {
  padding: 137px 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.integrations__label {
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 41px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px 62px;
}
.logo-row + .logo-row { margin-top: 25px; }

.logo {
  width: var(--w);
  height: 48px;
  object-fit: contain;
}
.logo--cover { object-fit: cover; }

/* ---------- Section titles ---------- */

.section-title {
  font-size: 60px;
  line-height: 1.2;
  letter-spacing: -2px;
}

/* ---------- Pricing ---------- */

.pricing {
  max-width: var(--narrow);
  margin: 0 auto;
  padding-top: 89px;
  text-align: center;
}

.pricing__intro {
  max-width: 531px;
  margin: 16px auto 0;
}

.price-card {
  margin-top: 39px;
  padding: 32px;
  color: var(--text);
}

.price-card__head {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--line-faint);
}

.price-card__name { font-size: 18px; font-weight: 500; line-height: 1.7; }
.price-card__note { font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--text-muted); }

.price-card__body { padding-top: 20px; }

/* ---------- FAQ ---------- */

.faq { padding: 89px 30px 0; }

.faq__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 120px 0 10px;
  display: grid;
  grid-template-columns: 452px 1fr;
  gap: 40px;
  align-items: start;
}

.faq__intro .section-title { margin-bottom: 16px; }
.faq__intro p { color: var(--text-soft); max-width: 375px; }

.faq-item {
  box-shadow: inset 0 -1px 0 var(--line-faq);   /* drawn inside, so rows stay 98px like Framer */
}

.faq-item__question {
  width: 100%;
  padding: 32px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  color: var(--text);
  font-size: 20px;
  line-height: 1.7;
  transition: padding 0.4s var(--ease);
}

.faq-item__icon {
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: 5px;
  flex: none;
}
.faq-item__icon img {
  position: absolute;
  inset: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.faq-item__minus { opacity: 0; }

.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-item__answer > div { overflow: hidden; }
.faq-item__answer p {
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 16px;
  background: var(--surface-deep);
}

.faq-item.is-open .faq-item__question { padding-bottom: 24px; }
.faq-item.is-open .faq-item__answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-item__plus { opacity: 0; transform: rotate(180deg); }
.faq-item.is-open .faq-item__minus { opacity: 1; transform: rotate(180deg); }

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

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 160px 30px 65px;
}

.site-footer__glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.site-footer__logo img { width: 207px; height: 56px; object-fit: cover; }

.site-footer__divider {
  width: 1px;
  height: 24px;
  background: #e6e8ec;
  flex: none;
}

.site-footer__address { width: 405px; flex: none; }

.site-footer__bottom {
  margin-top: 45px;
  padding-top: 45px;
  border-top: 1px solid var(--line-soft);
}

.site-footer__bottom a {
  color: var(--text);
  transition: opacity 0.3s var(--ease);
}
.site-footer__bottom a:hover { opacity: 0.7; }

/* Scroll reveal (footer fades up as it enters view, like the Framer site) */
.js .reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Small desktop: 1200–1439px (Framer shrinks the headings here) ---------- */

@media (min-width: 1200px) and (max-width: 1439px) {
  .hero__title { font-size: 64px; }
  .feature__title,
  .stats__number { font-size: 32px; line-height: 1.6; }
  .section-title { font-size: 48px; }
}

/* ---------- Tablet: 768–1199px ---------- */

@media (max-width: 1199px) {
  :root { --header-h: 80px; }

  .site-header__inner { padding: 0 30px; }
  .site-header__logo img { width: 140px; height: 40px; }

  .hero__title { font-size: 52px; letter-spacing: -2px; }

  .features {
    max-width: 538px;
    padding: 0 20px 2px;
    gap: 140px;
    box-sizing: content-box;
  }
  .feature,
  .feature--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature__media { order: -1; }   /* image card sits above the copy on smaller screens */
  .feature__text { padding-bottom: 0; }
  .feature__title { font-size: 32px; line-height: 1.5; }
  .feature__media { width: 100%; }

  .integrations { padding-top: 140px; }
  .logo-row { max-width: 830px; gap: 62px; }
  .logo-row + .logo-row { margin-top: 20px; }
  .logo { width: 157px; height: 45px; }

  .section-title { font-size: 40px; line-height: 1.5; }

  .pricing { max-width: 828px; padding: 140px 30px 0; }
  .price-card { max-width: 361px; margin-left: auto; margin-right: auto; }

  .faq { padding-top: 143px; }
  .faq__inner {
    max-width: 689px;
    padding-bottom: 80px;
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .faq__intro p { max-width: none; }

  .site-footer { padding-top: 131px; }
  .site-footer__inner { max-width: 768px; }
  .site-footer__top { flex-direction: column; align-items: flex-start; gap: 30px; }
  .site-footer__address { width: auto; }
}

/* ---------- Phone: < 768px ---------- */

@media (max-width: 767px) {
  :root { --header-h: 86px; }

  .site-header__inner { padding: 0 20px; justify-content: space-between; }
  .site-header__logo img { width: 205px; height: 56px; }

  .menu-toggle {
    display: block;
    position: relative;
    width: 40px;
    height: 40px;
  }
  .menu-toggle__bar {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-muted);
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
  }
  .menu-toggle__bar--top { top: 15px; }
  .menu-toggle__bar--bottom { top: 23px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar--top { top: 19px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar--bottom { top: 19px; transform: rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: calc(100% - 14px);
    left: 0;
    right: 0;
    transform: translateY(-8px);
    flex-direction: column;
    gap: 8px;
    padding: 24px 32px;
    border-radius: 16px;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--border);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .hero { min-height: 678px; padding: 60px; }
  .hero__title { font-size: 42px; letter-spacing: -3px; }

  .features { max-width: none; padding: 0 20px 50px; gap: 40px; }
  .feature, .feature--reverse { gap: 30px; }
  .feature__title { margin-bottom: 16px; }
  .feature__media--orders img { width: 300px; height: 245px; }
  .feature__media--reports { padding: 30px 0; }
  .feature__media--reports img { width: 220px; height: 141px; }
  .stats { width: 292px; }
  .stats__number { font-size: 32px; line-height: 1.5; }

  .integrations { padding: 50px 20px; }
  .integrations__label { margin-bottom: 61px; }
  .logo-row { gap: 20px; }
  .logo-row + .logo-row { margin-top: 45px; }
  .logo { width: 161px; height: 40px; }

  .section-title { font-size: 32px; }

  .pricing { padding: 50px 20px; }
  .price-card { margin-top: 30px; }

  .faq { padding: 50px 40px; }
  .faq__inner { padding: 120px 0 10px; gap: 40px; }

  .site-footer { padding: 60px 20px; }
  .site-footer__brand { flex-direction: column; align-items: flex-start; gap: 32px; }
  .site-footer__divider { display: none; }
  .site-footer__bottom { margin-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.hero--error { min-height: 70vh; justify-content: center; padding-top: 160px; }
.hero--error .hero__text { max-width: 600px; }

/* ---------- Privacy policy ---------- */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 60px) 40px 120px;
}
.legal__title { font-size: 48px; line-height: 1.2; letter-spacing: -2px; margin-bottom: 40px; }
.legal h2 { font-size: 28px; line-height: 1.3; letter-spacing: -0.5px; margin: 56px 0 16px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal h3 { font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--text); margin: 32px 0 12px; }
.legal p, .legal address { margin: 0 0 16px; }
.legal ul { margin: 0 0 24px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--accent); }
.legal strong { font-weight: 600; color: var(--text); }
.legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { color: var(--accent); }

@media (max-width: 767px) {
  .legal { padding: calc(var(--header-h) + 32px) 20px 80px; }
  .legal__title { font-size: 34px; letter-spacing: -1px; }
  .legal h2 { font-size: 24px; margin-top: 44px; }
}
