/*
Theme Name: Yatoon Hub
Theme URI: https://yatoon.com/
Author: Yatoon
Author URI: https://yatoon.com/
Description: A lightweight product hub theme for Yatoon WordPress plugins, demos, downloads, and Freemius checkout links.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: yatoon-hub
*/

:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e6eaf1;
  --pink: #ec4899;
  --pink-dark: #b0185f;
  --green: #10b981;
  --green-dark: #07865a;
  --soft: #fff8fc;
  --shadow: 0 20px 58px rgba(16, 24, 40, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff8fc 0%, #fff 36%, #f8fbff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.yh-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(230, 234, 241, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.yh-nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.yh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 950;
}

.yh-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--green));
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.2);
}

.yh-links {
  display: flex;
  align-items: center;
  gap: 23px;
  color: #475467;
  font-size: 14px;
  font-weight: 850;
}

.yh-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yh-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
}

.yh-btn-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 18px 34px rgba(16, 185, 129, 0.2);
}

.yh-btn-primary:hover {
  background: var(--green-dark);
}

.yh-btn-secondary {
  color: var(--ink);
  background: #fff;
  border-color: #d9dee8;
}

.yh-btn-pink {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.2);
}

.yh-hero,
.yh-section,
.yh-page-hero,
.yh-cta {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.yh-hero {
  min-height: calc(100vh - 74px);
  padding: 70px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: 54px;
  align-items: center;
}

.yh-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--pink-dark);
  background: #fff0f8;
  border: 1px solid #ffd4ea;
  font-size: 13px;
  font-weight: 900;
}

.yh-hero h1,
.yh-page-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 0.99;
  letter-spacing: 0;
}

.yh-hero p,
.yh-page-hero p,
.yh-section-head p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.yh-hero p {
  max-width: 640px;
  margin: 0 0 28px;
}

.yh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.yh-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.yh-proof {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.yh-proof strong {
  display: block;
  margin-bottom: 4px;
  font-size: 21px;
}

.yh-proof span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.yh-showcase {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: center;
}

.yh-product-window {
  width: min(100%, 560px);
  height: 350px;
  overflow: hidden;
  justify-self: end;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.yh-product-window img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left top;
}

.yh-phone {
  position: absolute;
  right: 28px;
  bottom: 2px;
  width: 170px;
  height: 368px;
  overflow: hidden;
  border: 7px solid #111827;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22);
}

.yh-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.yh-mini-card {
  position: absolute;
  left: 0;
  bottom: 34px;
  width: 255px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(16, 24, 40, 0.1);
}

.yh-mini-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.yh-mini-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.yh-section {
  padding: 78px 0;
}

.yh-page-hero {
  padding: 70px 0 28px;
}

.yh-section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.yh-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.3vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.yh-grid,
.yh-products,
.yh-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.yh-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yh-card,
.yh-product-card,
.yh-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.05);
}

.yh-card,
.yh-panel {
  padding: 26px;
}

.yh-product-card {
  overflow: hidden;
}

.yh-product-media {
  height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.yh-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.yh-product-body {
  padding: 25px;
}

.yh-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.yh-tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #344054;
  background: #f2f4f7;
  font-size: 12px;
  font-weight: 850;
}

.yh-tag.live {
  color: #067647;
  background: #dcfae6;
}

.yh-card h3,
.yh-product-body h3,
.yh-panel h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.yh-card p,
.yh-product-body p,
.yh-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.yh-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.yh-mock-menu {
  width: min(86%, 420px);
  padding: 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.yh-mock-row {
  height: 22px;
  margin: 12px 0;
  border-radius: 999px;
  background: #eaf0f7;
}

.yh-mock-row.short {
  width: 58%;
  background: #ffd7ea;
}

.yh-dark {
  color: #fff;
  background: #111827;
}

.yh-dark .yh-section-head p,
.yh-dark .yh-panel p {
  color: #cbd5e1;
}

.yh-dark .yh-panel {
  background: #182235;
  border-color: rgba(255, 255, 255, 0.1);
}

.yh-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yh-list li {
  position: relative;
  padding: 11px 0 11px 30px;
  color: #344054;
  border-top: 1px solid #eef1f5;
  line-height: 1.5;
}

.yh-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: inset 0 0 0 5px #fff;
  border: 1px solid var(--green);
}

.yh-cta {
  margin-bottom: 68px;
  padding: 48px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #26364f);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.yh-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.yh-cta p {
  max-width: 720px;
  margin: 0;
  color: #d5dbe7;
  line-height: 1.65;
}

.yh-footer {
  padding: 34px 20px 48px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 980px) {
  .yh-links {
    display: none;
  }

  .yh-hero,
  .yh-cta {
    grid-template-columns: 1fr;
  }

  .yh-hero {
    min-height: auto;
  }

  .yh-products,
  .yh-grid,
  .yh-grid.three,
  .yh-downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .yh-nav,
  .yh-hero,
  .yh-section,
  .yh-page-hero,
  .yh-cta {
    width: min(100% - 28px, 1180px);
  }

  .yh-brand span:last-child {
    font-size: 17px;
  }

  .yh-actions .yh-btn-secondary {
    display: none;
  }

  .yh-hero h1,
  .yh-page-hero h1 {
    font-size: 42px;
  }

  .yh-proof-row,
  .yh-products,
  .yh-grid,
  .yh-grid.three,
  .yh-downloads {
    grid-template-columns: 1fr;
  }

  .yh-showcase {
    min-height: 470px;
  }

  .yh-product-window {
    height: 280px;
  }

  .yh-phone {
    right: 8px;
    width: 142px;
    height: 304px;
    border-width: 6px;
    border-radius: 23px;
  }

  .yh-mini-card {
    width: 200px;
    bottom: 22px;
  }

  .yh-section {
    padding: 56px 0;
  }

  .yh-cta {
    padding: 32px 22px;
  }
}
