/* ═══════════════════════════════════════════
   Nir's Apps – shared styles
   Same look as before: dark navy, cyan + gold, Heebo, RTL
═══════════════════════════════════════════ */
:root {
  --bg:        #0B0F1A;
  --surface:   #111827;
  --card:      #161D2E;
  --border:    rgba(255,255,255,0.07);
  --cyan:      #00D4FF;
  --cyan-dim:  rgba(0,212,255,0.12);
  --gold:      #F5C842;
  --gold-dim:  rgba(245,200,66,0.12);
  --text:      #E8EDF5;
  --muted:     #7A8499;
  --radius:    16px;
  --accent:    var(--cyan);
  --accent-dim:var(--cyan-dim);
}
body.theme-gold { --accent: var(--gold); --accent-dim: var(--gold-dim); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Heebo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 92px;
}
body.home { padding-top: 0; }
img { max-width: 100%; }
a { color: inherit; }

/* ── FLOATING TRAY ── */
.tray-wrap {
  position: fixed; top: 14px; right: 0; left: 0; z-index: 100;
  display: flex; justify-content: center; padding: 0 14px;
  pointer-events: none;
}
.tray {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; gap: 6px;
  max-width: 1180px; width: 100%;
  padding: 8px 10px 8px 10px;
  background: rgba(17,24,39,0.78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,212,255,0.04) inset;
}
.tray-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; padding: 4px 10px 4px 14px; flex-shrink: 0;
}
.tray-logo img { width: 34px; height: 34px; }
.tray-logo span { font-weight: 800; font-size: 16px; color: var(--text); letter-spacing: -.2px; white-space: nowrap; }
.tray-apps {
  display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center;
  overflow-x: auto; scrollbar-width: none;
}
.tray-apps::-webkit-scrollbar { display: none; }
.tray-app {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 14px;
  text-decoration: none; color: var(--muted);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .2s, color .2s;
}
.tray-app img { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; }
.tray-app:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.tray-app.active { background: var(--cyan-dim); color: var(--cyan); }
.tray-cta {
  flex-shrink: 0; text-decoration: none;
  padding: 10px 20px; border-radius: 14px;
  font-size: 14px; font-weight: 700;
  background: var(--cyan); color: #04202a;
  transition: transform .2s, box-shadow .2s;
}
.tray-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0,212,255,0.35); }
.tray-cta.active { box-shadow: 0 0 0 2px rgba(0,212,255,.4); }
.tray-toggle {
  display: none; flex-shrink: 0; margin-inline-start: auto;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text); font-size: 20px; cursor: pointer; line-height: 1;
}

@media (max-width: 960px) {
  .tray { flex-wrap: wrap; }
  .tray-toggle { display: block; }
  .tray-cta { display: none; }
  .tray-apps {
    display: none; width: 100%; order: 5; flex-direction: column; align-items: stretch;
    padding: 8px 4px 6px; overflow: visible; gap: 2px;
    border-top: 1px solid var(--border); margin-top: 6px;
  }
  .tray.open .tray-apps { display: flex; }
  .tray-app { padding: 10px 12px; font-size: 15px; }
  .tray-app.cta-mobile { background: var(--cyan); color: #04202a; font-weight: 700; justify-content: center; margin-top: 6px; }
}
@media (min-width: 961px) { .tray-app.cta-mobile { display: none; } }

/* ── GENERIC ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { max-width: 1100px; margin: 0 auto; padding: 90px 24px; }
.section + .section { border-top: 1px solid var(--border); }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-label::before { content: ''; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title {
  font-size: clamp(28px, 4.4vw, 44px); font-weight: 900; letter-spacing: -1px;
  line-height: 1.15; margin-bottom: 14px;
}
.section-lead { color: var(--muted); font-size: 17px; max-width: 640px; line-height: 1.8; }
.accent { color: var(--accent); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* ── STORE BADGES ── */
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 16px; min-width: 156px;
  border-radius: 14px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.badge small { display: block; font-size: 10.5px; line-height: 1.1; opacity: .85; font-weight: 500; letter-spacing: .2px; direction: ltr; text-align: left; }
.badge b { display: block; font-size: 19px; line-height: 1.15; font-weight: 600; direction: ltr; text-align: left; letter-spacing: -.2px; }
.badge svg { flex-shrink: 0; }
.badge.apple { background: #000; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.badge.google { background: #fff; color: #111; border: 1px solid rgba(0,0,0,.08); }
.badge.soon { opacity: .55; pointer-events: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 14px; text-decoration: none;
  font-size: 15px; font-weight: 700; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-family: inherit;
  transition: transform .2s, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #04202a; }
.btn.primary:hover { box-shadow: 0 8px 26px rgba(0,212,255,.3); }
body.theme-gold .btn.primary { color: #2a2000; }
body.theme-gold .btn.primary:hover { box-shadow: 0 8px 26px rgba(245,200,66,.3); }
.btn.gold { border-color: var(--gold); color: var(--gold); }
.btn.gold:hover { background: var(--gold-dim); }

/* ═══════════ HOME ═══════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 130px 24px 70px; position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,212,255,0.08) 0%, transparent 70%);
}
.hero-logo {
  width: 160px; height: 160px; filter: drop-shadow(0 0 32px rgba(0,212,255,0.35));
  margin-bottom: 28px; animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero h1 {
  font-size: clamp(36px, 7vw, 72px); font-weight: 900; letter-spacing: -1.5px;
  line-height: 1.1; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--cyan); }
.hero p { font-size: clamp(16px, 2.5vw, 20px); color: var(--muted); max-width: 520px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.stat-pill {
  display: flex; align-items: center; gap: 8px; padding: 9px 18px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 14px; font-weight: 500; background: var(--surface); color: var(--text);
}
.stat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); flex-shrink: 0; }
.hero-apps { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-pill {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  border: 1px solid var(--border); border-radius: 999px;
  text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500;
  background: var(--surface); transition: border-color .2s, transform .2s;
}
.hero-pill:hover { border-color: var(--cyan); transform: translateY(-2px); }
.hero-pill img { width: 28px; height: 28px; border-radius: 6px; }
.hero-cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-cta-row .hero-pill { border-color: var(--gold); color: var(--gold); }
.hero-cta-row .hero-pill:hover { border-color: var(--gold); background: var(--gold-dim); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.about-text p { color: var(--muted); font-size: 17px; line-height: 1.95; margin-bottom: 18px; }
.about-text p strong { color: var(--text); font-weight: 700; }
.timeline { display: flex; flex-direction: column; gap: 14px; }
.tl-item {
  display: grid; grid-template-columns: 78px 1fr; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
}
.tl-year { font-size: 26px; font-weight: 900; color: var(--cyan); letter-spacing: -.5px; }
.tl-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.tl-item p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 900px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }
.skill-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.skill-card:hover { border-color: rgba(0,212,255,.35); transform: translateY(-3px); }
.skill-icon { font-size: 30px; display: block; margin-bottom: 12px; }
.skill-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.skill-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 40px; }
.app-tile {
  display: flex; gap: 16px; align-items: flex-start; text-decoration: none;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  transition: border-color .2s, transform .2s;
}
.app-tile:hover { border-color: var(--cyan); transform: translateY(-3px); }
.app-tile img { width: 60px; height: 60px; border-radius: 15px; flex-shrink: 0; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.app-tile h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.app-tile p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.app-tile .more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--cyan); }
.cta-band {
  text-align: center; background: linear-gradient(160deg, #111a2e 0%, #0e1627 100%);
  border: 1px solid var(--border); border-radius: 28px; padding: 56px 28px;
}
.cta-band h2 { font-size: clamp(26px,4vw,40px); font-weight: 900; letter-spacing: -1px; margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; font-size: 16px; }
.cta-band .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════ APP PAGE ═══════════ */
.app-hero {
  position: relative; overflow: hidden; min-height: 700px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 55% 70% at 22% 55%, var(--accent-dim) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 10%, rgba(255,255,255,0.03) 0%, transparent 70%);
}
.app-hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 56px 24px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; min-height: 680px;
  position: relative;
}
.app-hero-text { position: relative; z-index: 2; }
.app-hero-icon { width: 76px; height: 76px; margin-bottom: 22px; }
.app-hero-icon img { width: 100%; height: 100%; border-radius: 19px; box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; background: var(--accent-dim); color: var(--accent);
}
.chip.plain { background: var(--surface); color: var(--muted); border: 1px solid var(--border); font-weight: 500; }
.app-hero h1 {
  font-size: clamp(38px, 6vw, 66px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 18px;
}
.app-hero .lead { font-size: clamp(16px, 2vw, 19px); color: #aeb8cc; max-width: 520px; line-height: 1.8; margin-bottom: 30px; }
.hero-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-links a { font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.hero-links a:hover { color: var(--accent); }

/* hand + phone (anchored to the hero, bleeds off the bottom/left edge) */
.hand-phone {
  position: absolute; bottom: -60px; left: max(-40px, calc(50% - 640px));
  height: clamp(520px, 54vw, 720px); aspect-ratio: 1251 / 1400;
  z-index: 1; filter: drop-shadow(0 30px 60px rgba(0,0,0,.55));
  pointer-events: none;
}
.hand-phone .hp-hand {
  position: absolute; inset: 0; width: 100%; height: 100%; transform: scaleX(-1); z-index: 3;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%);
          mask-image: linear-gradient(to right, transparent 0, #000 24%);
}
.hp-screen {
  position: absolute; z-index: 2; overflow: hidden; background: #05070d;
  left: 45.71%; top: 1.96%; width: 42.22%; height: 79.39%;
  border-radius: 13% / 6%;
}
.hp-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transition: opacity .9s ease;
}
.hp-screen img.on { opacity: 1; }
.hp-splash {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(165deg, #0B0F1A 0%, #1a2540 100%);
}
.hp-splash img { position: static; opacity: 1; width: 46%; height: auto; border-radius: 22%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.hp-splash span { font-size: clamp(11px, 1.5vw, 18px); font-weight: 800; color: var(--text); }

/* desktop software mock (Gabbai-X hero) */
.desk-mock {
  position: absolute; bottom: 70px; left: max(-60px, calc(50% - 660px)); z-index: 1;
  width: clamp(460px, 50vw, 660px); aspect-ratio: 16 / 11; direction: rtl;
  background: #0f1626; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(245,200,66,.08); pointer-events: none;
  transform: perspective(1400px) rotateY(8deg) rotateX(2deg); font-size: clamp(8px, 1vw, 12px);
}
.dm-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #0b1120; border-bottom: 1px solid var(--border); }
.dm-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4358; }
.dm-bar i:nth-child(1){background:#ff5f57} .dm-bar i:nth-child(2){background:#febc2e} .dm-bar i:nth-child(3){background:#28c840}
.dm-bar span { margin-inline: auto; padding: 2px 18px; border-radius: 6px; background: #161d2e; color: var(--muted); direction: ltr; }
.dm-body { display: grid; grid-template-columns: 22% 1fr; height: calc(100% - 34px); }
.dm-side { background: #0b1120; border-inline-end: 1px solid var(--border); padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.dm-logo { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--gold); margin-bottom: 10px; }
.dm-logo img { width: 20px; height: 20px; border-radius: 6px; }
.dm-side b { font-weight: 500; padding: 6px 8px; border-radius: 7px; color: var(--muted); }
.dm-side b.on { background: var(--gold-dim); color: var(--gold); font-weight: 700; }
.dm-main { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.dm-title { font-weight: 800; font-size: 1.35em; }
.dm-title small { color: var(--muted); font-weight: 500; font-size: .7em; margin-inline-start: 8px; }
.dm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dm-kpis div, .dm-card { background: #161d2e; border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; }
.dm-kpis small { display: block; color: var(--muted); }
.dm-kpis strong { font-size: 1.5em; font-weight: 900; color: var(--gold); }
.dm-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.dm-card h4 { font-size: 1em; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.dm-chart { display: flex; align-items: flex-end; gap: 6px; height: 54px; }
.dm-chart u { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(var(--gold), rgba(245,200,66,.25)); }
.dm-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dm-card li { display: flex; justify-content: space-between; color: #c4cbdb; }
.dm-card em { font-style: normal; color: var(--muted); }
.dm-card em.ok { color: #4ade80; } .dm-card em.due { color: #f87171; }
@media (max-width: 900px) {
  .desk-mock { position: relative; left: auto; bottom: auto; width: min(92%, 520px); margin: 18px auto 24px; transform: none; font-size: 9px; }
}

@media (max-width: 900px) {
  .app-hero { min-height: 0; }
  .app-hero-inner { grid-template-columns: 1fr; min-height: 0; padding-bottom: 8px; text-align: center; }
  .app-hero-text { display: flex; flex-direction: column; align-items: center; }
  .app-hero .lead { margin-inline: auto; }
  .chips, .stores, .hero-links { justify-content: center; }
  .hand-phone { position: relative; left: auto; bottom: -50px; height: 500px; margin: 10px auto 0; transform: translateX(-9%); }
}

/* feature rows (phone + text) */
.feature-rows { display: flex; flex-direction: column; gap: 90px; margin-top: 64px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row:nth-child(even) .fr-phone { order: 2; }
.fr-phone { display: flex; justify-content: center; }
.phone-frame {
  width: min(250px, 70vw); aspect-ratio: 9 / 19.2; border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #2a3144, #0b0e16);
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 90px var(--accent-dim);
  position: relative;
}
.phone-frame::before {
  content: ''; position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 62px; height: 6px; border-radius: 6px; background: #000; opacity: .7; z-index: 2;
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; display: block; background: #05070d; }
.fr-text .num { font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--accent); margin-bottom: 10px; display: block; }
.fr-text h3 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; letter-spacing: -.6px; margin-bottom: 12px; line-height: 1.2; }
.fr-text p { color: var(--muted); font-size: 16.5px; line-height: 1.9; max-width: 460px; }
@media (max-width: 800px) {
  .feature-rows { gap: 64px; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .feature-row:nth-child(even) .fr-phone { order: 0; }
  .fr-text p { margin-inline: auto; }
}

/* feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 44px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.feature-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* gallery */
.screenshots { overflow-x: auto; padding: 8px 0 18px; margin-top: 40px; scrollbar-width: thin; scrollbar-color: #2a3350 transparent; }
.screenshots-track { display: flex; gap: 16px; width: max-content; padding-inline: 2px; }
.screenshot-frame {
  flex-shrink: 0; width: 200px; background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  transition: transform .3s; cursor: pointer;
}
.screenshot-frame:hover { transform: translateY(-6px) scale(1.02); }
.screenshot-frame img { width: 100%; display: block; border-radius: 20px; }

/* download band */
.download-band {
  text-align: center; border: 1px solid var(--border); border-radius: 28px; padding: 60px 24px;
  background: radial-gradient(ellipse 70% 120% at 50% 0%, var(--accent-dim) 0%, transparent 70%), var(--card);
}
.download-band img.ic { width: 84px; height: 84px; border-radius: 21px; box-shadow: 0 10px 36px rgba(0,0,0,.5); margin-bottom: 18px; }
.download-band h2 { font-size: clamp(26px,4vw,40px); font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }
.download-band p { color: var(--muted); max-width: 480px; margin: 0 auto 26px; }
.download-band .stores { justify-content: center; }

/* legal links strip (bottom of each app page) */
.legal-strip {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center;
  padding: 28px 24px 8px; font-size: 14px; color: var(--muted);
}
.legal-strip a { color: var(--text); text-decoration: none; padding: 9px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); transition: border-color .2s; }
.legal-strip a:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════ LEGAL PAGES ═══════════ */
.legal-head { max-width: 860px; margin: 0 auto; padding: 36px 24px 8px; }
.legal-head .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.legal-head .crumbs a { color: var(--accent); text-decoration: none; }
.legal-head h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 900; letter-spacing: -1px; line-height: 1.15; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; }
.legal-head h1 img { width: 48px; height: 48px; border-radius: 12px; }
.legal-head .updated { font-size: 13.5px; color: var(--muted); }
.legal-head .switch { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.legal-head .switch a { font-size: 13.5px; text-decoration: none; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.legal-head .switch a.on { background: var(--accent-dim); color: var(--accent); border-color: transparent; font-weight: 700; }
.legal-body {
  max-width: 860px; margin: 22px auto 0; padding: 32px 32px 36px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 22px; font-size: 15px; color: var(--text); line-height: 1.8;
}
.legal-body h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.legal-body a { color: var(--accent); }
.legal-note { max-width: 860px; margin: 18px auto 0; padding: 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
@media (max-width: 600px) { .legal-body { padding: 22px 18px; } }

/* ═══════════ CONTACT ═══════════ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; margin-top: 44px; }
.contact-side .info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 14px; }
.contact-side h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.contact-side p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.contact-side a { color: var(--cyan); text-decoration: none; }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; font-family: inherit; font-size: 15px;
  background: var(--surface); color: var(--text); border: 1px solid rgba(255,255,255,.12);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; display: none; }
.form-status.ok { display: block; background: rgba(52,211,153,.12); color: #6ee7b7; border: 1px solid rgba(52,211,153,.3); }
.form-status.err { display: block; background: rgba(248,113,113,.12); color: #fca5a5; border: 1px solid rgba(248,113,113,.3); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ═══════════ FOOTER ═══════════ */
footer { border-top: 1px solid var(--border); padding: 48px 24px 40px; margin-top: 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 36px; margin-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; margin-bottom: 10px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-about { font-size: 13.5px; color: var(--muted); line-height: 1.7; max-width: 300px; }
.footer-col h5 { font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--text); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 90vw; border-radius: 12px; }
.lightbox-close { position: fixed; top: 24px; left: 24px; font-size: 32px; color: #fff; cursor: pointer; line-height: 1; background: none; border: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo { animation: none; }
  .hp-screen img { transition: none; }
}

.legal-body p, .legal-body li { color: var(--muted); }
.legal-body ul { padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 64px 20px; }
  .tl-item { grid-template-columns: 70px 1fr; }
}
