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

:root {
  --bg: #faf8f5;
  --bg-dark: #1a1a2e;
  --text: #2d2d2d;
  --text-light: #5a5a5a;
  --accent: #c9a227;
  --accent-hover: #b08d1f;
  --red: #e63946;
  --white: #ffffff;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--white);
}

.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--bg-dark);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lang-select {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}

.back-link {
  font-size: 0.875rem;
  color: var(--text-light);
  text-decoration: none;
}

.back-link:hover {
  color: var(--bg-dark);
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.hero-inner h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bg-dark);
  margin-bottom: 1.25rem;
}

.existing-sheet-box {
  background: #f0f4ff;
  border-left: 4px solid var(--bg-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  text-align: left;
}

.existing-sheet-box strong {
  display: block;
  font-size: 1rem;
  color: var(--bg-dark);
  margin-bottom: 0.35rem;
}

.existing-sheet-box p {
  font-size: 0.925rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 0.75rem;
}

.try-free-box {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 2px solid #e8f5e9;
}

.try-free-box p {
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 1rem !important;
  font-size: 1rem;
}

.try-free-box .btn {
  margin-top: 0;
}

.hero-inner p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.hero-inner .existing-sheet-box {
  text-align: left;
}

.hero-inner .btn {
  margin-left: auto;
  margin-right: auto;
}

/* Examples */
.examples {
  padding: 2rem 0 3.5rem;
  background: var(--white);
}

.examples h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  color: var(--bg-dark);
  margin-bottom: 2rem;
}

#examples-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.examples-toggle {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.65rem 1.5rem;
  background: transparent;
  border: 2px solid var(--bg-dark);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--bg-dark);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.examples-toggle:hover {
  background: var(--bg-dark);
  color: var(--white);
}

.examples-toggle[hidden] {
  display: none;
}

/* Image comparison */
.image-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.image-comparison.examples-extra {
  display: none;
}

.image-comparison.examples-extra.examples-extra--visible {
  display: flex;
}

.comparison-item {
  flex: 1;
  min-width: 0;
}

.comparison-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.comparison-thumb:hover {
  transform: scale(1.02);
}

.comparison-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.comparison-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: block;
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(95vw, 1200px);
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.comparison-item figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-weight: 500;
}

.arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow svg {
  width: 40px;
  height: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #25d366;
  color: var(--white);
  margin-top: 0.5rem;
}

.btn-primary:hover {
  background: #1fb855;
  transform: translateY(-1px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Steps */
.steps {
  padding: 3rem 0;
  background: var(--bg);
}

.steps h2,
.feature h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  color: var(--bg-dark);
  margin-bottom: 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--white);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-dark);
  color: var(--accent);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bg-dark);
}

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

/* Feature */
.feature {
  padding: 3rem 0;
  background: var(--white);
}

.feature-inner {
  max-width: 640px;
  text-align: center;
}

.feature h2 {
  margin-bottom: 1.25rem;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.legend-pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
}

.legend-pill--black {
  background: #2d2d2d;
  color: var(--white);
}

.legend-pill--green {
  background: #2a9d4e;
  color: var(--white);
}

.legend-pill--red {
  background: var(--red);
  color: var(--white);
}

/* Pricing */
.pricing {
  padding: 3.5rem 0;
  background: var(--bg-dark);
  color: var(--white);
}

.pricing-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.free-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #7dcea0;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.pricing-flow {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pricing-why {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
}

.price-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.price-label {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 0.25rem;
}

.price-amount {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.pricing-inner .btn {
  margin-top: 0;
}

/* Details accordion */
.details {
  padding: 2.5rem 0 3.5rem;
}

.details-inner {
  max-width: 560px;
  margin: 0 auto;
}

.details h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.details-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.details-item summary {
  padding: 0.85rem 0;
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.details-item summary::-webkit-details-marker {
  display: none;
}

.details-item summary::after {
  content: '+';
  float: right;
  font-weight: 400;
  color: var(--text-light);
}

.details-item[open] summary::after {
  content: '−';
}

.details-item p {
  padding-bottom: 0.85rem;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* Footer */
.footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: var(--bg-dark);
}

/* Legal pages */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-inner {
  max-width: 680px;
}

.legal-inner h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 2rem;
}

.legal-block {
  margin-bottom: 1.75rem;
}

.legal-block h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
}

.legal-block p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.legal-block a {
  color: var(--bg-dark);
}

/* Responsive */
@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 580px) {
  .image-comparison {
    flex-direction: column;
    gap: 0.5rem;
  }

  .arrow svg {
    transform: rotate(90deg);
    width: 36px;
    height: 36px;
  }

  .comparison-item {
    width: 100%;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }
}
