/* Reset & Variables */
*,
*::before,
*::after { box-sizing: border-box; margin:0; padding:0; }
:root {
  --wood: #f9f6f1;
  --dark: #3c2f2f;
  --accent: #d4a373;
  --text: #444;
}
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: white;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #eee;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--dark);
}
.nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}

/* Hero */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: -1;
}
.hero .container {
  color: white;
  text-align: center;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  margin-bottom: 1rem;
}
.lead { font-size: 1.5rem; margin-bottom: 2.5rem; }
.large { font-size: 1.3rem; padding: 1rem 2.5rem; }

/* 3D Viewer Section */
.block-viewer-section {
  padding: 120px 0;
  background: var(--wood) url('https://images.unsplash.com/photo-1558591710-4b4a1ae0f04d?w=2000') center repeat;
  background-size: 600px;
}
.block-viewer-section .container {
  display: flex;
  align-items: center;
  gap: 8%;
  flex-wrap: wrap;
}
.text-side h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.rotate-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.rotate-hint {
  font-size: 1.2rem;
  opacity: 0.8;
}
.viewer-side {
  flex: 1 1 500px;
  position: relative;
}
.rotate-badge {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: bold;
  animation: pulse 2s infinite;
  z-index: 10;
}
@keyframes pulse {
  0%,100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

.comparison {
  padding: 140px 0;
  background: #faf7f2;
  text-align: center;
}

.comparison h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  margin-bottom: 1rem;
}

.comparison-subtitle {
  font-size: 1.35rem;
  max-width: 720px;
  margin: 0 auto 4.5rem;
  color: #666;
}

/* NEW — Perfect no-gap, rounded-corner table */
.comparison-table {
  display: grid;
  grid-template-columns: 2fr 2.2fr 3fr;
  max-width: 1100px;
  margin: 0 auto;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.14);
}

.comparison-table > * {
  padding: 2rem 1.8rem;
  font-size: 1.18rem;
  line-height: 1.5;
}

/* Header */
.header {
  display: contents;
}
.header > div {
  background: #3c2f2f;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
}
.header > div:first-child { background: transparent; }

/* Feature column (left) */
.feature {
  text-align: right;
  font-weight: 600;
  background: #f5f0eb;
  color: #444;
  padding-right: 1.5rem !important;   /* ← this is the magic line */
  padding-top: 1rem !important;   /* ← this is the magic line */
}

/* Flashcards column */
.bad {
  background: #fdf2f2;
  color: #a55;
  padding-top: 1rem !important;   /* ← this is the magic line */
  padding-right: 0.5rem !important;   /* ← this is the magic line */
  padding-left: 0.5rem !important;   /* ← this is the magic line */
}

/* Language Blocks column – winner */
.good {
  background: #f0f9f0;
  color: #2b6b2b;
  font-weight: 500;
  padding-top: 1rem !important;   /* ← this is the magic line */
  padding-right: 0.5rem !important;   /* ← this is the magic line */
  padding-left: 0.5rem !important;   /* ← this is the magic line */
}

/* Remove every possible gap and add proper corner rounding */
.row {
  display: contents;
}

/* Top corners */
.header > div:nth-child(2) { border-radius: 28px 0 0 0; }
.header > div:nth-child(3) { border-radius: 0 28px 0 0; }

/* Bottom corners */
.comparison-table > .row:last-child > .feature { border-radius: 0 0 0 28px; }
.comparison-table > .row:last-child > .good   { border-radius: 0 0 28px 0; }

/* Mobile – beautiful stacked cards (no gaps, perfect corners) */
@media (max-width: 860px) {
  .comparison-table {
    grid-template-columns: 1fr;
    box-shadow: none;
    gap: 1.5rem;
  }
  .header, .feature { display: none; }

  .bad, .good {
    border-radius: 20px !important;
    text-align: center;
    padding: 2.2rem 1.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.09);
  }
  .bad::before  { content: "Paper flashcards: "; font-weight: 700; color: #c55; }
  .good::before { content: "Language Blocks: "; font-weight: 700; color: #2b8b2b; }
}
.row:nth-child(odd) { background: #fff; }
.head { font-weight: 700; background: var(--accent) !important; color: white; }

/* Gallery */
.gallery {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 4rem 2rem;
  background: #f5f0ea;
}
.gallery img {
  height: 420px;
  width: auto;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

/* Languages Grid */
.languages {
  padding: 120px 0;
  text-align: center;
}
.languages h2 { margin-bottom: 4rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.language-grid {
  margin-bottom: 3rem;
}
.card {
  background: white;
  padding: 3rem 1rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  width: 100%;
  cursor: pointer;
}
.card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.phrase-preview {
  background: #fff9f3;
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  text-align: left;
}
.phrase-preview__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.phrase-preview__language {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
}
.phrase-preview__cta {
  color: white;
  background: var(--accent);
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.phrase-preview__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.phrase-card {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.phrase-card__native {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--dark);
}
.phrase-card__english {
  font-size: 1rem;
  color: #777;
}

@media (max-width: 600px) {
  .phrase-preview {
    padding: 2rem;
  }
  .card {
    padding: 2.5rem 1rem;
  }
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 860px) {
  .hero h1 { font-size: 3.2rem; }
  .block-viewer-section .container { flex-direction: column; text-align: center; }
  .text-side, .viewer-side { width: 100%; }
  .table { grid-template-columns: 1fr; }
}

.how, .science, .benefits, .special, .testimonials, .gifting, .faq-section { padding: 120px 0; }
.science { background: #f0e6d9; text-align: center; }
.science-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 2rem; font-size: 1.3rem; }
.science-grid div { padding: 2rem; background: white; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

.benefits h2 { text-align: center; margin-bottom: 4rem; }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 2rem;
  text-align: center;
}
.benefit-card {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  font-size: 1.4rem;
  line-height: 1.5;
}

/* Product Pages */
.product-page main {
  padding-top: 120px;
}
.product-hero {
  padding: 160px 0 100px;
  background: var(--wood);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
}
.hero-image img {
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.15);
}
.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #8a6b4d;
  font-weight: 600;
}
.hero-copy h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem;
  margin: 1rem 0;
  color: var(--dark);
}
.hero-copy .lead {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #5c4a3d;
}
.hero-list {
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.hero-list li::before {
  content: '•';
  margin-right: 0.6rem;
  color: var(--accent);
}
.product-pricing {
  padding: 80px 0 140px;
}
.pricing-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.pricing-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #a37b5d;
  font-weight: 600;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.pricing-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.04);
}
.pricing-card.featured {
  border: 2px solid var(--accent);
  transform: translateY(-10px);
}
.plan-term {
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: #b88963;
}
.pricing-card h3 {
  font-size: 2.4rem;
  margin: 0.8rem 0;
  color: var(--dark);
}
.pricing-card p {
  color: #6a5748;
}
.pricing-card ul {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pricing-card ul li::before {
  content: '✦';
  margin-right: 0.5rem;
  color: var(--accent);
}
.btn-secondary {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--dark);
  color: white;
}

@media (max-width: 720px) {
  .product-hero {
    padding-top: 120px;
  }
  .hero-copy h1 {
    font-size: 2.6rem;
  }
  .pricing-card.featured {
    transform: none;
  }
}

.how {
  padding: 140px 0 160px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.how::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1558591710-4b4a1ae0f04d?w=2400') center / 800px repeat;
  opacity: 0.03;
  pointer-events: none;
}

.how .container {
  position: relative;
  z-index: 2;
}

.how h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem;
  text-align: center;
  margin-bottom: 4.5rem;
  color: #3c2f2f;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #fef9f4;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(60,47,47,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.step:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(60,47,47,0.15);
}

.num {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.8rem;
  background: var(--accent, #d4a373);
  color: white;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 80px;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(212,163,115,0.4);
}

.step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  margin: 1.2rem 0 1rem;
  color: #3c2f2f;
}

.step p {
  font-size: 1.15rem;
  color: #666;
  max-width: 260px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 740px) {
  .how {
    padding: 100px 0;
  }
  .how h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .num {
    width: 70px;
    height: 70px;
    line-height: 70px;
    font-size: 2rem;
  }
}
