/* static/css/index.css */
/* HOME — 4 IN A ROW DESKTOP, 1 COLUMN MOBILE, LIGHT-GRAY PRO CARDS, APPLE-BLUE BUTTONS */

html { -webkit-text-size-adjust: 100%; }

/* כל המשתנים רק לעמוד הבית כדי לא להשפיע על עמודים אחרים */
body.home{
  --card-w: 260px;
  --card-h: 340px;
  --gap: 28px;

  --card-radius: 22px;

  /* Professional light-gray */
  --page-bg: #FFFFFF;
  --card-bg: #f1f3f5;
  --card-border: #d9dde3;

  --shadow: 0 10px 26px rgba(16, 24, 40, 0.10);
  --shadow-hover: 0 14px 34px rgba(16, 24, 40, 0.14);

  --text: #111827;
  --muted: #6b7280;
  --chip-bg: #ffffff;
  --chip-border: #e5e7eb;

  /* Apple-ish blue */
  --blue: #0a84ff;
  --blue-hover: #006fe6;

  /* spacing between blocks */
  --welcome-outer-bottom: 28px;
  --greet-bottom: 40px;
  --brand-bottom: 26px;

  background: var(--page-bg) !important;
  background-image: none !important;
  background-attachment: initial !important;
}

/* Center wrapper */
body.home .intro-wrapper{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;

  padding-top: 110px;
  padding-bottom: 70px;
  box-sizing: border-box;
}

@media (max-width: 560px){
  body.home{
    --welcome-outer-bottom: 18px;
    --greet-bottom: 26px;
    --brand-bottom: 20px;
  }

  body.home .intro-wrapper{
    padding-top: 120px;
    padding-bottom: 40px;
  }
}

/* ===== Welcome ===== */
body.home .welcome-message{
  text-align: center;
  margin: 0 auto var(--welcome-outer-bottom);
  padding: 0 12px;
  transition: filter .2s ease, opacity .2s ease;
}

body.home .welcome-greet{
  margin-bottom: var(--greet-bottom);
}

body.home .welcome-brand{
  margin-bottom: var(--brand-bottom);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== assets row (logo + qr + og) ===== */
body.home .brand-assets-row{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  margin: 0 auto 14px;
  flex-wrap: wrap;
  min-height: 110px;
}

body.home .brand-logo,
body.home .brand-asset{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 96px;
  min-width: 96px;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

body.home .brand-logo img,
body.home .brand-asset img{
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: block;
}

body.home .asset-link{
  margin-top: 8px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  line-height: 1.35;
  text-align: center;
  max-width: 96px;
  word-break: break-word;
}

body.home .asset-link:hover{
  color: var(--blue-hover);
  text-decoration: underline;
}

/* Gradient greeting */
body.home .welcome-line-1{
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 8px;

  background: linear-gradient(30deg,#007AFF,#AF52DE,#FF3B30);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.home .welcome-line-2{
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

body.home .welcome-line-3{
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.15;
}

body.home .brand-sub{
  text-align: center;
}

/* ===== GRID (Desktop: 4) ===== */
body.home .bots-row{
  display: grid !important;
  grid-template-columns: repeat(4, var(--card-w));
  grid-auto-rows: var(--card-h);
  gap: var(--gap);

  width: max-content;
  max-width: none !important;

  place-content: center;
  justify-items: stretch;
  align-items: stretch;

  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  transition: filter .2s ease, opacity .2s ease;
}

@media (max-width: 1200px){
  body.home .bots-row{
    grid-template-columns: repeat(2, var(--card-w));
    width: max-content;
  }
}

@media (max-width: 560px){
  body.home .bots-row{
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    width: min(92vw, 380px);
    max-width: min(92vw, 380px) !important;
    gap: 16px;
  }

  body.home .bot-card{
    height: 340px;
    min-height: 340px;
  }

  body.home .brand-assets-row{
    gap: 14px;
    margin-bottom: 12px;
    min-height: 100px;
  }

  body.home .brand-logo,
  body.home .brand-asset{
    width: 84px;
    min-width: 84px;
  }

  body.home .brand-logo img,
  body.home .brand-asset img{
    width: 72px;
    height: 72px;
    border-radius: 10px;
  }

  body.home .asset-link{
    max-width: 84px;
    font-size: 11px;
    margin-top: 6px;
  }
}

/* ===== CARD BASE ===== */
body.home .bot-card{
  width: 100%;
  height: var(--card-h);
  min-height: var(--card-h);

  border-radius: var(--card-radius);
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border);

  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;

  padding: 16px 16px 14px;
  box-sizing: border-box;

  transition: transform .16s ease, box-shadow .16s ease;
  transform: none !important;
}

body.home .ai-box,
body.home .ai-marketing,
body.home .ai-voice,
body.home .ai-agency{
  background: var(--card-bg) !important;
  background-image: none !important;
}

body.home .bot-card:hover{
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-hover);
}

body.home .bot-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(700px 260px at 20% 0%,
    rgba(255,255,255,0.65) 0%,
    rgba(255,255,255,0.15) 45%,
    rgba(0,0,0,0.03) 100%
  );
  pointer-events:none;
  z-index:0;
}

body.home .bot-card > *{
  position: relative;
  z-index: 1;
}

/* ===== TEXT ===== */
body.home .card-title{
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  text-align: right;
}

body.home .card-subtitle{
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
  text-align: right;
}

body.home .card-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

body.home .kv{
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;

  min-height: 42px;
  height: 42px;

  padding: 0 12px;
  border-radius: 12px;

  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  box-sizing: border-box;
}

body.home .kv .k{
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

body.home .kv .v{
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  text-align: left;
  direction: ltr;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

body.home .kv .v input{
  width: 100%;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0;
  box-sizing: border-box;
  border-radius: 10px !important;
  font-size: 13px !important;
  padding: 0 10px !important;
}

body.home .card-spacer{
  flex: 1 1 auto;
  min-height: 0;
}

/* ===== BUTTON ===== */
body.home .card-action{
  margin-top: 0;
  margin-bottom: 0;
  min-height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.home .card-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  min-height: 44px;
  width: 88%;
  max-width: 200px;

  border-radius: 9999px;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--blue);
  color: #fff;

  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;

  box-shadow: none;
  transition: background .15s ease;
  box-sizing: border-box;
}

body.home .card-btn:hover{
  background: var(--blue-hover);
  transform: none;
  box-shadow: none;
}

body.home .custom-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  min-height: 44px;
  width: 88%;
  max-width: 200px;

  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);

  background: var(--blue);
  color: #fff;

  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

body.home .custom-btn:hover{ background: var(--blue-hover); }
body.home .custom-btn.disabled-btn{ opacity: .55; pointer-events:none; }

/* screen-reader only */
.sr-only{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ===== badge dot ===== */
body.home .badge-dot{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;
  border-radius: 999px;

  background: #ff3b30;
  color: #fff;

  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* ===== LOCKED DASHBOARD MODAL ===== */
body.home .dashboard-locked{
  position: relative;
}

body.home .dashboard-locked .welcome-message,
body.home .dashboard-locked .bots-row{
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

body.home .dashboard-locked .welcome-message{
  opacity: 0.35;
}

body.home .dashboard-locked .bots-row{
  opacity: 0.25;
}

body.home .dashboard-lock-overlay{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 24px;
  align-items: center;
  justify-content: center;
}

body.home .dashboard-locked .dashboard-lock-overlay{
  display: flex;
}

body.home .dashboard-lock-box{
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border: 1px solid #edf1f5;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  padding: 42px 44px 34px;
  text-align: center;
}

/* רק טיפוגרפיה וריווחים פנימיים */
body.home .dashboard-lock-title{
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.32;
  color: #243447;
  letter-spacing: -0.2px;
}

body.home .dashboard-lock-text{
  margin: 0 auto;
  max-width: 500px;
  color: #667085;
}

body.home .dashboard-lock-line{
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  margin: 0;
}

body.home .dashboard-lock-line + .dashboard-lock-line{
  margin-top: 6px;
}

body.home .dashboard-lock-actions{
  margin-top: 26px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

body.home .dashboard-lock-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

body.home .dashboard-lock-btn:hover{
  transform: translateY(-1px);
}

body.home .dashboard-lock-btn.primary{
  background: #1570ef;
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 112, 239, 0.18);
}

body.home .dashboard-lock-btn.secondary{
  background: #fff;
  color: #334155;
  border: 1px solid #d8dee6;
}

@media (max-width: 768px){
  body.home .dashboard-lock-overlay{
    padding: 16px;
  }

  body.home .dashboard-lock-box{
    border-radius: 22px;
    padding: 42px 26px 30px;
    max-width: 100%;
  }

  body.home .dashboard-lock-title{
    font-size: 18px;
    margin-bottom: 14px;
    line-height: 1.35;
  }

  body.home .dashboard-lock-text{
    max-width: 100%;
  }

  body.home .dashboard-lock-line{
    font-size: 14px;
    line-height: 1.4;
  }

  body.home .dashboard-lock-line + .dashboard-lock-line{
    margin-top: 5px;
  }

  body.home .dashboard-lock-actions{
    margin-top: 22px;
    flex-direction: column;
  }

  body.home .dashboard-lock-btn{
    width: 100%;
  }
}