/* Chapiware Design System */
:root {
  --color-bg: #2b1f1a;
  --color-surface: #f0ede6;
  --color-accent: #55f0c0;
  --color-rust: #9f5d39;
  --color-text-light: #f0ede6;
  --color-text-dark: #2b1f1a;
  --color-muted: rgba(240, 237, 230, 0.6);
  --font-serif: 'Palatino', 'Iowan Old Style', 'Georgia', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-underline-offset: 0.18em;
}

/* Typography */
h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: normal;
}

.eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.section-heading p:last-child {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
  text-align: center;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.4rem;
  color: var(--color-muted);
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.trust-points {
  list-style: none;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 2rem auto 0;
}

.trust-points li {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 237, 230, 0.12);
  background: rgba(240, 237, 230, 0.05);
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.hero-demo {
  max-width: 360px;
  margin: 3rem auto 0;
  padding: 0.9rem;
  border-radius: 32px;
  background: rgba(240, 237, 230, 0.05);
  border: 1px solid rgba(240, 237, 230, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-demo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

/* Buttons */
.cta-group {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1.1rem 2.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #0b261b;
  box-shadow: 0 12px 30px rgba(85, 240, 192, 0.16);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-secondary {
  border: 1px solid rgba(240, 237, 230, 0.2);
  color: var(--color-text-light);
}

.btn-secondary:hover {
  background-color: rgba(240, 237, 230, 0.05);
  border-color: rgba(240, 237, 230, 0.4);
}

.use-cases {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem 7rem;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.use-case-card {
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(240, 237, 230, 0.1);
  background: rgba(240, 237, 230, 0.04);
}

.use-case-card h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.use-case-card p {
  color: var(--color-muted);
  font-size: 1rem;
}

/* Screenshot Carousel */
.carousel-container {
  padding: 2rem 0 8rem;
  overflow: hidden;
}

.steps-list {
  max-width: 480px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.step-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: #9f5d39;
  text-align: right;
}

.step-text {
  font-size: 1.2rem;
  color: var(--color-text-light);
  padding-top: 0.15rem;
}

@media (max-width: 768px) {
  .hero { padding-top: 5rem; }
  .section-heading { margin-bottom: 2.5rem; }
  .section-heading p:last-child,
  .hero p { font-size: 1.1rem; }
  .trust-points { margin-top: 1.5rem; }
  .hero-demo {
    max-width: 280px;
    margin-top: 2rem;
    padding: 0.7rem;
    border-radius: 24px;
  }
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  .steps-list {
    padding: 0 1rem;
  }
  .step-row {
    grid-template-columns: 48px 1fr;
    gap: 0.9rem;
  }
  .step-number {
    font-size: 2rem;
  }
  .step-text {
    font-size: 1.05rem;
  }
}

/* Features */
.features {
  background-color: var(--color-surface);
  color: var(--color-text-dark);
  padding: 8rem 2rem;
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 5rem;
}

.feature-item h3 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--color-rust);
  line-height: 1.2;
}

.feature-item p {
  font-size: 1.15rem;
  color: #4a3a31;
}

.library-callout {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2rem 7rem;
}

.technical-proof {
  max-width: 980px;
  margin: 0 auto;
  padding: 7rem 2rem 8rem;
}

.technical-proof__copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.technical-proof__copy p {
  font-size: 1.15rem;
  color: var(--color-muted);
}

/* FAQ */
.faq {
  max-width: 850px;
  margin: 0 auto;
  padding: 8rem 2rem;
}

.faq h2 {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(240, 237, 230, 0.1);
  padding: 3rem 0;
}

.faq-item:first-child { border-top: 1px solid rgba(240, 237, 230, 0.1); }

.faq-item h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.faq-item p {
  font-size: 1.1rem;
  color: var(--color-muted);
}

/* Footer */
footer {
  text-align: center;
  padding: 6rem 2rem 4rem;
  border-top: 1px solid rgba(240, 237, 230, 0.1);
}

footer .links {
  margin-bottom: 3rem;
}

footer a {
  color: var(--color-text-light);
  text-decoration: none;
  margin: 0 1.5rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

footer a:hover {
  opacity: 1;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.4;
}

/* Privacy Page Specifics */
.prose-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem;
}

.prose-container h1 { font-size: 4rem; margin-bottom: 1rem; color: var(--color-accent); }
.prose-container h2 { font-size: 2rem; margin-top: 3.5rem; margin-bottom: 1.5rem; color: var(--color-accent); }
.prose-container p { margin-bottom: 1.5rem; font-size: 1.2rem; color: var(--color-muted); }

.back-link {
  display: inline-block;
  margin-bottom: 4rem;
  color: var(--color-accent);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* Comparison Section */
.comparison {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(240, 237, 230, 0.03);
  border-radius: 24px;
  border: 1px solid rgba(240, 237, 230, 0.1);
}

.compare-row {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(240, 237, 230, 0.08);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row.header-row {
  border-bottom: 2px solid rgba(240, 237, 230, 0.15);
  font-weight: bold;
}

.compare-item {
  flex: 1;
  text-align: center;
}

.compare-item.other {
  color: var(--color-muted);
}

.compare-item.sticktogif {
  color: var(--color-accent);
  font-weight: 600;
}

/* Demo Showcase Layout */
.demo-showcase {
  max-width: 1000px;
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.demo-original-container {
  max-width: 320px;
  width: 100%;
}

.demo-arrow {
  color: var(--color-muted);
  opacity: 0.5;
  width: 32px;
  height: 32px;
}

.demo-edits-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

@media (max-width: 800px) {
  .demo-edits-container {
    grid-template-columns: 1fr;
  }
}

.demo-item {
  text-align: center;
}

.demo-label {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-rust);
}

/* Trust element */
.trust-element {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  text-align: center;
}
