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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
}

.bg-gradient {
    min-height: 100vh;
    background: linear-gradient(to bottom, #1a1a2e, #16213e, #8B0000);
    position: relative;
}

.relative {
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-lg {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

#snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.header {
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #FFD700;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.lang-btn:hover,
.lang-btn.active {
    background: #FFD700;
    color: #8B0000;
}

.hero-section {
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2rem;
    background: #FFD700;
    color: #8B0000;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    background: #FFC700;
    transform: scale(1.05);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    cursor: pointer;
    font-family: inherit;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.countdown-box {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.countdown-title {
    color: #FFD700;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.countdown-numbers {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

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

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.countdown-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.countdown-separator {
    font-size: 2.5rem;
    opacity: 0.5;
}

.social-proof {
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .badge-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.15);
}

section {
    padding: 4rem 1rem;
    position: relative;
    z-index: 2;
}

.dark-bg {
    background: rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

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

.examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .examples-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.example-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.example-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 1rem;
}

.example-text {
    white-space: pre-line;
    font-size: 0.875rem;
    line-height: 1.6;
}

.generator-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 768px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    font-family: inherit;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #FFD700;
}

.form-select option {
    background: #1a1a2e;
    color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.limit-warning {
    background: rgba(179, 0, 0, 0.2);
    border: 2px solid #B30000;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.limit-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.limit-message {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.btn-upgrade {
    padding: 0.5rem 1.5rem;
    background: #FFD700;
    color: #8B0000;
    border-radius: 9999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-upgrade:hover {
    background: #FFC700;
}

.btn-generate {
    width: 100%;
    padding: 1rem 2rem;
    background: #FFD700;
    color: #8B0000;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: inherit;
}

.btn-generate:hover:not(:disabled) {
    background: #FFC700;
    transform: scale(1.05);
}

.btn-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rhymes-results {
    max-width: 768px;
    margin: 2rem auto 0;
}

.rhyme-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.rhyme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.rhyme-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFD700;
}

.btn-copy {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.3);
}

.rhyme-text {
    white-space: pre-line;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
}

.bonus-banner {
    background: linear-gradient(to right, #8B0000, #B30000);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #FFD700;
    margin-top: 2rem;
}

.bonus-text {
    font-weight: 500;
    margin-bottom: 1rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.story-list-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.story-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.story-item.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.play-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #FFD700;
    color: #8B0000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.play-button:hover {
    background: #FFC700;
}

.story-promo-box {
    background: linear-gradient(135deg, #B30000, #8B0000);
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid #FFD700;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.promo-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.promo-text {
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.promo-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.link-button:hover {
    color: #FFD700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.category-btn {
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-family: inherit;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.category-btn.active {
    background: #FFD700;
    color: #8B0000;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-name {
    font-size: 0.75rem;
    font-weight: 500;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pricing-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    border-color: #FFD700;
}

.pricing-card.featured {
    background: linear-gradient(135deg, #8B0000, #B30000);
    border-color: #FFD700;
}

.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #FFD700;
    color: #8B0000;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFD700;
    text-align: center;
    margin-bottom: 1rem;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.check-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #006400;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.pricing-card.featured .check-icon {
    background: #FFD700;
    color: #8B0000;
}

.faq-list {
    max-width: 768px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: white;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    font-family: inherit;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
    color: #FFD700;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1rem 1.5rem;
    opacity: 0.8;
    line-height: 1.6;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.footer {
    padding: 3rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 1rem;
}

.footer-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 0,75rem;
}

@media (min-width: 768px) {
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.footer-section-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-section-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

/* =========================================================
   PATCH OVERRIDES (Tomterim) – added to match Bolt behavior
   ========================================================= */

/* Red sticky header bar */
.header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #b30000 0%, #8d0000 100%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: none;
}

/* Countdown box centering */
.countdown-box{ text-align: center; }
.countdown-numbers{ justify-content: center; }

/* iOS Safari: remove gray tap highlight / native button styling */
* { -webkit-tap-highlight-color: rgba(0,0,0,0); }

button, a, .btn, .play-button, .category-btn, .lang-btn, [role="button"]{
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

button:focus { outline: none; }
button:focus-visible{
  outline: 2px solid rgba(255, 212, 0, 0.85);
  outline-offset: 3px;
}
/* Centera innehållet i röda ljudbokskortet (bonus-sagor) */
.book-promo-card,
.audiobook-card,
.promo-card {
  text-align: center;
}

.book-promo-card > *,
.audiobook-card > *,
.promo-card > * {
  margin-left: auto;
  margin-right: auto;
}

/* Om kortet är flex och behöver riktig center */
.book-promo-card,
.audiobook-card,
.promo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Center content inside the red audiobook card */
.bonus-book-card,
.book-promo {
  display: flex;
  flex-direction: column;
  align-items: center;      /* ⬅️ detta är NYCKELN */
  text-align: center;
}
.bonus-book-card .btn-primary {
  margin-left: auto;
  margin-right: auto;
}
/* Center CTA + link inside the red story promo card */
.story-promo-box .promo-buttons{
  display: flex;
  flex-direction: column;
  align-items: center;      /* <-- centrerar innehållet */
  justify-content: center;
  gap: 12px;
  width: 100%;
  text-align: center;
}

.story-promo-box .promo-buttons .btn-primary{
  margin-left: auto;
  margin-right: auto;
}
/* Bolt-style width for audiobook CTA button */
.story-promo-box .btn-primary {
  min-width: 260px;          /* samma känsla som Bolt */
  max-width: 320px;
  width: 100%;
  padding: 1rem 2.5rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.story-promo-box .btn-primary {
  min-width: 300px;
  max-width: 360px;
}
/* Wider Bolt-like CTA inside the red promo box */
.story-promo-box .btn-primary{
  width: 100%;
  max-width: 520px;   /* öka till 560 om du vill ännu bredare */
  padding: 1rem 2.75rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;     /* centrerar knappen */
}


/* === Footer patch: 3 columns + contact card match + centered copyright === */
@media (min-width: 1024px) {
  .footer-sections {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* If you used <div class="footer-card"> for Contact, style it like the other footer cards */
.footer-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
}

.footer-card h3 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.footer-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* Force copyright to sit below the cards and be centered (even if DOM nesting is slightly off) */
.footer-copyright {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 0.2rem;
  padding-top: 0rem;
  padding-bottom: 0;
}
/* === Logo size control === */
.logo-img {
  height: 60px;        /* justera till 40–56px om du vill */
  width: auto;
  max-height: 60px;
  display: block;
}

.footer-brand{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.footer-logo{
  height: 50px;   /* justera vid behov */
  width: auto;
  display: block;
}
.header {
  padding: 20px 30px;
}

.logo-img {
  height: 48px;
}
/* --- Logo sizing (fix mobile mega-logo) --- */
.logo {
  display: flex;
  align-items: center;
  line-height: 0; /* tar bort extra höjd runt bilden */
}

.logo-img {
  height: 48px;      /* desktop */
  width: auto;
  max-width: 180px;  /* hindrar att den blir för bred */
  display: block;
  object-fit: contain;
}

/* Mobile */
@media (max-width: 640px) {
  .logo-img {
    height: 32px;
    max-width: 140px;
  }
}
/* Desktop: true centered nav between logo and language */
@media (min-width: 900px) {
  .header-content {
    display: grid;
    grid-template-columns: auto 1fr auto; /* logo | center | right */
    align-items: center;
    gap: 1rem;
  }

  /* UL-menyn centreras i mittenkolumnen */
  .nav-menu {
    justify-self: center;
  }

  /* Om du har en wrapper för språkknappar, lägg denna klass där:
     t.ex. <div class="lang-switch"> ... </div>
  */
  .lang-switch {
    justify-self: end;
  }
}
@media (min-width: 900px) {
  .nav-menu { transform: translateX(25px); } /* 6–14px brukar vara perfekt */
}
