/* ---------------------------------------------------------------------------
   Homepage — "what we bring", not "what we reject".
   Loaded only by views/index.ejs, after main.css. Everything here is scoped to
   .home so restyling the front door cannot leak into /blog, /groups or
   /products, which run on products.css / blog.css / groups.css.

   Colour rule for the whole page: exactly ONE accent (--brand), and it is
   allowed in exactly two roles — a call to action, and a price. Nowhere else.
   The moment orange starts decorating headings and dividers the page reads as
   a coupon site again, which is the thing we spent this redesign leaving.
--------------------------------------------------------------------------- */

/* The token block that used to live here duplicated brand.css :root and had
   already drifted from it — --paper-2, --ink-3 and --r all differed, so the
   homepage was a slightly different colour and radius from every other page.
   brand.css is the single source now; --good is the one token only home uses. */
.home {
    --good: #2b7a52;

    background: var(--paper);
    color: var(--ink);
    font-family: 'Heebo', Rubik, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.home img {
    display: block;
    max-width: 100%;
}

.home .wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* One typeface, one very heavy weight, set tight. Verified against the design
   reference (carcamp-outdoors.com): it carries NO serif — Heebo 800 for its H1
   at 64px/1.03 and for every H2. The restraint IS the design; a second family
   was doing work that tracking and weight do better. */
.home h1,
.home h2,
.home .serif {
    font-family: 'Heebo', Rubik, system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.home .eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--ink-3);
}

.home h2 {
    font-size: 34px;
    line-height: 1.22;
    margin: 6px 0 0;
}

.home .sub {
    color: var(--ink-2);
    font-size: 16px;
    margin-top: 8px;
    max-width: 54ch;
}

.home .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15.5px;
    border: 1px solid transparent;
    transition: 0.16s ease;
    cursor: pointer;
}

.home .btn-primary {
    background: var(--brand);
    color: #fff;
}

.home .btn-primary:hover {
    background: #bf440c;
}

.home .btn-ghost {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.home .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.09);
}

.home .btn-quiet {
    border-color: var(--line);
    background: transparent;
    color: var(--ink);
    height: 42px;
    font-size: 14.5px;
}

.home .btn-quiet:hover {
    border-color: #cfc5b6;
    background: #fff;
}

/* ---------- hero ---------- */
.home-hero {
    background: var(--deep);
    color: #fff;
}

.home .home-hero__in {
    padding-block: 84px 134px;
}

/* On ink. See the heading contract in main.css. */
.home-hero h1,
.home-hero h2,
.home-hero h3 {
    color: #fff;
}

.home-hero h1 {
    font-size: 60px;
    line-height: 1.04;
    margin: 18px 0 0;
    max-width: 15ch;
}

.home-hero h1 .dot {
    color: var(--brand);
}

.home-hero h1 em {
    font-style: normal;
    color: #fff;
}

.home-hero p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.65;
    margin-top: 20px;
    max-width: 42ch;
}

.home-hero .eyebrow {
    color: rgba(255, 255, 255, 0.5);
}

.home-hero__cta {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.home-hero__stats {
    display: flex;
    margin-top: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 20px;
}

.home-hero__stats div {
    padding-inline-end: 36px;
}

.home-hero__stats div + div {
    padding-inline-start: 36px;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
}

.home-hero__stats b {
    display: block;
    font-family: 'Heebo', Rubik, system-ui, sans-serif;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.1;
}

.home-hero__stats small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

/* Stack beside the headline: three real products with a real price, so the
   proof of "there is stock here" is inside the first fold. */
.stack {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    padding: 8px;
}

.stack__h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 12px 14px;
}

.srow {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 13px 12px;
    border-radius: 10px;
    transition: 0.14s;
}

.srow:hover {
    background: rgba(255, 255, 255, 0.055);
}

.srow + .srow {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.srow img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
    flex: none;
}

.srow__t {
    min-width: 0;
}

.srow__t b {
    font-size: 15px;
    font-weight: 500;
    display: block;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.srow__t small {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.48);
}

.srow__pr {
    margin-inline-start: auto;
    text-align: end;
    white-space: nowrap;
    flex: none;
}

.srow__pr b {
    color: #ffa96f;
    font-weight: 700;
    font-size: 17px;
    display: block;
}

.srow__pr s {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- bands ---------- */
.home-band {
    padding: 76px 0;
}

.home-band--tinted {
    background: var(--paper-2);
    border-block: 1px solid var(--line);
}

.home-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

/* ---------- product rail ---------- */
.rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dealcard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: 0.18s ease;
    display: flex;
    flex-direction: column;
}

.dealcard:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.dealcard__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f4f0e9;
}

.dealcard__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dealcard__badge {
    position: absolute;
    inset-block-end: 10px;
    inset-inline-start: 10px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 3px 9px;
    z-index: 2;
}

.dealcard__b {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dealcard__b h3 {
    font-weight: 700;
    letter-spacing: -0.015em;
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.45;
    margin: 0;
    min-height: 45px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 14px;
}

.price b {
    font-family: 'Heebo', Rubik, system-ui, sans-serif;
    font-size: 23px;
    font-weight: 900;
    color: var(--brand);
}

.price s {
    color: var(--ink-3);
    font-size: 14px;
}

.dealcard__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--line-2);
    font-size: 13px;
}

.dealcard__meta a {
    font-weight: 700;
    color: var(--ink);
}

/* ---------- worlds ----------
   Deliberately typographic, with no product photo. products.json is a general
   gadget catalogue: it holds no tools, tactical, automotive or baby stock, so
   any image here would be a picture of something the group does not sell. A
   card that shows the group's own words is honest and reads as intentional;
   eight borrowed photos would read as stock we do not have. */
.wgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.world {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.18s;
}

/* The photograph is a product this world stocks — evidence, not decoration.
   16/9 keeps eight cards from turning the band into a wall of images, and
   object-fit stops AliExpress's inconsistent aspect ratios from cropping the
   product out of its own picture. */
.world__ph {
    display: block;
    position: relative;
    height: 0;
    /* padding-ratio rather than aspect-ratio: the plate is an empty inline
       element on four cards, and an empty aspect-ratio box collapses to zero
       in Safari — which is exactly the four cards that need the plate. */
    padding-top: 56.25%;
    background: #eae4da;
    overflow: hidden;
}

.world__ph img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.world:hover .world__ph img {
    transform: scale(1.03);
}

/* Four worlds have no curated stock. A hatch reads as a deliberately empty
   plate — the card still says "new group" below it, so the blank and the
   caption tell the same true story. */
.world__ph--soon {
    background: repeating-linear-gradient(
        135deg,
        #efe9df 0 10px,
        #eae3d7 10px 20px
    );
}

.world__b {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 18px 18px 16px;
}

.world:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
    border-color: #d9cfbf;
}

.world h3 {
    font-family: 'Heebo', Rubik, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.3;
}

.world p {
    font-size: 13.5px;
    color: var(--ink-3);
    line-height: 1.55;
    margin: 0;
}

/* The order count was set in green (--good). Green is a third hue on a page
   whose whole discipline is paper + ink + one accent, and on a card it reads
   as an "in stock" status pill rather than as evidence. The number is the
   evidence; weight and darkness are enough to make it land. */
.world__n {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
    margin-top: auto;
    padding-top: 10px;
}

.world__n--new {
    color: var(--ink-3);
    font-weight: 500;
}

.world__ch {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line-2);
}

.world__ch span {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 10px;
}

/* ---------- guides ---------- */
.gl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.guide {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 22px;
    transition: 0.18s;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.guide:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.guide h3 {
    font-family: 'Heebo', Rubik, system-ui, sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin: 0;
}

/* Clamped to two lines. These are meta descriptions — 40 words each — and six
   of them unclamped turn the band into one grey block where no headline wins.
   Two lines is enough to qualify the title; the article is one click away. */
.guide p {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide__rt {
    font-size: 12.5px;
    color: var(--ink-3);
    margin-top: auto;
    padding-top: 8px;
}

/* ---------- join ---------- */
.join {
    background: var(--deep);
    color: #fff;
    border-radius: 16px;
    padding: 52px;
    display: flex;
    align-items: center;
    gap: 48px;
}

/* On ink. See the heading contract in main.css. */
.join h2,
.join h3 {
    color: #fff;
}

.join h2 {
    font-size: 32px;
    margin-top: 10px;
}

.join p {
    color: rgba(255, 255, 255, 0.72);
    margin-top: 12px;
    font-size: 16.5px;
    max-width: 50ch;
}

.join .eyebrow {
    color: rgba(255, 255, 255, 0.5);
}

.join__cta {
    margin-inline-start: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: none;
    min-width: 230px;
}

/* ---------- disclosure ---------- */
.home .home-note {
    padding: 40px 0 56px;
    color: var(--ink-3);
    font-size: 13.5px;
    border-top: 1px solid var(--line);
}

.home-note p {
    max-width: 72ch;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 940px) {
    .home-hero__in {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 52px 0 56px;
    }
    .home-hero h1 {
        font-size: 36px;
    }
    .home h2 {
        font-size: 27px;
    }
    .rail,
    .wgrid,
    .gl {
        grid-template-columns: 1fr 1fr;
    }
    .home-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .join {
        flex-direction: column;
        align-items: flex-start;
        padding: 34px 26px;
        gap: 26px;
    }
    .join__cta {
        margin: 0;
        width: 100%;
    }
    .join .btn {
        width: 100%;
    }
    .home-band {
        padding: 56px 0;
    }
}

@media (max-width: 560px) {
    .rail,
    .gl,
    .wgrid {
        grid-template-columns: 1fr;
    }
    /* Eight full-bleed 16:9 photos stacked is ~2,600px of scroll on a phone —
       the band a visitor uses to find themselves becomes the band they scroll
       past. On one column the card turns into a media object: a 96px square of
       evidence beside the line that identifies the reader. */
    .wgrid {
        gap: 10px;
    }
    .world {
        flex-direction: row;
        align-items: stretch;
    }
    .world__ph {
        flex: 0 0 96px;
        width: 96px;
        height: auto;
        padding-top: 0;
        border-inline-start: 1px solid var(--line-2);
    }
    .world__b {
        padding: 14px 14px 12px;
    }
    .world__ch {
        display: none;
    }
    .home-hero__stats div {
        padding-inline-end: 20px;
    }
    .home-hero__stats div + div {
        padding-inline-start: 20px;
    }
}

/* ---------------------------------------------------------------------------
   v3 components — disclosure bar, fold strip, tabbed feed.

   Added 2026-08-22 after a competitor teardown of dealabs.com, dealnews.com and
   the one real Hebrew rival (dilimshavim.co.il). Three things came out of it:

   1. DealNews pins its affiliate disclosure ABOVE the logo, not in the footer.
      In a category where every competitor hides the relationship, saying it
      first is the cheapest trust we can buy.
   2. Neither leader runs a marketing hero. The fold must contain product, so
      the three cards straddle the hero's lower edge.
   3. One tabbed feed replaces two titled rails — two bands spent ~800px of
      section furniture to show ten products.
--------------------------------------------------------------------------- */

.disclose {
    background: var(--deep);
    color: rgba(255, 255, 255, 0.62);
    font-size: 12.5px;
    line-height: 1.5;
    padding: 8px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- fold strip ---------- */
.home .foldstrip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-block-start: -104px;
    position: relative;
    z-index: 3;
}

.folddeal {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lift);
}

.folddeal__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    white-space: nowrap;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
    font-size: 12px;
    color: var(--ink-3);
}

.folddeal__top strong {
    color: var(--ink);
    font-weight: 700;
}

.folddeal__b {
    display: flex;
    gap: 14px;
    padding: 16px;
    flex: 1;
}

.folddeal__b img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    flex: none;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 8px;
}

.folddeal__b h2 {
    font-size: 15.5px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.folddeal__b p {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.5;
    margin-top: 6px;
}

.folddeal__f {
    padding: 0 16px 16px;
}

.btn-sm {
    width: 100%;
    justify-content: center;
    height: 42px;
    font-size: 14.5px;
}

/* ---------- tabs ---------- */
.home-head--center {
    display: block;
    text-align: center;
}

.home-head--center .sub {
    margin-inline: auto;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 0 28px;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-2);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.16s;
}

.tab:hover {
    border-color: #cfc5b6;
    color: var(--ink);
}

.tab span {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-3);
    background: var(--paper-2);
    border-radius: 999px;
    padding: 1px 7px;
}

.tab.is-on {
    background: var(--deep);
    border-color: var(--deep);
    color: #fff;
}

.tab.is-on span {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* Filtering hides already-rendered cards; every product stays in the HTML for
   crawlers no matter which tab is active. */
.dealcard.is-hidden {
    display: none;
}

/* ---------- card additions ---------- */
.dealcard__age {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-3);
    letter-spacing: 0.02em;
    margin-bottom: 5px;
}

.dealcard__why {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-2);
    margin-top: 7px;
}

/* The product images in the feed are white-background studio shots by
   selection (see data/home-feed.json), so the thumb sits on white and gets
   padding rather than a cover crop. */
.dealcard__thumb {
    background: #fff;
    padding: 14px;
}

.dealcard__thumb img {
    object-fit: contain;
}

@media (max-width: 900px) {
    .home .foldstrip {
        grid-template-columns: 1fr;
        margin-block-start: -88px;
    }

    .home .home-hero__in {
        padding-block: 44px 118px;
    }

    .home-hero h1 {
        font-size: 40px;
    }

    .tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        flex: none;
    }
}


/* Anchored sections sit under a sticky header; without this the heading of
   #feed / #worlds / #guides lands behind it on every in-page jump. */
.home #feed,
.home #worlds,
.home #guides,
.home #join {
    scroll-margin-top: 90px;
}

/* The plate ground matches the paper the illustrations were drawn on, so the
   art meets the plate without a visible seam on either edge. */
.world__ph {
    background: #f2ece1;
}
