/* פיקסל: the brand mark (a 3×3 grid with the centre square lit) as a neighbourhood at night.
   One square lights up and grows into a phone with a website. --p and --q (0..1) come from js/site.js. */
:root {
  --ink: #1C1C1E;
  --graphite: #3A3A3C;
  --dim: #2C2C2E;
  --gray: #8E8E93;
  --text-2: #5A5A5F;
  --line: #E5E5EA;
  --bg2: #F2F2F7;
  --font: "Heebo Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --p: 0;
  --q: 0;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: #fff; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.01em; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 3px solid #0A84FF; outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 8px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- hero: the neighbourhood ---------- */
.hero { position: relative; background: var(--ink); color: #fff; }
html.js .hero { height: 220vh; }
.hero__stick { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
html.js .hero__stick { position: sticky; top: 0; height: 100vh; height: 100svh; }
.hood { position: absolute; inset: 0; display: grid; justify-content: center; align-content: center; gap: var(--gap, 12px); grid-template-columns: repeat(var(--cols, 9), var(--cell, 44px)); grid-auto-rows: var(--cell, 44px); opacity: calc(1 - var(--q) * .55); transform: translateY(-15vh); }
.hood > span { border-radius: 24%; background: var(--dim); transition: background 1.2s ease; }
.hood > span.on { background: #48484A; transition-duration: .5s; }
.hood > span.lit { position: relative; z-index: 1; background: #fff; transform: scale(calc(1 + var(--p) * .35)); box-shadow: 0 0 calc(18px + var(--p) * 70px) rgba(255, 255, 255, calc(.35 + var(--p) * .3)); animation: lit 1.4s .4s ease-out both; }
.hood__lit { display: none; }
.phone { position: absolute; left: 50%; top: 35%; z-index: 2; width: min(250px, 62vw); aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 38px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .2); transform: translate(-50%, -50%) scale(calc(.17 + var(--q) * .83)); opacity: calc(var(--q) * 8); visibility: hidden; }
html.js .phone { visibility: visible; }
.phone__screen { display: grid; align-content: start; gap: 10px; height: 100%; padding: 16px 14px; border-radius: 30px; background: var(--bg2); opacity: calc(var(--q) * 1.6 - .4); overflow: hidden; }
.phone__screen span { display: block; border-radius: 6px; background: #D8D8DE; }
.ph-bar { height: 10px; width: 40%; justify-self: end; background: var(--ink) !important; }
.ph-title { height: 18px; width: 90%; background: var(--ink) !important; }
.ph-title--short { width: 60%; }
.ph-photo { height: 120px; border-radius: 14px !important; background: linear-gradient(135deg, #C7C7CC, #E5E5EA) !important; }
.ph-stars { color: #FFB020; font-size: 13px; letter-spacing: 2px; background: none !important; line-height: 1; }
.ph-line { height: 8px; width: 95%; }
.ph-line--short { width: 70%; }
.ph-btn { height: 34px; margin-top: 4px; border-radius: 12px !important; background: #25D366 !important; }
.hero__text { position: absolute; inset: auto 0 0 0; z-index: 3; padding: 120px 20px 40px; text-align: center; background: linear-gradient(to bottom, transparent, rgba(28, 28, 30, .92) 38%, var(--ink)); opacity: calc(1 - var(--q) * 2.2); transform: translateY(calc(var(--q) * -24px)); }
.hero__stick:not(:has(.hood > span)) .hero__text { position: relative; padding-top: 22vh; }
.logo { width: 132px; height: auto; margin: 0 auto 22px; }
.hero h1 { font-size: clamp(34px, 10vw, 66px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { color: #fff; text-shadow: 0 0 30px rgba(255, 255, 255, .45); }
.lead { max-width: 32ch; margin: 16px auto 0; color: #C7C7CC; font-size: 18px; }
.hero__cap { position: absolute; inset: auto 0 6vh 0; z-index: 3; padding: 0 20px; color: #C7C7CC; font-size: 17px; text-align: center; opacity: calc(var(--q) * 2 - 1); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 26px; padding: 0 26px; border-radius: 16px; font-size: 17px; font-weight: 700; text-decoration: none; transition: transform .12s; }
.btn:active { transform: translateY(2px); }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .5); }

/* ---------- sections ---------- */
.sec { padding: 76px 20px; }
.sec > * { max-width: 1000px; margin-inline: auto; }
.sec--grey { background: var(--bg2); }
.sec h2 { font-size: clamp(32px, 8.5vw, 50px); font-weight: 800; text-align: center; }
.sub { max-width: 34ch; margin: 12px auto 0; color: var(--text-2); text-align: center; }

.steps { display: grid; gap: 18px; margin-top: 36px; padding: 0; list-style: none; }
.step { padding: 26px 22px; border-radius: 24px; background: var(--bg2); }
.step h3 { margin-top: 16px; font-size: 23px; font-weight: 800; }
.step p { margin-top: 6px; color: var(--text-2); }
.mini { display: grid; grid-template-columns: repeat(3, 16px); gap: 5px; width: max-content; }
.mini b { width: 16px; height: 16px; border-radius: 5px; background: var(--line); transition: background .5s ease; }
.mini b.on { background: var(--ink); }
html.js .step:not(.is-in) .mini b.on { background: var(--line); }
.step .mini b:nth-child(2) { transition-delay: .1s; } .step .mini b:nth-child(3) { transition-delay: .2s; }
.step .mini b:nth-child(4) { transition-delay: .15s; } .step .mini b:nth-child(5) { transition-delay: .25s; } .step .mini b:nth-child(6) { transition-delay: .35s; }
.step .mini b:nth-child(7) { transition-delay: .3s; } .step .mini b:nth-child(8) { transition-delay: .4s; } .step .mini b:nth-child(9) { transition-delay: .5s; }

.ideas { display: grid; gap: 18px; margin-top: 36px; }
.idea { padding: 18px 18px 24px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(0, 0, 0, .3); }
.idea__art { position: relative; display: grid; place-items: center; height: 140px; border-radius: 16px; background: var(--ink); overflow: hidden; }
.idea h3 { margin-top: 16px; font-size: 21px; font-weight: 800; }
.idea p { margin-top: 4px; color: var(--text-2); }
.idea a { font-weight: 700; }
/* the AC */
.idea--ac .ac { position: absolute; top: 22px; width: 62%; height: 34px; border-radius: 10px 10px 14px 14px; background: linear-gradient(#fff, #D8DEE6); }
.idea--ac .temp { position: relative; top: 18px; display: grid; font-size: 40px; font-weight: 800; direction: ltr; }
.idea--ac .temp b { grid-area: 1 / 1; text-align: center; }
.idea--ac .temp b:first-child { color: #FF6A3D; animation: swap-a 4s ease-in-out infinite; }
.idea--ac .temp b:last-child { color: #7FE0FF; animation: swap-b 4s ease-in-out infinite; }
/* the switch */
.idea--switch .switch { position: relative; width: 74px; height: 40px; border-radius: 20px; background: var(--graphite); transition: background .4s .3s; }
.idea--switch .switch span { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; transition: transform .4s .3s cubic-bezier(.3, 1.4, .5, 1); }
.idea--switch .bulb { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255, 214, 102, .55), transparent 60%); opacity: 0; transition: opacity .8s .6s; }
.idea--switch.is-in .switch, html:not(.js) .idea--switch .switch { background: #34C759; }
.idea--switch.is-in .switch span, html:not(.js) .idea--switch .switch span { transform: translateX(-34px); }
.idea--switch.is-in .bulb, html:not(.js) .idea--switch .bulb { opacity: 1; }
/* the fridge */
.idea--fridge .fridge { display: flex; gap: 10px; align-items: flex-end; padding: 18px 20px 14px; border-radius: 14px; border: 2px solid #48484A; }
.idea--fridge .fridge b { width: 26px; height: 52px; border-radius: 8px; animation: can 3s ease-in-out infinite; }
.idea--fridge .fridge b:nth-child(1) { background: linear-gradient(90deg, #B3001B, #FF3B30, #B3001B); }
.idea--fridge .fridge b:nth-child(2) { background: linear-gradient(90deg, #0A3D91, #3D7BFF, #0A3D91); animation-delay: .3s; }
.idea--fridge .fridge b:nth-child(3) { background: linear-gradient(90deg, #8E8E93, #E5E5EA, #8E8E93); animation-delay: .6s; }

.prices { display: grid; gap: 18px; margin-top: 36px; }
.price { padding: 26px 22px; border-radius: 24px; background: var(--ink); color: #fff; }
.price h3 { font-size: 22px; font-weight: 700; color: #C7C7CC; }
.price__num { margin-top: 6px; font-size: 18px; color: #C7C7CC; }
.price__num b { color: #fff; font-size: 46px; font-weight: 800; letter-spacing: -.02em; }
.price ul { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.price li { position: relative; padding-inline-start: 26px; }
.price li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 12px; height: 12px; border-radius: 4px; background: #fff; }
.price--plan { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.price--plan h3, .price--plan .price__num { color: var(--text-2); }
.price--plan .price__num b { color: var(--ink); }
.price--plan li::before { background: var(--ink); }
.tag { display: inline-block; margin-inline-start: 6px; padding: 2px 10px; border-radius: 999px; background: var(--bg2); color: var(--text-2); font-size: 13px; font-weight: 700; vertical-align: middle; }
.note { margin-top: 18px; color: var(--text-2); text-align: center; }

.about { text-align: center; }
.about__mark { width: 120px; height: auto; margin: 0 auto 20px; }
.about p { max-width: 36ch; margin: 16px auto 0; color: var(--text-2); font-size: 18px; }

.faq { display: grid; gap: 10px; max-width: 640px; margin-top: 32px; }
.faq details { padding: 4px 20px; border-radius: 18px; background: var(--bg2); }
.faq summary { position: relative; padding: 14px 0 14px 28px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--gray); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 16px; color: var(--text-2); }

.end { position: relative; padding: 90px 20px 96px; background: var(--ink); color: #fff; text-align: center; overflow: hidden; }
.end__lit { display: block; width: 46px; height: 46px; margin: 0 auto 30px; border-radius: 12px; background: #fff; box-shadow: 0 0 60px rgba(255, 255, 255, .5); animation: breathe 3s ease-in-out infinite; }
.end h2 { font-size: clamp(34px, 9vw, 54px); font-weight: 800; }
.end p { margin-top: 12px; color: #C7C7CC; font-size: 19px; }
.foot { padding: 26px 20px 34px; background: var(--ink); color: var(--gray); font-size: 14px; text-align: center; border-top: 1px solid var(--graphite); }
.foot a { color: #fff; }
.plain { max-width: 720px; margin: 0 auto; padding: 48px 20px; background: #fff; }
.plain h1 { margin-bottom: 16px; font-size: 34px; font-weight: 800; }
.plain h2 { margin: 26px 0 8px; font-size: 23px; }
.plain p, .plain li { color: var(--text-2); }

/* ---------- reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes lit { 0% { background: var(--dim); box-shadow: none; } 60% { background: #fff; } 75% { background: #8E8E93; } 100% { background: #fff; } }
@keyframes swap-a { 0%, 35% { opacity: 1; transform: none; } 50%, 85% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: none; } }
@keyframes swap-b { 0%, 35% { opacity: 0; transform: translateY(10px); } 50%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); } }
@keyframes can { 50% { transform: translateY(-6px) scaleX(.85); } }
@keyframes breathe { 50% { box-shadow: 0 0 100px rgba(255, 255, 255, .75); transform: scale(1.08); } }

@media (min-width: 760px) {
  .steps, .ideas { grid-template-columns: repeat(3, 1fr); }
  .prices { grid-template-columns: 1fr 1fr; }
  .phone { width: 270px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  html.js .hero { height: auto; }
  html.js .hero__stick { position: relative; }
  .phone, .hero__cap { display: none; }
  .hero__text { opacity: 1; transform: none; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
.ph-gallery { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; height: 56px; background: none !important; }
.ph-gallery b { border-radius: 8px; background: #D1D1D6; }
