/* @import Google Fonts for rounded, playful, and handwritten fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Noto+Sans+SC:wght@300..900&family=Patrick+Hand&display=swap');

:root {
  --bg-color: #FFFBEB; /* Cream paper background */
  --primary-color: #F97316; /* Warm Hand-drawn Orange */
  --primary-hover: #EA580C;
  --secondary-color: #FDE68A; /* Soft Amber Yellow */
  --secondary-light: #FEF3C7;
  --text-color: #44403C; /* Charcoal Stone Brown */
  --text-light: #78716C;
  --white: #FFFFFF;
  --border-color: #44403C;
  
  --tape-yellow: rgba(253, 230, 138, 0.8);
  --tape-orange: rgba(253, 186, 116, 0.8);
  --tape-pink: rgba(244, 63, 94, 0.4);
  --tape-green: rgba(167, 243, 208, 0.8);
  
  --font-hand: 'Patrick Hand', 'Fredoka', 'Noto Sans SC', sans-serif;
  --font-main: 'Noto Sans SC', sans-serif;
  
  --transition-normal: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 20px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-normal);
}
a:hover {
  color: var(--primary-hover);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-hand);
  color: var(--text-color);
  line-height: 1.2;
}

/* Notebook Hand-drawn Styling */
.hand-drawn-border {
  border: 3px solid var(--border-color);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}

.hand-drawn-border-sm {
  border: 2px solid var(--border-color);
  border-radius: 120px 10px 110px 8px/8px 110px 10px 120px;
}

.shadow-draw {
  box-shadow: 6px 6px 0px 0px var(--border-color);
}
.shadow-draw-primary {
  box-shadow: 6px 6px 0px 0px var(--primary-color);
}
.shadow-draw-sm {
  box-shadow: 3px 3px 0px 0px var(--border-color);
}

/* Tapes */
.tape {
  position: relative;
}
.tape::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 90px;
  height: 24px;
  background-color: var(--tape-yellow);
  border-left: 2px dashed rgba(68, 64, 60, 0.2);
  border-right: 2px dashed rgba(68, 64, 60, 0.2);
  z-index: 5;
}
.tape-orange::before {
  background-color: var(--tape-orange);
  transform: translateX(-50%) rotate(2deg);
}
.tape-pink::before {
  background-color: var(--tape-pink);
  transform: translateX(-50%) rotate(-4deg);
}
.tape-green::before {
  background-color: var(--tape-green);
  transform: translateX(-50%) rotate(1deg);
}

/* Paper Backgrounds */
.paper-white {
  background-color: var(--white);
}

.paper-grid {
  background-color: var(--white);
  background-image: 
    linear-gradient(rgba(249, 115, 22, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.paper-lines {
  background-color: var(--white);
  background-image: linear-gradient(transparent 96%, rgba(68, 64, 60, 0.1) 96%);
  background-size: 100% 28px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: bold;
  padding: 10px 24px;
  color: var(--text-color);
  background-color: var(--secondary-color);
  border: 3px solid var(--border-color);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  box-shadow: 4px 4px 0px 0px var(--border-color);
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px 0px var(--border-color);
  background-color: var(--secondary-light);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px 0px var(--border-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: var(--white);
  border-bottom: 3px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-text {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  text-shadow: 1px 1px 0px var(--border-color);
}

.logo-icon {
  width: 40px;
  height: 40px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

nav a {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 5px;
}

nav a:hover, nav a.active {
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

/* Burger menu for Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding: 60px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background-color: var(--secondary-color);
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: bold;
  padding: 4px 12px;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 15px;
  transform: rotate(-1.5deg);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-color);
}

.hero-title span {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--secondary-color);
  z-index: -1;
  border-radius: 4px;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-light);
}

.hero-ctas {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-image-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Hero Visual Art Card */
.sketch-card {
  width: 100%;
  max-width: 450px;
  padding: 20px;
  position: relative;
  background-color: var(--white);
  transform: rotate(2deg);
}

.sketch-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid var(--border-color);
}

/* Floating Elements (Animations) */
.cloud-float-1 {
  position: absolute;
  top: -20px;
  right: 10px;
  animation: float 4s ease-in-out infinite alternate;
  width: 60px;
}

.cloud-float-2 {
  position: absolute;
  bottom: 0px;
  left: -20px;
  animation: float 5s ease-in-out infinite alternate-reverse;
  width: 50px;
}

.doodle-arrow {
  position: absolute;
  bottom: -40px;
  left: 50px;
  width: 80px;
  transform: rotate(-20deg);
  animation: bounce-arrow 1.5s infinite alternate;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes bounce-arrow {
  0% { transform: translate(0, 0) rotate(-20deg); }
  100% { transform: translate(-10px, 10px) rotate(-15deg); }
}

/* Section Common */
.section {
  padding: 80px 0 40px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}

.section-title span {
  display: inline-block;
  position: relative;
}

.section-title span::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--secondary-color);
  z-index: -1;
}

/* Core Advantages Card Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.advantage-card {
  padding: 30px 20px;
  background-color: var(--white);
  transition: var(--transition-normal);
  text-align: center;
}

.advantage-card:hover {
  transform: translateY(-5px) rotate(-1deg);
}

.advantage-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
}

.advantage-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--text-color);
}

.advantage-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.advantage-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Streaming & AI Support Cards */
.media-ai-sec {
  background-color: var(--secondary-light);
  border-top: 3px solid var(--border-color);
  border-bottom: 3px solid var(--border-color);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.paper-note {
  padding: 30px;
  background-color: var(--white);
}

.paper-note h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.paper-note h3 svg {
  width: 28px;
  height: 28px;
  fill: var(--primary-color);
}

.support-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.logo-item {
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-family: var(--font-hand);
  background: var(--bg-color);
  font-size: 0.9rem;
}

/* Pricing Table */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--white);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
}

.pricing-card.popular {
  border-color: var(--primary-color);
  background-color: #FFFDF5;
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  font-family: var(--font-hand);
  padding: 3px 10px;
  font-size: 0.9rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  transform: rotate(2deg);
}

.pricing-header h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  text-align: center;
}

.price {
  font-family: var(--font-hand);
  font-size: 2.2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 15px;
}

.price span {
  font-size: 1rem;
  color: var(--text-light);
}

.price-sub {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: -10px;
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-features li {
  font-size: 0.95rem;
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10B981;
  font-weight: bold;
}

.pricing-card .btn {
  width: 100%;
}

/* User Reviews (Polaroid Taped cards) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.polaroid-card {
  background-color: var(--white);
  padding: 15px 15px 30px;
  text-align: center;
  transform: rotate(-1deg);
  transition: var(--transition-normal);
}

.polaroid-card:nth-child(even) {
  transform: rotate(2deg);
}

.polaroid-card:hover {
  transform: scale(1.05) rotate(0deg);
}

.polaroid-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  margin: 10px auto 15px;
  background-color: var(--secondary-color);
  overflow: hidden;
}

.polaroid-avatar svg {
  width: 100%;
  height: 100%;
}

.review-content {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

.review-author {
  font-weight: bold;
  font-size: 0.9rem;
}

.review-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* FAQ Accordion Cards */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background-color: var(--white);
  padding: 20px;
}

.faq-question {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  transition: var(--transition-normal);
}

.faq-item.active .faq-question::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 15px;
}

/* Footer Section */
footer {
  background-color: var(--white);
  border-top: 3px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-nav a {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-color);
  border-bottom: 2px dashed transparent;
}

.footer-nav a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.footer-divider {
  border: 0;
  height: 2px;
  background-color: var(--border-color);
  margin-bottom: 20px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: underline;
}

.footer-links a:hover {
  color: var(--primary-hover);
}

/* Static Page Styling (About, Terms, Privacy, Sitemap, Articles) */
.page-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.static-page-card {
  background-color: var(--white);
  padding: 40px;
  position: relative;
}

.static-page-card h1 {
  font-size: 2.6rem;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.static-page-card h1::after {
  content: "";
  display: block;
  width: 100px;
  height: 5px;
  background-color: var(--secondary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.static-page-card h2 {
  font-size: 1.6rem;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
}

.static-page-card p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--text-color);
  line-height: 1.8;
}

.static-page-card ul, .static-page-card ol {
  margin-bottom: 25px;
  padding-left: 30px;
}

.static-page-card li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

/* Article List Styling */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.article-card {
  background-color: var(--white);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
}

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

.article-card-header {
  margin-bottom: 15px;
}

.article-card-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.article-card-title {
  font-size: 1.4rem;
  font-family: var(--font-hand);
  margin-bottom: 10px;
}

.article-card-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article Detail Styles */
.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 35px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 15px;
}

.article-body {
  line-height: 1.8;
  font-size: 1.1rem;
}

.article-body h2, .article-body h3 {
  margin-top: 35px;
  margin-bottom: 15px;
}

.article-body h2 {
  font-size: 1.7rem;
}

.article-body h3 {
  font-size: 1.35rem;
}

.article-body p {
  margin-bottom: 20px;
  text-indent: 2em;
}

/* Sidebar or Related Links in Articles */
.internal-links-box {
  margin-top: 40px;
  padding: 20px;
  background-color: var(--secondary-light);
  border-left: 5px solid var(--primary-color);
}

.internal-links-box h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.internal-links-box ul {
  list-style: square;
  padding-left: 20px;
}

.internal-links-box li {
  margin-bottom: 8px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-image-area {
    width: 100%;
    margin-top: 20px;
  }
  
  .grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 73px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: 3px solid var(--border-color);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }
  
  nav ul.show {
    display: flex;
  }
  
  .section {
    padding: 50px 0 30px;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}
