/* MKundali marketing homepage sections. Shared header, footer, buttons and themes live in public.css. */

/* Hero */
.home-hero {
  background: var(--pub-hero-bg);
  color: var(--pub-hero-text);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 20%, var(--pub-gold-soft), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
  width: min(100% - 24px, 1280px);
  margin-inline: auto;
  padding: 40px 0 48px;
}

.home-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--pub-hero-title);
}

.home-lead {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 36em;
  margin: 0 0 24px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero-media {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--pub-gold-soft);
}

.home-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--pub-hero-text);
}

.home-hero-pills li::before {
  content: "✓ ";
  color: var(--pub-gold);
}

.home-hero-media img,
.home-hero-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #f7f4ec;
}

.home-hero-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: #3d3424;
}

.home-hero-placeholder p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
}

.home-hero-placeholder-file {
  font-family: var(--font-body) !important;
  font-size: 0.75rem !important;
  color: #6e6250;
}

.home-hero-placeholder-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
}

@media (min-width: 900px) {
  .home-hero-inner {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.4fr);
    padding: 56px 0 64px;
    gap: 36px;
  }
}

/* Sections */
.home-section {
  padding: 56px 0;
}

@media (min-width: 900px) {
  .home-section {
    padding: 72px 0;
  }
}

/* Gentle lift on cards (hover devices only, off for reduced motion) */
.home-feature-card,
.home-system-card,
.home-price-card,
.home-learn-grid .learn-entry {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-feature-card:hover,
  .home-system-card:hover,
  .home-price-card:hover,
  .home-learn-grid .learn-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 30, 60, 0.12);
    border-color: var(--pub-gold);
  }
}

.home-section-alt {
  background: var(--pub-bg-alt);
}

.home-section-head {
  text-align: center;
  max-width: 42em;
  margin: 0 auto 36px;
}

.home-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  font-weight: 600;
}

.home-section-head p {
  margin: 0;
  color: var(--pub-muted);
}

.home-section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  max-width: none;
}

.home-text-link {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.home-pricing-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.home-pricing-row .home-price-grid {
  width: 100%;
}

.home-pricing-copy {
  max-width: 40rem;
}

.home-pricing-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 600;
}

.home-pricing-copy p,
.home-pricing-cta {
  margin: 0;
}

.home-pricing-notes {
  margin: 20px auto 0;
  max-width: 40rem;
  text-align: center;
}

.home-pricing-notes p {
  text-align: center;
}


.home-section-cta {
  text-align: center;
  margin: 32px 0 0;
}

/* Feature grid */
.home-feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

.home-feature-card {
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 168px;
}

.home-section-alt .home-feature-card {
  background: var(--pub-card);
}

.home-feature-media,
.home-feature-icon {
  height: 72px;
  flex: 0 0 72px;
  background: var(--pub-icon-wash);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-feature-icon span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pub-icon-bg);
  color: var(--pub-emerald);
  border: 1px solid rgba(200, 169, 110, 0.7);
}

.home-feature-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.home-feature-icon .home-icon-accent {
  stroke: var(--pub-gold);
}

.home-feature-icon .home-icon-accent[fill="currentColor"] {
  fill: var(--pub-gold);
  stroke: none;
}

.home-feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 16px 16px 8px;
}

.home-feature-card p {
  margin: 0 16px 18px;
  font-size: 0.88rem;
  color: var(--pub-muted);
  flex: 1 1 auto;
}

/* Systems grid */
.home-systems-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .home-systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .home-systems-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-system-card {
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: 12px;
  padding: 20px;
  border-top: 3px solid var(--pub-gold);
}

.home-system-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pub-icon-bg);
  color: var(--pub-emerald);
  border: 1px solid rgba(200, 169, 110, 0.7);
  margin-bottom: 12px;
}

.home-system-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.home-system-card h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.05rem;
}

/* Linked system card: the whole card is the click target via a stretched link. */
.home-system-card {
  position: relative;
}

.home-system-link {
  color: inherit;
  text-decoration: none;
}

.home-system-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
}

.home-system-card p.home-system-more {
  margin-top: 10px;
  font-weight: 600;
  color: var(--pub-emerald-dark);
}

.home-system-link:hover {
  color: var(--pub-emerald-dark);
}

.home-system-link:focus-visible {
  outline: 2px solid var(--pub-gold);
  outline-offset: 2px;
}

.home-system-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pub-muted);
}

.home-systems-all {
  margin: 22px 0 0;
  text-align: center;
}

.home-systems-all a {
  display: inline-block;
  font-weight: 600;
  color: var(--pub-emerald-dark);
  text-decoration: none;
}

.home-systems-all a:hover,
.home-systems-all a:focus-visible {
  color: var(--pub-gold);
}

.home-systems-all a:focus-visible {
  outline: 2px solid var(--pub-gold);
  outline-offset: 2px;
}

/* Why */
.home-why-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .home-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .home-why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-why-card {
  text-align: center;
  padding: 8px 10px;
}

.home-why-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 8px;
}

.home-why-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--pub-muted);
}

.home-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  max-width: 52em;
  margin-inline: auto;
}

.home-why-list li {
  padding: 16px 18px;
  background: var(--pub-bg-alt);
  border-radius: 10px;
  border-left: 4px solid var(--pub-emerald);
}

.home-section-alt + .home-section .home-why-list li {
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-left: 4px solid var(--pub-emerald);
}

/* Learn cards (reuse learn entry structure) */
.home-learn-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .home-learn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .home-learn-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-learn-grid .learn-entry {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.home-learn-grid .learn-entry-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--pub-emerald-soft);
  overflow: hidden;
}

.home-learn-grid .learn-entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-learn-grid .learn-entry-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.home-learn-grid .learn-entry-body small {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--pub-muted);
}

.home-learn-grid .learn-entry-body b {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.home-learn-grid .learn-entry-body em {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--pub-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-learn-grid .learn-more {
  margin-top: auto;
  font-weight: 600;
  color: var(--pub-emerald);
  font-size: 0.88rem;
}

.home-learn-empty {
  text-align: center;
  color: var(--pub-muted);
}

/* Pricing overview */
.home-price-grid {
  display: flex;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.home-price-card {
  flex: 1 1 200px;
  min-width: 170px;
  text-align: left;
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: 14px;
  padding: 16px 14px 18px;
}

.home-price-card h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-price-amt {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pub-emerald-dark);
  margin: 0 0 8px;
}

.home-price-amt span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--pub-muted);
}

.home-price-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--pub-muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-price-card-highlight {
  border-color: var(--pub-gold);
  box-shadow: 0 0 0 1px var(--pub-gold-soft);
}

.home-price-card-guest .home-price-amt {
  color: var(--pub-emerald);
}

.home-price-trial,
.home-price-note {
  font-size: 0.82rem;
  color: var(--pub-muted);
  margin: 0 0 6px;
  text-align: left;
}

/* CTA band */
.home-cta-band {
  background: linear-gradient(135deg, var(--pub-emerald-dark), var(--pub-emerald));
  color: var(--pub-on-accent);
  padding: 56px 0;
  text-align: center;
  position: relative;
}

.home-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--pub-gold-soft), transparent 55%);
  pointer-events: none;
}

.home-cta-inner {
  position: relative;
}

.home-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0 0 12px;
}

.home-cta-inner p {
  margin: 0 0 24px;
  opacity: 0.95;
  max-width: 36em;
  margin-inline: auto;
}


/* Image placeholders */
.home-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  background: linear-gradient(145deg, var(--pub-emerald-soft), #d4ebe0);
  border: 2px dashed rgba(11, 122, 74, 0.35);
  color: var(--pub-emerald-dark);
  text-align: center;
  padding: 16px;
}

.home-img-placeholder-label {
  font-size: 0.75rem;
  font-weight: 600;
  word-break: break-all;
  max-width: 100%;
}

.home-img-placeholder::after {
  content: "Replace with screenshot";
  display: block;
  font-size: 0.7rem;
  margin-top: 6px;
  opacity: 0.7;
}

