/* ==========================================================================
   Point2Point LP · shared base
   Tokens contract: every brand stylesheet overrides :root.
   ========================================================================== */

@font-face { font-family: 'Ping'; font-style: normal; font-weight: 400; font-display: swap; src: url('/shared/fonts/ping-regular.woff2') format('woff2'); }
@font-face { font-family: 'Ping'; font-style: normal; font-weight: 700; font-display: swap; src: url('/shared/fonts/ping-bold.woff2') format('woff2'); }
@font-face { font-family: 'Ping'; font-style: normal; font-weight: 900; font-display: swap; src: url('/shared/fonts/ping-heavy.woff2') format('woff2'); }
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/shared/fonts/heebo-hebrew.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Ping Fallback';
  src: local('Arial');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 25%;
}

:root {
  --bg: #070a12;
  --surface: #0d1220;
  --surface-2: #111a2c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f2f5fa;
  --mute: #9aa4b8;
  --accent: #35e0ff;
  --accent-2: #3f7bff;
  --accent-ink: #061018;
  --warm: #ff8a3d;
  --danger: #ff5c7a;

  --font: 'Ping', 'Heebo', 'Ping Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --m: clamp(20px, 5vw, 80px);
  --max: 1280px;
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --d1: clamp(40px, 7.2vw, 96px);
  --h2: clamp(30px, 4.2vw, 52px);
  --h3: clamp(20px, 2.2vw, 26px);
  --lede: clamp(17px, 1.6vw, 21px);
  --body: 17px;
  --small: 14px;
  --label: 13px;
}

/* --- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lat { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* --- layout ------------------------------------------------------------ */
.wrap { width: min(100% - 2 * var(--m), var(--max)); margin-inline: auto; }
.sheet { position: relative; padding-block: clamp(64px, 9vw, 128px); }
.sheet + .sheet { border-top: 1px solid var(--line); }
.g12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.4vw, 32px); }

/* pixel rule: a dotted hairline that reads as a row of LEDs */
.px-rule {
  height: 2px; border: 0; margin: 0;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 2px, transparent 2px 6px);
}

/* --- type -------------------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--label); font-weight: 600; letter-spacing: .04em;
  color: var(--accent); text-transform: none;
}
.kicker::before {
  content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.d1 { font-size: var(--d1); line-height: 1.02; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.h2 { font-size: var(--h2); line-height: 1.08; font-weight: 900; letter-spacing: -.015em; text-wrap: balance; }
.h3 { font-size: var(--h3); line-height: 1.2; font-weight: 700; }
.lede { font-size: var(--lede); line-height: 1.5; color: var(--mute); text-wrap: pretty; max-width: 62ch; }
.mute { color: var(--mute); }
.small { font-size: var(--small); }

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(53, 224, 255, 0), 0 8px 24px -12px rgba(53, 224, 255, .6);
}
.btn-primary:hover { background: #6ae8ff; box-shadow: 0 0 0 4px rgba(53, 224, 255, .12), 0 10px 28px -12px rgba(53, 224, 255, .7); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(53, 224, 255, .06); }
.btn-lg { min-height: 58px; padding-inline: 28px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { color: var(--accent); font-weight: 600; text-underline-offset: 4px; }
.link:hover { text-decoration: underline; }

/* --- form -------------------------------------------------------------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 32px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(53, 224, 255, .35), transparent 40%, transparent 60%, rgba(63, 123, 255, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px;
  opacity: 0; transition: opacity 1s var(--ease) .3s;
}
.io .card.in::before, .no-io .card::before { opacity: 1; }

.lead { display: grid; gap: 14px; }
.lead .form-head { margin-bottom: 4px; }
.lead .form-head .h3 { margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-size: var(--small); font-weight: 600; color: var(--mute); }
.field .lbl .opt { font-weight: 400; opacity: .7; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="date"], .field select {
  width: 100%; min-height: 52px; padding: 0 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field input::placeholder { color: rgba(154, 164, 184, .7); }
.field input:focus { outline: 0; border-color: var(--accent); background: rgba(53, 224, 255, .05); box-shadow: 0 0 0 3px rgba(53, 224, 255, .15); }
.field input[type="date"] { direction: ltr; text-align: right; color-scheme: dark; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .7; cursor: pointer; }
.field .msg { display: none; font-size: 13px; color: var(--danger); }
.field.is-bad .msg { display: block; }
.field.is-bad input { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; font-weight: 600;
  color: var(--mute); background: rgba(255, 255, 255, .02);
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
}
.pill input:hover + span { border-color: var(--accent); color: var(--ink); }
.pill input:checked + span { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); box-shadow: 0 6px 18px -10px var(--accent); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field.is-bad .pill span { border-color: var(--danger); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: var(--small); color: var(--mute); }
.form-err { font-size: 14px; color: var(--danger); }
.form-done { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(255, 138, 61, .06); }
.form-done .btn { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* --- header ------------------------------------------------------------ */
#top {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  height: 68px; display: flex; align-items: center;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
#top.solid { background: rgba(7, 10, 18, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
#top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#top .brand { display: flex; align-items: center; }
#top .brand svg { height: 30px; width: auto; }
#top nav { display: flex; align-items: center; gap: 14px; }
#top .top-phone { font-weight: 700; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 8px; }
#top .top-phone svg { width: 18px; height: 18px; }
#top .top-call { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
#top .top-call svg { width: 20px; height: 20px; }
#top .btn { min-height: 44px; padding-inline: 18px; font-size: 15px; }

/* --- footer ------------------------------------------------------------ */
.footer { padding-block: 40px; border-top: 1px solid var(--line); font-size: var(--small); color: var(--mute); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer .links a:hover { color: var(--ink); }
.footer svg { height: 22px; width: auto; opacity: .8; }

/* --- sticky mobile bar ------------------------------------------------- */
#mobile-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px var(--m) calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 10, 18, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
#mobile-cta.on { transform: none; }
#mobile-cta .btn { min-height: 50px; width: 100%; }

/* --- reveal ------------------------------------------------------------ */
.io .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.io .rv.in { opacity: 1; transform: none; }
.io .build { position: relative; }
.io .build::after {
  content: ''; position: absolute; inset: 0; background: var(--bg); z-index: 2; pointer-events: none;
  transition: opacity 1.1s var(--ease);
}
.io .build.in::after { opacity: 0; }
.io .draw path, .io .draw line, .io .draw rect, .io .draw polyline { stroke-dasharray: 1; stroke-dashoffset: 1; }
.io .draw.in path, .io .draw.in line, .io .draw.in rect, .io .draw.in polyline { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease); }

/* --- faq --------------------------------------------------------------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; transition: border-color .2s, transform .3s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--accent); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { border-color: var(--accent); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .a { padding: 0 0 22px; color: var(--mute); max-width: 70ch; line-height: 1.6; }

/* --- responsive -------------------------------------------------------- */
@media (max-width: 767px) {
  #top { height: 60px; }
  #top .brand svg { height: 26px; }
  #top .top-phone { display: none; }
  #top .top-call { display: inline-flex; }
  #top .btn { min-height: 40px; padding-inline: 14px; font-size: 14px; }
  #mobile-cta { display: grid; }
  body { padding-bottom: 0; }
  .sheet { padding-block: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .io .rv, .io .build::after, .io .draw path, .io .draw line, .io .draw rect, .io .draw polyline, .card::before { transition: none !important; animation: none !important; }
  .io .rv { opacity: 1; transform: none; }
  .io .build::after { opacity: 0; }
}

/* --- phone field: digits read LTR, but sit on the right like every other field */
.field input[type="tel"] { text-align: right; }
.field input[type="tel"]::placeholder { text-align: right; }

/* --- lightbox ------------------------------------------------------------ */
.lb-trigger { cursor: zoom-in; }
.lb-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
dialog.lb { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .94); color: #fff; display: none; }
dialog.lb[open] { display: grid; place-items: center; animation: lb-in .25s ease both; }
dialog.lb::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: min(92vw, 1600px); }
.lb-fig img { max-width: 100%; max-height: 82vh; object-fit: contain; opacity: 0; transform: scale(.985); transition: opacity .3s ease, transform .3s ease; }
.lb-fig img.in { opacity: 1; transform: none; }
.lb-fig figcaption { font-size: 14px; color: rgba(255, 255, 255, .75); text-align: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; font-size: 28px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 18px; left: 18px; }
.lb-prev { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; right: 24px; font-size: 13px; color: rgba(255, 255, 255, .6); }
@media (max-width: 767px) { .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; } .lb-fig img { max-height: 70vh; } }

/* --- month select: native list, custom chevron, muted until a month is picked */
.field .sel { position: relative; }
.field .sel::after { content: ''; position: absolute; inset-inline-end: 18px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; opacity: .65; }
.field select { width: 100%; cursor: pointer; padding-inline-end: 42px; appearance: none; -webkit-appearance: none; }
.field select:has(option[value=""]:checked) { color: var(--mute); }
.field select option { color: #111; background: #fff; }
.field.is-bad select { border-color: var(--danger); }
