/* ------------------------------
   GLOBAL RESET + BASE STYLES
--------------------------------*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
    background: #F8F4EE;
    color: #2A2A2A;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.fade-in {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-card:nth-child(2) { transition-delay: 0.06s; }
.feature-card:nth-child(3) { transition-delay: 0.12s; }
.feature-card:nth-child(4) { transition-delay: 0.18s; }



/* ------------------------------
   HEADER
--------------------------------*/

.header {
    width: 100%;
    padding: 28px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-header {
    height: 36px;
    width: auto;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
}

.coming-soon-pill {
    font-size: 14px;
    opacity: 0.8;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.03);
}

.ios-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.apple-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.75;
}

/* ------------------------------
   HERO SECTION
--------------------------------*/

.hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px 80px 40px;
    gap: 60px;
}

.hero-left {
    width: 52%;
    max-width: 560px;
}

.intro-label {
    font-size: 13px;
    letter-spacing: 0.12em;
    font-weight: 600;
    opacity: 0.6;
    margin-bottom: 18px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 28px;
}

/* allow precise two-line control on desktop */
.hero-title-line {
    display: inline-block;
}

.hero-subtext {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 28px;
}

/* equal spacing between subtext → CTA and CTA → gift line */
.hero .cta-button {
    margin-bottom: 28px;
}

.cta-button {
    background: #3F6A57;
    color: white;
    padding: 14px 32px;
    font-size: 17px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.cta-button.small {
    font-size: 16px;
    padding: 12px 28px;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Primary CTA polish */
.button-primary {
    position: relative;
    box-shadow: 0 6px 18px rgba(60, 90, 75, 0.18);
    transition: 
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(60, 90, 75, 0.22);
}

.button-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(60, 90, 75, 0.16);
}
/* CTA press feedback */
.cta-button {
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

.cta-button:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}



.hero-gift {
    font-size: 15px;
}

/* keep "Enchanted Night" together */
.hero-gift em {
    white-space: nowrap;
}

.hero-note {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 6px;
}

.hero-right {
    width: 48%;
    display: flex;
    justify-content: center;
}

/* ------------------------------
   PHONE + INSIGHTS WRAPPER
--------------------------------*/

.phone-and-insights {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

/* PHONE MOCK (size unchanged) */

.phone-mock {
    width: 340px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 28px 70px rgba(0, 0, 0, 0.12);
    padding: 18px;
}

.phone-inner {
    background: #FBF2E3;
    border-radius: 32px;
    padding: 24px 18px 67px; /* extra height via bottom padding */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.phone-notch {
    width: 110px;
    height: 10px;
    border-radius: 999px;
    background: #E3D9CC;
    margin: 0 auto 20px;
}

/* PHONE HEADER TILE */

.phone-header-tile {
    background: #3F6A57;
    border-radius: 22px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.18);
}

.phone-logo-wrap {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(250, 246, 240, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-logo {
    width: 30px;
    height: auto;
}

.phone-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-app-name {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #FDF8EE;
}

.phone-app-tagline {
    font-size: 12px;
    color: rgba(252, 248, 241, 0.92);
}

.phone-app-subtagline {
    font-size: 14px;
    color: rgba(252, 248, 241, 0.85);
    font-style: italic;
}

/* PHONE GRID */

.phone-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    opacity: 0.50;
}

.phone-cell {
    height: 50px;
    border-radius: 18px;
    background: #E7DACA;
}

/* Extra content rows to suggest more UI */

.phone-row-wide {
    height: 17px;
    border-radius: 999px;
    background: #E7DACA;
    margin-top: 16px;
    opacity: 0.50;
}

.phone-row-wide.second {
    width: 100%;
    margin-left: 0;

    /* EXACT height needed for your red-marked extension, but NOT more */
    height: 120px;     
    border-radius: 20px;

    background: linear-gradient(
        to bottom,
        #EEE4D6 0%,
        #E8DCCF 100%
    );

    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);

    opacity: 0.55;
    margin-top: 20px;   /* keeps spacing natural, prevents phone stretching */
}



/* ------------------------------
   INSIGHT CARDS
--------------------------------*/

/* Desktop insight overlay positioning */
.insight-stack {
    position: absolute;
    left: 50%;
    top: 33%;
    transform: translateX(-20%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.insight-card {
    min-width: 260px;
    max-width: 280px;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.10);
    padding: 10px 14px;
    display: flex;
    gap: 10px;
    animation: floatIn 0.8s ease-out both;
}

.insight-card.secondary {
    opacity: 0.96;
    transform: translateX(12px);
    animation-delay: 0.12s;
}

.insight-icon-circle {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #E6F3EC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-icon-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #3F6A57;
}

.insight-text {
    font-size: 12px;
}

.insight-label {
    font-weight: 600;
    margin-bottom: 3px;
}

.insight-body {
    opacity: 0.8;
    line-height: 1.4;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------
   DIVIDERS
--------------------------------*/

.section-divider {
    width: 78%;
    max-width: 980px;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
}

.section-divider--top {
    margin: 80px auto 48px;
}

.section-divider--bottom {
    margin: 60px auto 32px;
}

/* ------------------------------
   FEATURE INTRO
--------------------------------*/

.feature-intro {
    padding: 0 80px 30px;
    max-width: 820px;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    opacity: 0.55;
    margin-bottom: 16px;
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 18px;
}

.section-desc {
    font-size: 18px;
    opacity: 0.85;
}

/* Desktop: shift phone + insights to the right */
@media (min-width: 1101px) {
    .phone-and-insights {
        margin-left: 110px;
    }
}


/* keep "Designed for you..." on one line on desktop */
@media (min-width: 960px) {
    .section-title {
        white-space: nowrap;
    }
    .hero-title-line {
        white-space: nowrap;
    }
}

/* ------------------------------
   FEATURE GRID
--------------------------------*/

.features {
    padding: 20px 80px 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 30px 32px 34px;
    border-radius: 22px;
    box-shadow: 0px 6px 22px rgba(0,0,0,0.05);
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 10px;
}

.tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #3F6A57;
}

.tag-label {
    font-weight: 600;
}

/* subtle color variation per card */
.feature-dot.core    { background: #ffda96; }
.feature-dot.clarity { background: #90e1c9; }
.feature-dot.calm    { background: #8699d6; }
.feature-dot.rest    { background: #afa6b6; }
.feature-dot {
    box-shadow: 0 0 0 3px rgba(125, 159, 139, 0.12);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    font-size: 16px;
    opacity: 0.85;
}

/* ------------------------------
   EMAIL SIGNUP SECTION
--------------------------------*/

.signup-success {
    margin-top: 16px;
    font-size: 25px;
    font-weight: 700px;
    color: #3F6A57;
    opacity: 0.9;
}
.signup-success {
    animation: fadeUp 0.4s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.signup {
    padding: 55px 80px 60px;
    text-align: center;
}

.signup-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.signup-desc {
    max-width: 620px;
    margin: 0 auto 28px;
    font-size: 18px;
    opacity: 0.85;
}

.signup-box {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.input-email {
    width: 330px;
    padding: 14px 18px;
    border-radius: 50px;
    border: 1px solid #CCC;
    font-size: 16px;
    outline: none;
}

.input-email:focus {
    border-color: #3F6A57;
    box-shadow: 0 0 0 1px rgba(63,106,87,0.1);
}

.signup-note {
    opacity: 0.6;
    font-size: 14px;
}

/* ------------------------------
   FOOTER
--------------------------------*/

.footer {
    width: 100%;
    padding: 30px 80px 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 32px;
    opacity: 0.9;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.social-group {
    display: flex;
    gap: 12px;
    margin-right: 4px;
}

.social-link {
    font-size: 14px;
    text-decoration: none;
    color: #3F6A57;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(63,106,87,0.08);
    border: 1px solid rgba(63,106,87,0.12);
    transition: 0.2s ease;
}

.social-link:hover {
    background: rgba(63,106,87,0.12);
}

.footer-link {
    font-size: 15px;
    color: #2A2A2A;
    opacity: 0.8;
    text-decoration: none;
}

.footer-link:hover {
    opacity: 1;
}

/* ------------------------------
   LEGAL PAGES (PRIVACY & TERMS)
--------------------------------*/

.legal-page {
    background: #F8F4EE;
    color: #2A2A2A;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
}

.legal-container {
    max-width: 800px;
    margin: 60px auto 100px;
    padding: 0 24px;
    line-height: 1.6;
}

.legal-container h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.legal-container h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 6px;
}

.legal-container p {
    margin-bottom: 10px;
}

.legal-container ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.legal-container li {
    margin-bottom: 4px;
}

.legal-container a {
    color: #3F6A57;
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

/* ------------------------------
   RESPONSIVE
--------------------------------*/

/* === Invite Page Additions (T17-B) === */

.invite-section {
    padding: 80px 80px 100px;
    text-align: center;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.invite-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 500px;
}

.invite-desc {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 400px;
}

.invite-cta {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 24px;
}

.invite-helper {
    font-size: 15px;
    opacity: 0.7;
    margin-bottom: 40px;
    max-width: 360px;
}

.invite-reassurance {
    font-size: 14px;
    opacity: 0.55;
}

@media (max-width: 1100px) {
    .invite-section {
        padding: 60px 30px 80px;
    }

    .invite-title {
        font-size: 28px;
    }
}

/* === End Invite Page Additions === */

@media (max-width: 1100px) {
    .hero {
        flex-direction: column;
        padding: 40px 30px;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    /* Phone + insight cluster (mobile hero) */
    .phone-and-insights {
        margin-top: 20px;
        align-items: center;
        position: relative; /* anchor overlay */
        width: 100%;
    }

    /* Insight stack overlays the phone on mobile */
    .insight-stack {
        position: absolute;
        top: 56px;                 /* sits on phone, below notch */
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 320px;          /* slightly narrower than phone */
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 3;
    }
    .insight-card:first-child {
    margin-top: 120px;         /* moves below green banner */
}


    /* Insight cards — mobile feel */
    .insight-card {
        border-radius: 18px;
        padding: 12px 14px;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
    }

    /* Secondary card drops below phone */
    .insight-card.secondary {
        position: static;
        margin-top:40px;         /* clears phone face */
        opacity: 0.9;
    }

    .section-divider--top {
        margin: 70px auto 40px;
    }

    .section-divider--bottom {
        margin: 50px auto 30px;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 20px 30px 60px;
    }

    .feature-intro {
        padding: 0 30px 20px;
    }

    .signup {
        padding: 50px 30px 60px;
    }

    /* Footer — mobile layout (FINAL) */
    .footer {
        padding: 30px 24px 32px;
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }

    .footer-left {
        justify-content: center;
        text-align: center;
    }

    .footer-right {
        padding-left: 12px;
        padding-right: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-right a {
        white-space: nowrap;
    }

    /* allow hero title to wrap naturally on small screens */
    .hero-title-line {
        white-space: normal;
    }
}
