﻿:root{--bg:#f2f2f2;--sidebar:#d9d9d9;--surface:#fff;--soft:#f7f7f7;--ink:#101010;--muted:#666;--line:#dedede;--mint:#8de3df;--blue:#add4fb;--indigo:#8fa9f8;--gold:#ffd989;--cream:#fff2d6;--cyan:#c9f4f2;--green:#49b878;--orange:#f3b45f;--shadow:0 16px 50px rgba(0,0,0,.055)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}button{border:0;cursor:pointer;color:var(--ink)}.app-shell{min-height:100vh;display:flex;background:var(--surface);max-width:1280px;margin:0 auto}.sidebar{width:214px;background:var(--sidebar);padding:30px 24px;display:flex;flex-direction:column;gap:72px;min-height:100vh}.logo-card{width:105px;height:34px;background:#fff;display:flex;align-items:center;justify-content:center;border-radius:2px;overflow:hidden}.logo-card img{width:96px;height:auto}.main-nav{display:grid;gap:14px}.nav-btn{background:transparent;text-align:left;font-size:22px;color:#6e6e6e;padding:0;font-weight:400}.nav-btn.active,.nav-btn:hover{color:#202020;font-weight:500}.learner-card{margin-top:auto;background:#cfcfcf;border-radius:6px;padding:10px 12px;display:flex;align-items:center;gap:12px}.avatar{width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 50% 34%,#111 0 18%,transparent 19%),radial-gradient(circle at 50% 84%,#111 0 33%,transparent 34%),#a9a9a9}.learner-card strong{display:block;font-size:13px;font-weight:500}.learner-card span{display:block;font-size:10px;color:#4b4b4b;margin-top:2px}.content{flex:1;padding:42px 46px 34px;min-width:0}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:36px}.eyebrow{margin:0 0 10px;font-size:18px}.topbar h1{font-size:34px;line-height:1.1;margin:0;font-weight:500}.api-panel{display:flex;align-items:center;gap:8px;background:#f6f6f6;border-radius:8px;padding:8px;flex-wrap:wrap}.api-panel input,.api-panel select{border:1px solid var(--line);border-radius:6px;background:#fff;padding:8px 10px;min-height:36px}.api-panel input{width:170px}.api-panel select{width:150px}.small-btn,.soft-btn,.primary-btn{border-radius:6px;background:#e8e8e8;padding:9px 18px;font-weight:500}.primary-btn{background:#dedede;min-width:170px}#modeBadge{font-size:12px;color:#6a6a6a}.view{display:none}.view.active{display:block}.metric-row{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:44px;margin-bottom:30px}.metric{border-radius:6px;min-height:88px;display:flex;flex-direction:column;align-items:center;justify-content:center}.metric strong{font-size:28px;font-weight:500}.metric span{font-size:10px;margin-top:8px}.mint{background:var(--mint)}.blue{background:var(--blue)}.indigo{background:var(--indigo)}.gold{background:var(--gold)}.profile-panel,.analysis-panel,.writing-panel,.exercise-board,.plan-card{background:var(--soft);border-radius:8px;padding:18px}.panel-heading{display:flex;justify-content:space-between;gap:16px;margin-bottom:14px}.panel-heading h2{font-size:15px;margin:0;font-weight:500}.panel-heading span{font-size:12px;color:var(--muted)}.compact{align-items:center}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:44px}.soft-card{background:#fff;border-radius:6px;min-height:132px;padding:22px}.soft-card h3{font-size:12px;margin:0 0 16px;font-weight:500}.list-stack{display:grid;gap:8px}.list-stack p{margin:0;font-size:12px;line-height:1.45}.dashboard-bottom{display:grid;grid-template-columns:.8fr 1.2fr;gap:18px;margin-top:18px}.focus-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px}.focus-card span{font-size:12px;color:var(--muted)}.focus-card strong{display:block;font-size:20px;margin:8px 0}.focus-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}.text-btn{background:transparent;text-decoration:underline;padding:0}.week-plan{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.day-card{background:#fff;border:1px solid var(--line);border-radius:6px;padding:12px;min-height:86px}.day-card b{font-size:13px}.day-card p{font-size:12px;color:#555;margin:8px 0 0}.day-card small{display:block;color:#777;margin-top:6px}.writing-grid{display:grid;gap:24px}.writing-controls{display:flex;justify-content:space-between;gap:12px;margin-bottom:20px}.writing-controls select{background:#e8e8e8;border:0;border-radius:6px;padding:10px 12px}.topic-row{display:grid;grid-template-columns:1fr 170px;gap:18px;margin-bottom:18px}.topic-card{background:var(--cream);border-radius:6px;padding:16px}.topic-card span,.include-card span{display:block;font-size:12px;margin-bottom:7px}.topic-card strong{display:block;font-size:15px;line-height:1.35;font-style:italic}.topic-card small{display:block;margin-top:8px;color:#555}.include-card{background:var(--cyan);border-radius:6px;padding:16px}.include-card ul{margin:0;padding-left:18px;font-size:12px;line-height:1.45}textarea{width:100%;min-height:230px;resize:vertical;border:2px solid #222;border-radius:6px;background:#fff;padding:16px;line-height:1.55}.action-row{display:flex;justify-content:center;margin-top:12px}.score-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}.score-strip div{background:#fff;border:1px solid var(--line);border-radius:6px;padding:12px}.score-strip span{display:block;font-size:12px;color:#666}.score-strip strong{display:block;font-size:18px;margin-top:4px}.analysis-panel label{display:block;text-align:center;font-size:13px;margin:14px 0 8px}.result-box{min-height:76px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:14px;font-size:14px;line-height:1.45;white-space:pre-wrap}.orange{border-color:var(--orange)}.green{border-color:var(--green)}.table-wrap{overflow:auto;margin-top:20px}table{width:100%;border-collapse:collapse;font-size:12px}th,td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}th{color:#59697e;font-weight:700}.severity{display:inline-block;border-radius:999px;padding:3px 8px;font-size:11px;background:#eef2f7}.severity.high{background:#ffe3e3}.severity.medium{background:#fff0ce}.severity.low{background:#e5f7ed}.learning-tabs{display:grid;grid-template-columns:160px 160px;justify-content:space-between;gap:20px;margin:0 64px 34px}.tab{background:#efefef;border-radius:6px;padding:12px 18px;font-size:19px}.tab.active{background:#d7d7d7}.learning-pane{display:none}.learning-pane.active{display:block}.pane-intro{text-align:center;margin:0 0 18px;color:#666}.theme-chips{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:-1px}.theme-chip{border-radius:999px;padding:8px 14px;font-size:11px;background:#dbeafe}.theme-chip.active{outline:2px solid #222}.theme-chip:nth-child(1){background:#bff2e7}.theme-chip:nth-child(2){background:#c7ddff}.theme-chip:nth-child(3){background:#b9ccff}.theme-chip:nth-child(4){background:#ffe3a8}.exercise-board{border:1.5px solid #111;background:#fff;max-width:720px;margin:0 auto;padding:24px}.theme-context{background:#f8f8f8;border-radius:6px;padding:12px;margin-bottom:16px;font-size:13px;color:#555}.exercise-list{display:grid;gap:14px}.exercise-card{border:1px solid #eee;border-radius:8px;padding:14px}.exercise-card b{display:block;font-size:13px;margin-bottom:10px}.exercise-card label{display:block;font-size:12px;color:#555;margin:8px 0}.exercise-card input[type=text],.vocab-card input{width:100%;border:1px solid #eee;border-radius:8px;padding:10px;margin-top:8px}.center-row{display:flex;justify-content:center;margin:26px 0}.feedback{max-width:720px;margin:18px auto 0}.feedback-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px;box-shadow:var(--shadow)}.feedback-card p{font-size:13px;line-height:1.45}.vocab-list{max-width:620px;margin:0 auto;display:grid;gap:10px}.vocab-card{background:#fff;border:1px solid #e7e7e7;border-radius:12px;padding:18px}.vocab-card b{font-size:15px}.vocab-card span{display:block;color:#777;font-size:12px;margin:4px 0}.vocab-card p{font-size:13px;color:#555;margin:8px 0}.toast{position:fixed;right:24px;bottom:24px;max-width:360px;background:#111;color:#fff;border-radius:8px;padding:13px 16px;opacity:0;pointer-events:none;transform:translateY(8px);transition:.18s ease;z-index:20}.toast.show{opacity:1;transform:translateY(0)}.loading{opacity:.65;pointer-events:none}.empty-note{color:#777;font-size:13px;line-height:1.45}@media(max-width:980px){.app-shell{display:block}.sidebar{width:auto;min-height:auto;gap:24px}.main-nav{grid-template-columns:repeat(3,1fr)}.learner-card{margin-top:0}.topbar{display:block}.api-panel{margin-top:18px}.metric-row,.profile-grid,.dashboard-bottom,.week-plan,.topic-row{grid-template-columns:1fr}.metric-row{gap:12px}.learning-tabs{margin-left:0;margin-right:0}.content{padding:28px 20px}.nav-btn{font-size:18px}}

/* Fixed app navigation */
@media (min-width:981px){
  .app-shell{max-width:none;margin:0;background:var(--surface)}
  .sidebar{position:fixed;left:0;top:0;bottom:0;height:100vh;min-height:0;z-index:10;overflow:hidden}
  .content{margin-left:214px;min-height:100vh;overflow:visible}
  .learner-card{margin-top:10px}
}
@media (max-width:980px){
  .app-shell{display:block}
  .sidebar{position:static;width:100%;min-height:0;padding:14px 16px;gap:12px;overflow:visible}
  .sidebar .logo-card{width:118px;height:38px}
  .main-nav{display:flex;gap:14px;overflow-x:auto;padding:4px 0}
  .nav-btn{font-size:16px;white-space:nowrap}
  .learner-card{margin-top:0;padding:8px 10px}
  .logout-btn{align-self:flex-start}
  .content{margin-left:0;padding:22px 16px 28px}
  .topbar{display:grid;gap:12px;margin-bottom:22px}
  .status-panel{width:100%;justify-content:flex-start}
}

/* Logo and weekly history refinements */
.logo-card{background:transparent;width:100%;height:auto;justify-content:center;overflow:visible}
.logo-card img{width:94%;height:auto;mix-blend-mode:multiply;display:block;transform:translateX(-6px)}
.history-panel{background:var(--soft);border-radius:8px;padding:18px;margin-bottom:18px}
.history-panel select{border:1px solid var(--line);border-radius:6px;background:#fff;padding:8px 10px}
.history-summary{display:grid;gap:10px}
.history-item{background:#fff;border:1px solid var(--line);border-radius:6px;padding:12px}
.history-item b{font-size:13px}.history-item p,.history-meta{font-size:12px;color:#555;margin:6px 0 0;line-height:1.45}


/* Progressive analysis flow */
.analysis-actions{display:flex;align-items:center;justify-content:center;gap:14px;margin:16px 0 4px}
.learning-status{font-size:12px;color:#666}
.hidden{display:none!important}

/* Profile setup modal */
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.28);display:grid;place-items:center;z-index:50;padding:20px;overflow:auto}
.profile-modal{position:relative;width:min(430px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:10px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.18);display:grid;gap:14px}
.profile-modal h2{margin:0;font-size:24px;font-weight:600}.profile-modal p{margin:0 0 6px;color:#666;font-size:14px;line-height:1.45}.profile-modal label{display:grid;gap:7px;font-size:13px;color:#444}.profile-modal input,.profile-modal select{border:1px solid var(--line);border-radius:7px;padding:11px 12px;background:#fff}.modal-logo{max-width:170px;margin-bottom:4px}
.modal-close{position:sticky;top:0;margin-left:auto;margin-bottom:-34px;width:34px;height:34px;border-radius:50%;background:#efefef;font-size:18px;line-height:1;display:grid;place-items:center;z-index:2}
.pricing-modal{position:relative;width:min(920px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:10px;padding:30px;box-shadow:0 24px 70px rgba(0,0,0,.18)}
.pricing-modal h2{margin:0 0 8px;font-size:26px;font-weight:600}.pricing-modal>p{margin:0 0 22px;color:#666;font-size:14px}
.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.pricing-card{border-radius:8px;padding:18px;min-height:210px;display:grid;align-content:start;gap:10px;border:1px solid rgba(0,0,0,.08)}
.pricing-card span{font-size:13px;font-weight:700;text-transform:uppercase}.pricing-card strong{font-size:28px}.pricing-card p,.pricing-card li{margin:0;font-size:13px;line-height:1.45;color:#333}.pricing-card ul{margin:0;padding-left:18px;display:grid;gap:6px}
.pricing-card.free{background:#d8fbf1}.pricing-card.plus{background:#ddebff}.pricing-card.pro{background:#ffe9ad}
.pricing-card .primary-btn{width:100%;margin-top:8px}
.current-plan{margin-bottom:16px!important;font-size:13px!important;color:#444!important}
.manage-subscription{margin-top:16px;width:100%;min-height:42px}

.status-panel{display:flex;align-items:center;gap:8px;background:#f6f6f6;border-radius:8px;padding:12px 14px;color:#5f6368;font-size:13px}

/* Auth */
.auth-screen{min-height:100vh;display:grid;place-items:center;background:#f2f2f2;padding:24px}
.auth-card{width:min(520px,100%);background:#fff;border:1px solid var(--line);border-radius:10px;padding:30px;box-shadow:var(--shadow);display:grid;gap:14px}
.auth-card h1{margin:0;font-size:32px;font-weight:600}.auth-card p{margin:0;color:#666;line-height:1.45}
.auth-card label{display:grid;gap:7px;font-size:13px;color:#444}.auth-card input,.auth-card select{border:1px solid var(--line);border-radius:7px;padding:11px 12px;background:#fff;min-width:0}
.auth-logo{max-width:180px}.auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px}.auth-message,.config-warning{font-size:13px;color:#666}
.config-warning{border:1px solid #ffd89a;background:#fff7e8;border-radius:7px;padding:10px}.logout-btn{width:100%;background:#cfcfcf;border-radius:6px;padding:10px 12px;font-weight:600;text-align:center;min-height:42px}
.auth-profile-fields{background:#f7f7f7;border:1px solid var(--line);border-radius:12px;padding:16px;display:grid;gap:12px}
.auth-profile-fields h2{margin:0;font-size:15px;font-weight:700}
.auth-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:560px){.auth-profile-grid,.auth-actions{grid-template-columns:1fr}}
.learner-card{border:0;text-align:left;width:100%}
@media (min-width:981px){
  .sidebar{gap:34px}
  .main-nav{margin-top:-46px}
}

@media (max-width:980px){
  .logout-btn{width:auto;padding-inline:16px}
  .pricing-grid{grid-template-columns:1fr}
  .writing-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;width:100%}
  .writing-panel,.analysis-panel{width:100%;max-width:100%;padding:14px}
  .score-strip{grid-template-columns:1fr;gap:8px}
  .result-box{width:100%;max-width:100%;overflow-wrap:anywhere}
  .table-wrap{width:100%;max-width:100%;overflow-x:auto;background:#fff;border-radius:6px}
  .table-wrap table{min-width:620px}
  th,td{padding:9px 10px}
}

/* Final sidebar and modal polish */
@media (min-width:981px){
  .sidebar{
    width:214px;
    padding:28px 24px 18px;
    gap:0;
    align-items:stretch;
    overflow-y:auto;
    scrollbar-width:none;
  }
  .sidebar::-webkit-scrollbar{
    display:none;
  }
  .sidebar > .logo-card{
    width:84%;
    margin:4px auto 36px;
    justify-content:center;
  }
  .sidebar > .logo-card img{
    width:100%;
    transform:none;
  }
  .main-nav{
    margin-top:0;
    display:grid;
    gap:16px;
  }
  .nav-btn{
    font-size:20px;
  }
  .learner-card{
    margin-top:28px;
  }
  .logout-btn{
    margin-top:28px;
  }
}

.modal-backdrop{
  padding:16px;
}
.profile-modal{
  width:min(430px,calc(100vw - 32px));
  max-height:calc(100vh - 32px);
  padding:20px 28px 24px;
  gap:8px;
}
.profile-modal h2{
  margin:0 0 2px;
  font-size:24px;
  line-height:1.18;
}
.profile-modal p{
  margin:0 0 8px;
  font-size:14px;
  line-height:1.4;
}
.profile-modal label{
  gap:6px;
}
.profile-modal input,
.profile-modal select{
  min-height:44px;
  padding:10px 12px;
}
.modal-logo{
  max-width:none;
  width:100%;
  height:70px;
  margin:0 0 -8px;
  padding-right:48px;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.modal-logo img{
  width:165px;
  transform:none;
}
.modal-close{
  position:absolute;
  top:20px;
  right:20px;
  width:40px;
  height:40px;
  margin:0;
  border-radius:50%;
  background:#dedede;
  display:block;
  font-size:0;
  line-height:1;
  z-index:3;
}
.modal-close::before,
.modal-close::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:22px;
  height:1.5px;
  background:#555;
  border-radius:999px;
}
.modal-close::before{
  transform:translate(-50%,-50%) rotate(45deg);
}
.modal-close::after{
  transform:translate(-50%,-50%) rotate(-45deg);
}
.pricing-modal{
  max-height:calc(100vh - 32px);
  padding:28px;
}
.modal-secondary{
  background:transparent;
  color:#666;
  padding:4px 0;
  text-align:center;
  text-decoration:underline;
  font-size:13px;
}
.vocab-list{
  max-width:980px;
  margin:0 auto;
  display:block;
}
.vocab-table-wrap{
  width:100%;
  overflow:auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 10px 30px rgba(0,0,0,.035);
}
.vocab-table{
  width:100%;
  min-width:760px;
  border-collapse:separate;
  border-spacing:0;
  font-size:14px;
}
.vocab-table th{
  background:#f4f4f4;
  color:#333;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
.vocab-table td{
  padding:16px;
  border-bottom:1px solid #ececec;
  line-height:1.45;
  vertical-align:top;
}
.vocab-table tr:last-child td{
  border-bottom:0;
}
.vocab-word{
  font-weight:700;
  color:#071b4d;
}
.writing-meta{
  display:flex;
  justify-content:flex-start;
  margin-top:6px;
  color:#666;
  font-size:12px;
}
.fill-row{
  display:flex;
  flex-wrap:wrap;
  gap:60px;
  margin-top:24px;
}
.fill-reference{
  display:block;
  padding-bottom:4px;
  border-bottom:1px solid #eee;
}
.exercise-card .fill-row input[type=text]{
  width:112px;
  flex:0 0 112px;
  max-width:100%;
  border:1px solid #eee;
  border-radius:8px;
  padding:11px 12px;
  font-size:16px;
  margin-top:0;
}
.theme-chip.completed{
  background:#d7d7d7!important;
  color:#666;
}
.theme-chip.completed::after{
  content:" done";
  font-size:10px;
  color:#666;
}
.theory-toggle{
  background:transparent;
  color:#555;
  font-size:12px;
  text-decoration:underline;
  padding:0;
  margin:0 0 14px;
}
.theory-panel{
  background:#f7f7f7;
  border:1px solid var(--line);
  border-radius:8px;
  padding:14px;
  margin:0 0 16px;
  font-size:13px;
  line-height:1.45;
}
.theory-panel h3{
  margin:0 0 10px;
  font-size:15px;
}
.theory-panel p{
  margin:6px 0 12px;
  color:#555;
}
.theory-panel ul{
  margin:6px 0 12px;
  padding-left:18px;
}
.learning-controls{
  max-width:720px;
  margin:0 auto 34px;
  display:grid;
  grid-template-columns:minmax(190px,1fr) 160px 160px;
  align-items:center;
  gap:18px;
}
.learning-tabs{
  display:contents;
}
.learning-filter{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:10px;
}
.learning-filter label{
  font-size:12px;
  color:#666;
}
.learning-filter select{
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  padding:8px 10px;
  min-height:42px;
  min-width:150px;
}
.theory-table-wrap{
  overflow:auto;
  margin:10px 0 14px;
}
.theory-table{
  background:#fff;
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
}
.theory-table th,
.theory-table td{
  padding:8px 10px;
  font-size:12px;
}
@media(max-width:760px){
  .learning-controls{
    grid-template-columns:1fr;
    gap:10px;
  }
  .learning-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .learning-filter{
    width:100%;
  }
  .learning-filter select{
    flex:1;
  }
}

@media (max-width:980px){
  .profile-modal{
    padding:22px 20px;
  }
  .modal-close{
    top:18px;
    right:18px;
    width:38px;
    height:38px;
  }
  .modal-close::before,
  .modal-close::after{
    width:20px;
  }
  .learning-tabs{
    max-width:100%;
    grid-template-columns:1fr 1fr;
  }
  .learning-filter{
    max-width:100%;
  }
  .exercise-card .fill-row input[type=text]{
    flex:0 0 112px;
  }
}

@media (min-width:981px) and (max-height:720px){
  .sidebar{
    padding-top:22px;
    padding-bottom:14px;
  }
  .sidebar > .logo-card{
    width:78%;
    margin-bottom:26px;
  }
  .main-nav{
    gap:12px;
  }
  .nav-btn{
    font-size:19px;
  }
  .learner-card{
    margin-top:24px;
    padding:8px 10px;
  }
  .logout-btn{
    margin-top:24px;
    min-height:38px;
    padding:8px 10px;
  }
}

.center-row{
  gap:12px;
  flex-wrap:wrap;
}

.learning-controls{
  max-width:720px;
  margin:0 auto 34px;
}
.learning-controls .tab{
  width:100%;
}
@media (min-width:761px){
  .learning-controls{
    display:grid;
    grid-template-columns:minmax(190px,1fr) 160px 160px;
    align-items:center;
    gap:18px;
  }
  .learning-controls .learning-tabs{
    display:contents;
    margin:0;
  }
}
@media (max-width:760px){
  .learning-controls{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .learning-controls .learning-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin:0;
  }
}

/* Compact desktop sidebar fit */
@media (min-width:981px){
  .sidebar{
    padding:14px 18px 12px;
    gap:0;
  }
  .sidebar > .logo-card{
    width:calc(100% + 8px);
    margin:-4px -4px 6px;
  }
  .sidebar > .logo-card img{
    width:118%;
    max-width:none;
  }
  .main-nav{
    gap:12px;
  }
  .nav-btn{
    font-size:20px;
    line-height:1.15;
  }
  .learner-card{
    margin-top:18px;
    padding:9px 10px;
  }
  .logout-btn{
    margin-top:18px;
    min-height:40px;
    padding:8px 10px;
  }
}

/* Unified week selector pattern */
.week-control{
  display:flex;
  align-items:center;
  gap:10px;
}
.week-control label{
  font-size:12px;
  color:#666;
  line-height:1;
  white-space:nowrap;
}
.week-control select,
.history-panel .week-control select,
.learning-filter.week-control select,
.writing-controls .week-control select{
  min-width:190px;
  min-height:44px;
  border:0;
  border-radius:6px;
  background:#e8e8e8;
  color:var(--ink);
  padding:10px 14px;
  font-size:16px;
}
.history-heading{
  align-items:center;
}
.writing-controls{
  align-items:center;
}
.writing-controls .week-control{
  min-width:230px;
}
.writing-controls .week-control:has(#levelSelect){
  min-width:120px;
}
.writing-controls .week-control:has(#goalSelect){
  min-width:260px;
}
.writing-controls .week-control select{
  width:100%;
}
.learning-filter.week-control{
  justify-content:flex-start;
}
@media (max-width:760px){
  .week-control{
    width:100%;
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
  }
  .week-control select,
  .history-panel .week-control select,
  .learning-filter.week-control select,
  .writing-controls .week-control select{
    width:100%;
    min-width:0;
  }
  .history-heading{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
  }
}

/* Learning header action */
.more-learning-btn{
  min-width:170px;
  min-height:44px;
  padding:9px 18px;
  justify-self:end;
}
.learning-panel{
  background:var(--soft);
  border-radius:8px;
  padding:18px;
}
.learning-panel .learning-controls{
  margin:0 0 28px;
}
.learning-panel .pane-intro{
  margin-top:0;
}
.learning-panel .exercise-board,
.learning-panel .vocab-list,
.learning-panel .feedback{
  max-width:900px;
}
.learning-panel .exercise-board{
  margin-inline:auto;
}
@media (min-width:761px){
  .learning-controls{
    max-width:900px;
    grid-template-columns:minmax(190px,1fr) 160px 160px 170px;
  }
}
@media (max-width:760px){
  .more-learning-btn{
    width:100%;
    justify-self:stretch;
  }
}

/* Mobile writing controls */
@media (max-width:760px){
  .writing-panel{
    overflow:hidden;
  }
  .writing-controls{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    width:100%;
  }
  .writing-controls .week-control{
    min-width:0;
    width:100%;
  }
  .writing-controls .week-control:has(#levelSelect),
  .writing-controls .week-control:has(#goalSelect){
    min-width:0;
  }
  .writing-controls select,
  .writing-controls .soft-btn,
  #generateTopic{
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:44px;
  }
  .writing-controls select{
    font-size:16px;
  }
}

/* Folder divider theme tabs */
.theme-chips{
  position:relative;
  z-index:2;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  gap:6px;
  max-width:900px;
  margin:0 auto -1px;
  padding:0 24px;
  overflow-x:auto;
  overflow-y:hidden;
  flex-wrap:nowrap;
  scrollbar-width:thin;
}
.theme-chip{
  position:relative;
  flex:0 0 auto;
  height:36px;
  min-width:118px;
  max-width:210px;
  padding:0 16px;
  border:1px solid rgba(20,30,40,.18);
  border-bottom:0;
  border-radius:9px 9px 0 0;
  background:var(--tab-bg,#d7ecff);
  color:#0b1b2b;
  font-size:13px;
  font-weight:500;
  line-height:36px;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  transform:translateY(6px);
  transition:transform .15s ease,background .15s ease;
  box-shadow:none;
}
.theme-chip::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background:inherit;
}
.theme-chip.active{
  z-index:4;
  transform:translateY(0);
  border-color:rgba(20,30,40,.42);
  background:var(--tab-active-bg,#fff);
  font-weight:600;
  outline:0;
}
.theme-chip.active::after{
  background:#fff;
}
.theme-chip:nth-child(1){--tab-bg:#bdeee4}
.theme-chip:nth-child(2){--tab-bg:#cfe3ff}
.theme-chip:nth-child(3){--tab-bg:#c9d5ff}
.theme-chip:nth-child(4){--tab-bg:#ffe2a7}
.theme-chip.completed{
  --tab-bg:#d7d7d7;
  background:var(--tab-bg)!important;
  color:#444;
}
.theme-chip.completed::after{
  content:"";
}
.exercise-board{
  position:relative;
  z-index:1;
  border:1.5px solid #1f2937;
  border-radius:14px;
  background:#fff;
  padding:32px;
}
@media (max-width:760px){
  .theme-chips{
    padding:0 12px;
  }
  .theme-chip{
    min-width:112px;
    max-width:180px;
    padding:0 12px;
  }
  .exercise-board{
    padding:22px 14px;
  }
}

/* Inline exercise correction */
.exercise-inline-feedback{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px 14px;
  background:#f8f8f8;
}
.exercise-inline-feedback.correct{
  border-color:#b7e6cd;
  background:#f0fbf5;
}
.exercise-inline-feedback.review{
  border-color:#ffd7a8;
  background:#fff8ec;
}
.exercise-inline-feedback strong{
  display:block;
  font-size:13px;
  margin-bottom:4px;
}
.exercise-inline-feedback p{
  margin:0;
  color:#444;
  font-size:13px;
  line-height:1.45;
}
.compact-feedback{
  max-width:900px;
  margin:18px auto 0;
  box-shadow:none;
}
.compact-feedback h3{
  margin:0;
}
.compact-feedback p{
  margin:8px 0 0;
}

/* Analysis learning status link */
.learning-status{
  border:0;
  background:transparent;
  padding:0;
  color:#666;
  font-size:12px;
  font-weight:400;
  text-align:left;
}
.learning-status.is-link{
  color:#333;
  text-decoration:underline;
  cursor:pointer;
}
.learning-status:disabled{
  cursor:default;
}

/* Pricing CTA polish */
.pricing-modal{
  width:min(980px,100%);
}
.pricing-modal h2{
  max-width:680px;
  font-size:30px;
  line-height:1.12;
}
.pricing-modal>p{
  max-width:700px;
  font-size:15px;
  line-height:1.45;
}
.pricing-grid.pricing-grid-two{
  grid-template-columns:minmax(0, .92fr) minmax(0, 1.08fr);
  align-items:center;
  gap:22px;
}
.pricing-card{
  position:relative;
  border-radius:16px;
  padding:28px;
  min-height:390px;
  gap:16px;
  box-shadow:0 16px 42px rgba(16,24,40,.08);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pricing-card:hover{
  transform:translateY(-3px);
  box-shadow:0 20px 52px rgba(16,24,40,.12);
}
.pricing-card.free{
  background:#d8fbf1;
}
.pricing-card.premium{
  background:#ddebff;
  border:1px solid rgba(54,94,150,.28);
  min-height:440px;
  transform:scale(1.025);
}
.pricing-card.premium:hover{
  transform:scale(1.025) translateY(-3px);
}
.pricing-card span{
  letter-spacing:0;
}
.pricing-card strong{
  font-size:34px;
  line-height:1;
}
.pricing-card p{
  color:#4b5563;
  font-size:14px;
}
.pricing-card li{
  position:relative;
  list-style:none;
  font-size:14px;
  color:#26323f;
}
.pricing-card li::before{
  content:"✓";
  margin-right:8px;
  color:#111;
  font-weight:700;
}
.pricing-card ul{
  padding-left:0;
  gap:8px;
}
.plan-badge{
  position:absolute;
  top:-14px;
  right:24px;
  border-radius:999px;
  background:#ffd989;
  border:1px solid rgba(20,30,40,.12);
  padding:6px 12px;
  font-size:11px;
  font-weight:800;
  letter-spacing:0;
}
.pricing-outline-btn,
.pricing-primary-btn{
  width:100%;
  min-height:52px;
  border-radius:10px;
  margin-top:auto;
  font-size:16px;
  font-weight:700;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.pricing-outline-btn{
  background:#fff;
  border:1px solid rgba(20,30,40,.18);
}
.pricing-primary-btn{
  background:#111;
  color:#fff;
  border:1px solid #111;
}
.pricing-outline-btn:hover,
.pricing-primary-btn:hover{
  transform:translateY(-1px);
}
.pricing-primary-btn:hover{
  background:#25314a;
}
.pricing-benefits{
  margin-top:34px;
}
.pricing-benefits h3,
.pricing-bottom-cta h3{
  margin:0 0 14px;
  font-size:22px;
}
.pricing-benefit-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.pricing-benefit-grid article{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
  box-shadow:0 10px 28px rgba(16,24,40,.05);
}
.pricing-benefit-grid span{
  display:block;
  font-size:24px;
  margin-bottom:10px;
}
.pricing-benefit-grid strong{
  display:block;
  font-size:15px;
  margin-bottom:8px;
}
.pricing-benefit-grid p,
.pricing-bottom-cta p{
  margin:0;
  color:#5d6673;
  font-size:14px;
  line-height:1.45;
}
.pricing-bottom-cta{
  margin-top:24px;
  background:#f7f7f7;
  border-radius:16px;
  padding:24px;
  text-align:center;
}
.pricing-bottom-cta .primary-btn{
  width:min(320px,100%);
  margin-top:18px;
}
@media(max-width:760px){
  .pricing-modal{
    padding:22px;
  }
  .pricing-modal h2{
    font-size:25px;
  }
  .pricing-grid.pricing-grid-two,
  .pricing-benefit-grid{
    grid-template-columns:1fr;
  }
  .pricing-card,
  .pricing-card.premium,
  .pricing-card.premium:hover{
    min-height:auto;
    transform:none;
  }
}

/* Analysis grading info */
.analysis-title-wrap{
  position:relative;
  display:flex;
  align-items:center;
  gap:7px;
}
.info-trigger{
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  border:1px solid var(--line);
  color:#555;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:700;
  line-height:1;
  padding:0;
}
.info-popover{
  position:absolute;
  left:0;
  top:26px;
  z-index:8;
  width:min(340px,calc(100vw - 48px));
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  box-shadow:0 16px 42px rgba(0,0,0,.12);
  opacity:0;
  transform:translateY(-4px);
  pointer-events:none;
  transition:opacity .14s ease, transform .14s ease;
}
.info-popover strong{
  display:block;
  margin-bottom:8px;
  font-size:13px;
}

/* Coach-style dashboard */
.dashboard-subtitle{
  margin:-22px 0 22px;
  color:#5c6470;
  font-size:15px;
}
.mission-card{
  background:linear-gradient(135deg,#d8fbf1 0%,#ddebff 58%,#fff2d6 100%);
  border:1px solid rgba(20,30,40,.08);
  border-radius:18px;
  padding:26px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:22px;
  align-items:center;
  box-shadow:0 18px 48px rgba(16,24,40,.08);
  margin-bottom:22px;
}
.section-kicker{
  display:block;
  color:#404955;
  font-size:14px;
  font-weight:700;
  margin-bottom:8px;
}
.mission-card h2{
  margin:0;
  font-size:20px;
  line-height:1.2;
  font-weight:650;
}
.mission-list{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.mission-item{
  background:rgba(255,255,255,.76);
  border:1px solid rgba(20,30,40,.08);
  border-radius:14px;
  padding:16px;
  text-align:left;
  display:flex;
  align-items:center;
  gap:12px;
  transition:transform .16s ease, background .16s ease;
}
.mission-item:hover{
  transform:translateY(-2px);
  background:#fff;
}
.mission-item strong{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff;
  font-size:22px;
}
.mission-item span{
  font-size:15px;
  font-weight:600;
}
.mission-cta{
  align-self:start;
  min-width:180px;
  min-height:50px;
  border-radius:12px;
  background:#49b878;
  color:#fff;
  font-weight:800;
  box-shadow:0 12px 28px rgba(73,184,120,.24);
  transition:transform .16s ease, box-shadow .16s ease;
}
.mission-cta:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(73,184,120,.3);
}
.coach-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:22px;
}
.coach-card,
.coach-focus-card,
.learning-plan-card,
.recent-writings-panel{
  border-radius:16px;
  border:1px solid rgba(20,30,40,.08);
  box-shadow:0 12px 34px rgba(16,24,40,.055);
}
.coach-card{
  background:#fff;
  padding:22px;
}
.coach-card p{
  margin:0;
  color:#3f4854;
  font-size:16px;
  line-height:1.5;
  max-width:68ch;
}
.coach-focus-card{
  background:#fff2d6;
  padding:22px;
}
.coach-focus-card span{
  color:#4d5360;
  font-weight:700;
}
.coach-focus-card strong{
  font-size:22px;
  line-height:1.2;
}
.coach-focus-card .soft-btn{
  margin-top:16px;
  background:#fff;
  border:1px solid rgba(20,30,40,.1);
}
.dashboard-metrics{
  gap:16px;
  margin-bottom:22px;
}
.dashboard-metrics .metric{
  align-items:flex-start;
  padding:18px;
  min-height:104px;
  box-shadow:0 10px 26px rgba(16,24,40,.055);
}
.dashboard-metrics .metric strong{
  font-size:32px;
  font-weight:800;
}
.dashboard-metrics .metric span{
  font-size:13px;
  font-weight:700;
  color:#222;
}
.activity-calendar-card{
  background:#fff;
  border:1px solid rgba(20,30,40,.08);
  border-radius:18px;
  padding:22px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 230px;
  gap:22px;
  align-items:stretch;
  box-shadow:0 12px 34px rgba(16,24,40,.055);
  margin-bottom:22px;
}
.calendar-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.calendar-title-row h2{
  margin:0;
  font-size:18px;
  font-weight:800;
}
.calendar-title-row p{
  margin:6px 0 0;
  color:#697181;
  font-size:13px;
}
.calendar-legend{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  color:#697181;
  font-size:12px;
  font-weight:600;
}
.calendar-legend span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.calendar-weekdays,
.activity-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
}
.calendar-weekdays{
  color:#7b8492;
  font-size:11px;
  font-weight:700;
  margin-bottom:8px;
}
.calendar-weekdays span{
  text-align:center;
}
.activity-calendar-grid{
  gap:6px;
}
.calendar-day{
  min-height:50px;
  border-radius:12px;
  background:#fcfcfd;
  border:1px solid rgba(20,30,40,.06);
  padding:7px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}
.calendar-day:hover{
  transform:translateY(-1px);
  border-color:rgba(110,87,244,.22);
  background:#fff;
}
.calendar-day.outside{
  opacity:.42;
}
.calendar-day.today{
  background:#f2edff;
  border-color:rgba(110,87,244,.34);
}
.calendar-day-number{
  color:#252d3a;
  font-size:12px;
  font-weight:700;
}
.calendar-day-dots{
  display:flex;
  justify-content:center;
  gap:4px;
  min-height:8px;
}
.calendar-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  display:inline-block;
}
.calendar-dot.writing{
  background:#6e57f4;
}
.calendar-dot.grammar{
  background:#f4ad37;
}
.calendar-dot.vocab{
  background:#49b878;
}
.calendar-week-card{
  border:1px solid rgba(20,30,40,.08);
  border-radius:16px;
  padding:18px;
  background:linear-gradient(180deg,#fff 0%,#faf8ff 100%);
  display:grid;
  align-content:start;
  justify-items:center;
  gap:14px;
}
.calendar-ring{
  --calendar-progress:0deg;
  width:92px;
  height:92px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:conic-gradient(#6e57f4 var(--calendar-progress), #ececf3 0);
  position:relative;
}
.calendar-ring::after{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:50%;
  background:#fff;
}
.calendar-ring strong{
  position:relative;
  z-index:1;
  font-size:20px;
}
.calendar-week-card p{
  margin:0;
  color:#697181;
  text-align:center;
  font-size:12px;
  line-height:1.4;
}
.calendar-progress-list{
  width:100%;
  display:grid;
  gap:12px;
  margin-top:2px;
}
.calendar-progress-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:7px 10px;
  align-items:center;
  font-size:12px;
}
.calendar-progress-row span{
  color:#394150;
  font-weight:700;
}
.calendar-progress-row small{
  display:block;
  margin-top:2px;
  color:#7a8396;
  font-size:10px;
  font-weight:650;
}

/* Dashboard coach, progress icons and learning carousel */
#dashboard .coach-card{
  grid-template-columns:auto 1fr auto;
}
#dashboard .coach-card::before,
#dashboard .coach-card::after{
  content:none;
}
.coach-bot-icon{
  width:72px;
  height:72px;
  border-radius:50%;
  background:#f0edff;
  border:1px solid #dcd4ff;
  box-shadow:0 10px 28px rgba(110,87,244,.14);
  position:relative;
}
.coach-bot-icon::before{
  content:"";
  position:absolute;
  inset:18px;
  background:linear-gradient(135deg,#6e57f4,#8b73ff);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.4 8.4 0 0 1 3.8-.9h.5A8.5 8.5 0 0 1 21 11v.5Z'/%3E%3Cpath d='M8 10h8'/%3E%3Cpath d='M8 14h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.4 8.4 0 0 1 3.8-.9h.5A8.5 8.5 0 0 1 21 11v.5Z'/%3E%3Cpath d='M8 10h8'/%3E%3Cpath d='M8 14h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.coach-bot-icon::after{
  content:none;
}
.coach-copy{
  min-width:0;
}
.coach-view-plan{
  justify-self:end;
  min-height:46px;
  padding:0 18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--purple-dark);
  font-weight:850;
  box-shadow:0 10px 26px rgba(34,38,70,.04);
}
.coach-view-plan::after{
  content:"";
  display:inline-block;
  width:15px;
  height:15px;
  margin-left:8px;
  vertical-align:-2px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dashboard-section-title{
  margin:30px 0 14px;
  color:#141b34;
  font-size:18px;
  font-weight:850;
}
#dashboard .dashboard-metrics .metric{
  position:relative;
}
#dashboard .dashboard-metrics .metric::after{
  content:"";
  position:absolute;
  top:36px;
  left:50%;
  width:22px;
  height:22px;
  transform:translateX(-50%);
  background:#2fb374;
}
#dashboard .dashboard-metrics .metric.mint::after{
  background:#2fb374;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='black'%3E%3Cpath d='M13.5 2.5c.6 3.1 3.9 4.7 3.9 9.1a5.4 5.4 0 1 1-10.8 0c0-2.8 1.6-5.2 4.8-8.6-.1 2.1.5 3.6 2.1 4.6.8-1.5.7-3.2 0-5.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='black'%3E%3Cpath d='M13.5 2.5c.6 3.1 3.9 4.7 3.9 9.1a5.4 5.4 0 1 1-10.8 0c0-2.8 1.6-5.2 4.8-8.6-.1 2.1.5 3.6 2.1 4.6.8-1.5.7-3.2 0-5.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#dashboard .dashboard-metrics .metric.blue::after{
  background:#6e57f4;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16.5 3.5 4 4L8 20H4v-4L16.5 3.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16.5 3.5 4 4L8 20H4v-4L16.5 3.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#dashboard .dashboard-metrics .metric.indigo::after{
  background:#f2a529;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='black'%3E%3Cpath d='M12 2.8 14.1 8l5.6.4-4.3 3.6 1.4 5.5L12 14.6l-4.8 2.9 1.4-5.5-4.3-3.6L9.9 8 12 2.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='black'%3E%3Cpath d='M12 2.8 14.1 8l5.6.4-4.3 3.6 1.4 5.5L12 14.6l-4.8 2.9 1.4-5.5-4.3-3.6L9.9 8 12 2.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#dashboard .dashboard-metrics .metric.gold::after{
  background:#4d96ff;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A3.5 3.5 0 0 1 7.5 2H20v17H7.5A3.5 3.5 0 0 0 4 22V5.5Z'/%3E%3Cpath d='M8 6h8M8 10h8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A3.5 3.5 0 0 1 7.5 2H20v17H7.5A3.5 3.5 0 0 0 4 22V5.5Z'/%3E%3Cpath d='M8 6h8M8 10h8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.learning-plan-heading{
  align-items:flex-end;
}
.dashboard-plan-toggle{
  display:inline-flex;
  gap:8px;
  margin-top:14px;
  padding:5px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}
.dashboard-plan-toggle button{
  min-height:34px;
  border-radius:12px;
  padding:0 14px;
  background:transparent;
  color:#65708a;
  font-weight:800;
}
.dashboard-plan-toggle button.active{
  background:#f0edff;
  color:var(--purple-dark);
}
.practice-carousel-wrap{
  position:relative;
}
#dashboard .practice-area-grid.practice-carousel{
  display:flex;
  gap:18px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:2px 48px 8px 0;
  scrollbar-width:none;
}
#dashboard .practice-area-grid.practice-carousel::-webkit-scrollbar{
  display:none;
}
#dashboard .practice-carousel .practice-area-card{
  flex:0 0 min(260px,78vw);
  scroll-snap-align:start;
}
#dashboard .practice-carousel .empty-note{
  flex:1 0 100%;
}
#dashboard .mistake-count{
  display:block;
  margin-top:10px;
  color:#7b8498;
  font-size:12px;
  font-weight:700;
}
.practice-carousel-arrow{
  position:absolute;
  top:50%;
  z-index:2;
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 14px 34px rgba(34,38,70,.12);
  transform:translateY(-50%);
}
.practice-carousel-arrow.prev{
  left:-18px;
}
.practice-carousel-arrow.next{
  right:-18px;
}
.practice-carousel-arrow::after{
  content:"";
  position:absolute;
  inset:0;
  background:var(--purple-dark);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
.practice-carousel-arrow.prev::after{
  transform:rotate(180deg);
}
@media(max-width:980px){
  #dashboard .coach-card{
    grid-template-columns:auto 1fr;
  }
  .coach-view-plan{
    grid-column:1 / -1;
    justify-self:start;
  }
  .practice-carousel-arrow{
    display:none;
  }
  #dashboard .practice-area-grid.practice-carousel{
    padding-right:0;
  }
}
.calendar-progress-row b{
  color:#697181;
  font-weight:700;
}
.calendar-progress-row i{
  grid-column:1 / -1;
  height:5px;
  border-radius:999px;
  overflow:hidden;
  background:#ececf3;
}
.calendar-progress-row em{
  display:block;
  height:100%;
  width:0;
  border-radius:999px;
  background:#6e57f4;
  transition:width .2s ease;
}
.calendar-progress-row:nth-child(2) em{
  background:#f4ad37;
}
.calendar-progress-row:nth-child(3) em{
  background:#49b878;
}
.learning-plan-card{
  margin-bottom:22px;
  padding:22px;
}
.practice-area-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.practice-area-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  display:grid;
  gap:10px;
  min-height:190px;
}
.practice-area-card.high{
  border-color:#ffd1d1;
}
.practice-area-card.medium{
  border-color:#ffe5a8;
}
.priority-label{
  width:max-content;
  border-radius:999px;
  background:#fff0ce;
  padding:5px 9px;
  font-size:11px;
  font-weight:800;
  color:#65512b;
}
.practice-area-card.high .priority-label{
  background:#ffe3e3;
  color:#743434;
}
.practice-area-card.low .priority-label{
  background:#e5f7ed;
  color:#315b42;
}
.practice-area-card b{
  font-size:16px;
}
.practice-area-card p{
  margin:0;
  color:#5e6672;
  font-size:13px;
  line-height:1.45;
}
.practice-area-btn{
  align-self:end;
  background:#f4f4f4;
}
.recent-writings-panel{
  background:#f7f7f7;
  padding:22px;
}
.recent-writing-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.recent-writing-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  display:grid;
  gap:9px;
}
.recent-writing-card b{
  font-size:15px;
}
.recent-writing-card span{
  color:#727985;
  font-size:12px;
}
.recent-writing-card p{
  margin:0;
  color:#4f5864;
  font-size:13px;
  line-height:1.45;
}
.recent-writing-card .soft-btn{
  width:max-content;
  background:#f4f4f4;
}
@media(max-width:980px){
  .dashboard-subtitle{
    margin:-10px 0 18px;
  }
  .mission-card{
    grid-template-columns:1fr;
    padding:20px;
  }
  .mission-card h2{
    font-size:24px;
  }
  .mission-list,
  .coach-grid,
  .activity-calendar-card,
  .practice-area-grid,
  .recent-writing-grid{
    grid-template-columns:1fr;
  }
  .calendar-title-row{
    display:grid;
  }
  .mission-cta{
    width:100%;
  }
  .dashboard-metrics{
    grid-template-columns:repeat(2,1fr);
  }
}
@media(max-width:560px){
  .dashboard-metrics{
    grid-template-columns:1fr;
  }
  .mission-item{
    padding:14px;
  }
  .activity-calendar-card{
    padding:16px;
  }
  .activity-calendar-grid{
    gap:4px;
  }
  .calendar-day{
    min-height:42px;
    padding:6px;
  }
  .calendar-legend{
    gap:10px;
  }
}
.info-popover p{
  margin:0 0 7px;
  color:#555;
  font-size:12px;
  line-height:1.45;
}
.info-popover p:last-child{
  margin-bottom:0;
}
.analysis-title-wrap:hover .info-popover,
.analysis-title-wrap:focus-within .info-popover{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

/* Exam-style assessment */
.writing-controls{
  flex-wrap:wrap;
  align-items:end;
}
.writing-controls .week-control{
  min-width:130px;
}
.writing-controls .week-control:has(#writingSelect){
  min-width:190px;
}
.writing-controls .week-control:has(#goalSelect),
.writing-controls .week-control:has(#examFamilySelect),
.writing-controls .week-control:has(#taskTypeSelect){
  min-width:170px;
}
.writing-controls .week-control:has(#levelSelect){
  min-width:96px;
}
.rubric-assessment{
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:14px;
  margin-bottom:16px;
}
.rubric-summary{
  display:grid;
  gap:5px;
  margin-bottom:12px;
}
.rubric-summary strong{
  font-size:20px;
}
.rubric-summary span,
.rubric-summary p{
  margin:0;
  color:#666;
  font-size:12px;
  line-height:1.45;
}
.criteria-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.criteria-card{
  border:1px solid var(--line);
  border-left:4px solid #b9c7ff;
  border-radius:7px;
  padding:11px;
  background:#fafafa;
}
.criteria-card span{
  display:block;
  color:#555;
  font-size:12px;
}
.criteria-card strong{
  display:block;
  margin:4px 0 6px;
  font-size:15px;
}
.criteria-card p{
  margin:0;
  color:#555;
  font-size:12px;
  line-height:1.45;
}
.criteria-card.priority-high{
  border-left-color:#f3b45f;
}
.criteria-card.priority-low{
  border-left-color:#8de3df;
}

@media (max-width:980px){
  .criteria-grid{
    grid-template-columns:1fr;
  }
}

/* Legal documents */
.legal-note,
.pricing-legal{
  font-size:12px;
  color:#666;
  line-height:1.45;
}
.legal-note{
  text-align:center;
}
.legal-link{
  background:transparent;
  padding:0;
  color:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
}
.sidebar-legal{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.sidebar-legal .legal-link{
  font-size:10px;
  color:#666;
}
.legal-modal{
  position:relative;
  width:min(760px,calc(100vw - 32px));
  max-height:calc(100vh - 32px);
  overflow:auto;
  background:#fff;
  border-radius:10px;
  padding:28px;
  box-shadow:0 24px 70px rgba(0,0,0,.18);
}
.legal-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  padding-right:56px;
  margin-bottom:22px;
}
.legal-tab{
  background:#f1f1f1;
  border:1px solid transparent;
  border-radius:6px;
  padding:8px 12px;
  font-size:13px;
  font-weight:600;
}
.legal-tab.active{
  background:#fff;
  border-color:var(--line);
}
.legal-doc{
  display:none;
}
.legal-doc.active{
  display:block;
}
.legal-doc h2{
  margin:0 0 4px;
  font-size:28px;
  line-height:1.15;
}
.legal-doc h3{
  margin:20px 0 8px;
  font-size:15px;
}
.legal-doc p{
  margin:0;
  color:#555;
  font-size:14px;
  line-height:1.6;
}
.legal-updated{
  color:#777!important;
  font-size:12px!important;
  margin-bottom:18px!important;
}

@media (max-width:980px){
  .legal-modal{
    padding:22px 20px;
  }
  .legal-tabs{
    padding-right:48px;
  }
}

/* FluencyOS 2026 visual system */
:root{
  --bg:#fcfcfd;
  --surface:#ffffff;
  --surface-soft:#f8f7ff;
  --surface-mint:#f2fffb;
  --surface-blue:#f5f9ff;
  --surface-gold:#fff9ec;
  --ink:#0b1230;
  --muted:#6e7892;
  --line:#eceff5;
  --purple:#6e57f4;
  --purple-dark:#553de8;
  --purple-soft:#f0edff;
  --mint:#dffaf2;
  --blue:#e8f2ff;
  --indigo:#edefff;
  --gold:#fff2d2;
  --green:#2fb374;
  --orange:#f2a529;
  --shadow:0 18px 55px rgba(34,38,70,.08);
  --shadow-soft:0 10px 34px rgba(34,38,70,.055);
}
html{
  background:var(--bg);
}
body{
  background:radial-gradient(circle at top right,rgba(110,87,244,.08),transparent 34%),var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
button,
select,
input,
textarea{
  color:var(--ink);
}
button,
.soft-btn,
.primary-btn,
.nav-btn,
.mission-item,
.pricing-card,
.recent-writing-card,
.practice-area-card,
.calendar-day{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.app-shell{
  max-width:none;
  background:transparent;
}
.content{
  width:min(100%,1440px);
  padding:42px clamp(24px,4vw,64px) 48px;
}
.topbar{
  margin-bottom:28px;
}
.topbar h1{
  font-size:clamp(32px,3vw,48px);
  font-weight:750;
  letter-spacing:-.02em;
  color:#070b26;
}
.eyebrow{
  color:var(--muted);
  font-size:15px;
  font-weight:500;
}
.view.active{
  animation:viewIn .18s ease both;
}
@keyframes viewIn{
  from{opacity:.72;transform:translateY(4px)}
  to{opacity:1;transform:none}
}

@media (min-width:981px){
  .content{
    margin-left:244px;
  }
  .sidebar{
    width:244px;
    background:rgba(255,255,255,.82);
    border-right:1px solid var(--line);
    padding:32px 24px 22px;
    backdrop-filter:blur(18px);
    box-shadow:8px 0 35px rgba(34,38,70,.035);
  }
  .sidebar > .logo-card{
    width:150px;
    margin:0 0 44px 0;
    justify-content:flex-start;
  }
  .sidebar > .logo-card img{
    width:150px;
    transform:none;
    mix-blend-mode:normal;
  }
  .main-nav{
    gap:10px;
  }
  .nav-btn{
    min-height:46px;
    border-radius:12px;
    padding:0 14px;
    font-size:15px;
    font-weight:650;
    color:#4f5870;
    display:flex;
    align-items:center;
    gap:10px;
  }
  .nav-btn::before{
    content:"";
    width:18px;
    height:18px;
    border-radius:6px;
    border:1.5px solid currentColor;
    opacity:.8;
  }
  .nav-btn.active,
  .nav-btn:hover{
    background:var(--purple-soft);
    color:var(--purple-dark);
    font-weight:750;
  }
  .learner-card{
    margin-top:auto;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:14px;
    box-shadow:var(--shadow-soft);
  }
  .learner-card:hover{
    transform:translateY(-1px);
    box-shadow:var(--shadow);
  }
  .learner-card strong{
    font-size:14px;
    font-weight:750;
  }
  .learner-card span{
    color:var(--muted);
    font-size:12px;
  }
  .avatar{
    width:42px;
    height:42px;
    background:linear-gradient(135deg,var(--purple),#8fa9f8);
    color:#fff;
    box-shadow:0 10px 22px rgba(110,87,244,.22);
  }
  .logout-btn{
    margin-top:18px;
    min-height:44px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    color:#4f5870;
    font-weight:700;
  }
.logout-btn:hover{
  color:#df3d53;
  transform:translateY(-1px);
  box-shadow:var(--shadow-soft);
}
.settings-btn{
  margin-top:8px;
}
.profile-modal.settings-mode .profile-name-field,
.profile-modal.settings-mode .profile-language-field,
.profile-modal.settings-mode .profile-audience-field,
.profile-modal.settings-mode #profileLogout{
  display:none;
}
.profile-modal.settings-mode .profile-level-field,
.profile-modal.settings-mode .profile-goal-field{
  display:grid;
}

.correction-highlight{
  background:linear-gradient(180deg,transparent 48%,#fff1a8 48%);
  border-radius:3px;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
  padding:0 2px;
}

/* Landing final responsive layout fixes */
@media (max-width:1180px){
  .landing-screen{
    overflow-x:hidden!important;
  }
  .landing-screen .landing-nav{
    width:min(100% - 28px,1400px)!important;
    top:0!important;
    grid-template-columns:auto auto!important;
    justify-content:space-between!important;
    gap:14px!important;
  }
  .landing-screen .landing-nav-links{
    display:none!important;
  }
  .landing-screen .landing-hero,
  .landing-screen .landing-section,
  .landing-screen .landing-final,
  .landing-screen .landing-footer{
    width:min(100% - 32px,1400px)!important;
  }
  .landing-screen .landing-hero{
    min-height:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:30px!important;
    padding:54px 0 34px!important;
    margin-bottom:0!important;
  }
  .landing-screen .landing-hero h1{
    max-width:900px!important;
    font-size:clamp(46px,8vw,76px)!important;
    line-height:1!important;
    letter-spacing:-.04em!important;
  }
  .landing-screen .landing-hero-copy>p{
    max-width:780px!important;
  }
  .landing-screen .landing-mockup-wrap{
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
  }
  .landing-screen .landing-dashboard-mockup{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    max-width:840px!important;
    margin:0 auto!important;
    transform:none!important;
  }
  .landing-screen #landingProblem{
    padding-top:52px!important;
  }
  .landing-screen #landingProblem .landing-card-grid.three{
    grid-template-columns:1fr!important;
  }
  .landing-screen #landingProblem .landing-card-grid article{
    min-height:0!important;
    padding:28px!important;
  }
  .landing-screen .landing-journey-block{
    margin-top:24px!important;
    padding:20px 0 28px!important;
    overflow:visible!important;
  }
  .landing-screen .landing-journey-block::before{
    display:none!important;
  }
  .landing-screen #landingHow{
    padding-top:54px!important;
  }
  .landing-screen .how-stepper{
    gap:20px!important;
  }
  .landing-screen .how-steps{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(96px,1fr))!important;
    gap:8px!important;
    padding:0!important;
    overflow:visible!important;
  }
  .landing-screen .how-steps::before{
    display:none!important;
  }
  .landing-screen .how-step-button{
    min-width:0!important;
    min-height:72px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    padding:10px 8px!important;
    border:1px solid rgba(173,184,214,.45)!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.86)!important;
    text-align:center!important;
  }
  .landing-screen .how-step-button span{
    width:30px!important;
    height:30px!important;
    box-shadow:none!important;
    font-size:12px!important;
  }
  .landing-screen .how-step-button strong{
    display:block!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    font-size:12px!important;
    line-height:1.15!important;
    text-align:center!important;
  }
  .landing-screen .how-active-panel{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:16px!important;
  }
  .landing-screen .how-copy-card{
    order:1!important;
    padding:22px!important;
    min-height:0!important;
  }
  .landing-screen .how-copy-card h3{
    font-size:30px!important;
    line-height:1.05!important;
  }
  .landing-screen .how-visual{
    order:2!important;
    min-height:0!important;
    height:auto!important;
    padding:12px!important;
  }
  .landing-screen .how-visual img{
    height:auto!important;
    max-height:460px!important;
    object-fit:contain!important;
  }
  .landing-screen .comparison-table{
    width:100%!important;
    overflow-x:auto!important;
    padding:0!important;
  }
  .landing-screen .comparison-table table{
    min-width:720px!important;
  }
  .landing-screen .user-type-grid{
    grid-template-columns:1fr!important;
  }
  .landing-screen .user-type-card{
    min-height:0!important;
    transform:none!important;
  }
}

@media (max-width:680px){
  .landing-screen .landing-nav{
    width:100%!important;
    grid-template-columns:1fr!important;
    border-radius:0 0 22px 22px!important;
    padding:14px 16px!important;
  }
  .landing-screen .landing-brand{
    justify-self:center!important;
  }
  .landing-screen .landing-brand img{
    width:150px!important;
  }
  .landing-screen .landing-nav-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }
  .landing-screen .landing-nav-actions button{
    width:100%!important;
    padding:0 10px!important;
  }
  .landing-screen .landing-hero,
  .landing-screen .landing-section,
  .landing-screen .landing-final,
  .landing-screen .landing-footer{
    width:calc(100% - 28px)!important;
  }
  .landing-screen .landing-hero{
    padding-top:38px!important;
  }
  .landing-screen .landing-hero h1{
    font-size:clamp(40px,12vw,56px)!important;
  }
  .landing-screen .landing-section-head h2,
  .landing-screen .landing-final h2{
    font-size:clamp(32px,10vw,44px)!important;
  }
  .landing-screen .mockup-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .landing-screen .mockup-top{
    display:grid!important;
  }
  .landing-screen .how-steps{
    display:flex!important;
    overflow-x:auto!important;
    gap:10px!important;
    padding:2px 2px 12px!important;
    scroll-snap-type:x mandatory!important;
  }
  .landing-screen .how-step-button{
    flex:0 0 136px!important;
    min-height:62px!important;
    flex-direction:row!important;
    justify-content:flex-start!important;
    scroll-snap-align:start!important;
  }
  .landing-screen .how-step-button strong{
    text-align:left!important;
  }
  .landing-screen .how-copy-card,
  .landing-screen .how-visual,
  .landing-screen .landing-card-grid article,
  .landing-screen .user-type-card,
  .landing-screen .landing-pricing-card{
    border-radius:22px!important;
    padding:20px!important;
  }
  .landing-screen .how-visual img{
    max-height:none!important;
  }
  .landing-screen .comparison-table table{
    min-width:640px!important;
  }
}

@media (max-width:420px){
  .landing-screen .landing-nav-actions{
    grid-template-columns:1fr!important;
  }
  .landing-screen .mockup-metrics{
    grid-template-columns:1fr!important;
  }
}

/* Landing responsive hardening */
@media (max-width:1180px){
  .landing-screen .landing-nav{
    width:min(100% - 28px,1400px)!important;
    grid-template-columns:auto 1fr auto!important;
    gap:16px!important;
    padding:12px 14px!important;
  }
  .landing-screen .landing-brand img{
    width:138px!important;
  }
  .landing-screen .landing-nav-links{
    gap:16px!important;
  }
  .landing-screen .landing-nav a,
  .landing-screen .landing-nav button{
    font-size:13px!important;
  }
  .landing-screen .landing-hero,
  .landing-screen .landing-section,
  .landing-screen .landing-final,
  .landing-screen .landing-footer{
    width:min(100% - 32px,1400px)!important;
  }
  .landing-screen .landing-hero{
    min-height:0!important;
    grid-template-columns:1fr!important;
    gap:34px!important;
    padding:54px 0 42px!important;
    margin-bottom:0!important;
  }
  .landing-screen .landing-hero h1{
    max-width:900px!important;
    font-size:clamp(48px,8vw,78px)!important;
    line-height:.98!important;
  }
  .landing-screen .landing-hero-copy>p{
    max-width:760px!important;
  }
  .landing-screen .landing-mockup-wrap{
    min-height:0!important;
    height:auto!important;
  }
  .landing-screen .landing-dashboard-mockup{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    max-width:860px!important;
    margin:0 auto!important;
    transform:none!important;
  }
  .landing-screen #landingProblem{
    padding-top:64px!important;
  }
  .landing-screen .landing-journey-block{
    margin-top:24px!important;
    overflow:visible!important;
  }
  .landing-screen .how-active-panel{
    grid-template-columns:1fr!important;
  }
  .landing-screen .how-copy-card{
    order:1!important;
    padding:24px!important;
  }
  .landing-screen .how-visual{
    order:2!important;
    min-height:360px!important;
    padding:14px!important;
  }
  .landing-screen .how-visual img{
    max-height:430px!important;
  }
  .landing-screen .user-type-grid,
  .landing-screen .pricing-card-row,
  .landing-screen .landing-card-grid.three,
  .landing-screen .landing-card-grid.six{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media (max-width:900px){
  .landing-screen .landing-nav{
    grid-template-columns:1fr auto!important;
  }
  .landing-screen .landing-nav-links{
    display:none!important;
  }
  .landing-screen .landing-hero h1,
  .landing-screen .landing-section-head h2,
  .landing-screen .landing-final h2{
    letter-spacing:-.035em!important;
  }
  .landing-screen .landing-card-grid.three,
  .landing-screen .landing-card-grid.six,
  .landing-screen .user-type-grid,
  .landing-screen .pricing-card-row{
    grid-template-columns:1fr!important;
  }
  .landing-screen .mockup-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .landing-screen .landing-section{
    padding:58px 0!important;
  }
  .landing-screen .landing-preview-card,
  .landing-screen .comparison-table,
  .landing-screen .landing-pricing-card,
  .landing-screen .user-type-card{
    border-radius:24px!important;
  }
}

@media (max-width:680px){
  .landing-screen{
    overflow-x:hidden!important;
  }
  .landing-screen .landing-nav{
    position:relative!important;
    width:100%!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    border-radius:0 0 22px 22px!important;
    padding:14px 16px!important;
  }
  .landing-screen .landing-brand{
    justify-self:center!important;
  }
  .landing-screen .landing-brand img{
    width:150px!important;
  }
  .landing-screen .landing-nav-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
  }
  .landing-screen .landing-nav-actions button{
    width:100%!important;
    min-height:46px!important;
    padding:0 12px!important;
    white-space:nowrap!important;
  }
  .landing-screen .landing-hero,
  .landing-screen .landing-section,
  .landing-screen .landing-final,
  .landing-screen .landing-footer{
    width:calc(100% - 28px)!important;
  }
  .landing-screen .landing-hero{
    padding:38px 0 28px!important;
    gap:24px!important;
  }
  .landing-screen .landing-kicker{
    max-width:100%!important;
    white-space:normal!important;
  }
  .landing-screen .landing-hero h1{
    margin-top:18px!important;
    font-size:clamp(42px,13vw,58px)!important;
    line-height:.98!important;
  }
  .landing-screen .landing-hero-copy>p,
  .landing-screen .landing-final p{
    font-size:17px!important;
    line-height:1.5!important;
  }
  .landing-screen .landing-primary.large,
  .landing-screen .landing-secondary.large{
    width:100%!important;
  }
  .landing-screen .landing-dashboard-mockup{
    padding:16px!important;
    gap:14px!important;
    border-radius:24px!important;
  }
  .landing-screen .mockup-top{
    display:grid!important;
    padding:16px!important;
  }
  .landing-screen .mockup-top button{
    width:100%!important;
  }
  .landing-screen .mockup-calendar{
    padding:14px!important;
  }
  .landing-screen .mockup-calendar-head{
    display:grid!important;
  }
  .landing-screen .mockup-calendar-grid{
    gap:6px!important;
  }
  .landing-screen .landing-section-head{
    margin-bottom:22px!important;
  }
  .landing-screen .landing-section-head h2{
    font-size:clamp(34px,11vw,46px)!important;
    line-height:1.02!important;
  }
  .landing-screen .landing-card-grid article,
  .landing-screen .user-type-card,
  .landing-screen .landing-pricing-card{
    min-height:0!important;
    padding:22px!important;
  }
  .landing-screen .landing-journey-block{
    margin-top:14px!important;
    padding:8px 0 20px!important;
  }
  .landing-screen .landing-journey-block::before{
    display:none!important;
  }
  .landing-screen .how-stepper{
    gap:18px!important;
  }
  .landing-screen .how-steps{
    display:flex!important;
    grid-template-columns:none!important;
    gap:8px!important;
    overflow-x:auto!important;
    padding:2px 2px 12px!important;
    scroll-snap-type:x mandatory!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .landing-screen .how-steps::before{
    display:none!important;
  }
  .landing-screen .how-step-button{
    flex:0 0 132px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    min-height:54px!important;
    padding:8px 10px!important;
    border:1px solid #e4e8f2!important;
    border-radius:18px!important;
    background:#fff!important;
    scroll-snap-align:start!important;
  }
  .landing-screen .how-step-button span{
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
    font-size:13px!important;
    box-shadow:none!important;
  }
  .landing-screen .how-step-button strong{
    max-width:none!important;
    white-space:normal!important;
    text-align:left!important;
    font-size:12px!important;
  }
  .landing-screen .how-active-panel{
    gap:14px!important;
  }
  .landing-screen .how-copy-card{
    padding:20px!important;
    border-radius:22px!important;
  }
  .landing-screen .how-copy-card h3{
    font-size:28px!important;
    line-height:1.05!important;
  }
  .landing-screen .how-visual{
    min-height:0!important;
    height:auto!important;
    padding:10px!important;
    border-radius:22px!important;
  }
  .landing-screen .how-visual img{
    height:auto!important;
    max-height:none!important;
    object-fit:contain!important;
    border-radius:18px!important;
  }
  .landing-screen .landing-preview-card{
    padding:16px!important;
    overflow:hidden!important;
  }
  .landing-screen .preview-dashboard{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .landing-screen .preview-calendar{
    min-height:170px!important;
  }
  .landing-screen .comparison-table{
    padding:0!important;
    overflow-x:auto!important;
  }
  .landing-screen .comparison-table table{
    min-width:620px!important;
  }
  .landing-screen .landing-pricing-card>strong{
    font-size:34px!important;
  }
  .landing-screen .landing-footer{
    grid-template-columns:1fr!important;
    justify-items:start!important;
  }
}

@media (max-width:420px){
  .landing-screen .landing-nav-actions{
    grid-template-columns:1fr!important;
  }
  .landing-screen .landing-hero h1{
    font-size:40px!important;
  }
  .landing-screen .mockup-metrics{
    grid-template-columns:1fr!important;
  }
  .landing-screen .how-step-button{
    flex-basis:120px!important;
  }
}

/* Landing comparison icons */
.compare-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  vertical-align:middle;
}
.compare-icon::before{
  content:"";
  width:16px;
  height:16px;
  background:currentColor;
}
.compare-icon.yes{
  color:#6e57f4;
  background:#f0edff;
}
.compare-icon.yes::before{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.compare-icon.partial{
  color:#a493ff;
  background:#f5f2ff;
}
.compare-icon.partial::before{
  width:15px;
  height:15px;
  border-radius:50%;
  background:currentColor;
  -webkit-mask:none;
  mask:none;
}
.compare-icon.no{
  color:#9ca3af;
  background:#f1f3f6;
}
.compare-icon.no::before{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Dashboard KPI cards: compact horizontal format */
#dashboard .dashboard-metrics{
  grid-template-columns:repeat(4,minmax(180px,1fr))!important;
  gap:16px!important;
}
#dashboard .dashboard-metrics .metric{
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr)!important;
  grid-template-rows:auto auto auto!important;
  column-gap:14px!important;
  align-items:center!important;
  justify-content:stretch!important;
  min-height:104px!important;
  padding:18px 20px!important;
  border-radius:16px!important;
  position:relative!important;
}
#dashboard .dashboard-metrics .metric::before{
  content:""!important;
  display:block!important;
  grid-column:1!important;
  grid-row:1 / span 3!important;
  width:48px!important;
  height:48px!important;
  border-radius:50%!important;
  align-self:start!important;
  position:static!important;
  transform:none!important;
  -webkit-mask:none!important;
  mask:none!important;
}
#dashboard .dashboard-metrics .metric::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  top:30px!important;
  left:33px!important;
  width:22px!important;
  height:22px!important;
  transform:none!important;
  z-index:2!important;
}
#dashboard .dashboard-metrics .metric span{
  grid-column:2!important;
  grid-row:1!important;
  margin:0 0 4px!important;
  color:#536079!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.2!important;
}
#dashboard .dashboard-metrics .metric strong{
  grid-column:2!important;
  grid-row:2!important;
  margin:0!important;
  color:#071032!important;
  font-size:30px!important;
  font-weight:900!important;
  line-height:1!important;
}
#dashboard .dashboard-metrics .metric strong::after{
  content:"This week";
  display:block;
  margin-top:9px;
  color:#26a96c;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
}
#dashboard .dashboard-metrics .metric.blue strong::after{
  content:"This month";
}
#dashboard .dashboard-metrics .metric.indigo strong::after{
  content:"Completed";
}
#dashboard .dashboard-metrics .metric.gold strong::after{
  content:"This week";
}
#dashboard .dashboard-metrics .metric.mint::before{background:#d9f7e8!important}
#dashboard .dashboard-metrics .metric.blue::before{background:#e8f2ff!important}
#dashboard .dashboard-metrics .metric.indigo::before{background:#ddf8eb!important}
#dashboard .dashboard-metrics .metric.gold::before{background:#fff0ce!important}
#dashboard .dashboard-metrics .metric.mint::after{
  background:#2fb374!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='black'%3E%3Cpath d='M13.5 2.5c.6 3.1 3.9 4.7 3.9 9.1a5.4 5.4 0 1 1-10.8 0c0-2.8 1.6-5.2 4.8-8.6-.1 2.1.5 3.6 2.1 4.6.8-1.5.7-3.2 0-5.1Z'/%3E%3C/svg%3E") center / contain no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='black'%3E%3Cpath d='M13.5 2.5c.6 3.1 3.9 4.7 3.9 9.1a5.4 5.4 0 1 1-10.8 0c0-2.8 1.6-5.2 4.8-8.6-.1 2.1.5 3.6 2.1 4.6.8-1.5.7-3.2 0-5.1Z'/%3E%3C/svg%3E") center / contain no-repeat!important;
}
#dashboard .dashboard-metrics .metric.blue::after{
  background:#4d96ff!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16.5 3.5 4 4L8 20H4v-4L16.5 3.5Z'/%3E%3C/svg%3E") center / contain no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16.5 3.5 4 4L8 20H4v-4L16.5 3.5Z'/%3E%3C/svg%3E") center / contain no-repeat!important;
}
#dashboard .dashboard-metrics .metric.indigo::after{
  background:#26a96c!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat!important;
}
#dashboard .dashboard-metrics .metric.gold::after{
  background:#ff9f1c!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E") center / contain no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E") center / contain no-repeat!important;
}

/* Landing journey: interactive product narrative */
.landing-journey-block{
  position:relative;
  margin:54px 0 0;
  padding:18px 0 34px;
  background:linear-gradient(180deg,#fcfcfd 0%,#f8f5ff 48%,#f3fbff 100%);
  overflow:hidden;
}
.landing-journey-block::before{
  content:"";
  position:absolute;
  top:96px;
  bottom:120px;
  left:50%;
  width:1px;
  background:linear-gradient(180deg,transparent,rgba(110,87,244,.18),rgba(47,179,116,.14),transparent);
  pointer-events:none;
}
.interactive-how-section{
  position:relative;
  z-index:1;
}
.how-stepper{
  display:grid;
  gap:26px;
}
.how-steps{
  position:relative;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  padding:0 4px;
}
.how-steps::before{
  content:"";
  position:absolute;
  left:6%;
  right:6%;
  top:22px;
  height:2px;
  background:#e4e8f2;
  z-index:0;
}
.how-step-button{
  position:relative;
  z-index:1;
  display:grid;
  justify-items:center;
  gap:9px;
  background:transparent;
  color:#6b748c;
  min-width:0;
}
.how-step-button span{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  border:1px solid #dfe5f1;
  box-shadow:0 12px 28px rgba(34,38,70,.06);
  font-weight:900;
}
.how-step-button strong{
  max-width:120px;
  font-size:12px;
  line-height:1.2;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.how-step-button.active{
  color:#553de8;
}
.how-step-button.active span{
  background:linear-gradient(135deg,#6e57f4,#553de8);
  color:#fff;
  border-color:transparent;
  box-shadow:0 18px 40px rgba(110,87,244,.25);
}
.how-active-panel{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(280px,.45fr);
  gap:22px;
  align-items:stretch;
}
.how-visual,
.how-copy-card{
  border:1px solid rgba(173,184,214,.45);
  border-radius:30px;
  background:rgba(255,255,255,.82);
  box-shadow:0 24px 70px rgba(34,38,70,.09);
}
.how-visual{
  min-height:430px;
  padding:18px;
  overflow:hidden;
  display:grid;
  place-items:center;
}
.how-visual img{
  width:100%;
  height:100%;
  max-height:470px;
  object-fit:contain;
  border-radius:24px;
}
.how-placeholder{
  width:100%;
  min-height:330px;
  display:grid;
  align-content:center;
  gap:16px;
  padding:34px;
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 22%,rgba(110,87,244,.18),transparent 28%),
    linear-gradient(135deg,#fff,#f1efff 55%,#f0fbff);
}
.how-placeholder span{
  width:max-content;
  padding:8px 12px;
  border-radius:999px;
  background:#f0edff;
  color:#553de8;
  font-weight:900;
  font-size:12px;
}
.how-placeholder strong{
  max-width:520px;
  color:#121a35;
  font-size:30px;
  line-height:1.14;
}
.how-placeholder div{
  display:grid;
  gap:10px;
  max-width:520px;
}
.how-placeholder i{
  height:14px;
  border-radius:999px;
  background:rgba(255,255,255,.75);
}
.how-copy-card{
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.how-step-number{
  color:#553de8;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
}
.how-copy-card h3{
  margin:14px 0 12px;
  color:#080d2c;
  font-size:32px;
  line-height:1;
}
.how-copy-card p{
  margin:0;
  color:#65708a;
  font-size:16px;
  line-height:1.55;
}
.user-type-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.user-type-card{
  min-height:430px;
  display:flex;
  flex-direction:column;
  padding:30px;
  border-radius:30px;
  border:1px solid rgba(173,184,214,.42);
  background:linear-gradient(135deg,#fff,#f7f4ff);
  box-shadow:0 18px 50px rgba(34,38,70,.07);
  transition:transform .18s ease, box-shadow .18s ease;
}
.user-type-card:hover,
.landing-pricing-card:hover{
  transform:translateY(-4px);
  box-shadow:0 28px 74px rgba(34,38,70,.12);
}
.user-type-card.teacher{
  background:linear-gradient(135deg,#fff8e3,#fff);
  border-color:rgba(255,159,28,.24);
}
.user-type-card.academy{
  background:linear-gradient(135deg,#ecfff8,#fff);
}
.user-type-card.emphasized{
  transform:translateY(-8px);
}
.user-type-card.emphasized:hover{
  transform:translateY(-12px);
}
.user-type-icon{
  width:50px;
  height:50px;
  border-radius:18px;
  background:#f0edff;
  color:#6e57f4;
  margin-bottom:20px;
  position:relative;
}
.user-type-icon::before{
  content:"";
  position:absolute;
  inset:13px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.user-type-card.teacher .user-type-icon{
  background:#fff0ce;
  color:#ff9f1c;
}
.user-type-card.academy .user-type-icon{
  background:#ddf8eb;
  color:#26a96c;
}
.user-type-card span,
.landing-pricing-card>span{
  color:#553de8;
  font-size:13px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.user-type-card h3{
  margin:16px 0 12px;
  color:#10162f;
  font-size:28px;
  line-height:1.12;
}
.user-type-card p{
  margin:0;
  color:#65708a;
  line-height:1.58;
}
.user-type-card ul{
  display:grid;
  gap:10px;
  margin:24px 0;
  padding:0;
  list-style:none;
}
.user-type-card li{
  color:#36415a;
  font-weight:750;
}
.user-type-card li::before{
  content:"";
  display:inline-block;
  width:10px;
  height:10px;
  margin-right:10px;
  border-radius:50%;
  background:#6e57f4;
}
.user-type-card a,
.user-type-card button{
  margin-top:auto;
  width:max-content;
  color:#553de8;
  font-weight:900;
  text-decoration:none;
}
.pricing-card-row{
  align-items:stretch;
}
.landing-pricing-card{
  min-height:460px;
  border-radius:30px;
  position:relative;
}
.landing-pricing-card.featured{
  background:linear-gradient(135deg,#f0edff,#fff 60%,#f5fffb);
}
.landing-pricing-card em{
  display:inline-flex;
  margin:14px 0 18px;
  padding:8px 12px;
  border-radius:999px;
  background:#f0edff;
  color:#553de8;
  font-style:normal;
  font-weight:850;
  font-size:12px;
}
.landing-pricing-card:not(.featured) em{
  background:#f5f7fb;
  color:#5f6b82;
}
.landing-pricing-card>strong{
  font-size:34px;
  line-height:1.05;
}
.compare-icon.partial{
  color:#9ca3af;
  background:#f1f3f6;
}
@media(max-width:1100px){
  .how-active-panel,
  .user-type-grid{
    grid-template-columns:1fr;
  }
  .user-type-card.emphasized{
    transform:none;
  }
}
@media(max-width:760px){
  .landing-journey-block::before{
    display:none;
  }
  .how-steps{
    grid-template-columns:1fr;
  }
  .how-steps::before{
    left:22px;
    right:auto;
    top:20px;
    bottom:20px;
    width:2px;
    height:auto;
  }
  .how-step-button{
    grid-template-columns:44px 1fr;
    justify-items:start;
    align-items:center;
    text-align:left;
  }
  .how-step-button strong{
    max-width:none;
    text-align:left;
  }
  .how-visual{
    min-height:260px;
  }
  .how-copy-card h3{
    font-size:30px;
  }
}

/* Landing responsive spacing: avoid hero mockup overlapping the problem section */
@media (max-width:1280px) and (min-width:761px){
  #landingHero{
    margin-bottom:90px;
  }
  #landingProblem{
    padding-top:120px;
  }
}
@media (max-width:980px){
  #landingHero{
    margin-bottom:56px;
  }
  #landingProblem{
    padding-top:90px;
  }
}
@media(max-width:1180px){
  #dashboard .dashboard-metrics{
    grid-template-columns:repeat(2,minmax(180px,1fr))!important;
  }
}
@media(max-width:560px){
  #dashboard .dashboard-metrics{
    grid-template-columns:1fr!important;
  }
}

/* Dashboard progress cards: final clean layout without icons */
#dashboard .dashboard-metrics .metric{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  position:relative!important;
  min-height:94px!important;
  padding:18px 22px!important;
}
#dashboard .dashboard-metrics .metric strong{
  position:relative!important;
  z-index:3!important;
  margin:0!important;
  line-height:1!important;
}
#dashboard .dashboard-metrics .metric span{
  position:relative!important;
  z-index:3!important;
  margin-top:10px!important;
}
#dashboard .dashboard-metrics .metric::before{
  content:none!important;
  display:none!important;
}
#dashboard .dashboard-metrics .metric::after{
  content:none!important;
  display:none!important;
}

/* Keep progress cards icon-free on every viewport */
#dashboard .dashboard-metrics .metric::before,
#dashboard .dashboard-metrics .metric::after{
  content:none!important;
  display:none!important;
  width:0!important;
  height:0!important;
  background:none!important;
  -webkit-mask:none!important;
  mask:none!important;
}

}

.auth-screen{
  background:radial-gradient(circle at 20% 10%,rgba(110,87,244,.13),transparent 28%),radial-gradient(circle at 80% 20%,rgba(73,184,120,.12),transparent 26%),var(--bg);
  padding:32px 18px;
}
.auth-card{
  width:min(620px,100%);
  border:1px solid var(--line);
  border-radius:26px;
  padding:34px;
  box-shadow:0 28px 80px rgba(34,38,70,.12);
}
.auth-logo{
  width:180px;
  margin:0 auto 4px;
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
}
.auth-logo img{
  width:180px;
  transform:none;
  mix-blend-mode:normal;
}
.auth-card p{
  text-align:center;
  color:var(--muted);
}
.auth-card label,
.profile-modal label{
  color:#424b61;
  font-size:13px;
  font-weight:650;
}
.auth-card input,
.auth-card select,
.profile-modal input,
.profile-modal select,
.week-control select,
.writing-controls select{
  min-height:50px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  padding:0 16px;
  box-shadow:0 1px 0 rgba(34,38,70,.02);
}
.auth-card input:focus,
.auth-card select:focus,
.profile-modal input:focus,
.profile-modal select:focus,
.week-control select:focus,
textarea:focus{
  outline:3px solid rgba(110,87,244,.14);
  border-color:rgba(110,87,244,.38);
}
.auth-profile-fields{
  background:#fbfbfe;
  border-color:var(--line);
  border-radius:20px;
  padding:20px;
}
.auth-profile-fields h2{
  font-size:18px;
}
.auth-actions{
  gap:14px;
}
.primary-btn,
.mission-cta,
.pricing-primary-btn{
  background:linear-gradient(135deg,var(--purple) 0%,#795ef8 52%,var(--purple-dark) 100%);
  color:#fff;
  border:1px solid rgba(110,87,244,.12);
  border-radius:14px;
  min-height:50px;
  font-weight:800;
  box-shadow:0 14px 34px rgba(110,87,244,.24);
}
.primary-btn:hover,
.mission-cta:hover,
.pricing-primary-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 42px rgba(110,87,244,.3);
}
.soft-btn,
.small-btn,
.pricing-outline-btn,
.modal-secondary{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  min-height:44px;
  font-weight:750;
  color:#2f3850;
}
.soft-btn:hover,
.small-btn:hover,
.pricing-outline-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(110,87,244,.22);
  box-shadow:var(--shadow-soft);
}

.mission-card,
.coach-card,
.coach-focus-card,
.activity-calendar-card,
.learning-plan-card,
.recent-writings-panel,
.writing-panel,
.analysis-panel,
.learning-panel,
.exercise-board,
.vocab-table-wrap,
.rubric-assessment,
.score-strip div,
.legal-modal,
.pricing-modal,
.profile-modal,
.freeLanguageModal{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow-soft);
}
.dashboard-subtitle{
  color:var(--muted);
  font-size:16px;
  margin:-16px 0 26px;
}
.mission-card{
  background:linear-gradient(135deg,#f7f4ff 0%,#f1fbff 56%,#fff8e8 100%);
  padding:28px;
}
.mission-card h2{
  color:#090d2c;
  font-size:22px;
}
.mission-item{
  border-radius:18px;
  border-color:var(--line);
  background:rgba(255,255,255,.78);
}
.mission-item strong{
  color:var(--purple-dark);
  background:var(--purple-soft);
}
.mission-item:hover{
  box-shadow:var(--shadow-soft);
}
.coach-grid{
  gap:20px;
}
.section-kicker{
  color:var(--purple-dark);
}
.coach-card p,
.coach-focus-card p{
  color:#586174;
}
.coach-focus-card{
  background:linear-gradient(135deg,#fff6df 0%,#fff 100%);
}
.dashboard-metrics .metric{
  min-height:132px;
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px;
  box-shadow:var(--shadow-soft);
}
.dashboard-metrics .metric:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}
.dashboard-metrics .metric strong{
  color:#071032;
}
.dashboard-metrics .metric span{
  color:#536079;
}
.metric.mint{
  background:linear-gradient(135deg,#f2fffb,#fff);
  border-color:#d8f4eb;
}
.metric.blue{
  background:linear-gradient(135deg,#f2f8ff,#fff);
  border-color:#dceaff;
}
.metric.indigo{
  background:linear-gradient(135deg,#f7f4ff,#fff);
  border-color:#e8e1ff;
}
.metric.gold{
  background:linear-gradient(135deg,#fff8e9,#fff);
  border-color:#fbe8b9;
}
.activity-calendar-card{
  padding:24px;
}
.calendar-day{
  background:#fff;
  border-color:#f0f2f7;
}
.calendar-day.today{
  background:linear-gradient(135deg,var(--purple),#7d69f7);
}
.calendar-day.today .calendar-day-number{
  color:#fff;
}
.calendar-week-card{
  border-color:var(--line);
  box-shadow:none;
}
.calendar-ring{
  background:conic-gradient(var(--purple) var(--calendar-progress), #eef0f6 0);
}
.learning-plan-card,
.recent-writings-panel{
  background:#fff;
}
.practice-area-card,
.recent-writing-card{
  border-color:var(--line);
  border-radius:18px;
  box-shadow:none;
}
.practice-area-card:hover,
.recent-writing-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-soft);
}
.priority-label{
  color:var(--purple-dark);
  background:var(--purple-soft);
}

.writing-grid{
  gap:24px;
}
.writing-panel,
.analysis-panel{
  padding:28px;
}
.writing-controls,
.learning-controls{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  box-shadow:var(--shadow-soft);
}
.week-control label,
.writing-controls label{
  color:#737d95;
  font-size:12px;
  font-weight:750;
}
.topic-row{
  grid-template-columns:1fr minmax(220px,.28fr);
  gap:18px;
}
.topic-card,
.include-card{
  border-radius:22px;
  padding:24px;
  border:1px solid var(--line);
}
.topic-card{
  background:linear-gradient(135deg,#f7f4ff 0%,#fff 100%);
}
.topic-card strong{
  color:#071032;
  font-size:20px;
  font-style:normal;
}
.include-card{
  background:linear-gradient(135deg,#f0fffb,#fff);
}
textarea{
  min-height:320px;
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px;
  box-shadow:inset 0 1px 2px rgba(34,38,70,.025);
}
.writing-meta{
  color:var(--muted);
  font-size:12px;
  margin-top:10px;
}
.analysis-panel label{
  color:#1f2940;
  font-weight:750;
}
.result-box{
  border-radius:18px;
  padding:18px;
  border-color:var(--line);
  background:#fff;
}
.result-box.orange{
  border-color:#ffd99a;
  background:#fffdf8;
}
.result-box.green{
  border-color:#bcebd4;
  background:#fbfffd;
}
.score-strip div{
  border-radius:18px;
  padding:16px;
}
.score-strip strong{
  font-size:22px;
}
.table-wrap{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}
th{
  background:#fbfbfe;
}

.learning-panel{
  padding:28px;
}
.learning-controls{
  display:grid;
  grid-template-columns:minmax(180px,.7fr) minmax(280px,1.4fr) auto;
  gap:18px;
  align-items:end;
  margin-bottom:28px;
}
.learning-tabs{
  margin:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  border:1px solid var(--line);
  border-radius:16px;
  padding:4px;
  background:#fff;
}
.learning-controls .tab,
.tab{
  min-height:48px;
  border-radius:12px;
  background:transparent;
  color:#5e6780;
  font-size:15px;
  font-weight:800;
}
.learning-controls .tab.active,
.tab.active{
  background:var(--purple-soft);
  color:var(--purple-dark);
  box-shadow:0 8px 22px rgba(110,87,244,.1);
}
.more-learning-btn{
  min-width:150px;
}
.pane-intro{
  color:var(--muted);
  font-size:15px;
}
.theme-chips{
  justify-content:flex-start;
  max-width:980px;
  margin:0 auto -1px;
  padding-left:22px;
}
.theme-chip{
  border-radius:12px 12px 0 0;
  border:1px solid rgba(20,30,40,.12);
  border-bottom:0;
  height:36px;
  max-width:210px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:650;
}
.theme-chip.active{
  outline:0;
  transform:translateY(-2px);
  border-color:rgba(110,87,244,.3);
}
.exercise-board{
  max-width:980px;
  border:1px solid var(--line);
  border-radius:22px;
  padding:28px;
}
.theme-context,
.theory-panel{
  background:#fbfbfe;
  border:1px solid var(--line);
  border-radius:16px;
}
.exercise-card{
  border-color:var(--line);
  border-radius:18px;
  padding:20px;
}
.exercise-card input[type=text],
.vocab-card input{
  border-color:var(--line);
  border-radius:14px;
  min-height:46px;
}
.feedback-card{
  border-color:var(--line);
  border-radius:18px;
}
.vocab-table-wrap{
  border-radius:22px;
}
.vocab-table th{
  background:#fbfbfe;
}
.vocab-word{
  color:var(--purple-dark);
}

.modal-backdrop{
  background:rgba(11,18,48,.34);
  backdrop-filter:blur(8px);
}
.profile-modal,
.pricing-modal,
.legal-modal{
  border-radius:28px;
  border-color:var(--line);
  box-shadow:0 30px 90px rgba(11,18,48,.18);
}
.modal-logo{
  justify-content:center;
}
.modal-close{
  background:#eef0f5;
}
.pricing-card{
  border-radius:24px;
  padding:28px;
}
.pricing-card.free{
  background:linear-gradient(135deg,#f1fffb,#fff);
}
.pricing-card.premium{
  background:linear-gradient(135deg,#f2f0ff,#fff);
  border-color:rgba(110,87,244,.2);
}
.plan-badge{
  width:max-content;
  border-radius:999px;
  background:var(--purple-soft);
  color:var(--purple-dark);
  padding:6px 10px;
  font-size:11px;
  font-weight:850;
}
.pricing-benefit-grid article,
.pricing-bottom-cta{
  border-radius:22px;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}
.legal-tab{
  border-radius:999px;
  background:#fff;
  border-color:var(--line);
}
.legal-tab.active{
  background:var(--purple-soft);
  color:var(--purple-dark);
}
.toast{
  border-radius:16px;
  background:#11162d;
  box-shadow:0 20px 50px rgba(11,18,48,.25);
}

@media(max-width:980px){
  body{
    background:var(--bg);
  }
  .content{
    margin-left:0;
    padding:20px 16px 32px;
  }
  .sidebar{
    background:#fff;
    border-bottom:1px solid var(--line);
    box-shadow:0 8px 28px rgba(34,38,70,.045);
  }
  .sidebar > .logo-card{
    width:150px;
    margin:0;
  }
  .sidebar > .logo-card img{
    width:150px;
    transform:none;
    mix-blend-mode:normal;
  }
  .main-nav{
    display:flex;
    gap:8px;
  }
  .nav-btn{
    border-radius:999px;
    background:#fff;
    border:1px solid var(--line);
    padding:10px 14px;
    font-weight:750;
  }
  .nav-btn.active{
    background:var(--purple-soft);
    color:var(--purple-dark);
  }
  .learner-card,
  .logout-btn{
    border:1px solid var(--line);
    border-radius:16px;
    background:#fff;
  }
  .topbar h1{
    font-size:34px;
  }
  .mission-card,
  .writing-panel,
  .analysis-panel,
  .learning-panel{
    padding:20px;
  }
  .mission-list,
  .topic-row,
  .score-strip{
    grid-template-columns:1fr;
  }
  .writing-controls,
  .learning-controls{
    display:grid;
    grid-template-columns:1fr;
  }
  .writing-controls .week-control,
  .writing-controls .week-control:has(#writingSelect),
  .writing-controls .week-control:has(#goalSelect),
  .writing-controls .week-control:has(#levelSelect),
  .writing-controls .week-control:has(#examFamilySelect),
  .writing-controls .week-control:has(#taskTypeSelect){
    min-width:0;
    width:100%;
  }
  .writing-controls .soft-btn,
  .more-learning-btn{
    width:100%;
  }
  textarea{
    min-height:260px;
  }
  .auth-card,
  .profile-modal,
  .pricing-modal,
  .legal-modal{
    border-radius:22px;
    padding:24px 20px;
  }
}

/* Keep all filter selects white, not grey */
.week-control select,
.history-panel .week-control select,
.learning-filter.week-control select,
.writing-controls .week-control select,
.writing-controls select,
.learning-controls select,
.auth-card select,
.profile-modal select{
  background:#fff!important;
  border:1px solid var(--line)!important;
  box-shadow:0 1px 0 rgba(34,38,70,.02)!important;
}

/* Dashboard reference-style polish */
#dashboard{
  max-width:1120px;
}
#dashboard .coach-grid{
  grid-template-columns:1fr;
}
#dashboard .coach-card{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
  padding:24px;
}
#dashboard .coach-card::before{
  content:"";
  width:70px;
  height:70px;
  border-radius:50%;
  background:radial-gradient(circle at 50% 48%,#6e57f4 0 22%,transparent 23%),radial-gradient(circle at 50% 50%,#f0edff 0 58%,transparent 59%),#f7f4ff;
  box-shadow:inset 0 0 0 10px #fff;
}
#dashboard .coach-card::after{
  content:"View plan";
  justify-self:end;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 18px;
  color:var(--purple-dark);
  font-weight:800;
  background:#fff;
}
#dashboard .coach-focus-card{
  display:none;
}
#dashboard .dashboard-metrics{
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
#dashboard .dashboard-metrics .metric{
  min-height:148px;
  justify-content:flex-end;
  gap:6px;
  padding:24px;
}
#dashboard .dashboard-metrics .metric::before{
  content:"";
  width:44px;
  height:44px;
  border-radius:50%;
  margin-bottom:auto;
  background:var(--purple-soft);
}
#dashboard .dashboard-metrics .metric.mint::before{background:#d9f7e8}
#dashboard .dashboard-metrics .metric.blue::before{background:#ece7ff}
#dashboard .dashboard-metrics .metric.indigo::before{background:#fff0ce}
#dashboard .dashboard-metrics .metric.gold::before{background:#e8f2ff}
#dashboard .activity-calendar-card{
  grid-template-columns:minmax(0,1fr) 250px;
}
#dashboard .learning-plan-card{
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}
#dashboard .learning-plan-card .panel-heading h2{
  font-size:18px;
  font-weight:850;
}
#dashboard .practice-area-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
#dashboard .practice-area-card{
  min-height:172px;
  border-radius:22px;
  padding:22px;
  position:relative;
  overflow:hidden;
}
#dashboard .practice-area-card.high{
  background:linear-gradient(135deg,#f7f4ff,#fff);
  border-color:#e6dcff;
}
#dashboard .practice-area-card.medium{
  background:linear-gradient(135deg,#fff8e8,#fff);
  border-color:#f7dfab;
}
#dashboard .practice-area-card.low{
  background:linear-gradient(135deg,#f2fffb,#fff);
  border-color:#ccefe3;
}
#dashboard .practice-area-card b{
  max-width:80%;
  font-size:18px;
  line-height:1.2;
}
#dashboard .practice-area-card p{
  display:none;
}
#dashboard .priority-label{
  text-transform:none;
  font-size:12px;
  padding:7px 11px;
}
#dashboard .practice-area-card.high .priority-label{
  background:#f0edff;
  color:#6e57f4;
}
#dashboard .practice-area-card.medium .priority-label{
  background:#fff0ce;
  color:#c27a11;
}
#dashboard .practice-area-card.low .priority-label{
  background:#ddf8eb;
  color:#249260;
}
#dashboard .practice-area-btn{
  position:absolute;
  right:18px;
  bottom:18px;
  width:38px;
  min-width:38px;
  height:38px;
  min-height:38px;
  border-radius:50%;
  padding:0;
  overflow:hidden;
  text-indent:-999px;
  background:linear-gradient(135deg,var(--purple),#795ef8);
}
#dashboard .practice-area-btn::after{
  content:"";
  position:absolute;
  inset:0;
  background:#fff;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}
@media(max-width:980px){
  #dashboard{
    max-width:none;
  }
  #dashboard .coach-card,
  #dashboard .dashboard-metrics,
  #dashboard .activity-calendar-card,
  #dashboard .practice-area-grid{
    grid-template-columns:1fr;
  }
  #dashboard .coach-card::after{
    justify-self:start;
  }
}

/* Desktop sidebar compact sizing */
@media (min-width:981px){
  .sidebar{
    width:244px!important;
    padding:24px 18px 18px!important;
  }
  .content{
    margin-left:244px!important;
  }
  .sidebar > .logo-card{
    width:164px!important;
    margin:0 auto 30px!important;
    justify-content:center!important;
  }
  .sidebar > .logo-card img{
    width:164px!important;
    transform:none!important;
  }
  .main-nav{
    gap:8px!important;
  }
  .nav-btn{
    min-height:44px!important;
    border-radius:13px!important;
    padding:0 14px!important;
    font-size:15px!important;
  }
  .nav-btn::before{
    width:18px!important;
    height:18px!important;
  }
  .learner-card{
    margin-top:auto!important;
    padding:12px!important;
    border-radius:16px!important;
  }
  .logout-btn{
    margin-top:16px!important;
    min-height:42px!important;
    border-radius:14px!important;
  }
}

/* Learning header and controls refinement */
body.learning-view-active .topbar{
  display:none;
}
body.writing-view-active .topbar{
  display:none;
}
body.learning-view-active .content{
  padding-top:42px;
}
body.writing-view-active .content{
  padding-top:42px;
}
#learning .learning-panel{
  margin-top:0;
}
#learning .learning-controls{
  grid-template-columns:minmax(220px,280px) minmax(360px,1fr) minmax(190px,220px)!important;
  align-items:center!important;
}
#learning .learning-tabs{
  width:100%;
  grid-template-columns:1fr 1fr!important;
}
#learning .learning-controls .tab{
  width:100%;
  min-width:0;
  text-align:center;
}
#learning .more-learning-btn{
  justify-self:center;
  width:100%;
  max-width:220px;
}
@media(max-width:980px){
  body.learning-view-active .content{
    padding-top:20px;
  }
  body.writing-view-active .content{
    padding-top:20px;
  }
  #learning .learning-controls{
    grid-template-columns:1fr!important;
  }
  #learning .more-learning-btn{
    max-width:none;
  }
}

/* Blocking AI progress overlay */
.ai-blocking-overlay{
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(11,18,48,.36);
  backdrop-filter:blur(10px);
}
.ai-blocking-card{
  width:min(420px,100%);
  border:1px solid var(--line);
  border-radius:28px;
  background:#fff;
  padding:34px 28px;
  text-align:center;
  box-shadow:0 30px 90px rgba(11,18,48,.22);
}
.ai-spinner{
  width:58px;
  height:58px;
  margin:0 auto 18px;
  border-radius:50%;
  border:5px solid #eeeaff;
  border-top-color:var(--purple);
  animation:aiSpin .8s linear infinite;
}
.ai-blocking-card h2{
  margin:0 0 8px;
  color:#071032;
  font-size:24px;
  line-height:1.15;
}
.ai-blocking-card p{
  margin:0;
  color:#65708a;
  line-height:1.5;
}
@keyframes aiSpin{
  to{transform:rotate(360deg)}
}
#writing .writing-controls{
  grid-template-columns:minmax(220px,1fr) minmax(130px,.45fr) minmax(220px,1fr) minmax(190px,220px)!important;
  align-items:center!important;
}
#writing #generateTopic{
  justify-self:center;
  width:100%;
  max-width:220px;
}
@media(max-width:980px){
  #writing .writing-controls{
    grid-template-columns:1fr!important;
  }
  #writing #generateTopic{
    max-width:none;
  }
}

/* Sidebar icons and user avatar */
.nav-btn::before{
  border:0!important;
  border-radius:0!important;
  background:currentColor;
  opacity:.9;
  -webkit-mask:center / contain no-repeat;
  mask:center / contain no-repeat;
}
.nav-btn[data-view="dashboard"]::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
}
.nav-btn[data-view="writing"]::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
}
.nav-btn[data-view="learning"]::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E");
}
.avatar{
  position:relative;
  flex:0 0 auto;
  background:linear-gradient(135deg,var(--purple),#8fa9f8)!important;
  overflow:hidden;
}
.avatar::before{
  content:"";
  position:absolute;
  left:50%;
  top:28%;
  width:34%;
  height:34%;
  border-radius:50%;
  background:#fff;
  transform:translateX(-50%);
}
.avatar::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:13%;
  width:62%;
  height:38%;
  border-radius:999px 999px 12px 12px;
  background:#fff;
  transform:translateX(-50%);
}

/* Initial-based user avatar */
.avatar{
  display:grid!important;
  place-items:center!important;
  color:#fff!important;
  font-weight:850!important;
  font-size:16px!important;
  letter-spacing:0!important;
}
.avatar::before,
.avatar::after{
  content:none!important;
}

/* Learning roadmap view */
#learning .learning-panel{
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}
#learning .learning-focus-banner{
  display:flex;
  align-items:center;
  gap:18px;
  border:1px solid #ece9ff;
  border-radius:18px;
  background:linear-gradient(135deg,#f5f2ff,#fff);
  padding:22px;
  margin:26px 0;
}
#learning .focus-badge{
  width:50px;
  height:50px;
  border-radius:50%;
  background:radial-gradient(circle,#6e57f4 0 18%,transparent 19%),#ede8ff;
}
#learning .learning-focus-banner strong{
  display:block;
  color:#17203a;
  font-size:17px;
  margin-bottom:5px;
}
#learning .learning-focus-banner .pane-intro{
  margin:0;
  text-align:left;
  color:#65708a;
}
#learning .learning-roadmap-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:28px;
  align-items:start;
}
#learning .learning-section-heading{
  margin-bottom:16px;
}
#learning .learning-section-heading h2{
  margin:0 0 6px;
  font-size:24px;
  color:#111936;
}
#learning .learning-section-heading p{
  margin:0;
  color:#65708a;
}
#learning .theme-chips.learning-topic-list{
  display:grid!important;
  gap:0!important;
  justify-content:stretch!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow-soft);
}
#learning .learning-topic-row{
  display:grid;
  grid-template-columns:54px minmax(0,1fr) auto 130px 120px;
  gap:18px;
  align-items:center;
  min-height:94px;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
  background:#fff;
  transition:background .18s ease, transform .18s ease;
}
#learning .learning-topic-row:last-child{
  border-bottom:0;
}
#learning .learning-topic-row:hover,
#learning .learning-topic-row.active{
  background:#fbf9ff;
}
#learning .learning-topic-row.completed{
  background:#fbfcff;
}
#learning .topic-row-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#f0edff;
  color:#6e57f4;
  font-size:11px;
  font-weight:850;
}
#learning .learning-topic-row:nth-child(2) .topic-row-icon{
  background:#f0edff;
}
#learning .learning-topic-row:nth-child(3) .topic-row-icon{
  background:#eef7ff;
}
#learning .learning-topic-row:nth-child(4) .topic-row-icon{
  background:#fff4dc;
}
#learning .topic-row-icon:empty::before{
  content:"";
  width:18px;
  height:18px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
#learning .topic-row-copy{
  min-width:0;
}
#learning .topic-row-copy strong{
  display:block;
  color:#111936;
  font-size:16px;
  line-height:1.25;
}
#learning .topic-row-copy span{
  display:block;
  color:#65708a;
  font-size:13px;
  margin-top:6px;
}
#learning .topic-progress{
  display:grid;
  gap:4px;
  color:#65708a;
  font-size:12px;
}
#learning .topic-progress strong{
  color:#323c56;
  font-size:15px;
}
#learning .topic-progress i{
  width:100%;
  height:5px;
  border-radius:999px;
  overflow:hidden;
  background:#eceff5;
}
#learning .topic-progress em{
  display:block;
  height:100%;
  border-radius:999px;
  background:var(--purple);
}
#learning .topic-continue{
  min-height:44px;
  color:#6e57f4;
  background:#f5f2ff;
  border-color:#e6dcff;
}
#learning .learning-detail-panel{
  max-width:none;
  margin:22px 0 0;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow-soft);
}
#learning .learning-side-panel{
  display:grid;
  gap:18px;
}
#learning .weekly-focus-card,
#learning .keep-going-card{
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  padding:24px;
  box-shadow:var(--shadow-soft);
}
#learning .weekly-focus-card{
  border-left:4px solid var(--purple);
  background:linear-gradient(135deg,#fff,#f7f4ff);
}
#learning .weekly-focus-card span{
  color:#6e57f4;
  font-weight:850;
  font-size:13px;
}
#learning .weekly-focus-card strong{
  display:block;
  margin:16px 0 10px;
  font-size:22px;
  line-height:1.15;
  color:#111936;
}
#learning .weekly-focus-card p,
#learning .keep-going-card p{
  color:#65708a;
  line-height:1.5;
}
#learning .keep-going-card{
  background:linear-gradient(135deg,#f2fffb,#fff);
}
#learning .keep-going-card strong{
  display:block;
  color:#17203a;
  margin-bottom:12px;
}
#learning .keep-going-card p{
  margin:12px 0 0;
}
@media(max-width:1100px){
  #learning .learning-roadmap-layout{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  #learning .learning-topic-row{
    grid-template-columns:42px minmax(0,1fr);
  }
  #learning .learning-topic-row .priority-label,
  #learning .topic-progress,
  #learning .topic-continue{
    grid-column:2;
  }
  #learning .topic-continue{
    width:100%;
  }
}

/* Landing page */
.landing-screen{
  min-height:100vh;
  background:radial-gradient(circle at 82% 8%,rgba(110,87,244,.11),transparent 28%),radial-gradient(circle at 10% 28%,rgba(73,184,120,.09),transparent 26%),#fcfcfd;
  color:#0b1230;
  scroll-behavior:smooth;
}
.landing-nav{
  position:sticky;
  top:0;
  z-index:40;
  width:min(1400px,calc(100% - 40px));
  min-height:76px;
  margin:0 auto;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:24px;
  background:rgba(252,252,253,.78);
  border:1px solid rgba(236,239,245,.72);
  border-radius:0 0 24px 24px;
  padding:14px 18px;
  backdrop-filter:blur(18px);
}
.landing-brand img,
.landing-footer img{
  width:156px;
  display:block;
  mix-blend-mode:multiply;
}
.landing-nav-links{
  justify-self:center;
  display:flex;
  gap:24px;
}
.landing-nav a,
.landing-nav button,
.landing-footer a,
.landing-footer button{
  color:#46506a;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
}
.landing-nav-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.landing-ghost,
.landing-secondary{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  min-height:44px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#2f3850;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 8px 24px rgba(34,38,70,.045);
}
.landing-primary{
  background:linear-gradient(135deg,#6e57f4,#7f66ff 55%,#553de8);
  color:#fff;
  border-radius:14px;
  min-height:44px;
  padding:0 20px;
  font-weight:850;
  box-shadow:0 16px 36px rgba(110,87,244,.24);
}
.landing-primary.large,
.landing-secondary.large{
  min-height:56px;
  padding:0 24px;
  border-radius:16px;
  font-size:15px;
}
.landing-primary:hover,
.landing-secondary:hover,
.landing-ghost:hover{
  transform:translateY(-2px);
}
.landing-primary:hover{
  box-shadow:0 22px 48px rgba(110,87,244,.3);
}
.landing-hero,
.landing-section,
.landing-final,
.landing-footer{
  width:min(1400px,calc(100% - 40px));
  margin:0 auto;
}
.landing-hero{
  min-height:760px;
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(480px,1fr);
  gap:64px;
  align-items:center;
  padding:76px 0 56px;
}
.landing-kicker{
  display:inline-flex;
  width:max-content;
  border-radius:999px;
  background:#f0edff;
  color:#553de8;
  padding:8px 12px;
  font-size:12px;
  font-weight:850;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.landing-hero h1{
  margin:24px 0 0;
  max-width:760px;
  color:#080d2c;
  font-size:clamp(56px,7vw,92px);
  line-height:.94;
  letter-spacing:-.055em;
}
.landing-hero h2{
  margin:8px 0 0;
  max-width:760px;
  color:#1c2540;
  font-size:clamp(34px,4vw,58px);
  line-height:1.02;
  letter-spacing:-.04em;
  font-weight:750;
}
.landing-hero-copy>p{
  max-width:650px;
  margin:26px 0 0;
  color:#59647d;
  font-size:20px;
  line-height:1.6;
}
.landing-hero-actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:34px;
}
.landing-rating{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:24px;
  color:#6e7892;
}
.landing-rating span{
  color:#f2a529;
  letter-spacing:2px;
}
.landing-rating p{
  margin:0;
  font-weight:650;
}
.landing-mockup-wrap{
  position:relative;
  min-height:620px;
}
.landing-dashboard-mockup,
.landing-preview-card,
.comparison-table,
.landing-pricing-card,
.landing-card-grid article,
.landing-step{
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:0 24px 70px rgba(34,38,70,.09);
}
.landing-dashboard-mockup{
  position:absolute;
  inset:36px 0 auto auto;
  width:min(620px,100%);
  padding:26px;
  display:grid;
  gap:20px;
  transform:perspective(1100px) rotateY(-7deg) rotateX(2deg);
}
.mockup-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  background:linear-gradient(135deg,#f7f4ff,#fff);
}
.mockup-top span,
.mockup-calendar-head span{
  color:#6e57f4;
  font-size:13px;
  font-weight:850;
}
.mockup-top strong{
  display:block;
  margin:8px 0 4px;
}
.mockup-top p{
  margin:0;
  color:#6e7892;
}
.mockup-top button{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  min-height:42px;
  padding:0 16px;
  color:#553de8;
  font-weight:800;
}
.mockup-metrics{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.mockup-metrics div{
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  background:#fff;
}
.mockup-metrics div:nth-child(1){background:#f2fffb}
.mockup-metrics div:nth-child(2){background:#f7f4ff}
.mockup-metrics div:nth-child(3){background:#fff8e9}
.mockup-metrics div:nth-child(4){background:#f2f8ff}
.mockup-metrics b{
  display:block;
  font-size:28px;
}
.mockup-metrics span{
  color:#65708a;
  font-size:12px;
}
.mockup-calendar{
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
}
.mockup-calendar-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.mockup-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}
.mockup-calendar-grid span{
  aspect-ratio:1;
  border-radius:12px;
  background:#f7f8fb;
  position:relative;
}
.mockup-calendar-grid span::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:7px;
  width:5px;
  height:5px;
  border-radius:50%;
  transform:translateX(-50%);
  background:transparent;
}
.mockup-calendar-grid .has-writing::after{background:#6e57f4}
.mockup-calendar-grid .has-grammar::after{background:#f2a529}
.mockup-calendar-grid .has-vocab::after{background:#2fb374}
.mockup-calendar-grid .has-all::after{background:linear-gradient(90deg,#6e57f4,#f2a529,#2fb374);width:20px;border-radius:999px}
.mockup-calendar-grid .today{
  background:#6e57f4;
}
.mockup-calendar-head .legend-text-writing{
  color:#6e57f4;
}
.mockup-calendar-head .legend-text-grammar{
  color:#7cb7ff;
}
.mockup-calendar-head .legend-text-vocab{
  color:#32c79a;
}
.mockup-calendar-head b{
  font-weight:850;
}
.landing-section{
  padding:78px 0;
}
.landing-section-head{
  max-width:760px;
  margin-bottom:30px;
}
.landing-section-head h2,
.landing-final h2{
  margin:16px 0 0;
  color:#080d2c;
  font-size:clamp(36px,4vw,58px);
  line-height:1.02;
  letter-spacing:-.04em;
}
.landing-card-grid{
  display:grid;
  gap:18px;
}
.landing-card-grid.three{
  grid-template-columns:repeat(3,1fr);
}
.landing-card-grid.six{
  grid-template-columns:repeat(3,1fr);
}
.landing-card-grid article{
  padding:28px;
  min-height:240px;
  box-shadow:0 12px 38px rgba(34,38,70,.055);
}
.landing-card-grid article:hover,
.landing-step:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 70px rgba(34,38,70,.1);
}
.landing-card-grid article span{
  color:#6e57f4;
  font-size:13px;
  font-weight:850;
}
.landing-card-grid h3,
.landing-step h3{
  margin:18px 0 10px;
  font-size:22px;
  line-height:1.18;
}
.landing-card-grid p,
.landing-step p{
  margin:0;
  color:#65708a;
  line-height:1.6;
}
.landing-card-grid a{
  display:inline-flex;
  margin-top:20px;
  color:#553de8;
  font-weight:850;
  text-decoration:none;
}
.landing-steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.landing-step{
  padding:30px;
  box-shadow:0 12px 38px rgba(34,38,70,.055);
}
.landing-step b{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:16px;
  background:#f0edff;
  color:#553de8;
}
.landing-preview-card{
  padding:28px;
  overflow:hidden;
}
.preview-callouts{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:22px;
}
.preview-callouts span{
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  padding:9px 12px;
  color:#4f5870;
  font-weight:750;
}
.preview-dashboard{
  display:grid;
  grid-template-columns:1.4fr .7fr .7fr;
  gap:16px;
}
.preview-panel,
.preview-calendar{
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px;
  background:#fbfbfe;
}
.preview-panel.wide{
  background:linear-gradient(135deg,#f7f4ff,#fff);
}
.preview-panel b{
  color:#553de8;
}
.preview-panel strong{
  display:block;
  margin-top:12px;
  font-size:34px;
}
.preview-panel p{
  color:#65708a;
}
.preview-calendar{
  grid-column:1 / -1;
  min-height:220px;
  background-image:radial-gradient(circle,#6e57f4 0 3px,transparent 4px),radial-gradient(circle,#2fb374 0 3px,transparent 4px),radial-gradient(circle,#f2a529 0 3px,transparent 4px);
  background-size:86px 44px,104px 58px,120px 62px;
  background-position:20px 26px,50px 48px,82px 72px;
}
.comparison-table{
  overflow:auto;
  padding:8px;
}
.comparison-table table{
  min-width:760px;
  border-collapse:separate;
  border-spacing:0;
}
.comparison-table th,
.comparison-table td{
  padding:18px;
  border-bottom:1px solid var(--line);
  font-size:15px;
}
.comparison-table th{
  background:#fbfbfe;
  color:#101832;
}
.comparison-table td:nth-child(2){
  color:#553de8;
  font-weight:850;
}
.testimonials article{
  min-height:190px;
}
.testimonials p{
  color:#202944;
  font-size:20px;
  font-weight:750;
}
.testimonials strong{
  display:block;
  margin-top:24px;
  color:#65708a;
}
.landing-pricing{
  display:grid;
  place-items:center;
}
.landing-pricing-card{
  width:min(620px,100%);
  padding:38px;
  background:linear-gradient(135deg,#fff,#f7f4ff);
  text-align:left;
}
.landing-pricing-card h2{
  margin:18px 0 4px;
  font-size:42px;
}
.landing-pricing-card>strong{
  display:block;
  font-size:50px;
  letter-spacing:-.04em;
}
.landing-pricing-card ul{
  display:grid;
  gap:12px;
  margin:28px 0;
  padding:0;
  list-style:none;
}
.landing-pricing-card li{
  color:#36415a;
  font-weight:700;
}
.landing-pricing-card li::before{
  content:"✓";
  color:#2fb374;
  margin-right:10px;
}
.landing-pricing-card p{
  color:#65708a;
  line-height:1.5;
}
.landing-final{
  margin-top:44px;
  margin-bottom:44px;
  border-radius:34px;
  padding:80px 32px;
  text-align:center;
  background:linear-gradient(135deg,#f0edff,#f2fffb 55%,#fff8e9);
  border:1px solid var(--line);
}
.landing-final p{
  color:#59647d;
  font-size:20px;
}
.landing-final .landing-hero-actions{
  justify-content:center;
}
.landing-footer{
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  gap:24px;
  padding:34px 0 48px;
  color:#65708a;
}
.landing-footer nav{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}
.landing-footer select{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  min-height:40px;
  padding:0 12px;
}

@media(max-width:1100px){
  .landing-nav{
    grid-template-columns:auto auto;
  }
  .landing-nav-links{
    display:none;
  }
  .landing-hero{
    grid-template-columns:1fr;
    min-height:0;
  }
  .landing-mockup-wrap{
    min-height:560px;
  }
  .landing-dashboard-mockup{
    left:0;
    right:auto;
    transform:none;
  }
  .landing-card-grid.three,
  .landing-card-grid.six,
  .landing-steps{
    grid-template-columns:repeat(2,1fr);
  }
  .preview-dashboard{
    grid-template-columns:1fr;
  }
}
@media(max-width:720px){
  .landing-nav,
  .landing-hero,
  .landing-section,
  .landing-final,
  .landing-footer{
    width:min(100% - 28px,1400px);
  }
  .landing-nav{
    position:relative;
    top:auto;
    grid-template-columns:1fr;
    border-radius:0 0 20px 20px;
    margin-top:0;
    padding:14px;
  }
  .landing-brand img{
    width:140px;
  }
  .landing-nav-actions{
    width:100%;
  }
  .landing-nav-actions button{
    flex:1;
  }
  .landing-hero{
    padding-top:42px;
    gap:24px;
  }
  .landing-hero h1{
    font-size:52px;
  }
  .landing-hero h2{
    font-size:32px;
  }
  .landing-hero-copy>p{
    font-size:17px;
  }
  .landing-mockup-wrap{
    min-height:520px;
  }
  .landing-dashboard-mockup{
    width:100%;
    padding:18px;
  }
  .mockup-metrics{
    grid-template-columns:repeat(2,1fr);
  }
  .landing-card-grid.three,
  .landing-card-grid.six,
  .landing-steps{
    grid-template-columns:1fr;
  }
  .landing-section{
    padding:54px 0;
  }
  .landing-footer{
    grid-template-columns:1fr;
  }
}

/* Landing Page - Modular Redesign */
.landing-screen{
  --landing-ink:#081331;
  --landing-muted:#65708a;
  --landing-purple:#6f55f2;
  --landing-purple-soft:#f0ecff;
  --landing-mint:#e8fbf5;
  --landing-blue:#eef6ff;
  --landing-yellow:#fff6dc;
  background:
    radial-gradient(circle at 12% 8%,rgba(111,85,242,.12),transparent 28%),
    radial-gradient(circle at 88% 16%,rgba(37,211,168,.12),transparent 30%),
    linear-gradient(180deg,#fbfcff 0%,#fff 42%,#f9fbff 100%);
  color:var(--landing-ink);
}
.landing-nav{
  position:sticky;
  top:18px;
  z-index:60;
  backdrop-filter:blur(18px);
  background:rgba(255,255,255,.82);
  border:1px solid rgba(170,181,210,.35);
  box-shadow:0 20px 60px rgba(23,31,56,.08);
}
.landing-brand{
  display:inline-flex;
  align-items:center;
}
.landing-brand img{
  width:188px;
  height:auto;
  object-fit:contain;
  mix-blend-mode:multiply;
}
.landing-hero-modern{
  padding-top:96px;
  align-items:center;
}
.landing-hero h1{
  letter-spacing:0;
  max-width:780px;
}
.landing-hero-copy>p{
  max-width:680px;
}
.landing-primary,
.landing-secondary,
.landing-ghost{
  font-weight:800;
}
.landing-secondary{
  background:#fff;
}
.landing-dashboard-mockup.premium{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(173,184,214,.5);
  box-shadow:0 30px 90px rgba(48,59,96,.16);
}
.mockup-focus{
  margin:18px 0;
  padding:18px;
  border-radius:20px;
  background:linear-gradient(135deg,#f0ecff,#f5fbff);
  border:1px solid rgba(111,85,242,.12);
}
.mockup-focus span,
.mockup-top span{
  display:block;
  color:var(--landing-purple);
  font-weight:800;
  margin-bottom:6px;
}
.mockup-focus strong{
  display:block;
  font-size:20px;
}
.mockup-focus p{
  margin:8px 0 0;
  color:var(--landing-muted);
}
.landing-section-head p{
  margin:8px 0 0;
  color:var(--landing-muted);
  font-size:20px;
}
.landing-card-grid article{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(173,184,214,.38);
}
.landing-dashboard-preview{
  position:relative;
  overflow:visible;
}
.preview-label{
  position:absolute;
  z-index:3;
  padding:10px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(173,184,214,.5);
  color:#4b42c8;
  font-weight:800;
  box-shadow:0 14px 34px rgba(42,50,86,.1);
}
.next-focus{top:26px;right:36px;}
.calendar-label{left:38px;bottom:28px;}
.mistakes-label{right:40px;bottom:28px;}
.preview-dashboard{
  background:linear-gradient(135deg,#fff,#f8fbff);
}
.preview-panel{
  min-height:122px;
}
.preview-panel strong{
  display:block;
  margin-top:8px;
  font-size:28px;
  color:#101935;
}
.coach-card{
  background:linear-gradient(135deg,#f4f0ff,#fff);
}
.focus-card{
  background:linear-gradient(135deg,#fff6dc,#fff);
}
.preview-calendar{
  min-height:220px;
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:10px;
  padding:16px;
  border-radius:22px;
  border:1px solid rgba(173,184,214,.45);
  background:#fff;
}
.preview-calendar span{
  position:relative;
  min-height:30px;
  border-radius:12px;
  background:#f6f8fc;
}
.preview-calendar span::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:7px;
  width:6px;
  height:6px;
  border-radius:50%;
  transform:translateX(-50%);
}
.preview-calendar .has-writing::after{background:#6f55f2;}
.preview-calendar .has-grammar::after{background:#7cb7ff;}
.preview-calendar .has-vocab::after{background:#32c79a;}
.preview-calendar .has-all::after{
  width:24px;
  border-radius:999px;
  background:linear-gradient(90deg,#6f55f2 0 33%,#7cb7ff 33% 66%,#32c79a 66%);
}
.preview-calendar .today{
  background:var(--landing-purple);
}
.preview-calendar .today::after{background:#fff;}
.pricing-card-row{
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr;
  gap:22px;
  width:100%;
}
.landing-pricing-grid{
  display:block;
}
.landing-pricing-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:420px;
}
.landing-pricing-card.featured{
  background:linear-gradient(135deg,#f2edff,#fff);
  border-color:rgba(111,85,242,.24);
  transform:translateY(-10px);
}
.landing-pricing-card>span{
  color:var(--landing-purple);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.landing-pricing-card .landing-primary,
.landing-pricing-card .landing-secondary{
  width:100%;
  margin-top:auto;
  text-align:center;
}
.calendar-legend{
  display:grid;
  gap:14px;
  color:var(--landing-muted);
  font-weight:800;
}
.calendar-legend span{
  display:flex;
  align-items:center;
  gap:10px;
}
.calendar-legend b{
  width:12px;
  height:12px;
  border-radius:50%;
}
.legend-writing{background:#6f55f2;}
.legend-grammar{background:#7cb7ff;}
.legend-vocab{background:#32c79a;}
.why-writing-grid{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:22px;
}
.why-writing-grid article{
  padding:34px;
  border-radius:30px;
  background:#fff;
  border:1px solid rgba(173,184,214,.42);
  box-shadow:0 18px 50px rgba(39,51,86,.06);
}
.why-writing-grid article:last-child{
  background:linear-gradient(135deg,#f0ecff,#f2fffb);
}
.why-writing-grid span{
  color:var(--landing-purple);
  font-weight:900;
}
.why-writing-grid h3{
  font-size:28px;
  margin:16px 0 10px;
}
.why-writing-grid p{
  color:var(--landing-muted);
  line-height:1.65;
}
.text-link-button{
  border:0;
  background:transparent;
  padding:0;
  color:var(--landing-purple);
  font:inherit;
  font-weight:900;
  text-decoration:underline;
  cursor:pointer;
}
@media(max-width:1100px){
  .pricing-card-row{
    grid-template-columns:1fr 1fr;
  }
  .why-writing-grid{
    grid-template-columns:1fr;
  }
  .preview-label{
    position:static;
    display:inline-flex;
    margin:6px;
  }
}
@media(max-width:720px){
  .landing-nav{
    position:relative;
    top:auto;
  }
  .landing-brand img{
    width:156px;
  }
  .landing-hero-modern{
    padding-top:46px;
  }
  .landing-hero h1{
    font-size:48px;
  }
  .pricing-card-row{
    grid-template-columns:1fr;
  }
  .landing-pricing-card.featured{
    transform:none;
  }
  .preview-calendar{
    gap:7px;
  }
  .landing-footer nav{
    flex-direction:column;
  }
}

/* Final dashboard overrides for coach/progress carousel */
#dashboard .coach-card{
  grid-template-columns:auto 1fr auto;
}
#dashboard .coach-card::before,
#dashboard .coach-card::after{
  content:none!important;
  display:none!important;
}
#dashboard .practice-area-grid.practice-carousel{
  display:flex!important;
  grid-template-columns:none!important;
  gap:18px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:2px 48px 8px 0;
  scrollbar-width:none;
}
#dashboard .practice-area-grid.practice-carousel::-webkit-scrollbar{
  display:none;
}
#dashboard .practice-carousel .practice-area-card{
  flex:0 0 min(260px,78vw);
  scroll-snap-align:start;
}
#dashboard .practice-carousel .empty-note{
  flex:1 0 100%;
}
#dashboard .dashboard-metrics .metric{
  position:relative;
}
#dashboard .dashboard-metrics .metric::after{
  content:"";
  position:absolute;
  top:36px;
  left:50%;
  width:22px;
  height:22px;
  transform:translateX(-50%);
}
#dashboard .dashboard-metrics .metric.mint::after{
  background:#2fb374;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='black'%3E%3Cpath d='M13.5 2.5c.6 3.1 3.9 4.7 3.9 9.1a5.4 5.4 0 1 1-10.8 0c0-2.8 1.6-5.2 4.8-8.6-.1 2.1.5 3.6 2.1 4.6.8-1.5.7-3.2 0-5.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='black'%3E%3Cpath d='M13.5 2.5c.6 3.1 3.9 4.7 3.9 9.1a5.4 5.4 0 1 1-10.8 0c0-2.8 1.6-5.2 4.8-8.6-.1 2.1.5 3.6 2.1 4.6.8-1.5.7-3.2 0-5.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#dashboard .dashboard-metrics .metric.blue::after{
  background:#6e57f4;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16.5 3.5 4 4L8 20H4v-4L16.5 3.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16.5 3.5 4 4L8 20H4v-4L16.5 3.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#dashboard .dashboard-metrics .metric.indigo::after{
  background:#f2a529;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='black'%3E%3Cpath d='M12 2.8 14.1 8l5.6.4-4.3 3.6 1.4 5.5L12 14.6l-4.8 2.9 1.4-5.5-4.3-3.6L9.9 8 12 2.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='black'%3E%3Cpath d='M12 2.8 14.1 8l5.6.4-4.3 3.6 1.4 5.5L12 14.6l-4.8 2.9 1.4-5.5-4.3-3.6L9.9 8 12 2.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#dashboard .dashboard-metrics .metric.gold::after{
  background:#4d96ff;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A3.5 3.5 0 0 1 7.5 2H20v17H7.5A3.5 3.5 0 0 0 4 22V5.5Z'/%3E%3Cpath d='M8 6h8M8 10h8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A3.5 3.5 0 0 1 7.5 2H20v17H7.5A3.5 3.5 0 0 0 4 22V5.5Z'/%3E%3Cpath d='M8 6h8M8 10h8'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media(max-width:980px){
  #dashboard .coach-card{
    grid-template-columns:auto 1fr;
  }
}

/* Final progress icon alignment */
#dashboard .dashboard-metrics .metric::before{
  position:absolute!important;
  top:32px!important;
  left:36px!important;
  width:54px!important;
  height:54px!important;
  margin:0!important;
  border-radius:50%!important;
}
#dashboard .dashboard-metrics .metric::after{
  top:48px!important;
  left:63px!important;
  width:22px!important;
  height:22px!important;
  transform:translate(-50%,-50%)!important;
}
#dashboard .dashboard-metrics .metric.mint::before{
  background:#d9f7e8!important;
}
#dashboard .dashboard-metrics .metric.blue::before{
  background:#ece7ff!important;
}
#dashboard .dashboard-metrics .metric.indigo::before{
  background:#fff0ce!important;
}
#dashboard .dashboard-metrics .metric.gold::before{
  background:#e8f2ff!important;
}

/* Final learning topic priority badge sizing */
#dashboard .practice-area-card .priority-label{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding:7px 12px!important;
  border-radius:999px!important;
  font-size:12px!important;
  line-height:1!important;
  white-space:nowrap!important;
}

/* Learning page topic list and detail view */
#learning .learning-focus-banner.weekly-focus-card{
  display:block!important;
  margin:0 0 22px!important;
  padding:22px 28px!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#f7f4ff,#fff)!important;
  border:1px solid #e6dcff!important;
  box-shadow:var(--shadow-soft)!important;
}
#learning .learning-focus-banner.weekly-focus-card strong{
  display:block;
  margin:7px 0 8px;
  font-size:22px;
  line-height:1.2;
  color:#10162f;
}
#learning .learning-focus-banner.weekly-focus-card p{
  max-width:720px;
  margin:0;
  color:#69748f;
  font-size:15px;
  line-height:1.4;
}
#learning .learning-roadmap-layout{
  display:block!important;
}
#learning .learning-roadmap-main{
  width:100%!important;
  max-width:none!important;
}
#learning .theme-chips.learning-topic-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:16px!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
#learning .learning-topic-row{
  width:100%!important;
  grid-template-columns:72px minmax(0,1fr) auto 170px 160px!important;
  min-height:116px!important;
}
#learning .learning-topic-row .priority-label{
  justify-self:start!important;
}
#learning .learning-roadmap-main.detail-open .learning-section-heading,
#learning .learning-roadmap-main.detail-open #themeChips{
  display:none!important;
}
#learning .learning-detail-panel{
  max-width:none!important;
  width:100%!important;
  margin:0!important;
  border:1px solid var(--line)!important;
  border-radius:26px!important;
}
#learning .learning-back-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 20px!important;
  color:var(--purple-dark);
  font-weight:850;
}
#learning .learning-back-btn::before{
  content:"";
  width:16px;
  height:16px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='m11 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='m11 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media(max-width:980px){
  #learning .learning-topic-row{
    grid-template-columns:54px 1fr!important;
  }
  #learning .learning-topic-row .priority-label,
  #learning .topic-progress,
  #learning .topic-continue{
    grid-column:2!important;
  }
}

/* Compact dashboard mission after coach */
#dashboard .mission-card{
  margin-top:22px!important;
  margin-bottom:28px!important;
  padding:28px 34px!important;
  border-radius:28px!important;
  min-height:0!important;
}
#dashboard .mission-card h2{
  margin:0 0 20px!important;
  font-size:24px!important;
  line-height:1.2!important;
}
#dashboard .mission-list{
  gap:14px!important;
  margin-bottom:22px!important;
}
#dashboard .mission-item{
  min-height:76px!important;
  padding:16px 20px!important;
  border-radius:20px!important;
}
#dashboard .mission-item strong{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  font-size:22px!important;
  border-radius:14px!important;
}
#dashboard .mission-item span{
  font-size:16px!important;
}
#dashboard .mission-cta{
  min-height:56px!important;
  border-radius:18px!important;
  font-size:17px!important;
}
#dashboard .coach-grid{
  margin-top:26px!important;
}

#dashboard .mission-card{
  padding:24px 32px!important;
}
#dashboard .mission-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:18px!important;
}
#dashboard .mission-card h2{
  margin:0!important;
}
#dashboard .mission-list{
  margin-bottom:0!important;
}
#dashboard .mission-cta{
  width:auto!important;
  min-width:168px!important;
  min-height:46px!important;
  padding:0 24px!important;
  border-radius:14px!important;
  font-size:15px!important;
  flex:0 0 auto!important;
}
@media(max-width:760px){
  #dashboard .mission-header{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  #dashboard .mission-cta{
    width:100%!important;
  }
}

.writing-meta #wordCount.over-limit{
  color:#df3d53!important;
  font-weight:800!important;
}

#learning .learning-topic-row .priority-label.medium,
#learning .learning-topic-row.priority-medium .priority-label{
  background:#fff0ce!important;
  color:#c27a11!important;
}
#learning .learning-topic-row .priority-label.high,
#learning .learning-topic-row.priority-high .priority-label{
  background:#f0edff!important;
  color:#6e57f4!important;
}
#learning .learning-topic-row .priority-label.low,
#learning .learning-topic-row.priority-low .priority-label{
  background:#ddf8eb!important;
  color:#249260!important;
}
#learning .topic-continue{
  width:48px!important;
  min-width:48px!important;
  height:48px!important;
  min-height:48px!important;
  padding:0!important;
  border-radius:50%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:end!important;
  font-size:0!important;
}
#learning .topic-continue::before{
  content:"";
  width:18px;
  height:18px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dashboard-plan-toggle #planThisWeekBtn{
  min-width:128px;
}
#dashboard .dashboard-metrics .metric{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:4px!important;
  padding:98px 28px 24px 36px!important;
  min-height:148px!important;
  position:relative!important;
}
#dashboard .dashboard-metrics .metric strong{
  position:relative!important;
  z-index:2!important;
  margin:0!important;
  line-height:1!important;
}
#dashboard .dashboard-metrics .metric span{
  position:relative!important;
  z-index:2!important;
  margin-top:8px!important;
}
#dashboard .dashboard-metrics .metric::before{
  top:28px!important;
  left:36px!important;
  width:56px!important;
  height:56px!important;
}
#dashboard .dashboard-metrics .metric::after{
  top:56px!important;
  left:64px!important;
  width:20px!important;
  height:20px!important;
  transform:translate(-50%,-50%)!important;
}

.settings-btn{
  margin-top:8px;
}
.profile-modal.settings-mode .profile-name-field,
.profile-modal.settings-mode .profile-language-field,
.profile-modal.settings-mode .profile-audience-field,
.profile-modal.settings-mode #profileLogout{
  display:none;
}
.profile-modal.settings-mode .profile-level-field,
.profile-modal.settings-mode .profile-goal-field{
  display:grid;
}

/* Landing final responsive override layer - keep this as the last landing rule */
@media (max-width:1180px){
  .landing-screen{overflow-x:hidden!important}
  .landing-screen .landing-nav{width:min(100% - 28px,1400px)!important;top:0!important;grid-template-columns:auto auto!important;justify-content:space-between!important;gap:14px!important}
  .landing-screen .landing-nav-links{display:none!important}
  .landing-screen .landing-hero,.landing-screen .landing-section,.landing-screen .landing-final,.landing-screen .landing-footer{width:min(100% - 32px,1400px)!important}
  .landing-screen .landing-hero{min-height:0!important;display:grid!important;grid-template-columns:1fr!important;gap:30px!important;padding:54px 0 34px!important;margin-bottom:0!important}
  .landing-screen .landing-hero h1{max-width:900px!important;font-size:clamp(46px,8vw,76px)!important;line-height:1!important;letter-spacing:-.04em!important}
  .landing-screen .landing-hero-copy>p{max-width:780px!important}
  .landing-screen .landing-mockup-wrap{min-height:0!important;height:auto!important;overflow:visible!important}
  .landing-screen .landing-dashboard-mockup{position:relative!important;inset:auto!important;width:100%!important;max-width:840px!important;margin:0 auto!important;transform:none!important}
  .landing-screen #landingProblem{padding-top:52px!important}
  .landing-screen #landingProblem .landing-card-grid.three{grid-template-columns:1fr!important}
  .landing-screen #landingProblem .landing-card-grid article{min-height:0!important;padding:28px!important}
  .landing-screen .landing-journey-block{margin-top:24px!important;padding:20px 0 28px!important;overflow:visible!important}
  .landing-screen .landing-journey-block::before{display:none!important}
  .landing-screen #landingHow{padding-top:54px!important}
  .landing-screen .how-stepper{gap:20px!important}
  .landing-screen .how-steps{display:grid!important;grid-template-columns:repeat(5,minmax(96px,1fr))!important;gap:8px!important;padding:0!important;overflow:visible!important}
  .landing-screen .how-steps::before{display:none!important}
  .landing-screen .how-step-button{min-width:0!important;min-height:72px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;padding:10px 8px!important;border:1px solid rgba(173,184,214,.45)!important;border-radius:18px!important;background:rgba(255,255,255,.86)!important;text-align:center!important}
  .landing-screen .how-step-button span{width:30px!important;height:30px!important;box-shadow:none!important;font-size:12px!important}
  .landing-screen .how-step-button strong{display:block!important;max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:12px!important;line-height:1.15!important;text-align:center!important}
  .landing-screen .how-active-panel{display:grid!important;grid-template-columns:1fr!important;gap:16px!important}
  .landing-screen .how-copy-card{order:1!important;padding:22px!important;min-height:0!important}
  .landing-screen .how-copy-card h3{font-size:30px!important;line-height:1.05!important}
  .landing-screen .how-visual{order:2!important;min-height:0!important;height:auto!important;padding:12px!important}
  .landing-screen .how-visual img{height:auto!important;max-height:460px!important;object-fit:contain!important}
  .landing-screen .comparison-table{width:100%!important;overflow-x:auto!important;padding:0!important}
  .landing-screen .comparison-table table{min-width:720px!important}
  .landing-screen .user-type-grid{grid-template-columns:1fr!important}
  .landing-screen .user-type-card{min-height:0!important;transform:none!important}
}
@media (max-width:680px){
  .landing-screen .landing-nav{width:100%!important;grid-template-columns:1fr!important;border-radius:0 0 22px 22px!important;padding:14px 16px!important}
  .landing-screen .landing-brand{justify-self:center!important}
  .landing-screen .landing-brand img{width:150px!important}
  .landing-screen .landing-nav-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important}
  .landing-screen .landing-nav-actions button{width:100%!important;padding:0 10px!important}
  .landing-screen .landing-hero,.landing-screen .landing-section,.landing-screen .landing-final,.landing-screen .landing-footer{width:calc(100% - 28px)!important}
  .landing-screen .landing-hero{padding-top:38px!important}
  .landing-screen .landing-hero h1{font-size:clamp(40px,12vw,56px)!important}
  .landing-screen .landing-section-head h2,.landing-screen .landing-final h2{font-size:clamp(32px,10vw,44px)!important}
  .landing-screen .mockup-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .landing-screen .mockup-top{display:grid!important}
  .landing-screen .how-steps{display:flex!important;overflow-x:auto!important;gap:10px!important;padding:2px 2px 12px!important;scroll-snap-type:x mandatory!important}
  .landing-screen .how-step-button{flex:0 0 136px!important;min-height:62px!important;flex-direction:row!important;justify-content:flex-start!important;scroll-snap-align:start!important}
  .landing-screen .how-step-button strong{text-align:left!important}
  .landing-screen .how-copy-card,.landing-screen .how-visual,.landing-screen .landing-card-grid article,.landing-screen .user-type-card,.landing-screen .landing-pricing-card{border-radius:22px!important;padding:20px!important}
  .landing-screen .how-visual img{max-height:none!important}
  .landing-screen .comparison-table table{min-width:640px!important}
}
@media (max-width:420px){
  .landing-screen .landing-nav-actions{grid-template-columns:1fr!important}
  .landing-screen .mockup-metrics{grid-template-columns:1fr!important}
}

/* Landing responsive polish: how-it-works visuals, comparison icons and audience cards */
.landing-screen .how-visual{
  overflow:visible!important;
}
.landing-screen .how-visual img{
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  max-height:520px!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
}
.landing-screen .compare-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:30px!important;
  height:30px!important;
  border-radius:50%!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:950!important;
  vertical-align:middle!important;
}
.landing-screen .compare-icon::before{
  width:auto!important;
  height:auto!important;
  background:none!important;
  -webkit-mask:none!important;
  mask:none!important;
}
.landing-screen .compare-icon.yes{
  color:#6e57f4!important;
  background:#f0edff!important;
}
.landing-screen .compare-icon.yes::before{
  content:"✓"!important;
}
.landing-screen .compare-icon.no{
  color:#9ca3af!important;
  background:#f1f3f6!important;
}
.landing-screen .compare-icon.no::before{
  content:"×"!important;
}
.landing-screen .compare-icon.partial{
  color:#9ca3af!important;
  background:#f1f3f6!important;
}
.landing-screen .compare-icon.partial::before{
  content:"•"!important;
  font-size:28px!important;
  line-height:.6!important;
}
.landing-screen .user-type-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:22px!important;
}
.landing-screen .user-type-card{
  display:flex!important;
  flex-direction:column!important;
  min-height:360px!important;
  padding:30px!important;
  border-radius:30px!important;
  border:1px solid rgba(173,184,214,.42)!important;
  background:linear-gradient(135deg,#fff,#f7f4ff)!important;
  box-shadow:0 18px 50px rgba(34,38,70,.07)!important;
}
.landing-screen .user-type-card.teacher{
  background:linear-gradient(135deg,#fff8e3,#fff)!important;
  border-color:rgba(255,159,28,.24)!important;
}
.landing-screen .user-type-card.academy{
  background:linear-gradient(135deg,#ecfff8,#fff)!important;
}
.landing-screen #landingPricing{
  justify-items:stretch!important;
}
.landing-screen #landingPricing .landing-section-head{
  justify-self:start!important;
  text-align:left!important;
}
.landing-screen #landingPricing .pricing-card-row{
  width:100%!important;
}

@media (max-width:1180px){
  .landing-screen .how-active-panel{
    grid-template-columns:1fr!important;
  }
  .landing-screen .how-visual{
    min-height:0!important;
    height:auto!important;
    padding:14px!important;
  }
  .landing-screen .how-visual img{
    max-height:440px!important;
  }
  .landing-screen .comparison-table{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .landing-screen .comparison-table table{
    min-width:680px!important;
  }
  .landing-screen .comparison-table th,
  .landing-screen .comparison-table td{
    padding:14px 16px!important;
  }
  .landing-screen .user-type-grid{
    grid-template-columns:1fr!important;
  }
  .landing-screen .user-type-card{
    min-height:0!important;
  }
}

@media (max-width:680px){
  .landing-screen .how-visual{
    padding:10px!important;
    border-radius:22px!important;
  }
  .landing-screen .how-visual img{
    max-height:none!important;
  }
  .landing-screen .comparison-table table{
    min-width:560px!important;
  }
  .landing-screen .comparison-table th,
  .landing-screen .comparison-table td{
    padding:12px 10px!important;
    font-size:13px!important;
  }
  .landing-screen .comparison-table th:first-child,
  .landing-screen .comparison-table td:first-child{
    width:210px!important;
  }
  .landing-screen .compare-icon{
    width:26px!important;
    height:26px!important;
    font-size:16px!important;
  }
}
