:root{--y:#FFC93C;--b:#2F6FED;--p:#7C4DFF;--o:#FF7A2F;--bg:#F4F7FF;--tx:#37447A;--mu:#6470A6;--ln:#DCE4FA;--w:#fff}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{font-family:'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;background:var(--bg);color:var(--tx);line-height:1.7}
header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 6%;background:linear-gradient(90deg,#FFD966,#FFB347);position:sticky;top:0;z-index:5;box-shadow:0 4px 16px rgba(255,140,40,.25)}
.brand{display:flex;align-items:center;gap:12px;color:#3A3F9E;font-weight:800;font-size:1.3rem;line-height:1.15}
.brand img{width:44px;height:44px;border-radius:12px;box-shadow:0 3px 8px rgba(80,60,180,.3)}
.brand small{display:block;font-size:.74rem;font-weight:600;color:#6B4A12}
#hi{font-size:.85rem;color:#5A3D0E;margin-right:8px}
.btn{border:0;border-radius:12px;padding:12px 24px;font:inherit;font-weight:700;cursor:pointer;background:var(--p);color:#fff;text-decoration:none;display:inline-block;box-shadow:0 4px 12px rgba(80,60,200,.25);transition:transform .15s,filter .15s}
.btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.btn.o{background:var(--o)}.btn.b{background:var(--b)}.btn.y{background:var(--y);color:#3A3F9E}.btn.s{padding:8px 16px;font-size:.85rem;box-shadow:none}
.btn:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #FFC93C;outline-offset:2px}
.hero{position:relative;overflow:hidden;padding:96px 6% 104px;background:linear-gradient(125deg,#2F6FED 0%,#6A4DF0 55%,#B052E6 100%);color:#fff;text-align:center}
.hero:before,.hero:after{content:"";position:absolute;border-radius:50%}
.hero:before{width:320px;height:320px;right:-80px;top:-100px;background:rgba(255,201,60,.35)}
.hero:after{width:220px;height:220px;left:-60px;bottom:-90px;background:rgba(255,122,47,.35)}
.hero>*{position:relative;z-index:1}
.hero h1{font-size:clamp(1.9rem,5.5vw,3rem);max-width:780px;margin:0 auto 20px;line-height:1.2}
.hero p{max-width:600px;margin:0 auto 36px;color:#EDEBFF;font-size:1.1rem}
section{padding:80px 6%}
.band-y{background:#FFF5D6}.band-p{background:#EFE9FF}.band-b{background:#E6F0FF}
h2{color:#3A3F9E;margin-bottom:12px;text-align:center;font-size:1.7rem}
.sub{text-align:center;color:var(--mu);max-width:560px;margin:0 auto 40px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:28px;max-width:1100px;margin:0 auto}
.card{background:var(--w);border:1px solid var(--ln);border-radius:20px;padding:32px 28px;box-shadow:0 8px 24px rgba(80,90,200,.12)}
.grid .card{text-align:center}
.grid .card:nth-child(1){background:#E6F0FF}.grid .card:nth-child(2){background:#EFE9FF}.grid .card:nth-child(3){background:#FFF3CC}.grid .card:nth-child(4){background:#FFE9D6}
.ico{width:56px;height:56px;border-radius:16px;margin:0 auto 18px;display:flex;align-items:center;justify-content:center;font-size:1.6rem;background:var(--b);color:#fff}
.grid .card:nth-child(2) .ico{background:var(--p)}.grid .card:nth-child(3) .ico{background:var(--y)}.grid .card:nth-child(4) .ico{background:var(--o)}
.card h3{margin-bottom:10px;color:#3A3F9E}
.steps .card{background:#fff!important;text-align:left}
.steps .n{display:inline-flex;width:36px;height:36px;border-radius:50%;background:var(--o);color:#fff;font-weight:800;align-items:center;justify-content:center;margin-bottom:12px}
.login{max-width:460px;margin:0 auto;text-align:center;padding:40px 32px}
.hidden{display:none!important}
form label{display:block;font-weight:600;margin-top:20px;margin-bottom:6px;text-align:left}
input,select,textarea{width:100%;padding:13px 14px;border:1.5px solid #C5D2F5;border-radius:12px;font:inherit;background:#fff;color:var(--tx)}
input.bad,select.bad,textarea.bad{border-color:#E5484D}
.err{color:#C62828;font-size:.85rem;min-height:1.3em;margin-top:4px;text-align:left}
form .btn{margin-top:20px}
.msg{margin:16px 0;font-weight:700;color:var(--p)}
.meta{font-size:.88rem;color:var(--mu);margin:10px 0}
#app{background:linear-gradient(180deg,#E6F0FF,#F4F7FF);min-height:70vh}
.tabs{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px}
.tabs .btn{background:#fff;color:var(--b);border:1.5px solid #BFD2FA}.tabs .btn.on{background:var(--b);color:#fff;border-color:var(--b)}
.task{background:#fff;border:1px solid var(--ln);border-left:8px solid var(--b);border-radius:16px;padding:22px 24px;margin-bottom:20px;box-shadow:0 6px 18px rgba(80,90,200,.10)}
.task .btn{margin:8px 8px 0 0}
.task.Low{border-left-color:var(--y)}.task.High{border-left-color:var(--o)}.task.Critical{border-left-color:var(--p)}
.tag{display:inline-block;border-radius:20px;padding:3px 12px;font-size:.78rem;font-weight:700;background:#FFF0C7;color:#8A5A00;margin-right:8px}
.tag.st{background:#DCEBFF;color:#2452B8}.tag.Progress{background:#FFE6CC;color:#B4530A}.tag.Completed{background:#E9E2FF;color:#5B3FC4}
.wrap{max-width:920px;margin:0 auto}
footer{text-align:center;padding:32px;background:linear-gradient(90deg,#FFD966,#FFB347);font-size:.9rem;color:#5A3D0E}
@media(min-width:700px){.two{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}}
@media(max-width:600px){section{padding:56px 5%}.hero{padding:64px 5% 72px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---- Compact, realistic spacing ---- */
header{padding:10px 5%}
.brand img{width:40px;height:40px}
.hero{padding:56px 5% 64px}
.hero h1{margin-bottom:12px}.hero p{margin-bottom:24px}
section{padding:44px 5%}
h2{margin-bottom:8px;font-size:1.5rem}
.sub{margin-bottom:24px}
.grid{gap:18px}
.card{padding:22px 20px;border-radius:16px}
.ico{width:48px;height:48px;margin-bottom:12px;font-size:1.4rem}
.login{padding:28px 24px}
form label{margin-top:12px;margin-bottom:4px}
input,select,textarea{padding:10px 12px}
.err{min-height:1.1em;margin-top:2px}
form .btn{margin-top:14px}
.task{padding:16px 18px;margin-bottom:14px}
.tabs{margin-bottom:14px;gap:8px}
footer{padding:18px}
@media(max-width:600px){section{padding:36px 5%}.hero{padding:44px 5% 48px}}
/* ---- New features: stats, toolbar, ticket no, overdue ---- */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:12px;margin:14px 0}
.stat{background:#fff;border:1px solid var(--ln);border-top:4px solid var(--b);border-radius:14px;padding:10px;text-align:center;box-shadow:0 4px 12px rgba(80,90,200,.08)}
.stat b{display:block;font-size:1.6rem;color:#3A3F9E;line-height:1.2}.stat span{font-size:.8rem;color:var(--mu)}
.stat:nth-child(2){border-top-color:var(--y)}.stat:nth-child(3){border-top-color:var(--o)}.stat:nth-child(4){border-top-color:var(--p)}.stat:nth-child(5){border-top-color:#E5484D}
.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.toolbar input{flex:1 1 200px;width:auto}.toolbar select{flex:0 0 auto;width:auto}
.tk{font-weight:700;color:var(--b);margin-right:8px}
.tag.od{background:#FFE0E0;color:#B3261E}
.task.done{opacity:.85}
.btn.r{background:#fff;color:#B3261E;border:1.5px solid #F2B8B5}

/* ---- Jira-style workspace ---- */
#app{display:grid;grid-template-columns:230px 1fr;min-height:78vh;background:#F4F6FF}
.side{background:#F0EBFF;border-right:1px solid #DDD3FA;padding:16px 10px}
.proj{display:flex;gap:10px;align-items:center;padding:6px 8px 16px;color:#3A3F9E}
.proj img{width:36px;height:36px;border-radius:8px}.proj small{display:block;color:var(--mu);font-size:.75rem}
#nav button{display:block;width:100%;text-align:left;border:0;background:none;font:inherit;font-weight:600;color:var(--tx);padding:9px 12px;border-radius:6px;border-left:3px solid transparent;cursor:pointer;margin-bottom:2px}
#nav button:hover{background:#E4DBFF}
#nav button.on{background:#DCE8FF;color:var(--b);border-left-color:var(--b)}
.main{padding:20px 24px;min-width:0}
.crumb{font-size:.82rem;color:var(--mu)}
.top{display:flex;align-items:center;justify-content:space-between;margin:4px 0 14px}
.top h2{margin:0;text-align:left;font-size:1.5rem}
.top .btn{padding:8px 18px}
.board{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-items:start}
.col{background:#EAEFFD;border-radius:8px;padding:10px;min-height:180px}
.col h4{font-size:.75rem;letter-spacing:.5px;color:var(--mu);margin:2px 4px 10px}
.col h4 span{background:#D5DEFA;border-radius:10px;padding:1px 8px;margin-left:4px}
.col:nth-child(2) h4{color:#B4530A}.col:nth-child(3) h4{color:#5B3FC4}
.jc{position:relative;background:#fff;border:1px solid var(--ln);border-radius:6px;padding:10px 12px;margin-bottom:8px;box-shadow:0 1px 3px rgba(80,90,200,.15);cursor:grab}
.jc:hover{border-color:#8FB0F7}
.jt{font-weight:600;margin-bottom:6px;padding-right:22px;overflow-wrap:anywhere}
.jf{display:flex;align-items:center;gap:8px;font-size:.8rem;color:var(--mu);margin:6px 0}
.jf .av{margin-left:auto}
.pri{font-weight:800;font-size:.8rem}
.av{display:inline-flex;width:24px;height:24px;border-radius:50%;background:var(--p);color:#fff;font-size:.75rem;font-weight:700;align-items:center;justify-content:center}
.stsel{width:auto;padding:4px 8px;font-size:.75rem;font-weight:700;border-radius:6px;background:#EEF3FF;color:var(--b);border:1px solid #C5D2F5}
.jc .xb{position:absolute;top:6px;right:6px}
.xb{border:0;background:none;cursor:pointer;font-size:.95rem;color:var(--mu);padding:2px 6px;border-radius:6px}.xb:hover{background:#FFE0E0}
.empty{color:var(--mu);font-size:.85rem;padding:8px 4px}
.row{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--ln);border-radius:6px;padding:8px 12px;margin-bottom:6px;flex-wrap:wrap}
.row .rt{flex:1 1 200px;font-weight:600;overflow-wrap:anywhere}.row .tk{margin:0}
.due{font-size:.8rem;color:var(--mu)}
.prog{grid-column:1/-1;background:#fff;border:1px solid var(--ln);border-radius:14px;padding:12px 16px}
.bar{height:10px;background:#E6ECFB;border-radius:6px;margin-top:8px;overflow:hidden}.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--b),var(--p))}
.modal{position:fixed;inset:0;background:rgba(120,130,200,.35);display:flex;align-items:center;justify-content:center;padding:16px;z-index:20}
#taskForm{background:#fff;border-radius:12px;padding:20px 22px;width:100%;max-width:560px;max-height:92vh;overflow:auto;box-shadow:0 12px 40px rgba(80,90,200,.3)}
.mh{display:flex;justify-content:space-between;align-items:center}.mh h3{color:#3A3F9E}
.acts{display:flex;justify-content:flex-end;gap:10px;margin-top:6px;align-items:center}
.acts .btn{margin-top:14px}
@media(max-width:800px){
 #app{grid-template-columns:1fr}
 .side{display:flex;align-items:center;gap:8px;overflow-x:auto;border-right:0;border-bottom:1px solid #DDD3FA;padding:8px}
 .proj{padding:0 8px 0 0}.proj small{display:none}#nav{display:flex;gap:4px}#nav button{width:auto;white-space:nowrap;border-left:0;border-bottom:3px solid transparent}
 #nav button.on{border-bottom-color:var(--b)}
 .board{grid-template-columns:1fr}.main{padding:14px}
}

/* ---- New header colors: sky-to-lavender with rainbow accent line ---- */
header{background:linear-gradient(90deg,#DCEBFF 0%,#E9E2FF 60%,#FFE9D6 100%);border-bottom:4px solid transparent;border-image:linear-gradient(90deg,#FFC93C,#FF7A2F,#7C4DFF,#2F6FED) 1;box-shadow:0 4px 14px rgba(80,90,200,.14)}
.brand{color:#2F6FED}
.brand small{color:#6470A6}
.brand img{box-shadow:0 3px 8px rgba(47,111,237,.3)}
#hi{color:#37447A;background:#fff;border-radius:20px;padding:4px 12px;border:1px solid #DCE4FA}
header .btn.b{background:#FF7A2F}

/* ---- Marketing sections ---- */
.badges{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:24px}
.badges span{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.45);border-radius:20px;padding:4px 14px;font-size:.85rem}
.btn.ghost{background:rgba(255,255,255,.18);border:1.5px solid #fff;box-shadow:none}
.plans .card{background:#fff!important;text-align:center;position:relative}
.plans .price{font-size:2rem;font-weight:800;color:#3A3F9E}.plans .price small{font-size:.9rem;color:var(--mu);font-weight:500}
.plans ul{list-style:none;padding:0;margin:14px 0 18px;text-align:left}
.plans li{padding:5px 0 5px 24px;position:relative}.plans li:before{content:"✓";position:absolute;left:0;color:var(--b);font-weight:800}
.plans .pop{border:2px solid var(--p);box-shadow:0 10px 28px rgba(124,77,255,.25)}
.flag{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:var(--o);color:#fff;font-size:.75rem;font-weight:700;padding:3px 14px;border-radius:20px}
.faq{max-width:760px;margin:0 auto}
.faq details{background:#fff;border:1px solid var(--ln);border-radius:12px;padding:12px 18px;margin-bottom:10px}
.faq summary{font-weight:700;cursor:pointer;color:#3A3F9E}.faq p{margin-top:8px;color:var(--mu)}
footer a{color:#5A3D0E;margin:0 8px;font-weight:600}

/* ---- Header: sunset purple-to-orange with yellow edge ---- */
header{background:linear-gradient(90deg,#7C4DFF 0%,#A05BE8 50%,#FF8A4C 100%);border-bottom:4px solid #FFC93C;border-image:none;box-shadow:0 4px 14px rgba(124,77,255,.25)}
.brand{color:#fff}.brand small{color:rgba(255,255,255,.9)}
.brand img{box-shadow:0 0 0 2px rgba(255,255,255,.85)}
#hi{background:#fff;color:#37447A;border:0}
header .btn.b{background:#FFC93C;color:#3A3F9E;box-shadow:none}

/* ---- "Task for everyone" cards ---- */
.whos{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.who{text-align:center}
.who .emo{font-size:2.6rem;line-height:1;margin-bottom:8px}
.who .chip{display:inline-block;background:#fff;border-radius:20px;padding:2px 14px;font-size:.78rem;font-weight:700;color:var(--p);margin-bottom:10px}
.who h3{font-size:1.05rem}
.who .eg{color:var(--mu);font-size:.9rem;font-style:italic;margin:8px 0 14px}
.whos .who:nth-child(1){background:#FFE3EF!important}
.whos .who:nth-child(2){background:#FFF3CC!important}
.whos .who:nth-child(3){background:#FFE9D6!important}
.whos .who:nth-child(4){background:#E6F0FF!important}
.whos .who:nth-child(5){background:#EFE9FF!important}
.whos .who:nth-child(6){background:#E3F6F1!important}
.whos .who{transition:transform .2s}.whos .who:hover{transform:translateY(-4px)}

/* ---- Polish: column accents, clickable titles, due soon ---- */
.col{border-top:4px solid var(--b)}.col:nth-child(2){border-top-color:var(--o)}.col:nth-child(3){border-top-color:var(--p)}
.jt[data-edit],.rt[data-edit]{cursor:pointer}.jt[data-edit]:hover,.rt[data-edit]:hover{color:var(--b);text-decoration:underline}
.tag.ds{background:#FFF0C7;color:#8A5A00}
.toolbar .btn{flex:0 0 auto}

/* ---- Section order: "A task for everyone" above the hero (DOM keeps H1 first for SEO) ---- */
#site{display:flex;flex-direction:column}
.who-sec{order:-1;background:#fff}

/* ---- Plan meter, categories ---- */
.prog.plan{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#FFF5D6;border-color:#FFE29A}
.prog.plan>div{flex:1 1 220px}
.cats{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.chip2{background:#EFE9FF;color:#5B3FC4;border-radius:20px;padding:3px 12px;font-size:.85rem;font-weight:600}

/* ---- Task details & comments ---- */
.dbox{background:#fff;border-radius:12px;padding:20px 22px;width:100%;max-width:560px;max-height:92vh;overflow:auto;box-shadow:0 12px 40px rgba(80,90,200,.3)}
.cm{background:#F4F7FF;border-radius:8px;padding:8px 12px;margin-bottom:8px}.cm p{margin:2px 0 0;overflow-wrap:anywhere}

/* ---- Review fixes: header nav, email overflow, welcome, anchors ---- */
.topnav{display:flex;gap:6px;margin-left:auto;margin-right:10px}
.topnav a{color:#fff;text-decoration:none;font-weight:600;font-size:.9rem;padding:6px 10px;border-radius:8px}
.topnav a:hover{background:rgba(255,255,255,.2)}
@media(max-width:760px){.topnav{display:none}}
#hi{display:inline-block;max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
section{scroll-margin-top:72px}
#welcome{margin-bottom:16px;text-align:center}
#welcome .cats{justify-content:center}
#ferr{margin-top:8px;font-weight:600}
