/* Studio Arva niche pages (/he/<niche>/), built by tools/build-niche.mjs.
   Same tokens as site.css, none of the stage: ink hero, paper body, ink offer. Heebo for Hebrew, Montserrat for the wordmark. */

:root {
  --ink: #0d1317;
  --ink-2: #121a1f;
  --paper: #f5f4f1;
  --paper-2: #ebe9e4;
  --text: #16191b;
  --text-2: #5b6166;
  --mist: #a9b4b9;
  --ridge: #efa35b;
  --ridge-deep: #a0561d;
  --rule: rgba(13, 19, 23, .14);
  --rule-dark: rgba(255, 255, 255, .14);
  --px: max(24px, 5.5vw);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ridge); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; right: 12px; top: -60px; z-index: 10; background: var(--ridge); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 500; }
.skip:focus { top: 12px; }

section, .top, .foot { padding-inline: var(--px); }
section > *, .top, .foot { max-width: var(--max); margin-inline: auto; }

h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin-bottom: clamp(28px, 4vw, 48px); }
h3 { font-size: 20px; line-height: 1.3; font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-weight: 500; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 120ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--ridge); color: var(--ink); }
.btn-accent:hover { background: #f4b475; }
.btn-quiet { border-color: var(--rule-dark); color: #fff; }
.btn-quiet:hover { border-color: rgba(255, 255, 255, .4); }

/* ---------- header ---------- */
.top {
  position: absolute; inset: 0 0 auto; z-index: 5; height: 72px; max-width: none;
  display: flex; align-items: center; justify-content: space-between; color: #fff;
}
.mark { display: inline-flex; align-items: center; text-decoration: none; --logo-h: 32px; }
.logo { display: block; height: var(--logo-h, 26px); aspect-ratio: 2.88; background: currentColor; -webkit-mask: url(/img/logo-arva.svg) center / contain no-repeat; mask: url(/img/logo-arva.svg) center / contain no-repeat; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top-link { font-size: 15px; color: var(--mist); text-decoration: none; }
.top-link:hover { color: #fff; }
.top .btn { height: 40px; padding: 0 18px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  background: var(--ink); color: #fff;
  padding-block: calc(72px + clamp(40px, 8vw, 96px)) clamp(56px, 8vw, 104px);
}
.hero > .hero-copy, .hero > .hero-media { margin: 0; max-width: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@supports (width: max(1px, 2px)) { .hero { padding-inline: max(var(--px), calc((100vw - var(--max)) / 2)); } }
.crumb { font-size: 15px; color: var(--mist); margin-bottom: 20px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: #fff; }
h1 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--mist); max-width: 34em; margin-top: 24px; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-media { justify-self: center; width: min(100%, 340px); }

/* ---------- video clips ---------- */
.clip { position: relative; }
.clip video { width: 100%; aspect-ratio: var(--ar); object-fit: cover; background: var(--ink-2); border-radius: 14px; }
.clip figcaption { font-size: 14px; color: var(--text-2); margin-top: 10px; }
.clip.phone video { border-radius: 34px; border: 7px solid #1d262c; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.clip.phone figcaption { color: var(--mist); text-align: center; }

/* ---------- what ---------- */
.what { padding-block: clamp(72px, 10vw, 140px) clamp(40px, 6vw, 80px); }
.what-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); }
.what-list li { border-top: 1px solid var(--rule); padding: 24px 0 36px; }
.what-list p { color: var(--text-2); margin-top: 8px; max-width: 30em; }

/* ---------- how ---------- */
.how { padding-block: clamp(40px, 6vw, 80px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); counter-reset: s; }
.steps li { background: var(--paper-2); border-radius: 18px; padding: 28px 26px 32px; counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-size: 15px; font-weight: 500; color: var(--ridge-deep); margin-bottom: 40px; }
.steps p { color: var(--text-2); margin-top: 8px; }

/* ---------- work ---------- */
.work { padding-block: clamp(40px, 6vw, 80px); }
.work-row { display: flex; gap: clamp(14px, 2vw, 24px); align-items: flex-start; }
.work-row .clip { flex: var(--ar) 1 0%; min-width: 0; }
.note { font-size: 14px; color: var(--text-2); margin-top: 24px; }

/* ---------- faq ---------- */
.faq { padding-block: clamp(40px, 6vw, 80px) clamp(72px, 10vw, 140px); }
.faq details { border-top: 1px solid var(--rule); max-width: 820px; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 19px; font-weight: 500; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; color: var(--text-2); transition: transform 160ms ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 24px; max-width: 40em; }

/* ---------- free offer ---------- */
.free {
  background: var(--ink); color: #fff; padding-block: clamp(72px, 10vw, 128px);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start;
}
.free > * { margin: 0; max-width: none; }
@supports (width: max(1px, 2px)) { .free { padding-inline: max(var(--px), calc((100vw - var(--max)) / 2)); } }
.free h2 { margin-bottom: 16px; }
.free-copy p { color: var(--mist); max-width: 28em; }
.free-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.free-form .wide { grid-column: 1 / -1; }
.free-form label { display: grid; gap: 8px; font-size: 14px; color: var(--mist); }
.free-form input {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--rule-dark); background: var(--ink-2);
  color: #fff; font-family: inherit; font-size: 17px;
}
.free-form input::placeholder { color: #5f6b71; }
.free-form input:focus { outline: none; border-color: var(--ridge); }
.free-form input[aria-invalid="true"] { border-color: #e2725b; }
.free-form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-msg { grid-column: 1 / -1; font-size: 15px; }
.form-msg.err { color: #f0a08f; }
.form-msg.ok { color: var(--ridge); font-size: 18px; }
.free-form .btn { height: 54px; font-size: 17px; }
.free-form .btn[disabled] { opacity: .6; cursor: default; }

/* ---------- footer ---------- */
.foot { padding-block: 40px 48px; display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-niches { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text); }
.foot-niches a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --px: 16px; }
  .top { height: 64px; }
  .top-link { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: calc(64px + 32px); }
  .hero-media { width: min(72%, 280px); }
  .what-list, .steps { grid-template-columns: 1fr; }
  .steps li::before { margin-bottom: 20px; }
  .work-row { flex-direction: column; align-items: center; }
  .work-row .clip { flex: none; width: 100%; }
  .work-row .clip[style*="--ar:0.5625"], .work-row .clip[style*="--ar:0.8"] { width: min(100%, 320px); }
  .free { grid-template-columns: 1fr; }
  .free-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}

[hidden] { display: none !important; }

/* Privacy notice under the free-ad form (Privacy Protection Law, section 11) and the legal links in the footer */
.form-note { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; color: var(--mist); }
.form-note a { color: inherit; text-underline-offset: 3px; }
.foot-legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }

/* the motion site, named on every niche page: the free ad is the hook, the site is what we sell */
.site-line { font-size: 17px; line-height: 1.6; color: var(--text); margin-top: 32px; padding: 18px 20px; border-radius: 16px; background: var(--paper-2); }
.site-line b { color: var(--ink); }

/* ---------- /he/motion-website/: wide hero, comparison table, who-it's-for list ---------- */
.hero.hero-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-wide .hero-media { width: 100%; }
.hero-wide .clip figcaption { color: var(--mist); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.compare-wrap { padding-block: clamp(40px, 6vw, 80px); }
.compare-wrap h2, .who h2 { margin-bottom: 12px; }
.compare-lede { color: var(--text-2); max-width: 38em; margin-bottom: clamp(24px, 3vw, 36px); }
.compare-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: start; vertical-align: top; padding: 16px 14px; border-top: 1px solid var(--rule); }
.compare thead th { border-top: 0; font-weight: 500; color: var(--text-2); font-size: 15px; }
.compare thead th:last-child { color: var(--ink); font-weight: 700; }
.compare tbody th { font-weight: 500; white-space: nowrap; }
.compare td { color: var(--text-2); }
.compare td:last-child { color: var(--text); background: var(--paper-2); }
.who { padding-block: clamp(40px, 6vw, 80px); }
.who-list { display: flex; flex-wrap: wrap; gap: 10px; }
.who-list li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--rule); font-size: 16px; }
.who-list a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.free-copy .actions { margin-top: 28px; }
.clip figcaption a { text-underline-offset: 3px; }
@media (max-width: 760px) {
  .hero.hero-wide { grid-template-columns: 1fr; }
  .hero-wide .hero-media { width: 100%; }
}
