/* Market Ninja: coming soon page
   Colours sampled from the logo: orange, deep teal, charcoal. */

:root {
    --orange: #F7861B;
    --orange-dark: #E26A06;
    --orange-soft: #FFF1E0;
    --teal: #0A5560;
    --teal-dark: #073F47;
    --teal-soft: #E4F1F2;
    --ink: #2B2D2F;
    --muted: #5C6670;
    --bg: #F8F9F9;
    --card: #FFFFFF;
    --line: #E1E7E9;
    --error: #B42318;
    --ok: #0B7A4B;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(10, 85, 96, 0.10);
    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.2;
    margin: 0 0 .5em;
    color: var(--ink);
}

p { margin: 0 0 1em; }
a { color: var(--teal); }

.wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar { border-bottom: 1px solid var(--line); background: #fff; }
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 12px;
}
.topbar nav { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: .95rem; }
.topbar nav a { text-decoration: none; color: var(--ink); }
.topbar nav a:hover { color: var(--teal); }
.topbar nav .nav-cta {
    background: var(--teal);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
}
.topbar nav .nav-cta:hover { background: var(--teal-dark); color: #fff; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange-soft);
    color: #8A3F00;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 24px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #1d1d1d; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-light { background: #fff; color: var(--teal-dark); }
.btn-light:hover { background: var(--orange-soft); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn.is-loading i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(247, 134, 27, .14), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(10, 85, 96, .10), transparent 60%),
        var(--bg);
    padding: 40px 0 64px;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero .logo { width: min(100%, 420px); margin: 0 0 8px -8px; }
.hero h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -.01em;
}
.hero h1 .accent { color: var(--orange-dark); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 40em; }

/* Notify form */
.notify-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    max-width: 560px;
    margin-top: 24px;
}
.notify-label { display: block; font-family: var(--font-head); font-weight: 700; margin-bottom: 10px; }
.notify-row { display: flex; flex-direction: column; gap: 10px; }
.notify-row input { flex: 1; }
.fine { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }

/* Honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Stall map preview */
.map-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    max-width: 460px;
    margin: 0 auto;
    transform: rotate(1.5deg);
}
.map-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--font-head); }
.map-tag {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--teal-soft);
    color: var(--teal);
    padding: 4px 10px;
    border-radius: 999px;
}
/* Market layout: stall blocks split by footpaths */
.market-map {
    display: grid;
    grid-template-columns: 1fr 1fr .5fr 1fr 1fr .5fr 1fr 1fr;
    grid-template-rows: auto auto 18px auto auto 34px;
    gap: 5px;
    background: #DDEBDD;            /* grounds / grass */
    border: 2px solid #C8DBC8;
    border-radius: 14px;
    padding: 8px;
}
.path { background: #EFE5D2; border-radius: 4px; }          /* footpaths */
.path-v1 { grid-column: 3; grid-row: 1 / 7; }
.path-v2 { grid-column: 6; grid-row: 1 / 7; }
.path-h1 { grid-column: 1 / -1; grid-row: 3; }
.path-h2 {
    grid-column: 1 / -1;
    grid-row: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7A6A48;
}
.stall {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .72rem;
}
.stall-b { background: var(--orange); color: #1d1d1d; }
.stall-r { background: var(--teal); color: #fff; }
.stall-a { background: #fff; color: var(--muted); border: 2px dashed #9DB0A0; }
.map-legend { list-style: none; display: flex; gap: 16px; margin: 16px 0 0; padding: 0; font-size: .85rem; color: var(--muted); }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot-b { background: var(--orange); }
.dot-r { background: var(--teal); }
.dot-a { background: #fff; border: 2px dashed #B8C4C8; }

/* ---------- Sections ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255, 255, 255, .85); }

.band { padding: 64px 0; }
.band-teal { background: var(--teal); }

/* Feature lists */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list h4 { font-size: 1rem; margin: 0 0 2px; }
.feature-list p { margin: 0; font-size: .95rem; color: var(--muted); }
.fi {
    flex: 0 0 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--orange-soft);
    color: var(--orange-dark);
    font-size: 1.1rem;
}

/* Teal band variant */
.band-teal .feature-list { grid-template-columns: 1fr; gap: 24px; }
.band-teal .feature-list h4 { color: #fff; }
.band-teal .feature-list p { color: rgba(255, 255, 255, .82); }
.band-teal .fi { background: rgba(255, 255, 255, .12); color: var(--orange); }

/* Audience cards */
.features { padding: 72px 0 56px; }
.audience-grid { display: grid; gap: 24px; }
.audience-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}
.audience-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.audience-card h3 { margin: 0; font-size: 1.25rem; }
.audience-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--teal);
    color: #fff;
    font-size: 1.2rem;
}
.disclaimer { text-align: center; color: var(--muted); font-size: .9rem; margin: 28px 0 0; }

/* Steps */
.steps-section { padding: 24px 0 72px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: none; }
.steps li {
    background: var(--teal-soft);
    border-radius: var(--radius);
    padding: 24px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }
.step-num {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--orange);
    color: #1d1d1d;
    font-family: var(--font-head);
    font-weight: 800;
    margin-bottom: 12px;
}

/* Cost effective */
.cost { background: linear-gradient(135deg, var(--orange-dark), var(--orange)); padding: 48px 0; }
.cost-inner { display: grid; gap: 20px; align-items: center; justify-items: start; }
.cost h2 { color: #1d1d1d; font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; margin-bottom: 8px; }
.cost p { color: #2a1700; margin: 0; max-width: 46em; }
.cost-icon { font-size: 2.2rem; color: #1d1d1d; }

/* ---------- Contact ---------- */
.contact { padding: 72px 0; }
.contact-grid { display: grid; gap: 32px; }
.contact-copy h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.contact-copy p { color: var(--muted); font-size: 1.05rem; }

.contact-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid #C9D3D6;
    border-radius: 10px;
    padding: 12px 14px;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10, 85, 96, .18); }
[aria-invalid="true"] { border-color: var(--error) !important; }

.field-error { color: var(--error); font-size: .88rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }

.turnstile-slot { margin: 12px 0 16px; min-height: 65px; }

.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #D5DADD; padding: 28px 0; font-size: .92rem; }
.footer a { color: #fff; }
.footer-inner { display: flex; flex-direction: column; gap: 6px; }
.footer p { margin: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
    .notify-row { flex-direction: row; }
    .field-row { grid-template-columns: 1fr 1fr; }
    .band-teal .feature-list { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
    .hero { padding: 56px 0 88px; }
    .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
    .audience-grid { grid-template-columns: repeat(3, 1fr); }
    .band-teal .feature-list { grid-template-columns: repeat(3, 1fr); }
    .cost-inner { grid-template-columns: auto 1fr auto; gap: 28px; }
    .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn.is-loading i { animation: none; }
}

/* Small phones: keep the top bar on one line */
.pill { white-space: nowrap; }
@media (max-width: 480px) {
    .topbar nav a:not(.nav-cta) { display: none; }
}
