/* Study home: the three headline features (Ryze AI, Insights, Rescue my plan). */
.feature-row{max-width:1450px;margin:0 auto 18px;padding:0 clamp(20px,4vw,62px);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.feature-card{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:16px 18px;border-radius:22px;border:1px solid var(--line,#d0cec4);background:var(--white,#fffdf7);color:var(--ink,#172522);text-decoration:none;text-align:left;font:inherit;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.feature-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(23,37,34,.1);border-color:#b8bdb2}
.feature-card:focus-visible{outline:3px solid var(--clay,#c66f52);outline-offset:3px}
.fc-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;flex:none}
.fc-icon svg{width:22px;height:22px}
.feature-card[data-feature="ai"] .fc-icon{background:var(--ink,#172522);color:var(--yellow,#f2d253)}
.feature-card[data-feature="insights"] .fc-icon{background:#dfe6d6;color:var(--ink,#172522)}
.feature-card[data-feature="rescue"] .fc-icon{background:#f3d6ca;color:#8f3a22}
.fc-text{display:grid;gap:3px;min-width:0}
.fc-text strong{font:700 16px/1.25 "Bricolage Grotesque","Manrope",sans-serif;letter-spacing:-.02em}
.fc-text span{font-size:13px;line-height:1.45;color:#4f5a53}
.fc-go{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--paper,#f3f0e8);font-size:15px;transition:transform .2s ease,background .2s ease}
.feature-card:hover .fc-go{transform:translateX(3px);background:var(--yellow,#f2d253)}
/* Returning students: same three cards, one line each. */
.feature-row.compact .feature-card{padding:10px 14px;border-radius:18px;gap:12px}
.feature-row.compact .fc-icon{width:36px;height:36px;border-radius:12px}
.feature-row.compact .fc-icon svg{width:18px;height:18px}
.feature-row.compact .fc-text span{display:none}
.feature-row.compact .fc-go{width:26px;height:26px;font-size:13px}
@media (max-width:980px){.feature-row{grid-template-columns:1fr;gap:10px}}
@media (max-width:760px){.feature-row{padding-inline:19px}}
@media (prefers-reduced-motion:reduce){.feature-card,.fc-go{transition:none}.feature-card:hover,.feature-card:hover .fc-go{transform:none}}
html[data-theme="dark"] .feature-card{background:#1c2a25;border-color:#33433d;color:#f3f0e8}
html[data-theme="dark"] .fc-text span{color:#b3beb5}
html[data-theme="dark"] .fc-go{background:#26362e}

/* "What can Ryze do?" link and the one-time welcome card */
.feature-head{max-width:1450px;margin:0 auto 10px;padding:0 clamp(20px,4vw,62px);display:flex;justify-content:flex-end}
.feature-reopen{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line,#d0cec4);background:transparent;color:var(--ink,#172522);border-radius:999px;padding:7px 14px;font:700 12.5px var(--sans,"Manrope",sans-serif);cursor:pointer;transition:background .2s,border-color .2s}
.feature-reopen::before{content:"?";display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--yellow,#f2d253);color:var(--ink,#172522);font-size:11px;font-weight:800}
.feature-reopen:hover{background:var(--white,#fffdf7);border-color:#b8bdb2}
.feature-reopen:focus-visible,.fw-got:focus-visible,.fw-close:focus-visible{outline:3px solid var(--clay,#c66f52);outline-offset:3px}
.feature-head.open .feature-reopen{background:var(--white,#fffdf7)}
.feature-welcome{position:relative;max-width:calc(1450px - 2 * clamp(20px,4vw,62px));margin:0 auto 14px;box-sizing:border-box;width:calc(100% - 2 * clamp(20px,4vw,62px));background:var(--ink,#172522);color:#f3f0e8;border-radius:26px;padding:clamp(20px,3vw,30px);display:grid;gap:14px;overflow:hidden;animation:fwIn .45s cubic-bezier(.2,.8,.2,1) both}
.feature-welcome::after{content:"";position:absolute;right:-80px;top:-80px;width:260px;height:260px;border-radius:50%;border:34px solid rgba(242,210,83,.08);pointer-events:none}
.feature-welcome[hidden]{display:none!important}
.feature-welcome.fw-out{animation:fwOut .22s ease forwards}
@keyframes fwIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@keyframes fwOut{to{opacity:0;transform:translateY(-6px)}}
.fw-eyebrow{margin:0;font:600 11px var(--mono,"DM Mono",monospace);letter-spacing:.14em;text-transform:uppercase;color:var(--yellow,#f2d253)}
.feature-welcome h2{margin:-6px 0 0;font:700 clamp(22px,2.6vw,28px)/1.15 "Bricolage Grotesque","Manrope",sans-serif;letter-spacing:-.03em;outline:none}
.fw-steps{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;counter-reset:fw}
.fw-steps li{counter-increment:fw;display:grid;gap:4px;padding:14px 16px 14px 52px;position:relative;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);font-size:13.5px;line-height:1.5;color:#d7ddd3}
.fw-steps li::before{content:counter(fw);position:absolute;left:14px;top:14px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--yellow,#f2d253);color:var(--ink,#172522);font:800 13px var(--sans,"Manrope",sans-serif)}
.fw-steps strong{color:#fff;font-size:14.5px}
.fw-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.fw-got{border:0;border-radius:999px;background:var(--yellow,#f2d253);color:var(--ink,#172522);font:700 14px var(--sans,"Manrope",sans-serif);padding:11px 22px;min-height:44px;cursor:pointer;transition:transform .15s}
.fw-got:hover{transform:translateY(-1px)}
.fw-note{font-size:12.5px;color:#aeb9aa}
.fw-close{position:absolute;top:14px;right:14px;z-index:1;width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.2);background:transparent;color:#f3f0e8;font-size:20px;line-height:1;cursor:pointer}
.fw-close:hover{background:rgba(255,255,255,.1)}
@media (max-width:980px){.fw-steps{grid-template-columns:1fr}}
@media (max-width:760px){.feature-head{padding-inline:19px}.feature-welcome{width:calc(100% - 38px)}}
@media (prefers-reduced-motion:reduce){.feature-welcome,.feature-welcome.fw-out{animation:none}.fw-got{transition:none}}

/* The Rescue my plan card replaces the tab-bar button; the button stays in the
   page (hidden) because the card, the sidebar and the Next exam card open
   Rescue through it. */
#rescueOpen{display:none!important}
