/*
Theme Name: Astra Child
Theme URI: https://taskdial.in
Description: Child theme for Astra – WhatsApp-first Kanban SaaS
Author: TaskDial
Author URI: https://taskdial.in
Template: astra
Version: 1.0.2
*/

/* =========================
   BASE RESET (LINT SAFE)
========================= */
html {
  box-sizing: border-box;
}

body,
div,
section,
article,
aside,
main,
header,
footer,
nav,
ul,
ol,
li,
p,
span,
a,
img,
button,
input,
textarea,
select,
table,
thead,
tbody,
tr,
td,
th,
form,
label,
canvas {
  box-sizing: border-box;
}

/* Global font */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, sans-serif;
}

/* =========================
   GLOBAL WIDTH FIX
========================= */
body,
.site,
.site-content {
  max-width: 100%;
  overflow-x: hidden;
}

/* Astra container overrides */
.ast-container,
.ast-primary-header-bar,
.ast-page-builder-template .site-content {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.ast-container > .content-area,
.ast-container > .site-content {
  max-width: 100%;
}

/* =========================
   SECTION CONTAINERS
========================= */
.td-hero,
.td-features,
.td-app-description,
.td-how,
.td-kanban-demo,
.td-waitlist,
.td-feedback,
.td-tagline,
.td-pricing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
}

/* =========================
   HERO
========================= */
.td-hero {
  background: #f8fafc;
}

.td-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.td-hero-left,
.td-hero-right {
  flex: 1;
}

.td-hero-right {
  text-align: right;
}

.td-hero h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.td-hero-desc {
  color: #475569;
  font-size: 17px;
  max-width: 520px;
}

.td-hero-image {
  max-width: 100%;
  height: auto;
}

.td-hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .td-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .td-hero-right {
    text-align: center;
  }

  .td-hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* =========================
   BUTTONS
========================= */
.td-btn-primary,
.td-btn-secondary {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.td-btn-primary {
  background: #25D366;
  color: #ffffff;
}

.td-btn-secondary {
  border: 1px solid #25D366;
  color: #25D366;
}

/* =========================
   FEATURES
========================= */
.td-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.td-feature-card img {
  height: 48px;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .td-features {
    grid-template-columns: 1fr;
  }
}

/* =========================
   HOW IT WORKS
========================= */
.td-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

@media (max-width: 900px) {
  .td-how-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   KANBAN PREVIEW
========================= */
.wa-kanban-board.is-preview {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.wa-kanban-column {
  min-width: 240px;
}

/* =========================
   PRICING
========================= */
.td-pricing {
  text-align: center;
}

.td-pricing h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.td-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.td-price-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 40px 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}

.td-price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.td-price-card .price {
  font-size: 32px;
  font-weight: 700;
  margin: 16px 0 24px;
}

.td-price-card.featured {
  border: 2px solid #25D366;
  transform: scale(1.06);
  z-index: 2;
}

.td-price-card.featured:hover {
  transform: scale(1.06) translateY(-6px);
}

.td-price-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #25D366;
  color: #ffffff;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .td-pricing-grid {
    grid-template-columns: 1fr;
  }

  .td-price-card.featured {
    transform: none;
  }
}

/* =========================
   LOCKED STATES
========================= */
.wa-locked {
  text-align: center;
  padding: 80px 20px;
  color: #64748b;
}

/* =========================
   INVESTOR DASHBOARD
========================= */
#td-investor-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
}

.td-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.td-metric-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  text-align: center;
}

.td-metric-card span {
  display: block;
  font-size: 30px;
  font-weight: 700;
  margin-top: 10px;
}

/* Heatmap */
.td-heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 40px;
}

.td-heat {
  height: 16px;
  border-radius: 4px;
  background: #e5e7eb;
}

.td-heat.high { background: #22c55e; }
.td-heat.mid  { background: #86efac; }
.td-heat.low  { background: #dcfce7; }

/* Investor actions */
.td-investor-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.td-investor-actions button {
  background: #25D366;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.td-investor-actions .danger {
  background: #dc2626;
}

@media (max-width: 900px) {
  .td-metrics {
    grid-template-columns: 1fr;
  }
}

.demo-status {
  font-size: 12px;
  color: #666666;
  margin-bottom: 10px;
}
