/* Back40 landing page (back40pos.com) */
.landing main { overflow-x: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.eyebrow { font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--action); margin: 0 0 6px; }
.eyebrow.light { color: var(--gold-light); }
.soon { display: inline-block; vertical-align: middle; font: 600 .68rem var(--font-body); letter-spacing: .04em; text-transform: uppercase; background: var(--warn-bg); color: var(--warn); border-radius: 999px; padding: 2px 8px; }

/* 1. Top menu */
.lnav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.lnav-links { display: flex; gap: 18px; }
.lnav-links a, .lnav-actions a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.lnav-links a:hover { color: var(--action); }
.lnav-actions { display: flex; align-items: center; gap: 14px; }
/* Tabs in the header on wide screens; a hamburger menu on phones and tablets */
.lnav-links a { padding: 6px 2px; border-bottom: 3px solid transparent; }
.lnav-links a.active { color: var(--action); border-bottom-color: var(--action); }
.hamburger { display: none; position: relative; }
.hamburger summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); }
.hamburger summary::-webkit-details-marker { display: none; }
.hamburger .bars, .hamburger .bars::before, .hamburger .bars::after { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .15s; }
.hamburger .bars::before, .hamburger .bars::after { content: ""; position: absolute; left: 0; }
.hamburger .bars::before { top: -6px; } .hamburger .bars::after { top: 6px; }
.hamburger[open] .bars { background: transparent; }
.hamburger[open] .bars::before { transform: translateY(6px) rotate(45deg); }
.hamburger[open] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 50px; width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(36, 48, 31, .18); padding: 8px; display: flex; flex-direction: column; z-index: 20; }
.menu-panel a { padding: 11px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; }
.menu-panel a:hover { background: var(--bg); }
.menu-panel a.active { background: var(--green); color: #fff; }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
@media (max-width: 1180px) {
  .lnav-links { display: none; }
  .hamburger { display: block; }
  .lnav { padding: 10px 16px; }
}
@media (max-width: 520px) { .lnav-login { display: none; } .lnav-actions { gap: 8px; } }
.lsection h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.lsection.honor h1 { color: #fff; }

/* sections */
.lsection { max-width: 1080px; margin: 0 auto; padding: 64px 20px; }
.lsection h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
@media (max-width: 600px) { .lsection { padding: 44px 16px; } }

/* 2. Hero */
.hero2 { max-width: 1080px; margin: 0 auto; padding: 48px 20px 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-logo { width: 220px; height: auto; display: block; margin-bottom: 12px; }
.hero2 h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; margin: 0 0 14px; }
.hero2 .lead { font-size: 1.15rem; max-width: 34em; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn.big-inline { padding: 14px 22px; font-size: 1.05rem; }
@media (max-width: 820px) {
  .hero2 { grid-template-columns: 1fr; text-align: center; padding-top: 28px; }
  .hero-logo { margin: 0 auto 10px; width: 180px; }
  .hero2 .lead { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
}

/* phone mockup */
.phone { justify-self: center; width: 280px; max-width: 100%; border-radius: 38px; padding: 12px; background: #1d241a; box-shadow: 0 24px 48px rgba(36, 48, 31, .25); }
.phone-screen { background: #F4EFE4; color: #24301F; border-radius: 28px; padding: 18px 14px 16px; font-size: .85rem; }
.ps-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 10px; }
.ps-head strong { font: 700 1.1rem var(--font-head); color: #2F4A2E; }
.ps-head span { color: #5E6857; font-size: .75rem; }
.ps-item { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 2px solid #E1D8C6; border-radius: 12px; padding: 8px 10px; margin-bottom: 7px; }
.ps-item.on { border-color: #2F4A2E; }
.ps-name { font-weight: 600; }
.ps-price { color: #5E6857; font-size: .75rem; }
.ps-step { display: flex; align-items: center; gap: 8px; }
.ps-step span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #E1D8C6; font-weight: 700; }
.ps-step span.plus { background: #2F4A2E; color: #fff; }
.ps-total { display: flex; justify-content: space-between; font-size: 1rem; margin: 10px 2px 8px; }
.ps-methods { display: flex; gap: 6px; margin-bottom: 10px; }
.ps-methods span { border: 1px solid #E1D8C6; border-radius: 999px; padding: 3px 9px; font-size: .72rem; font-weight: 600; background: #fff; }
.ps-methods span.on { border-color: #2F4A2E; background: #E2EBDB; }
.ps-pay { background: #A23B2A; color: #fff; text-align: center; border-radius: 10px; padding: 10px; font-weight: 600; }

/* 3. What you sell */
.sell-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.sell-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.sell-card h3 { margin: 8px 0 4px; }
.sell-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.sell-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--warn-bg); font-size: 1.35rem; flex: none; }
@media (max-width: 900px) { .sell-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .sell-grid { grid-template-columns: 1fr; } }

/* 4. Honor-box mode (green section) */
.lsection.honor { max-width: none; background: #2F4A2E; color: #F4EFE4; padding-left: 0; padding-right: 0; }
.honor-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; text-align: center; }
.honor h2, .honor h3 { color: #fff; }
.steps3 { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); text-align: left; }
.steps3 li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 20px; }
.steps3 p { margin: 6px 0 0; color: #DDE5D4; }
.stepnum { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #E2C677; color: #24301F; font: 700 1.1rem var(--font-head); margin-bottom: 8px; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }

/* 5. Features */
.feature-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px 30px; grid-template-columns: repeat(3, 1fr); }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature h3 { margin: 4px 0; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* 6. For vendors */
.vendors { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 14px 0; }
.checks li { padding: 5px 0 5px 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--action); font-weight: 700; }
.statement { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 30px rgba(36, 48, 31, .08); }
.st-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--green); padding-bottom: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.st-head strong { font: 700 1.1rem var(--font-head); color: var(--brand); }
.st-head span { color: var(--muted); font-size: .85rem; }
.statement table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.statement td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.statement td:last-child { text-align: right; }
.statement .st-total td { font-weight: 700; font-size: 1.1rem; border-bottom: 0; color: var(--brand); }
@media (max-width: 820px) { .vendors { grid-template-columns: 1fr; } }

/* 7. Change credit */
.credit-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.credit-grid li { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 18px; }
.credit-grid p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .credit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .credit-grid { grid-template-columns: 1fr; } }

/* 8. Pricing */
.pricing { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; margin-top: 28px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--green); }
.plan .price { font: 700 1.6rem var(--font-head); color: var(--action); margin: 2px 0 6px; }
.plan .btn { margin-top: auto; text-align: center; }
@media (max-width: 680px) { .pricing { grid-template-columns: 1fr; } }

/* 9. Early access */
.signup-band { text-align: center; }
.signup-band h2 { margin-bottom: 6px; }
.early-form { display: flex; gap: 10px; max-width: 480px; margin: 18px auto 0; }
.early-form input[type=email] { flex: 1; min-width: 0; padding: 12px 14px; }
.early-form .btn { white-space: nowrap; }
.early-msg { min-height: 1.5em; font-weight: 600; }
.early-msg.ok { color: var(--ok); } .early-msg.err { color: var(--bad); }
@media (max-width: 460px) { .early-form { flex-direction: column; } }

/* 10. Footer */
.lfoot { background: var(--soil); color: #E9E3D5; text-align: center; padding: 36px 16px; }
.lfoot .brand { color: #fff; justify-content: center; }
.lfoot p { margin: 8px 0 0; }
@media (prefers-color-scheme: dark) { .lfoot { background: #0F140D; } .phone-screen { box-shadow: inset 0 0 0 1px #2f392b; } }

/* FAQ and Help */
.doc { max-width: 820px; }
.doc h2 { margin-top: 36px; }
.lead-sm { font-size: 1.08rem; color: var(--muted); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.4rem; color: var(--action); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 16px 16px; }
.doc-cta { text-align: center; margin-top: 36px; }
.doc-cta h2 { margin-top: 0; }
.toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.toc li { padding: 3px 0; break-inside: avoid; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.doc article { scroll-margin-top: 120px; }
.doc article ul, .doc article ol { padding-left: 22px; }
.doc article li { margin: 6px 0; }
.contact-card { margin-top: 40px; }
.contact-card .two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .contact-card .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash-inline { background: var(--ok-bg); color: var(--ok); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.foot-links a { color: #E9E3D5; }
.foot a { color: inherit; }

/* Real screenshots */
.phone.real { padding: 10px; }
.phone.real img { display: block; width: 100%; height: auto; border-radius: 28px; }
.shots .shot-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: center; margin-top: 40px; }
.shots .shot-row.flip { grid-template-columns: 1.2fr .8fr; }
.shots .shot-row.flip .shot-copy { order: 2; }
.shot-copy h3 { font-size: 1.4rem; margin: 2px 0 8px; }
.shot-copy p { color: var(--muted); }
.frame { display: block; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(36, 48, 31, .14); }
.frame img { display: block; width: 100%; height: auto; }
.frame.desktop { border-top: 22px solid #E1D8C6; position: relative; }
.frame.desktop::before { content: ""; position: absolute; top: -15px; left: 12px; width: 8px; height: 8px; border-radius: 50%; background: #A23B2A; box-shadow: 14px 0 0 #C8A24A, 28px 0 0 #2F4A2E; }
.shot-pair { position: relative; padding-right: 70px; padding-bottom: 30px; }
.frame.phone-sm { position: absolute; right: 0; bottom: 0; width: 34%; border: 6px solid #1d241a; border-radius: 22px; }
@media (max-width: 820px) {
  .shots .shot-row, .shots .shot-row.flip { grid-template-columns: 1fr; gap: 18px; }
  .shots .shot-row.flip .shot-copy { order: 0; }
  .shot-pair { padding-right: 40px; }
}
