/* ============================================================
   KoloQR homepage — plain static styles (no build step).
   Design tokens sourced from the Figma "Home" frame.
   ============================================================ */
:root {
  --green: #78d650;
  --coral: #ff6455;
  --blue: #3b82f6;
  --yellow: #f9e100;
  --darkred: #7c0d02;
  --cream: #f7f1e3;
  --ink: #262626;
  --ink-strong: #171717;
  --ink-black: #0a0a0a;
  --muted: #f5f5f5;

  --r-step: 12px;
  --r-faq: 24px;
  --r-option: 32px;
  --r-pill: 32px;
  --r-inner: 40px;
  --r-card: 48px;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-sans: "Geist", system-ui, sans-serif;
  --shadow-card: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
}
p {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ── Layout helpers ──────────────────────── */
.container {
  width: 100%;
  max-width: 1144px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}
.section {
  padding-block: clamp(64px, 10vw, 120px);
}

/* ── Typography ──────────────────────────── */
.section-title {
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 48px);
}
.section-title.center {
  text-align: center;
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: 0;
  transition: background-color 0.15s, opacity 0.15s;
  text-decoration: none;
}
.btn-dark {
  background: var(--ink-strong);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 8px 16px;
}
.btn-dark:hover {
  background: #000;
}
.btn-white {
  background: #fff;
  color: var(--ink-strong);
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 15px 30px;
  font-size: 15px;
}
.btn-white:hover {
  opacity: 0.9;
}
.btn-ghost {
  background: #fff;
  color: var(--ink-strong);
  border-radius: 8px;
  padding: 8px 16px;
  border: 0;
}
.btn-ghost:hover {
  background: var(--muted);
}

/* ── Hero (green) ────────────────────────── */
.hero {
  background: var(--green);
  padding-top: 16px;
  padding-bottom: clamp(64px, 10vw, 120px);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--r-pill);
  padding: 12px 24px;
  box-shadow: var(--shadow-card);
}
.navbar .logo {
  height: 24px;
  width: auto;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-cta-mobile {
    display: none;
  }
}
.nav-links .btn-dark {
  margin-left: 8px;
}

.hero-head {
  max-width: 860px;
  margin: 48px auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-head h1 {
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  font-size: clamp(36px, 6vw, 60px);
}
.hero-head p {
  font-size: 16px;
  color: var(--ink);
}

/* Generator card — a touch wider than the page so the tool's 3 columns
   sit in one row on laptops. */
.generator-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 40px auto 0;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .generator-wrap {
    padding: 0 32px;
  }
}
.generator-card {
  width: 100%;
  background: #fff;
  border-radius: var(--r-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
@media (min-width: 640px) {
  .generator-card {
    padding: 24px;
  }
}
.generator-card iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* ── Content types (coral) ───────────────── */
.s-content {
  background: var(--coral);
}
.s-content .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 40px;
}
@media (min-width: 640px) {
  .s-content .grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .s-content .grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.option {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--r-option);
  padding: 24px;
}
@media (min-width: 640px) {
  .option {
    gap: 32px;
    padding: 24px 32px;
  }
}
.icon-chip {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--muted);
  color: var(--ink);
}
.option-text .t {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.33;
  color: var(--ink);
}
.option-text .s {
  font-size: 16px;
  color: var(--ink);
}

/* ── Designer features (blue + yellow card) ─ */
.s-features {
  background: var(--blue);
}
.feature-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  background: var(--yellow);
  border-radius: var(--r-card);
  padding: 48px 32px;
}
@media (min-width: 1024px) {
  .feature-card {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 80px 64px;
  }
}
.feature-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.feature-left h2 {
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 48px);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 8px;
}
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature .icon-chip {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.feature .t {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.33;
  color: var(--ink);
}
.feature .s {
  font-size: 16px;
  color: var(--ink);
}

/* ── Use cases (white) — marquee ─────────── */
.s-usecases {
  background: #fff;
  overflow: hidden;
}
.marquee-wrap {
  margin-top: 40px;
  overflow: hidden;
}
.marquee {
  display: flex;
  width: max-content;
  gap: 8px;
  animation: marquee 45s linear infinite;
}
.marquee:hover {
  animation-play-state: paused;
}
.marquee .card {
  width: 400px;
  height: 300px;
  flex: 0 0 auto;
  border-radius: var(--r-card);
  overflow: hidden;
}
.marquee .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
  }
}

/* ── Shapes (white) ──────────────────────── */
.s-shapes {
  background: #fff;
  padding-top: 0;
}
.shapes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 40px;
}
@media (min-width: 1024px) {
  .shapes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.shape-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--r-option);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.shape-card .shape-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
}
.shape-card .shape-name {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 500;
  color: var(--ink);
}

/* ── Image placeholder ───────────────────── */
.img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 0.1);
  color: rgb(38 38 38 / 0.4);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.img-ph.cream {
  background: var(--cream);
}

/* ── How to (yellow + coral card) ────────── */
.s-howto {
  background: var(--yellow);
}
.howto-card {
  background: var(--coral);
  border-radius: var(--r-card);
  padding: 8px;
}
.howto-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
  padding: 24px;
}
@media (min-width: 1024px) {
  .howto-inner {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    padding: 32px;
  }
}
.howto-img {
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--r-inner);
  object-fit: cover;
}
.howto-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.howto-text h2 {
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 48px);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.step-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--r-step);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.step-label {
  font-size: clamp(20px, 2.5vw, 24px);
  color: var(--ink);
}

/* ── FAQ (white) ─────────────────────────── */
.s-faq {
  background: #fff;
}
.faq-list {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--muted);
  border-radius: var(--r-faq);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: none;
  border: 0;
  padding: 24px;
  text-align: left;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 20px);
}
.faq-q svg {
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}
/* Animated open/close — max-height is set to the real content height by
   app.js so the expand/collapse is smooth at any answer length. */
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq-a-in p,
.faq-a-in ul {
  margin: 0;
  padding: 0 24px 24px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.faq-a-in ul {
  padding-left: 44px;
}
.faq-a-in li {
  margin-bottom: 4px;
}

/* ── CTA (coral + dark-red card) + footer ── */
.s-cta {
  background: var(--coral);
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: 40px;
}
.cta-card {
  background: var(--darkred);
  border-radius: var(--r-card);
  padding: 8px;
}
@media (min-width: 1024px) {
  .cta-card {
    padding-left: 64px;
  }
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
  padding: 24px;
}
@media (min-width: 1024px) {
  .cta-inner {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    padding: 32px;
  }
}
.cta-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 1024px) {
  .cta-text {
    padding-block: 56px;
  }
}
.cta-text h2 {
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
}
.cta-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.cta-img {
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--r-inner);
  object-fit: cover;
}
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 80px;
  text-align: center;
}
.footer .logo {
  height: 40px;
  width: auto;
}
.footer p {
  font-size: 16px;
  color: var(--ink);
}
