/* DNAI — Editorial DNA, v2 (stronger presence). Tokens per references/art-direction.md */

:root {
  --paper: #F7F1EA;
  --paper-deep: #EFE5DA;
  --card: #FFFCF8;
  --sand: #C9A68A;
  --ink: #2A1A12;
  --ink-2: #3A2A20;
  --ink-soft: #5C4638;
  --ember: #E8481C;        /* decorative + large text only */
  --ember-deep: #B8360F;   /* normal-size orange text */
  --cta: #D63D0E;          /* primary buttons — white text ≈ 4.7:1 */
  --cta-hover: #B8360F;
  --on-ink: #F5EDE4;
  --on-ink-soft: #D9CBBE;

  --serif: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --sans: "Assistant", "Segoe UI", Arial, sans-serif;

  --pad: 20px;
  --maxw: 1200px;
  --section: 72px;
  --thread: 2px;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .1 0 0 0 0 .07 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
  --noise-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .93 0 0 0 0 .89 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  :root { --pad: 40px; --section: 96px; }
}
@media (min-width: 1024px) {
  :root { --section: 120px; }
}

/* ── Base ── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--noise), var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  overflow-wrap: break-word;
}
@media (min-width: 1024px) {
  body { font-size: 1.125rem; }
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
strong { font-weight: 700; }
.nowrap { white-space: nowrap; }

.wrap {
  width: min(100% - 2 * var(--pad), var(--maxw));
  margin-inline: auto;
}

section { padding-block: var(--section); }

/* ── Type ── */

.display {
  font: 500 clamp(2.35rem, 4.4vw + 1rem, 5.25rem)/1.08 var(--serif);
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
}

.h2 {
  font: 900 clamp(2.1rem, 3.4vw + 1rem, 4rem)/1.12 var(--serif);
  text-align: center;
  text-wrap: balance;
  margin-bottom: 0.55em;
}
.h2--split { font-weight: 500; }

.h3 {
  font: 700 clamp(1.4rem, 0.9vw + 1rem, 1.8rem)/1.25 var(--serif);
  text-align: center;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.4rem);
  line-height: 1.6;
}

/* Words marked Bold inside a heading in the copy */
.accent {
  color: var(--ember);
  font-weight: 900;
}
.accent--underline {
  position: relative;
  display: inline-block;
}
.accent--underline svg {
  position: absolute;
  inset-inline: -3%;
  bottom: -0.12em;
  width: 106%;
  height: 0.22em;
  fill: var(--ember);
  pointer-events: none;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 56px;
  padding: 14px 36px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font: 800 1.125rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--cta-hover); }
.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .btn__arrow { transform: translateX(-4px); }

.btn--xl {
  min-height: 66px;
  padding: 18px 48px;
  font-size: clamp(1.2rem, 0.4vw + 1.05rem, 1.4rem);
  box-shadow: 0 14px 30px -12px rgba(214, 61, 14, 0.65);
}
.btn--xl:hover { box-shadow: 0 10px 22px -10px rgba(184, 54, 15, 0.7); }

.btn--ink {
  background: var(--ink);
  color: var(--on-ink);
}
.btn--ink:hover { background: var(--ink-2); }

.btn--block { width: 100%; }

/* ── Placeholders (missing assets) ── */

.ph {
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--sand);
  border-radius: 4px;
  background: rgba(201, 166, 138, 0.1);
  color: var(--ink-soft);
}
.ph::after {
  content: attr(data-file);
  direction: ltr;
  padding: 8px;
  font: 400 0.75rem/1.35 ui-monospace, Consolas, monospace;
  text-align: center;
}
.ph--rtl::after { direction: rtl; font: 700 0.95rem/1.5 var(--sans); }
.ph--title { min-height: 96px; }
.ph--body { min-height: 240px; }

/* ── Sub-pages (thank-you, legal) — same language, no new elements ── */
.site-header a { display: block; border-radius: 6px; }
.site-header a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.subpage { padding-block: 32px var(--section); }
.subpage__inner {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}
.subpage .h2 { margin-bottom: 0; }
.subpage .ph { width: min(100%, 46rem); }

.thanks-text {
  max-width: 40rem;
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.45rem);
  line-height: 1.6;
}
.thanks-text p + p { margin-top: 0.8em; }

.legal-text {
  width: min(100%, 46rem);
  text-align: start;
}
.legal-text p + p { margin-top: 1em; }
.legal-text h2 {
  margin: 1.6em 0 0.5em;
  font: 700 clamp(1.3rem, 0.8vw + 1rem, 1.6rem)/1.3 var(--serif);
}
.legal-text ul { margin: 0.6em 0 0; padding-inline-start: 1.25em; }
.legal-text li + li { margin-top: 0.4em; }
.legal-text a,
.thanks-text a {
  color: var(--ember-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.legal-text a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ── First screen: header + hero + details ── */

.site-header {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}
.logo { width: auto; height: clamp(78px, 12vh, 96px); } /* shrinks on short screens to keep the CTA above the fold */

.hero { padding-block: 14px 24px; }
.hero__inner {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.hero .lead {
  max-width: 40rem;
  font-size: clamp(1.02rem, 0.5vw + 0.94rem, 1.35rem);
  line-height: 1.55;
}

/* Price: the whole copy line as one badge */
.price {
  margin-top: 6px;
  padding: 10px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: clamp(1.15rem, 0.9vw + 0.95rem, 1.6rem);
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .site-header { padding-top: 28px; }
  .logo { height: clamp(108px, 16vh, 140px); }
  .hero { padding-block: 20px 36px; }
  .hero__inner { gap: 22px; }
}

/* Ticket */
.details { padding-block: 0 var(--section); }

.ticket {
  display: grid;
  max-width: 1060px;
  margin-inline: auto;
  border: 1.5px solid rgba(92, 70, 56, 0.42); /* soft espresso line */
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 20px 44px -30px rgba(42, 26, 18, 0.45);
  text-align: center;
}
.ticket__info { padding: 18px 20px 14px; }
.ticket__date { font: 700 clamp(1.2rem, 0.8vw + 0.95rem, 1.6rem)/1.3 var(--serif); }
.ticket__meta { margin-top: 4px; font-size: clamp(1rem, 0.3vw + 0.95rem, 1.15rem); }
.ticket__cta {
  display: grid;
  align-items: center;
  padding: 16px 16px 18px;
  border-top: 2px dashed var(--sand);
}

@media (min-width: 768px) {
  .ticket {
    grid-template-columns: 1fr auto;
    text-align: start;
  }
  .ticket__info { padding: 28px 40px; align-self: center; }
  .ticket__cta {
    padding: 24px 32px;
    border-top: 0;
    border-inline-start: 2px dashed var(--sand);
  }
}
@media (max-width: 767px) {
  .ticket__cta .btn,
  .cta .btn {
    width: 100%;
    padding-inline: 12px;
    font-size: clamp(1rem, 4.4vw, 1.2rem);
  }
}

/* ── כאב ── */

.pain {
  background: var(--noise-light), var(--ink);
  color: var(--on-ink);
}
.pain__body {
  max-width: 50rem;
  text-align: center;
  font-size: clamp(1.2rem, 0.8vw + 1rem, 1.55rem);
  line-height: 1.55;
}
.pain .h2 {
  color: var(--on-ink);
  font-size: clamp(2.4rem, 4.2vw + 1rem, 4.75rem);
}
.pain__body > p + p { margin-top: 0.9em; }
.pain__body strong { color: #fff; }
.pain__body > p:not(.prompt) { color: var(--on-ink-soft); }

.prompt {
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 48px;
  padding: 14px 26px;
  border: 1px solid rgba(245, 237, 228, 0.25);
  border-radius: 26px 26px 6px 26px;
  background: rgba(245, 237, 228, 0.1);
  color: var(--on-ink);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.2rem);
  line-height: 1.5;
}

/* ── פתרון ── */

.solution__intro {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.solution__intro > p + p { margin-top: 1em; }

.rule-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-block: 56px 72px;
  font: 700 clamp(1.25rem, 1vw + 1rem, 1.7rem)/1.3 var(--serif);
  text-align: center;
}
.rule-label::before,
.rule-label::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: var(--ember);
}

/* Units: no numbering. Cards hang on the thread. */
.units {
  --r: 40px;
  --gap: 72px;
  position: relative;
  display: grid;
  gap: var(--gap);
}
.unit {
  position: relative;
  padding: calc(var(--r) + 28px) 24px 32px;
  border: 1px solid rgba(201, 166, 138, 0.55);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 22px 44px -28px rgba(42, 26, 18, 0.35);
  text-align: center;
}
.unit__icon {
  position: absolute;
  top: calc(var(--r) * -1);
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: 0 0 0 6px var(--paper);
  transform: translateX(-50%);
}
.unit__icon svg { width: 38px; height: 38px; }
.unit__icon .i-accent { stroke: var(--ember); stroke-width: 1.8; }
.unit .h3 { margin-bottom: 10px; }
.unit p { color: var(--ink-soft); }

/* Mobile: thread runs from each card down to the next icon */
.unit:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - var(--thread) / 2);
  width: var(--thread);
  height: calc(var(--gap) - var(--r));
  background: var(--ember);
}

@media (min-width: 1024px) {
  .units {
    --r: 56px;
    --gap: 32px;
    grid-template-columns: repeat(3, 1fr);
  }
  .unit { padding: calc(var(--r) + 32px) 36px 44px; }
  .unit__icon svg { width: 56px; height: 56px; }
  .unit .h3 { font-size: clamp(1.75rem, 1.1vw + 1rem, 2.15rem); margin-bottom: 14px; }
  .unit p { font-size: 1.2rem; }
  .unit:not(:last-child)::after { content: none; }
  /* Desktop: one continuous thread along the card tops, through every icon */
  .units::before {
    content: "";
    position: absolute;
    top: calc(var(--thread) / -2);
    inset-inline: calc((100% - 2 * var(--gap)) / 6);
    z-index: 1;
    height: var(--thread);
    background: var(--ember);
  }
}

.solution__cta {
  margin-top: 64px;
  text-align: center;
}

/* ── המלצות ── */

.testimonials { background: var(--noise), var(--paper-deep); }

/* Screenshots at readable size, original ratios. Mobile/tablet: one column, near full width. Desktop: 2-column masonry. */
.shots {
  max-width: 640px;
  margin-inline: auto;
  columns: 1;
  column-gap: 40px;
}
@media (max-width: 767px) {
  .shots { margin-inline: calc(var(--pad) * -1 + 6px); }
}
.shot {
  break-inside: avoid;
  margin: 0 auto 28px;
  padding: 4px;
  background: #fff;
  box-shadow: 0 12px 30px -10px rgba(42, 26, 18, 0.22);
}
.shot img { width: 100%; }
.shot img:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.shot--native { max-width: calc(354px * 1.15 + 16px); } /* small source: never upscale beyond ~1.15× */

@media (min-width: 1024px) {
  .shots {
    max-width: none;
    columns: 2;
  }
  .shot {
    margin-bottom: 40px;
    padding: 8px;
    transform: rotate(var(--rot, 0deg));
  }
  .shot:nth-child(4n+1) { --rot: -0.6deg; }
  .shot:nth-child(4n+2) { --rot: 0.6deg; }
  .shot:nth-child(4n+3) { --rot: -0.4deg; }
  .shot:nth-child(4n+4) { --rot: 0.5deg; }
}

.lightbox {
  max-width: min(92vw, 720px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox::backdrop { background: rgba(42, 26, 18, 0.85); }
.lightbox img { max-height: 92vh; width: auto; margin-inline: auto; }

/* ── מי אני ── */

/* Order: heading → text → cut-out. The cut-out has no frame or box; its bottom fades into the cream. */
.about { padding-bottom: 0; }
.about__inner {
  display: grid;
  justify-items: center;
}
.about__text { max-width: 42rem; }
.about__text > p + p { margin-top: 1em; }
.about__media {
  width: min(62%, 250px);
  margin-top: 40px;
}
.about__media img { width: 100%; }

@media (min-width: 1024px) {
  .about__text { font-size: 1.2rem; }
  .about__media { width: 330px; margin-top: 48px; }
}

/* ── פרטים / CTA (dark close) ── */

.cta {
  padding-top: 0;
  background: var(--noise-light), var(--ink);
  color: var(--on-ink);
  text-align: center;
}
.bubble-thread {
  width: 120px;
  height: auto;
  margin: 0 auto 36px;
}
.bubble-thread path {
  stroke: var(--ember);
  stroke-width: var(--thread);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta__date {
  font: 700 clamp(1.7rem, 2.4vw + 1rem, 3rem)/1.25 var(--serif);
  text-wrap: balance;
}
.cta__meta { margin-top: 10px; font-size: clamp(1.1rem, 0.4vw + 1rem, 1.35rem); color: var(--on-ink-soft); }
.cta .btn { margin-top: 40px; }
.cta .btn:focus-visible { outline-color: var(--on-ink); }

/* ── Footer ── */

.site-footer {
  padding-block: 36px calc(36px + env(safe-area-inset-bottom));
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__contact svg {
  width: 16px;
  height: 16px;
  color: var(--ember-deep);
}
.footer__logo { width: auto; height: 56px; }
.footer__copy { font-size: 0.875rem; }

/* ── Sticky CTA (mobile only) ── */

.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--sand);
  background: var(--paper);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.sticky-cta .btn { min-height: 52px; padding-block: 10px; }
.sticky-cta.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.25s ease;
}
@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ── Motion preference ── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
