/*
 * Landing, Log In, Forgot password, Set password: the same warm "clay" look as the student side
 * (assets/css/partials/clay.css): cream page, honey highlights, sticker cards with a solid bottom edge, yellow
 * buttons that press down. Loaded after index.css / base.css.
 */

:root {
    --bg: #fff5e1;
    --line: #f0e0c4;
    --line-soft: #f6ead3;
    --soft: #fff0cf;
    --edge: #f2dfbd;
    --press: #c58a0c;
    --honey: #ffc93c;
    --honey-soft: #fff0c2;
    --honey-deep: #e9a515;
    --honey-line: #f6d98a
}

body {
    background: var(--bg)
}

/* ---------- buttons that press down ---------- */
.btn-primary {
    box-shadow: 0 4px 0 var(--press);
    transition: transform .12s ease, box-shadow .12s ease, background .15s
}

.btn-primary {
    border: 2px solid #d99a0e
}

.btn-primary:hover,
.btn-primary:hover:not(:disabled) {
    transform: none;
    box-shadow: 0 4px 0 var(--press)
}

.btn-primary:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--press)
}

.btn-outline {
    box-shadow: 0 3px 0 var(--edge);
    transition: transform .12s ease, box-shadow .12s ease
}

.btn-outline:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--edge)
}

/* ---------- Log In / Forgot password ---------- */
.card {
    border: 2px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 6px 0 var(--edge)
}

.sky .wave path {
    fill: #fffdf8
}

.sky .c:nth-child(3) {
    background: var(--honey-soft) !important;   /* the one soft shape behind Nallo (its color is inline) */
    opacity: 1 !important
}

/* ---------- landing ---------- */
.nav {
    background: rgba(255,245,225,.9)
}

.acard,
.faq,
.role {
    border: 2px solid var(--line);
    box-shadow: 0 4px 0 var(--edge)
}

.how .panel {
    background: var(--honey-soft);
    border: 2px solid var(--honey-line)
}

.device,
.week {
    border: 2px solid var(--line);
    box-shadow: 0 6px 0 var(--edge)
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary:active:not(:disabled),
    .btn-outline:active {
        transform: none
    }
}

/* landing pictures: until the admin uploads one in Settings, Nallo is there instead of an empty dashed frame */
.ph.mascot:not(.ph-filled) {
    background: url(../../nallo/waving-web.png) center bottom / contain no-repeat;
    border: 0;
    box-shadow: none
}

.cta .ph.mascot:not(.ph-filled) {
    background-image: url(../../nallo/caring-web.png)
}

.ph.mascot:not(.ph-filled) > * {
    display: none
}

/* ---------- landing details (Kai, Oct 31) ---------- */
/* "Hey, I'm Nallo!" sits by Nallo's head */
.stage .note1 {
    top: 118px;
    left: 0
}

@media (max-width: 900px) {
    .stage .note1 {
        left: 16px                    /* not cut off at the edge */
    }
}

@media (max-width: 560px) {
    .stage .note1 {
        top: 40px;                    /* above Nallo's head on phones */
        left: 10px;
        font-size: 22px
    }
}

/* What makes MindSync different: each feature is a card */
.feat {
    padding: 22px 16px 20px;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 4px 0 var(--edge)
}

/* How it works: the screen is a plain rounded card (no laptop frame) */
.laptop {
    border: 2px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 4px 0 var(--edge)
}

.laptop::before,
.laptop::after {
    display: none
}

.phone {     /* no dark frame: the same cream sticker edge as the big card */
    border: 2px solid var(--line);
    box-shadow: 0 4px 0 var(--edge), 0 14px 30px rgba(45, 36, 23, .12)
}

/* the step numbers in the theme's colors */
.n1 { --n: #ffc93c }
.n2 { --n: #ffbe8f }
.n3 { --n: #8fd0ff }

.num {
    color: #2d2416;
    border: 2px solid rgba(45, 36, 23, .12)
}

/* "You're not alone": the same light cream as the home and features sections */
.cta {
    background: var(--bg)
}

/* ---------- PC (wider than 900px): About cards centered ---------- */
@media (min-width: 901px) {
    .acard {
        text-align: center
    }

    .acard .blob {
        margin-left: auto;
        margin-right: auto
    }
}

/* ---------- tablet only (561–900px) ---------- */
@media (min-width: 561px) and (max-width: 900px) {
    /* home: the short description runs wider, so it fits in about two lines */
    .hero .lead {
        max-width: none
    }

    /* about: icon and title on the left, the description on the right */
    .acard {
        display: grid;
        grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 26px;
        align-items: center
    }

    .acard .blob {
        grid-column: 1;
        grid-row: 1;
        justify-self: center
    }

    .acard h3 {
        grid-column: 1;
        grid-row: 2;
        margin-top: 10px;
        text-align: center
    }

    .acard p {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        margin-top: 0
    }
}

/* ---------- phones only (560px and under) ---------- */
@media (max-width: 560px) {
    /* about: icon and title centered, the text stays as it is */
    .acard .blob {
        margin-left: auto;
        margin-right: auto
    }

    .acard h3 {
        text-align: center
    }

}

/* Log In / Forgot password: Nallo peeking over the top of the card: right on desktop, left on
   tablets (instead of the waving Nallo inside the card); phones keep him waving inside it */
@media (min-width: 961px) {
    .card::before {
        content: "";
        position: absolute;
        top: -62px;
        right: 54px;
        width: 104px;
        height: 82px;
        background: url(../../nallo/seeking-web.png) center bottom / contain no-repeat;
        pointer-events: none
    }
}

/* Terms / Privacy on their own page (policy.php): just the window, on the page's cream */
.policy-page .modal {
    position: static;
    min-height: 100vh;
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none
}

.policy-page .dialog h1 {
    font-size: 21px;
    font-weight: 900;
    color: var(--ink)
}

.policy-page .dialog .x {
    display: grid;
    place-items: center
}

@media (min-width: 521px) and (max-width: 960px) {
    .card::before {
        content: "";
        position: absolute;
        top: -58px;
        left: 34px;
        width: 98px;
        height: 76px;
        background: url(../../nallo/seeking-web.png) center bottom / contain no-repeat;
        pointer-events: none
    }

    .card .card-nallo {
        display: none
    }

    .card:has(.card-nallo) h1 {
        padding-right: 0
    }
}

/* Forgot password step 1: a little room above Continue */
#f1 > .btn-primary {
    margin-top: 10px
}

/* Log In: no Create account (the guidance office makes accounts) */
.no-acct {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    color: var(--muted)
}
