/* SAT home (sat-home.html): countdown, the big Learning & Practice card, three pairs, the Games strip. Builds on app.css. */
.sh-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: 28px 32px; border-radius: 28px; background: var(--card); }
.sh-next { display: flex; flex-direction: column; gap: 4px; min-width: 230px; padding: 18px 22px; border-radius: 22px; background: var(--sky); color: var(--paper); transition: transform .3s cubic-bezier(0.32, 0.72, 0, 1); }
.sh-next:hover { transform: translateY(-2px); }
.sh-next b { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.sh-next > span:nth-child(3) { font-size: 13.5px; color: var(--muted); }

/* the featured card */
.sh-learn { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: center; padding: 30px 32px; border-radius: 30px; background: var(--lav); }
.sh-learn__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--card); margin-bottom: 14px; }
.sh-learn__ic svg, .sh-sec svg, .sh-card svg, .sh-games svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sh-learn__ic svg { width: 22px; height: 22px; }
.sh-learn h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.sh-learn p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 42ch; }
.sh-learn__pick { display: grid; gap: 12px; }
.sh-sec { display: grid; grid-template-columns: 48px minmax(0, 1fr) 36px; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 22px; background: var(--card); color: var(--paper); transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1), box-shadow .35s; }
.sh-sec:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .35); }
.sh-sec__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.sh-sec__ic svg { width: 21px; height: 21px; }
.sh-sec__t b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.sh-sec__t span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.sh-sec__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; }
.sh-sec__go svg { width: 16px; height: 16px; }

/* the three pairs */
.sh-pairs { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sh-card { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 6px 16px; min-height: 150px; padding: 22px 24px; border-radius: 26px; background: var(--card); color: var(--paper); transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1), background .3s; }
.sh-card:hover { transform: translateY(-3px); }
.sh-card__ic { grid-row: 1 / span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; }
.sh-card__ic svg { width: 22px; height: 22px; }
.sh-card__t b { display: block; padding-right: 40px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.sh-card__t span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 44ch; }
.sh-card__m { grid-column: 2; align-self: end; justify-self: start; margin-top: 10px; padding: 5px 11px; border-radius: 999px; background: var(--navy); font-size: 12.5px; font-weight: 700; }
.sh-card__go { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); transition: background .25s, color .25s; }
.sh-card__go svg { width: 16px; height: 16px; }
.sh-card:hover .sh-card__go { background: var(--ink); color: #fff; }
.is-lav { background: var(--lav); } .is-sky { background: var(--sky); } .is-mint { background: var(--mint); } .is-rose { background: var(--rose); } .is-sun { background: var(--sun); }

/* the Games strip */
.sh-games { margin-top: 14px; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 24px; border-radius: 26px; background: var(--ink); color: #fff; transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1); }
.sh-games:hover { transform: translateY(-3px); }
.sh-games__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .1); }
.sh-games__ic svg { width: 26px; height: 26px; }
.sh-games__t b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.sh-games__t span { display: block; margin-top: 3px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.sh-games__cta { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 700; white-space: nowrap; }
.sh-games__cta svg { width: 16px; height: 16px; }

@media (max-width: 900px) { .sh-learn { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .sh-pairs { grid-template-columns: 1fr; } .sh-head { grid-template-columns: 1fr; padding: 22px; } .sh-learn { padding: 22px; } .sh-games { grid-template-columns: 44px minmax(0, 1fr); } .sh-games__ic { width: 44px; height: 44px; } .sh-games__cta { grid-column: 1 / -1; justify-self: start; } }

/* dark: pastel surfaces turn plain, so the big card gets the coloured top edge the other pastel cards use */
html[data-theme="dark"] .sh-learn { background: var(--lav); }
html[data-theme="dark"] .sh-next { background: var(--sky); }
@media (max-width: 700px) { .sh-card { min-height: 0; } }
/* one wide Progress card (owner, 2026-10-24) */
.sh-prog { grid-column: 1 / -1; min-height: 0; }
.sh-prog__n { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sh-prog__n > span { display: flex; flex-direction: column; min-width: 120px; padding: 10px 14px; border-radius: 16px; background: rgba(var(--fg-rgb), .04); }
.sh-prog__n b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sh-prog__n em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); }
@media (max-width: 700px) { .sh-prog__n { grid-column: 1 / -1; } .sh-prog__n > span { flex: 1 1 40%; min-width: 0; } }
