/* refined_style.css */
:root {
  /* Colors */
  --color-primary: #FF8A80;
  --color-primary-dark: #FF7066;
  --color-background: #F9F9F8;
  --color-surface: #FFFFFF;
  --color-text-primary: #2D2D2D;
  --color-text-muted: #8E8E93;
  --color-border: #E5E5EA;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;

  /* Radius */
  --radius-card: 20px;
  --radius-button: 24px;
  --radius-input: 16px;

  /* Shadows */
  --shadow-soft: 0 4px 24px -4px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 10px 20px rgba(255, 138, 128, 0.4);
  --shadow-premium: 0 40px 80px rgba(0, 0, 0, 0.12);
  
  /* Animations */
  --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
}

.text-gradient {
  background: linear-gradient(135deg, #FF8A80 0%, #FF5252 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

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

/* Header */
header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--color-text-primary);
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(circle at top left, rgba(255,138,128,0.1) 0%, transparent 70%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  flex-direction: column;
}

.hero-text {
  flex: 1;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  word-break: keep-all;
  line-height: 1.3;
}

.hero-text .subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Achievement Badge */
.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center; /* Center items if they wrap */
}

.achievement-badge .highlight {
  color: var(--color-primary);
  font-weight: 700;
}

/* App Store Button */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.app-store-btn svg {
  width: 24px;
  height: 24px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.stat-item {
  background: var(--color-surface);
  padding: 10px 16px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* iPhone Mockup Container (Adapted for full photo) */
.phone-mockup {
  background: transparent;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  max-width: 307px; /* Reduced to 64% of original */
}

.phone-mockup img,
.phone-mockup video {
  width: 100%;
  border-radius: 20px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: var(--color-primary);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-button);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(255, 138, 128, 0.5);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
  box-shadow: none;
}

/* Sections */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
}

.section-title .subtitle {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: var(--spacing-xs);
}

/* Pain Points (Grid) */
.pain-points-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.card {
  background: var(--color-surface);
  padding: var(--spacing-lg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

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

.card h3 {
  margin-bottom: var(--spacing-xs);
  font-size: 1.25rem;
}

.card p {
  color: var(--color-text-muted);
}

.highlight-box {
  background-color: #FFF0ED; /* Light Coral */
  border-left: 4px solid var(--color-primary);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
}

/* Features */
.feature-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  margin-bottom: 100px;
  flex-direction: column; /* Mobile first */
}

.feature-content {
  flex: 1;
}

.feature-image {
  flex: 1;
  background-color: #F0F0F0; /* Placeholder */
  border-radius: var(--radius-card);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-float);
  width: 100%;
}

.feature-step {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
}

/* Founder Story */
.founder-story {
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-soft);
}

.story-block {
  margin-bottom: var(--spacing-lg);
  border-left: 3px solid var(--color-border);
  padding-left: var(--spacing-md);
}

.story-label {
  font-weight: bold;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  display: block;
}

/* Pricing / USP */
.pricing-card {
  background-color: var(--color-surface);
  border-radius: 32px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-premium);
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-apple);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 50px 100px rgba(0,0,0,0.12);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #FF9A9E 0%, #FECFEF 100%);
}

.badge {
  display: inline-block;
  background-color: #F2F2F7;
  color: #1D1D1F;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.price {
  margin: 16px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.price .text-gradient {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price span:last-child {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 8px;
  display: block;
}

.benefits-list {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
  background: #F9F9F9;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.03);
}

.benefits-list li {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start; /* Changed to flex-start for multi-line text alignment */
  gap: 14px;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
}

.benefits-list li:last-child {
    margin-bottom: 0;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    color: white;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 2px; /* Visual alignment with text */
}

/* Stat Badge */
.stat-badge {
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Features Grid (Why Choose Us) */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--color-surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

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

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.review-card {
    background: var(--color-surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.review-stars {
    color: #FFB800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.review-text {
    color: var(--color-text-primary);
    font-size: 1rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: var(--spacing-md);
}

.review-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
    border: 2px solid white;
}

.review-info {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.review-meta {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Accordion (FAQ) */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--color-surface);
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.accordion-button {
    background-color: transparent;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 20px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.4s;
}

.accordion-button:after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
}

.accordion-button.active:after {
    content: '-';
}

.accordion-content {
    padding: 0 20px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.accordion-content p {
    padding-bottom: 20px;
    color: var(--color-text-muted);
}


/* Footer */
footer {
  background-color: var(--color-surface);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
  }

  .hero-text {
    text-align: left;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .phone-mockup {
    max-width: 352px;
  }

  .pain-points-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 3.2rem;
  }

  .phone-mockup {
    max-width: 416px;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Final CTA Section */
.final-cta-section {
  background: linear-gradient(135deg, #FFF5F3 0%, #FFF0ED 100%);
  padding: 80px 0;
  margin-bottom: 0;
}

.final-cta-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  flex-direction: column;
}

.final-cta-text {
  flex: 1;
  text-align: center;
}

.final-cta-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
  line-height: 1.4;
}

.final-cta-text p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.final-cta-btn {
  margin-top: var(--spacing-md);
}

.final-cta-mockup {
  flex: 1;
  display: flex;
  justify-content: center;
}

.final-phone {
  max-width: 280px;
}

.final-phone img,
.final-phone video {
    width: 100%;
    border-radius: 20px;
    display: block;
}

@media (min-width: 768px) {
  .final-cta-content {
    flex-direction: row;
    text-align: left;
  }

  .final-cta-text {
    text-align: left;
  }

  .final-cta-text h2 {
    font-size: 2.2rem;
  }

  .final-phone {
    max-width: 350px;
  }
}

/* Quiz Banner (Apple-like Redesign) */
.quiz-banner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: 32px;
  /* Use a subtle border to define it against light backgrounds */
  border: 1px solid rgba(0,0,0,0.04);
  padding: 40px 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
  text-decoration: none; /* wrapper link */
  margin-top: 40px;
}

/* Hover effect for the whole card */
.quiz-banner-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

/* Image Wrapper with decorative glows */
.quiz-banner-image-wrapper {
  position: relative;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.quiz-banner-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 138, 128, 0.2);
    border-radius: 50%;
    filter: blur(25px);
    z-index: 0;
}

.quiz-banner-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: rgba(255, 138, 128, 0.15);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 0;
}

.quiz-banner-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transform: rotate(-3deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  background-color: #fff;
  position: relative;
  z-index: 1;
  border: 4px solid white;
}

/* On hover, image straightens and slightly scales */
.quiz-banner-container:hover .quiz-banner-image {
  transform: rotate(0deg) scale(1.03);
}

/* Content Area */
.quiz-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1; /* Above any potential background elements */
  max-width: 500px;
}

/* Reuse existing achievement-badge logic but can customize if needed */
.quiz-banner-badge {
    margin-bottom: 16px;
    background: #FFF5F3;
    color: var(--color-primary);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quiz-banner-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--color-text-primary);
  line-height: 1.35;
  word-break: keep-all;
}

.quiz-banner-title span {
  color: var(--color-primary);
}

.quiz-banner-desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Desktop Layout */
@media (min-width: 768px) {
  .quiz-banner-container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 60px;
    padding: 60px 80px;
  }
  
  .quiz-banner-content {
    align-items: flex-start;
    max-width: 480px;
  }

  .quiz-banner-image-wrapper {
    margin-bottom: 0;
    margin-right: 0;
  }
  
  .quiz-banner-image {
    width: 220px;
    height: 220px;
    transform: rotate(-4deg);
  }

  .quiz-banner-title {
    font-size: 2.2rem;
  }
}
