/*
 * Kitchen Partners landing page.
 *
 * Deliberately has almost no new color decisions — it reuses the tokens,
 * section rhythm (dark hero → light → dark technical block → light → coral
 * CTA → dark footer) and component classes from styles.css so this page
 * reads as the same product as the homepage, not a spin-off microsite.
 */

/* Sticky nav CTA — the homepage nav has no button, this one needs one per
   the partner-page brief ("sticky nav with Become a Partner CTA"). Grouped
   with the mobile toggle so .navbar's space-between still only sees three
   items (logo · links · right group), matching the homepage's layout math. */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-cta {
    padding: 10px 22px;
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .nav-cta {
        display: none;
    }
}

/* Required pill-group left unanswered on Next */
.p-group-error span {
    border-color: #ef4444;
}


/* ---- Hero -------------------------------------------------------------- */
.p-hero {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: var(--ink);
}

.p-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.p-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 19, 15, 0.88) 0%, rgba(23, 19, 15, 0.55) 55%, rgba(23, 19, 15, 0.35) 100%),
        linear-gradient(0deg, rgba(23, 19, 15, 0.6), transparent 40%);
}

.p-hero-inner {
    position: relative;
    z-index: 2;
    padding: 9rem 0 5rem;
    max-width: 720px;
}

.p-hero h1 {
    font-family: var(--display);
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: white;
    margin-bottom: 1.5rem;
}

.p-hero-sub {
    font-size: 1.12rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
    margin-bottom: 2.25rem;
}

/* ---- Founding partner strip --------------------------------------------- */
.p-founding-strip {
    position: relative;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
}

.p-founding-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.4rem 0;
}

.p-founding-inner i {
    flex: none;
    margin-top: 0.2rem;
    color: var(--primary);
    font-size: 1.05rem;
}

.p-founding-inner p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray);
}

.p-founding-inner b {
    color: var(--ink);
}

/* ---- Why partner grid — six cards, reuse .value-card --------------------- */
.p-why-grid {
    max-width: 1160px;
    margin: 0 auto;
}

.p-why-grid .value-card {
    max-width: 340px;
    flex: 1 1 300px;
}

/* ---- Co-branding / trusted culinary partners ----------------------------- */
.p-cobrand {
    padding: 7rem 0;
    background: var(--paper-2);
}

.p-cobrand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.p-eyebrow-light {
    background: rgba(255, 90, 54, 0.1);
    border: 1px solid rgba(255, 90, 54, 0.3);
    color: var(--primary-dark);
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.p-title-left {
    text-align: left;
    margin: 0 0 1.25rem;
    font-size: 2.35rem;
}

.p-cobrand-copy > p {
    color: var(--gray);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 1.75rem;
    max-width: 480px;
}

.p-cobrand-list {
    list-style: none;
    display: grid;
    gap: 0.7rem;
    margin-bottom: 2.25rem;
}

.p-cobrand-list li {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    color: var(--ink);
    font-size: 0.96rem;
}

.p-cobrand-list i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* Co-branded product mockup card */
.p-cobrand-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0 1.5rem 1.5rem 0;
}

/* The real nutrition-facts label, tucked behind the mockup card like a
   second sheet in a stack — click through to see it full-size. */
.p-mockup-label-peek {
    position: absolute;
    top: 2.5rem;
    right: 0;
    width: 150px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    transform: rotate(4deg);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0;
}

.p-mockup-label-peek:hover {
    transform: rotate(4deg) translateY(-6px);
}

.p-mockup-label-peek img {
    display: block;
    width: 100%;
    height: auto;
}

.p-mockup {
    position: relative;
    z-index: 1;
}

@media (max-width: 500px) {
    .p-mockup-label-peek {
        width: 96px;
        top: 1.25rem;
    }
}

.p-mockup {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
}

.p-mockup-head {
    padding: 0.9rem 1.25rem;
    background: var(--ink);
}

.p-mockup-brand {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1rem;
    color: white;
    letter-spacing: -0.01em;
}

.p-mockup-brand i {
    font-size: 0.7rem;
    color: var(--amber);
    margin: 0 0.2rem;
}

.p-mockup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.p-mockup-dish {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    object-position: center;
    background: #fff;
}

.p-mockup-info {
    padding: 1.1rem 1.1rem 1.1rem 0.5rem;
    display: flex;
    flex-direction: column;
}

.p-mockup-info h4 {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.p-mockup-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 90, 54, 0.1);
    color: var(--primary-dark);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.9rem;
}

.p-mockup-macros {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.p-mockup-macros b {
    display: block;
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
}

.p-mockup-macros small {
    display: block;
    font-size: 0.66rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.p-mockup-prepared {
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--line);
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
}

.p-mockup-prepared span {
    color: var(--gray);
}

.p-mockup-prepared b {
    font-family: var(--display);
    font-size: 1rem;
    color: var(--ink);
}

.p-mockup-prepared em {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--gray);
}

.p-mockup-foot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--paper-2);
    border-top: 1px solid var(--line);
}

.p-mockup-qr {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-size: 1rem;
}

.p-mockup-foot span {
    font-size: 0.74rem;
    color: var(--gray);
}

/* ---- How it works timeline (sits inside the dark .engine section) -------- */
.p-timeline {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 0 auto 5rem;
    max-width: 1080px;
}

.p-timeline li {
    position: relative;
    flex: 1 1 12%;
    min-width: 118px;
    text-align: center;
    padding: 0 0.6rem;
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.62);
}

.p-timeline li::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: -0.55rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
}

.p-timeline li:last-child::after {
    content: none;
}

.p-timeline span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0 auto 0.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--amber);
    font-family: var(--display);
    font-size: 0.85rem;
}

.p-timeline li.is-partner span {
    background: linear-gradient(140deg, rgba(255, 90, 54, 0.9), rgba(242, 161, 58, 0.75));
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 90, 54, 0.28);
}

.p-timeline li.is-partner {
    color: rgba(255, 255, 255, 0.88);
}

/* Light-background variant, for the partner-qualification path timeline
   which sits inside a "paper" section rather than the dark engine block. */
.p-timeline--light li {
    color: var(--gray);
}

.p-timeline--light li::after {
    color: var(--line);
}

.p-timeline--light span {
    background: white;
    border-color: var(--line);
    box-shadow: var(--shadow-soft);
}

.p-timeline--light li.is-partner {
    color: var(--ink);
}

/* Recipe standardization panel — same two-column eng-stage layout as the
   homepage engine section, used directly here */
.p-standardize {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- What we provide / expect checklists --------------------------------- */
.p-provide {
    padding: 6rem 0 5rem;
    background: var(--paper);
}

.p-expect {
    padding: 5rem 0 6rem;
    background: var(--paper-2);
}

.p-checklist {
    list-style: none;
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem 1.5rem;
}

.p-checklist li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--ink);
    box-shadow: var(--shadow-soft);
}

.p-checklist li i {
    color: var(--primary);
    font-size: 0.85rem;
}

.p-checklist--expect li {
    background: var(--paper);
}

.p-checklist--expect li i {
    color: var(--amber);
}

/* ---- FAQ ------------------------------------------------------------------ */
.p-faq {
    padding: 6rem 0 7rem;
    background: var(--paper);
}

.faq-list {
    max-width: 760px;
    margin: 3rem auto 0;
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: white;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.faq-q i {
    flex: none;
    color: var(--gray);
    transition: transform 0.25s ease;
}

.faq-item.is-open .faq-q i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-a {
    max-height: 320px;
}

.faq-a p {
    padding: 0 1.4rem 1.3rem;
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ---- Application form ------------------------------------------------------ */
.p-apply {
    padding: 6rem 0 7rem;
    background: var(--paper-2);
}

.p-form {
    max-width: 760px;
    margin: 3rem auto 0;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
}

/* Honeypot — visually and structurally hidden, but still a real, fillable
   field so unsophisticated bots take the bait. display:none is deliberately
   avoided since some scrapers skip those. */
.p-honey {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Business search — Google Places Autocomplete, loaded lazily on focus (or
   immediately if the page was opened with a ?placeId= link) so casual
   visitors never trigger a Places API call at all. */
.p-place-search-group {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--line);
}

.p-place-search {
    position: relative;
}

.p-place-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.9rem;
    pointer-events: none;
}

.p-place-search input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    border: 1.5px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: var(--paper-2);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.p-place-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.12);
}

.p-place-search-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.p-place-search-hint.is-error {
    color: var(--primary-dark);
}

/* The real widget, once mounted, replaces the fallback input visually —
   give it the same footprint so nothing jumps. */
gmp-place-autocomplete {
    display: block;
    width: 100%;
}

.p-place-search.is-live i {
    display: none;
}

.p-place-search.is-live #placeSearchFallback {
    display: none;
}

/* Google's dropdown renders in a body-level .pac-container; nudge it to
   match the page's type and radius instead of browser-default styling. */
.pac-container {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    font-family: "Inter", sans-serif;
    margin-top: 4px;
}

.p-form-progress {
    margin-bottom: 2rem;
}

.p-form-progress-bar {
    height: 6px;
    border-radius: 4px;
    background: var(--gray-light);
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.p-form-progress-bar span {
    display: block;
    height: 100%;
    width: 14.28%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--amber));
    transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.p-form-progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray);
}

.p-form-progress-steps span.is-active {
    color: var(--primary-dark);
}

.p-form-step {
    display: none;
    border: none;
    padding: 0;
    margin: 0;
}

.p-form-step.is-active {
    display: block;
    animation: pStepIn 0.35s ease both;
}

@keyframes pStepIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.p-form-step legend {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.5rem;
    padding: 0;
}

.p-form-note {
    font-size: 0.88rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    background: var(--paper-2);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--amber);
}

.p-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
}

.p-form-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.p-span-2 {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .p-form-grid,
    .p-form-grid--3 {
        grid-template-columns: 1fr;
    }

    .p-span-2 {
        grid-column: span 1;
    }
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.pill {
    position: relative;
}

.pill input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.pill span {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--gray-light);
    font-size: 0.86rem;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    user-select: none;
}

.pill span em {
    font-style: normal;
    margin-left: 0.3rem;
    font-size: 0.72rem;
    color: var(--gray);
}

.pill input:checked + span {
    border-color: var(--primary);
    background: rgba(255, 90, 54, 0.08);
    color: var(--primary-dark);
    font-weight: 600;
}

.pill input:focus-visible + span {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.p-form-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.p-form-step-label {
    flex: 1;
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray);
}

/* .btn-outline (styles.css) is styled white-on-transparent for the dark
   hero — invisible on this card's white background, so re-skin it here. */
.p-form-back {
    visibility: hidden;
    border-color: var(--gray-light);
    color: var(--ink);
}

.p-form-back:hover {
    background: var(--paper-2);
    border-color: var(--gray);
}

.p-form-back.is-visible {
    visibility: visible;
}

.p-form-submit {
    display: none;
}

.p-form-submit.is-visible {
    display: inline-flex;
}

.p-form-next.is-hidden {
    display: none;
}

@media (max-width: 640px) {
    .p-form {
        padding: 1.75rem 1.25rem;
    }

    .p-form-progress-steps span {
        display: none;
    }
}

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
    .p-cobrand-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .p-title-left {
        font-size: 2rem;
    }

    .p-standardize {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .p-checklist {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .p-hero h1 {
        font-size: 2.5rem;
    }

    .p-hero-inner {
        padding-top: 8rem;
    }

    .p-mockup-body {
        grid-template-columns: 1fr;
    }

    .p-mockup-dish {
        min-height: 220px;
    }

    .p-checklist {
        grid-template-columns: 1fr;
    }

    .p-timeline li {
        flex: 1 1 45%;
        margin-bottom: 1.5rem;
    }

    .p-timeline li::after {
        content: none;
    }
}

/* ============================================================
   Theme — light mode only
   ------------------------------------------------------------
   header/footer/.engine/.about/.investor already invert from
   styles.css since this page reuses those classes; the page-specific
   piece here is the photo hero (same invert trick, counter-inverting
   the real photo). The co-brand nutrition-label mockup is left white
   on purpose — it's a facsimile of a printed label, not a themed UI
   surface.
   ============================================================ */
.p-hero {
    filter: invert(1) hue-rotate(180deg);
}

.p-hero-img {
    filter: invert(1) hue-rotate(180deg);
}
