/* ==========================================================================
   Shared Component Styles - Single Source of Truth for Miran Let
   ========================================================================== */

@import './tokens.css';
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&subset=latin,latin-ext&display=swap');

/* Base Reset & Globals */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: var(--line-height-body);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: var(--font-size-body);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: var(--weight-semibold);
  line-height: var(--line-height-heading);
  color: var(--ink);
}

p {
  font-size: var(--font-size-body);
  color: var(--ink-soft);
  line-height: var(--line-height-body);
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-padding {
  padding: var(--section-padding-desktop);
}
@media (max-width: 768px) {
  .section-padding {
    padding: var(--section-padding-mobile);
  }
}

/* Background Utility Classes */
.bg-cream { background-color: var(--cream); }
.bg-sky-wash { background-color: var(--sky-wash); }
.bg-white { background-color: var(--white); }

/* Eyebrow / Nadnaslov */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--font-size-eyebrow);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-eyebrow);
  color: var(--ink-soft);
  display: block;
  margin-bottom: 16px;
}

/* Section Title */
.section-title {
  font-size: var(--font-size-h2);
  margin-bottom: 24px;
  line-height: var(--line-height-heading);
  color: var(--ink);
  text-align: center;
}

/* Primary CTA Button - ONLY PLACE FOR GOLD BACKGROUND */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gold);
  color: var(--ink) !important;
  padding: 18px 42px;
  min-height: 56px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: var(--weight-bold);
  font-size: var(--font-size-btn);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-btn);
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  text-align: center;
  width: fit-content;
}

.btn:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
  }
}

/* Sticky Mobile CTA Bar */
#sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(22, 35, 47, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

#sticky-bar.visible {
  transform: translateY(0);
}

#sticky-bar .price-tag {
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  font-size: 1.3rem;
  color: var(--ink);
}

#sticky-bar .btn {
  padding: 12px 20px;
  min-height: 44px;
  font-size: 0.9rem;
  width: auto;
}

@media (min-width: 769px) {
  #sticky-bar {
    display: none !important;
  }
}

/* Hero Section Header */
.hero {
  position: relative;
  padding: 140px 0 90px;
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--sky-wash) 50%, var(--cream) 100%);
  text-align: center;
}
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }
}

.hero-logo,
.hero-logo-wrapper {
  position: absolute;
  top: 32px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
@media (max-width: 768px) {
  .hero-logo,
  .hero-logo-wrapper {
    position: absolute;
    top: 20px;
    left: 20px;
  }
}

.hero-logo img,
.hero-logo-wrapper img {
  height: 52px !important;
  max-height: 52px !important;
  width: auto !important;
  max-width: 180px !important;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(22, 35, 47, 0.08);
  object-fit: contain;
  display: block;
}

.hero h1 {
  font-size: var(--font-size-h1);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  max-width: 750px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--ink-soft);
  line-height: 1.65;
}

.hero-trust-row {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: var(--weight-semibold);
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.hero-trust-row .check {
  color: var(--ink);
  font-weight: var(--weight-bold);
}

.hero-image-container {
  max-width: 680px;
  margin: 48px auto 0;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(22, 35, 47, 0.08);
  border: var(--border-width-gold) solid var(--border-gold);
  background: var(--white);
  padding: 8px;
}

.hero-image-container img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* Problem Section */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
  }
}

.bullet-list {
  list-style: none;
  margin-top: 28px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 28px;
  font-weight: var(--weight-semibold);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.5;
  text-align: left;
}

.bullet-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  font-weight: var(--weight-bold);
  font-size: 1.1rem;
}

.highlight-box {
  margin-top: 32px;
  background-color: var(--sky-wash);
  border-left: 4px solid var(--border-gold);
  padding: 24px 28px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  font-weight: var(--weight-semibold);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.7;
  text-align: left;
}

.problem-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  border: var(--border-width-gold) solid var(--border-gold);
  background: var(--white);
  padding: 8px;
}

.problem-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* Three Systems / Feature Cards */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 768px) {
  .cards-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid.col-2 { grid-template-columns: repeat(2, 1fr); }
}

.card-bright {
  background: var(--white);
  border: var(--border-width-gold) solid var(--border-gold);
  padding: 40px;
  border-radius: var(--border-radius-card);
  transition: var(--transition-normal);
  position: relative;
  text-align: left;
}

.card-bright h3 {
  color: var(--ink);
  font-size: var(--font-size-h4);
  margin-bottom: 14px;
  text-align: left;
}

.card-bright p {
  color: var(--ink-soft);
  font-size: var(--font-size-body-sm);
  line-height: 1.65;
  text-align: left;
}

/* Bundle Mockup */
.bundle-mockup-wrapper {
  max-width: 540px;
  margin: 30px auto 20px auto;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  border: var(--border-width-gold) solid var(--border-gold);
  background: var(--white);
  padding: 12px;
}

.bundle-mockup-wrapper img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* Seminar Anchor Text (Relocated outside offer card) */
.seminar-anchor {
  font-size: var(--font-size-eyebrow);
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 24px auto 16px auto;
  text-align: center;
}

/* Offer Card (Restructured) */
.pricing-card-wrapper {
  max-width: var(--card-max-width);
  margin: 20px auto 0;
  background: var(--white);
  border: var(--border-width-gold) solid var(--border-gold);
  border-radius: var(--border-radius-card);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
@media (max-width: 768px) {
  .pricing-card-wrapper {
    padding: 28px 20px;
  }
}

.price-new {
  font-size: var(--font-size-price);
  color: var(--ink);
  font-weight: var(--weight-semibold);
  font-family: var(--font-sans);
  line-height: 1;
  margin-bottom: 8px;
}

.price-subtext {
  font-size: var(--font-size-subtext);
  color: var(--ink-soft);
  margin-bottom: 4px;
  text-align: center;
}

.price-subtext-2 {
  font-size: var(--font-size-subtext);
  color: var(--ink-soft);
  margin-bottom: 28px;
  text-align: center;
}

/* Feature List Inside Offer Card */
.pricing-features-list {
  text-align: left;
  max-width: var(--list-max-width);
  margin: 0 auto 24px;
  list-style: none;
  padding: 0;
}

.pricing-features-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-weight: var(--weight-semibold);
  color: var(--ink);
  font-size: var(--font-size-body-sm);
  text-align: left;
  line-height: 1.4;
}

.pricing-features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--border-gold);
  font-weight: var(--weight-bold);
  font-size: 1.1rem;
  line-height: 1.4;
}

.price-subtext-small {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-weight: var(--weight-medium);
  text-align: center;
}

/* Standalone Guarantee Card */
.guarantee-card {
  max-width: var(--card-max-width);
  margin: 30px auto 0;
  background: var(--white);
  border: var(--border-width-gold) solid var(--border-gold);
  border-radius: var(--border-radius-card);
  padding: 36px 32px;
  text-align: left;
}

.guarantee-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.guarantee-card p {
  font-size: var(--font-size-body-sm);
  color: var(--ink);
  font-weight: var(--weight-medium);
  margin-bottom: 8px;
}

.guarantee-card p.sub-legal {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: var(--weight-normal);
  margin: 0;
}

/* Honest New Product Notice */
.honest-notice-wrapper {
  max-width: var(--narrative-max-width);
  margin: 0 auto;
  text-align: center;
}

.honest-notice-wrapper h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: var(--weight-semibold);
  margin-bottom: 15px;
  color: var(--ink);
}

.honest-notice-wrapper p {
  color: var(--ink-soft);
  font-size: var(--font-size-body-sm);
  line-height: 1.8;
  margin: 0 auto;
  text-align: center;
  max-width: 65ch;
}

/* Author Story Accordion Card */
.author-story-card {
  max-width: var(--narrative-max-width);
  margin: 0 auto;
  background: var(--white);
  border: var(--border-width-gold) solid var(--border-gold);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.author-story-header {
  width: 100%;
  padding: 24px 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  transition: var(--transition-fast);
}

.author-story-header:hover {
  background-color: rgba(247, 245, 240, 0.6);
}

.author-story-header .author-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.author-story-header .author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  shrink: 0;
}

.author-story-header .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-story-header .toggle-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--sky-wash);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  font-weight: var(--weight-semibold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.author-story-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  padding: 0 32px;
  border-top: 0px solid var(--border-light);
}

.author-story-card.active .author-story-body {
  max-height: 2000px;
  padding: 32px;
  border-top-width: 1px;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 750px;
  margin: 40px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--weight-semibold);
  font-size: 1.15rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  gap: 20px;
  transition: var(--transition-fast);
  text-align: left;
}

.faq-icon {
  font-size: 1.5rem;
  font-family: monospace;
  color: var(--ink-soft);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  color: var(--ink-soft);
  font-size: var(--font-size-body-sm);
  line-height: 1.65;
  padding-right: 30px;
  text-align: left;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Email Capture */
.email-capture-wrapper {
  max-width: var(--form-max-width);
  margin: 0 auto;
  text-align: center;
}

.email-capture-input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
}

/* Final CTA Section */
.final-cta {
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--cream) 100%);
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--ink);
  color: #8C9BA8;
  padding: 56px 24px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
}

footer a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-fast);
}

footer a:hover {
  color: var(--sky-light);
}
