/* ==============================================
   Coppice — Landing Page Styles
   ============================================== */

:root {
  --purple:       #5B4DB8;
  --purple-dark:  #2D2457;
  --purple-mid:   #4A3E9E;
  --purple-light: #7B6FD8;
  --purple-pale:  #EEEDF8;
  --mint:         #7DEBBB;
  --mint-dark:    #5DD4A0;
  --white:        #FFFFFF;
  --grey-bg:      #F7F6FE;
  --text:         #1A1533;
  --text-muted:   #6B6884;
  --border:       #E0DDEE;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm:  0 2px 8px rgba(91, 77, 184, 0.10);
  --shadow-md:  0 8px 32px rgba(91, 77, 184, 0.16);
  --shadow-lg:  0 20px 64px rgba(91, 77, 184, 0.22);

  --max-width:  1100px;
  --nav-height: 72px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ==============================================
   Typography
   ============================================== */

h1, h2, h3, h4 {
  font-family: 'Poppins', -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1rem, 2vw, 1.25rem); }

p { font-size: 1rem; }

/* ==============================================
   Layout
   ============================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

/* ==============================================
   Buttons
   ============================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: var(--white);
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--purple-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary.large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-mint {
  background: var(--mint);
  color: var(--purple-dark);
}

.btn-mint:hover {
  background: var(--mint-dark);
}

/* ==============================================
   Navigation
   ============================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ==============================================
   Hero
   ============================================== */

.hero {
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: 0;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(125, 235, 187, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-end;
  gap: 64px;
}

.hero-content {
  flex: 1;
  max-width: 560px;
  padding-bottom: 80px;
}

.hero-label {
  display: inline-block;
  background: rgba(125, 235, 187, 0.18);
  color: var(--mint);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(125, 235, 187, 0.3);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 em {
  color: var(--mint);
  font-style: normal;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.trial-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0;
}

.android-note {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  margin: 0;
}

.hero-visual {
  flex: 0 0 420px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.hero-screenshot {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 24px 56px rgba(0, 0, 0, 0.45));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ==============================================
   Hook
   ============================================== */

.hook {
  background: var(--grey-bg);
  padding: 72px 0;
}

.hook-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hook-inner h2 {
  color: var(--purple);
  margin-bottom: 16px;
}

.hook-inner p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hook-definition {
  margin-top: 20px;
  font-size: 1rem !important;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ==============================================
   Features
   ============================================== */

.features {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--grey-bg);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--purple-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ==============================================
   Feature Rows (with screenshots)
   ============================================== */

.feature-row {
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-row-text {
  flex: 1;
}

.feature-row-text h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin: 14px 0 16px;
}

.feature-row-text > p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.feature-tag {
  display: inline-block;
  background: var(--purple-pale);
  color: var(--purple);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}

.feature-row-image {
  flex: 0 0 260px;
  display: flex;
  justify-content: center;
}

.feature-row-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 16px 48px rgba(91, 77, 184, 0.22));
  border-radius: 44px;
}

.feature-score-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: var(--grey-bg);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0;
}

.feature-score-card .feature-icon {
  margin-bottom: 0;
  flex-shrink: 0;
  margin-top: 4px;
}

.feature-score-text {
  flex: 1;
}

.feature-score-text h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  margin: 12px 0 12px;
}

.feature-score-text p {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 640px;
}

/* ==============================================
   How It Works
   ============================================== */

.how-it-works {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(125, 235, 187, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.how-it-works .section-header h2 {
  color: var(--white);
}

.how-it-works .section-header p {
  color: rgba(255, 255, 255, 0.65);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--mint);
  color: var(--purple-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 22px;
}

.step h3 {
  color: var(--white);
  margin-bottom: 10px;
}

.step p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.96rem;
  line-height: 1.75;
}

/* ==============================================
   Social Proof
   ============================================== */

.social-proof {
  background: var(--grey-bg);
  text-align: center;
}

.social-proof .section-header {
  margin-bottom: 40px;
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.stars {
  color: #F5A623;
  font-size: 1.3rem;
  letter-spacing: 3px;
}

.rating-label {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
}

.testimonial-quote {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 18px;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
}

/* ==============================================
   Pricing
   ============================================== */

.pricing {
  background: var(--white);
}

.pricing .section-header {
  margin-bottom: 48px;
}

.pricing-wrapper {
  max-width: 440px;
  margin: 0 auto;
}

.pricing-card {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 52px 44px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(125, 235, 187, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-badge {
  display: inline-block;
  background: var(--mint);
  color: var(--purple-dark);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.price-amount {
  font-family: 'Poppins', sans-serif;
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.price-amount sup {
  font-size: 1.6rem;
  vertical-align: super;
}

.price-period {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-top: 6px;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.price-trial {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.check {
  color: var(--mint);
  font-size: 1rem;
  flex-shrink: 0;
  font-weight: 700;
}

.pricing-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.pricing-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1;
}

/* ==============================================
   FAQ
   ============================================== */

.faq {
  background: var(--grey-bg);
}

.faq .section-header {
  margin-bottom: 48px;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--purple);
}

.faq-chevron {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple-pale);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--purple);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.faq-answer-inner a {
  color: var(--purple);
  text-decoration: underline;
}

/* ==============================================
   Download CTA
   ============================================== */

.download-cta {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(125, 235, 187, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.download-cta h2 {
  color: var(--white);
  max-width: 560px;
  margin: 0 auto 16px;
}

.download-cta p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.appstore-badge {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.appstore-badge:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

.appstore-badge img {
  height: 52px;
  width: auto;
}

/* ==============================================
   Footer
   ============================================== */

footer {
  background: var(--purple-dark);
  padding: 40px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.footer-logo img {
  height: 28px;
  opacity: 0.75;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.825rem;
  text-align: center;
}

/* ==============================================
   Download Page
   ============================================== */

.page-download {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 40px 24px;
}

.dl-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.page-download h1 {
  margin-bottom: 14px;
}

.page-download p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 380px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.dl-platform-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.page-download .footer-links {
  margin-top: 48px;
}

/* ==============================================
   Legal Pages
   ============================================== */

.page-legal {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content h1 {
  margin-bottom: 6px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin: 36px 0 10px;
  color: var(--text);
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content ul {
  color: var(--text-muted);
  padding-left: 24px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content a {
  color: var(--purple);
  text-decoration: underline;
}

/* ==============================================
   Responsive
   ============================================== */

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
  }

  .hero-content {
    max-width: 100%;
    padding-bottom: 48px;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-ctas {
    align-items: center;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    max-width: 340px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 40px;
    padding: 48px 0;
  }

  .feature-row-image {
    flex: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .feature-score-card {
    flex-direction: column;
    padding: 32px 24px;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
    gap: 36px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  section {
    padding: 64px 0;
  }

  .nav-links {
    display: none;
  }

  .pricing-card {
    padding: 40px 28px;
  }

  .price-amount {
    font-size: 3rem;
  }
}
