/* גולדפרב סוכנות לביטוח · moov studio, 31.10.2026 (v2)
   One object carries the page: the gold coin of the logo, in 3D (coin.js). Deep green-black and real gold, one face
   (Rubik, self-hosted) in two weights, five sizes. Content is real text; the coin is decoration. */

@font-face { font-family: "Rubik"; src: url("assets/fonts/rubik-hebrew.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; src: url("assets/fonts/rubik-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  --ink: #0E1814;      /* the room the coin hangs in */
  --ink-2: #16241F;
  --paper: #F5F3EE;
  --sand: #E6E0D4;
  --green: #2E5A48;
  --gold: #E0A526;
  --gold-2: #D29516;
  --mute: #B9C2BD;     /* secondary text on the dark fields (7:1 on --ink) */
  --soft: #4A554F;     /* secondary text on paper and sand */
  --font: "Rubik", "Arial Hebrew", "Segoe UI", Arial, sans-serif;
  --s-hero: clamp(52px, 8.4vw, 136px);
  --s-1: clamp(38px, 5.6vw, 92px);
  --s-2: clamp(24px, 2.6vw, 38px);
  --s-body: clamp(17px, 1.2vw, 19px);
  --s-small: 15px;
  --m: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--font); font-size: var(--s-body); line-height: 1.55; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.contact :focus-visible, .btn-gold:focus-visible, .go:focus-visible { outline-color: var(--paper); }
::selection { background: var(--gold); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: var(--m); top: -100px; z-index: 50; background: var(--gold); color: var(--ink); padding: 12px 18px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
  font: 700 var(--s-body)/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #EDB843; }
.btn-line { background: var(--ink-2); color: var(--paper); }
.btn-line:hover { background: #22362E; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #1C2C26; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: var(--s-small); }

/* ---------- the coin's stage: fixed behind the first two scenes ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stage canvas { width: 100%; height: 100%; transition: opacity .2s linear; }
.hero, .lines { position: relative; z-index: 1; }
.how, .about, .faq, .contact, .foot { position: relative; z-index: 2; }
.coin-still { display: none; }
.no-webgl .coin-still, .no-coin .coin-still { display: block; position: absolute; inset-inline-end: 8vw; top: 50%; translate: 0 -50%; width: min(34vw, 460px); height: auto; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--m); }
.topbar .home img { width: 150px; height: auto; }
.topbar nav { display: flex; gap: 28px; margin-inline-start: auto; margin-inline-end: 28px; }
.topbar nav a { text-decoration: none; font-weight: 500; padding: 10px 0; color: var(--mute); transition: color .2s; }
.topbar nav a:hover { color: var(--paper); }
.hero-copy { margin-block: auto; padding: 0 var(--m) clamp(56px, 10vh, 120px); max-width: min(52vw, 860px); }
.hero h1 { font-size: var(--s-hero); line-height: .95; letter-spacing: -.035em; }
.hero .lead { margin-top: 28px; max-width: 44ch; color: var(--mute); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- what we insure: the coin turns, one line per face ---------- */
.lines { height: auto; }
.lines-stick { padding: clamp(96px, 14vh, 160px) var(--m); }
.lines h2 { font-size: var(--s-2); color: var(--gold); letter-spacing: -.01em; }
.line-index { display: none; }
.line { margin-top: 64px; max-width: 44ch; }
.line h3 { font-size: var(--s-1); }
.line p { margin-top: 20px; }
.line ul { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.line li { padding: 8px 16px; border-radius: 999px; background: var(--ink-2); font-size: var(--s-small); font-weight: 700; }

/* with motion and the coin: the section is five screens long, the content holds still and changes with the coin */
.anim .lines { height: 520svh; }
.anim .lines-stick { position: sticky; top: 0; height: 100svh; padding: 0 var(--m); display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.anim .lines h2 { position: absolute; top: clamp(28px, 6vh, 64px); inset-inline-start: var(--m); }
.anim .line-panels { grid-column: 1; position: relative; height: min(56svh, 520px); }
.anim .line { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(28px); transition: opacity .45s var(--ease), transform .55s var(--ease); pointer-events: none; }
.anim .line.on { opacity: 1; transform: none; pointer-events: auto; }
.anim .line-index { display: flex; position: absolute; bottom: clamp(28px, 6vh, 56px); inset-inline-start: var(--m); gap: 6px; flex-wrap: wrap; }
.anim .line-index a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-size: var(--s-small); font-weight: 700; color: var(--mute); background: transparent; transition: background-color .25s, color .25s; }
.anim .line-index a:hover { color: var(--paper); }
.anim .line-index a.on { background: var(--gold); color: var(--ink); }

/* ---------- how it works: one bar ---------- */
.how { background: var(--paper); color: var(--ink); padding: clamp(120px, 16vh, 200px) var(--m); }
.how h2 { font-size: var(--s-1); margin-bottom: 64px; }
.bar { display: flex; gap: 6px; height: 24vh; min-height: 160px; }
.bar > div { flex-grow: var(--g); flex-basis: 0; min-width: 14%; background: var(--c); color: var(--t); padding: 22px; font-size: var(--s-2); font-weight: 800; line-height: 1.05; }
.bar-notes { display: flex; gap: 6px; margin-top: 18px; }
.bar-notes > p { flex-grow: var(--g); flex-basis: 0; min-width: 14%; padding-inline-end: 12px; }
.bar-notes p span { display: block; max-width: 26ch; }
.bar > div small { display: none; }

/* ---------- about ---------- */
.about { background: var(--sand); color: var(--ink); padding: clamp(120px, 16vh, 200px) var(--m); }
.about h2 { font-size: var(--s-1); }
.about .lead { margin-top: 24px; max-width: 52ch; }
.about .tiles { margin-top: 72px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: start; }
.about .photo { grid-column: 1 / 9; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.about .photo img { width: 100%; height: 100%; object-fit: cover; }
.about .photo .note { position: absolute; top: 0; inset-inline-end: 0; width: 360px; background: var(--paper); padding: 20px; }
.about .photo .credit { position: absolute; bottom: 0; inset-inline-start: 0; background: var(--paper); font-size: var(--s-small); padding: 6px 10px; }
.about .side { grid-column: 9 / -1; }
.about .coin-tile { background: var(--ink); aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.about .coin-tile svg { width: 40%; height: auto; }
.about dl { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.about dt { font-size: var(--s-small); color: var(--soft); }
.about dd { font-weight: 700; }

/* ---------- questions ---------- */
.faq-head { background: var(--green); color: var(--paper); min-height: 36svh; display: flex; align-items: flex-end; padding: 48px var(--m); }
.faq-head h2 { font-size: var(--s-1); }
.qa { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 56px var(--m); background: var(--ink); color: var(--paper); }
.qa:nth-of-type(even) { background: var(--ink-2); }
.qa h3 { grid-column: 1 / 6; font-size: var(--s-2); font-weight: 700; line-height: 1.15; }
.qa p { grid-column: 7 / -1; max-width: 56ch; color: var(--paper); }

/* ---------- contact: the gold chapter ---------- */
.contact { background: var(--gold); color: var(--ink); }
.rows a, .rows p { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 150px; padding: 0 var(--m) 26px;
  font-size: var(--s-1); line-height: 1; letter-spacing: -.02em; text-decoration: none; }
.rows > :nth-child(even) { background: var(--gold-2); }
.rows a:hover .row-t { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.rows .well { width: clamp(72px, 9vw, 120px); height: clamp(72px, 9vw, 120px); border-radius: 50%; object-fit: cover; flex: none; }

.writer { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: clamp(80px, 12vh, 140px) var(--m); background: var(--ink); color: var(--paper); }
.writer h2 { grid-column: 1 / 6; font-size: var(--s-1); }
.writer .intro { grid-column: 1 / 6; margin-top: 20px; max-width: 40ch; color: var(--mute); }
.writer form { grid-column: 7 / -1; grid-row: 1 / span 3; }
.writer fieldset { border: 0; margin: 0; padding: 0; }
.writer legend { font-weight: 700; margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--ink-2); color: var(--paper); font-weight: 700; transition: background-color .15s, color .15s, transform .15s var(--ease); }
.chip input:hover + span { background: #22362E; }
.chip input:checked + span { background: var(--gold); color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.chip input:active + span { transform: scale(.96); }
.writer label.name { display: block; margin-top: 26px; font-weight: 700; }
.writer input[type="text"] { display: block; width: 100%; max-width: 420px; margin-top: 10px; min-height: 52px; padding: 0 16px; border-radius: 10px; border: 2px solid #3B5249; background: var(--ink-2); color: var(--paper); font: 400 var(--s-body) var(--font); }
.bubble { margin-top: 28px; background: var(--paper); color: var(--ink); padding: 18px 22px; border-radius: 18px 18px 4px 18px; max-width: 520px; white-space: pre-line; }
.writer .send { margin-top: 22px; }
.writer .fine { margin-top: 14px; font-size: var(--s-small); max-width: 52ch; color: var(--mute); }

/* ---------- footer ---------- */
.foot { background: var(--ink); padding: 10px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.foot .t { padding: 22px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.foot .t1 { grid-column: 1 / 5; background: var(--sand); color: var(--ink); }
.foot .t1 p.say { font-size: var(--s-2); font-weight: 700; line-height: 1.15; max-width: 22ch; }
.foot .t1 .legal { font-size: var(--s-small); line-height: 1.5; max-width: 60ch; }
.foot .t2 { grid-column: 5 / 8; background: var(--green); color: var(--paper); }
.foot .t2 ul { display: grid; gap: 6px; }
.foot .t2 a { text-decoration: none; padding: 4px 0; display: inline-block; }
.foot .t2 a:hover { text-decoration: underline; }
.foot .t3 { grid-column: 8 / 10; background: var(--sand); color: var(--ink); }
.foot .t3 strong { font-size: var(--s-2); font-weight: 800; }
.foot .t4 { grid-column: 10 / -1; background: var(--ink-2); color: var(--paper); }
.foot .t4 a { font-weight: 700; text-decoration: none; }
.foot .t4 a:hover { text-decoration: underline; }
.foot .big { grid-column: 1 / 9; background: var(--ink-2); min-height: 320px; display: flex; align-items: center; justify-content: center; padding: 40px; }
.foot .big img { width: min(80%, 820px); height: auto; }
.foot .go { grid-column: 9 / -1; background: var(--gold); color: var(--ink); min-height: 320px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: background-color .2s; }
.foot .go:hover { background: #EDB843; }
.foot .go span { font-size: var(--s-2); font-weight: 800; line-height: 1.1; }
.foot .go svg { align-self: flex-end; width: 64px; height: 64px; transition: transform .25s var(--ease); }
.foot .go:hover svg { transform: translateX(-8px); }
.credits { grid-column: 1 / -1; padding: 14px 12px 6px; font-size: var(--s-small); color: var(--mute); max-width: 75ch; }

/* ---------- legal pages (paper) ---------- */
.doc-page { background: var(--paper); color: var(--ink); }
.doc { max-width: 760px; margin: 0 auto; padding: 48px var(--m) 120px; }
.doc header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 56px; }
.doc header img { height: 30px; width: auto; }
.doc h1 { font-size: var(--s-1); margin-bottom: 18px; }
.doc h2 { font-size: var(--s-2); margin: 48px 0 14px; }
.doc p, .doc li { margin-bottom: 12px; }
.doc ul { list-style: disc; padding-inline-start: 22px; }
.doc .updated { color: var(--soft); font-size: var(--s-small); }

/* ---------- entrances (visible without script) ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-rise].in { opacity: 1; transform: none; }
/* the first words rise on their own (CSS only), so nothing waits for the scripts */
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; } .hero-copy > :nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.about .photo img { animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(-2%); } }

@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .hero-copy > * { animation: none; }
  .about .photo img { animation: none; }
  .foot .go:hover svg, .btn:active { transform: none; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .topbar nav { display: none; }
  .topbar .home img { width: 120px; }
  .hero { justify-content: flex-end; }
  .hero-copy { max-width: none; margin-block: 0; padding-top: 46svh; padding-bottom: 48px; }
  .ctas .btn { width: 100%; }
  .anim .lines-stick { grid-template-columns: 1fr; align-items: end; padding-bottom: 104px; }
  .anim .line-panels { height: 42svh; }
  .anim .line { justify-content: flex-end; }
  .anim .line-index { bottom: 20px; inset-inline: 16px; overflow-x: auto; flex-wrap: nowrap; }
  .anim .line-index a { white-space: nowrap; }
  .bar { flex-direction: column; height: auto; }
  .bar > div { min-height: calc(var(--g) * 30px + 80px); }
  .bar > div small { display: block; font-size: var(--s-body); font-weight: 400; margin-top: 10px; line-height: 1.45; }
  .bar-notes { display: none; }
  .about .tiles { grid-template-columns: 1fr; }
  .about .photo, .about .side { grid-column: 1; }
  .about .photo { aspect-ratio: auto; }
  .about .photo img { aspect-ratio: 4 / 3; }
  .about .photo .note { position: static; width: auto; }
  .about .photo .credit { position: static; display: block; }
  .qa { grid-template-columns: 1fr; padding: 32px 20px; gap: 12px; }
  .qa h3, .qa p { grid-column: 1; }
  .faq-head { min-height: 28svh; }
  .rows a, .rows p { min-height: 84px; font-size: 9.4vw; padding-bottom: 16px; }
  .writer { grid-template-columns: 1fr; }
  .writer h2, .writer .intro, .writer form { grid-column: 1; grid-row: auto; }
  .writer form { margin-top: 32px; }
  .foot { grid-template-columns: 1fr 1fr; gap: 6px; }
  .foot .big { grid-column: 1 / -1; order: -2; min-height: 160px; }
  .foot .go { grid-column: 1 / -1; order: -1; min-height: 180px; }
  .foot .t2, .foot .t4 { grid-column: span 1; }
  .foot .t1, .foot .t3 { grid-column: 1 / -1; }
  .foot .t { min-height: 0; }
}
