/* =========================================================================
   Shopora public seller page, store.shopora.cm/ (landing sheet 13).
   Light green #5DA249 as the main colour, dark green #183615 text, Poppins
   (tagline in Fira Sans Condensed). Fonts served from our own server
   (public/fonts/landing, SIL OFL). One column on phones.
   ========================================================================= */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/landing/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/landing/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/landing/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/landing/poppins-800.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/landing/fira-sans-condensed-700.woff2') format('woff2'); }

:root {
    --sp-green: #5DA249;
    --sp-green-edge: #437A33;      /* the button's darker bottom edge */
    --sp-green-text: #3F7A30;      /* light green, deepened, for small text on white */
    --sp-dark: #183615;
    --sp-tint: #EEF5E8;            /* very light green page background */
    --sp-card: #EEF5E8;
    --sp-muted: #4A5946;
    --sp-line: rgba(24, 54, 21, 0.10);
    --sp-gutter: 24px;
    --sp-max: 1290px;
    --sp-logo-w: 160px;
    --sp-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

body.sp {
    margin: 0;
    background: #fff;
    color: var(--sp-dark);
    font-family: var(--sp-font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}
.sp img { max-width: 100%; height: auto; }

.sp-container { width: 100%; max-width: var(--sp-max); margin: 0 auto; padding: 0 var(--sp-gutter); }

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

.sp-header { background: var(--sp-tint); border-bottom: 1px solid var(--sp-line); }
.sp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.sp-brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--sp-dark); flex-shrink: 0; }
.sp-logo { display: block; width: var(--sp-logo-w); height: auto; }
.sp-tagline {
    margin-top: 2px;
    padding-left: calc(var(--sp-logo-w) * 0.30);
    font-family: 'Fira Sans Condensed', 'Arial Narrow', var(--sp-font);
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1.2;
    white-space: nowrap;
}
.sp-login {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    border: 2px solid var(--sp-dark);
    border-radius: 999px;
    color: var(--sp-dark);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}
.sp-login:hover { background: rgba(24, 54, 21, 0.06); color: var(--sp-dark); }
.sp-login:focus-visible { outline: 3px solid var(--sp-dark); outline-offset: 3px; }
/* M7: section links, then the login link and a small green "Join free". */
.sp-nav { display: flex; gap: 6px 22px; flex-wrap: wrap; justify-content: center; }
.sp-nav a { color: var(--sp-dark); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.sp-nav a:hover { color: var(--sp-green-text); text-decoration: underline; }
.sp-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sp-join-small {
    display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px;
    background: var(--sp-green-text); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.sp-join-small:hover { filter: brightness(1.08); color: #fff; }
.sp-join-small:focus-visible { outline: 3px solid var(--sp-dark); outline-offset: 3px; }
.sp-header { position: sticky; top: 0; z-index: 10; }

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

.sp-hero { background: var(--sp-tint); padding: 48px 0 64px; }
.sp-hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sp-problem {
    display: inline-block;
    margin: 0 0 18px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--sp-green-text);
    font-weight: 700;
    font-size: 15px;
}
.sp-headline {
    margin: 0 0 20px;
    font-size: clamp(2.3rem, 1.2rem + 2.4vw, 3.15rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.02em;
}
.sp-offer { margin: 0 0 30px; max-width: 34em; font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem); line-height: 1.5; color: var(--sp-muted); }

/* The join button: light green with white text (bold, large: 3.1 : 1 passes for large text). */
.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 38px;
    border-radius: 999px;
    background: var(--sp-green);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 0 var(--sp-green-edge);
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
}
.sp-btn:hover { filter: brightness(1.04); color: #fff; }
.sp-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--sp-green-edge); }
.sp-btn:focus-visible { outline: 3px solid var(--sp-dark); outline-offset: 4px; }
.sp-reassure { margin: 22px 0 0; font-size: 0.95rem; color: var(--sp-muted); }
.sp-reassure a, .sp-note a, .sp-faq-a a { color: var(--sp-green-text); font-weight: 600; }
.sp-tick { flex-shrink: 0; color: var(--sp-green-text); }
.sp-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 0.95rem; font-weight: 600; }
.sp-badges li { display: inline-flex; align-items: center; gap: 7px; }
/* Kevin 8 Nov, D3: "Delivered = paid." big, the detail from the admin. */
.sp-paid { margin: -12px 0 28px; padding: 12px 16px; border-left: 4px solid var(--sp-green, #5f9b2f); background: rgba(95, 155, 47, 0.08); border-radius: 0 10px 10px 0; max-width: 34em; }
.sp-paid-headline { margin: 0; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 800; line-height: 1.2; color: var(--sp-dark, #1f2933); }
.sp-paid-detail { margin: 6px 0 0; font-size: 1rem; line-height: 1.5; color: var(--sp-muted); }

.sp-picture { border-radius: 24px; overflow: hidden; box-shadow: 0 22px 44px rgba(24, 54, 21, 0.16); background: #FBEACE; }
.sp-picture picture, .sp-picture img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Steps ---------- */

.sp-section { padding: 64px 0; }
.sp-title { margin: 0 0 24px; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1.15; }
.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--sp-steps, 4), minmax(0, 1fr)); gap: 20px; }
.sp-step { padding: 24px 24px 28px; background: var(--sp-card); border-radius: 18px; }
.sp-step-number {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--sp-green-text);   /* deeper green: white number stays readable */
    color: #fff;
    font-weight: 700;
    font-size: 17px;
}
.sp-step-title { margin: 0 0 6px; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.sp-step-text { margin: 0; font-size: 0.97rem; line-height: 1.55; color: var(--sp-muted); }

/* ---------- M7 sections ---------- */

.sp-lead { margin: -12px 0 28px; max-width: 40em; font-size: 1.1rem; color: var(--sp-muted); }
.sp-tinted { background: var(--sp-tint); }
.sp-tinted .sp-step, .sp-tinted .sp-card { background: #fff; }
.sp-narrow { max-width: 860px; }

.sp-cards { display: grid; gap: 20px; }
.sp-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-card { padding: 24px; background: var(--sp-card); border-radius: 18px; }
.sp-card-title { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.sp-card-text { margin: 0; font-size: 0.97rem; line-height: 1.55; color: var(--sp-muted); }

/* The guide: dark green. */
.sp-dark { background: var(--sp-dark); color: #fff; }
.sp-dark .sp-card { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.sp-dark .sp-card-text { color: rgba(255, 255, 255, 0.85); }

/* How you get paid: five steps in a row, "Delivered = paid" in green. */
.sp-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.sp-flow-step { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; background: #fff; border-radius: 16px; border: 1px solid var(--sp-line); }
.sp-flow-step:not(:last-child)::after {
    content: ''; position: absolute; top: 50%; right: -10px; width: 8px; height: 8px;
    border-top: 2px solid var(--sp-green-text); border-right: 2px solid var(--sp-green-text); transform: translateY(-50%) rotate(45deg);
}
.sp-flow-number { font-size: 13px; font-weight: 700; color: var(--sp-green-text); }
.sp-flow-title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.sp-flow-text { font-size: 0.92rem; color: var(--sp-muted); line-height: 1.45; }
.sp-flow-step--on { background: var(--sp-green-text); border-color: var(--sp-green-text); color: #fff; }
.sp-flow-step--on .sp-flow-number, .sp-flow-step--on .sp-flow-text { color: rgba(255, 255, 255, 0.9); }

.sp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.sp-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; background: #fff; border: 1px solid var(--sp-line); border-radius: 999px; font-size: 0.95rem; font-weight: 600; }
.sp-categories { margin-top: 0; }
.sp-note { margin: 20px 0 0; font-size: 0.95rem; color: var(--sp-muted); }

/* What it costs: the table and "Sell nothing, pay nothing." */
.sp-costs-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sp-costs { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--sp-line); border-radius: 18px; overflow: hidden; }
.sp-costs th, .sp-costs td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sp-line); }
.sp-costs tr:last-child th, .sp-costs tr:last-child td { border-bottom: 0; }
.sp-costs th { font-weight: 600; width: 45%; }
.sp-costs td strong { display: block; color: var(--sp-green-text); }
.sp-costs-note { display: block; margin-top: 2px; font-size: 0.9rem; color: var(--sp-muted); }
.sp-costs-card { padding: 28px; background: var(--sp-dark); color: #fff; border-radius: 18px; }
.sp-costs-card-title { margin: 0 0 8px; font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.sp-costs-card-text { margin: 0; color: rgba(255, 255, 255, 0.85); }

/* What's at stake. */
.sp-stakes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sp-stake { padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--sp-line); }
.sp-stake ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sp-stake li { display: flex; gap: 8px; align-items: flex-start; }
.sp-stake--wait li { color: var(--sp-muted); }
.sp-stake--wait li::before { content: '–'; font-weight: 700; }
.sp-stake--join { border: 2px solid var(--sp-green-text); }

/* Seller questions: every answer is in the HTML (details/summary). */
.sp-faq { display: flex; flex-direction: column; gap: 10px; }
.sp-faq-item { background: var(--sp-card); border-radius: 14px; }
.sp-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; }
.sp-faq-item summary::-webkit-details-marker { display: none; }
.sp-faq-item summary::after { content: '+'; font-size: 1.4rem; font-weight: 700; color: var(--sp-green-text); line-height: 1; }
.sp-faq-item[open] summary::after { content: '–'; }
.sp-faq-item summary:focus-visible { outline: 3px solid var(--sp-dark); outline-offset: 2px; border-radius: 14px; }
.sp-faq-q { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.sp-faq-a { margin: 0; padding: 0 20px 18px; color: var(--sp-muted); line-height: 1.6; }

/* The paragraph for search engines. */
.sp-about { padding-top: 16px; }
.sp-about-title { margin: 0 0 10px; font-size: 1.25rem; font-weight: 700; }
.sp-about p { margin: 0; color: var(--sp-muted); line-height: 1.65; }

/* ---------- Closing ---------- */

.sp-closing { padding: 64px 0 72px; background: var(--sp-dark); color: #fff; text-align: center; }
.sp-closing-text { margin: -14px 0 28px; color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.sp-closing-title { margin: 0 auto 28px; max-width: 22em; font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.3rem); font-weight: 700; line-height: 1.2; }

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

.sp-footer { padding: 40px 0 48px; background: var(--sp-dark); color: rgba(255, 255, 255, 0.8); }
.sp-footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.sp-footer-logo { display: block; width: 120px; height: auto; filter: brightness(0) invert(1); }
.sp-footer-copy { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.sp-footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.sp-footer-links a { color: #fff; font-size: 14px; text-decoration: none; }
.sp-footer-links a:hover { text-decoration: underline; }
.sp-contact { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; font-size: 14px; }
.sp-contact a { color: #fff; text-decoration: none; }
.sp-contact a:hover { text-decoration: underline; }
.sp-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.sp-social a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 16px; color: #fff; font-size: 13px; text-decoration: none; }

@media (max-width: 1100px) {
    .sp-nav { display: none; }
    .sp-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sp-flow-step::after { display: none; }
    .sp-cards--4, .sp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phones (<= 760px): one column ---------- */

@media (max-width: 760px) {
    :root { --sp-gutter: 20px; --sp-logo-w: 118px; }
    .sp-header-inner { min-height: 64px; }
    .sp-tagline { font-size: 12px; }
    .sp-login { font-size: 13.5px; padding: 8px 14px; }
    .sp-hero { padding: 28px 0 40px; }
    .sp-hero-grid, .sp-steps, .sp-cards--3, .sp-cards--4, .sp-flow, .sp-costs-grid, .sp-stakes { grid-template-columns: minmax(0, 1fr); }
    .sp-join-small { padding: 9px 14px; font-size: 13.5px; }
    .sp-header-actions { gap: 6px; }
    /* M7: the two buttons drop under the logo when there's no room beside it. */
    .sp-header { position: static; }
    .sp-header-inner { flex-wrap: wrap; row-gap: 10px; }
    .sp-costs th, .sp-costs td { padding: 14px 14px; }
    .sp-hero-grid { gap: 32px; }
    .sp-headline { font-size: clamp(1.9rem, 0.6rem + 6vw, 2.5rem); }
    .sp-btn { display: flex; width: 100%; padding: 18px 22px; font-size: 20px; }
    .sp-section { padding: 48px 0; }
    .sp-footer-inner { flex-direction: column; }
}

@media (max-width: 360px) {
    :root { --sp-gutter: 16px; --sp-logo-w: 100px; }
    .sp-header-inner { gap: 8px; }
    .sp-tagline { font-size: 10.5px; padding-left: calc(var(--sp-logo-w) * 0.24); }
    .sp-login { font-size: 12.5px; padding: 7px 11px; }
    .sp-join-small { font-size: 12.5px; padding: 8px 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-btn { transition: none; }
}
