/* Home-screen widget: Android quick actions page.
   Hero beside an Android home-screen phone frame showing the Bisro Quick 4-button widget.
   Sections for 4 defaults, 8 customizable options, setup & PIN, and offline support. */

.hw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 5vw;
  align-items: center;
  padding-top: 124px;
  padding-bottom: clamp(40px, 7vh, 80px);
  min-height: min(92vh, 880px);
}

.hw-hero .h-xl {
  font-size: clamp(36px, 4.2vw, 60px);
}

.hw-vis {
  display: grid;
  place-items: center;
  position: relative;
}

.hw-vis::before {
  content: "";
  position: absolute;
  inset: 4% -2%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #E3F1FC, rgba(227, 241, 252, 0));
  z-index: -1;
}

.hw-phone {
  width: min(320px, 80vw);
}

.hw-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 36px 18px 24px;
  background: linear-gradient(180deg, #1A283B 0%, #0F1A26 100%);
  color: #fff;
  border-radius: 36px;
  box-sizing: border-box;
}

.hw-clock {
  text-align: center;
  margin-bottom: 24px;
}

.hw-time {
  display: block;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F0F6FC;
}

.hw-date {
  display: block;
  font-size: 13px;
  color: #8B9BAC;
  margin-top: 2px;
}

.hw-widget {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 14px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hw-w-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hw-w-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #92C6FF;
}

.hw-w-tag {
  font-size: 11px;
  color: #8B9BAC;
}

.hw-w-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.hw-tile {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hw-t-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 700;
}

.hw-t-khata .hw-t-icon { background: #0E6251; color: #7DCEA0; }
.hw-t-bill .hw-t-icon { background: #1B4F72; color: #85C1E9; }
.hw-t-stock .hw-t-icon { background: #78281F; color: #F1948A; }
.hw-t-cash .hw-t-icon { background: #7D6608; color: #F9E79F; }

.hw-tile b {
  font-size: 12.5px;
  color: #FFFFFF;
}

.hw-tile small {
  font-size: 10px;
  color: #8B9BAC;
  margin-top: 2px;
}

.hw-slot-box {
  margin-top: 24px;
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}

.hw-slot-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 10px;
  color: #92C6FF;
}

.hw-slot-box p {
  margin: 6px 0 0;
  font-size: 11px;
  color: #8B9BAC;
}

/* 4 default cards */
.hw-sec-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.hw-def-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hw-def-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.hw-def-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.hw-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #EEF4FB;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--link);
}

.hw-def-top b {
  font-size: 19px;
  color: var(--ink);
}

.hw-def-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

/* 8 customizable options */
.hw-opt-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hw-opt-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
}

.hw-opt-card b {
  font-size: 17px;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

.hw-opt-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* Setup steps */
.hw-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.hw-step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hw-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sky-light);
  color: var(--link);
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.hw-step-body b {
  display: block;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}

.hw-step-body p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
}

/* Offline ready section */
.hw-offline {
  padding-top: 10px;
}

.hw-off-card {
  background: linear-gradient(135deg, #0B2545 0%, #134074 100%);
  color: #fff;
  border-radius: 20px;
  padding: clamp(28px, 4.5vw, 48px);
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hw-off-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #92C6FF;
  margin-bottom: 16px;
}

.hw-off-card .h-l {
  color: #fff;
  margin-bottom: 12px;
}

.hw-off-card .lead {
  color: #D3E0EA;
  max-width: 640px;
  margin: 0 auto 24px;
}

.hw-off-toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hw-toast-check {
  color: #0E6251;
  font-weight: 900;
}

/* Responsive */
@media (max-width: 980px) {
  .hw-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 104px;
    min-height: 0;
    gap: 28px;
  }
  .hw-def-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hw-opt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hw-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 580px) {
  .hw-opt-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
