/* ==========================================================================
   site-09 — Phong cách tươi vui, gần gũi (playful/friendly)
   Bảng màu: coral #FF6B5B, vàng #FFC94D, mint #4ECDC4, nền kem #FFFBF3
   ========================================================================== */

:root {
  --coral: #ff6b5b;
  --coral-dark: #e0503f;
  --yellow: #ffc94d;
  --yellow-dark: #e0a827;
  --mint: #4ecdc4;
  --mint-dark: #33a89f;
  --mint-soft: #a0e8cb;
  --cream: #fffbf3;
  --paper: #ffffff;
  --ink: #2b2320;
  --ink-soft: #6b5f57;
  --border-soft: #f1e6d8;

  --radius-lg: 32px;
  --radius-md: 24px;
  --shadow-pop: 6px 6px 0 rgba(43, 35, 32, 0.14);
  --shadow-pop-lg: 8px 8px 0 rgba(43, 35, 32, 0.16);

  --font-heading: "Baloo 2", "Quicksand", sans-serif;
  --font-body: "Quicksand", "Baloo 2", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--coral);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-pop);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(43, 35, 32, 0.18);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 rgba(43, 35, 32, 0.16);
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  border-color: var(--ink);
}

.btn-ghost {
  background: var(--paper);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-block {
  width: 100%;
}

.btn-header {
  padding: 10px 20px;
  font-size: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
}

.brand-emoji {
  font-size: 24px;
  display: inline-block;
  animation: wiggle 3s ease-in-out infinite;
}

.main-nav {
  display: flex;
  gap: 22px;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  position: relative;
}

.main-nav a:hover {
  color: var(--coral-dark);
}

@media (max-width: 780px) {
  .main-nav {
    display: none;
  }
}

/* ---------- Blobs (SVG data URI) : định nghĩa layout/animation trong file này,
   background-image thực tế nạp từ decor-blobs.css để giữ file dưới 800 dòng ---------- */
.blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
}

.blob-hero-1 {
  top: -60px;
  right: -80px;
  width: 360px;
  height: 360px;
  animation: float-slow 8s ease-in-out infinite;
}

.blob-hero-2 {
  bottom: -100px;
  left: -100px;
  width: 320px;
  height: 320px;
  animation: float-slow 10s ease-in-out infinite reverse;
}

.blob-hero-3 {
  top: 40%;
  left: 42%;
  width: 180px;
  height: 180px;
  opacity: 0.15;
  display: none;
}

.blob-features {
  top: -40px;
  left: -60px;
  width: 260px;
  height: 260px;
  opacity: 0.4;
}

.blob-usecases {
  bottom: -80px;
  right: -100px;
  width: 320px;
  height: 320px;
  opacity: 0.35;
}

.blob-pricing {
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  opacity: 0.5;
}

.blob-cta-1 {
  top: -60px;
  left: -60px;
  width: 260px;
  height: 260px;
  opacity: 0.5;
}

.blob-cta-2 {
  bottom: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  opacity: 0.5;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--mint-soft);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 52ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-price {
  font-weight: 700;
  color: var(--coral-dark);
  font-size: 15px;
}

/* Mockup "khung browser + popup extension" của hero: xem hero-mockup.css */

/* ---------- Sections common ---------- */
.section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto 48px;
  font-size: 16px;
}

.section-features { background: var(--paper); }
.section-how { background: var(--cream); }
.section-usecases { background: var(--paper); }
.section-pricing { background: var(--cream); }
.section-faq { background: var(--paper); }

/* ---------- Features grid ---------- */
.features-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-pop);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-pop-lg);
}

.feature-icon {
  display: inline-block;
  font-size: 34px;
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  animation: wiggle 0.6s ease-in-out;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ---------- Steps timeline ---------- */
.steps-timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  position: relative;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    to bottom,
    var(--coral) 0 10px,
    transparent 10px 20px
  );
}

.step-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding-bottom: 36px;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  box-shadow: var(--shadow-pop);
  z-index: 1;
}

.step-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-body p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Use cases ---------- */
.usecases-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.usecase-card {
  border-radius: var(--radius-md);
  border: 3px solid var(--ink);
  padding: 24px;
  box-shadow: var(--shadow-pop);
  transition: transform 0.25s ease;
}

.usecase-card:hover {
  transform: translateY(-5px);
}

.usecase-card.uc-coral { background: #ffe3de; }
.usecase-card.uc-yellow { background: #fff3d6; }
.usecase-card.uc-mint { background: #dcf7f0; }

.usecase-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.usecase-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .usecases-grid { grid-template-columns: 1fr; }
}

/* ---------- Pricing ---------- */
.pricing-card {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(160deg, var(--coral), var(--coral-dark));
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-pop-lg);
  overflow: hidden;
}

.pricing-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 2px solid var(--ink);
}

.pricing-product {
  font-size: 22px;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 20px;
}

.pricing-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  text-align: left;
  display: inline-block;
}

.pricing-perks li {
  font-size: 14px;
  margin-bottom: 8px;
}

.pricing-card .btn-primary {
  background: #fff;
  color: var(--coral-dark);
  border-color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 6px 22px;
  box-shadow: var(--shadow-pop);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-caret {
  flex-shrink: 0;
  color: var(--coral);
  font-size: 20px;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-caret {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- CTA final ---------- */
.section-cta-final {
  background: linear-gradient(135deg, var(--mint), var(--mint-dark));
  color: #fff;
  text-align: center;
  padding: 90px 0;
}

.cta-final-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.section-cta-final h2 {
  font-size: clamp(26px, 4vw, 38px);
  max-width: 30ch;
}

.section-cta-final .btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}

.cta-contact {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #f5ede4;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-disclaimer {
  font-size: 12.5px;
  line-height: 1.7;
  color: #cbbfb4;
  max-width: 90ch;
}

.footer-copy {
  font-size: 13px;
  color: #a89a8c;
}

/* ---------- Buy modal override (tông playful) ---------- */
.buy-modal-overlay {
  --buy-modal-accent: #ff6b5b;
  --buy-modal-accent-text: #ffffff;
  --buy-modal-bg: #fffbf3;
  --buy-modal-text: #2b2320;
  --buy-modal-muted: #6b5f57;
  --buy-modal-border: #f1e6d8;
  --buy-modal-radius: 28px;
  --buy-modal-font: "Quicksand", "Baloo 2", sans-serif;
}

.buy-modal-box {
  border: 3px solid var(--buy-modal-text);
  box-shadow: 8px 8px 0 rgba(43, 35, 32, 0.2);
}

.buy-modal-btn {
  border-radius: 999px;
  font-weight: 700;
  border-width: 2px;
}

.buy-modal-btn-primary {
  border: 2px solid var(--buy-modal-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 72px; }
  .btn-header { display: none; }
}
