/* =========================================================================
   FILENAME: index.css
   ROLE: Index page layout and card styles.
         Loaded only by index.php — no impact on landing pages or engine.
         Hardcoded colours used throughout since no category CSS is loaded
         on the index page.
   ========================================================================= */
:root {
      --surface-border: rgba(26, 58, 92, 0.5);
    --surface-bg: #f4f6f9;
    --surface-hover: #ffffff;
    --surface-shadow: rgba(26, 58, 92, 0.12);
    --surface-heading: #1a3a5c;
    --surface-text: #444;
    --surface-subtext: #555;
    --surface-cta-bg: #ffb020;
    --surface-cta-hover: #ffc94d;
    --surface-cta-border: #d4900a;
      /* FLAIRS */
  --box-shadow-subtle: rgba(18, 28, 38, 0.15);
}

.app-frame{
    border: 1px solid var(--surface-border);
    border-radius: 8px;
}
.wrap{
    background-color: var(--surface-primary);
    border: 1px solid var(--surface-border);
  border-radius: 7px;
    box-shadow: 0 4px 6px 2px var(--box-shadow-subtle);
}

/* =========================================================================
   HEADER & LOGO PLACEHOLDER
   ========================================================================= */

.index-header {
    padding: 1.25rem 0 1rem;
    border-bottom: 2px solid #1a3a5c;
    margin-bottom: 1.75rem;
}

.index-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.index-logo__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #1a3a5c;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.index-logo__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a3a5c;
    letter-spacing: -0.01em;
}

/* =========================================================================
   HERO
   ========================================================================= */

.index-hero {
    padding: 2rem 0 1.75rem;
    text-align: center;
    border-bottom: 1px solid #dde3ea;
    margin-bottom: 1.75rem;
}

.index-hero__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.index-hero__body {
    font-size: 1rem;
    color: #444;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.index-hero__cta {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    background: #ffb020;
    color: #1a3a5c;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    border: 2px solid #d4900a;
}

.index-hero__cta:hover {
    background: #ffc94d;
    border-color: #ffb020;
}

/* =========================================================================
   ADSENSE BREAK
   ========================================================================= */

.index-adsense-break {
    margin: 0.5rem 0 1.5rem;
    border-top: 1px solid #dde3ea;
    border-bottom: 1px solid #dde3ea;
    padding: 0.5rem 0;
}

/* =========================================================================
   SECTION HEADINGS
   ========================================================================= */

.index-section {
    margin-bottom: 2.25rem;
        box-shadow: 0 4px 6px 2px var(--box-shadow-subtle);
}

.index-section__heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #1a3a5c;
}

.index-section__intro {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* =========================================================================
   CARD GRID
   ========================================================================= */

.index-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

/* =========================================================================
   CARDS — BASE
   ========================================================================= */

.index-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1.5px solid #c8d0da;
    background: #f4f6f9;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
        box-shadow: 0 4px 6px 2px var(--box-shadow-subtle);
}

.index-card:hover {
    border-color: #1a3a5c;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(26, 58, 92, 0.12);
}

.index-card__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0.25rem;
}

.index-card__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: currentColor;
}

.index-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #1a3a5c;
}

.index-card__desc {
    font-size: 0.8rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* =========================================================================
   CARDS — MODE (standalone engine modes)
   ========================================================================= */

.index-card--mode {
    background: #f0f3f7;
    border-color: #b0bcc8;
        box-shadow: 0 4px 6px 2px var(--box-shadow-subtle);
}

.index-card--mode .index-card__icon {
    color: #1a3a5c;
}

.index-card--mode:hover {
    background: #ffffff;
    border-color: #1a3a5c;
}

/* =========================================================================
   CARDS — COMING SOON STATE
   ========================================================================= */

.index-card--soon {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

.index-card__soon {
    font-size: 0.7rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* =========================================================================
   CARDS — SILO (category-coloured borders and icons)
   Hardcoded since no category CSS is loaded on the index page.
   These approximate the dominant colour from each category palette.
   ========================================================================= */

.index-card--money {
    border-color: #c89000;
    background: #fffbf0;
}
.index-card--money .index-card__icon { color: #c89000; }
.index-card--money:hover { border-color: #a07000; background: #ffffff; }

.index-card--health {
    border-color: #1e7a52;
    background: #f0faf5;
}
.index-card--health .index-card__icon { color: #1e7a52; }
.index-card--health:hover { border-color: #145c3c; background: #ffffff; }

.index-card--life {
    border-color: #6040a0;
    background: #f5f0fc;
}
.index-card--life .index-card__icon { color: #6040a0; }
.index-card--life:hover { border-color: #482e80; background: #ffffff; }

.index-card--relationships {
    border-color: #b83060;
    background: #fdf0f4;
}
.index-card--relationships .index-card__icon { color: #b83060; }
.index-card--relationships:hover { border-color: #901848; background: #ffffff; }

.index-card--planning {
    border-color: #1060a0;
    background: #f0f5fc;
}
.index-card--planning .index-card__icon { color: #1060a0; }
.index-card--planning:hover { border-color: #084880; background: #ffffff; }

/* =========================================================================
   HOW IT WORKS — STEPS
   ========================================================================= */

.index-explainer {
    background: #f4f6f9;
    border: 1.5px solid #c8d0da;
    border-radius: 8px;
    padding: 1.25rem;
}

.index-explainer .index-section__heading {
    border-bottom-color: #c8d0da;
}

.index-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.index-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.index-step__number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a3a5c;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.index-step__content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #1a3a5c;
}

.index-step__content p {
    font-size: 0.875rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 480px) {
    .index-card-grid {
        grid-template-columns: 1fr;
    }

    .index-hero__title {
        font-size: 1.4rem;
    }

    .index-section__heading {
        font-size: 1.1rem;
    }
}

/* =========================================================================
   WELCOME PAGE — private alpha testing intro
   ========================================================================= */

.welcome-intro {
    text-align: center;
    padding: 1.5rem 0 1rem;
}

.welcome-intro__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 0.5rem;
}

.welcome-intro__body {
    font-size: 0.95rem;
    color: #555;
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.5;
}

.welcome-video {
    margin: 1.5rem 0;
}

.welcome-video video {
    width: 100%;
    border-radius: 8px;
    border: 1.5px solid #c8d0da;
    display: block;
}

.welcome-cta {
    text-align: center;
    margin: 1.5rem 0;
}