/* =========================================================
   UPTUTOR-STYLE DESIGN SYSTEM (load last, after kuku_brand)
   Dark green brand #0B6623 · white surfaces · rounded inputs
   · pill buttons · green hero with search
   ========================================================= */

:root{
    --upgreen:#0B6623;
    --upgreen-dark:#084d1b;
    --upforest:#1a523a;
    --upforest-deep:#0f4c3a;
    --upink:#123b35;
    --upline:#e3e8e5;
    --upmuted:#5f6f68;
    --upred:#c0392b;
    --upred-dark:#a93226;
    --brand-gold:#d4a843;
    --shadow-soft:0 1px 2px rgba(18,59,53,.04),0 12px 32px -18px rgba(18,59,53,.28);
    --shadow-lift:0 2px 4px rgba(18,59,53,.05),0 28px 60px -28px rgba(18,59,53,.35);
    --transition-smooth:320ms cubic-bezier(.22,1,.36,1);
}

body{
    background:#fff !important;
    color:var(--upink);
    font-family:'Figtree',sans-serif;
    -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:'Outfit',sans-serif;letter-spacing:-.025em}

/* ---------- Topbar ---------- */
.topbar{
    background:#fff !important;
    border:1px solid var(--upline);
    border-radius:14px;
    max-width:1160px;
    margin:18px auto;
    padding:12px 26px;
    box-shadow:0 8px 26px rgba(18,59,53,.06);
    display:flex;
    align-items:center;
    gap:16px;
}
.brand{font-weight:800}
.brand-mark,.side-brand .brand-mark,.tutor-brand .brand-mark,.find-brand .brand-mark,.messages-topbar .tutor-brand .brand-mark{background:none !important;border:none !important;border-radius:0;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;overflow:visible}
.brand-mark img,.side-brand .brand-mark img,.tutor-brand .brand-mark img{width:100%;height:100%;object-fit:contain}
/* Header nav: bubble pills, evenly spaced (About, Contact Us, sign-ins) */
.topbar nav{
    display:flex;
    align-items:center;
    gap:10px;
    margin-left:auto;
    font-weight:700;
    font-size:13.5px;
}
.topbar nav a{
    color:var(--upgreen-dark);
    padding:9px 18px;
    border-radius:999px;
    background:#eef5ef;
    transition:background .15s,color .15s;
}
.topbar nav a:hover{background:#e2efe5;color:var(--upgreen)}
/* Sign-in bubbles */
.topbar nav .login-pill{
    border-radius:999px;
    padding:9px 20px;
    font-size:13px;
    display:inline-block;
}
.topbar nav .login-pill.outline{
    background:#fff;
    border:1.5px solid var(--upgreen);
    color:var(--upgreen-dark);
}
.topbar nav .login-pill.outline:hover{background:#eef5ef;color:var(--upgreen-dark)}
.topbar nav .login-pill.filled{
    background:var(--upred);
    border:1.5px solid var(--upred);
    color:#fff;
}
.topbar nav .login-pill.filled:hover{background:var(--upred-dark);border-color:var(--upred-dark)}

/* Header actions: theme toggle + messages + Log out (right-aligned) */
.nav-actions{gap:12px}
body:not(:has(.join-page)):not(.home) .nav-actions{margin-left:auto}
.nav-actions .login{
    background:transparent;
    color:var(--upgreen-dark);
    border:1.5px solid var(--upgreen);
    border-radius:999px;
    padding:9px 20px;
    font-size:13px;
    font-weight:800;
}
.nav-actions .login:hover{background:#eef5ef}
.nav-actions .btn-small{
    background:var(--upgreen);
    color:#fff;
    border:1.5px solid var(--upgreen);
    border-radius:999px;
    padding:9px 20px;
    font-size:13px;
}
.nav-actions .btn-small:hover{background:var(--upgreen-dark)}
.nav-actions form{margin:0}

/* Header nav text only on the join page (bubbles); minimal header elsewhere */
body:not(:has(.join-page)) .topbar nav,
body:not(:has(.join-page)) .nav-actions .login{display:none !important}

/* Student portal: Dashboard pill next to Messages + compact one-line heading */
body.student-portal .nav-actions .login{display:inline-block !important}
body.student-portal .account-page h1{
    font-size:32px;
    letter-spacing:-1.2px;
    white-space:nowrap;
}
@media(max-width:650px){
    body.student-portal .account-page h1{font-size:26px}
}

/* Landing page header: sign-in bubbles + Get started on the right */
body.home .topbar nav{display:flex !important}
body.home .topbar nav > a:not(.login-pill){display:none}
body.home .nav-actions{margin-left:0}
body.home .nav-actions .login{display:inline-block !important}

/* Theme toggle button (light mode) */
.theme-toggle{
    background:transparent;
    border:1.5px solid #9db8a8;
    color:var(--upgreen-dark);
    border-radius:999px;
    width:38px;
    height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    cursor:pointer;
    padding:0;
    line-height:1;
}
.theme-toggle:hover{border-color:var(--upgreen);background:#eef5ef}

/* Workspace topbars get their own dark-mode toggle (base header is hidden there). */
.tutor-topbar > .theme-toggle{margin-left:auto;flex:0 0 auto}
.tutor-nav-actions .theme-toggle{flex:0 0 auto}
.family-sidebar .theme-toggle{margin:10px 12px 0;align-self:flex-start;flex:0 0 auto}
.messages-topbar-right{display:flex;align-items:center;gap:12px}

/* ---------- Names: text columns must never crush or clip in flex rows ---------- */
.session-main,
.request-main,
.job-row-main,
.student-mini > div,
.message-snippet > div,
.conversation > div,
.chat header > div,
.directory-tutor-head > div:not(.directory-avatar),
.dashboard-child-top > div,
.nav-user > div{flex:1;min-width:0}

/* ---------- Tutor phone overflow menu ---------- */
.tutor-topbar{position:relative}
.tutor-burger{
    display:none;
    width:38px;
    height:38px;
    border-radius:999px;
    border:1.5px solid var(--upgreen);
    background:transparent;
    color:var(--upgreen-dark);
    font-size:15px;
    font-weight:800;
    line-height:1;
    cursor:pointer;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
}
.tutor-burger:hover{background:#eef5ef}
.tutor-dropdown{
    display:none;
    position:absolute;
    top:calc(100% + 6px);
    right:10px;
    z-index:60;
    background:#fff;
    border:1px solid var(--upline);
    border-radius:12px;
    box-shadow:0 16px 34px rgba(18,59,53,.16);
    padding:8px;
    min-width:190px;
}
.tutor-dropdown.open{display:block}
.tutor-dropdown a{
    display:block;
    padding:11px 14px;
    border-radius:8px;
    font-size:13px;
    font-weight:800;
    color:var(--upgreen-dark);
}
.tutor-dropdown a:hover,
.tutor-dropdown a.active{background:#eef5ef;color:var(--upgreen)}
@media(max-width:650px){
    .tutor-burger{display:inline-flex}
}

/* ---------- Buttons ---------- */
.btn{
    background:var(--upgreen);
    border:1.5px solid var(--upgreen);
    color:#fff;
    border-radius:999px;
    padding:13px 24px;
    font-weight:800;
    box-shadow:0 6px 18px rgba(11,102,35,.22);
}
.btn:hover{background:var(--upgreen-dark);border-color:var(--upgreen-dark)}
.btn-quiet,.outline-btn{
    background:#fff;
    color:var(--upgreen-dark);
    border:1.5px solid #9db8a8;
    border-radius:999px;
    font-weight:800;
}
.btn-quiet:hover,.outline-btn:hover{background:#eef5ef;border-color:var(--upgreen)}

/* ---------- Red accent system ---------- */
.btn-red{background:var(--upred);border-color:var(--upred);color:#fff;box-shadow:0 6px 18px rgba(192,57,43,.22)}
.btn-red:hover{background:var(--upred-dark);border-color:var(--upred-dark)}
.accent-red{color:var(--upred)!important}
.red-bar{border-left:4px solid var(--upred)}
.badge-red{background:var(--upred);color:#fff;font-size:10px;padding:3px 8px;border-radius:99px;font-weight:800}
.badge-requested{background:var(--upred);color:#fff}
.badge-confirmed{background:var(--upgreen);color:#fff}
.alert-red{background:#fef2f1;border:1px solid #f5d0cc;border-left:4px solid var(--upred);color:#8b2c1f;border-radius:8px;padding:14px 18px}
.link-red{color:var(--upred);font-weight:700}
.link-red:hover{color:var(--upred-dark)}
.input-focus-red:focus{border-color:var(--upred);box-shadow:0 0 0 3px rgba(192,57,43,.12)}

/* ---------- Typography ---------- */
.eyebrow{color:var(--upgreen);font-weight:800;letter-spacing:.14em}
.accent-eyebrow{color:var(--upred);font-weight:800;letter-spacing:.14em}
h1,h2,h3,h4{color:var(--upink)}

/* ---------- Inputs ---------- */
input,select,textarea{
    border:1px solid #d6dcda;
    border-radius:10px;
    background:#fff;
    padding:12px 13px;
    font:14px 'DM Sans',sans-serif;
    color:var(--upink);
}
input:focus,select:focus,textarea:focus{
    outline:none;
    border-color:var(--upgreen);
    box-shadow:0 0 0 3px rgba(11,102,35,.12);
}

/* ---------- Home hero (mockup: dark green, centered, search) ---------- */
.hero-market{
    background:linear-gradient(135deg,var(--upforest) 0%,var(--upforest-deep) 100%) !important;
    min-height:auto;
    padding:84px 30px 96px;
    grid-template-columns:1fr;
    text-align:center;
    display:block;
    border-radius:18px;
    max-width:1160px;
    margin:0 auto;
}
.hero-market .hero-text{max-width:760px;margin:0 auto}
.hero-market h1{
    color:#fff !important;
    font:800 clamp(38px,4.6vw,58px)/1.08 Manrope,sans-serif;
    letter-spacing:-2.5px;
    margin:0 0 14px;
}
.hero-market h1 em{color:#ffd36b;font-style:normal}
.hero-lede{color:#cfe0d6 !important;margin:18px auto 34px;font-size:17px;max-width:560px}
.hero-buttons{display:flex;justify-content:center;gap:12px}
.hero-buttons .btn{background:#fff;color:var(--upgreen-dark);border:none;box-shadow:none}
.hero-buttons .btn-quiet{background:transparent;color:#fff;border:1.5px solid #7fa98f}

/* Search bar inside the hero */
.hero-search{
    max-width:620px;
    margin:0 auto 26px;
    display:flex;
    background:#fff;
    border-radius:999px;
    padding:6px;
    box-shadow:0 18px 40px rgba(0,0,0,.25);
}
.hero-search input{
    flex:1;
    border:0;
    background:transparent;
    border-radius:999px;
    font-size:15px;
    padding:12px 18px;
}
.hero-search input:focus{box-shadow:none}
.hero-search button{
    background:var(--upgreen);
    border:0;
    border-radius:999px;
    color:#fff;
    font-size:18px;
    width:46px;
    cursor:pointer;
    display:grid;
    place-items:center;
}
.hero-search button:hover{background:var(--upgreen-dark)}

/* Proof line under hero */
.proof{justify-content:center;color:#d8e6de}
.proof p{color:#cfe0d6 !important}

/* ---------- Logo strip ---------- */
.logo-strip{
    background:#fff;
    border-bottom:1px solid var(--upline);
    margin-top:70px;
}
.logo-strip p{color:#8a9a93}

/* ---------- Sections / cards ---------- */
.section{max-width:1160px;padding:90px 30px}
.section-head h2{font-size:44px;letter-spacing:-2px}
.flow-grid article,.subject-cards a{
    background:#fff;
    border:1px solid var(--upline);
    border-radius:16px;
    box-shadow:0 10px 26px rgba(18,59,53,.05);
}
.flow-grid article{min-height:230px}
.flow-icon{border-radius:12px}
.text-arrow{color:var(--upgreen);font-weight:800}

/* "1:1" family guide block: brighter green instead of the old peach */
.guide-art.family-art{background:#a9e3b8}

/* How-it-works two-card block (mockup) */
.how-cards{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
    margin-top:44px;
}
.how-card{
    border-radius:18px;
    padding:38px 34px;
    min-height:280px;
    display:flex;
    flex-direction:column;
}
.how-card.parent{
    background:linear-gradient(140deg,var(--upforest),var(--upforest-deep));
    color:#fff;
}
.how-card.tutor{
    background:#fff;
    border:1px solid var(--upline);
    box-shadow:0 10px 26px rgba(18,59,53,.05);
}
.how-card .how-icon{
    width:52px;height:52px;border-radius:14px;
    display:grid;place-items:center;font-size:24px;
    margin-bottom:22px;
}
.how-card.parent .how-icon{background:rgba(255,255,255,.16);color:#fff}
.how-card.tutor .how-icon{background:#e8f2ea;color:var(--upgreen)}
.how-card h3{font:800 24px Manrope;margin:0 0 10px;letter-spacing:-.6px}
.how-card.parent h3{color:#fff}
.how-card p{margin:0 0 24px;line-height:1.6;font-size:14.5px}
.how-card.parent p{color:#d6e6dd}
.how-card.tutor p{color:var(--upmuted)}
.how-card a{
    margin-top:auto;
    font-weight:800;font-size:13.5px;
    display:inline-flex;align-items:center;gap:8px;
}
.how-card.parent a{color:#ffd36b}
.how-card.tutor a{color:var(--upred)}
.how-card.tutor{border-top:3px solid var(--upred)}
.how-card.tutor .how-icon{background:#fef2f1;color:var(--upred)}

/* Match band / CTA */
.match-band{background:var(--upink);border-radius:18px;max-width:1160px;margin:0 auto;padding:60px max(30px,calc((100vw - 1100px)/2));display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.match-band h2{font-size:40px;letter-spacing:-2px;color:#fff}
.match-band .eyebrow{color:#b9d5ca}
.match-band>p:not(.eyebrow),.match-band div>p{color:#bdcec8;max-width:480px;line-height:1.6;margin:16px 0 24px}
.match-features{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.match-feature{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:20px 18px}
.match-feature h4{font:700 14px Manrope;margin:0 0 8px;color:#fff;white-space:nowrap}
.match-feature p{font-size:12px;color:#a7c1b8;margin:0;line-height:1.5}
.orb.one{background:#2d7668}
.testimonial-market{background:#f4f8f5;border-radius:18px;max-width:1160px;margin:0 auto}
.testimonial-market blockquote{color:var(--upink)}
.cta-market{background:#fff;padding:90px 30px}

/* ---------- Auth pages (login / signup) ---------- */
.auth-page{
    min-height:calc(100vh - 120px);
    padding:30px 20px 70px;
}
.form-card{
    background:#fff;
    border:1px solid var(--upline);
    border-radius:16px;
    box-shadow:0 14px 40px rgba(18,59,53,.07);
    padding:40px 38px;
    max-width:520px;
}
.form-card h2{font-size:30px;letter-spacing:-1px}
.form-card h2 .accent-red{font-style:italic}
.form-card .btn{width:100%;border-radius:999px;padding:14px 20px}
.form-card .btn-red{background:var(--upred);border-color:var(--upred);box-shadow:0 6px 18px rgba(192,57,43,.22)}
.form-card .btn-red:hover{background:var(--upred-dark);border-color:var(--upred-dark)}
.form-foot a{color:var(--upred);font-weight:800}
.form-card a{color:var(--upgreen)}
.auth-divider{display:flex;align-items:center;gap:14px;margin:22px 0;font-size:13px;color:var(--upmuted)}
.auth-divider::before,.auth-divider::after{content:'';flex:1;height:1px;background:var(--upline)}
.auth-page .form-card{border-top:4px solid var(--upred)}

/* Two-column field rows */
.two-col-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}

/* Signup section blocks (mockup: PARENT SIGN IN/UP structure) */
.form-section{
    margin-top:26px;
    padding-top:22px;
    border-top:1px solid var(--upline);
}
.form-section>h3{
    font:800 12px Manrope;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:var(--upgreen);
    margin:0 0 16px;
}
.checkbox-row{
    list-style:none;padding:0;margin:6px 0 0;
    display:flex;gap:12px;flex-wrap:wrap;
}
.checkbox-row li{display:inline-flex}
.checkbox-row label{
    display:inline-flex;align-items:center;gap:8px;
    margin:0;padding:10px 16px;
    border:1px solid #d6dcda;border-radius:999px;
    font-size:13px;font-weight:700;color:var(--upink);
    cursor:pointer;background:#fff;
}
.checkbox-row label:hover{border-color:var(--upgreen)}
.checkbox-row label:has(input:checked){
    background:#eef5ef;border-color:var(--upgreen);color:var(--upgreen-dark);
}
.checkbox-row input[type=checkbox]{width:auto;margin:0}

/* ---------- Join page role cards: capsule bubbles to match the header ---------- */
.join-page .role-grid>a{
    background:#eef5ef !important;
    border:1.5px solid #dcebe1 !important;
    border-radius:999px;
    padding:38px 30px;
    min-height:230px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    transition:background .15s,border-color .15s,transform .15s;
}
.join-page .role-grid>a:hover{
    background:#e2efe5 !important;
    border-color:var(--upgreen) !important;
    transform:translateY(-2px);
}
.join-page .role-grid h3{color:var(--upgreen-dark)}
.join-page .role-grid p{color:var(--upmuted);max-width:250px;margin-bottom:0}
.join-page .role-grid b{color:var(--upgreen);font-size:13px;padding-top:16px}
.join-page .role-icon{background:#d9eadf !important;color:var(--upgreen) !important}
.join-page .role-icon.peach{background:#d9eadf !important}
.join-page .role-icon.mint{background:#cbe7d5 !important}

/* ---------- Parent & tutor dashboards: white shell ---------- */
.family-page,.tutor-workspace,.find-tutor-shell{
    background:#fff !important;
    border-radius:18px;
    box-shadow:0 14px 40px rgba(18,59,53,.08);
}
.family-content,.workspace-inner{background:#f6f8f6 !important}
.family-sidebar{
    background:#fff;
    border-right:1px solid var(--upline);
    color:var(--upink);
    transition:width .25s ease, padding .25s ease;
}.sidebar-toggle{
    display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;border:1px solid var(--upline);background:#fff;cursor:pointer;font-size:14px;color:var(--upink);margin:0 0 10px auto;margin-right:-20px;flex:0 0 auto;position:relative;z-index:2;transition:background .15s
}
.sidebar-toggle:hover{background:var(--upgreen);color:#fff}
.family-page.sidebar-collapsed{
    grid-template-columns:60px 1fr !important;
}
.family-sidebar.collapsed{
    width:60px;min-width:60px;padding:12px 6px !important;align-items:center;
}
.family-sidebar.collapsed .side-label,
.family-sidebar.collapsed .nav-user strong,
.family-sidebar.collapsed .nav-user small{display:none}
.family-sidebar.collapsed > a:not(.side-brand):not(.sidebar-toggle){justify-content:center;padding:10px;width:40px;height:40px;overflow:hidden;text-indent:-999px;position:relative}
.family-sidebar.collapsed > a:not(.side-brand):not(.sidebar-toggle)::before{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-indent:0;font-size:18px}
.family-sidebar.collapsed > a:nth-child(3):not(.side-brand)::before{content:'▦'}
.family-sidebar.collapsed > a:nth-child(4):not(.side-brand)::before{content:'⌕'}
.family-sidebar.collapsed > a:nth-child(5):not(.side-brand)::before{content:'◫'}
.family-sidebar.collapsed > a:nth-child(6):not(.side-brand)::before{content:'◔'}
.family-sidebar.collapsed > a:nth-child(7):not(.side-brand)::before{content:'⌁'}
.family-sidebar.collapsed > a:nth-child(8):not(.side-brand)::before{content:'📋'}
.family-sidebar.collapsed > a:nth-child(9):not(.side-brand)::before{content:'◈'}
.family-sidebar.collapsed .side-brand{font-size:0;justify-content:center}
.family-sidebar.collapsed .side-brand .brand-mark{width:34px;height:34px}
.family-sidebar.collapsed .nav-user{justify-content:center;padding:8px 0}
.family-sidebar.collapsed .nav-user>span{margin:0}
.family-sidebar.collapsed .theme-toggle{margin:10px auto 0}
.family-sidebar.collapsed .sidebar-toggle{margin:0 auto 6px}
.family-sidebar .side-brand{color:var(--upgreen-dark)!important;font-size:20px!important;font-weight:800!important;letter-spacing:-0.5px!important;gap:6px!important}
.family-sidebar .side-brand .brand-dot{color:var(--upred)!important}
.family-sidebar>a:not(.side-brand):not(.sidebar-toggle){color:#4c6259;border-radius:10px;font-weight:700}
.family-sidebar>a:not(.side-brand):hover,.family-sidebar>a.active{
    background:var(--upgreen);color:#fff;
}
.side-label,.nav-user small{color:#8a9a93}
.nav-user{border-top-color:var(--upline)}
.nav-user>span{background:var(--upgreen);color:#fff}

/* Dashboard cards */
.dashboard-child-card,.full-child-card,.profile-card,.workspace-card,
.dash-grid>section,.quick-action-list,.tutor-stats>div,.find-filter-card,
.directory-tutor-card{
    border-radius:14px;
    border:1px solid var(--upline);
    box-shadow:0 8px 22px rgba(18,59,53,.05);
}
.dashboard-child-card{background:#fff;display:flex;flex-direction:column}
.dashboard-child-card .child-card-actions{
    margin-top:auto;
    padding-top:14px;
}
.dashboard-child-grid{gap:15px}
.child-summary{margin-bottom:0}
.recommend-card{
    border-radius:14px;
    border:1px solid var(--upline);
    box-shadow:0 8px 22px rgba(18,59,53,.05);
    display:flex;
    flex-direction:column;
}
.recommend-card .btn{margin-top:auto}
.card-heading h2,.workspace-card h2,.dashboard-child-top h3{letter-spacing:-.4px}
.card-heading a{color:var(--upgreen);font-weight:800}
.icon-arrow{color:var(--upgreen)}
.large-child-avatar,.session-avatar,.job-row-icon,.quick-action-list a>span{background:#e8f2ea;color:var(--upgreen-dark)}
.child-card>span,.request-card>a,.outline-btn,.back-link{color:var(--upgreen-dark)}

/* Stat pills / status */
.status-confirmed,.status-completed{background:#e8f5ec;color:var(--upgreen-dark)}
.status-requested{background:var(--upred);color:#fff}
.status-cancelled{background:#fae9e7;color:var(--upred)}
.status-pill{font-weight:800;border-radius:999px;font-size:10px;padding:4px 10px}
.next-session{border-radius:14px;border-left:4px solid var(--upred)}
.next-session .status-pill{background:var(--upred);color:#fff}
.unread-badge{background:var(--upred);color:#fff;border-radius:99px;padding:2px 7px;font-size:10px;font-weight:800}
.request-row{border-left:3px solid var(--upred);padding-left:14px}
.earnings-big{color:var(--upred)}
.card-heading a{color:var(--upred)}
.card-heading a:hover{text-decoration:underline}
.page-heading-row .btn{background:var(--upgreen)}
.page-heading-row .btn:hover{background:var(--upgreen-dark)}
.section-heading-row .outline-btn{color:var(--upred);border-color:var(--upred)}
.section-heading-row .outline-btn:hover{background:#fef2f1}
.workspace-card h2{color:var(--upink)}

/* Tutor welcome banner */
.tutor-welcome-id{display:flex;align-items:center;gap:18px}
.tutor-avatar-lg{
    width:64px;height:64px;border-radius:50%;
    background:var(--upgreen);color:#fff;
    display:grid;place-items:center;
    font:800 22px Manrope;flex:0 0 auto;
}.tutor-welcome h1{margin-top:2px}

/* Fix stretched tutor avatars in session/message snippets */
.message-snippet .tutor-avatar{width:52px;height:52px;border-radius:50%;flex:0 0 auto;display:grid;place-items:center;font:800 18px Manrope}



/* Tutor workspace */
.tutor-topbar{
    background:#fff;
    border-bottom:1px solid var(--upline);
    border-radius:18px 18px 0 0;
}
.tutor-brand{position:absolute;left:50%;transform:translateX(-50%);z-index:5}
.tutor-topbar nav a.active,.tutor-topbar nav a:hover{color:var(--upgreen)}
.tutor-logout{background:var(--upred);border-radius:999px;padding:9px 18px}
.tutor-logout:hover{background:var(--upred-dark)}
.tutor-brand .brand-mark{background:transparent !important}
.earnings-big{color:var(--upgreen)}
.verification-chip,.badge-verified,.tag-verified{color:var(--upgreen-dark)}
.btn-small{border-radius:999px}

/* ---------- Footer ---------- */
.footer{background:var(--upforest-deep);border-top:3px solid var(--upred)}
.footer a{color:#b8d2c7}
.footer a:hover{color:#fff}
.footer strong{color:#fff}
.footer .link-red{color:var(--upred)}
.copyright{background:#0a3a2c;border-top:1px solid rgba(255,255,255,.08)}
.copyright a{color:var(--upred)}

/* ---------- Messages page: clean workspace-style chat ---------- */
body:has(.messages-page) .topbar,
body:has(.messages-page) .footer,
body:has(.messages-page) .copyright{display:none !important}
.messages-page{
    max-width:1100px;
    margin:34px auto 60px;
    background:#fff;
    border:1px solid var(--upline);
    border-radius:18px;
    box-shadow:0 14px 40px rgba(18,59,53,.08);
    overflow:hidden;
    display:block;
}
.messages-topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#fff;
    border-bottom:1px solid var(--upline);
    padding:14px 22px;
    gap:14px;
}
.messages-topbar-left{display:flex;align-items:center;gap:16px}
.messages-topbar .tutor-brand .brand-mark{background:transparent !important}
.messages-topbar .back-link{
    color:var(--upgreen-dark);
    border:1.5px solid var(--upgreen);
    border-radius:999px;
    padding:9px 18px;
    font-size:13px;
    font-weight:800;
    display:inline-flex;
    align-items:center;
}
.messages-topbar .back-link:hover{background:#eef5ef}
.messages-topbar form{margin:0}
.messages-topbar .tutor-logout{
    border:0;
    background:var(--upgreen);
    color:#fff;
    border-radius:999px;
    padding:10px 20px;
    font-weight:800;
    font-size:13px;
    cursor:pointer;
}
.messages-topbar .tutor-logout:hover{background:var(--upgreen-dark)}
.messages-shell{
    display:grid;
    grid-template-columns:300px 1fr;
    min-height:640px;
}
.conversations{border-right:1px solid var(--upline)}
.conversation-row{display:flex;align-items:center;gap:2px}
.conversation-row .conversation{flex:1;border-radius:10px;min-width:0}
.conversation-row.active .conversation{background:#eef5ef}
.conversation-row:hover .conversation{background:#f4f8f5}
.unread-badge{
    background:var(--upred);
    color:#fff;
    border-radius:999px;
    min-width:20px;
    height:20px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:800;
    padding:0 6px;
    margin-left:auto;
}
.archive-btn{
    border:0;
    background:transparent;
    color:#9aaba4;
    font-size:14px;
    cursor:pointer;
    padding:8px 6px;
    border-radius:8px;
    opacity:0;
    transition:opacity .15s,background .15s;
}
.conversation-row:hover .archive-btn{opacity:1}
.archive-btn:hover{background:#fbe9e7;color:#c0392b}
.chat{background:#fff}
.chat header{border-bottom:1px solid var(--upline)}
.bubble{border-radius:14px}
.incoming{background:#eef5ef}
.outgoing{background:#d9eadf}
.composer{border-top:1px solid var(--upline)}
.composer button{
    background:var(--upgreen);
    color:#fff;
    border:0;
    border-radius:999px;
    padding:0 18px;
    font-weight:800;
    cursor:pointer;
}
.composer button:hover{background:var(--upgreen-dark)}

/* ---------- Matching quiz: form + results ---------- */
.quiz-card{max-width:560px;border-top:4px solid var(--upred)}
.quiz-card h2 em{color:var(--upred);font-style:normal}
.quiz-card .btn{margin-top:24px}
.quiz-results{
    max-width:1100px;
    margin:34px auto 70px;
    padding:0 26px;
}
.quiz-results-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:8px;
}
.quiz-results-head h1{font-size:42px;letter-spacing:-2px;margin:4px 0 8px}
.quiz-results-head h1 em{color:var(--upgreen);font-style:normal}
.quiz-results-head p:not(.eyebrow){color:var(--upmuted);max-width:560px;line-height:1.6}
.quiz-results-head .outline-btn{flex:0 0 auto}
.quiz-results .tutor-card-grid{margin-top:26px}
.quiz-results .match-score{font-size:10px;background:#e8f6e6;color:var(--upgreen-dark)}
.quiz-results-foot{margin-top:26px}

/* ---------- Job feed & sessions: card polish ---------- */
.session-main{min-width:0}
.job-card,
.session-card{
    border-radius:14px;
    border:1px solid var(--upline);
    box-shadow:0 8px 22px rgba(18,59,53,.05);
}
.job-card{display:flex;flex-direction:column}
.job-card .btn{margin-top:auto;align-self:flex-start}
.job-card>p{line-height:1.55;margin:8px 0 0}
.job-meta{font-size:10px;align-items:center}
.session-card{
    align-items:center;
    gap:14px;
    padding:18px 20px;
}
.session-actions{flex-wrap:wrap;justify-content:flex-end}

/* ---------- Responsive header (no dropdown menu) ---------- */
@media(max-width:900px){
    .how-cards{grid-template-columns:1fr}
    .family-sidebar{background:#fff}
    .topbar nav,
    .nav-actions .login{display:none !important}
}

/* Two-column dashboard layout that stacks on small screens */
.dash-cols{
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(280px,.8fr);
    gap:17px;
    align-items:start;
}
@media(max-width:950px){.dash-cols{grid-template-columns:1fr}}

/* ---------- Responsive ---------- */
@media(max-width:900px){
    .topbar{max-width:calc(100% - 20px)}
}
@media(max-width:760px){
    .hero-market{padding:52px 20px 64px}
    .hero-market h1{font-size:36px;letter-spacing:-1.8px}
    .hero-search input{font-size:14px;padding:11px 14px}
    .topbar{padding:10px 12px}
    .two-col-fields{grid-template-columns:1fr}
    .form-card{padding:26px 20px}
    .section{padding:60px 20px}
    .section-head h2{font-size:34px}
    .how-card{padding:30px 24px;min-height:auto}
}
@media(max-width:480px){
    .hero-market h1{font-size:30px}
    .hero-lede{font-size:15px}
    .hero-search button{width:42px}
    .dash-grid,
    .tutor-dashboard-grid{grid-template-columns:1fr}
}

/* ---------- Workspace pages: never squish at medium/narrow widths ---------- */
@media(max-width:900px){
    .tutor-topbar{flex-wrap:wrap;height:auto;padding:12px 18px;row-gap:10px}
    .tutor-welcome,
    .workspace-heading{flex-wrap:wrap;align-items:flex-start;row-gap:10px}
    .session-card{flex-wrap:wrap}
    .session-actions{width:100%;justify-content:flex-start}
}
@media(max-width:780px){
    .messages-shell{grid-template-columns:1fr;min-height:auto}
    .messages-shell .conversations{border-right:0;border-bottom:1px solid var(--upline);max-height:280px;overflow-y:auto}
}

/* ---------- Find-a-tutor page red accents ---------- */
.find-tutor-topbar{border-bottom:3px solid var(--upred)}
.find-action-btn{background:var(--upred)!important;color:#fff!important}
.find-action-btn:hover{background:var(--upred-dark)!important}
.find-filter-card{border-top:4px solid var(--upred)}
.find-filter-card .btn{background:var(--upred);border-color:var(--upred)}
.find-filter-card .btn:hover{background:var(--upred-dark);border-color:var(--upred-dark)}
.find-hero h1 em{color:var(--upred)!important}
.directory-tutor-card{border-left:3px solid transparent;transition:border-color .2s}
.directory-tutor-card:hover{border-left-color:var(--upred)}
.directory-tutor-card .btn{background:var(--upgreen)}
.directory-tutor-card .btn:hover{background:var(--upred);border-color:var(--upred)}

/* ---------- Tutor topbar red accents ---------- */
.tutor-topbar{border-bottom:3px solid var(--upred)}
.tutor-topbar nav a{position:relative}
.tutor-topbar nav a.active::after{content:'';position:absolute;bottom:-2px;left:0;right:0;height:3px;background:var(--upred);border-radius:3px 3px 0 0}
.tutor-pill{background:var(--upred);color:#fff;border-radius:999px}

/* ---------- Messages red accents ---------- */
.messages-topbar{border-bottom:3px solid var(--upred)}
.messages-topbar .tutor-logout{background:var(--upred)}
.messages-topbar .tutor-logout:hover{background:var(--upred-dark)}
.message-send-btn{background:var(--upred)}
.message-send-btn:hover{background:var(--upred-dark)}

/* ---------- Parent dashboard red accents ---------- */
.family-sidebar{border-right:3px solid var(--upred)}
.family-sidebar>a.active{background:var(--upred);color:#fff}
.family-sidebar>a:hover{background:var(--upred);color:#fff}
.next-session{background:#fef2f1;border-left:4px solid var(--upred)}
.next-session .status-pill{background:var(--upred);color:#fff}

/* ---------- Student portal red accents ---------- */
.student-portal .portal-tab.active{border-bottom:3px solid var(--upred);color:var(--upred)}
.metric-card{border-left:3px solid var(--upred)}

/* ---------- Enquiry form red accent ---------- */
.enquiry-form .btn{background:var(--upred);border-color:var(--upred)}
.enquiry-form .btn:hover{background:var(--upred-dark);border-color:var(--upred-dark)}

/* ---------- Profile page red accents ---------- */
.profile-hero{border-left:4px solid var(--upred)}
.profile-alert{border-left:4px solid var(--upred)}
.profile-alert span{color:var(--upred)}

/* ---------- Job feed red accents ---------- */
.match-score{background:var(--upred);color:#fff;padding:4px 10px;border-radius:99px;font-size:11px}
.job-card{border-top:3px solid var(--upred)}
.job-card:hover{border-top-color:var(--upgreen)}


/* ---------- Billing cards ---------- */
.telebirr-phone-card{background:#f6f8f6;border:1px solid var(--upline);border-radius:12px;padding:20px;margin-bottom:20px}
.telebirr-steps-card{background:#e8f5ec;border:1px solid #c5e8d0;border-radius:10px;padding:16px;margin-bottom:20px}
.telebirr-steps-card li{color:var(--upgreen-dark)}
.commission-info-box{background:#f6f8f6;border:1px solid var(--upline);border-radius:10px;padding:16px;margin-top:16px}


/* =========================================================
   HOME PAGE REDESIGN — tutorhabesha.com inspired
   ========================================================= */

/* Hero pills (subject quick-filters under search) */
.hero-pills{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}
.hero-pill{
    padding:8px 18px;
    border-radius:999px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.18);
    color:#fff;
    font-size:13px;
    font-weight:700;
    transition:background .15s,border-color .15s;
}
.hero-pill:hover{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.35)}

/* Proof strip — 4 benefit cards below hero */
.proof-strip{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:0;
    background:#fff;
    border-bottom:1px solid var(--upline);
}
.proof-item{
    display:flex;
    align-items:center;
    gap:14px;
    padding:28px 30px;
    border-right:1px solid var(--upline);
}
.proof-item:last-child{border-right:none}
.proof-icon{
    width:42px;
    height:42px;
    border-radius:12px;
    background:#eef5ef;
    display:grid;
    place-items:center;
    font-size:18px;
    flex:0 0 auto;
}
.proof-item strong{display:block;font-size:13px;color:var(--upink);margin:0}
.proof-item p{display:block;font-size:11px;color:var(--upmuted);margin:2px 0 0}

/* Steps grid (4 steps: Search → Choose → Book → Learn) */
.steps-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin-top:40px;
}
.step-card{
    background:#fff;
    border:1px solid var(--upline);
    border-radius:16px;
    padding:28px 24px;
    text-align:center;
    transition:transform .2s,box-shadow .2s;
}
.step-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(18,59,53,.08);
}
.step-num{
    display:inline-grid;
    place-items:center;
    width:40px;
    height:40px;
    border-radius:50%;
    background:var(--upgreen);
    color:#fff;
    font:800 16px Manrope;
    margin-bottom:16px;
}
.step-card h3{font:800 18px Manrope;margin:0 0 8px;color:var(--upink)}
.step-card p{font-size:13px;color:var(--upmuted);margin:0;line-height:1.5}

/* Sections */
.subjects-section{padding-top:80px}
.how-section{padding-top:60px;padding-bottom:40px}

@media(max-width:900px){
    .proof-strip{grid-template-columns:1fr 1fr}
    .steps-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
    .proof-strip{grid-template-columns:1fr}
    .proof-item{border-right:none;border-bottom:1px solid var(--upline);padding:20px 24px}
    .proof-item:last-child{border-bottom:none}
    .steps-grid{grid-template-columns:1fr}
    .hero-pills{justify-content:center}
}

/* Hero pill label — dark-mode friendly */
.hero-pill-label{
    display:inline-block;
    padding:10px 20px;
    background:rgba(255,255,255,.15) !important;
    border:1px solid rgba(255,255,255,.2);
    color:#fff !important;
    border-radius:999px;
    font-size:11px;
    letter-spacing:.14em;
    font-weight:800;
}

/* =========================================================
   TUTORHABESHA-INSPIRED CLEAN HERO
   ========================================================= */

/* Clean hero — white bg, centered, floating orbs */
.hero-clean{
    position:relative;
    background:#fff;
    padding:100px 30px 80px;
    text-align:center;
    overflow:hidden;
    min-height:600px;
}
.hero-clean-inner{position:relative;z-index:2;max-width:900px;margin:0 auto}

/* Rotating word */
.hero-heading{
    font:800 clamp(42px,5.5vw,72px)/1.05 Manrope,sans-serif;
    letter-spacing:-3px;
    color:var(--upink);
    margin:0 0 30px;
}
.rotating-word{
    display:inline-block;
    position:relative;
    color:var(--upgreen);
    min-width:200px;
    text-align:left;
}
.rotating-word .word{
    position:absolute;
    left:0;
    opacity:0;
    transform:translateY(20px);
    transition:opacity .4s,transform .4s;
}
.rotating-word .word.active{
    opacity:1;
    transform:translateY(0);
}

/* Search bar */
.hero-search-clean{
    display:flex;
    align-items:center;
    background:#fff;
    border:1.5px solid #e0e8e4;
    border-radius:999px;
    padding:6px;
    max-width:680px;
    margin:0 auto 24px;
    box-shadow:0 8px 30px rgba(18,59,53,.08);
}
.search-field{
    display:flex;
    align-items:center;
    gap:10px;
    flex:1;
    padding:14px 20px;
}
.search-field input{
    border:0;
    background:transparent;
    font:15px 'DM Sans',sans-serif;
    color:var(--upink);
    width:100%;
    outline:none;
}
.search-field input::placeholder{color:#9ab0a8}
.search-icon{font-size:16px;flex:0 0 auto}
.search-divider{width:1px;height:28px;background:#e0e8e4;flex:0 0 auto}
.search-btn{
    background:var(--upred);
    color:#fff;
    border:0;
    border-radius:999px;
    padding:16px 32px;
    font:700 15px 'DM Sans',sans-serif;
    cursor:pointer;
    flex:0 0 auto;
    transition:background .15s;
}
.search-btn:hover{background:var(--upred-dark)}

/* Subject pills */
.subject-pills{
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:12px;
}
.subject-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:10px 18px;
    border:1.5px solid #e0e8e4;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    color:var(--upink);
    background:#fff;
    transition:all .15s;
}
.subject-pill:hover{
    border-color:var(--upgreen);
    background:#eef5ef;
    color:var(--upgreen-dark);
}

/* Trust badges */
.trust-badges{
    display:flex;
    justify-content:center;
    gap:24px;
    flex-wrap:wrap;
    margin-top:28px;
}
.trust-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:13px;
    color:var(--upmuted);
    font-weight:600;
}
.trust-icon{
    width:22px;
    height:22px;
    border-radius:50%;
    display:inline-grid;
    place-items:center;
    font-size:11px;
    color:#fff;
    font-weight:800;
}
.trust-icon.green{background:#22a66a}
.trust-icon.orange{background:#e8923a}
.trust-icon.blue{background:#4a90d9}
.trust-icon.red{background:var(--upred)}

/* Floating orbs */
.orb{
    position:absolute;
    border-radius:50%;
    filter:blur(60px);
    opacity:.35;
    pointer-events:none;
}
.orb-1{
    width:400px;height:400px;
    background:linear-gradient(135deg,#b6e5c9,#6bc98a);
    top:-100px;left:-80px;
    animation:float1 8s ease-in-out infinite;
}
.orb-2{
    width:300px;height:300px;
    background:linear-gradient(135deg,#f5c9a8,#e88a5c);
    top:50px;right:-60px;
    animation:float2 10s ease-in-out infinite;
}
.orb-3{
    width:200px;height:200px;
    background:linear-gradient(135deg,#a8d8ea,#6bb5d9);
    bottom:40px;left:15%;
    animation:float3 7s ease-in-out infinite;
}
.orb-4{
    width:250px;height:250px;
    background:linear-gradient(135deg,#d4b8e8,#9b72cf);
    bottom:-50px;right:20%;
    animation:float1 9s ease-in-out infinite reverse;
}
@keyframes float1{
    0%,100%{transform:translate(0,0)}
    50%{transform:translate(30px,-20px)}
}
@keyframes float2{
    0%,100%{transform:translate(0,0)}
    50%{transform:translate(-25px,25px)}
}
@keyframes float3{
    0%,100%{transform:translate(0,0)}
    50%{transform:translate(20px,-30px)}
}

/* Featured section */
.featured-section{padding-top:60px;padding-bottom:40px}

/* How it works clean */
.how-section-clean{padding-top:40px;padding-bottom:20px}

@media(max-width:760px){
    .hero-clean{padding:60px 20px 50px}
    .hero-search-clean{flex-direction:column;border-radius:16px;gap:0}
    .search-divider{width:100%;height:1px}
    .search-btn{width:100%;border-radius:12px;margin-top:4px}
    .rotating-word{min-width:150px}
    .trust-badges{gap:12px}
    .orb-1{width:200px;height:200px}
    .orb-2{width:150px;height:150px}
    .orb-3,.orb-4{display:none}
}

/* =========================================================
   BOTANICAL GREEN HERO — leaf/nature theme
   ========================================================= */

.hero-botanical{
    position:relative;
    background:linear-gradient(160deg,#7cb87a 0%,#5a9e58 30%,#3d8a3b 60%,#2d7a2b 100%);
    padding:80px 30px 70px;
    text-align:center;
    overflow:hidden;
    min-height:520px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.hero-botanical-inner{position:relative;z-index:3;max-width:700px;margin:0 auto}
.hero-botanical h1{
    font:800 clamp(36px,5vw,56px)/1.08 Manrope,sans-serif;
    letter-spacing:-2.5px;
    color:#fff;
    margin:0 0 18px;
}
.hero-botanical h1 em{color:#ff8a65;font-style:normal}
.hero-botanical .hero-sub{
    color:rgba(255,255,255,.88);
    font-size:16px;
    line-height:1.6;
    max-width:520px;
    margin:0 auto 28px;
}

/* Leaf decorations */
.hero-leaf{
    position:absolute;
    z-index:1;
    pointer-events:none;
    opacity:.55;
    height:100%;
    max-height:500px;
    width:auto;
}
.hero-leaf-left{left:-20px;top:0}
.hero-leaf-right{right:-20px;top:0;transform:scaleX(-1)}

/* Search bar */
.hero-search-botanical{
    display:flex;
    align-items:center;
    background:#fff;
    border-radius:999px;
    padding:6px;
    max-width:560px;
    margin:0 auto 24px;
    box-shadow:0 12px 35px rgba(0,0,0,.18);
}
.hero-search-botanical input{
    flex:1;
    border:0;
    background:transparent;
    padding:16px 22px;
    font:15px 'DM Sans',sans-serif;
    color:#2d5a45;
    outline:none;
}
.hero-search-botanical input::placeholder{color:#8aaa9c}
.hero-search-botanical button{
    background:var(--upgreen);
    border:0;
    border-radius:50%;
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    font-size:18px;
    cursor:pointer;
    flex:0 0 auto;
    transition:background .15s;
}
.hero-search-botanical button:hover{background:var(--upgreen-dark)}

/* Social proof */
.hero-social-proof{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    color:#fff;
    font-size:14px;
}
.hero-social-proof strong{color:#fff}
.hero-social-proof p{color:rgba(255,255,255,.85);margin:0}
.hero-avatars{display:flex}
.hero-avatar{
    width:34px;
    height:34px;
    border-radius:50%;
    display:inline-grid;
    place-items:center;
    font:700 11px Manrope;
    color:#fff;
    border:2px solid #5a9e58;
    margin-left:-8px;
}
.hero-avatar:first-child{margin-left:0}

/* Trust strip */
.trust-strip{
    display:flex;
    justify-content:center;
    gap:28px;
    flex-wrap:wrap;
    padding:22px 20px;
    background:#fff;
    border-bottom:1px solid var(--upline);
    font-size:13px;
    font-weight:600;
    color:var(--upmuted);
}
.trust-item{display:flex;align-items:center;gap:8px}
.trust-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    display:inline-block;
}
.trust-dot.green{background:#22a66a}
.trust-dot.orange{background:#e8923a}
.trust-dot.blue{background:#4a90d9}
.trust-dot.red{background:var(--upred)}

.featured-section{padding-top:60px;padding-bottom:40px}
.how-section{padding-top:40px;padding-bottom:20px}

@media(max-width:760px){
    .hero-botanical{padding:50px 20px 45px}
    .hero-leaf{opacity:.3;height:70%}
    .hero-search-botanical{max-width:100%}
    .trust-strip{gap:14px;font-size:12px}
    .hero-social-proof{flex-direction:column;gap:8px}
}

/* Hero CTA row */
.hero-cta-row{display:flex;gap:12px;margin-top:20px;justify-content:center;flex-wrap:wrap}
.btn-hero-cta{background:#fff!important;color:#0d5a48!important;border:2px solid #fff;padding:14px 32px;border-radius:999px;font:700 16px Manrope,sans-serif;letter-spacing:-.3px;box-shadow:0 8px 24px rgba(0,0,0,.18);transition:all .2s}
.btn-hero-cta:hover{background:#f0f6f3!important;transform:translateY(-2px);box-shadow:0 12px 32px rgba(0,0,0,.22)}
.btn-hero-cta-secondary{background:transparent!important;color:#fff!important;border:2px solid rgba(255,255,255,.4);padding:14px 28px;border-radius:999px;font:700 15px Manrope,sans-serif;transition:all .2s}
.btn-hero-cta-secondary:hover{border-color:#fff;background:rgba(255,255,255,.1)!important}

/* =========================================================
   NEW DESIGN SYSTEM — matching reference React app
   ========================================================= */

/* Surface card: white card with hover lift */
.surface-card {
    background: var(--card-white, #fff);
    border: 1px solid var(--upline);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.surface-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

/* Hero surface: green gradient */
.hero-surface {
    background: linear-gradient(150deg, #0d5c2f 0%, #0b6623 55%, #1a7a3a 100%);
}

/* Warm surface: soft warm gradient */
.warm-surface {
    background: linear-gradient(120deg, #faf8f3, #f5efe6);
}

/* Eyebrow: uppercase, small, wide tracking */
.eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--upgreen);
}

/* Dashboard stat cards - clean white with subtle border */
.stat-card {
    background: #fff;
    border: 1px solid var(--upline);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

/* Section heading with eyebrow pattern */
.section-heading-clean {
    margin-bottom: 20px;
}
.section-heading-clean h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -.5px;
    margin: 4px 0;
}
.section-heading-clean p {
    color: var(--upmuted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Clean button styles */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--upgreen);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(11,102,35,.25);
    transition: background .15s, transform .15s;
}
.btn-pill:hover {
    background: var(--upgreen-dark);
    transform: translateY(-1px);
}
.btn-pill-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--upgreen-dark);
    border: 1.5px solid var(--upline);
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn-pill-outline:hover {
    background: #f0f6f3;
    border-color: var(--upgreen);
}

/* Trust strip: 4 items in a row */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: #fff;
    border: 1px solid var(--upline);
    border-radius: 14px;
    padding: 16px;
}
.trust-strip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
}
.trust-strip-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}
.trust-strip-icon.green { background: #e8f5ec; color: var(--upgreen); }
.trust-strip-icon.orange { background: #fef0e8; color: var(--upred); }
.trust-strip-icon.blue { background: #e8f0f8; color: #2563eb; }
.trust-strip-icon.red { background: #fef2f1; color: var(--upred); }
.trust-strip-item span {
    font-size: 13px;
    font-weight: 600;
    color: var(--upink);
}

/* Steps grid: 4 columns */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.step-card {
    background: #fff;
    border: 1px solid var(--upline);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--upgreen);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 16px;
}
.step-card h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 8px;
}
.step-card p {
    color: var(--upmuted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* FAQ accordion */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--upline);
    padding: 18px 0;
}
.faq-item summary {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    color: var(--upink);
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    float: right;
    font-size: 20px;
    color: var(--upgreen);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
    margin: 12px 0 0;
    color: var(--upmuted);
    font-size: 14px;
    line-height: 1.6;
}

/* Testimonial cards */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.testimonial-card {
    background: #fff;
    border: 1px solid var(--upline);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}
.testimonial-card blockquote {
    font-size: 14px;
    line-height: 1.6;
    color: var(--upink);
    margin: 12px 0 0;
}
.testimonial-card footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--upline);
}
.testimonial-card footer strong {
    font-size: 13px;
    display: block;
}
.testimonial-card footer small {
    font-size: 11px;
    color: var(--upmuted);
}

/* Parent/Tutor cards */
.get-started-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.get-started-card {
    background: #fff;
    border: 1px solid var(--upline);
    border-radius: 14px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
}
.get-started-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 20px;
}
.get-started-card .card-icon.green { background: #e8f5ec; color: var(--upgreen); }
.get-started-card .card-icon.red { background: #fef2f1; color: var(--upred); }
.get-started-card h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 12px;
}
.get-started-card p {
    color: var(--upmuted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
}
