/* Retail family page.
   Shared layout, cards, typography and surfaces come from styles.css. */

.retail-page {
    --nm-accent: #3E6652;
    --nm-accent-ink: var(--nm-accent);
}

.retail-page .eyebrow,
.retail-page .family-label {
    color: var(--nm-accent);
}

.retail-page .text-link:hover,
.retail-page .text-link:focus-visible {
    color: var(--nm-accent);
}

.retail-hero {
    min-height: min(68vh, 660px);
}

.retail-hero .eyebrow {
    margin-bottom: 1.2rem;
}

.retail-hero h1 {
    max-width: 15ch;
}

.retail-lead-product {
    padding-bottom: var(--nm-page-gap);
}

.retail-featured-card {
    background: var(--nm-surface);
    box-shadow:
        14px 14px 32px var(--nm-shadow-dark),
        -14px -14px 32px var(--nm-shadow-light);
}

.retail-neutral-eyebrow {
    color: var(--nm-text) !important;
}

.family-section-title {
    margin: 1rem 0 0;
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 650;
    letter-spacing: -0.055em;
    line-height: 1;
}

.retail-card-copy {
    max-width: 31rem;
    margin: 1.4rem 0 0;
    color: var(--nm-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.retail-direction {
    padding-top: 0;
}

@media (max-width: 767.98px) {
    .retail-tool-card {
        min-height: 22rem;
    }

    .retail-app-icon {
        width: 76px;
        height: 76px;
        border-radius: 18px;
    }
}


/* ════════════════════════════════════════════════════════════
   Retail app landing page components.
   Shared by single-app landing pages within the retail family
   (e.g. seller-profit-calculator, artisan-profit-analyser).
   Base layout, cards, typography and surfaces still come from
   styles.css — this block adds the components those pages need
   that have no sitewide equivalent.
   ════════════════════════════════════════════════════════════ */

/* ── Layout helpers ──────────────────────────────────────── */

.container--narrow {
    max-width: 46rem;
}

/* Section rhythm: every section below the hero is separated by a
   hairline divider and the sitewide fluid vertical gap, matching
   .story / .featured / .frankphp on the marketing pages. */
.problem,
.calculators,
.costs,
.library,
.scenarios,
.video-section,
.mid-cta,
.toolkit,
.pricing-cta,
.faq {
    padding: var(--nm-page-gap) 0;
    border-top: 1px solid var(--nm-line);
}


/* ── Section headers & shared typography ────────────────── */

.section-title {
    max-width: 26ch;
    margin: 0.6rem 0 1.4rem;
    font-size: clamp(1.8rem, 3.4vw, 2.9rem);
    font-weight: 640;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.section-subtitle {
    max-width: 38rem;
    margin: 0 0 0.5rem;
    color: var(--nm-muted);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.55;
}

.calculators__header,
.costs__header,
.scenarios__header,
.video-section__header,
.faq__header {
    max-width: 42rem;
    margin: 0 auto 1rem;
    text-align: center;
}

.calculators__header .section-title,
.costs__header .section-title,
.scenarios__header .section-title,
.video-section__header .section-title,
.faq__header .section-title {
    max-width: none;
}

.scenarios__subtitle {
    margin-left: auto;
    margin-right: auto;
}

.calculators__intro,
.costs__intro {
    max-width: 40rem;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    color: var(--nm-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}


/* ── Buttons (App Store badge frame) ─────────────────────── */

.btn {
    display: inline-flex;
    border-radius: var(--nm-radius);
    transition: transform var(--nm-transition);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}


/* ── ────────────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────────────── */

.retail-app-hero {
    min-height: min(72vh, 720px);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero__app-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.hero__app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow:
        6px 6px 14px var(--nm-shadow-dark),
        -6px -6px 14px var(--nm-shadow-light);
}

.hero__app-name {
    color: var(--nm-muted);
    font-size: 0.86rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.hero__h1 {
    max-width: 14ch;
    margin: 0 0 1.4rem;
    font-size: clamp(2.4rem, 4.6vw, 4rem);
    font-weight: 660;
    letter-spacing: -0.05em;
    line-height: 1.04;
}

.hero__h1 em {
    color: var(--nm-accent);
    font-style: normal;
}

.hero__subheading {
    max-width: 34rem;
    margin: 0 0 2rem;
    color: var(--nm-muted);
    font-size: 1.15rem;
    line-height: 1.55;
}

.hero__cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.hero__note {
    margin: 0;
    color: var(--nm-muted);
    font-size: 0.85rem;
}

.hero__visual {
    display: flex;
    justify-content: center;
}

.hero__visual img {
    width: 100%;
    max-width: 340px;
    height: auto;
}


/* ── ────────────────────────────────────────────────────────
   PROBLEM
   ──────────────────────────────────────────────────────── */

.problem__statement {
    max-width: 34rem;
    margin: 1.6rem 0;
    padding-left: 1.2rem;
    border-left: 3px solid var(--nm-accent);
    color: var(--nm-text);
    font-size: 1.2rem;
    font-weight: 620;
    line-height: 1.45;
}

.problem__text {
    max-width: 34rem;
    margin: 0 0 0.9rem;
    color: var(--nm-muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* Comparison cards */
.calc-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.calc-card {
    padding: 1.3rem;
    border-radius: var(--nm-radius);
}

.calc-card--bad {
    background: linear-gradient(var(--nm-surface), var(--nm-surface)),
        linear-gradient(rgba(200, 60, 60, 0.06), rgba(200, 60, 60, 0.06));
    background-blend-mode: normal;
}

.calc-card__label {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nm-muted);
}

.calc-card--good .calc-card__label {
    color: var(--nm-accent-ink);
}

.calc-card__item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--nm-line);
    color: var(--nm-muted);
    font-size: 0.88rem;
}

.calc-card__item:last-of-type {
    border-bottom: none;
}

.calc-card__item--missing {
    color: var(--nm-muted);
    font-style: italic;
    opacity: 0.75;
}

.calc-card__result {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--nm-line);
    font-weight: 700;
    font-size: 1rem;
}

.calc-card--bad .calc-card__result {
    color: #a83c3c;
    border-color: rgba(168, 60, 60, 0.35);
}

.calc-card--good .calc-card__result {
    color: var(--nm-accent-ink);
    border-color: var(--nm-accent);
}


/* ── ────────────────────────────────────────────────────────
   CALCULATOR / MODE CARDS — centrepiece section
   ──────────────────────────────────────────────────────── */

.calc-mode-card {
    position: relative;
    height: 100%;
    padding: clamp(1.6rem, 3vw, 2.2rem);
    overflow: hidden;
}

.calc-mode-card::before {
    content: attr(data-mode-num);
    position: absolute;
    z-index: 0;
    top: -0.6rem;
    right: 1.2rem;
    color: rgba(24, 24, 24, 0.05);
    font-size: 6rem;
    font-weight: 750;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.calc-mode-card__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--nm-line);
    border-radius: 100px;
}

.calc-mode-card__badge-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--nm-accent);
}

.calc-mode-card__badge-label {
    color: var(--nm-accent-ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.calc-mode-card__question {
    position: relative;
    margin: 0 0 1rem;
    color: var(--nm-text);
    font-size: 1.3rem;
    font-weight: 660;
    letter-spacing: -0.02em;
    line-height: 1.28;
}

.calc-mode-card__question em {
    color: var(--nm-accent-ink);
    font-style: italic;
}

.calc-mode-card__body {
    position: relative;
    margin: 0 0 1.2rem;
    color: var(--nm-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.calc-mode-card__note {
    position: relative;
    margin: 0 0 1.2rem;
    padding: 0.75rem 1rem;
    border-left: 2px solid var(--nm-accent);
    border-radius: 0 0.5rem 0.5rem 0;
    background: rgba(46, 204, 139, 0.07);
    color: var(--nm-muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.calc-mode-card__note strong {
    color: var(--nm-accent-ink);
    font-weight: 650;
}

.calc-mode-card__use {
    position: relative;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding-top: 1.1rem;
    border-top: 1px solid var(--nm-line);
}

.calc-mode-card__use-label {
    flex-shrink: 0;
    padding-top: 1px;
    color: var(--nm-muted);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.calc-mode-card__use-text {
    color: var(--nm-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}


/* ── ────────────────────────────────────────────────────────
   COSTS
   ──────────────────────────────────────────────────────── */

.cost-factor {
    height: 100%;
    padding: 1.6rem 1.4rem;
}

.cost-factor__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    border-radius: 0.6rem;
    background: rgba(46, 204, 139, 0.1);
}

.cost-factor__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--nm-accent-ink);
    stroke-width: 1.75;
}

.cost-factor__name {
    margin: 0 0 0.4rem;
    color: var(--nm-text);
    font-size: 1.05rem;
    font-weight: 660;
}

.cost-factor__text {
    margin: 0;
    color: var(--nm-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.costs__closing {
    max-width: 34rem;
    margin: 0 auto 1.6rem;
    color: var(--nm-muted);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
}

.costs__platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.platform-chip {
    padding: 0.4rem 1.1rem;
    border: 1px solid var(--nm-line);
    border-radius: 100px;
    color: var(--nm-muted);
    font-size: 0.86rem;
    font-weight: 600;
    transition:
        color var(--nm-transition),
        border-color var(--nm-transition);
}

.platform-chip:hover {
    color: var(--nm-accent-ink);
    border-color: var(--nm-accent);
}

.costs__disclaimer {
    max-width: 34rem;
    margin: 0 auto;
    color: var(--nm-muted);
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: center;
}


/* ── ────────────────────────────────────────────────────────
   PRODUCT LIBRARY
   ──────────────────────────────────────────────────────── */

.library__list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 1.6rem 0 0;
}

.library__list-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.library__list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 0.15rem;
    border-radius: 50%;
    background: rgba(46, 204, 139, 0.12);
}

.library__list-icon svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--nm-accent-ink);
    stroke-width: 2.5;
}

.library__list-text {
    margin: 0;
    color: var(--nm-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.library__list-text strong {
    color: var(--nm-text);
    font-weight: 650;
}

.library__visual img {
    width: 100%;
    height: auto;
}


/* ── ────────────────────────────────────────────────────────
   SCENARIOS
   ──────────────────────────────────────────────────────── */

.scenario-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: clamp(1.6rem, 3vw, 2rem);
}

.scenario-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.scenario-card__situation {
    color: var(--nm-muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scenario-card__mode {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--nm-line);
    border-radius: 100px;
    color: var(--nm-accent-ink);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.scenario-card__text {
    flex: 1;
    margin: 0;
    color: var(--nm-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.scenario-card__text strong {
    color: var(--nm-text);
    font-weight: 650;
}

.scenario-card__outcome {
    margin: 0;
    padding-top: 0.9rem;
    border-top: 1px solid var(--nm-line);
    color: var(--nm-accent-ink);
    font-size: 0.85rem;
    font-weight: 650;
    font-style: italic;
    line-height: 1.5;
}


/* ── ────────────────────────────────────────────────────────
   VIDEO SECTION
   ──────────────────────────────────────────────────────── */

.video-frame {
    max-height: 480px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--nm-radius);
}

.video-frame__video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}


/* ── ────────────────────────────────────────────────────────
   MID-PAGE CTA
   ──────────────────────────────────────────────────────── */

.mid-cta {
    text-align: center;
}

.mid-cta__text {
    max-width: 40rem;
    margin: 0 auto 1.6rem;
    color: var(--nm-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}


/* ── ────────────────────────────────────────────────────────
   TOOLKIT / VISION
   ──────────────────────────────────────────────────────── */

.toolkit__text {
    max-width: 34rem;
    margin: 1.1rem 0 0;
    color: var(--nm-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.toolkit-card {
    padding: 1.6rem;
}

.toolkit-card__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--nm-line);
}

.toolkit-card__item:last-child {
    border-bottom: none;
}

.toolkit-card__dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
}

.toolkit-card__dot--active {
    background: var(--nm-accent);
}

.toolkit-card__dot--coming {
    background: var(--nm-line);
}

.toolkit-card__name {
    color: var(--nm-text);
    font-size: 1rem;
    font-weight: 620;
}

.toolkit-card__status {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.toolkit-card__status--active {
    color: var(--nm-accent-ink);
}

.toolkit-card__status--coming {
    color: var(--nm-muted);
}


/* ── ────────────────────────────────────────────────────────
   PRICING CTA
   ──────────────────────────────────────────────────────── */

.pricing-cta {
    text-align: center;
}

.pricing-cta__tagline {
    margin: 0.6rem 0 1.4rem;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 660;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.pricing-cta__value {
    max-width: 34rem;
    margin: 0 auto 0.75rem;
    color: var(--nm-muted);
    font-size: 1.1rem;
    line-height: 1.65;
}

.pricing-cta__purchase-note {
    margin: 0 0 1.8rem;
    color: var(--nm-muted);
    font-size: 0.95rem;
}

.pricing-cta__group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.pricing-cta__footnote {
    margin: 0;
    color: var(--nm-muted);
    font-size: 0.85rem;
}


/* ── ────────────────────────────────────────────────────────
   FAQ
   ──────────────────────────────────────────────────────── */

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 44rem;
    margin: 0 auto;
}

.faq-item {
    overflow: hidden;
    box-shadow:
        7px 7px 16px var(--nm-shadow-dark),
        -7px -7px 16px var(--nm-shadow-light);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.3rem 1.6rem;
    border: none;
    background: none;
    color: var(--nm-text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    transition: color var(--nm-transition);
}

.faq-item__question:hover,
.faq-item__question:focus-visible {
    color: var(--nm-accent-ink);
}

.faq-item__chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--nm-muted);
    stroke-width: 2;
    transition: transform 0.25s ease;
}

.faq-item.is-open .faq-item__chevron {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-item__answer {
    max-height: 32rem;
}

.faq-item__answer-inner {
    padding: 0 1.6rem 1.3rem;
    border-top: 1px solid var(--nm-line);
    padding-top: 1rem;
    color: var(--nm-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}


/* ── ────────────────────────────────────────────────────────
   RETAIL APP LANDING PAGE — RESPONSIVE
   ──────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .retail-app-hero {
        min-height: auto;
    }

    .hero__h1 {
        max-width: none;
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .calc-compare {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item__answer,
    .faq-item__chevron,
    .btn {
        transition: none !important;
    }
}
