/* Naya Laptop — storefront shell, shaped after the CommerceFlow reference and
 * painted with the project's own D-0 green palette.
 *
 * Layered on top of site.css: the palette, typography and the FAQ/contact blocks
 * stay where they are; this file adds the storefront chrome (header, search,
 * navigation, cards, category tiles, footer) and the demo panels. Nothing here
 * escalates with an important flag, and nothing points at a remote origin — the
 * preview container serves these files straight from a NAS volume, unbuilt.
 *
 * Reference thresholds from the design contract: 1200 / 992 / 776 / 576 / 330.
 */

/* ------------------------------------------------------------------ tokens --- */

.nl-page {
    --nl-radius: 10px;
    --nl-radius-sm: 7px;
    /* The navigation band's height on the wide layout, where the hero runs behind
     * it instead of below it. Measured, not guessed: 44px of link plus 8px of
     * padding on either side. */
    --nl-nav-h: 60px;
    --nl-card-shadow: var(--shadow-card);
    --nl-card-shadow-hover: var(--shadow-card-hover);
    --nl-ring: var(--ring);
    background: var(--paper);
}

.nl-icon { display: block; flex: 0 0 auto; }

.nl-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.nl-container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* ------------------------------------------------------------------ buttons --- */

.nl-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: 1px solid var(--brand);
    border-radius: var(--nl-radius-sm);
    background: var(--brand);
    color: var(--on-brand);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.nl-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--on-dark); transform: translateY(-1px); }
.nl-btn-sm { min-height: 44px; padding-inline: 15px; font-size: 13px; }
.nl-btn-lg { min-height: 54px; padding-inline: 26px; font-size: 15px; }
.nl-btn-lime { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.nl-btn-lime:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
/* The outline button for the photo bands: nothing filled, so it reads as part of
 * the picture rather than a card dropped on top of it. */
.nl-btn-band { background: transparent; border-color: var(--on-band-soft); color: var(--on-dark); }
.nl-btn-band:hover { background: rgba(255, 255, 255, .12); border-color: var(--on-dark); color: var(--on-dark); }
.nl-btn-dark { background: var(--ink); border-color: var(--ink); }
.nl-btn-dark:hover { background: var(--ink-dark); border-color: var(--ink-dark); }
.nl-btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.nl-btn-ghost:hover { background: var(--soft); border-color: var(--brand); color: var(--brand); }
.nl-btn-quiet { background: transparent; border-color: transparent; color: var(--muted); padding-inline: 10px; }
.nl-btn-quiet:hover { background: transparent; border-color: transparent; color: var(--brand); }
.nl-btn[disabled], .nl-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

.nl-icon-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--nl-radius-sm);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}

.nl-icon-btn:hover { border-color: var(--brand); color: var(--brand); }

.nl-page a:focus-visible,
.nl-page button:focus-visible,
.nl-page input:focus-visible,
.nl-page select:focus-visible,
.nl-page summary:focus-visible {
    outline: 3px solid var(--nl-ring);
    outline-offset: 3px;
}

/* ------------------------------------------------------------------- header --- */

.nl-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: var(--veil-strong);
    backdrop-filter: saturate(160%) blur(12px);
}

.nl-header-bar { border-bottom: 1px solid var(--line); }

/* The brand opens the bar, then the flexible search field and utility group
 * follow in visual and tab order. */
.nl-header-inner {
    min-height: 78px;
    display: grid;
    /* No track for the burger above 992px: it is `display: none` there, and a
     * reserved track would open a gap between the field and the utilities. */
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 22px;
}

.nl-header-inner > .nl-brand { grid-column: 1; justify-self: start; }
.nl-header-inner > .nl-search { grid-column: 2; min-width: 0; }
.nl-header-inner > .nl-utilities { grid-column: 3 / 5; justify-self: end; min-width: 0; }
.nl-header-inner > .nl-burger { grid-column: 4; }

.nl-utilities { display: flex; align-items: center; justify-content: flex-end; gap: 22px; min-width: 0; }

.nl-burger {
    display: none;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--nl-radius-sm);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}

.nl-brand {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.nl-brand img { display: block; }
.nl-brand-text { display: flex; flex-direction: column; line-height: 1.05; letter-spacing: -.03em; }
.nl-brand-text strong { font-size: 18px; font-weight: 780; }
.nl-brand-text span { color: var(--brand); font-size: 11px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }

.nl-search { display: flex; align-items: center; gap: 0; min-width: 0; }

.nl-search-input {
    min-height: 44px;
    width: 100%;
    min-width: 0;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: var(--nl-radius-sm) 0 0 var(--nl-radius-sm);
    background: var(--paper);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
}

.nl-search-input::placeholder { color: var(--muted-2); }

.nl-search-button {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid var(--brand);
    border-radius: 0 var(--nl-radius-sm) var(--nl-radius-sm) 0;
    background: var(--brand);
    color: var(--on-brand);
    cursor: pointer;
}

.nl-search-button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--on-dark); }

.nl-quick { display: flex; align-items: center; gap: 6px; }

.nl-quick-link {
    position: relative;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: var(--nl-radius-sm);
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.nl-quick-link:hover, .nl-quick-link.is-current { background: var(--soft); color: var(--brand); }

.nl-cart-badge[hidden] { display: none; }

.nl-cart-badge {
    min-width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--brand);
    color: var(--on-brand);
    font-size: 11px;
    font-weight: 800;
}

/* The band thins instead of closing the top of the page: the frame behind it
 * shows through, the way the sticky header above already behaves, and the veil
 * token keeps one measured value for both themes. */
.nl-nav {
    background: var(--band-veil);
    backdrop-filter: saturate(140%) blur(10px);
}

.nl-nav-inner { min-height: var(--nl-nav-h); display: flex; align-items: center; justify-content: space-between; gap: 22px; }

.nl-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nl-nav-list a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 0;
    color: var(--on-band-soft);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.nl-nav-list a:hover { background: rgba(255, 255, 255, .1); color: var(--on-dark); }
.nl-nav-list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); color: var(--on-dark); }

.nl-nav-cta { display: flex; align-items: center; gap: 10px; padding-block: 8px; }

/* --------------------------------------------------------------- page shell --- */

.nl-main { padding-block: 0 0; }
.nl-page-body { padding-block: 34px 78px; }

.nl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.nl-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ring); }

.nl-section { padding-block: 74px; }
.nl-section-tight { padding-block: 46px; }
.nl-section-alt { background: var(--white); border-block: 1px solid var(--line); }

.nl-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 30px; }
.nl-section-head h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.045em; }
.nl-section-head p { max-width: 560px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* -------------------------------------------------------------------- hero --- */

/* One field, not two blocks. The owner's reference headers put the product and
 * the words on one continuous surface, with the type standing in the picture's
 * own empty space instead of beside it in a second column — so the studio shot
 * *is* the band, the machine keeps the right half, and the copy sits in the
 * field's negative space on the left. The wash behind the copy is the same
 * gradient the catalog band and the closing call to action already carry, so the
 * measured on-dark pairs are the shipped ones and the type never floats on raw
 * pixels. The photo was cut by tools/make_banners.py from data/media/, never a
 * listing frame — those albums carry the supplier's tiled watermark. */
.nl-hero { position: relative; background: var(--brand-dark); overflow: hidden; }

/* The frame is taller than the band, and the machine sits low in it, so the 62%
 * object-position is what keeps the deck and its shadow inside the band instead
 * of cutting the machine off at its base. The <picture> fills the box this
 * wrapper already had: every width tools/make_banners.py writes was cut from the
 * same frame, so the srcset candidates crop identically and only their byte
 * count differs. */
.nl-hero-shot {
    position: absolute;
    inset: 0;
}

.nl-hero-shot picture { display: block; width: 100%; height: 100%; }
.nl-hero-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }

.nl-hero-shot::after {
    position: absolute;
    inset: 0;
    /* Two layers, because the words need two kinds of quiet: the horizontal wash
     * fades out early enough that the machine stays the picture's subject rather
     * than a ghost, and the short one along the bottom holds the pill row and the
     * note down where the studio floor is at its brightest. */
    background:
        linear-gradient(90deg, var(--band-wash-strong) 0 14%, var(--band-wash-mid) 36%, var(--band-wash-soft) 60%, transparent 96%),
        linear-gradient(0deg, var(--band-wash-mid) 0 4%, transparent 44%);
    content: "";
}

.nl-hero-grid { position: relative; z-index: 1; padding-block: 64px 70px; }

.nl-hero h1 { max-width: 620px; margin-bottom: 20px; color: var(--on-dark); font-size: clamp(38px, 4.6vw, 60px); }
.nl-hero .nl-eyebrow { color: var(--on-dark-accent); }
.nl-hero .nl-eyebrow-dot { background: var(--accent); }
.nl-hero-lead { max-width: 540px; margin-bottom: 26px; color: var(--on-dark); font-size: 17px; line-height: 1.7; }
.nl-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.nl-hero-note { margin: 20px 0 0; color: var(--on-band-soft); font-size: 12px; }

/* Spec pills: the batch's own ranges, printed the way a spec sheet reads. Every
 * figure is an aggregate of the price list, never a claim about one machine.
 * Outlined rather than filled — a solid chip would punch a hole in the frame,
 * and the outline lets the photo run behind the row the way the reference does. */
.nl-hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.nl-hero-facts li {
    padding: 8px 14px;
    border: 1px solid var(--on-band-soft);
    border-radius: 30px;
    color: var(--on-dark);
    font-size: 12.5px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

/* The copy column keeps its own measure, which is also what keeps the machine
 * clear of the type: everything past 620px is picture. */
.nl-hero-grid > div:first-child { max-width: 620px; }

/* --------------------------------------------------------- category tiles --- */

.nl-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }

/* The artwork is the tile: a brand card carries the vendored simple-icons file,
 * scaled to the card box, and the tinted art panel fills the surface that used
 * to stay white around a 42px glyph. The label stays a quiet strip underneath. */
.nl-cat {
    min-height: 176px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--nl-radius);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nl-cat:hover { border-color: var(--brand); box-shadow: var(--nl-card-shadow); transform: translateY(-2px); }
.nl-cat-art {
    flex: 1 1 auto;
    min-height: 118px;
    display: grid;
    place-items: center;
    padding: 14px 16px;
    background: var(--soft);
    color: var(--brand);
    transition: color .18s ease;
}
.nl-cat:hover .nl-cat-art { color: var(--brand); }
/* The mark paints with currentColor and fills the panel's own box: the cropped
 * viewBox in NAYA_BRAND_MARKS is what keeps a wordmark as wide as the card. */
.nl-cat-art .nl-brand-mark { display: block; width: 100%; height: 100%; max-height: 96px; }
.nl-cat-art .nl-cat-glyph { width: 78px; height: 78px; }
.nl-cat-text { display: flex; flex-direction: column; gap: 2px; padding: 11px 15px 13px; }
.nl-cat strong { font-size: 14px; }
.nl-cat span.nl-cat-count { color: var(--muted); font-size: 12px; font-weight: 600; }

/* ----------------------------------------------------------------- scenes --- */

/* Atmosphere strip: photos cut by tools/make_banners.py. The row answers "where
 * will it work" and never claims a specification on a photo's behalf — the note
 * underneath says the pictures are illustrative. */
.nl-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }

.nl-scene {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--nl-radius);
    background: var(--white);
    overflow: hidden;
}

.nl-scene-photo { display: block; width: 100%; height: auto; aspect-ratio: 760 / 500; object-fit: cover; }
.nl-scene-body { display: flex; flex-direction: column; gap: 7px; padding: 18px 20px 20px; }
.nl-scene h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.nl-scene p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.nl-scenes-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 16px 0 0;
    color: var(--muted-2);
    font-size: 12px;
}
.nl-scenes-note svg { flex: 0 0 auto; color: var(--glyph); }

/* ------------------------------------------------------------------- steps --- */

.nl-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.nl-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--nl-radius);
    background: var(--white);
}

.nl-step-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--nl-radius-sm);
    background: var(--brand-dark);
    color: var(--accent);
}

.nl-step h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.nl-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ------------------------------------------------------------- product grid --- */

.nl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
/* Home-only: always three filled rows. The catalog remains unbounded. */
@media (max-width: 1200px) {
    .nl-grid--featured > .nl-card:nth-child(n+10) { display: none; }
}
@media (max-width: 776px) {
    .nl-grid--featured > .nl-card:nth-child(n+7) { display: none; }
}
@media (max-width: 576px) {
    .nl-grid--featured > .nl-card:nth-child(n+4) { display: none; }
}

.nl-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--nl-radius);
    background: var(--white);
    box-shadow: var(--shadow-badge);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nl-card:hover { border-color: var(--line-strong); box-shadow: var(--nl-card-shadow-hover); transform: translateY(-2px); }

.nl-card-link {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px 16px 12px;
    color: inherit;
    text-decoration: none;
}

.nl-card-media {
    position: relative;
    /* Same shape as the catalog card, so the home page and the catalog show one
     * product the same way. The photo fills it edge to edge; the line drawing
     * only appears for an offer whose photos are not installed yet. */
    aspect-ratio: 3 / 2;
    min-height: 138px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    border-radius: var(--nl-radius-sm);
    background: linear-gradient(150deg, var(--tint), var(--soft));
    color: var(--glyph);
    overflow: hidden;
}

.nl-card-art { width: 76px; height: auto; stroke-width: 1.1; }
.nl-card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.nl-card-cond {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 20px;
    background: var(--veil);
    color: var(--brand);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nl-card-cond-new { color: var(--brand); }
.nl-card-brand { color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nl-card-title { font-size: 14px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.nl-card-meta { color: var(--muted); font-size: 12px; line-height: 1.5; }

.nl-card-foot {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 6px;
    padding-top: 11px;
    border-top: 1px solid var(--line-faint);
}
.nl-card-price { font-size: 17px; font-weight: 780; letter-spacing: -.03em; }
.nl-card-note { color: var(--muted-2); font-size: 10px; }

.nl-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding: 0 12px 12px;
}

.nl-grid-foot { display: flex; justify-content: center; margin-top: 34px; }

/* ------------------------------------------------------------------- panels --- */

.nl-panel {
    border: 1px solid var(--line);
    border-radius: var(--nl-radius);
    background: var(--white);
    padding: 26px;
}

.nl-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.nl-panel-head h2, .nl-panel-head h3 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.nl-panel-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.nl-page-head { margin-bottom: 26px; }
.nl-page-head h1 { margin-bottom: 12px; font-size: clamp(30px, 3.6vw, 44px); }
.nl-page-lead { max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.nl-demo {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 26px;
    border: 1px solid var(--notice-border);
    border-left: 4px solid var(--ring);
    border-radius: var(--nl-radius-sm);
    background: var(--notice-bg);
}

.nl-demo-icon { flex: 0 0 auto; color: var(--notice-icon); }
.nl-demo-title { margin: 0 0 5px; font-size: 13px; font-weight: 800; }
.nl-demo-text { margin: 0 0 5px; color: var(--notice-text); font-size: 12.5px; line-height: 1.65; }
.nl-demo-text:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------- crumbs --- */

.nl-crumbs { margin-bottom: 20px; }
.nl-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nl-crumbs li { color: var(--muted); font-size: 12px; }
.nl-crumbs li + li::before { margin-right: 8px; color: var(--line-strong); content: "/"; }
.nl-crumbs a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
.nl-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.nl-crumbs li[aria-current="page"] { color: var(--ink); font-weight: 650; }

/* ------------------------------------------------------------ empty states --- */

.nl-empty { padding: 46px 26px; border: 1px dashed var(--line); border-radius: var(--nl-radius); background: var(--white); text-align: center; }
.nl-empty h2, .nl-empty h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.03em; }
.nl-empty p { max-width: 520px; margin: 0 auto 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.nl-empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* -------------------------------------------------------------- demo: cart --- */

.nl-split { display: grid; grid-template-columns: 1.55fr .95fr; gap: 24px; align-items: start; }

.nl-line-items { margin: 0; padding: 0; list-style: none; }
.nl-line {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-faint);
}
.nl-line:last-child { border-bottom: 0; }
.nl-line-thumb {
    width: 68px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: var(--nl-radius-sm);
    background: linear-gradient(150deg, var(--tint), var(--soft));
    color: var(--glyph);
}
.nl-line-title { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; }
.nl-line-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.nl-line-price { font-size: 15px; font-weight: 760; letter-spacing: -.02em; text-align: right; }
.nl-line-price small { display: block; color: var(--muted-2); font-size: 10px; font-weight: 600; }
.nl-line-remove {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--nl-radius-sm);
    background: var(--white);
    color: var(--muted);
    cursor: pointer;
}
.nl-line-remove:hover { border-color: #c9705e; color: #a8422c; }

.nl-summary { position: sticky; top: 96px; }
.nl-summary-rows { margin: 0; }
.nl-summary-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-block: 9px; border-bottom: 1px solid var(--line-faint); }
.nl-summary-rows > div:last-child { border-bottom: 0; }
.nl-summary-rows dt { color: var(--muted); font-size: 13px; }
.nl-summary-rows dd { margin: 0; font-size: 13px; font-weight: 700; }
.nl-summary-total dd { font-size: 20px; letter-spacing: -.03em; }
.nl-summary-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.nl-summary-actions .nl-btn { width: 100%; }

/* ------------------------------------------------- demo: checkout/auth/panel --- */

.nl-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.nl-field label { color: var(--ink); font-size: 12px; font-weight: 700; }
.nl-field input, .nl-field select, .nl-field textarea {
    min-height: 44px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--nl-radius-sm);
    background: var(--paper);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
}
.nl-field textarea { min-height: 110px; resize: vertical; }
.nl-field-hint { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.nl-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nl-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }

.nl-choices { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.nl-choice {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: var(--nl-radius-sm);
    background: var(--paper);
}
.nl-choice-icon { flex: 0 0 auto; color: var(--brand); }
.nl-choice > .nl-choice-icon { color: var(--brand); }
.nl-choice strong { display: block; font-size: 13.5px; }
.nl-choice span { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.nl-choice.is-muted { background: var(--white); border-style: dashed; }

.nl-tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.nl-tab {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.nl-tab:hover { color: var(--brand); }
.nl-tab.is-current { border-bottom-color: var(--brand); color: var(--ink); }
.nl-tab-panels > [data-tab-panel] { display: none; }
.nl-tab-panels > [data-tab-panel].is-current { display: block; }

.nl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.nl-stat { padding: 20px; border: 1px solid var(--line); border-radius: var(--nl-radius); background: var(--white); }
.nl-stat-icon { color: var(--brand); margin-bottom: 10px; }
.nl-stat-value { display: block; font-size: 24px; font-weight: 780; letter-spacing: -.04em; }
.nl-stat-label { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.nl-timeline { margin: 0; padding: 0; list-style: none; }
.nl-timeline li { display: flex; gap: 14px; padding-block: 13px; border-bottom: 1px solid var(--line-faint); }
.nl-timeline li:last-child { border-bottom: 0; }
.nl-timeline-icon { flex: 0 0 auto; color: var(--brand); }
.nl-timeline strong { display: block; font-size: 13.5px; }
.nl-timeline span { color: var(--muted); font-size: 12.5px; }

/* ------------------------------------------------------------------- footer --- */

.nl-footer { margin-top: 12px; border-top: 1px solid var(--line); background: var(--line-soft); }

.nl-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 34px;
    padding-block: 52px 40px;
}

.nl-footer-brand p { max-width: 340px; margin: 14px 0 16px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.nl-footer-mail { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; color: var(--brand); font-size: 13px; font-weight: 700; text-decoration: none; }
.nl-footer-mail:hover { text-decoration: underline; }

/* Shared locale contacts: isolate international numbers in Arabic layout. */
.nl-contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.nl-contact-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--nl-radius-sm);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.nl-contact-links a:hover { border-color: var(--brand); text-decoration: underline; }
.nl-contact-phone { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.nl-messenger-icon { width: 20px; height: 20px; flex: none; }
.contact-card .nl-messenger-icon, :root[data-theme="dark"] .nl-footer .nl-messenger-icon { filter: invert(1); }
.contact-card .nl-contact-links a {
    color: var(--on-dark);
    border-color: rgba(255,255,255,.4);
    background: rgba(0,0,0,.18);
}
.contact-card .nl-contact-links a:hover { border-color: var(--on-dark); }
.nl-footer-brand .nl-contact-links { margin-top: 8px; }

.nl-footer-title { margin: 0 0 14px; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
/* Every link in the footer is a real tap target, not a 15px text sliver: M-TAP
 * applies to these rows as much as it does to a button. */
.nl-footer-col ul { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.nl-footer-col a { min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: 13px; text-decoration: none; }
.nl-footer-col a:hover { color: var(--brand); text-decoration: underline; }
.nl-footer-col li { color: var(--muted); font-size: 13px; }
.nl-footer-plain li { padding-left: 18px; position: relative; }
.nl-footer-plain li::before { position: absolute; left: 0; color: var(--brand); content: "✓"; font-size: 11px; }

.nl-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding-block: 20px;
    border-top: 1px solid var(--line);
}
.nl-footer-bottom p { max-width: 720px; margin: 0; color: var(--muted-2); font-size: 11.5px; line-height: 1.65; }
.nl-footer-note { flex: 0 0 auto; color: var(--brand); font-weight: 700; }

/* ---------------------------------------------------- reference thresholds --- */

@media (max-width: 1200px) {
    .nl-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nl-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .nl-footer-grid > .nl-footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 993px) {
    /* The navigation band is a child of the sticky header, so on this layout it is
     * a known 60px tall. Pulling the hero up by exactly that much runs the frame
     * behind the translucent bar — the chrome floats on the picture, the way the
     * reference headers do — and the copy adds the same amount back on top so its
     * distance to the chrome is unchanged. Below 992px the bar is a closed menu,
     * so nothing is pulled anywhere. */
    .nl-hero { margin-top: calc(-1 * var(--nl-nav-h)); }
    .nl-hero-grid { padding-block: calc(var(--nl-nav-h) + 64px) 70px; }
}

@media (max-width: 992px) {
    .nl-header-inner {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 12px;
        padding-block: 18px 12px;
    }
    .nl-header-inner > .nl-brand { grid-column: 1; grid-row: 1; justify-self: start; }
    .nl-header-inner > .nl-utilities { grid-column: 2 / 4; grid-row: 1; justify-self: end; }
    .nl-header-inner > .nl-burger { grid-column: 4; grid-row: 1; }
    .nl-header-inner > .nl-search { grid-column: 1 / -1; grid-row: 2; }
    .nl-burger { display: inline-flex; }
    .nl-search-input { border-right: 1px solid var(--line); }
    .nl-quick-text { display: none; }
    .nl-quick-link { padding-inline: 9px; }
    .nl-utilities { gap: 8px; }

    /* Collapsed into the burger, the list goes back to one flat dark surface: it
     * opens over the fold, not over the picture, so there is nothing to let show
     * through and a translucent menu would only read as a smear. */
    .nl-nav { display: none; background: var(--brand-dark); backdrop-filter: none; }
    .nl-header[data-nav-open="1"] .nl-nav { display: block; }
    .nl-nav-inner { display: block; padding-block: 8px 14px; }
    .nl-nav-list { display: block; }
    .nl-nav-list li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
    .nl-nav-list a { display: flex; width: 100%; padding-inline: 4px; }
    .nl-nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
    .nl-nav-cta { padding-block: 12px 4px; }

    /* Stacked, the field stays one surface: the photo still owns the band and the
     * wash turns vertical, so a phone opens on the heading rather than on a
     * second block it has to scroll past to find the words. The wash stops before
     * the band does: the copy keeps the quiet it needs, and the extra padding at
     * the foot leaves the picture a strip of its own to be seen in, below the
     * pill row where no text sits on top of it. */
    .nl-hero-grid { padding-block: 48px 128px; }
    .nl-hero-shot::after { background: linear-gradient(180deg, var(--band-wash-mid) 0 56%, transparent 90%); }
    .nl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .nl-split { grid-template-columns: 1fr; }
    .nl-summary { position: static; }
    .nl-section { padding-block: 58px; }
}

@media (max-width: 776px) {
    .nl-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nl-stats { grid-template-columns: 1fr; }
    .nl-line { grid-template-columns: 56px minmax(0, 1fr) auto; row-gap: 10px; }
    .nl-line-thumb { width: 56px; height: 48px; }
    .nl-line-price { grid-column: 2 / 3; text-align: left; }
    .nl-line-remove { grid-column: 3 / 4; grid-row: 1 / 2; }
    /* Full-width rows only: a two-across link list left the odd fifth link on a
     * half-empty row, and the third section sat alone in half a row. */
    .nl-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; padding-block: 42px 30px; }
    .nl-footer-grid > .nl-footer-col:last-child { grid-column: 1 / -1; }
    .nl-footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
    .nl-section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 576px) {
    .nl-container { width: min(100% - 32px, 520px); }
    .nl-header-inner { gap: 12px; }
    .nl-brand-text strong { font-size: 16px; }
    .nl-cats { grid-template-columns: 1fr; }
    /* One card per row: the artwork moves beside the label so the stack stays
     * scannable without every card growing taller than the screen. */
    .nl-cat { min-height: 108px; flex-direction: row; align-items: stretch; }
    .nl-cat-art { flex: 0 0 106px; min-height: 0; padding: 10px; }
    .nl-cat-art .nl-brand-mark { max-height: 64px; }
    .nl-cat-art .nl-cat-glyph { width: 56px; height: 56px; }
    .nl-cat-text { flex: 1 1 auto; justify-content: center; padding: 10px 14px; }
    .nl-steps { grid-template-columns: 1fr; }
    /* One card per row: the photo moves beside the text so a scripted scenario
     * reads as a strip instead of a tall wall of stacked pictures. */
    .nl-scenes { grid-template-columns: 1fr; gap: 14px; }
    .nl-scene { flex-direction: row; align-items: stretch; }
    .nl-scene-photo { flex: 0 0 128px; width: 128px; height: auto; aspect-ratio: 3 / 4; }
    .nl-scene-body { padding: 14px 16px 16px; }
    .nl-grid { grid-template-columns: 1fr; }
    .nl-hero-facts { gap: 8px; margin-top: 18px; }
    .nl-hero-facts li { padding: 7px 11px; font-size: 12px; }
    .nl-hero h1 { font-size: clamp(32px, 9vw, 44px); }
    .nl-hero-actions { align-items: stretch; flex-direction: column; }
    .nl-hero-actions .nl-btn { width: 100%; }
    .nl-field-row { grid-template-columns: 1fr; }
    .nl-section { padding-block: 44px; }
    .nl-panel { padding: 20px; }
    .nl-form-actions { align-items: stretch; flex-direction: column; }
    .nl-form-actions .nl-btn { width: 100%; }
    .nl-footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 380px) {
    .nl-header-inner > .nl-brand .nl-brand-text { display: none; }
}

@media (max-width: 330px) {
    .nl-container { width: min(100% - 22px, 300px); }
    .nl-header-inner { column-gap: 6px; }
    .nl-header-inner > .nl-controls { gap: 4px; }
    .nl-grid { grid-template-columns: minmax(0, 1fr); }
    .nl-cats { grid-template-columns: minmax(0, 1fr); }
    .nl-hero h1 { font-size: 26px; }
    .nl-brand-text span { letter-spacing: .1em; }
    /* Two empty-state buttons no longer fit side by side: stack them rather than
     * letting the second one land on a half-empty centred row. */
    .nl-empty-actions { align-items: stretch; flex-direction: column; }
    .nl-empty-actions .nl-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .nl-card, .nl-cat, .nl-btn { transition: none; }
    .nl-card:hover, .nl-cat:hover, .nl-btn:hover { transform: none; }
}
