/* Base */
:root {
  --primary: #FF7A1A;
  --primary-hover: #E66600;
  --secondary: #FFB300;
  --bg-color: #FFF6EC;
  --bg-gradient: linear-gradient(135deg, #FFF6EC 0%, #FFFDF8 100%);
  --text-main: #4A2E12;
  --text-muted: #8C6A48;
  --white: #fff;
  --border-color: #F7EAD7;
  --border-radius: 16px;
  --card-shadow: 0 8px 24px rgba(74, 46, 18, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
  line-height: 1.6; 
  color: var(--text-main); 
  background: var(--bg-gradient); 
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
a { text-decoration: none; color: var(--primary); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10;}
.section { padding: 60px 0; }
.text-center { text-align: center; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; font-size: 16px; font-weight: 600; text-align: center; border-radius: var(--border-radius); cursor: pointer; transition: background 0.3s; }
.btn-primary { background: var(--primary); color: var(--white); border: none; }
.btn-primary:hover { background: var(--primary-hover); }

/* Header & Hero */
.header { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); box-shadow: 0 2px 10px rgba(74, 46, 18, 0.05); padding: 15px 0; position: sticky; top: 0; z-index: 100;}
.header .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo { font-size: 24px; font-weight: bold; color: var(--primary); white-space: nowrap; }
.nav-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: center; }
.nav-links a { color: var(--text-main); font-weight: 500; font-size: 15px; transition: color 0.3s;}
.nav-links a:hover { color: var(--primary); }

.hero { text-align: center; padding: 100px 0; background: transparent; }
.hero h1 { font-size: 48px; margin-bottom: 20px; color: var(--text-main); }
.hero p { font-size: 20px; margin-bottom: 30px; color: var(--text-muted); max-width: 800px; margin-left: auto; margin-right: auto; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.feature-card { background: var(--white); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--card-shadow); text-align: center; border: 1px solid var(--border-color); }
.feature-card h3 { margin-bottom: 15px; color: var(--text-main); }
.feature-icon { font-size: 40px; margin-bottom: 15px; color: var(--primary); }

/* Streaming & AI */
.streaming-ai { background: transparent; }
.sa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 40px; }
.sa-card { background: var(--white); padding: 30px; border-radius: var(--border-radius); display: flex; align-items: center; gap: 20px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); }
.sa-card div {flex: 1;}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.price-card { background: var(--white); padding: 40px 30px; border-radius: var(--border-radius); box-shadow: var(--card-shadow); text-align: center; border: 1px solid var(--border-color); }
.price-card.popular { border-color: var(--primary); position: relative; transform: scale(1.05); box-shadow: 0 12px 30px rgba(255, 122, 26, 0.15); z-index: 10;}
.badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--primary); color: white; padding: 4px 12px; border-radius: 20px; font-size: 14px; white-space: nowrap;}
.price-card h3 { font-size: 22px; margin-bottom: 15px; color: var(--text-main); }
.price { font-size: 36px; font-weight: bold; margin-bottom: 20px; color: var(--primary); }
.price span { font-size: 16px; color: var(--text-muted); font-weight: normal; }
.price-features { margin-bottom: 30px; text-align: left; }
.price-features li { margin-bottom: 10px; padding-left: 24px; position: relative; color: var(--text-main); }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: bold;}

/* FAQ */
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-item { background: var(--white); margin-bottom: 15px; border-radius: var(--border-radius); padding: 20px; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); }
.faq-item h4 { margin-bottom: 10px; font-size: 18px; color: var(--text-main); }
.faq-item p { color: var(--text-muted); }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.review-card { background: var(--white); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--card-shadow); font-style: italic; border: 1px solid var(--border-color); color: var(--text-muted); }
.reviewer { margin-top: 15px; font-weight: bold; font-style: normal; display: flex; align-items: center; gap: 10px; color: var(--text-main); }

/* Footer */
.footer { background: #382414; color: #F7EAD7; padding: 40px 0 20px; text-align: center; position: relative; z-index: 10; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; }
.footer-links a { color: #D5B48E; transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }
.copyright { color: #8C6A48; font-size: 14px; }

/* Common Pages */
.page-header { background: var(--primary); color: white; padding: 60px 0; text-align: center; margin-bottom: 40px; position: relative; z-index: 10;}
.page-content { background: var(--white); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--card-shadow); margin-bottom: 60px; border: 1px solid var(--border-color); position: relative; z-index: 10;}
.page-content h2 { margin-top: 30px; margin-bottom: 15px; color: var(--text-main); }
.page-content h2:first-child { margin-top: 0; }
.page-content p { margin-bottom: 15px; color: var(--text-muted); }

/* Background Decorations */
.bg-decorations {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0; 
    overflow: hidden;
}

.sun-halo {
    position: absolute;
    top: -10vh;
    right: -10vw;
    width: 50vw;
    height: 50vw;
    min-width: 400px;
    min-height: 400px;
    background: radial-gradient(circle, rgba(255,179,0,0.15) 0%, rgba(255,179,0,0) 70%);
    border-radius: 50%;
    animation: sun-breathe 9s ease-in-out infinite;
    transform-origin: center;
}
@keyframes sun-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}

.light-spot {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.spot-1 {
    top: 20%; left: 10%;
    width: 400px; height: 400px;
    background: rgba(255,122,26,0.10);
    animation: float-1 30s ease-in-out infinite;
}
.spot-2 {
    top: 50%; right: 15%;
    width: 350px; height: 350px;
    background: rgba(255,179,0,0.08);
    animation: float-2 36s ease-in-out infinite;
}
.spot-3 {
    bottom: 10%; left: 30%;
    width: 500px; height: 500px;
    background: rgba(255,122,26,0.08);
    animation: float-3 42s ease-in-out infinite;
}
@keyframes float-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -50px); }
}
@keyframes float-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 60px); }
}
@keyframes float-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, 30px); }
}

.paw-path {
    position: absolute;
    bottom: 16%;
    left: 0;
    width: 100%;
    height: 30px;
}
.glowing-dot {
    position: absolute;
    top: 50%;
    left: -5vw;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px 6px rgba(255,122,26,0.7);
    margin-top: -4px;
    animation: run-dot 7s linear infinite;
}
@keyframes run-dot {
    0% { transform: translate3d(0vw, 0, 0); }
    100% { transform: translate3d(110vw, 0, 0); }
}

/* Base paw style */
.paw-print {
    position: absolute;
    top: 50%;
    margin-top: -6px;
    width: 12px; height: 10px;
    background: var(--primary);
    border-radius: 50% 50% 40% 40%;
    box-shadow: 
      -8px -8px 0 -2px var(--primary),
      -2px -11px 0 -2px var(--primary),
      4px -11px 0 -2px var(--primary),
      10px -8px 0 -2px var(--primary);
    opacity: 0;
}
.paw-left { transform: rotate(-12deg); }
.paw-right { transform: rotate(12deg) translateY(4px); }

/* Timings */
.paw-1 { left: 10%; animation: paw-fade 7s linear infinite 0.95s; }
.paw-2 { left: 22%; animation: paw-fade 7s linear infinite 1.71s; }
.paw-3 { left: 34%; animation: paw-fade 7s linear infinite 2.48s; }
.paw-4 { left: 46%; animation: paw-fade 7s linear infinite 3.24s; }
.paw-5 { left: 58%; animation: paw-fade 7s linear infinite 4.00s; }
.paw-6 { left: 70%; animation: paw-fade 7s linear infinite 4.77s; }
.paw-7 { left: 82%; animation: paw-fade 7s linear infinite 5.53s; }

@keyframes paw-fade {
    0% { opacity: 0; }
    1% { opacity: 0.5; }
    20% { opacity: 0; }
    100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .header .container { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 32px; }
  .features-grid, .sa-grid, .pricing-grid, .reviews-grid { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; z-index: 1;}
  .sa-card { flex-direction: column; text-align: center; }
  .footer-links { flex-direction: column; gap: 15px; }
  .btn { display: block; width: 100%; box-sizing: border-box; padding: 16px; font-size: 18px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .sun-halo, .light-spot, .glowing-dot, .paw-print {
        animation: none !important;
    }
    .paw-path {
        display: none;
    }
}

/* Phase 2 Accessibility & Anchor Fixes */
:target, [id] { scroll-margin-top: 100px; }
.skip-link { position: absolute; top: -100px; left: 0; background: var(--primary); color: white; padding: 10px 20px; z-index: 9999; font-weight: bold; transition: top 0.3s; }
.skip-link:focus { top: 0; }
details.faq-item { cursor: pointer; transition: all 0.3s ease; }
details.faq-item summary { list-style: none; outline: none; font-weight: bold; display: block; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item[open] summary { border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 10px; }
details.faq-item h4 { display: inline-block; margin: 0; font-size: 18px; }
details.faq-item p { padding-top: 5px; margin: 0; }
