:root {
  --bg: oklch(0.97 0.005 255);
  --bg2: oklch(0.94 0.008 255);
  --bg3: oklch(0.91 0.008 255);
  --surface: oklch(0.99 0.003 255);
  --border: oklch(0.88 0.012 255);
  --text: oklch(0.12 0.02 255);
  --muted: oklch(0.48 0.015 255);
  --accent: oklch(0.55 0.2 250);
  --accent2: oklch(0.55 0.16 160);
  --accent-glow: oklch(0.55 0.2 250 / 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 48px;
  height: 88px;
  display: flex; align-items: center; justify-content: space-between;
  background: oklch(0.99 0.003 255 / 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-brand-collab {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 14px);
  flex-wrap: wrap;
  background: transparent;
}
.nav-brand-collab--footer {
  justify-content: center;
}
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  background: transparent;
}
.nav-logo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.nav-brand-x {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}
/* Same cap height; YOCO constrained by width so it does not overpower Front Flow */
.nav-logo-img {
  height: 72px;
  width: auto;
  max-width: min(340px, 52vw);
  display: block;
  background: transparent;
  mix-blend-mode: multiply;
}
.nav-logo-yoco-link {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 4px;
}
.nav-logo-yoco-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.nav-logo-yoco {
  height: 32px;
  width: auto;
  max-width: min(44px, 14vw);
  max-height: 32px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}
footer .nav-logo-img {
  height: 80px;
  max-width: min(360px, 78vw);
  mix-blend-mode: multiply;
}
footer .nav-logo-yoco {
  height: 38px;
  width: auto;
  max-width: min(52px, 16vw);
  max-height: 38px;
  object-fit: contain;
}
footer .nav-brand-x {
  font-size: 1.5rem;
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.btn-primary {
  background: var(--accent); color: white;
  border: none; border-radius: 8px;
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: oklch(0.5 0.2 250); transform: translateY(-1px); }

/* HERO */
.hero {
  min-height: auto;
  padding: 180px 48px 48px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 70% 50%, oklch(0.55 0.2 250 / 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 20% 80%, oklch(0.55 0.16 160 / 0.05) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  opacity: 0.45;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--accent); color: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 28px;
}
.hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.3); } }

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.h1-accent { color: var(--accent); }
.hero-desc {
  font-size: 18px; line-height: 1.7; color: var(--muted);
  max-width: 480px; margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: 'DM Sans', sans-serif; text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats {
  display: flex; gap: 40px; margin-top: 52px; padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; font-weight: 700; color: var(--text);
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: min(520px, 92vw);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  box-shadow: 0 24px 64px oklch(0 0 0 / 0.12), 0 0 0 1px var(--border);
  display: block;
}
.hero-pill {
  position: absolute; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; backdrop-filter: blur(20px);
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.08);
}
.hero-pill-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.hero-pill-text { font-size: 12px; line-height: 1.4; }
.hero-pill-text strong { font-weight: 600; font-size: 13px; display: block; }
.hero-pill-text span { color: var(--muted); }
.pill-1 { top: -20px; left: -30px; }
.pill-2 { bottom: 30px; right: -20px; }

/* PRODUCTS */
.section { padding: 100px 48px; }
section#products.section {
  padding-top: 48px;
}
.section-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700; letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 16px;
}
.section-desc { font-size: 17px; color: var(--muted); max-width: 560px; line-height: 1.7; }

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
  align-items: stretch;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  box-shadow: 0 4px 24px oklch(0 0 0 / 0.04);
}
.product-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 40px oklch(0 0 0 / 0.08); }
.product-card-accent { border-top: 3px solid var(--accent); }
.product-card-accent2 { border-top: 3px solid var(--accent2); }

/* Same viewport for both products; landscape shots use cover for full-bleed fill */
.product-img {
  width: 100%;
  height: clamp(300px, 40vw, 460px);
  flex-shrink: 0;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Horizontal flip so both hero product shots face the same way (paired with unmirrored Order card) */
.product-img--mirror img {
  transform: scaleX(-1);
}

.product-body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.product-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
  display: inline-block; margin-bottom: 16px;
}
.label-retail { background: oklch(0.55 0.2 250 / 0.12); color: var(--accent); }
.label-order { background: oklch(0.55 0.16 160 / 0.12); color: var(--accent2); }
.product-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px; font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.product-desc { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.product-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.product-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted);
}
.feature-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.check-blue { background: oklch(0.55 0.2 250 / 0.12); color: var(--accent); }
.check-green { background: oklch(0.55 0.16 160 / 0.12); color: var(--accent2); }

.product-price {
  margin-top: auto; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.price-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 700;
}
.price-sub { font-size: 13px; color: var(--muted); }

/* HOW IT WORKS */
.how-bg { background: var(--bg2); }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 60px;
}
.step {
  padding: 32px 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px;
  position: relative; transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px oklch(0 0 0 / 0.04);
}
.step:hover { border-color: var(--accent); box-shadow: 0 8px 28px oklch(0 0 0 / 0.06); }
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px; font-weight: 700; color: var(--border);
  line-height: 1; margin-bottom: 20px;
  letter-spacing: -2px;
}
.step-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
.step-line {
  position: absolute; top: 40px; right: -12px;
  width: 24px; height: 1px; background: var(--border);
  z-index: 1;
}
.step:last-child .step-line { display: none; }

/* FEATURES */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 60px;
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
}
.feature-item {
  padding: 36px 32px; background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.feature-item:hover { background: var(--bg2); }
.feature-item:nth-child(3n) { border-right: none; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: oklch(0.55 0.2 250 / 0.08);
  border: 1px solid oklch(0.55 0.2 250 / 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.feature-title { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* PRICING */
.pricing-section-intro { text-align: center; }
.pricing-section-intro .section-desc { margin-left: auto; margin-right: auto; }

.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 60px; max-width: 900px; margin-left: auto; margin-right: auto;
  align-items: stretch;
}
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px; position: relative; overflow: hidden;
  box-shadow: 0 4px 24px oklch(0 0 0 / 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, oklch(0.97 0.02 250) 0%, oklch(0.96 0.015 255) 100%);
}
.pricing-card.featured::before {
  content: 'Popular';
  position: absolute; top: 20px; right: -28px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700; padding: 4px 36px;
  transform: rotate(45deg);
  letter-spacing: 0.05em;
}
.pricing-card-intro {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.pricing-product {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
  min-height: 2.75em;
  line-height: 1.35;
}
.pricing-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 700; margin-bottom: 20px;
  min-height: 2.875rem;
  line-height: 1.2;
}
.pricing-price-row {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px;
  min-height: 3rem;
  flex-wrap: wrap;
}
.pricing-amount { font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 700; line-height: 1; }
.pricing-unit { font-size: 14px; color: var(--muted); line-height: 1.35; }
.pricing-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 32px;
  min-height: calc(2 * 1.55em);
}
.pricing-divider { height: 1px; background: var(--border); margin: 0 0 24px; flex-shrink: 0; }
.pricing-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
  flex: 1 1 auto;
  min-height: 0;
}
.pricing-items li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.pi-icon { flex-shrink: 0; margin-top: 1px; }
.btn-primary-full { width: 100%; text-align: center; padding: 14px 20px; }
.pricing-card > .btn-primary-full { margin-top: 24px; flex-shrink: 0; }

.pricing-footnote {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 0 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

/* CTA */
.cta-section {
  padding: 120px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 800px 400px at 50% 50%, oklch(0.55 0.2 250 / 0.08) 0%, transparent 70%);
}
.cta-section h2 { margin-bottom: 20px; }
.cta-section .section-desc { margin: 0 auto 40px; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.contact-form-wrap {
  max-width: 520px; margin: 60px auto 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
  box-shadow: 0 4px 24px oklch(0 0 0 / 0.04);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.form-field--channels { border: none; padding: 0; margin: 0 0 14px; min-width: 0; }
.form-field-legend {
  font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0; margin-bottom: 10px;
}
.contact-channel-row {
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center;
}
.contact-channel-option {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text);
  text-transform: none; letter-spacing: normal; cursor: pointer;
}
.contact-channel-option input {
  width: 16px; height: 16px; accent-color: var(--accent);
}
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  transition: border-color 0.2s; outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field select option { background: var(--surface); }
.form-field textarea { resize: vertical; min-height: 90px; }

/* FOOTER */
footer {
  padding: 40px 48px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand { margin-bottom: 6px; background: transparent; }
.footer-left { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* SCROLL ANIMATIONS */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* TWEAKS PANEL */
#tweaks-panel {
  display: none; position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; width: 260px;
  box-shadow: 0 20px 60px oklch(0 0 0 / 0.12);
  font-size: 13px;
}
#tweaks-panel h4 { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.tweak-row { margin-bottom: 14px; }
.tweak-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.tweak-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.tweak-swatch {
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
  border: 2px solid transparent; transition: border-color 0.2s;
}
.tweak-swatch.active { border-color: var(--text); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 136px 24px 40px; gap: 40px; }
  .products-grid, .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .features-grid .feature-item:nth-child(2n) { border-right: none; }
  .features-grid .feature-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .section { padding: 70px 24px; }
  section#products.section { padding-top: 36px; }
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  footer { padding: 30px 24px; flex-direction: column; text-align: center; }
  .pill-1 { top: 8px; left: 8px; max-width: calc(100% - 16px); }
  .pill-2 { bottom: 8px; right: 8px; left: auto; max-width: calc(100% - 16px); }
  .hero-pill { padding: 10px 12px; }
  .hero-pill-text { font-size: 11px; }
  .hero-pill-text strong { font-size: 12px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .product-img {
    height: clamp(280px, 68vw, 440px);
  }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .features-grid .feature-item { border-right: none; }
  .form-row { grid-template-columns: 1fr; }
  .stat-val { font-size: 26px; }
}
