/* websites/mindfulbrian/css/mindfulbrian-custom.css
 * ============================================================================
 * Mindful Brian theme overrides
 * Only brand colours and site-specific styles; everything else comes from shared.
 * ============================================================================ */

:root {
    --brand-primary: #5a8ab5;
    --brand-primary-light: #7aa4c9;
    --brand-primary-subtle: #f0f5fa;
    --brand-primary-hover: #4a7aa5;
    --brand-accent: #c4956a;
    --brand-accent-light: #f5ece4;
}

/* --- Hero --- */

.hero {
    padding-top: calc(64px + var(--space-4xl));
    padding-bottom: var(--space-4xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, var(--brand-primary-subtle) 0%, transparent 65%);
    opacity: 0.55;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.hero__logo-wrap {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-xl);
    background: var(--color-surface-elevated);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-subtle);
}

.hero__logo-wrap img {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-lg);
}

.hero__heading {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 400;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-on-surface);
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-on-surface-secondary);
    line-height: var(--leading-normal);
    max-width: 540px;
}

/* --- Intro card --- */

.intro-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.intro-card__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--color-on-surface);
    margin-bottom: var(--space-md);
}

.intro-card__text {
    font-size: var(--text-base);
    color: var(--color-on-surface-secondary);
    line-height: var(--leading-normal);
    max-width: 620px;
    margin: 0 auto;
}

/* --- What You'll Experience highlight --- */

.experience-card {
    background: var(--brand-primary-subtle);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.experience-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: var(--space-sm);
}

.experience-card__text {
    font-size: var(--text-base);
    color: var(--color-on-surface-secondary);
    line-height: var(--leading-normal);
    margin: 0;
}

/* --- Footer readability improvements --- */

.footer__heading {
    color: var(--color-on-surface-secondary);
}

.footer__links a {
    color: var(--color-on-surface);
}

.footer__links a:hover {
    color: var(--brand-primary);
}

/* --- Web-app badge (Trello #347) --------------------------------------------
 * Sits among the official App Store / Google Play badges as a peer. Matches the
 * black store-badge visual language at the same 44px height; the brand-blue BETA
 * pill is the one intentional flourish, signalling the web app is newly launched.
 * CSS-only (no official "web" badge SVG exists). Scoped under `.app-badges a` so
 * it out-specifies the shared `.app-badges a { display: inline-block }` rule. */

.app-badges a.web-app-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 44px;
    box-sizing: border-box;
    padding: 0 0.95rem 0 0.8rem;
    background: #0a0a0a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    /* 5.5px = Google Play's 12.5% corner ratio at this 44px height: a plain
     * circular arc that matches Google Play and sits flush beside Apple. NB: a
     * `corner-shape: squircle` was tried to mirror Apple's continuous corner, but
     * at this small radius the superellipse reads boxier (flatter sides), so the
     * circular arc is the better match here. Do not re-add it. (#347) */
    border-radius: 5.5px;
    text-decoration: none;
}

.web-app-badge__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.95;
}

.web-app-badge__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    text-align: left;
}

.web-app-badge__text small {
    font-size: 0.5rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.82;
    margin-bottom: 2px;
}

.web-app-badge__text strong {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.005em;
}

.web-app-badge__beta {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    border: 1.5px solid var(--color-surface-elevated, #fff);
    box-shadow: var(--shadow-sm);
}

.app-badges a.web-app-badge:focus-visible {
    outline: 2px solid var(--brand-primary-light);
    outline-offset: 3px;
}
