/* ========================================
   Shared Page Styles (Demo, Pricing, FAQ)
   ======================================== */

/* Page Hero */
.page-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 170px;
    padding-bottom: 64px;
    background-image: url("img/home/grid-background.png");
    background-repeat: no-repeat;
    background-position: top center;
}
@media (max-width: 768px) {
    .page-hero { padding-top: 104px; padding-bottom: 48px; }
}
.page-hero .home-info-box { margin-bottom: 16px; }
.page-hero__title {
    font-family: "Inter", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #171717;
    max-width: 700px;
    margin-bottom: 16px;
}
.page-hero__title span { color: #6002ee; }
@media (max-width: 768px) {
    .page-hero__title { font-size: 36px; }
}
.page-hero__subtitle {
    font-family: "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #737373;
    max-width: 560px;
}

/* Section Header (reusable) */
.section-header { margin-bottom: 48px; }
.section-header__title {
    font-family: "Inter", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #171717;
}
@media (max-width: 768px) {
    .section-header__title { font-size: 28px; }
}

/* Page CTA Banner */
.page-cta {
    padding: 48px 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.page-cta__banner {
    background: linear-gradient(135deg, #6002ee, #7c3aed, #9333ea);
    border-radius: 16px;
    padding: 64px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
@media (max-width: 768px) {
    .page-cta__banner { padding: 48px 24px; }
}
.page-cta__title {
    font-family: "Inter", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    max-width: 500px;
}
@media (max-width: 768px) {
    .page-cta__title { font-size: 28px; }
}
.page-cta__description {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    line-height: 1.5;
    margin-bottom: 8px;
}
.page-cta__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Page Buttons */
.page-button {
    display: inline-block;
    padding: 14px 32px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}
.page-button:hover { opacity: 0.9; }
.page-button--primary {
    background-color: #6002ee;
    color: #fff;
}
.page-button--secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.page-button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


/* ========================================
   Demo Page Styles
   ======================================== */

/* Video Section */
.demo-video {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 64px;
}
.demo-video__wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
.demo-video__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.demo-video__cta {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Feature Walkthrough Grid */
.demo-features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px;
}
.demo-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1050px) {
    .demo-features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 578px) {
    .demo-features__grid { grid-template-columns: 1fr; }
}
.demo-features__card {
    background: #fff;
    border: 1px solid #ebebec;
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.demo-features__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.demo-features__card-icon {
    width: 48px;
    height: 48px;
    background: #f3e8ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #6002ee;
}
.demo-features__card-icon svg {
    width: 24px;
    height: 24px;
}
.demo-features__card-title {
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #171717;
    margin-bottom: 8px;
}
.demo-features__card-description {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #737373;
}

/* Testimonials */
.demo-testimonials {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px;
}
.demo-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1050px) {
    .demo-testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 578px) {
    .demo-testimonials__grid { grid-template-columns: 1fr; }
}
.demo-testimonials__card {
    background: #fff;
    border: 1px solid #ebebec;
    border-radius: 16px;
    padding: 32px;
}
.demo-testimonials__quote {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #171717;
    font-style: italic;
    margin-bottom: 16px;
}
.demo-testimonials__author {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #737373;
}


/* ========================================
   FAQ Page Styles
   ======================================== */

.faq-categories {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 64px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.faq-category {
    display: flex;
    flex-direction: column;
}

.faq-category__title {
    font-family: "Inter", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #6002ee;
}
@media (max-width: 768px) {
    .faq-category__title { font-size: 22px; }
}

.faq-item {
    border-bottom: 1px solid #ebebec;
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #171717;
    text-align: left;
    gap: 16px;
}
.faq-item__question:hover { color: #6002ee; }

.faq-item__question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.faq-item.is-open .faq-item__question svg {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.is-open .faq-item__answer {
    max-height: 300px;
}
.faq-item__answer p {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #737373;
    padding-bottom: 20px;
}
.faq-item__answer a {
    color: #6002ee;
    text-decoration: none;
}
.faq-item__answer a:hover {
    text-decoration: underline;
}


/* ========================================
   Pricing Page Styles
   ======================================== */

.pricing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 170px;
    padding-bottom: 64px;
    background-image: url("img/home/grid-background.png");
    background-repeat: no-repeat;
    background-position: top center;
}
@media (max-width: 768px) {
    .pricing-hero { padding-top: 104px; padding-bottom: 48px; }
}
.pricing-hero .home-info-box { margin-bottom: 16px; }
.pricing-hero__heading {
    font-family: "Inter", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #171717;
    max-width: 700px;
}
@media (max-width: 768px) {
    .pricing-hero__heading { font-size: 36px; }
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .pricing-cards { grid-template-columns: 1fr; gap: 24px; }
}
.pricing-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #ebebec;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pricing-card__gradient { height: 6px; width: 100%; }
.pricing-card--creator .pricing-card__gradient {
    background: linear-gradient(90deg, #6002ee, #9c47ff);
}
.pricing-card--business .pricing-card__gradient {
    background: linear-gradient(90deg, #FA8100, #ff9f33);
}
.pricing-card__body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pricing-card__name {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 12px;
}
.pricing-card__description {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #737373;
    margin-bottom: 24px;
    flex: 1;
}
.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 24px;
}
.pricing-card__amount {
    font-family: "Inter", sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #171717;
    line-height: 1;
}
.pricing-card__currency,
.pricing-card__period {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #737373;
}
.pricing-card__cta {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.pricing-card__cta:hover { opacity: 0.9; }
.pricing-card--creator .pricing-card__cta {
    background-color: #6002ee;
    color: #fff;
}
.pricing-card--business .pricing-card__cta {
    background-color: #FA8100;
    color: #fff;
}

/* Feature Comparison Table */
.pricing-comparison {
    padding-top: 64px;
    padding-bottom: 64px;
}
.pricing-comparison__heading {
    font-family: "Inter", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #171717;
    text-align: center;
    margin-bottom: 48px;
}
@media (max-width: 768px) {
    .pricing-comparison__heading { font-size: 28px; margin-bottom: 32px; }
}
.pricing-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Inter", sans-serif;
    min-width: 600px;
}
.pricing-table thead th {
    font-size: 15px;
    font-weight: 600;
    color: #171717;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid #ebebec;
    white-space: nowrap;
}
.pricing-table thead th:first-child { width: 50%; }
.pricing-table thead th:not(:first-child) { text-align: center; }
.pricing-table tbody td {
    font-size: 14px;
    color: #171717;
    padding: 14px 20px;
    border-bottom: 1px solid #ebebec;
}
.pricing-table tbody td:first-child { color: #737373; font-weight: 500; }
.pricing-table tbody td:not(:first-child) { text-align: center; font-weight: 500; }
.pricing-table .check { color: #16a34a; font-size: 18px; }
.pricing-table .cross { color: #d4d4d4; font-size: 18px; }

/* Which Plan Section */
.pricing-which { padding-top: 48px; padding-bottom: 48px; }
.pricing-which__heading {
    font-family: "Inter", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #171717;
    text-align: center;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .pricing-which__heading { font-size: 28px; margin-bottom: 32px; }
}
.pricing-which__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .pricing-which__cards { grid-template-columns: 1fr; gap: 24px; }
}
.pricing-which__card {
    background: #fff;
    border: 1px solid #ebebec;
    border-radius: 16px;
    padding: 32px;
}
.pricing-which__card-title {
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 20px;
}
.pricing-which__card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pricing-which__card-list li {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #737373;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}
.pricing-which__card-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #6002ee;
    font-weight: 600;
}

/* Pricing Page FAQ */
.pricing-faq { padding-top: 48px; padding-bottom: 48px; }
.pricing-faq__heading {
    font-family: "Inter", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #171717;
    text-align: center;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .pricing-faq__heading { font-size: 28px; margin-bottom: 32px; }
}
.pricing-faq__list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.pricing-faq__item { border-bottom: 1px solid #ebebec; }
.pricing-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #171717;
    text-align: left;
    gap: 16px;
}
.pricing-faq__question:hover { color: #6002ee; }
.pricing-faq__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.pricing-faq__item.is-open .pricing-faq__icon { transform: rotate(45deg); }
.pricing-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.pricing-faq__item.is-open .pricing-faq__answer { max-height: 200px; }
.pricing-faq__answer p {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #737373;
    padding-bottom: 20px;
}

/* Pricing CTA */
.pricing-cta { padding-top: 48px; padding-bottom: 48px; }
.pricing-cta__banner {
    background: linear-gradient(135deg, #6002ee, #7c3aed, #9333ea);
    border-radius: 16px;
    padding: 64px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
@media (max-width: 768px) {
    .pricing-cta__banner { padding: 48px 24px; }
}
.pricing-cta__heading {
    font-family: "Inter", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    max-width: 500px;
}
@media (max-width: 768px) {
    .pricing-cta__heading { font-size: 28px; }
}
.pricing-cta__subheading {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    line-height: 1.5;
    margin-bottom: 8px;
}
.pricing-cta__button {
    display: inline-block;
    padding: 14px 32px;
    background-color: #fff;
    color: #6002ee;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.pricing-cta__button:hover { opacity: 0.9; }


/* ========================================
   Homepage CSS Overrides
   (Override .home-container h1/h2/h3 styles)
   ======================================== */

/* Page Hero h1 */
.home-container .page-hero__title {
    color: #171717;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    white-space: normal;
}
.home-container .page-hero__title span {
    color: #6002ee;
}
@media (max-width: 768px) {
    .home-container .page-hero__title { font-size: 36px; }
}

/* Section header h2 */
.home-container .section-header__title {
    color: #171717;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
}
@media (max-width: 768px) {
    .home-container .section-header__title { font-size: 28px; }
}

/* CTA banner h2 - keep white */
.home-container .page-cta__title {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    white-space: normal;
}
@media (max-width: 768px) {
    .home-container .page-cta__title { font-size: 28px; }
}

/* Demo feature card h3 */
.home-container .demo-features__card-title {
    color: #171717;
    font-size: 20px;
    font-weight: 600;
    white-space: normal;
    width: auto;
    flex: unset;
}

/* Demo testimonials */
.home-container .demo-testimonials__quote {
    white-space: normal;
}

/* FAQ category h2 */
.home-container .faq-category__title {
    color: #171717;
    font-size: 28px;
    font-weight: 700;
    white-space: normal;
}
@media (max-width: 768px) {
    .home-container .faq-category__title { font-size: 22px; }
}

/* Pricing hero h1 */
.home-container .pricing-hero__heading {
    color: #171717;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    white-space: normal;
}
@media (max-width: 768px) {
    .home-container .pricing-hero__heading { font-size: 36px; }
}

/* Pricing card name h2 */
.home-container .pricing-card__name {
    color: #171717;
    font-size: 24px;
    font-weight: 700;
    white-space: normal;
    width: auto;
    flex: unset;
}

/* Pricing section h2s */
.home-container .pricing-comparison__heading,
.home-container .pricing-which__heading,
.home-container .pricing-faq__heading {
    color: #171717;
    font-size: 36px;
    font-weight: 700;
    white-space: normal;
}
@media (max-width: 768px) {
    .home-container .pricing-comparison__heading,
    .home-container .pricing-which__heading,
    .home-container .pricing-faq__heading { font-size: 28px; }
}

/* Pricing which-plan card h3 */
.home-container .pricing-which__card-title {
    color: #171717;
    font-size: 20px;
    font-weight: 700;
    white-space: normal;
    width: auto;
    flex: unset;
}

/* Pricing CTA h2 - keep white */
.home-container .pricing-cta__heading {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    white-space: normal;
}
@media (max-width: 768px) {
    .home-container .pricing-cta__heading { font-size: 28px; }
}


/* ========================================
   Responsive: 14-inch MacBook
   ======================================== */
@media (max-width: 1512px) {
    .page-hero { padding-top: 140px; }
    .pricing-hero { padding-top: 140px; }
}
