/* Pixel Learn Stitch redesign: site-wide Modern Tactile system */
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap");

:root {
  --stitch-surface: #fff7fb;
  --stitch-warm: #fff5ea;
  --stitch-card: #ffffff;
  --stitch-container-low: #ffeffc;
  --stitch-container: #ffe6fe;
  --stitch-container-high: #fedeff;
  --stitch-variant: #fad7fd;
  --stitch-primary: #b8004b;
  --stitch-primary-hover: #a40043;
  --stitch-primary-soft: #dc2862;
  --stitch-primary-fixed: #ffd9de;
  --stitch-secondary: #8e4e16;
  --stitch-secondary-container: #ffab6b;
  --stitch-tertiary: #956e00;
  --stitch-tertiary-soft: #ffdf9f;
  --stitch-purple: #8a4fff;
  --stitch-green: #4caf50;
  --stitch-ink: #29132e;
  --stitch-muted: #5a4044;
  --stitch-outline: #e2bdc2;
  --stitch-outline-strong: #8e6f74;
  --stitch-shadow: 0 16px 36px rgba(41, 19, 46, 0.1);
  --stitch-shadow-lift: 0 20px 44px rgba(184, 0, 75, 0.14);
  --stitch-press: 0 4px 0 rgba(41, 19, 46, 0.18);
  --stitch-radius-sm: 12px;
  --stitch-radius: 24px;
  --stitch-radius-lg: 32px;
  --stitch-max: 1200px;
}

* {
  letter-spacing: 0 !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 223, 159, 0.72), transparent 24rem),
    radial-gradient(circle at 88% 10%, rgba(250, 215, 253, 0.74), transparent 24rem),
    linear-gradient(180deg, var(--stitch-warm) 0%, var(--stitch-surface) 58%, var(--stitch-warm) 100%) !important;
  color: var(--stitch-ink) !important;
  font-family: "Quicksand", "Baloo 2", system-ui, sans-serif !important;
  font-weight: 500;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.logo,
.nav-logo,
.footer-logo,
.foot-logo,
.section-title,
.sec-title,
.hero h1,
.article-wrap h1,
.article-wrap h2,
.article-wrap h3,
.policy h1,
.policy h2,
.policy h3,
.btn,
.btn-dl,
.btn-cta,
.btn-white,
.btn-cta-white,
.nav-cta,
.nav-dl,
.lang,
.lang-btn,
.lb,
.chip,
.bc-tag,
.blog-tag,
.article-tag {
  font-family: "Quicksand", "Fredoka", system-ui, sans-serif !important;
}

h1,
h2,
h3,
.section-title,
.sec-title {
  color: var(--stitch-ink) !important;
  font-weight: 700 !important;
}

p,
li,
.lead,
.hero-sub,
.hero-subtitle,
.section-sub,
.section-subtitle,
.sec-sub,
.feature-desc,
.feat-desc,
.step-desc,
.article-wrap p,
.article-wrap li,
.policy p,
.policy li,
.blog-card p,
.bc p {
  color: var(--stitch-muted) !important;
}

/* Shared site shell */
.page,
.wrap,
.wrapper {
  position: relative;
  z-index: 1;
}

.page {
  max-width: none !important;
  padding: 0 !important;
}

.wrap,
.wrapper {
  width: 100%;
}

.sky,
.sky-bg,
.clouds {
  opacity: 0.3 !important;
}

.cloud,
.cl {
  background: rgba(255, 255, 255, 0.62) !important;
}

.cloud::before,
.cloud::after,
.cl::before,
.cl::after {
  background: rgba(255, 255, 255, 0.62) !important;
}

/* Navigation */
.topbar,
.nav,
header.sticky {
  background: rgba(255, 245, 234, 0.96) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(226, 189, 194, 0.72) !important;
  box-shadow: 0 8px 28px rgba(41, 19, 46, 0.07) !important;
  backdrop-filter: blur(10px);
  margin: 0 !important;
  position: sticky !important;
  top: 0;
  z-index: 100;
  padding: 0 24px !important;
}

.topbar {
  min-height: 80px;
}

.topbar,
.nav-inner,
.nav-in {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

.nav-inner,
.nav-in,
.topbar {
  max-width: var(--stitch-max) !important;
  height: 80px !important;
  margin: 0 auto !important;
}

.brand,
.nav-logo,
.logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--stitch-primary) !important;
  font-size: 1.38rem !important;
  font-weight: 700 !important;
  padding: 0 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.brand span,
.nav-logo span,
.logo b {
  color: var(--stitch-ink) !important;
}

.brand::before,
.nav-logo::before,
.logo::before,
.footer-logo::before,
.foot-logo::before {
  content: "extension";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Material Symbols Outlined";
  font-size: 30px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.social,
.nav-langs,
.langs,
.nav .langs {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap;
}

.social a,
.lang-btn,
.lb,
.lang {
  background: var(--stitch-card) !important;
  border: 1px solid var(--stitch-outline) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: var(--stitch-muted) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  min-height: 34px;
  padding: 7px 14px !important;
  text-align: center;
  text-decoration: none !important;
}

.social a:hover,
.lang-btn:hover,
.lang-btn.active,
.lb:hover,
.lb.on,
.lang:hover {
  background: var(--stitch-primary-fixed) !important;
  border-color: var(--stitch-primary) !important;
  color: var(--stitch-primary) !important;
}

.site-nav .nav-download {
  background: var(--stitch-primary) !important;
  border-color: var(--stitch-primary) !important;
  box-shadow: var(--stitch-press) !important;
  color: #fff !important;
}

.site-nav .nav-download:hover {
  background: var(--stitch-primary-hover) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.nav-cta,
.nav-dl,
.nav .btn,
.topbar .btn,
.btn-dl,
.btn-cta,
.btn,
.btn-white,
.btn-cta-white,
.pop-btn {
  align-items: center !important;
  background: var(--stitch-primary) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: var(--stitch-press) !important;
  color: #fff !important;
  display: inline-flex !important;
  font-weight: 700 !important;
  justify-content: center !important;
  min-height: 46px;
  padding: 12px 22px !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}

.nav-cta:hover,
.nav-dl:hover,
.btn-dl:hover,
.btn-cta:hover,
.btn:hover,
.btn-white:hover,
.btn-cta-white:hover,
.pop-btn:hover {
  background: var(--stitch-primary-hover) !important;
  box-shadow: 0 6px 0 rgba(41, 19, 46, 0.18) !important;
  transform: translateY(-2px) !important;
}

.secondary {
  background: var(--stitch-card) !important;
  border: 2px solid var(--stitch-primary) !important;
  box-shadow: none !important;
  color: var(--stitch-primary) !important;
}

.secondary:hover {
  background: var(--stitch-primary-fixed) !important;
  color: var(--stitch-primary) !important;
}

/* Layout sections */
.hero,
.sec,
section {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.hero,
.section-inner,
.sec-in,
.article-wrap,
.footer-inner,
.foot-in,
.policy,
.page > footer,
.newsletter-card {
  max-width: var(--stitch-max) !important;
}

.hero {
  margin: 0 auto !important;
  padding-top: 72px !important;
  padding-bottom: 72px !important;
  text-align: left !important;
}

[dir="rtl"] .hero {
  text-align: right !important;
}

.hero:not(.hero[aria-labelledby="blog-main-title"]) {
  align-items: center !important;
}

.hero .panel,
.panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.hero h1 {
  color: var(--stitch-ink) !important;
  font-size: clamp(2.45rem, 5.4vw, 4.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  margin: 0 0 20px !important;
  max-width: 760px;
  text-shadow: none !important;
}

.hero h1 span,
.hero h1 .highlight,
.hero h1 .pk {
  color: var(--stitch-primary) !important;
}

.hero-sub,
.hero-subtitle,
.lead {
  font-size: clamp(1rem, 1.8vw, 1.16rem) !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  margin-bottom: 22px !important;
  max-width: 640px !important;
}

.eyebrow,
.hero-eyebrow,
.updated,
.article-tag,
.blog-tag,
.bc-tag,
.chip,
.lpill {
  background: var(--stitch-tertiary-soft) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #261a00 !important;
  display: inline-flex !important;
  font-weight: 700 !important;
  margin-bottom: 16px;
  padding: 7px 14px !important;
}

.actions,
.hero-cta-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin: 24px 0 !important;
}

.chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: flex-start !important;
  margin-top: 24px !important;
}

[dir="rtl"] .chips {
  justify-content: flex-end !important;
}

.chip {
  background: var(--stitch-card) !important;
  border: 1px solid var(--stitch-outline) !important;
  color: var(--stitch-muted) !important;
  margin: 0 !important;
}

.visual,
.hero-banner,
.hero-img-wrap img,
.rounded-3xl,
.two img,
.article-wrap img {
  background: var(--stitch-card) !important;
  border: 8px solid #fff !important;
  border-radius: var(--stitch-lg, 32px) !important;
  box-shadow: var(--stitch-shadow) !important;
  overflow: hidden;
}

.visual {
  padding: 0 !important;
}

.visual img,
.hero-banner img,
.hero-img-wrap img {
  border: 0 !important;
  border-radius: 24px !important;
  box-shadow: none !important;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.section-inner,
.sec-in {
  margin: 0 auto !important;
}

.sec,
section[aria-labelledby] {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

.bg-alt,
.bg-surface,
.bg-surface-container-low {
  background: rgba(255, 239, 252, 0.54) !important;
}

.section-title,
.sec-title,
section h2 {
  font-size: clamp(1.9rem, 4vw, 3rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 14px !important;
}

.section-subtitle,
.section-sub,
.sec-sub {
  font-size: 1.06rem !important;
  line-height: 1.7 !important;
  margin-bottom: 40px !important;
}

/* Cards and grids */
.grid,
.feature-grid,
.feat-grid,
.blog-grid,
.steps,
.pet-grid {
  gap: 24px !important;
}

.grid {
  display: grid !important;
}

.card,
.feature-card,
.feat,
.step-card,
.blog-card,
.bc,
.pet-item,
.char-card,
.faq-item,
.newsletter-card,
.callout,
.answer-box,
.modern-tactile-card,
.policy,
.article-cta {
  background: var(--stitch-card) !important;
  border: 2px solid var(--stitch-container-low) !important;
  border-radius: var(--stitch-radius) !important;
  box-shadow: var(--stitch-shadow) !important;
}

.card,
.feature-card,
.feat,
.step-card,
.blog-card,
.bc,
.pet-item,
.char-card {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease !important;
}

.card:hover,
.feature-card:hover,
.feat:hover,
.step-card:hover,
.blog-card:hover,
.bc:hover,
.pet-item:hover,
.char-card:hover {
  box-shadow: var(--stitch-shadow-lift) !important;
  transform: translateY(-6px) !important;
}

.card,
.feature-card,
.feat {
  padding: 28px !important;
}

.card h3,
.feature-title,
.feat-title,
.step-title,
.blog-card h3,
.bc h3 {
  color: var(--stitch-ink) !important;
  font-size: 1.12rem !important;
  line-height: 1.35 !important;
}

.feature-icon,
.feat-ico,
.reward-icon {
  align-items: center;
  background: var(--stitch-primary-fixed);
  border-radius: 18px;
  color: var(--stitch-primary);
  display: inline-flex;
  font-size: 1.8rem !important;
  height: 56px;
  justify-content: center;
  margin-bottom: 16px;
  width: 56px;
}

.step-num {
  background: var(--stitch-primary-soft) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
}

.two {
  align-items: center !important;
  gap: 56px !important;
}

.bullet-list {
  gap: 14px !important;
}

.bullet-list li::before,
.styled-list li::before {
  color: var(--stitch-primary) !important;
  content: "check_circle" !important;
  font-family: "Material Symbols Outlined";
  font-size: 22px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.faq-q::after,
.faq-question::after {
  content: "expand_more" !important;
  color: var(--stitch-primary);
  font-family: "Material Symbols Outlined" !important;
  font-size: 24px !important;
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24;
}

.reward {
  background: linear-gradient(135deg, var(--stitch-variant), var(--stitch-container)) !important;
  border: 2px solid rgba(184, 0, 75, 0.18) !important;
  box-shadow: var(--stitch-shadow) !important;
}

.lang-strip {
  background: var(--stitch-card) !important;
  border: 2px solid var(--stitch-container-low) !important;
  border-radius: var(--stitch-radius-lg) !important;
  box-shadow: var(--stitch-shadow) !important;
}

.lpill {
  background: var(--stitch-primary-fixed) !important;
  color: var(--stitch-primary) !important;
  margin: 0 !important;
}

/* Blog and articles */
.blog-grid {
  align-items: stretch;
}

.blog-card,
.bc {
  overflow: hidden !important;
}

.blog-card-body,
.bc-body {
  padding: 26px !important;
}

.blog-read-more,
.bc a.more,
.more {
  color: var(--stitch-primary) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.article-wrap {
  margin: 0 auto !important;
  padding: 56px 24px 96px !important;
}

.article-wrap > p,
.article-wrap > ul,
.article-wrap > ol,
.article-wrap > h2,
.article-wrap > h3,
.article-wrap > .answer-box,
.article-wrap > .callout,
.article-wrap > .article-cta,
.article-wrap > nav,
.article-wrap > .breadcrumb,
.article-wrap > .article-meta,
.article-wrap > .article-tag,
.article-wrap > h1 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-wrap h1 {
  font-size: clamp(2.2rem, 5vw, 4rem) !important;
  line-height: 1.08 !important;
}

.article-wrap h2 {
  border-left: 5px solid var(--stitch-primary);
  margin-top: 48px !important;
  padding-left: 18px;
}

[dir="rtl"] .article-wrap h2 {
  border-left: 0;
  border-right: 5px solid var(--stitch-primary);
  padding-left: 0;
  padding-right: 18px;
}

.article-wrap h3 {
  color: var(--stitch-primary) !important;
}

.article-wrap > img {
  display: block;
  margin: 32px auto !important;
  max-width: 980px;
  object-fit: contain;
}

.article-meta,
.breadcrumb {
  color: var(--stitch-muted) !important;
}

.breadcrumb a,
.policy a {
  color: var(--stitch-primary) !important;
}

.answer-box {
  background: linear-gradient(135deg, var(--stitch-container-low), var(--stitch-card)) !important;
}

.answer-box strong,
.callout strong {
  color: var(--stitch-primary) !important;
}

.article-cta,
.cta-section,
.cta-sec {
  background: linear-gradient(135deg, var(--stitch-primary), var(--stitch-primary-soft)) !important;
  border: 0 !important;
  border-radius: var(--stitch-radius-lg) !important;
  color: #fff !important;
  box-shadow: var(--stitch-shadow) !important;
}

.article-cta h2,
.article-cta h3,
.article-cta p,
.cta-section h2,
.cta-section p,
.cta-sec h2,
.cta-sec p {
  color: #fff !important;
}

/* Newsletter, policy, popup */
.newsletter-card {
  margin: 0 auto !important;
  padding: 40px !important;
}

.newsletter-form input,
.policy input,
input[type="email"] {
  border: 2px solid var(--stitch-outline) !important;
  border-radius: 16px !important;
  font-family: "Quicksand", system-ui, sans-serif !important;
  padding: 14px 16px !important;
}

.policy {
  line-height: 1.7 !important;
  margin: 48px auto !important;
  padding: 40px !important;
}

.policy h1 {
  font-size: clamp(2.1rem, 5vw, 3.8rem) !important;
}

.note {
  background: var(--stitch-container-low) !important;
  border: 2px solid var(--stitch-outline) !important;
  border-radius: var(--stitch-radius) !important;
}

.app-pop .pop-in {
  background: var(--stitch-card) !important;
  border-top: 1px solid var(--stitch-outline) !important;
  box-shadow: 0 -18px 40px rgba(41, 19, 46, 0.12) !important;
}

.pop-icon {
  background: var(--stitch-primary) !important;
  border: 0 !important;
  box-shadow: var(--stitch-press) !important;
}

.pop-close {
  background: var(--stitch-ink) !important;
  border: 0 !important;
}

.pop-bar {
  background: var(--stitch-primary) !important;
}

/* Footer */
footer,
.page > footer {
  background: var(--stitch-container-high) !important;
  color: var(--stitch-ink) !important;
  margin-top: 0 !important;
  padding: 56px 24px !important;
  text-align: center !important;
}

.footer-inner,
.foot-in {
  margin: 0 auto !important;
}

.footer-logo,
.foot-logo {
  align-items: center;
  color: var(--stitch-secondary) !important;
  display: inline-flex;
  gap: 10px;
}

.footer-links,
.foot-links {
  display: flex !important;
  flex-wrap: wrap;
  gap: 14px !important;
  justify-content: center !important;
}

.footer-links a,
.foot-links a,
.footer-copy,
.foot-copy,
footer p {
  color: var(--stitch-muted) !important;
}

.footer-links a:hover,
.foot-links a:hover {
  color: var(--stitch-primary) !important;
}

/* Stitch home-page composition for the root legacy shell */
body:has(.page .hero .panel) .hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr) !important;
  gap: 56px !important;
}

body:has(.page .hero .panel) section .panel {
  background: var(--stitch-card) !important;
  border: 2px solid var(--stitch-container-low) !important;
  border-radius: var(--stitch-radius-lg) !important;
  box-shadow: var(--stitch-shadow) !important;
  padding: 36px !important;
}

body:has(.page .hero .panel) .hero .panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* RTL refinements */
[dir="rtl"] .brand::before,
[dir="rtl"] .nav-logo::before,
[dir="rtl"] .logo::before {
  margin-inline-end: 0;
}

[dir="rtl"] .bullet-list li,
[dir="rtl"] .styled-list li {
  flex-direction: row;
}

/* Responsive */
@media (max-width: 900px) {
  body:has(.page .hero .panel) .hero,
  .hero {
    grid-template-columns: 1fr !important;
  }

  .visual {
    order: -1;
  }

  .topbar,
  .nav-inner,
  .nav-in {
    height: auto !important;
    min-height: 74px;
    padding: 12px 0 !important;
  }

  .social {
    display: none !important;
  }

  .hero,
  [dir="rtl"] .hero {
    text-align: center !important;
  }

  .chips,
  [dir="rtl"] .chips,
  .actions {
    justify-content: center !important;
  }
}

@media (max-width: 760px) {
  .topbar,
  .nav {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .nav-langs,
  .langs {
    gap: 6px !important;
  }

  .lang-btn,
  .lb {
    padding: 6px 10px !important;
  }

  .nav-cta,
  .nav-dl {
    display: none !important;
  }

  .hero,
  .sec,
  section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hero {
    padding-top: 44px !important;
    padding-bottom: 52px !important;
  }

  .sec,
  section[aria-labelledby] {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .hero h1,
  .article-wrap h1 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  .grid,
  .feature-grid,
  .feat-grid,
  .blog-grid,
  .steps,
  .two {
    grid-template-columns: 1fr !important;
  }

  .newsletter-card,
  .policy,
  body:has(.page .hero .panel) section .panel {
    padding: 24px !important;
  }

  .article-wrap {
    padding: 36px 16px 72px !important;
  }
}
