/* Home page only (index.html), 2026-11-24: first screen on phones, section order polish, thin cookie bar on phones.
   Loaded after landing.css, a11y-widget.css, consent.css and motion.css, so the other pages that share
   those files stay as they are. Breakpoints as in landing.css: phone < 640, desktop >= 1024. */

:root { color-scheme: dark; }

/* Every anchor target clears the fixed header */
#main,
main section[id] { scroll-margin-top: calc(var(--header) + 12px); }

/* No text under 12px in labels / eyebrows; footer legal text 13px (muted #a89880 = 6.27:1 on #1c1814) */
.page-landing .eyebrow,
.page-landing .section__name,
.page-landing .facts dt,
.page-landing .channels__label,
.page-landing .quote figcaption { font-size: 12px; }
.cc .cc__eyebrow { font-size: 12px; }
.page-landing .mark__sub { font-size: 12px; letter-spacing: 0.16em; }
.page-landing .site-foot__legal .wrap,
.page-landing .site-foot__links a,
.page-landing .site-foot .site-foot__btn { font-size: 13px; }

/* Targets: logo links 44px, footer links 28px, a taller hit area for the terms links under the join buttons */
.page-landing .mark { min-height: 44px; min-width: 44px; }
.page-landing .site-foot li a { display: inline-flex; align-items: center; min-height: 28px; }
.page-landing .site-foot li + li { margin-top: 6px; }
.page-landing .site-foot__links a,
.page-landing .site-foot .site-foot__btn { display: inline-flex; align-items: center; min-height: 28px; }
.page-landing .site-foot__links { gap: 4px 20px; }
.page-landing .join-note a { padding-block: 5px; }

/* The price never breaks between the number and the shekel sign */
.page-landing bdi { white-space: nowrap; }

/* Blocks shown at once by an anchor jump skip the fade */
.will-reveal.reveal-now { transition: none !important; }

/* ======================= Hero =======================
   HTML (reading) order: H1, paragraph 1, price, disclaimer, buttons, terms, comparison, paragraphs 2-3.
   From 640px up the lines are placed back in the visual order: H1, paragraphs, buttons, terms, price, comparison,
   disclaimer. */
.page-landing .hero__para {
  color: rgb(244 239 230 / 80%);
  font-size: 17px;
}

@media (min-width: 640px) {
  .page-landing .hero__text { display: flex; flex-direction: column; }
  .page-landing .hero__para { order: 1; }
  .page-landing .hero__para--1 { margin-top: 32px; }
  .page-landing .hero__para--2,
  .page-landing .hero__para--3 { margin-top: 16px; }
  .page-landing .hero__actions { order: 2; }
  .page-landing .hero__note { order: 3; }
  .page-landing .hero__price-amount { order: 4; margin-top: 32px; }
  .page-landing .hero__price-compare { order: 5; }
  .page-landing .hero .hero__fine { order: 6; margin-top: 16px; }
  /* Price + comparison share one gold rule */
  .page-landing .hero__price-amount,
  .page-landing .hero__price-compare {
    padding-inline-start: 16px;
    border-inline-start: 3px solid var(--accent);
  }
}

@media (max-width: 639px) {
  .page-landing .hero { padding: calc(var(--header) + 8px) 0 48px; }
  .page-landing .hero__grid {
    grid-template-columns: minmax(0, 1fr) 36%;
    gap: 0 14px;
    align-items: start;
    grid-template-areas:
      "eyebrow eyebrow"
      "h1 pic"
      "p1 pic"
      "price price"
      "fine fine"
      "actions actions"
      "note note"
      "compare compare"
      "p2 p2"
      "p3 p3";
  }
  /* The text column dissolves, so the cutout can sit beside the H1 and paragraph 1 */
  .page-landing .hero__text { display: contents; }

  .page-landing .hero__text > .eyebrow { grid-area: eyebrow; }
  .page-landing .hero h1 { grid-area: h1; margin-top: 12px; font-size: 32px; line-height: 1.08; }
  .page-landing .hero__para { line-height: 1.55; }
  .page-landing .hero__para--1 { grid-area: p1; margin-top: 12px; font-size: 15px; }
  .page-landing .hero__para--2 { grid-area: p2; margin-top: 20px; font-size: 16px; }
  .page-landing .hero__para--3 { grid-area: p3; margin-top: 16px; font-size: 16px; }

  /* Price + "כולל מע"מ · בלי התחייבות..." read as one unit: one gold rule down both lines */
  .page-landing .hero .hero__price-amount {
    grid-area: price;
    margin-top: 18px;
    padding: 2px 0 0;
    padding-inline-start: 14px;
    border-inline-start: 3px solid var(--accent);
  }
  .page-landing .hero .hero__fine {
    grid-area: fine;
    margin-top: 0;
    padding: 6px 0 2px;
    padding-inline-start: 14px;
    border-inline-start: 3px solid var(--accent);
  }
  .page-landing .hero .hero__actions { grid-area: actions; margin-top: 18px; gap: 10px; }
  .page-landing .hero .hero__note { grid-area: note; margin-top: 12px; }
  .page-landing .hero .hero__price-compare {
    grid-area: compare;
    margin-top: 24px;
    padding-inline-start: 14px;
    border-inline-start: 3px solid rgb(198 160 102 / 35%);
    font-size: 16px;
  }

  /* Cutout on the end side (left), next to the H1 + paragraph 1 */
  .page-landing .hero .portrait {
    grid-area: pic;
    position: relative;
    align-self: stretch;
    margin-top: 16px;
    min-height: 190px;
  }
  .page-landing .hero .corner { display: none; }
  .page-landing .hero .portrait__frame {
    position: absolute;
    inset: 0;
    border: 0;
    background: radial-gradient(60% 46% at 50% 34%, rgb(198 160 102 / 26%), rgb(198 160 102 / 6%) 60%, transparent 78%);
  }
  .page-landing .hero .portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
  }
  .page-landing .hero .portrait__cap {
    padding: 0 2px 0;
    background: none;
    text-align: center;
  }
  .page-landing .hero .portrait__cap p:first-child { font-size: 15px; line-height: 1.25; }
  .page-landing .hero .portrait__cap .eyebrow {
    margin-top: 2px;
    letter-spacing: 0.06em;
    line-height: 1.35;
  }
}

/* ======================= Trust strip: the two strongest facts first and brighter ======================= */
.page-landing .trust li:nth-child(-n + 2) { color: var(--text); font-weight: 600; }
.page-landing .trust li:nth-child(-n + 2) svg { width: 18px; height: 18px; stroke-width: 2; }

/* ======================= "מה יש בפנים" + "איך זה עובד" ======================= */
.page-landing .lead__kicker {
  display: block;
  margin-top: 22px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 639px) {
  .page-landing #inside .rooms { margin-top: 24px; }
  .page-landing #inside .room {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 22px 20px;
  }
  .page-landing #inside .room h3 { margin-top: 0; font-size: 1.3rem; }
  .page-landing #inside .room p { grid-column: 1 / -1; margin-top: 8px; }
  .page-landing #inside .band { margin-top: 20px; padding: 22px 20px; }
  .page-landing #how .steps { margin-top: 28px; }
  .page-landing #how .step { padding: 22px 20px; }
  .page-landing #how .step h3 { margin-top: 10px; }
}

/* ======================= "מי אני": facts + quote before the paragraphs below 1024px ======================= */
@media (max-width: 1023px) {
  .page-landing #story .story-split { display: flex; flex-direction: column; gap: 0; }
  .page-landing #story .story-col { display: contents; }
  .page-landing #story h2 { order: 1; }
  .page-landing #story .facts { order: 2; margin-top: 28px; }
  .page-landing #story .pull { order: 3; margin-top: 28px; }
  .page-landing #story .prose { order: 4; margin-top: 28px; }
  .page-landing #story .note { order: 5; margin-top: 28px; }
  .page-landing #story .channels { order: 6; }
}

@media (max-width: 639px) {
  .page-landing #story .facts div { padding-block: 16px; gap: 4px; }
}

/* ======================= "למה עכשיו": tighter spacing below 1024px ======================= */
@media (max-width: 1023px) {
  .page-landing #why .split { gap: 32px; }
}

@media (max-width: 639px) {
  .page-landing #why .gold-line { margin-top: 20px; }
  .page-landing #why .chips { gap: 8px; margin-top: 22px; }
  .page-landing #why .chips li { padding: 6px 12px; font-size: 13px; }
  .page-landing #why .chart { padding: 12px 12px 14px; }
  .page-landing #why .chart figcaption { margin-top: 8px; }
}

/* ======================= Pricing card ======================= */
.page-landing .price-card__amount strong {
  color: var(--text); /* 13.4:1 on the card */
  font-size: clamp(4.5rem, 15vw, 6rem);
  font-weight: 500;
}
.page-landing .price-card__amount span { color: rgb(244 239 230 / 78%); }
.page-landing h2.price-card__title { font-size: clamp(1.3rem, 2vw, 1.55rem); }
.page-landing .price-card__cancel {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgb(198 160 102 / 70%);
  text-underline-offset: 3px;
}
.page-landing .price-card__cancel:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ======================= Cold wallet: slim strip after the final CTA ======================= */
.page-landing .wallet-strip { padding: 40px 0 48px; }
.page-landing .wallet-strip .section__label { margin-bottom: 18px; }
.page-landing .wallet-strip .wallet { gap: 18px; padding: 20px; }
.page-landing .wallet-strip .wallet h2 { margin-top: 10px; font-size: clamp(1.35rem, 2vw, 1.6rem); }
.page-landing .wallet-strip .wallet .note { margin-top: 6px; font-size: 13px; }
.page-landing .wallet-strip .wallet__code { padding: 14px 16px; }
.page-landing .wallet-strip .copy-btn { margin-top: 8px; padding: 8px 14px; font-size: 16px; }
.page-landing .wallet-strip .wallet__code .fine { margin-top: 6px; }
.page-landing .wallet-strip .wallet__code .btn { margin-top: 12px; min-height: 48px; }

@media (min-width: 1024px) {
  .page-landing .wallet-strip { padding: 48px 0 56px; }
  .page-landing .wallet-strip .wallet { grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); padding: 24px 28px; }
  .page-landing .wallet-strip .wallet__code {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "label label" "copy buy" "status status";
    column-gap: 12px;
    align-items: end;
  }
  .page-landing .wallet-strip .wallet__code .eyebrow { grid-area: label; }
  .page-landing .wallet-strip .wallet__code .copy-btn { grid-area: copy; min-height: 48px; }
  .page-landing .wallet-strip .wallet__code .fine { grid-area: status; }
  .page-landing .wallet-strip .wallet__code .btn { grid-area: buy; margin-top: 0; }
}

/* ======================= Bottom of the screen on phones: dock, cookie bar, accessibility chip =======================
   Classes and variables on <html> come from layoutBottom() in index.html. */
@media (max-width: 639px) {
  /* Room under the last line of the footer (dock 56 + 10 edge + 10 gap) */
  .page-landing main { padding-bottom: 0; }
  .page-landing .site-foot { padding-bottom: 76px; }
  html.cc-open .page-landing .site-foot { padding-bottom: max(76px, var(--cc-space, 130px)); }

  /* The chip rises above the dock, so the dock takes the full width */
  .join-dock { inset-inline: 12px; }
  html.nl-lift body nagishli#NagishLiTag > #NagishLiBar[id] { margin-bottom: var(--nl-bottom) !important; }
  html.cc-open body nagishli#NagishLiTag > #NagishLiBar > #NagishLiBarStrip[id]:not(.open) {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px;
  }

  /* Thin cookie bar: same text and buttons, title kept for screen readers, two equal choices */
  .cc { inset-inline: 0; bottom: 0; }
  .cc__card {
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    border-inline: 0;
    border-bottom: 0;
    box-shadow: 0 -18px 40px -16px rgb(0 0 0 / 80%);
  }
  .cc__eyebrow { display: none; }
  .cc__title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cc__text { margin: 0; font-size: 13px; line-height: 1.4; }
  .cc__actions {
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
    padding-inline-end: 52px; /* the 44px chip sits here, at the row's end */
  }
  .cc__actions .cc-btn--text { grid-column: auto; min-height: 40px; padding-inline: 10px; }
  .cc .cc-btn { min-height: 40px; padding: 8px 12px; font-size: 14px; }
  /* Dock visible (after scrolling): the bar sits above it */
  html.dock-on .cc { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 56px + 10px); }
  html.dock-on .cc__card { border-bottom: 1px solid var(--cc-line); }
}
