/* ═══════════════════════════════════════════════
   ScanInvoice Landing — Design Tokens
   ═══════════════════════════════════════════════ */

:root {
  --black: hsl(0, 0%, 15%);
  --grey: hsl(30, 10%, 96%);
  --light-grey: hsl(60, 2%, 92%);
  --dark-grey: hsl(0, 0%, 50%);
  --white: white;
  --purple: hsl(264, 100%, 64%);
  --purple-hover: hsl(264, 100%, 74%);
  --purple-tint: #f3f0ff;
  --green-teal: hsl(174, 59%, 56%);

  --text-color: var(--black);
  --mute-color: var(--dark-grey);

  --font-family: "Open Sans", sans-serif;
  --font-size-12: 12px;
  --font-size-14: 14px;
  --font-size-16: 16px;
  --font-size-18: 18px;
  --font-size-20: 20px;
  --font-size-24: 24px;
  --font-size-32: 32px;
  --font-size-40: 40px;
  --font-size-48: 48px;

  --space-10: 10px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-120: 120px;
  --padding-20: 20px;
  --pagewidth: 1248px;
}

/* ═══ Reset ═══ */

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-16);
  line-height: 1.6;
  color: var(--text-color);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ═══ Layout ═══ */

.container {
  max-width: var(--pagewidth);
  margin: 0 auto;
  padding: 0 var(--padding-20);
}

/* ═══ Button ═══ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--purple);
  color: var(--white);
  font-size: var(--font-size-16);
  font-weight: 700;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { background: var(--purple-hover); text-decoration: none; }

.btn--small {
  padding: 8px 20px;
  font-size: var(--font-size-14);
}

/* ═══ Badge ═══ */

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: var(--font-size-12);
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-tint);
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 8px;
}

/* ═══ Placeholder ═══ */

.placeholder {
  background: var(--purple-tint);
  border: 2px dashed var(--purple);
  border-radius: 5px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: var(--font-size-14);
  font-weight: 600;
  width: 100%;
}

/* ═══ Nav ═══ */

.nav {
  border-bottom: 1px solid var(--light-grey);
  background: var(--white);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__brand {
  font-size: var(--font-size-20);
  font-weight: 700;
  color: var(--text-color);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__link {
  font-size: var(--font-size-14);
  font-weight: 500;
  color: var(--mute-color);
}
.nav__link:hover { color: var(--text-color); text-decoration: none; }

/* ═══ Hero ═══ */

.hero {
  padding: var(--space-120) 0 var(--space-64);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: center;
}
.hero h1 {
  font-size: var(--font-size-48);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-color);
  margin-bottom: var(--space-20);
}
.hero h2 {
  font-size: var(--font-size-18);
  font-weight: 400;
  color: var(--mute-color);
  line-height: 1.5;
  margin-bottom: var(--space-32);
}
.hero__sub {
  margin-top: var(--space-10);
  font-size: var(--font-size-14);
  color: var(--mute-color);
}

/* ═══ Sections ═══ */

.section {
  padding: var(--space-120) 0;
}
.section--grey {
  background: var(--grey);
}
.section--cta {
  background: var(--purple-tint);
}
.section__title {
  font-size: var(--font-size-32);
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  margin-bottom: var(--space-48);
}
.section__text {
  font-size: var(--font-size-18);
  color: var(--mute-color);
  max-width: 560px;
  margin: 0 auto var(--space-32);
  line-height: 1.6;
}

/* ═══ Benefits ═══ */

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 5px;
  padding: var(--space-32);
}
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--purple-tint);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-20);
}
.benefit-card h3 {
  font-size: var(--font-size-18);
  font-weight: 700;
  margin-bottom: var(--space-10);
}
.benefit-card p {
  font-size: var(--font-size-14);
  color: var(--mute-color);
  line-height: 1.6;
}

/* ═══ GEO paragraph ═══ */

.section--geo { padding: var(--space-48) 0; }
.geo-paragraph {
  max-width: 720px;
  margin: 0 auto;
  font-size: var(--font-size-16);
  color: var(--mute-color);
  line-height: 1.7;
  text-align: center;
}

/* ═══ Steps ═══ */

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-24);
}
.step {
  flex: 1;
  max-width: 320px;
  text-align: center;
}
.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: var(--font-size-18);
  font-weight: 700;
  margin-bottom: var(--space-20);
}
.step h3 {
  font-size: var(--font-size-18);
  font-weight: 700;
  margin-bottom: var(--space-10);
}
.step p {
  font-size: var(--font-size-14);
  color: var(--mute-color);
  line-height: 1.6;
}
.step__arrow {
  font-size: var(--font-size-24);
  color: var(--light-grey);
  padding-top: 8px;
  flex-shrink: 0;
}

/* ═══ Features ═══ */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: center;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--font-size-16);
  line-height: 1.5;
}
.check {
  color: var(--green-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══ Beta CTA ═══ */

.cta__login {
  margin-top: var(--space-20);
  font-size: var(--font-size-14);
  color: var(--mute-color);
}
.cta__login a {
  font-weight: 600;
}

/* ═══ FAQ ═══ */

.faq {
  max-width: 720px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--light-grey);
}
.faq__item summary {
  padding: var(--space-20) 0;
  font-size: var(--font-size-16);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq__item summary::after {
  content: "+";
  font-size: var(--font-size-20);
  color: var(--mute-color);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq__item[open] summary::after {
  content: "-";
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p {
  padding: 0 0 var(--space-20);
  font-size: var(--font-size-14);
  color: var(--mute-color);
  line-height: 1.6;
}

/* ═══ Footer ═══ */

.footer {
  border-top: 1px solid var(--light-grey);
  padding: var(--space-32) 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__brand {
  font-size: var(--font-size-14);
  font-weight: 700;
  color: var(--text-color);
}
.footer__copy {
  font-size: var(--font-size-12);
  color: var(--mute-color);
}

/* ═══ Responsive ═══ */

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-48);
  }
  .hero { padding: var(--space-64) 0 var(--space-48); }
  .hero h1 { font-size: var(--font-size-32); }
  .hero h2 { font-size: var(--font-size-16); }

  .benefits { grid-template-columns: 1fr; }

  .steps { flex-direction: column; align-items: center; }
  .step__arrow { transform: rotate(90deg); }

  .features { grid-template-columns: 1fr; }

  .section { padding: var(--space-64) 0; }
}
